effector-react
Advanced tools
Comparing version 0.17.2 to 0.17.3
@@ -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()},r}componentDidMount(){var e=t.subscribe(e=>{e!==this.state.currentState&&this.setState(()=>({currentState:e}))});this.unsub=e}componentWillUnmount(){this.unsub()}render(){return this.props.children(this.state.currentState)}},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 a(n,a){var s=r(n),u=r=>e.createElement(s,null,n=>e.createElement(a,t({},r,n)));return u.displayName=`Connect(${a.displayName||a.name||"Unknown"})`,u}function s(e){return t=>a(t,e)}exports.createReactState=a,exports.connect=s,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){var r;return r=super(...e),this.state={currentState:t.getState()},this.unsub=void 0,r}componentDidMount(){const e=t.subscribe(e=>{e!==this.state.currentState&&this.setState(()=>({currentState:e}))});this.unsub=e}componentWillUnmount(){this.unsub()}render(){return this.props.children(this.state.currentState)}},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 a=r(n),o=r=>e.createElement(a,null,n=>e.createElement(s,t({},r,n)));return o.displayName=`Connect(${s.displayName||s.name||"Unknown"})`,o}function a(e){return t=>s(t,e)}exports.createReactState=s,exports.connect=a,exports.createStoreConsumer=r,exports.unstable_createStoreProvider=n; | ||
//# sourceMappingURL=effector-react.cjs.js.map |
@@ -1,2 +0,2 @@ | ||
import{createElement as t,Component as r}from"react";function e(){return(e=Object.assign||function(t){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t}).apply(this,arguments)}function n(t){var e,n;return n=e=class extends r{constructor(...r){var e;return e=super(...r),this.state={currentState:t.getState()},e}componentDidMount(){var r=t.subscribe(t=>{t!==this.state.currentState&&this.setState(()=>({currentState:t}))});this.unsub=r}componentWillUnmount(){this.unsub()}render(){return this.props.children(this.state.currentState)}},e.displayName=`${t.displayName||"Store"}.Consumer`,n}function a(t){var e,n;return n=e=class extends r{constructor(...t){var r;return r=super(...t),this.state={currentValue:null},r}static getDerivedStateFromProps(r){return t.setState(r.value),{currentValue:r.value}}render(){return this.props.children}},e.displayName=`${t.displayName||"Store"}.Provider`,e.defaultProps={children:null},n}function s(r,a){var s=n(r),u=r=>t(s,null,n=>t(a,e({},r,n)));return u.displayName=`Connect(${a.displayName||a.name||"Unknown"})`,u}function u(t){return r=>s(r,t)}export{s as createReactState,u as connect,n as createStoreConsumer,a 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){var r;return r=super(...e),this.state={currentState:t.getState()},this.unsub=void 0,r}componentDidMount(){const e=t.subscribe(t=>{t!==this.state.currentState&&this.setState(()=>({currentState:t}))});this.unsub=e}componentWillUnmount(){this.unsub()}render(){return this.props.children(this.state.currentState)}},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 a(e,s){const a=n(e),u=e=>t(a,null,n=>t(s,r({},e,n)));return u.displayName=`Connect(${s.displayName||s.name||"Unknown"})`,u}function u(t){return e=>a(e,t)}export{a as createReactState,u as connect,n as createStoreConsumer,s as unstable_createStoreProvider}; | ||
//# sourceMappingURL=effector-react.es.js.map |
{ | ||
"name": "effector-react", | ||
"description": "React bindings for Effector", | ||
"description": "React bindings for effector", | ||
"main": "effector-react.cjs.js", | ||
@@ -14,3 +14,3 @@ "module": "effector-react.es.js", | ||
"peerDependencies": { | ||
"effector": "0.17.2", | ||
"effector": "0.17.3", | ||
"react": "*" | ||
@@ -30,2 +30,3 @@ }, | ||
"files": [ | ||
"README.md", | ||
"effector-react.es.js", | ||
@@ -41,3 +42,6 @@ "effector-react.cjs.js", | ||
"repository": "https://github.com/zerobias/effector", | ||
"version": "0.17.2" | ||
"engines": { | ||
"node": ">=6.0.0" | ||
}, | ||
"version": "0.17.3" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
15646
10
0
51