Comparing version 0.18.0 to 0.18.1
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
var _react = require('react'); | ||
@@ -37,3 +33,3 @@ | ||
var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(_class2).call(this, props, context)); | ||
var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context)); | ||
@@ -47,27 +43,22 @@ _this.LeftComponent = null; | ||
_createClass(_class2, [{ | ||
key: 'computeChildComponent', | ||
value: function computeChildComponent(props) { | ||
if (test(props)) { | ||
this.LeftComponent = this.LeftComponent || left(BaseComponent); | ||
this.Component = this.LeftComponent; | ||
} else { | ||
this.RightComponent = this.RightComponent || right(BaseComponent); | ||
this.Component = this.RightComponent; | ||
} | ||
_class2.prototype.computeChildComponent = function computeChildComponent(props) { | ||
if (test(props)) { | ||
this.LeftComponent = this.LeftComponent || left(BaseComponent); | ||
this.Component = this.LeftComponent; | ||
} else { | ||
this.RightComponent = this.RightComponent || right(BaseComponent); | ||
this.Component = this.RightComponent; | ||
} | ||
}, { | ||
key: 'componentWillReceiveProps', | ||
value: function componentWillReceiveProps(nextProps) { | ||
this.computeChildComponent(nextProps); | ||
} | ||
}, { | ||
key: 'render', | ||
value: function render() { | ||
var Component = this.Component; | ||
}; | ||
return (0, _createElement2.default)(Component, this.props); | ||
} | ||
}]); | ||
_class2.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { | ||
this.computeChildComponent(nextProps); | ||
}; | ||
_class2.prototype.render = function render() { | ||
var Component = this.Component; | ||
return (0, _createElement2.default)(Component, this.props); | ||
}; | ||
return _class2; | ||
@@ -74,0 +65,0 @@ }(_react2.default.Component); |
@@ -1,2 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.Recompose=t(require("react")):e.Recompose=t(e.React)}(this,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(31)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=("function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},function(e,t){return e});t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.internalCreateElement=void 0;var o=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=n(3),a=r(u),i=n(32),f=r(i),c=function(e,t,n,r,u){if(!e&&t){var i=n;return i(u?o({},r,{children:u}):r)}return u?a.default.createElement(n,r,u):a.default.createElement(n,r)},l=(t.internalCreateElement=function(e){var t=(0,f.default)(e);return function(n,r){return c(!1,t,e,n,r)}},function(e,t,n){var r=(0,f.default)(e),o=t&&t.hasOwnProperty("key");return c(o,r,e,t,n)});t.default=l},function(t,n){t.exports=e},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(1),u=r(o),a=n(2),i=function(e){return function(t){var n=(0,a.internalCreateElement)(t);return function(t){return n(e(t))}}};t.default=(0,u.default)(i,"mapProps")},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(50),u=r(o);t.default=u.default},function(e,t){"use strict";function n(e,t){var n={};for(var r in e)t.indexOf(r)<0&&Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){for(var r=n(e,[]),o=0;t.length>o;o++){var u=t[o];r.hasOwnProperty(u)&&delete r[u]}return r};t.default=r},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){if("string"==typeof e)return e;if(e)return e.displayName||e.name||"Component"};t.default=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},r=function(e){return!(!e||!e.prototype||"object"!==n(e.prototype.isReactComponent))};t.default=r},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(1),u=r(o),a=function(e,t){return function(n){return n[e]=t,n}};t.default=(0,u.default)(a,"setStatic",!1)},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 u(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 i=function(){function e(e,t){for(var n=0;t.length>n;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=n(3),c=n(1),l=r(c),s=n(2),p=function(e){return function(t){var n=(0,s.internalCreateElement)(t);return function(t){function r(){return o(this,r),u(this,Object.getPrototypeOf(r).apply(this,arguments))}return a(r,t),i(r,[{key:"shouldComponentUpdate",value:function(t){return e(this.props,t)}},{key:"render",value:function(){return n(this.props)}}]),r}(f.Component)}};t.default=(0,l.default)(p,"shouldUpdate")},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){for(var n={},r=0;t.length>r;r++){var o=t[r];e.hasOwnProperty(o)&&(n[o]=e[o])}return n};t.default=n},function(e,t,n){function r(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=a,this.__views__=[]}var o=n(17),u=n(14),a=4294967295;r.prototype=o(u.prototype),r.prototype.constructor=r,e.exports=r},function(e,t,n){function r(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}var o=n(17),u=n(14);r.prototype=o(u.prototype),r.prototype.constructor=r,e.exports=r},function(e,t){function n(){}e.exports=n},function(e,t){var n=Array.isArray;e.exports=n},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(10),u=r(o),a=n(5),i=r(a),f=n(1),c=r(f),l=n(11),s=r(l),p=function(e){return(0,u.default)(function(t,n){return!(0,i.default)((0,s.default)(n,e),(0,s.default)(t,e))})};t.default=(0,c.default)(p,"onlyUpdateForKeys")},function(e,t,n){function r(e){return o(e)?u(e):{}}var o=n(21),u=Object.create;e.exports=r},function(e,t){function n(){}e.exports=n},function(e,t,n){function r(e){for(var t=e.name+"",n=o[t],r=a.call(o,t)?n.length:0;r--;){var u=n[r],i=u.func;if(null==i||i==e)return u.name}return t}var o=n(61),u=Object.prototype,a=u.hasOwnProperty;e.exports=r},function(e,t,n){function r(e){return u(e)&&o(e)}var o=n(65),u=n(22);e.exports=r},function(e,t){function n(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=n},function(e,t){function n(e){return!!e&&"object"==typeof e}e.exports=n},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 u(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 i=function(){function e(e,t){for(var n=0;t.length>n;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=n(3),c=r(f),l=n(1),s=r(l),p=n(2),d=r(p),y=function(e,t,n){return function(r){return function(f){function c(e,t){o(this,c);var n=u(this,Object.getPrototypeOf(c).call(this,e,t));return n.LeftComponent=null,n.RightComponent=null,n.computeChildComponent(n.props),n}return a(c,f),i(c,[{key:"computeChildComponent",value:function(o){e(o)?(this.LeftComponent=this.LeftComponent||t(r),this.Component=this.LeftComponent):(this.RightComponent=this.RightComponent||n(r),this.Component=this.RightComponent)}},{key:"componentWillReceiveProps",value:function(e){this.computeChildComponent(e)}},{key:"render",value:function(){var e=this.Component;return(0,d.default)(e,this.props)}}]),c}(c.default.Component)}};t.default=(0,s.default)(y,"branch")},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(6),u=r(o),a=n(2),i=r(a),f=function(e){var t=function(t){return(0,i.default)(t[e],(0,u.default)(t,[e]))};return t.displayName="componentFromProp("+e+")",t};t.default=f},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(63),u=r(o);t.default=u.default},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 u(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 a=function(){function e(e,t){for(var n=0;t.length>n;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(3),f=function(e){return function(t){function n(){return r(this,n),o(this,Object.getPrototypeOf(n).apply(this,arguments))}return u(n,t),a(n,[{key:"componentWillMount",value:function(){e(this.props)}},{key:"componentWillReceiveProps",value:function(t){e(t)}},{key:"render",value:function(){return null}}]),n}(i.Component)};t.default=f},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(1),u=r(o),a=n(2),i=function(e){return function(t){var n=(0,a.internalCreateElement)(t),r=function(e){return n(e)};return r.defaultProps=e,r}};t.default=(0,u.default)(i,"defaultProps")},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=n(6),a=r(u),i=n(1),f=r(i),c=n(2),l=function(e){return function(t){var n=(0,c.internalCreateElement)(t);return function(t){return n(o({},(0,a.default)(t,[e]),t[e]))}}};t.default=(0,f.default)(l,"flattenProp")},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=n(1),a=r(u),i=n(2),f=function(e){return function(t){var n=(0,i.internalCreateElement)(t),r=function(e,t){return n(o({},e,t))};return r.contextTypes=e,r}};t.default=(0,a.default)(f,"getContext")},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(51),u=r(o),a=function(e){return function(t){var n=e(t);return(0,u.default)(n,t),n}};t.default=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.hoistStatics=t.nest=t.componentFromProp=t.createSink=t.isClassComponent=t.shallowEqual=t.wrapDisplayName=t.getDisplayName=t.compose=t.setDisplayName=t.setPropTypes=t.setStatic=t.toClass=t.getContext=t.withContext=t.onlyUpdateForPropTypes=t.onlyUpdateForKeys=t.pure=t.shouldUpdate=t.renderNothing=t.renderComponent=t.branch=t.withReducer=t.withState=t.flattenProp=t.renameProps=t.renameProp=t.defaultProps=t.withHandlers=t.withPropsOnChange=t.withProps=t.mapProps=void 0;var o=n(4),u=r(o),a=n(45),i=r(a),f=n(46),c=r(f),l=n(44),s=r(l),p=n(27),d=r(p),y=n(36),v=r(y),h=n(37),_=r(h),b=n(28),O=r(b),m=n(48),j=r(m),P=n(47),w=r(P),g=n(23),x=r(g),C=n(38),M=r(C),E=n(39),T=r(E),k=n(10),S=r(k),R=n(35),N=r(R),A=n(16),F=r(A),U=n(34),V=r(U),D=n(43),q=r(D),L=n(29),W=r(L),H=n(42),K=r(H),G=n(9),I=r(G),z=n(41),B=r(z),J=n(40),Q=r(J),X=n(25),Y=r(X),Z=n(7),$=r(Z),ee=n(49),te=r(ee),ne=n(5),re=r(ne),oe=n(8),ue=r(oe),ae=n(26),ie=r(ae),fe=n(24),ce=r(fe),le=n(33),se=r(le),pe=n(30),de=r(pe);t.mapProps=u.default,t.withProps=i.default,t.withPropsOnChange=c.default,t.withHandlers=s.default,t.defaultProps=d.default,t.renameProp=v.default,t.renameProps=_.default,t.flattenProp=O.default,t.withState=j.default,t.withReducer=w.default,t.branch=x.default,t.renderComponent=M.default,t.renderNothing=T.default,t.shouldUpdate=S.default,t.pure=N.default,t.onlyUpdateForKeys=F.default,t.onlyUpdateForPropTypes=V.default,t.withContext=q.default,t.getContext=W.default,t.toClass=K.default,t.setStatic=I.default,t.setPropTypes=B.default,t.setDisplayName=Q.default,t.compose=Y.default,t.getDisplayName=$.default,t.wrapDisplayName=te.default,t.shallowEqual=re.default,t.isClassComponent=ue.default,t.createSink=ie.default,t.componentFromProp=ce.default,t.nest=se.default,t.hoistStatics=de.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(8),u=r(o),a=function(e){return!("function"!=typeof e||(0,u.default)(e)||e.defaultProps||e.contextTypes||e.propTypes)};t.default=a},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)<0&&Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),u=function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];var u=t.map(o.internalCreateElement),a=function(e){var t=r(e,[]),n=e.children;return u.reduceRight(function(e,n){return n(t,e)},n)};return a};t.default=u},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(16),u=r(o),a=n(1),i=r(a),f=function(e){var t=e.propTypes,n=Object.keys(t||{}),r=(0,u.default)(n)(e);return r};t.default=(0,i.default)(f,"onlyUpdateForPropTypes",!0,!0)},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(10),u=r(o),a=n(5),i=r(a),f=n(1),c=r(f),l=(0,u.default)(function(e,t){return!(0,i.default)(e,t)});t.default=(0,c.default)(l,"pure",!0,!0)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(6),i=r(a),f=n(4),c=r(f),l=n(1),s=r(l),p=function(e,t){return(0,c.default)(function(n){return u({},(0,i.default)(n,[e]),o({},t,n[e]))})};t.default=(0,s.default)(p,"renameProp")},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=n(6),a=r(u),i=n(11),f=r(i),c=n(4),l=r(c),s=n(1),p=r(s),d=Object.keys,y=function(e,t){return d(e).reduce(function(n,r){var o=e[r];return n[t(o,r)]=o,n},{})},v=function(e){return(0,l.default)(function(t){return o({},(0,a.default)(t,d(e)),y((0,f.default)(t,d(e)),function(t,n){return e[n]}))})};t.default=(0,p.default)(v,"renameProps")},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(1),u=r(o),a=n(2),i=function(e){return function(t){var n=(0,a.internalCreateElement)(e),r=function(e){return n(e)};return r}};t.default=(0,u.default)(i,"renderComponent",!1)},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(1),u=r(o),a=function(e){var t=function(){return null};return t.displayName="Nothing",t};t.default=(0,u.default)(a,"renderNothing",!1,!0)},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(9),u=r(o),a=n(1),i=r(a),f=function(e){return(0,u.default)("displayName",e)};t.default=(0,i.default)(f,"setDisplayName",!1)},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(9),u=r(o),a=n(1),i=r(a),f=function(e){return(0,u.default)("propTypes",e)};t.default=(0,i.default)(f,"setPropTypes",!1)},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 u(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 i=function(){function e(e,t){for(var n=0;t.length>n;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=n(3),c=r(f),l=n(7),s=r(l),p=n(8),d=r(p),y=function(e){if((0,d.default)(e))return e;var t=function(t){function n(){return o(this,n),u(this,Object.getPrototypeOf(n).apply(this,arguments))}return a(n,t),i(n,[{key:"render",value:function(){return"string"==typeof e?c.default.createElement("baseComponent",this.props):e(this.props,this.context)}}]),n}(f.Component);return t.displayName=(0,s.default)(e),t.propTypes=e.propTypes,t.contextTypes=e.contextTypes,t.defaultProps=e.defaultProps,t};t.default=y},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 u(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 i=function(){function e(e,t){for(var n=0;t.length>n;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=n(3),c=n(1),l=r(c),s=n(2),p=function(e,t){return function(n){var r=(0,s.internalCreateElement)(n),c=function(e){function n(){var e,r,a,i;o(this,n);for(var f=arguments.length,c=Array(f),l=0;f>l;l++)c[l]=arguments[l];return r=a=u(this,(e=Object.getPrototypeOf(n)).call.apply(e,[this].concat(c))),a.getChildContext=function(){return t(a.props)},i=r,u(a,i)}return a(n,e),i(n,[{key:"render",value:function(){return r(this.props)}}]),n}(f.Component);return c.childContextTypes=e,c}};t.default=(0,l.default)(p,"withContext")},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 u(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 i=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=function(){function e(e,t){for(var n=0;t.length>n;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(3),l=n(2),s=n(1),p=r(s),d=function(e,t){return Object.keys(e).reduce(function(n,r,o){return n[r]=t(e[r],r,o),n},{})},y=function(e){return function(t){var n,r,s,p=(0,l.internalCreateElement)(t);return r=n=function(e){function t(){var e,n,r,a;o(this,t);for(var i=arguments.length,f=Array(i),c=0;i>c;c++)f[c]=arguments[c];return n=r=u(this,(e=Object.getPrototypeOf(t)).call.apply(e,[this].concat(f))),s.call(r),a=n,u(r,a)}return a(t,e),f(t,[{key:"render",value:function(){return p(i({},this.props,this.handlers))}}]),t}(c.Component),s=function(){var t=this;this.handlers=d(e,function(e){return function(){var n=e(t.props);return n.apply(void 0,arguments)}})},r}};t.default=(0,p.default)(y,"withHandlers")},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=n(1),a=r(u),i=n(4),f=r(i),c=function(e){return(0,f.default)(function(t){return o({},t,"function"==typeof e?e(t):e)})};t.default=(0,a.default)(c,"withProps")},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 u(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 i=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=function(){function e(e,t){for(var n=0;t.length>n;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(3),l=n(11),s=r(l),p=n(5),d=r(p),y=n(1),v=r(y),h=n(2),_=r(h),b=function(e,t){return function(n){var r="function"==typeof e?e:function(t,n){return!(0,d.default)((0,s.default)(t,e),(0,s.default)(n,e))};return function(e){function c(){var e,n,r,a;o(this,c);for(var i=arguments.length,f=Array(i),l=0;i>l;l++)f[l]=arguments[l];return n=r=u(this,(e=Object.getPrototypeOf(c)).call.apply(e,[this].concat(f))),r.computedProps=t(r.props),a=n,u(r,a)}return a(c,e),f(c,[{key:"componentWillReceiveProps",value:function(e){r(this.props,e)&&(this.computedProps=t(e))}},{key:"render",value:function(){return(0,_.default)(n,i({},this.props,this.computedProps))}}]),c}(c.Component)}};t.default=(0,v.default)(b,"withPropsOnChange")},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 i(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 f=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=function(){function e(e,t){for(var n=0;t.length>n;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(3),s=n(1),p=r(s),d=n(2),y=function(e,t,n,r){return function(s){var p=(0,d.internalCreateElement)(s);return function(l){function s(){var e,t,o,i;u(this,s);for(var f=arguments.length,c=Array(f),l=0;f>l;l++)c[l]=arguments[l];return t=o=a(this,(e=Object.getPrototypeOf(s)).call.apply(e,[this].concat(c))),o.state={stateValue:"function"==typeof r?r(o.props):r},o.dispatch=function(e){return o.setState(function(t){var r=t.stateValue;return{stateValue:n(r,e)}})},i=t,a(o,i)}return i(s,l),c(s,[{key:"render",value:function(){var n;return p(f({},this.props,(n={},o(n,e,this.state.stateValue),o(n,t,this.dispatch),n)))}}]),s}(l.Component)}};t.default=(0,p.default)(y,"withReducer")},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 i(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 f=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=function(){function e(e,t){for(var n=0;t.length>n;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(3),s=n(1),p=r(s),d=n(2),y=function(e,t,n){return function(r){var s=(0,d.internalCreateElement)(r);return function(r){function l(){var e,t,r,o;u(this,l);for(var i=arguments.length,f=Array(i),c=0;i>c;c++)f[c]=arguments[c];return t=r=a(this,(e=Object.getPrototypeOf(l)).call.apply(e,[this].concat(f))),r.state={stateValue:"function"==typeof n?n(r.props):n},r.updateStateValue=function(e,t){return r.setState(function(t){var n=t.stateValue;return{stateValue:"function"==typeof e?e(n):e}},t)},o=t,a(r,o)}return i(l,r),c(l,[{key:"render",value:function(){var n;return s(f({},this.props,(n={},o(n,e,this.state.stateValue),o(n,t,this.updateStateValue),n)))}}]),l}(l.Component)}};t.default=(0,p.default)(y,"withState")},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(7),u=r(o),a=function(e,t){return t+"("+(0,u.default)(e)+")"};t.default=a},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),u=Object.keys(t);if(r.length!==u.length)return!1;for(var a=0;r.length>a;a++)if(!o.call(t,r[a])||!n(e[r[a]],t[r[a]]))return!1;return!0}var o=Object.prototype.hasOwnProperty;e.exports=r},function(e,t){"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};e.exports=function(e,t){for(var o=Object.getOwnPropertyNames(t),u=0;o.length>u;++u)if(!n[o[u]]&&!r[o[u]])try{e[o[u]]=t[o[u]]}catch(a){}return e}},function(e,t){function n(e,t,n){var r=n.length;switch(r){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}e.exports=n},function(e,t){function n(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}e.exports=n},function(e,t,n){function r(e,t,n,a,i){var f=-1,c=e.length;for(n||(n=u),i||(i=[]);++f<c;){var l=e[f];t>0&&n(l)?t>1?r(l,t-1,n,a,i):o(i,l):a||(i[i.length]=l)}return i}var o=n(53),u=n(59);e.exports=r},function(e,t){function n(e){return function(t){return null==t?void 0:t[e]}}e.exports=n},function(e,t){function n(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}e.exports=n},function(e,t,n){function r(e){return l(function(t){t=u(t,1);var n=t.length,r=n,l=o.prototype.thru;for(e&&t.reverse();r--;){var _=t[r];if("function"!=typeof _)throw new TypeError(p);if(l&&!b&&"wrapper"==i(_))var b=new o([],!0)}for(r=b?r:n;++r<n;){_=t[r];var O=i(_),m="wrapper"==O?a(_):void 0;b=m&&c(m[0])&&m[1]==(v|d|y|h)&&!m[4].length&&1==m[9]?b[i(m[0])].apply(b,m[3]):1==_.length&&c(_)?b[O]():b.thru(_)}return function(){var e=arguments,r=e[0];if(b&&1==e.length&&f(r)&&r.length>=s)return b.plant(r).value();for(var o=0,u=n?t[o].apply(this,e):r;++o<n;)u=t[o].call(this,u);return u}})}var o=n(13),u=n(54),a=n(18),i=n(19),f=n(15),c=n(60),l=n(68),s=200,p="Expected a function",d=8,y=32,v=128,h=256;e.exports=r},function(e,t,n){var r=n(55),o=r("length");e.exports=o},function(e,t,n){function r(e){return a(e)&&(u(e)||o(e))}var o=n(64),u=n(15),a=n(20);e.exports=r},function(e,t,n){function r(e){var t=a(e),n=i[t];if("function"!=typeof n||!(t in o.prototype))return!1;if(e===n)return!0;var r=u(n);return!!r&&e===r[0]}var o=n(12),u=n(18),a=n(19),i=n(70);e.exports=r},function(e,t){var n={};e.exports=n},function(e,t,n){function r(e){if(e instanceof o)return e.clone();var t=new u(e.__wrapped__,e.__chain__);return t.__actions__=a(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var o=n(12),u=n(13),a=n(56);e.exports=r},function(e,t,n){var r=n(57),o=r(!0);e.exports=o},function(e,t,n){function r(e){return o(e)&&i.call(e,"callee")&&(!c.call(e,"callee")||f.call(e)==u)}var o=n(20),u="[object Arguments]",a=Object.prototype,i=a.hasOwnProperty,f=a.toString,c=a.propertyIsEnumerable;e.exports=r},function(e,t,n){function r(e){return null!=e&&a(o(e))&&!u(e)}var o=n(58),u=n(66),a=n(67);e.exports=r},function(e,t,n){function r(e){var t=o(e)?f.call(e):"";return t==u||t==a}var o=n(21),u="[object Function]",a="[object GeneratorFunction]",i=Object.prototype,f=i.toString;e.exports=r},function(e,t){function n(e){return"number"==typeof e&&e>-1&&e%1==0&&r>=e}var r=9007199254740991;e.exports=n},function(e,t,n){function r(e,t){if("function"!=typeof e)throw new TypeError(a);return t=i(void 0===t?e.length-1:u(t),0),function(){for(var n=arguments,r=-1,u=i(n.length-t,0),a=Array(u);++r<u;)a[r]=n[t+r];switch(t){case 0:return e.call(this,a);case 1:return e.call(this,n[0],a);case 2:return e.call(this,n[0],n[1],a)}var f=Array(t+1);for(r=-1;++r<t;)f[r]=n[r];return f[t]=a,o(e,this,f)}}var o=n(52),u=n(69),a="Expected a function",i=Math.max;e.exports=r},function(e,t){function n(e){return e}e.exports=n},function(e,t,n){function r(e){if(f(e)&&!i(e)&&!(e instanceof o)){if(e instanceof u)return e;if(s.call(e,"__wrapped__"))return c(e)}return new u(e)}var o=n(12),u=n(13),a=n(14),i=n(15),f=n(22),c=n(62),l=Object.prototype,s=l.hasOwnProperty; | ||
r.prototype=a.prototype,r.prototype.constructor=r,e.exports=r}])}); | ||
!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(21)},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,e.internalCreateElement=void 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=n(22),f=r(i),c=function(t,e,n,r,u){if(!t&&e){var i=n;return i(u?o({},r,{children:u}):r)}return u?a.default.createElement(n,r,u):a.default.createElement(n,r)},l=(e.internalCreateElement=function(t){var e=(0,f.default)(t);return function(n,r){return c(!1,e,t,n,r)}},function(t,e,n){var r=(0,f.default)(t),o=e&&e.hasOwnProperty("key");return c(o,r,t,e,n)});e.default=l},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=function(t){return function(e){var n=(0,a.internalCreateElement)(e);return function(e){return n(t(e))}}};e.default=(0,u.default)(i,"mapProps")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(41),u=r(o);e.default=u.default},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){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),l=n(2),s=function(t){return function(e){var n=(0,l.internalCreateElement)(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)(s,"shouldUpdate")},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){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(10),u=r(o),a=n(5),i=r(a),f=n(1),c=r(f),l=n(11),s=r(l),p=function(t){return(0,u.default)(function(e,n){return!(0,i.default)((0,s.default)(n,t),(0,s.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}}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),l=r(c),s=n(2),p=r(s),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.LeftComponent=this.LeftComponent||e(r),this.Component=this.LeftComponent):(this.RightComponent=this.RightComponent||n(r),this.Component=this.RightComponent)},f.prototype.componentWillReceiveProps=function(t){this.computeChildComponent(t)},f.prototype.render=function(){var t=this.Component;return(0,p.default)(t,this.props)},f}(f.default.Component)}};e.default=(0,l.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(6),u=r(o),a=n(2),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,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=function(t){return function(e){var n=(0,a.internalCreateElement)(e),r=function(t){return n(t)};return r.defaultProps=t,r}};e.default=(0,u.default)(i,"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(6),a=r(u),i=n(1),f=r(i),c=n(2),l=function(t){return function(e){var n=(0,c.internalCreateElement)(e);return function(e){return n(o({},(0,a.default)(e,[t]),e[t]))}}};e.default=(0,f.default)(l,"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=function(t){return function(e){var n=(0,i.internalCreateElement)(e),r=function(t,e){return n(o({},t,e))};return r.contextTypes=t,r}};e.default=(0,a.default)(f,"getContext")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(42),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.hoistStatics=e.nest=e.componentFromProp=e.createSink=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(36),i=r(a),f=n(37),c=r(f),l=n(35),s=r(l),p=n(17),d=r(p),h=n(27),y=r(h),_=n(28),v=r(_),b=n(18),m=r(b),w=n(39),O=r(w),P=n(38),C=r(P),g=n(13),j=r(g),M=n(29),E=r(M),x=n(30),T=r(x),R=n(10),S=r(R),N=n(26),U=r(N),V=n(12),F=r(V),D=n(25),k=r(D),A=n(34),H=r(A),W=n(19),q=r(W),L=n(23),K=r(L),z=n(33),B=r(z),G=n(9),I=r(G),J=n(32),Q=r(J),X=n(31),Y=r(X),Z=n(15),$=r(Z),tt=n(7),et=r(tt),nt=n(40),rt=r(nt),ot=n(5),ut=r(ot),at=n(8),it=r(at),ft=n(16),ct=r(ft),lt=n(14),st=r(lt),pt=n(24),dt=r(pt),ht=n(20),yt=r(ht);e.mapProps=u.default,e.withProps=i.default,e.withPropsOnChange=c.default,e.withHandlers=s.default,e.defaultProps=d.default,e.renameProp=y.default,e.renameProps=v.default,e.flattenProp=m.default,e.withState=O.default,e.withReducer=C.default,e.branch=j.default,e.renderComponent=E.default,e.renderNothing=T.default,e.shouldUpdate=S.default,e.pure=U.default,e.onlyUpdateForKeys=F.default,e.onlyUpdateForPropTypes=k.default,e.withContext=H.default,e.getContext=q.default,e.lifecycle=K.default,e.toClass=B.default,e.setStatic=I.default,e.setPropTypes=Q.default,e.setDisplayName=Y.default,e.compose=$.default,e.getDisplayName=et.default,e.wrapDisplayName=rt.default,e.shallowEqual=ut.default,e.isClassComponent=it.default,e.createSink=ct.default,e.componentFromProp=st.default,e.nest=dt.default,e.hoistStatics=yt.default},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=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=function(t){return function(e){var n=(0,f.internalCreateElement)(e);return(0,u.createClass)(o({},t,{render:function(){return n(o({},this.props,this.state))}}))}};e.default=(0,i.default)(c,"lifecycle")},function(t,e,n){"use strict";function r(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 o=n(2),u=function(){for(var t=arguments.length,e=Array(t),n=0;t>n;n++)e[n]=arguments[n];var u=e.map(o.internalCreateElement),a=function(t){var e=r(t,[]),n=t.children;return u.reduceRight(function(t,n){return n(e,t)},n)};return a};e.default=u},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(12),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(5),i=r(a),f=n(1),c=r(f),l=(0,u.default)(function(t,e){return!(0,i.default)(t,e)});e.default=(0,c.default)(l,"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(6),a=r(u),i=n(4),f=r(i),c=n(1),l=r(c),s=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,l.default)(s,"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(6),a=r(u),i=n(11),f=r(i),c=n(4),l=r(c),s=n(1),p=r(s),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,l.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=function(t){return function(e){var n=(0,a.internalCreateElement)(t),r=function(t){return n(t)};return r}};e.default=(0,u.default)(i,"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),l=r(c),s=n(8),p=r(s),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,l.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),l=n(2),s=function(t,e){return function(n){var r=(0,l.internalCreateElement)(n),f=function(t){function n(){var r,a,i;o(this,n);for(var f=arguments.length,c=Array(f),l=0;f>l;l++)c[l]=arguments[l];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)(s,"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),l=n(1),s=r(l),p=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},d=function(t){return function(e){var n,r,l,s=(0,c.internalCreateElement)(e);return r=n=function(t){function e(){var n,r,a;o(this,e);for(var i=arguments.length,f=Array(i),c=0;i>c;c++)f[c]=arguments[c];return n=r=u(this,t.call.apply(t,[this].concat(f))),l.call(r),a=n,u(r,a)}return a(e,t),e.prototype.componentWillReceiveProps=function(){this.cachedHandlers={}},e.prototype.render=function(){return s(i({},this.props,this.handlers))},e}(f.Component),l=function(){var e=this;this.cachedHandlers={},this.handlers=p(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,s.default)(d,"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(11),l=r(c),s=n(5),p=r(s),d=n(1),h=r(d),y=n(2),_=r(y),v=function(t,e){return function(n){var r="function"==typeof t?t:function(e,n){return!(0,p.default)((0,l.default)(e,t),(0,l.default)(n,t))};return function(t){function f(){var n,r,a;o(this,f);for(var i=arguments.length,c=Array(i),l=0;i>l;l++)c[l]=arguments[l];return n=r=u(this,t.call.apply(t,[this].concat(c))),r.computedProps=e(r.props),a=n,u(r,a)}return a(f,t),f.prototype.componentWillReceiveProps=function(t){r(this.props,t)&&(this.computedProps=e(t))},f.prototype.render=function(){return(0,_.default)(n,i({},this.props,this.computedProps))},f}(f.Component)}};e.default=(0,h.default)(v,"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),l=r(c),s=n(2),p=function(t,e,n,r){return function(c){var l=(0,s.internalCreateElement)(c);return function(f){function c(){var t,e,a;o(this,c);for(var i=arguments.length,l=Array(i),s=0;i>s;s++)l[s]=arguments[s];return t=e=u(this,f.call.apply(f,[this].concat(l))),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 l(i({},this.props,(n={},n[t]=this.state.stateValue,n[e]=this.dispatch,n)))},c}(f.Component)}};e.default=(0,l.default)(p,"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),l=r(c),s=n(2),p=function(t,e,n){return function(r){var c=(0,s.internalCreateElement)(r);return function(r){function f(){var t,e,a;o(this,f);for(var i=arguments.length,c=Array(i),l=0;i>l;l++)c[l]=arguments[l];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,l.default)(p,"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(a){}return t}}])}); |
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -7,0 +5,0 @@ var _omit = require('./utils/omit'); |
@@ -1,13 +0,29 @@ | ||
'use strict'; | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
exports.default = compose; | ||
function compose() { | ||
for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) { | ||
funcs[_key] = arguments[_key]; | ||
} | ||
var _flowRight = require('lodash/flowRight'); | ||
if (funcs.length === 0) { | ||
return function (arg) { | ||
return arg; | ||
}; | ||
} | ||
var _flowRight2 = _interopRequireDefault(_flowRight); | ||
if (funcs.length === 1) { | ||
return funcs[0]; | ||
} | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
exports.default = _flowRight2.default; | ||
var last = funcs[funcs.length - 1]; | ||
return function () { | ||
var result = last.apply(undefined, arguments); | ||
for (var i = funcs.length - 2; i >= 0; i--) { | ||
var f = funcs[i]; | ||
result = f(result); | ||
} | ||
return result; | ||
}; | ||
} |
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
exports.internalCreateElement = undefined; | ||
@@ -7,0 +5,0 @@ |
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; | ||
exports.__esModule = true; | ||
var createHelper = function createHelper(func, helperName) { | ||
@@ -33,3 +28,3 @@ var setDisplayName = arguments.length <= 2 || arguments[2] === undefined ? true : arguments[2]; | ||
if (process.env.NODE_ENV !== 'production' && args.length > func.length) { | ||
if (args.length > func.length) { | ||
/* eslint-disable */ | ||
@@ -42,6 +37,4 @@ console.error( | ||
return function (BaseComponent) { | ||
var Component = noArgs ? func(BaseComponent) : func.apply(undefined, args)(BaseComponent); | ||
var Component = func.apply(undefined, args)(BaseComponent); | ||
Component.displayName = wrapDisplayName(BaseComponent, helperName); | ||
return Component; | ||
@@ -53,3 +46,3 @@ }; | ||
if ((typeof _ret === 'undefined' ? 'undefined' : _typeof(_ret)) === "object") return _ret.v; | ||
if (typeof _ret === "object") return _ret.v; | ||
} | ||
@@ -56,0 +49,0 @@ |
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
var _react = require('react'); | ||
@@ -24,22 +20,17 @@ | ||
return _possibleConstructorReturn(this, Object.getPrototypeOf(Sink).apply(this, arguments)); | ||
return _possibleConstructorReturn(this, _Component.apply(this, arguments)); | ||
} | ||
_createClass(Sink, [{ | ||
key: 'componentWillMount', | ||
value: function componentWillMount() { | ||
callback(this.props); | ||
} | ||
}, { | ||
key: 'componentWillReceiveProps', | ||
value: function componentWillReceiveProps(nextProps) { | ||
callback(nextProps); | ||
} | ||
}, { | ||
key: 'render', | ||
value: function render() { | ||
return null; | ||
} | ||
}]); | ||
Sink.prototype.componentWillMount = function componentWillMount() { | ||
callback(this.props); | ||
}; | ||
Sink.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { | ||
callback(nextProps); | ||
}; | ||
Sink.prototype.render = function render() { | ||
return null; | ||
}; | ||
return Sink; | ||
@@ -46,0 +37,0 @@ }(_react.Component); |
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -7,0 +5,0 @@ var _createHelper = require('./createHelper'); |
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -7,0 +5,0 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; |
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -7,0 +5,0 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; |
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
var getDisplayName = function getDisplayName(Component) { | ||
@@ -7,0 +5,0 @@ if (typeof Component === 'string') { |
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -7,0 +5,0 @@ var _hoistNonReactStatics = require('hoist-non-react-statics'); |
11
index.js
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.hoistStatics = exports.nest = exports.componentFromProp = exports.createSink = exports.isClassComponent = exports.shallowEqual = exports.wrapDisplayName = exports.getDisplayName = exports.compose = exports.setDisplayName = exports.setPropTypes = exports.setStatic = exports.toClass = exports.getContext = exports.withContext = exports.onlyUpdateForPropTypes = exports.onlyUpdateForKeys = exports.pure = exports.shouldUpdate = exports.renderNothing = exports.renderComponent = exports.branch = exports.withReducer = exports.withState = exports.flattenProp = exports.renameProps = exports.renameProp = exports.defaultProps = exports.withHandlers = exports.withPropsOnChange = exports.withProps = exports.mapProps = undefined; | ||
exports.__esModule = true; | ||
exports.hoistStatics = exports.nest = exports.componentFromProp = exports.createSink = exports.isClassComponent = exports.shallowEqual = exports.wrapDisplayName = exports.getDisplayName = exports.compose = exports.setDisplayName = exports.setPropTypes = exports.setStatic = exports.toClass = exports.lifecycle = exports.getContext = exports.withContext = exports.onlyUpdateForPropTypes = exports.onlyUpdateForKeys = exports.pure = exports.shouldUpdate = exports.renderNothing = exports.renderComponent = exports.branch = exports.withReducer = exports.withState = exports.flattenProp = exports.renameProps = exports.renameProp = exports.defaultProps = exports.withHandlers = exports.withPropsOnChange = exports.withProps = exports.mapProps = undefined; | ||
@@ -84,2 +82,6 @@ var _mapProps2 = require('./mapProps'); | ||
var _lifecycle2 = require('./lifecycle'); | ||
var _lifecycle3 = _interopRequireDefault(_lifecycle2); | ||
var _toClass2 = require('./toClass'); | ||
@@ -159,2 +161,3 @@ | ||
exports.getContext = _getContext3.default; | ||
exports.lifecycle = _lifecycle3.default; | ||
exports.toClass = _toClass3.default; | ||
@@ -161,0 +164,0 @@ |
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; | ||
exports.__esModule = true; | ||
var isClassComponent = function isClassComponent(Component) { | ||
return Boolean(Component && Component.prototype && _typeof(Component.prototype.isReactComponent) === 'object'); | ||
return Boolean(Component && Component.prototype && typeof Component.prototype.isReactComponent === 'object'); | ||
}; | ||
exports.default = isClassComponent; |
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -7,0 +5,0 @@ var _isClassComponent = require('./isClassComponent.js'); |
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -7,0 +5,0 @@ var _createHelper = require('./createHelper'); |
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -7,0 +5,0 @@ var _createElement = require('./createElement'); |
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -7,0 +5,0 @@ var _shouldUpdate = require('./shouldUpdate'); |
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -7,0 +5,0 @@ var _onlyUpdateForKeys = require('./onlyUpdateForKeys'); |
{ | ||
"name": "recompose", | ||
"version": "0.18.0", | ||
"version": "0.18.1", | ||
"author": "Andrew Clark <acdlite@me.com>", | ||
@@ -27,4 +27,3 @@ "repository": { | ||
"fbjs": "^0.8.1", | ||
"hoist-non-react-statics": "^1.0.0", | ||
"lodash": "^4.3.0" | ||
"hoist-non-react-statics": "^1.0.0" | ||
}, | ||
@@ -31,0 +30,0 @@ "peerDependencies": { |
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -7,0 +5,0 @@ var _shouldUpdate = require('./shouldUpdate'); |
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -23,7 +21,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
var renameProp = function renameProp(oldName, newName) { | ||
return (0, _mapProps2.default)(function (props) { | ||
return _extends({}, (0, _omit2.default)(props, [oldName]), _defineProperty({}, newName, props[oldName])); | ||
var _extends2; | ||
return _extends({}, (0, _omit2.default)(props, [oldName]), (_extends2 = {}, _extends2[newName] = props[oldName], _extends2)); | ||
}); | ||
@@ -30,0 +28,0 @@ }; |
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -7,0 +5,0 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; |
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -7,0 +5,0 @@ var _createHelper = require('./createHelper'); |
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -7,0 +5,0 @@ var _createHelper = require('./createHelper'); |
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -7,0 +5,0 @@ var _setStatic = require('./setStatic'); |
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -7,0 +5,0 @@ var _setStatic = require('./setStatic'); |
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -7,0 +5,0 @@ var _createHelper = require('./createHelper'); |
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -7,0 +5,0 @@ var _shallowEqual = require('fbjs/lib/shallowEqual'); |
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
var _react = require('react'); | ||
@@ -34,17 +30,13 @@ | ||
return _possibleConstructorReturn(this, Object.getPrototypeOf(_class).apply(this, arguments)); | ||
return _possibleConstructorReturn(this, _Component.apply(this, arguments)); | ||
} | ||
_createClass(_class, [{ | ||
key: 'shouldComponentUpdate', | ||
value: function shouldComponentUpdate(nextProps) { | ||
return test(this.props, nextProps); | ||
} | ||
}, { | ||
key: 'render', | ||
value: function render() { | ||
return createElement(this.props); | ||
} | ||
}]); | ||
_class.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) { | ||
return test(this.props, nextProps); | ||
}; | ||
_class.prototype.render = function render() { | ||
return createElement(this.props); | ||
}; | ||
return _class; | ||
@@ -51,0 +43,0 @@ }(_react.Component); |
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
var _react = require('react'); | ||
@@ -40,14 +36,11 @@ | ||
return _possibleConstructorReturn(this, Object.getPrototypeOf(ToClass).apply(this, arguments)); | ||
return _possibleConstructorReturn(this, _Component.apply(this, arguments)); | ||
} | ||
_createClass(ToClass, [{ | ||
key: 'render', | ||
value: function render() { | ||
if (typeof baseComponent === 'string') { | ||
return _react2.default.createElement('baseComponent', this.props); | ||
} | ||
return baseComponent(this.props, this.context); | ||
ToClass.prototype.render = function render() { | ||
if (typeof baseComponent === 'string') { | ||
return _react2.default.createElement('baseComponent', this.props); | ||
} | ||
}]); | ||
return baseComponent(this.props, this.context); | ||
}; | ||
@@ -54,0 +47,0 @@ return ToClass; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -7,0 +5,0 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
var pick = function pick(obj, keys) { | ||
@@ -7,0 +5,0 @@ var result = {}; |
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
var _react = require('react'); | ||
@@ -33,4 +29,2 @@ | ||
function WithContext() { | ||
var _Object$getPrototypeO; | ||
var _temp, _this, _ret; | ||
@@ -44,3 +38,3 @@ | ||
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_Object$getPrototypeO = Object.getPrototypeOf(WithContext)).call.apply(_Object$getPrototypeO, [this].concat(args))), _this), _this.getChildContext = function () { | ||
return _ret = (_temp = (_this = _possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.getChildContext = function () { | ||
return getChildContext(_this.props); | ||
@@ -50,8 +44,5 @@ }, _temp), _possibleConstructorReturn(_this, _ret); | ||
_createClass(WithContext, [{ | ||
key: 'render', | ||
value: function render() { | ||
return createElement(this.props); | ||
} | ||
}]); | ||
WithContext.prototype.render = function render() { | ||
return createElement(this.props); | ||
}; | ||
@@ -58,0 +49,0 @@ return WithContext; |
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
var _react = require('react'); | ||
@@ -28,6 +24,11 @@ | ||
var mapValues = function mapValues(obj, func) { | ||
return Object.keys(obj).reduce(function (result, key, i) { | ||
result[key] = func(obj[key], key, i); | ||
return result; | ||
}, {}); | ||
var result = []; | ||
var i = 0; | ||
for (var key in obj) { | ||
if (obj.hasOwnProperty(key)) { | ||
i += 1; | ||
result[key] = func(obj[key], key, i); | ||
} | ||
} | ||
return result; | ||
}; | ||
@@ -44,4 +45,2 @@ | ||
function _class() { | ||
var _Object$getPrototypeO; | ||
var _temp, _this, _ret; | ||
@@ -55,12 +54,13 @@ | ||
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_Object$getPrototypeO = Object.getPrototypeOf(_class)).call.apply(_Object$getPrototypeO, [this].concat(args))), _this), _initialiseProps.call(_this), _temp), _possibleConstructorReturn(_this, _ret); | ||
return _ret = (_temp = (_this = _possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _initialiseProps.call(_this), _temp), _possibleConstructorReturn(_this, _ret); | ||
} | ||
_createClass(_class, [{ | ||
key: 'render', | ||
value: function render() { | ||
return createElement(_extends({}, this.props, this.handlers)); | ||
} | ||
}]); | ||
_class.prototype.componentWillReceiveProps = function componentWillReceiveProps() { | ||
this.cachedHandlers = {}; | ||
}; | ||
_class.prototype.render = function render() { | ||
return createElement(_extends({}, this.props, this.handlers)); | ||
}; | ||
return _class; | ||
@@ -70,5 +70,12 @@ }(_react.Component), _initialiseProps = function _initialiseProps() { | ||
this.handlers = mapValues(handlers, function (createHandler) { | ||
this.cachedHandlers = {}; | ||
this.handlers = mapValues(handlers, function (createHandler, handlerName) { | ||
return function () { | ||
var cachedHandler = _this2.cachedHandlers[handlerName]; | ||
if (cachedHandler) { | ||
return cachedHandler.apply(undefined, arguments); | ||
} | ||
var handler = createHandler(_this2.props); | ||
_this2.cachedHandlers[handlerName] = handler; | ||
@@ -75,0 +82,0 @@ if (process.env.NODE_ENV !== 'production' && typeof handler !== 'function') { |
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -7,0 +5,0 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; |
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
var _react = require('react'); | ||
@@ -47,4 +43,2 @@ | ||
function _class2() { | ||
var _Object$getPrototypeO; | ||
var _temp, _this, _ret; | ||
@@ -58,19 +52,15 @@ | ||
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_Object$getPrototypeO = Object.getPrototypeOf(_class2)).call.apply(_Object$getPrototypeO, [this].concat(args))), _this), _this.computedProps = propsMapper(_this.props), _temp), _possibleConstructorReturn(_this, _ret); | ||
return _ret = (_temp = (_this = _possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.computedProps = propsMapper(_this.props), _temp), _possibleConstructorReturn(_this, _ret); | ||
} | ||
_createClass(_class2, [{ | ||
key: 'componentWillReceiveProps', | ||
value: function componentWillReceiveProps(nextProps) { | ||
if (shouldMap(this.props, nextProps)) { | ||
this.computedProps = propsMapper(nextProps); | ||
} | ||
_class2.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { | ||
if (shouldMap(this.props, nextProps)) { | ||
this.computedProps = propsMapper(nextProps); | ||
} | ||
}, { | ||
key: 'render', | ||
value: function render() { | ||
return (0, _createElement2.default)(BaseComponent, _extends({}, this.props, this.computedProps)); | ||
} | ||
}]); | ||
}; | ||
_class2.prototype.render = function render() { | ||
return (0, _createElement2.default)(BaseComponent, _extends({}, this.props, this.computedProps)); | ||
}; | ||
return _class2; | ||
@@ -77,0 +67,0 @@ }(_react.Component); |
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
var _react = require('react'); | ||
@@ -21,4 +17,2 @@ | ||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
@@ -37,4 +31,2 @@ | ||
function _class2() { | ||
var _Object$getPrototypeO; | ||
var _temp, _this, _ret; | ||
@@ -48,3 +40,3 @@ | ||
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_Object$getPrototypeO = Object.getPrototypeOf(_class2)).call.apply(_Object$getPrototypeO, [this].concat(args))), _this), _this.state = { | ||
return _ret = (_temp = (_this = _possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.state = { | ||
stateValue: typeof initialState === 'function' ? initialState(_this.props) : initialState | ||
@@ -61,10 +53,7 @@ }, _this.dispatch = function (action) { | ||
_createClass(_class2, [{ | ||
key: 'render', | ||
value: function render() { | ||
var _extends2; | ||
_class2.prototype.render = function render() { | ||
var _extends2; | ||
return createElement(_extends({}, this.props, (_extends2 = {}, _defineProperty(_extends2, stateName, this.state.stateValue), _defineProperty(_extends2, dispatchName, this.dispatch), _extends2))); | ||
} | ||
}]); | ||
return createElement(_extends({}, this.props, (_extends2 = {}, _extends2[stateName] = this.state.stateValue, _extends2[dispatchName] = this.dispatch, _extends2))); | ||
}; | ||
@@ -71,0 +60,0 @@ return _class2; |
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
var _react = require('react'); | ||
@@ -21,4 +17,2 @@ | ||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
@@ -37,4 +31,2 @@ | ||
function _class2() { | ||
var _Object$getPrototypeO; | ||
var _temp, _this, _ret; | ||
@@ -48,3 +40,3 @@ | ||
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_Object$getPrototypeO = Object.getPrototypeOf(_class2)).call.apply(_Object$getPrototypeO, [this].concat(args))), _this), _this.state = { | ||
return _ret = (_temp = (_this = _possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.state = { | ||
stateValue: typeof initialState === 'function' ? initialState(_this.props) : initialState | ||
@@ -61,10 +53,7 @@ }, _this.updateStateValue = function (updateFn, callback) { | ||
_createClass(_class2, [{ | ||
key: 'render', | ||
value: function render() { | ||
var _extends2; | ||
_class2.prototype.render = function render() { | ||
var _extends2; | ||
return createElement(_extends({}, this.props, (_extends2 = {}, _defineProperty(_extends2, stateName, this.state.stateValue), _defineProperty(_extends2, stateUpdaterName, this.updateStateValue), _extends2))); | ||
} | ||
}]); | ||
return createElement(_extends({}, this.props, (_extends2 = {}, _extends2[stateName] = this.state.stateValue, _extends2[stateUpdaterName] = this.updateStateValue, _extends2))); | ||
}; | ||
@@ -71,0 +60,0 @@ return _class2; |
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -7,0 +5,0 @@ var _getDisplayName = require('./getDisplayName'); |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
3
46
6
0
378664
2180
- Removedlodash@^4.3.0
- Removedlodash@4.17.21(transitive)