effector-react
Advanced tools
Comparing version 0.17.7 to 0.18.0-beta.1
@@ -1,2 +0,2 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react");function t(){return(t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function r(t){var r,n;return n=r=class extends e.Component{constructor(...e){var r;return r=super(...e),this.state={currentState:t.getState()},this._unsubscribe=null,this._hasUnmounted=!1,r}componentDidMount(){this.subscribe()}componentWillUnmount(){this.unsubscribe(),this._hasUnmounted=!0}render(){return this.props.children(this.state.currentState)}subscribe(){const e=t.subscribe(e=>{this._hasUnmounted||this.setState(t=>e===t.currentState?null:{currentState:e})});this._unsubscribe=e}unsubscribe(){"function"==typeof this._unsubscribe&&this._unsubscribe(),this._unsubscribe=null}},r.displayName=`${t.displayName||"Store"}.Consumer`,n}function n(t){var r,n;return n=r=class extends e.Component{constructor(...e){var t;return t=super(...e),this.state={currentValue:null},t}static getDerivedStateFromProps(e){return t.setState(e.value),{currentValue:e.value}}render(){return this.props.children}},r.displayName=`${t.displayName||"Store"}.Provider`,r.defaultProps={children:null},n}function s(n,s){const u=r(n),a=r=>e.createElement(u,null,n=>e.createElement(s,t({},r,n)));return a.displayName=`Connect(${s.displayName||s.name||"Unknown"})`,a}function u(e){return t=>s(t,e)}exports.createReactState=s,exports.connect=u,exports.createStoreConsumer=r,exports.unstable_createStoreProvider=n; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react");function t(){return(t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function r(t){var r,n;return n=r=class extends e.Component{constructor(...e){super(...e),this.state={currentState:t.getState()},this._unsubscribe=null,this._hasUnmounted=!1}componentDidMount(){this.subscribe()}componentWillUnmount(){this.unsubscribe(),this._hasUnmounted=!0}render(){return this.props.children(this.state.currentState)}subscribe(){const e=t.subscribe(e=>{this._hasUnmounted||this.setState(t=>e===t.currentState?null:{currentState:e})});this._unsubscribe=e}unsubscribe(){"function"==typeof this._unsubscribe&&this._unsubscribe(),this._unsubscribe=null}},r.displayName=`${t.displayName||"Store"}.Consumer`,n}function n(t){var r,n;return n=r=class extends e.Component{constructor(...e){super(...e),this.state={currentValue:null}}static getDerivedStateFromProps(e){return t.setState(e.value),{currentValue:e.value}}render(){return this.props.children}},r.displayName=`${t.displayName||"Store"}.Provider`,r.defaultProps={children:null},n}function s(n,s){const u=r(n),a=r=>e.createElement(u,null,n=>e.createElement(s,t({},r,n)));return a.displayName=`Connect(${s.displayName||s.name||"Unknown"})`,a}function u(e){return t=>s(t,e)}exports.createReactState=s,exports.connect=u,exports.createStoreConsumer=r,exports.unstable_createStoreProvider=n; | ||
//# sourceMappingURL=effector-react.cjs.js.map |
@@ -1,2 +0,2 @@ | ||
import{createElement as t,Component as e}from"react";function r(){return(r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function n(t){var r,n;return n=r=class extends e{constructor(...e){var r;return r=super(...e),this.state={currentState:t.getState()},this._unsubscribe=null,this._hasUnmounted=!1,r}componentDidMount(){this.subscribe()}componentWillUnmount(){this.unsubscribe(),this._hasUnmounted=!0}render(){return this.props.children(this.state.currentState)}subscribe(){const e=t.subscribe(t=>{this._hasUnmounted||this.setState(e=>t===e.currentState?null:{currentState:t})});this._unsubscribe=e}unsubscribe(){"function"==typeof this._unsubscribe&&this._unsubscribe(),this._unsubscribe=null}},r.displayName=`${t.displayName||"Store"}.Consumer`,n}function s(t){var r,n;return n=r=class extends e{constructor(...t){var e;return e=super(...t),this.state={currentValue:null},e}static getDerivedStateFromProps(e){return t.setState(e.value),{currentValue:e.value}}render(){return this.props.children}},r.displayName=`${t.displayName||"Store"}.Provider`,r.defaultProps={children:null},n}function u(e,s){const u=n(e),i=e=>t(u,null,n=>t(s,r({},e,n)));return i.displayName=`Connect(${s.displayName||s.name||"Unknown"})`,i}function i(t){return e=>u(e,t)}export{u as createReactState,i as connect,n as createStoreConsumer,s as unstable_createStoreProvider}; | ||
import{createElement as t,Component as e}from"react";function r(){return(r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function n(t){var r,n;return n=r=class extends e{constructor(...e){super(...e),this.state={currentState:t.getState()},this._unsubscribe=null,this._hasUnmounted=!1}componentDidMount(){this.subscribe()}componentWillUnmount(){this.unsubscribe(),this._hasUnmounted=!0}render(){return this.props.children(this.state.currentState)}subscribe(){const e=t.subscribe(t=>{this._hasUnmounted||this.setState(e=>t===e.currentState?null:{currentState:t})});this._unsubscribe=e}unsubscribe(){"function"==typeof this._unsubscribe&&this._unsubscribe(),this._unsubscribe=null}},r.displayName=`${t.displayName||"Store"}.Consumer`,n}function s(t){var r,n;return n=r=class extends e{constructor(...t){super(...t),this.state={currentValue:null}}static getDerivedStateFromProps(e){return t.setState(e.value),{currentValue:e.value}}render(){return this.props.children}},r.displayName=`${t.displayName||"Store"}.Provider`,r.defaultProps={children:null},n}function u(e,s){const u=n(e),i=e=>t(u,null,n=>t(s,r({},e,n)));return i.displayName=`Connect(${s.displayName||s.name||"Unknown"})`,i}function i(t){return e=>u(e,t)}export{u as createReactState,i as connect,n as createStoreConsumer,s as unstable_createStoreProvider}; | ||
//# sourceMappingURL=effector-react.es.js.map |
@@ -13,3 +13,3 @@ { | ||
"dependencies": { | ||
"effector": "^0.17.7" | ||
"effector": "^0.18.0-beta.1" | ||
}, | ||
@@ -61,3 +61,3 @@ "peerDependencies": { | ||
], | ||
"version": "0.17.7" | ||
"version": "0.18.0-beta.1" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
18727
41
+ Addedeffector@0.18.11(transitive)
- Removed@most/multicast@1.3.0(transitive)
- Removed@most/prelude@1.8.0(transitive)
- Removeddefine-data-property@1.1.4(transitive)
- Removeddefine-properties@1.2.1(transitive)
- Removedeffector@0.17.7(transitive)
- Removedes-define-property@1.0.1(transitive)
- Removedes-errors@1.3.0(transitive)
- Removedglobalthis@1.0.4(transitive)
- Removedgopd@1.2.0(transitive)
- Removedhas-property-descriptors@1.0.2(transitive)
- Removedinvariant@2.2.4(transitive)
- Removedjs-tokens@4.0.0(transitive)
- Removedloose-envify@1.4.0(transitive)
- Removedmost@1.9.0(transitive)
- Removedobject-keys@1.1.1(transitive)
- Removedsymbol-observable@2.0.3(transitive)
- Removedwarning@4.0.3(transitive)
Updatedeffector@^0.18.0-beta.1