Comparing version 0.20.2 to 0.21.0
@@ -28,6 +28,5 @@ 'use strict'; | ||
} | ||
}); | ||
}), | ||
unsubscribe = _observable$subscribe.unsubscribe; | ||
var unsubscribe = _observable$subscribe.unsubscribe; | ||
return unsubscribe; | ||
@@ -34,0 +33,0 @@ }); |
@@ -5,6 +5,2 @@ 'use strict'; | ||
var _react = require('react'); | ||
var _react2 = _interopRequireDefault(_react); | ||
var _createHelper = require('./createHelper'); | ||
@@ -20,45 +16,19 @@ | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
var identity = function identity(Component) { | ||
return Component; | ||
}; | ||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } | ||
var branch = function branch(test, left, right) { | ||
var branch = function branch(test, left) { | ||
var right = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : identity; | ||
return function (BaseComponent) { | ||
return function (_React$Component) { | ||
_inherits(_class2, _React$Component); | ||
function _class2(props, context) { | ||
_classCallCheck(this, _class2); | ||
var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context)); | ||
_this.LeftComponent = null; | ||
_this.RightComponent = null; | ||
_this.computeChildComponent(_this.props); | ||
return _this; | ||
var leftFactory = void 0; | ||
var rightFactory = void 0; | ||
return function (props) { | ||
if (test(props)) { | ||
leftFactory = leftFactory || (0, _createEagerFactory2.default)(left(BaseComponent)); | ||
return leftFactory(props); | ||
} | ||
_class2.prototype.computeChildComponent = function computeChildComponent(props) { | ||
if (test(props)) { | ||
this.leftFactory = this.leftFactory || (0, _createEagerFactory2.default)(left(BaseComponent)); | ||
this.factory = this.leftFactory; | ||
} else { | ||
this.rightFactory = this.rightFactory || (0, _createEagerFactory2.default)(right(BaseComponent)); | ||
this.factory = this.rightFactory; | ||
} | ||
}; | ||
_class2.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { | ||
this.computeChildComponent(nextProps); | ||
}; | ||
_class2.prototype.render = function render() { | ||
return this.factory(this.props); | ||
}; | ||
return _class2; | ||
}(_react2.default.Component); | ||
rightFactory = rightFactory || (0, _createEagerFactory2.default)(right(BaseComponent)); | ||
return rightFactory(props); | ||
}; | ||
}; | ||
@@ -65,0 +35,0 @@ }; |
@@ -1,1 +0,1 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.Recompose=e(require("react")):t.Recompose=e(t.React)}(this,function(t){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){t.exports=n(29)},function(t,e,n){"use strict";e.__esModule=!0;var r=function(t,e){return t};e.default=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(18),u=r(o),a=n(16),i=r(a),f=function(t){var e=(0,i.default)(t);return function(n,r){return(0,u.default)(!1,e,t,n,r)}};e.default=f},function(e,n){e.exports=t},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(1),u=r(o),a=n(2),i=r(a),f=function(t){return function(e){var n=(0,i.default)(e);return function(e){return n(t(e))}}};e.default=(0,u.default)(f,"mapProps")},function(t,e){"use strict";e.__esModule=!0;var n={fromESObservable:null,toESObservable:null},r=function(t){n=t};e.config={fromESObservable:function(t){return"function"==typeof n.fromESObservable?n.fromESObservable(t):t},toESObservable:function(t){return"function"==typeof n.toESObservable?n.toESObservable(t):t}};e.default=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(49),u=r(o);e.default=u.default},function(t,e){"use strict";e.__esModule=!0;var n=function(t){if("string"==typeof t)return t;if(t)return t.displayName||t.name||"Component"};e.default=n},function(t,e){"use strict";e.__esModule=!0;var n=function(t){return!(!t||!t.prototype||"object"!=typeof t.prototype.isReactComponent)};e.default=n},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(1),u=r(o),a=function(t,e){return function(n){return n[t]=e,n}};e.default=(0,u.default)(a,"setStatic",!1)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var i=n(3),f=n(1),c=r(f),s=n(2),l=r(s),p=function(t){return function(e){var n=(0,l.default)(e);return function(e){function r(){return o(this,r),u(this,e.apply(this,arguments))}return a(r,e),r.prototype.shouldComponentUpdate=function(e){return t(this.props,e)},r.prototype.render=function(){return n(this.props)},r}(i.Component)}};e.default=(0,c.default)(p,"shouldUpdate")},function(t,e){"use strict";function n(t,e){var n={};for(var r in t)e.indexOf(r)<0&&Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}e.__esModule=!0;var r=function(t,e){for(var r=n(t,[]),o=0;e.length>o;o++){var u=e[o];r.hasOwnProperty(u)&&delete r[u]}return r};e.default=r},function(t,e){"use strict";e.__esModule=!0;var n=function(t,e){for(var n={},r=0;e.length>r;r++){var o=e[r];t.hasOwnProperty(o)&&(n[o]=t[o])}return n};e.default=n},function(t,e,n){(function(e){"use strict";t.exports=n(51)(e||window||this)}).call(e,function(){return this}())},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0,e.componentFromStreamWithConfig=void 0;var i=n(3),f=n(19),c=n(13),s=r(c),l=n(5),p=e.componentFromStreamWithConfig=function(t){return function(e){return function(n){function r(){var a,i,c,l;o(this,r);for(var p=arguments.length,d=Array(p),h=0;p>h;h++)d[h]=arguments[h];return i=c=u(this,n.call.apply(n,[this].concat(d))),c.state={vdom:null},c.propsEmitter=(0,f.createChangeEmitter)(),c.props$=t.fromESObservable((a={subscribe:function(t){var e=c.propsEmitter.listen(function(e){return t.next(e)});return{unsubscribe:e}}},a[s.default]=function(){return this},a)),c.vdom$=t.toESObservable(e(c.props$)),l=i,u(c,l)}return a(r,n),r.prototype.componentWillMount=function(){var t=this;this.subscription=this.vdom$.subscribe({next:function(e){t.setState({vdom:e})}}),this.propsEmitter.emit(this.props)},r.prototype.componentWillReceiveProps=function(t){this.propsEmitter.emit(t)},r.prototype.shouldComponentUpdate=function(t,e){return e.vdom!==this.state.vdom},r.prototype.componentWillUnmount=function(){this.subscription.unsubscribe()},r.prototype.render=function(){return this.state.vdom},r}(i.Component)}},d=p(l.config);e.default=d},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(18),u=r(o),a=n(16),i=r(a),f=function(t,e,n){var r=(0,i.default)(t),o=e&&e.hasOwnProperty("key");return(0,u.default)(o,r,t,e,n)};e.default=f},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(8),u=r(o),a=function(t){return!("function"!=typeof t||(0,u.default)(t)||t.defaultProps||t.contextTypes||t.propTypes)};e.default=a},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(10),u=r(o),a=n(6),i=r(a),f=n(1),c=r(f),s=n(12),l=r(s),p=function(t){return(0,u.default)(function(e,n){return!(0,i.default)((0,l.default)(n,t),(0,l.default)(e,t))})};e.default=(0,c.default)(p,"onlyUpdateForKeys")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u=n(3),a=r(u),i=function(t,e,n,r,u){if(!t&&e)return n(u?o({},r,{children:u}):r);var i=n;return u?a.default.createElement(i,r,u):a.default.createElement(i,r)};e.default=i},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.createChangeEmitter=function(){function t(){o===r&&(o=r.slice())}function e(e){if("function"!=typeof e)throw Error("Expected listener to be a function.");var n=!0;return t(),o.push(e),function(){if(n){n=!1,t();var r=o.indexOf(e);o.splice(r,1)}}}function n(){r=o;for(var t=r,e=0;t.length>e;e++)t[e].apply(t,arguments)}var r=[],o=r;return{listen:e,emit:n}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var i=n(3),f=r(i),c=n(1),s=r(c),l=n(2),p=r(l),d=function(t,e,n){return function(r){return function(i){function f(t,e){o(this,f);var n=u(this,i.call(this,t,e));return n.LeftComponent=null,n.RightComponent=null,n.computeChildComponent(n.props),n}return a(f,i),f.prototype.computeChildComponent=function(o){t(o)?(this.leftFactory=this.leftFactory||(0,p.default)(e(r)),this.factory=this.leftFactory):(this.rightFactory=this.rightFactory||(0,p.default)(n(r)),this.factory=this.rightFactory)},f.prototype.componentWillReceiveProps=function(t){this.computeChildComponent(t)},f.prototype.render=function(){return this.factory(this.props)},f}(f.default.Component)}};e.default=(0,s.default)(d,"branch")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(11),u=r(o),a=n(15),i=r(a),f=function(t){var e=function(e){return(0,i.default)(e[t],(0,u.default)(e,[t]))};return e.displayName="componentFromProp("+t+")",e};e.default=f},function(t,e){"use strict";function n(){for(var t=arguments.length,e=Array(t),n=0;t>n;n++)e[n]=arguments[n];if(0===e.length)return function(t){return t};if(1===e.length)return e[0];var r=e[e.length-1];return function(){for(var t=r.apply(void 0,arguments),n=e.length-2;n>=0;n--){var o=e[n];t=o(t)}return t}}e.__esModule=!0,e.default=n},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0,e.createEventHandlerWithConfig=void 0;var o=n(13),u=r(o),a=n(19),i=n(5),f=e.createEventHandlerWithConfig=function(t){return function(){var e,n=(0,a.createChangeEmitter)(),r=t.fromESObservable((e={subscribe:function(t){var e=n.listen(function(e){return t.next(e)});return{unsubscribe:e}}},e[u.default]=function(){return this},e));return{handler:n.emit,stream:r}}},c=f(i.config);e.default=c},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var a=n(3),i=function(t){return function(e){function n(){return r(this,n),o(this,e.apply(this,arguments))}return u(n,e),n.prototype.componentWillMount=function(){t(this.props)},n.prototype.componentWillReceiveProps=function(e){t(e)},n.prototype.render=function(){return null},n}(a.Component)};e.default=i},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(1),u=r(o),a=n(2),i=r(a),f=function(t){return function(e){var n=(0,i.default)(e),r=function(t){return n(t)};return r.defaultProps=t,r}};e.default=(0,u.default)(f,"defaultProps")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u=n(1),a=r(u),i=n(2),f=r(i),c=function(t){return function(e){var n=(0,f.default)(e);return function(e){return n(o({},e,e[t]))}}};e.default=(0,a.default)(c,"flattenProp")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u=n(1),a=r(u),i=n(2),f=r(i),c=function(t){return function(e){var n=(0,f.default)(e),r=function(t,e){return n(o({},t,e))};return r.contextTypes=t,r}};e.default=(0,a.default)(c,"getContext")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(50),u=r(o),a=function(t){return function(e){var n=t(e);return(0,u.default)(n,e),n}};e.default=a},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0,e.setObservableConfig=e.createEventHandler=e.mapPropsStream=e.componentFromStream=e.hoistStatics=e.nest=e.componentFromProp=e.createSink=e.createEagerFactory=e.createEagerElement=e.isClassComponent=e.shallowEqual=e.wrapDisplayName=e.getDisplayName=e.compose=e.setDisplayName=e.setPropTypes=e.setStatic=e.toClass=e.lifecycle=e.getContext=e.withContext=e.onlyUpdateForPropTypes=e.onlyUpdateForKeys=e.pure=e.shouldUpdate=e.renderNothing=e.renderComponent=e.branch=e.withReducer=e.withState=e.flattenProp=e.renameProps=e.renameProp=e.defaultProps=e.withHandlers=e.withPropsOnChange=e.withProps=e.mapProps=void 0;var o=n(4),u=r(o),a=n(44),i=r(a),f=n(45),c=r(f),s=n(43),l=r(s),p=n(25),d=r(p),h=n(35),y=r(h),v=n(36),b=r(v),_=n(26),m=r(_),O=n(47),w=r(O),g=n(46),P=r(g),M=n(20),j=r(M),E=n(37),C=r(E),S=n(38),x=r(S),T=n(10),R=r(T),F=n(34),N=r(F),W=n(17),U=r(W),H=n(33),V=r(H),A=n(42),D=r(A),k=n(27),q=r(k),$=n(30),K=r($),L=n(41),z=r(L),B=n(9),G=r(B),I=n(40),J=r(I),Q=n(39),X=r(Q),Y=n(22),Z=r(Y),tt=n(7),et=r(tt),nt=n(48),rt=r(nt),ot=n(6),ut=r(ot),at=n(8),it=r(at),ft=n(15),ct=r(ft),st=n(2),lt=r(st),pt=n(24),dt=r(pt),ht=n(21),yt=r(ht),vt=n(32),bt=r(vt),_t=n(28),mt=r(_t),Ot=n(14),wt=r(Ot),gt=n(31),Pt=r(gt),Mt=n(23),jt=r(Mt),Et=n(5),Ct=r(Et);e.mapProps=u.default,e.withProps=i.default,e.withPropsOnChange=c.default,e.withHandlers=l.default,e.defaultProps=d.default,e.renameProp=y.default,e.renameProps=b.default,e.flattenProp=m.default,e.withState=w.default,e.withReducer=P.default,e.branch=j.default,e.renderComponent=C.default,e.renderNothing=x.default,e.shouldUpdate=R.default,e.pure=N.default,e.onlyUpdateForKeys=U.default,e.onlyUpdateForPropTypes=V.default,e.withContext=D.default,e.getContext=q.default,e.lifecycle=K.default,e.toClass=z.default,e.setStatic=G.default,e.setPropTypes=J.default,e.setDisplayName=X.default,e.compose=Z.default,e.getDisplayName=et.default,e.wrapDisplayName=rt.default,e.shallowEqual=ut.default,e.isClassComponent=it.default,e.createEagerElement=ct.default,e.createEagerFactory=lt.default,e.createSink=dt.default,e.componentFromProp=yt.default,e.nest=bt.default,e.hoistStatics=mt.default,e.componentFromStream=wt.default,e.mapPropsStream=Pt.default,e.createEventHandler=jt.default,e.setObservableConfig=Ct.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u=n(3),a=n(1),i=r(a),f=n(2),c=r(f),s=function(t){return function(e){var n=(0,c.default)(e);return(0,u.createClass)(o({},t,{render:function(){return n(o({},this.props,this.state))}}))}};e.default=(0,i.default)(s,"lifecycle")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0,e.mapPropsStreamWithConfig=void 0;var o=n(13),u=r(o),a=n(2),i=r(a),f=n(1),c=r(f),s=n(14),l=n(5),p=function(t){return t},d=(0,s.componentFromStreamWithConfig)({fromESObservable:p,toESObservable:p}),h=e.mapPropsStreamWithConfig=function(t){return function(e){return function(n){var r=(0,i.default)(n),o=t.fromESObservable,a=t.toESObservable;return d(function(t){var n;return n={subscribe:function(n){var u=a(e(o(t))).subscribe({next:function(t){return n.next(r(t))}});return{unsubscribe:function(){return u.unsubscribe()}}}},n[u.default]=function(){return this},n})}}},y=h(l.config);e.default=(0,c.default)(y,"mapPropsStream")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){var n={};for(var r in t)e.indexOf(r)<0&&Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}e.__esModule=!0;var u=n(2),a=r(u),i=function(){for(var t=arguments.length,e=Array(t),n=0;t>n;n++)e[n]=arguments[n];var r=e.map(a.default),u=function(t){var e=o(t,[]),n=t.children;return r.reduceRight(function(t,n){return n(e,t)},n)};return u};e.default=i},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(17),u=r(o),a=n(1),i=r(a),f=function(t){var e=t.propTypes,n=Object.keys(e||{}),r=(0,u.default)(n)(t);return r};e.default=(0,i.default)(f,"onlyUpdateForPropTypes",!0,!0)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(10),u=r(o),a=n(6),i=r(a),f=n(1),c=r(f),s=(0,u.default)(function(t,e){return!(0,i.default)(t,e)});e.default=(0,c.default)(s,"pure",!0,!0)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u=n(11),a=r(u),i=n(4),f=r(i),c=n(1),s=r(c),l=function(t,e){return(0,f.default)(function(n){var r;return o({},(0,a.default)(n,[t]),(r={},r[e]=n[t],r))})};e.default=(0,s.default)(l,"renameProp")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u=n(11),a=r(u),i=n(12),f=r(i),c=n(4),s=r(c),l=n(1),p=r(l),d=Object.keys,h=function(t,e){return d(t).reduce(function(n,r){var o=t[r];return n[e(o,r)]=o,n},{})},y=function(t){return(0,s.default)(function(e){return o({},(0,a.default)(e,d(t)),h((0,f.default)(e,d(t)),function(e,n){return t[n]}))})};e.default=(0,p.default)(y,"renameProps")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(1),u=r(o),a=n(2),i=r(a),f=function(t){return function(e){var n=(0,i.default)(t),r=function(t){return n(t)};return r}};e.default=(0,u.default)(f,"renderComponent",!1)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(1),u=r(o),a=function(t){var e=function(){return null};return e.displayName="Nothing",e};e.default=(0,u.default)(a,"renderNothing",!1,!0)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(9),u=r(o),a=n(1),i=r(a),f=function(t){return(0,u.default)("displayName",t)};e.default=(0,i.default)(f,"setDisplayName",!1)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(9),u=r(o),a=n(1),i=r(a),f=function(t){return(0,u.default)("propTypes",t)};e.default=(0,i.default)(f,"setPropTypes",!1)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var i=n(3),f=r(i),c=n(7),s=r(c),l=n(8),p=r(l),d=function(t){if((0,p.default)(t))return t;var e=function(e){function n(){return o(this,n),u(this,e.apply(this,arguments))}return a(n,e),n.prototype.render=function(){return"string"==typeof t?f.default.createElement("baseComponent",this.props):t(this.props,this.context)},n}(i.Component);return e.displayName=(0,s.default)(t),e.propTypes=t.propTypes,e.contextTypes=t.contextTypes,e.defaultProps=t.defaultProps,e};e.default=d},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var i=n(3),f=n(1),c=r(f),s=n(2),l=r(s),p=function(t,e){return function(n){var r=(0,l.default)(n),f=function(t){function n(){var r,a,i;o(this,n);for(var f=arguments.length,c=Array(f),s=0;f>s;s++)c[s]=arguments[s];return r=a=u(this,t.call.apply(t,[this].concat(c))),a.getChildContext=function(){return e(a.props)},i=r,u(a,i)}return a(n,t),n.prototype.render=function(){return r(this.props)},n}(i.Component);return f.childContextTypes=t,f}};e.default=(0,c.default)(p,"withContext")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var i=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},f=n(3),c=n(2),s=r(c),l=n(1),p=r(l),d=function(t,e){var n=[],r=0;for(var o in t)t.hasOwnProperty(o)&&(r+=1,n[o]=e(t[o],o,r));return n},h=function(t){return function(e){var n,r,c,l=(0,s.default)(e);return r=n=function(t){function e(){var n,r,a;o(this,e);for(var i=arguments.length,f=Array(i),s=0;i>s;s++)f[s]=arguments[s];return n=r=u(this,t.call.apply(t,[this].concat(f))),c.call(r),a=n,u(r,a)}return a(e,t),e.prototype.componentWillReceiveProps=function(){this.cachedHandlers={}},e.prototype.render=function(){return l(i({},this.props,this.handlers))},e}(f.Component),c=function(){var e=this;this.cachedHandlers={},this.handlers=d(t,function(t,n){return function(){var r=e.cachedHandlers[n];if(r)return r.apply(void 0,arguments);var o=t(e.props);return e.cachedHandlers[n]=o,o.apply(void 0,arguments)}})},r}};e.default=(0,p.default)(h,"withHandlers")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u=n(1),a=r(u),i=n(4),f=r(i),c=function(t){return(0,f.default)(function(e){return o({},e,"function"==typeof t?t(e):t)})};e.default=(0,a.default)(c,"withProps")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var i=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},f=n(3),c=n(12),s=r(c),l=n(6),p=r(l),d=n(1),h=r(d),y=n(2),v=r(y),b=function(t,e){return function(n){var r=(0,v.default)(n),c="function"==typeof t?t:function(e,n){return!(0,p.default)((0,s.default)(e,t),(0,s.default)(n,t))};return function(t){function n(){var r,a,i;o(this,n);for(var f=arguments.length,c=Array(f),s=0;f>s;s++)c[s]=arguments[s];return r=a=u(this,t.call.apply(t,[this].concat(c))),a.computedProps=e(a.props),i=r,u(a,i)}return a(n,t),n.prototype.componentWillReceiveProps=function(t){c(this.props,t)&&(this.computedProps=e(t))},n.prototype.render=function(){return r(i({},this.props,this.computedProps))},n}(f.Component)}};e.default=(0,h.default)(b,"withPropsOnChange")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var i=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},f=n(3),c=n(1),s=r(c),l=n(2),p=r(l),d=function(t,e,n,r){return function(c){var s=(0,p.default)(c);return function(f){function c(){var t,e,a;o(this,c);for(var i=arguments.length,s=Array(i),l=0;i>l;l++)s[l]=arguments[l];return t=e=u(this,f.call.apply(f,[this].concat(s))),e.state={stateValue:"function"==typeof r?r(e.props):r},e.dispatch=function(t){return e.setState(function(e){var r=e.stateValue;return{stateValue:n(r,t)}})},a=t,u(e,a)}return a(c,f),c.prototype.render=function(){var n;return s(i({},this.props,(n={},n[t]=this.state.stateValue,n[e]=this.dispatch,n)))},c}(f.Component)}};e.default=(0,s.default)(d,"withReducer")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var i=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},f=n(3),c=n(1),s=r(c),l=n(2),p=r(l),d=function(t,e,n){return function(r){var c=(0,p.default)(r);return function(r){function f(){var t,e,a;o(this,f);for(var i=arguments.length,c=Array(i),s=0;i>s;s++)c[s]=arguments[s];return t=e=u(this,r.call.apply(r,[this].concat(c))),e.state={stateValue:"function"==typeof n?n(e.props):n},e.updateStateValue=function(t,n){return e.setState(function(e){var n=e.stateValue;return{stateValue:"function"==typeof t?t(n):t}},n)},a=t,u(e,a)}return a(f,r),f.prototype.render=function(){var n;return c(i({},this.props,(n={},n[t]=this.state.stateValue,n[e]=this.updateStateValue,n)))},f}(f.Component)}};e.default=(0,s.default)(d,"withState")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(7),u=r(o),a=function(t,e){return e+"("+(0,u.default)(t)+")"};e.default=a},function(t,e){"use strict";function n(t,e){return t===e?0!==t||1/t===1/e:t!==t&&e!==e}function r(t,e){if(n(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var r=Object.keys(t),u=Object.keys(e);if(r.length!==u.length)return!1;for(var a=0;r.length>a;a++)if(!o.call(e,r[a])||!n(t[r[a]],e[r[a]]))return!1;return!0}var o=Object.prototype.hasOwnProperty;t.exports=r},function(t,e){"use strict";var n={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0};t.exports=function(t,e){if("string"!=typeof e)for(var o=Object.getOwnPropertyNames(e),u=0;o.length>u;++u)if(!n[o[u]]&&!r[o[u]])try{t[o[u]]=e[o[u]]}catch(a){}return t}},function(t,e){"use strict";t.exports=function(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}}])}); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.Recompose=e(require("react")):t.Recompose=e(t.React)}(this,function(t){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){t.exports=n(29)},function(t,e,n){"use strict";e.__esModule=!0;var r=function(t,e){return t};e.default=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(18),u=r(o),a=n(16),i=r(a),f=function(t){var e=(0,i.default)(t);return function(n,r){return(0,u.default)(!1,e,t,n,r)}};e.default=f},function(e,n){e.exports=t},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(1),u=r(o),a=n(2),i=r(a),f=function(t){return function(e){var n=(0,i.default)(e);return function(e){return n(t(e))}}};e.default=(0,u.default)(f,"mapProps")},function(t,e){"use strict";e.__esModule=!0;var n={fromESObservable:null,toESObservable:null},r=function(t){n=t};e.config={fromESObservable:function(t){return"function"==typeof n.fromESObservable?n.fromESObservable(t):t},toESObservable:function(t){return"function"==typeof n.toESObservable?n.toESObservable(t):t}};e.default=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(49),u=r(o);e.default=u.default},function(t,e){"use strict";e.__esModule=!0;var n=function(t){if("string"==typeof t)return t;if(t)return t.displayName||t.name||"Component"};e.default=n},function(t,e){"use strict";e.__esModule=!0;var n=function(t){return!(!t||!t.prototype||"object"!=typeof t.prototype.isReactComponent)};e.default=n},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(1),u=r(o),a=function(t,e){return function(n){return n[t]=e,n}};e.default=(0,u.default)(a,"setStatic",!1)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var i=n(3),f=n(1),c=r(f),s=n(2),l=r(s),p=function(t){return function(e){var n=(0,l.default)(e);return function(e){function r(){return o(this,r),u(this,e.apply(this,arguments))}return a(r,e),r.prototype.shouldComponentUpdate=function(e){return t(this.props,e)},r.prototype.render=function(){return n(this.props)},r}(i.Component)}};e.default=(0,c.default)(p,"shouldUpdate")},function(t,e){"use strict";function n(t,e){var n={};for(var r in t)e.indexOf(r)<0&&Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}e.__esModule=!0;var r=function(t,e){for(var r=n(t,[]),o=0;e.length>o;o++){var u=e[o];r.hasOwnProperty(u)&&delete r[u]}return r};e.default=r},function(t,e){"use strict";e.__esModule=!0;var n=function(t,e){for(var n={},r=0;e.length>r;r++){var o=e[r];t.hasOwnProperty(o)&&(n[o]=t[o])}return n};e.default=n},function(t,e,n){(function(e){"use strict";t.exports=n(51)(e||window||this)}).call(e,function(){return this}())},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0,e.componentFromStreamWithConfig=void 0;var i=n(3),f=n(19),c=n(13),s=r(c),l=n(5),p=e.componentFromStreamWithConfig=function(t){return function(e){return function(n){function r(){var a,i,c,l;o(this,r);for(var p=arguments.length,d=Array(p),h=0;p>h;h++)d[h]=arguments[h];return i=c=u(this,n.call.apply(n,[this].concat(d))),c.state={vdom:null},c.propsEmitter=(0,f.createChangeEmitter)(),c.props$=t.fromESObservable((a={subscribe:function(t){var e=c.propsEmitter.listen(function(e){return t.next(e)});return{unsubscribe:e}}},a[s.default]=function(){return this},a)),c.vdom$=t.toESObservable(e(c.props$)),l=i,u(c,l)}return a(r,n),r.prototype.componentWillMount=function(){var t=this;this.subscription=this.vdom$.subscribe({next:function(e){t.setState({vdom:e})}}),this.propsEmitter.emit(this.props)},r.prototype.componentWillReceiveProps=function(t){this.propsEmitter.emit(t)},r.prototype.shouldComponentUpdate=function(t,e){return e.vdom!==this.state.vdom},r.prototype.componentWillUnmount=function(){this.subscription.unsubscribe()},r.prototype.render=function(){return this.state.vdom},r}(i.Component)}},d=p(l.config);e.default=d},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(18),u=r(o),a=n(16),i=r(a),f=function(t,e,n){var r=(0,i.default)(t),o=e&&e.hasOwnProperty("key");return(0,u.default)(o,r,t,e,n)};e.default=f},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(8),u=r(o),a=function(t){return!("function"!=typeof t||(0,u.default)(t)||t.defaultProps||t.contextTypes)};e.default=a},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(10),u=r(o),a=n(6),i=r(a),f=n(1),c=r(f),s=n(12),l=r(s),p=function(t){return(0,u.default)(function(e,n){return!(0,i.default)((0,l.default)(n,t),(0,l.default)(e,t))})};e.default=(0,c.default)(p,"onlyUpdateForKeys")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u=n(3),a=r(u),i=function(t,e,n,r,u){if(!t&&e)return n(u?o({},r,{children:u}):r);var i=n;return u?a.default.createElement(i,r,u):a.default.createElement(i,r)};e.default=i},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.createChangeEmitter=function(){function t(){o===r&&(o=r.slice())}function e(e){if("function"!=typeof e)throw Error("Expected listener to be a function.");var n=!0;return t(),o.push(e),function(){if(n){n=!1,t();var r=o.indexOf(e);o.splice(r,1)}}}function n(){r=o;for(var t=r,e=0;t.length>e;e++)t[e].apply(t,arguments)}var r=[],o=r;return{listen:e,emit:n}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(1),u=r(o),a=n(2),i=r(a),f=function(t){return t},c=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f;return function(r){var o=void 0,u=void 0;return function(a){return t(a)?(o=o||(0,i.default)(e(r)))(a):(u=u||(0,i.default)(n(r)))(a)}}};e.default=(0,u.default)(c,"branch")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(11),u=r(o),a=n(15),i=r(a),f=function(t){var e=function(e){return(0,i.default)(e[t],(0,u.default)(e,[t]))};return e.displayName="componentFromProp("+t+")",e};e.default=f},function(t,e){"use strict";function n(){for(var t=arguments.length,e=Array(t),n=0;t>n;n++)e[n]=arguments[n];if(0===e.length)return function(t){return t};if(1===e.length)return e[0];var r=e[e.length-1];return function(){for(var t=r.apply(void 0,arguments),n=e.length-2;n>=0;n--){var o=e[n];t=o(t)}return t}}e.__esModule=!0,e.default=n},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.createEventHandlerWithConfig=void 0;var o=n(13),u=r(o),a=n(19),i=n(5),f=e.createEventHandlerWithConfig=function(t){return function(){var e,n=(0,a.createChangeEmitter)(),r=t.fromESObservable((e={subscribe:function(t){var e=n.listen(function(e){return t.next(e)});return{unsubscribe:e}}},e[u.default]=function(){return this},e));return{handler:n.emit,stream:r}}},c=f(i.config);e.default=c},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var a=n(3),i=function(t){return function(e){function n(){return r(this,n),o(this,e.apply(this,arguments))}return u(n,e),n.prototype.componentWillMount=function(){t(this.props)},n.prototype.componentWillReceiveProps=function(e){t(e)},n.prototype.render=function(){return null},n}(a.Component)};e.default=i},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(1),u=r(o),a=n(2),i=r(a),f=function(t){return function(e){var n=(0,i.default)(e),r=function(t){return n(t)};return r.defaultProps=t,r}};e.default=(0,u.default)(f,"defaultProps")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u=n(1),a=r(u),i=n(2),f=r(i),c=function(t){return function(e){var n=(0,f.default)(e);return function(e){return n(o({},e,e[t]))}}};e.default=(0,a.default)(c,"flattenProp")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u=n(1),a=r(u),i=n(2),f=r(i),c=function(t){return function(e){var n=(0,f.default)(e),r=function(t,e){return n(o({},t,e))};return r.contextTypes=t,r}};e.default=(0,a.default)(c,"getContext")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(50),u=r(o),a=function(t){return function(e){var n=t(e);return(0,u.default)(n,e),n}};e.default=a},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.setObservableConfig=e.createEventHandler=e.mapPropsStream=e.componentFromStream=e.hoistStatics=e.nest=e.componentFromProp=e.createSink=e.createEagerFactory=e.createEagerElement=e.isClassComponent=e.shallowEqual=e.wrapDisplayName=e.getDisplayName=e.compose=e.setDisplayName=e.setPropTypes=e.setStatic=e.toClass=e.lifecycle=e.getContext=e.withContext=e.onlyUpdateForPropTypes=e.onlyUpdateForKeys=e.pure=e.shouldUpdate=e.renderNothing=e.renderComponent=e.branch=e.withReducer=e.withState=e.flattenProp=e.renameProps=e.renameProp=e.defaultProps=e.withHandlers=e.withPropsOnChange=e.withProps=e.mapProps=void 0;var o=n(4),u=r(o),a=n(44),i=r(a),f=n(45),c=r(f),s=n(43),l=r(s),p=n(25),d=r(p),h=n(35),y=r(h),v=n(36),_=r(v),b=n(26),m=r(b),O=n(47),w=r(O),g=n(46),P=r(g),M=n(20),j=r(M),E=n(37),C=r(E),S=n(38),x=r(S),T=n(10),R=r(T),N=n(34),F=r(N),W=n(17),U=r(W),V=n(33),H=r(V),A=n(42),D=r(A),k=n(27),q=r(k),$=n(30),K=r($),z=n(41),I=r(z),B=n(9),G=r(B),J=n(40),L=r(J),Q=n(39),X=r(Q),Y=n(22),Z=r(Y),tt=n(7),et=r(tt),nt=n(48),rt=r(nt),ot=n(6),ut=r(ot),at=n(8),it=r(at),ft=n(15),ct=r(ft),st=n(2),lt=r(st),pt=n(24),dt=r(pt),ht=n(21),yt=r(ht),vt=n(32),_t=r(vt),bt=n(28),mt=r(bt),Ot=n(14),wt=r(Ot),gt=n(31),Pt=r(gt),Mt=n(23),jt=r(Mt),Et=n(5),Ct=r(Et);e.mapProps=u.default,e.withProps=i.default,e.withPropsOnChange=c.default,e.withHandlers=l.default,e.defaultProps=d.default,e.renameProp=y.default,e.renameProps=_.default,e.flattenProp=m.default,e.withState=w.default,e.withReducer=P.default,e.branch=j.default,e.renderComponent=C.default,e.renderNothing=x.default,e.shouldUpdate=R.default,e.pure=F.default,e.onlyUpdateForKeys=U.default,e.onlyUpdateForPropTypes=H.default,e.withContext=D.default,e.getContext=q.default,e.lifecycle=K.default,e.toClass=I.default,e.setStatic=G.default,e.setPropTypes=L.default,e.setDisplayName=X.default,e.compose=Z.default,e.getDisplayName=et.default,e.wrapDisplayName=rt.default,e.shallowEqual=ut.default,e.isClassComponent=it.default,e.createEagerElement=ct.default,e.createEagerFactory=lt.default,e.createSink=dt.default,e.componentFromProp=yt.default,e.nest=_t.default,e.hoistStatics=mt.default,e.componentFromStream=wt.default,e.mapPropsStream=Pt.default,e.createEventHandler=jt.default,e.setObservableConfig=Ct.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u=n(3),a=n(1),i=r(a),f=n(2),c=r(f),s=function(t){return function(e){var n=(0,c.default)(e);return(0,u.createClass)(o({},t,{render:function(){return n(o({},this.props,this.state))}}))}};e.default=(0,i.default)(s,"lifecycle")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.mapPropsStreamWithConfig=void 0;var o=n(13),u=r(o),a=n(2),i=r(a),f=n(1),c=r(f),s=n(14),l=n(5),p=function(t){return t},d=(0,s.componentFromStreamWithConfig)({fromESObservable:p,toESObservable:p}),h=e.mapPropsStreamWithConfig=function(t){return function(e){return function(n){var r=(0,i.default)(n),o=t.fromESObservable,a=t.toESObservable;return d(function(t){var n;return n={subscribe:function(n){var u=a(e(o(t))).subscribe({next:function(t){return n.next(r(t))}});return{unsubscribe:function(){return u.unsubscribe()}}}},n[u.default]=function(){return this},n})}}},y=h(l.config);e.default=(0,c.default)(y,"mapPropsStream")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var n={};for(var r in t)e.indexOf(r)<0&&Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}e.__esModule=!0;var u=n(2),a=r(u),i=function(){for(var t=arguments.length,e=Array(t),n=0;t>n;n++)e[n]=arguments[n];var r=e.map(a.default),u=function(t){var e=o(t,[]),n=t.children;return r.reduceRight(function(t,n){return n(e,t)},n)};return u};e.default=i},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(17),u=r(o),a=n(1),i=r(a),f=function(t){var e=t.propTypes,n=Object.keys(e||{}),r=(0,u.default)(n)(t);return r};e.default=(0,i.default)(f,"onlyUpdateForPropTypes",!0,!0)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(10),u=r(o),a=n(6),i=r(a),f=n(1),c=r(f),s=(0,u.default)(function(t,e){return!(0,i.default)(t,e)});e.default=(0,c.default)(s,"pure",!0,!0)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u=n(11),a=r(u),i=n(4),f=r(i),c=n(1),s=r(c),l=function(t,e){return(0,f.default)(function(n){var r;return o({},(0,a.default)(n,[t]),(r={},r[e]=n[t],r))})};e.default=(0,s.default)(l,"renameProp")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u=n(11),a=r(u),i=n(12),f=r(i),c=n(4),s=r(c),l=n(1),p=r(l),d=Object.keys,h=function(t,e){return d(t).reduce(function(n,r){var o=t[r];return n[e(o,r)]=o,n},{})},y=function(t){return(0,s.default)(function(e){return o({},(0,a.default)(e,d(t)),h((0,f.default)(e,d(t)),function(e,n){return t[n]}))})};e.default=(0,p.default)(y,"renameProps")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(1),u=r(o),a=n(2),i=r(a),f=function(t){return function(e){var n=(0,i.default)(t),r=function(t){return n(t)};return r}};e.default=(0,u.default)(f,"renderComponent",!1)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(1),u=r(o),a=function(t){var e=function(){return null};return e.displayName="Nothing",e};e.default=(0,u.default)(a,"renderNothing",!1,!0)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(9),u=r(o),a=n(1),i=r(a),f=function(t){return(0,u.default)("displayName",t)};e.default=(0,i.default)(f,"setDisplayName",!1)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(9),u=r(o),a=n(1),i=r(a),f=function(t){return(0,u.default)("propTypes",t)};e.default=(0,i.default)(f,"setPropTypes",!1)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var i=n(3),f=r(i),c=n(7),s=r(c),l=n(8),p=r(l),d=function(t){if((0,p.default)(t))return t;var e=function(e){function n(){return o(this,n),u(this,e.apply(this,arguments))}return a(n,e),n.prototype.render=function(){return"string"==typeof t?f.default.createElement("baseComponent",this.props):t(this.props,this.context)},n}(i.Component);return e.displayName=(0,s.default)(t),e.propTypes=t.propTypes,e.contextTypes=t.contextTypes,e.defaultProps=t.defaultProps,e};e.default=d},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var i=n(3),f=n(1),c=r(f),s=n(2),l=r(s),p=function(t,e){return function(n){var r=(0,l.default)(n),f=function(t){function n(){var r,a,i;o(this,n);for(var f=arguments.length,c=Array(f),s=0;f>s;s++)c[s]=arguments[s];return r=a=u(this,t.call.apply(t,[this].concat(c))),a.getChildContext=function(){return e(a.props)},i=r,u(a,i)}return a(n,t),n.prototype.render=function(){return r(this.props)},n}(i.Component);return f.childContextTypes=t,f}};e.default=(0,c.default)(p,"withContext")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var i=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},f=n(3),c=n(2),s=r(c),l=n(1),p=r(l),d=function(t,e){var n=[],r=0;for(var o in t)t.hasOwnProperty(o)&&(r+=1,n[o]=e(t[o],o,r));return n},h=function(t){return function(e){var n,r,c,l=(0,s.default)(e);return r=n=function(t){function e(){var n,r,a;o(this,e);for(var i=arguments.length,f=Array(i),s=0;i>s;s++)f[s]=arguments[s];return n=r=u(this,t.call.apply(t,[this].concat(f))),c.call(r),a=n,u(r,a)}return a(e,t),e.prototype.componentWillReceiveProps=function(){this.cachedHandlers={}},e.prototype.render=function(){return l(i({},this.props,this.handlers))},e}(f.Component),c=function(){var e=this;this.cachedHandlers={},this.handlers=d(t,function(t,n){return function(){var r=e.cachedHandlers[n];if(r)return r.apply(void 0,arguments);var o=t(e.props);return e.cachedHandlers[n]=o,o.apply(void 0,arguments)}})},r}};e.default=(0,p.default)(h,"withHandlers")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u=n(1),a=r(u),i=n(4),f=r(i),c=function(t){return(0,f.default)(function(e){return o({},e,"function"==typeof t?t(e):t)})};e.default=(0,a.default)(c,"withProps")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var i=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},f=n(3),c=n(12),s=r(c),l=n(6),p=r(l),d=n(1),h=r(d),y=n(2),v=r(y),_=function(t,e){return function(n){var r=(0,v.default)(n),c="function"==typeof t?t:function(e,n){return!(0,p.default)((0,s.default)(e,t),(0,s.default)(n,t))};return function(t){function n(){var r,a,i;o(this,n);for(var f=arguments.length,c=Array(f),s=0;f>s;s++)c[s]=arguments[s];return r=a=u(this,t.call.apply(t,[this].concat(c))),a.computedProps=e(a.props),i=r,u(a,i)}return a(n,t),n.prototype.componentWillReceiveProps=function(t){c(this.props,t)&&(this.computedProps=e(t))},n.prototype.render=function(){return r(i({},this.props,this.computedProps))},n}(f.Component)}};e.default=(0,h.default)(_,"withPropsOnChange")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var i=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},f=n(3),c=n(1),s=r(c),l=n(2),p=r(l),d=function(t,e,n,r){return function(c){var s=(0,p.default)(c);return function(f){function c(){var t,e,r;o(this,c);for(var a=arguments.length,i=Array(a),s=0;a>s;s++)i[s]=arguments[s];return t=e=u(this,f.call.apply(f,[this].concat(i))),e.state={stateValue:e.initalizeStateValue()},e.dispatch=function(t){return e.setState(function(e){var r=e.stateValue;return{stateValue:n(r,t)}})},r=t,u(e,r)}return a(c,f),c.prototype.initalizeStateValue=function(){return void 0!==r?"function"==typeof r?r(this.props):r:n(void 0,{type:"@@recompose/INIT"})},c.prototype.render=function(){var n;return s(i({},this.props,(n={},n[t]=this.state.stateValue,n[e]=this.dispatch,n)))},c}(f.Component)}};e.default=(0,s.default)(d,"withReducer")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var i=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},f=n(3),c=n(1),s=r(c),l=n(2),p=r(l),d=function(t,e,n){return function(r){var c=(0,p.default)(r);return function(r){function f(){var t,e,a;o(this,f);for(var i=arguments.length,c=Array(i),s=0;i>s;s++)c[s]=arguments[s];return t=e=u(this,r.call.apply(r,[this].concat(c))),e.state={stateValue:"function"==typeof n?n(e.props):n},e.updateStateValue=function(t,n){return e.setState(function(e){var n=e.stateValue;return{stateValue:"function"==typeof t?t(n):t}},n)},a=t,u(e,a)}return a(f,r),f.prototype.render=function(){var n;return c(i({},this.props,(n={},n[t]=this.state.stateValue,n[e]=this.updateStateValue,n)))},f}(f.Component)}};e.default=(0,s.default)(d,"withState")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(7),u=r(o),a=function(t,e){return e+"("+(0,u.default)(t)+")"};e.default=a},function(t,e){"use strict";function n(t,e){return t===e?0!==t||1/t===1/e:t!==t&&e!==e}function r(t,e){if(n(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var r=Object.keys(t),u=Object.keys(e);if(r.length!==u.length)return!1;for(var a=0;r.length>a;a++)if(!o.call(e,r[a])||!n(t[r[a]],e[r[a]]))return!1;return!0}var o=Object.prototype.hasOwnProperty;t.exports=r},function(t,e){"use strict";var n={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0};t.exports=function(t,e){for(var o=Object.getOwnPropertyNames(e),u=0;o.length>u;++u)if(!n[o[u]]&&!r[o[u]])try{t[o[u]]=e[o[u]]}catch(t){}return t}},function(t,e){"use strict";t.exports=function(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}}])}); |
@@ -5,4 +5,4 @@ 'use strict'; | ||
var createHelper = function createHelper(func, helperName) { | ||
var setDisplayName = arguments.length <= 2 || arguments[2] === undefined ? true : arguments[2]; | ||
var noArgs = arguments.length <= 3 || arguments[3] === undefined ? false : arguments[3]; | ||
var setDisplayName = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; | ||
var noArgs = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false; | ||
@@ -31,9 +31,2 @@ if (process.env.NODE_ENV !== 'production' && setDisplayName) { | ||
if (args.length > func.length) { | ||
/* eslint-disable */ | ||
console.error( | ||
/* eslint-enable */ | ||
'Too many arguments passed to ' + helperName + '(). It should called ' + ('like so: ' + helperName + '(...args)(BaseComponent).')); | ||
} | ||
return function (BaseComponent) { | ||
@@ -40,0 +33,0 @@ var Component = func.apply(undefined, args)(BaseComponent); |
@@ -12,5 +12,5 @@ 'use strict'; | ||
var isReferentiallyTransparentFunctionComponent = function isReferentiallyTransparentFunctionComponent(Component) { | ||
return Boolean(typeof Component === 'function' && !(0, _isClassComponent2.default)(Component) && !Component.defaultProps && !Component.contextTypes && !Component.propTypes); | ||
return Boolean(typeof Component === 'function' && !(0, _isClassComponent2.default)(Component) && !Component.defaultProps && !Component.contextTypes && (process.env.NODE_ENV === 'production' || !Component.propTypes)); | ||
}; | ||
exports.default = isReferentiallyTransparentFunctionComponent; |
@@ -36,4 +36,4 @@ 'use strict'; | ||
var factory = (0, _createEagerFactory2.default)(BaseComponent); | ||
var fromESObservable = config.fromESObservable; | ||
var toESObservable = config.toESObservable; | ||
var fromESObservable = config.fromESObservable, | ||
toESObservable = config.toESObservable; | ||
@@ -40,0 +40,0 @@ return componentFromStream(function (props$) { |
@@ -20,5 +20,5 @@ 'use strict'; | ||
var Nest = function Nest(_ref) { | ||
var props = _objectWithoutProperties(_ref, []); | ||
var props = _objectWithoutProperties(_ref, []), | ||
children = _ref.children; | ||
var children = _ref.children; | ||
return factories.reduceRight(function (child, factory) { | ||
@@ -25,0 +25,0 @@ return factory(props, child); |
{ | ||
"name": "recompose", | ||
"version": "0.20.2", | ||
"version": "0.21.0", | ||
"author": "Andrew Clark <acdlite@me.com>", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -15,5 +15,2 @@ 'use strict'; | ||
// import React from 'react' | ||
var renderComponent = function renderComponent(Component) { | ||
@@ -25,3 +22,2 @@ return function (_) { | ||
}; | ||
// const RenderComponent = props => <Component {...props} /> | ||
if (process.env.NODE_ENV !== 'production') { | ||
@@ -28,0 +24,0 @@ /* eslint-disable global-require */ |
@@ -28,6 +28,5 @@ 'use strict'; | ||
} | ||
}); | ||
}), | ||
unsubscribe = _observable$subscribe.unsubscribe; | ||
var unsubscribe = _observable$subscribe.unsubscribe; | ||
return unsubscribe; | ||
@@ -34,0 +33,0 @@ }); |
@@ -41,3 +41,3 @@ 'use strict'; | ||
return _ret = (_temp = (_this = _possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.state = { | ||
stateValue: typeof initialState === 'function' ? initialState(_this.props) : initialState | ||
stateValue: _this.initalizeStateValue() | ||
}, _this.dispatch = function (action) { | ||
@@ -53,2 +53,9 @@ return _this.setState(function (_ref) { | ||
_class2.prototype.initalizeStateValue = function initalizeStateValue() { | ||
if (initialState !== undefined) { | ||
return typeof initialState === 'function' ? initialState(this.props) : initialState; | ||
} | ||
return reducer(undefined, { type: '@@recompose/INIT' }); | ||
}; | ||
_class2.prototype.render = function render() { | ||
@@ -55,0 +62,0 @@ var _extends2; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
453428
2832
7
1