Comparing version 0.23.3 to 0.23.4
@@ -656,3 +656,4 @@ (function (global, factory) { | ||
} | ||
return hoc; | ||
return hoc(BaseComponent); | ||
}; | ||
@@ -659,0 +660,0 @@ |
@@ -1,1 +0,1 @@ | ||
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],n):n(t.Recompose=t.Recompose||{},t.React)}(this,function(t,n){"use strict";function r(t,n){return t===n?0!==t||0!==n||1/t==1/n:t!==t&&n!==n}function e(t,n){if(r(t,n))return!0;if("object"!=typeof t||null===t||"object"!=typeof n||null===n)return!1;var e=Object.keys(t);if(e.length!==Object.keys(n).length)return!1;for(var o=0;e.length>o;o++)if(!E.call(n,e[o])||!r(t[e[o]],n[e[o]]))return!1;return!0}function o(){for(var t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return 0===n.length?function(t){return t}:1===n.length?n[0]:n.reduce(function(t,n){return function(){return t(n.apply(void 0,arguments))}})}var u="default"in n?n.default:n,i=function(t,n){return function(r){return r[t]=n,r}},c=function(t){return i("displayName",t)},p=function(t){if("string"==typeof t)return t;if(t)return t.displayName||t.name||"Component"},a=function(t,n){return n+"("+p(t)+")"},f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")},l=Object.assign||function(t){for(var n=1;arguments.length>n;n++){var r=arguments[n];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t},y=function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)},h=function(t,n){var r={};for(var e in t)0>n.indexOf(e)&&Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=t[e]);return r},v=function(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?t:n},m=function(t,n,r,e,o){if(!t&&n)return r(o?l({},e,{children:o}):e);var i=r;return o?u.createElement(i,e,o):u.createElement(i,e)},d=function(t){return!(!t||!t.prototype||"object"!==f(t.prototype.isReactComponent))},b=function(t){return!("function"!=typeof t||d(t)||t.defaultProps||t.contextTypes)},g=function(t){var n=b(t);return function(r,e){return m(!1,n,t,r,e)}},O=function(t){return function(n){var r=g(n);return function(n){return r(t(n))}}},P=function(t){return O(function(n){return l({},n,"function"==typeof t?t(n):t)})},S=function(t,n){for(var r={},e=0;n.length>e;e++){var o=n[e];t.hasOwnProperty(o)&&(r[o]=t[o])}return r},E=Object.prototype.hasOwnProperty,C=e,w=function(t,r){return function(e){var o=g(e),u="function"==typeof t?t:function(n,r){return!C(S(n,t),S(r,t))};return function(t){function n(){var e,o,u;s(this,n);for(var i=arguments.length,c=Array(i),p=0;i>p;p++)c[p]=arguments[p];return e=o=v(this,t.call.apply(t,[this].concat(c))),o.computedProps=r(o.props),u=e,v(o,u)}return y(n,t),n.prototype.componentWillReceiveProps=function(t){u(this.props,t)&&(this.computedProps=r(t))},n.prototype.render=function(){return o(l({},this.props,this.computedProps))},n}(n.Component)}},x=function(t,n){var r={};for(var e in t)t.hasOwnProperty(e)&&(r[e]=n(t[e],e));return r},j=function(t){return function(r){var e=g(r),o=function(){var n=this;this.cachedHandlers={},this.handlers=x("function"==typeof t?t(this.props):t,function(t,r){return function(){var e=n.cachedHandlers[r];if(e)return e.apply(void 0,arguments);var o=t(n.props);return n.cachedHandlers[r]=o,o.apply(void 0,arguments)}})};return function(t){function n(){var r,e,u;s(this,n);for(var i=arguments.length,c=Array(i),p=0;i>p;p++)c[p]=arguments[p];return r=e=v(this,t.call.apply(t,[this].concat(c))),o.call(e),u=r,v(e,u)}return y(n,t),n.prototype.componentWillReceiveProps=function(){this.cachedHandlers={}},n.prototype.render=function(){return e(l({},this.props,this.handlers))},n}(n.Component)}},T=function(t){return function(n){var r=g(n),e=function(t){return r(t)};return e.defaultProps=t,e}},N=function(t,n){for(var r=h(t,[]),e=0;n.length>e;e++){var o=n[e];r.hasOwnProperty(o)&&delete r[o]}return r},V=function(t,n){return O(function(r){var e;return l({},N(r,[t]),(e={},e[n]=r[t],e))})},R=Object.keys,A=function(t,n){return R(t).reduce(function(r,e){var o=t[e];return r[n(o,e)]=o,r},{})},W=function(t){return O(function(n){return l({},N(n,R(t)),A(S(n,R(t)),function(n,r){return t[r]}))})},F=function(t){return function(n){var r=g(n);return function(n){return r(l({},n,n[t]))}}},_=function(t,r,e){return function(o){var u=g(o);return function(n){function o(){var t,r,u;s(this,o);for(var i=arguments.length,c=Array(i),p=0;i>p;p++)c[p]=arguments[p];return t=r=v(this,n.call.apply(n,[this].concat(c))),r.state={stateValue:"function"==typeof e?e(r.props):e},r.updateStateValue=function(t,n){return r.setState(function(n){var r=n.stateValue;return{stateValue:"function"==typeof t?t(r):t}},n)},u=t,v(r,u)}return y(o,n),o.prototype.render=function(){var n;return u(l({},this.props,(n={},n[t]=this.state.stateValue,n[r]=this.updateStateValue,n)))},o}(n.Component)}},k=function(t,r,e,o){return function(u){var i=g(u);return function(n){function u(){var t,r,o;s(this,u);for(var i=arguments.length,c=Array(i),p=0;i>p;p++)c[p]=arguments[p];return t=r=v(this,n.call.apply(n,[this].concat(c))),r.state={stateValue:r.initializeStateValue()},r.dispatch=function(t){return r.setState(function(n){return{stateValue:e(n.stateValue,t)}})},o=t,v(r,o)}return y(u,n),u.prototype.initializeStateValue=function(){return void 0!==o?"function"==typeof o?o(this.props):o:e(void 0,{type:"@@recompose/INIT"})},u.prototype.render=function(){var n;return i(l({},this.props,(n={},n[t]=this.state.stateValue,n[r]=this.dispatch,n)))},u}(n.Component)}},H=function(t){return t},U=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:H;return function(e){var o=void 0,u=void 0;return function(i){return t(i)?(o=o||g(n(e)))(i):(u=u||g(r(e)))(i)}}},D=function(t){return function(n){var r=g(t);return function(t){return r(t)}}},M=function(t){function n(){return s(this,n),v(this,t.apply(this,arguments))}return y(n,t),n.prototype.render=function(){return null},n}(n.Component);M.displayName="Nothing";var $,q=function(t){return M},z=function(t){return function(r){var e=g(r);return function(n){function r(){return s(this,r),v(this,n.apply(this,arguments))}return y(r,n),r.prototype.shouldComponentUpdate=function(n){return t(this.props,n)},r.prototype.render=function(){return e(this.props)},r}(n.Component)}},I=function(t){return z(function(t,n){return!C(t,n)})},K=function(t){return z(function(n,r){return!C(S(r,t),S(n,t))})},B=function(t){var n=t.propTypes,r=Object.keys(n||{});return K(r)(t)},G=function(t,r){return function(e){var o=g(e),u=function(t){function n(){var e,o,u;s(this,n);for(var i=arguments.length,c=Array(i),p=0;i>p;p++)c[p]=arguments[p];return e=o=v(this,t.call.apply(t,[this].concat(c))),o.getChildContext=function(){return r(o.props)},u=e,v(o,u)}return y(n,t),n.prototype.render=function(){return o(this.props)},n}(n.Component);return u.childContextTypes=t,u}},J=function(t){return function(n){var r=g(n),e=function(t,n){return r(l({},t,n))};return e.contextTypes=t,e}},L=function(t){return function(r){var e=g(r);return function(n){function r(){s(this,r);for(var e=arguments.length,o=Array(e),u=0;e>u;u++)o[u]=arguments[u];var i=v(this,n.call.apply(n,[this].concat(o)));return Object.assign(i,t),i}return y(r,n),r.prototype.render=function(){return e(l({},this.props,this.state))},r}(n.Component)}},Q=function(t){if(d(t))return t;var r=function(n){function r(){return s(this,r),v(this,n.apply(this,arguments))}return y(r,n),r.prototype.render=function(){return"string"==typeof t?u.createElement(t,this.props):t(this.props,this.context)},r}(n.Component);return r.displayName=p(t),r.propTypes=t.propTypes,r.contextTypes=t.contextTypes,r.defaultProps=t.defaultProps,r},X=function(t){return i("propTypes",t)},Y=function(t,n,r){var e=b(t),o=n&&n.hasOwnProperty("key");return m(o,e,t,n,r)},Z=function(t){return function(n){function r(){return s(this,r),v(this,n.apply(this,arguments))}return y(r,n),r.prototype.componentWillMount=function(){t(this.props)},r.prototype.componentWillReceiveProps=function(n){t(n)},r.prototype.render=function(){return null},r}(n.Component)},tt=function(t){var n=function(n){return Y(n[t],N(n,[t]))};return n.displayName="componentFromProp("+t+")",n},nt=function(){for(var t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];var e=n.map(g);return function(t){var n=h(t,[]),r=t.children;return e.reduceRight(function(t,r){return r(n,t)},r)}},rt={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},et={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},ot="function"==typeof Object.getOwnPropertySymbols,ut=function(t,n,r){if("string"!=typeof n){var e=Object.getOwnPropertyNames(n);ot&&(e=e.concat(Object.getOwnPropertySymbols(n)));for(var o=0;e.length>o;++o)if(!(rt[e[o]]||et[e[o]]||r&&r[e[o]]))try{t[e[o]]=n[e[o]]}catch(t){}}return t},it=function(t){return function(n){var r=t(n);return ut(r,n),r}},ct=function(t,n){return n={exports:{}},t(n,n.exports),n.exports}(function(t,n){Object.defineProperty(n,"__esModule",{value:!0});n.createChangeEmitter=function(){function t(){o===e&&(o=e.slice())}function n(n){if("function"!=typeof n)throw Error("Expected listener to be a function.");var r=!0;return t(),o.push(n),function(){if(r){r=!1,t();var e=o.indexOf(n);o.splice(e,1)}}}function r(){e=o;for(var t=e,n=0;t.length>n;n++)t[n].apply(t,arguments)}var e=[],o=e;return{listen:n,emit:r}}}),pt=ct.createChangeEmitter;$="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof module?module:Function("return this")();var at=function(t){var n,r=t.Symbol;return"function"==typeof r?r.observable?n=r.observable:(n=r("observable"),r.observable=n):n="@@observable",n}($),ft={fromESObservable:null,toESObservable:null},st=function(t){ft=t},lt={fromESObservable:function(t){return"function"==typeof ft.fromESObservable?ft.fromESObservable(t):t},toESObservable:function(t){return"function"==typeof ft.toESObservable?ft.toESObservable(t):t}},yt=function(t){return function(r){return function(n){function e(){var o,u,i,c;s(this,e);for(var p=arguments.length,a=Array(p),f=0;p>f;f++)a[f]=arguments[f];return u=i=v(this,n.call.apply(n,[this].concat(a))),i.state={vdom:null},i.propsEmitter=pt(),i.props$=t.fromESObservable((o={subscribe:function(t){return{unsubscribe:i.propsEmitter.listen(function(n){n?t.next(n):t.complete()})}}},o[at]=function(){return this},o)),i.vdom$=t.toESObservable(r(i.props$)),c=u,v(i,c)}return y(e,n),e.prototype.componentWillMount=function(){var t=this;this.subscription=this.vdom$.subscribe({next:function(n){t.setState({vdom:n})}}),this.propsEmitter.emit(this.props)},e.prototype.componentWillReceiveProps=function(t){this.propsEmitter.emit(t)},e.prototype.shouldComponentUpdate=function(t,n){return n.vdom!==this.state.vdom},e.prototype.componentWillUnmount=function(){this.propsEmitter.emit(),this.subscription.unsubscribe()},e.prototype.render=function(){return this.state.vdom},e}(n.Component)}},ht=function(t){return yt(lt)(t)},vt=function(t){return t},mt=function(t){var n=yt({fromESObservable:vt,toESObservable:vt});return function(r){return function(e){var o=g(e),u=t.fromESObservable,i=t.toESObservable;return n(function(t){var n;return n={subscribe:function(n){var e=i(r(u(t))).subscribe({next:function(t){return n.next(o(t))}});return{unsubscribe:function(){return e.unsubscribe()}}}},n[at]=function(){return this},n})}}},dt=function(t){return mt(lt)(t)},bt=function(t){return function(){var n,r=pt(),e=t.fromESObservable((n={subscribe:function(t){return{unsubscribe:r.listen(function(n){return t.next(n)})}}},n[at]=function(){return this},n));return{handler:r.emit,stream:e}}}(lt);t.mapProps=O,t.withProps=P,t.withPropsOnChange=w,t.withHandlers=j,t.defaultProps=T,t.renameProp=V,t.renameProps=W,t.flattenProp=F,t.withState=_,t.withReducer=k,t.branch=U,t.renderComponent=D,t.renderNothing=q,t.shouldUpdate=z,t.pure=I,t.onlyUpdateForKeys=K,t.onlyUpdateForPropTypes=B,t.withContext=G,t.getContext=J,t.lifecycle=L,t.toClass=Q,t.setStatic=i,t.setPropTypes=X,t.setDisplayName=c,t.compose=o,t.getDisplayName=p,t.wrapDisplayName=a,t.shallowEqual=C,t.isClassComponent=d,t.createEagerElement=Y,t.createEagerFactory=g,t.createSink=Z,t.componentFromProp=tt,t.nest=nt,t.hoistStatics=it,t.componentFromStream=ht,t.componentFromStreamWithConfig=yt,t.mapPropsStream=dt,t.mapPropsStreamWithConfig=mt,t.createEventHandler=bt,t.setObservableConfig=st,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],n):n(t.Recompose=t.Recompose||{},t.React)}(this,function(t,n){"use strict";function r(t,n){return t===n?0!==t||0!==n||1/t==1/n:t!==t&&n!==n}function e(t,n){if(r(t,n))return!0;if("object"!=typeof t||null===t||"object"!=typeof n||null===n)return!1;var e=Object.keys(t);if(e.length!==Object.keys(n).length)return!1;for(var o=0;e.length>o;o++)if(!E.call(n,e[o])||!r(t[e[o]],n[e[o]]))return!1;return!0}function o(){for(var t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return 0===n.length?function(t){return t}:1===n.length?n[0]:n.reduce(function(t,n){return function(){return t(n.apply(void 0,arguments))}})}var u="default"in n?n.default:n,i=function(t,n){return function(r){return r[t]=n,r}},c=function(t){return i("displayName",t)},p=function(t){if("string"==typeof t)return t;if(t)return t.displayName||t.name||"Component"},a=function(t,n){return n+"("+p(t)+")"},f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")},l=Object.assign||function(t){for(var n=1;arguments.length>n;n++){var r=arguments[n];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t},y=function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)},h=function(t,n){var r={};for(var e in t)0>n.indexOf(e)&&Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=t[e]);return r},v=function(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?t:n},m=function(t,n,r,e,o){if(!t&&n)return r(o?l({},e,{children:o}):e);var i=r;return o?u.createElement(i,e,o):u.createElement(i,e)},d=function(t){return!(!t||!t.prototype||"object"!==f(t.prototype.isReactComponent))},b=function(t){return!("function"!=typeof t||d(t)||t.defaultProps||t.contextTypes)},g=function(t){var n=b(t);return function(r,e){return m(!1,n,t,r,e)}},O=function(t){return function(n){var r=g(n);return function(n){return r(t(n))}}},P=function(t){return O(function(n){return l({},n,"function"==typeof t?t(n):t)})},S=function(t,n){for(var r={},e=0;n.length>e;e++){var o=n[e];t.hasOwnProperty(o)&&(r[o]=t[o])}return r},E=Object.prototype.hasOwnProperty,C=e,w=function(t,r){return function(e){var o=g(e),u="function"==typeof t?t:function(n,r){return!C(S(n,t),S(r,t))};return function(t){function n(){var e,o,u;s(this,n);for(var i=arguments.length,c=Array(i),p=0;i>p;p++)c[p]=arguments[p];return e=o=v(this,t.call.apply(t,[this].concat(c))),o.computedProps=r(o.props),u=e,v(o,u)}return y(n,t),n.prototype.componentWillReceiveProps=function(t){u(this.props,t)&&(this.computedProps=r(t))},n.prototype.render=function(){return o(l({},this.props,this.computedProps))},n}(n.Component)}},x=function(t,n){var r={};for(var e in t)t.hasOwnProperty(e)&&(r[e]=n(t[e],e));return r},j=function(t){return function(r){var e=g(r),o=function(){var n=this;this.cachedHandlers={},this.handlers=x("function"==typeof t?t(this.props):t,function(t,r){return function(){var e=n.cachedHandlers[r];if(e)return e.apply(void 0,arguments);var o=t(n.props);return n.cachedHandlers[r]=o,o.apply(void 0,arguments)}})};return function(t){function n(){var r,e,u;s(this,n);for(var i=arguments.length,c=Array(i),p=0;i>p;p++)c[p]=arguments[p];return r=e=v(this,t.call.apply(t,[this].concat(c))),o.call(e),u=r,v(e,u)}return y(n,t),n.prototype.componentWillReceiveProps=function(){this.cachedHandlers={}},n.prototype.render=function(){return e(l({},this.props,this.handlers))},n}(n.Component)}},T=function(t){return function(n){var r=g(n),e=function(t){return r(t)};return e.defaultProps=t,e}},N=function(t,n){for(var r=h(t,[]),e=0;n.length>e;e++){var o=n[e];r.hasOwnProperty(o)&&delete r[o]}return r},V=function(t,n){return O(function(r){var e;return l({},N(r,[t]),(e={},e[n]=r[t],e))})},R=Object.keys,A=function(t,n){return R(t).reduce(function(r,e){var o=t[e];return r[n(o,e)]=o,r},{})},W=function(t){return O(function(n){return l({},N(n,R(t)),A(S(n,R(t)),function(n,r){return t[r]}))})},F=function(t){return function(n){var r=g(n);return function(n){return r(l({},n,n[t]))}}},_=function(t,r,e){return function(o){var u=g(o);return function(n){function o(){var t,r,u;s(this,o);for(var i=arguments.length,c=Array(i),p=0;i>p;p++)c[p]=arguments[p];return t=r=v(this,n.call.apply(n,[this].concat(c))),r.state={stateValue:"function"==typeof e?e(r.props):e},r.updateStateValue=function(t,n){return r.setState(function(n){var r=n.stateValue;return{stateValue:"function"==typeof t?t(r):t}},n)},u=t,v(r,u)}return y(o,n),o.prototype.render=function(){var n;return u(l({},this.props,(n={},n[t]=this.state.stateValue,n[r]=this.updateStateValue,n)))},o}(n.Component)}},k=function(t,r,e,o){return function(u){var i=g(u);return function(n){function u(){var t,r,o;s(this,u);for(var i=arguments.length,c=Array(i),p=0;i>p;p++)c[p]=arguments[p];return t=r=v(this,n.call.apply(n,[this].concat(c))),r.state={stateValue:r.initializeStateValue()},r.dispatch=function(t){return r.setState(function(n){return{stateValue:e(n.stateValue,t)}})},o=t,v(r,o)}return y(u,n),u.prototype.initializeStateValue=function(){return void 0!==o?"function"==typeof o?o(this.props):o:e(void 0,{type:"@@recompose/INIT"})},u.prototype.render=function(){var n;return i(l({},this.props,(n={},n[t]=this.state.stateValue,n[r]=this.dispatch,n)))},u}(n.Component)}},H=function(t){return t},U=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:H;return function(e){var o=void 0,u=void 0;return function(i){return t(i)?(o=o||g(n(e)))(i):(u=u||g(r(e)))(i)}}},D=function(t){return function(n){var r=g(t);return function(t){return r(t)}}},M=function(t){function n(){return s(this,n),v(this,t.apply(this,arguments))}return y(n,t),n.prototype.render=function(){return null},n}(n.Component);M.displayName="Nothing";var $,q=function(t){return M},z=function(t){return function(r){var e=g(r);return function(n){function r(){return s(this,r),v(this,n.apply(this,arguments))}return y(r,n),r.prototype.shouldComponentUpdate=function(n){return t(this.props,n)},r.prototype.render=function(){return e(this.props)},r}(n.Component)}},I=function(t){return z(function(t,n){return!C(t,n)})(t)},K=function(t){return z(function(n,r){return!C(S(r,t),S(n,t))})},B=function(t){var n=t.propTypes,r=Object.keys(n||{});return K(r)(t)},G=function(t,r){return function(e){var o=g(e),u=function(t){function n(){var e,o,u;s(this,n);for(var i=arguments.length,c=Array(i),p=0;i>p;p++)c[p]=arguments[p];return e=o=v(this,t.call.apply(t,[this].concat(c))),o.getChildContext=function(){return r(o.props)},u=e,v(o,u)}return y(n,t),n.prototype.render=function(){return o(this.props)},n}(n.Component);return u.childContextTypes=t,u}},J=function(t){return function(n){var r=g(n),e=function(t,n){return r(l({},t,n))};return e.contextTypes=t,e}},L=function(t){return function(r){var e=g(r);return function(n){function r(){s(this,r);for(var e=arguments.length,o=Array(e),u=0;e>u;u++)o[u]=arguments[u];var i=v(this,n.call.apply(n,[this].concat(o)));return Object.assign(i,t),i}return y(r,n),r.prototype.render=function(){return e(l({},this.props,this.state))},r}(n.Component)}},Q=function(t){if(d(t))return t;var r=function(n){function r(){return s(this,r),v(this,n.apply(this,arguments))}return y(r,n),r.prototype.render=function(){return"string"==typeof t?u.createElement(t,this.props):t(this.props,this.context)},r}(n.Component);return r.displayName=p(t),r.propTypes=t.propTypes,r.contextTypes=t.contextTypes,r.defaultProps=t.defaultProps,r},X=function(t){return i("propTypes",t)},Y=function(t,n,r){var e=b(t),o=n&&n.hasOwnProperty("key");return m(o,e,t,n,r)},Z=function(t){return function(n){function r(){return s(this,r),v(this,n.apply(this,arguments))}return y(r,n),r.prototype.componentWillMount=function(){t(this.props)},r.prototype.componentWillReceiveProps=function(n){t(n)},r.prototype.render=function(){return null},r}(n.Component)},tt=function(t){var n=function(n){return Y(n[t],N(n,[t]))};return n.displayName="componentFromProp("+t+")",n},nt=function(){for(var t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];var e=n.map(g);return function(t){var n=h(t,[]),r=t.children;return e.reduceRight(function(t,r){return r(n,t)},r)}},rt={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},et={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},ot="function"==typeof Object.getOwnPropertySymbols,ut=function(t,n,r){if("string"!=typeof n){var e=Object.getOwnPropertyNames(n);ot&&(e=e.concat(Object.getOwnPropertySymbols(n)));for(var o=0;e.length>o;++o)if(!(rt[e[o]]||et[e[o]]||r&&r[e[o]]))try{t[e[o]]=n[e[o]]}catch(t){}}return t},it=function(t){return function(n){var r=t(n);return ut(r,n),r}},ct=function(t,n){return n={exports:{}},t(n,n.exports),n.exports}(function(t,n){Object.defineProperty(n,"__esModule",{value:!0});n.createChangeEmitter=function(){function t(){o===e&&(o=e.slice())}function n(n){if("function"!=typeof n)throw Error("Expected listener to be a function.");var r=!0;return t(),o.push(n),function(){if(r){r=!1,t();var e=o.indexOf(n);o.splice(e,1)}}}function r(){e=o;for(var t=e,n=0;t.length>n;n++)t[n].apply(t,arguments)}var e=[],o=e;return{listen:n,emit:r}}}),pt=ct.createChangeEmitter;$="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof module?module:Function("return this")();var at=function(t){var n,r=t.Symbol;return"function"==typeof r?r.observable?n=r.observable:(n=r("observable"),r.observable=n):n="@@observable",n}($),ft={fromESObservable:null,toESObservable:null},st=function(t){ft=t},lt={fromESObservable:function(t){return"function"==typeof ft.fromESObservable?ft.fromESObservable(t):t},toESObservable:function(t){return"function"==typeof ft.toESObservable?ft.toESObservable(t):t}},yt=function(t){return function(r){return function(n){function e(){var o,u,i,c;s(this,e);for(var p=arguments.length,a=Array(p),f=0;p>f;f++)a[f]=arguments[f];return u=i=v(this,n.call.apply(n,[this].concat(a))),i.state={vdom:null},i.propsEmitter=pt(),i.props$=t.fromESObservable((o={subscribe:function(t){return{unsubscribe:i.propsEmitter.listen(function(n){n?t.next(n):t.complete()})}}},o[at]=function(){return this},o)),i.vdom$=t.toESObservable(r(i.props$)),c=u,v(i,c)}return y(e,n),e.prototype.componentWillMount=function(){var t=this;this.subscription=this.vdom$.subscribe({next:function(n){t.setState({vdom:n})}}),this.propsEmitter.emit(this.props)},e.prototype.componentWillReceiveProps=function(t){this.propsEmitter.emit(t)},e.prototype.shouldComponentUpdate=function(t,n){return n.vdom!==this.state.vdom},e.prototype.componentWillUnmount=function(){this.propsEmitter.emit(),this.subscription.unsubscribe()},e.prototype.render=function(){return this.state.vdom},e}(n.Component)}},ht=function(t){return yt(lt)(t)},vt=function(t){return t},mt=function(t){var n=yt({fromESObservable:vt,toESObservable:vt});return function(r){return function(e){var o=g(e),u=t.fromESObservable,i=t.toESObservable;return n(function(t){var n;return n={subscribe:function(n){var e=i(r(u(t))).subscribe({next:function(t){return n.next(o(t))}});return{unsubscribe:function(){return e.unsubscribe()}}}},n[at]=function(){return this},n})}}},dt=function(t){return mt(lt)(t)},bt=function(t){return function(){var n,r=pt(),e=t.fromESObservable((n={subscribe:function(t){return{unsubscribe:r.listen(function(n){return t.next(n)})}}},n[at]=function(){return this},n));return{handler:r.emit,stream:e}}}(lt);t.mapProps=O,t.withProps=P,t.withPropsOnChange=w,t.withHandlers=j,t.defaultProps=T,t.renameProp=V,t.renameProps=W,t.flattenProp=F,t.withState=_,t.withReducer=k,t.branch=U,t.renderComponent=D,t.renderNothing=q,t.shouldUpdate=z,t.pure=I,t.onlyUpdateForKeys=K,t.onlyUpdateForPropTypes=B,t.withContext=G,t.getContext=J,t.lifecycle=L,t.toClass=Q,t.setStatic=i,t.setPropTypes=X,t.setDisplayName=c,t.compose=o,t.getDisplayName=p,t.wrapDisplayName=a,t.shallowEqual=C,t.isClassComponent=d,t.createEagerElement=Y,t.createEagerFactory=g,t.createSink=Z,t.componentFromProp=tt,t.nest=nt,t.hoistStatics=it,t.componentFromStream=ht,t.componentFromStreamWithConfig=yt,t.mapPropsStream=dt,t.mapPropsStreamWithConfig=mt,t.createEventHandler=bt,t.setObservableConfig=st,Object.defineProperty(t,"__esModule",{value:!0})}); |
@@ -595,3 +595,4 @@ 'use strict'; | ||
} | ||
return hoc; | ||
return hoc(BaseComponent); | ||
}; | ||
@@ -598,0 +599,0 @@ |
@@ -588,3 +588,4 @@ import React, { Component } from 'react'; | ||
} | ||
return hoc; | ||
return hoc(BaseComponent); | ||
}; | ||
@@ -591,0 +592,0 @@ |
{ | ||
"name": "recompose", | ||
"version": "0.23.3", | ||
"version": "0.23.4", | ||
"author": "Andrew Clark <acdlite@me.com>", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -31,5 +31,6 @@ 'use strict'; | ||
} | ||
return hoc; | ||
return hoc(BaseComponent); | ||
}; | ||
exports.default = pure; |
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
193370