react-redux
Advanced tools
Comparing version 7.2.5 to 7.2.6
@@ -1,9 +0,1 @@ | ||
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","react","react-dom"],r):r((e="undefined"!=typeof globalThis?globalThis:e||self).ReactRedux={},e.React,e.ReactDOM)}(this,(function(e,r,t){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=n(r);function u(e,r,t){return e(t={path:r,exports:{},require:function(e,r){return function(){throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},t.exports),t.exports}function a(){}function c(){}c.resetWarningCache=a;u((function(e){e.exports=function(){function e(e,r,t,n,o,u){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==u){var a=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function r(){return e}e.isRequired=e;var t={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:c,resetWarningCache:a};return t.PropTypes=t,t}()}));var i=o.default.createContext(null);var f=function(e){e()},s=function(){return f};var p={notify:function(){},get:function(){return[]}};function l(e,r){var t,n=p;function o(){a.onStateChange&&a.onStateChange()}function u(){t||(t=r?r.addNestedSub(o):e.subscribe(o),n=function(){var e=s(),r=null,t=null;return{clear:function(){r=null,t=null},notify:function(){e((function(){for(var e=r;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],t=r;t;)e.push(t),t=t.next;return e},subscribe:function(e){var n=!0,o=t={callback:e,next:null,prev:t};return o.prev?o.prev.next=o:r=o,function(){n&&null!==r&&(n=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:r=o.next)}}}}())}var a={addNestedSub:function(e){return u(),n.subscribe(e)},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:o,isSubscribed:function(){return!!t},trySubscribe:u,tryUnsubscribe:function(){t&&(t(),t=void 0,n.clear(),n=p)},getListeners:function(){return n}};return a}var d="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect;function y(){return(y=Object.assign||function(e){for(var r=1;arguments.length>r;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}function v(e,r){if(null==e)return{};var t,n,o={},u=Object.keys(e);for(n=0;u.length>n;n++)0>r.indexOf(t=u[n])&&(o[t]=e[t]);return o} | ||
/** @license React v16.13.1 | ||
* react-is.production.min.js | ||
* | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/var m="function"==typeof Symbol&&Symbol.for,b=m?Symbol.for("react.element"):60103,h=m?Symbol.for("react.portal"):60106,S=m?Symbol.for("react.fragment"):60107,P=m?Symbol.for("react.strict_mode"):60108,g=m?Symbol.for("react.profiler"):60114,O=m?Symbol.for("react.provider"):60109,w=m?Symbol.for("react.context"):60110,C=m?Symbol.for("react.async_mode"):60111,x=m?Symbol.for("react.concurrent_mode"):60111,E=m?Symbol.for("react.forward_ref"):60112,T=m?Symbol.for("react.suspense"):60113,M=m?Symbol.for("react.suspense_list"):60120,R=m?Symbol.for("react.memo"):60115,$=m?Symbol.for("react.lazy"):60116,N=m?Symbol.for("react.block"):60121,j=m?Symbol.for("react.fundamental"):60117,q=m?Symbol.for("react.responder"):60118,D=m?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var r=e.$$typeof;switch(r){case b:switch(e=e.type){case C:case x:case S:case g:case P:case T:return e;default:switch(e=e&&e.$$typeof){case w:case E:case $:case R:case O:return e;default:return r}}case h:return r}}}function F(e){return _(e)===x}var k={AsyncMode:C,ConcurrentMode:x,ContextConsumer:w,ContextProvider:O,Element:b,ForwardRef:E,Fragment:S,Lazy:$,Memo:R,Portal:h,Profiler:g,StrictMode:P,Suspense:T,isAsyncMode:function(e){return F(e)||_(e)===C},isConcurrentMode:F,isContextConsumer:function(e){return _(e)===w},isContextProvider:function(e){return _(e)===O},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===b},isForwardRef:function(e){return _(e)===E},isFragment:function(e){return _(e)===S},isLazy:function(e){return _(e)===$},isMemo:function(e){return _(e)===R},isPortal:function(e){return _(e)===h},isProfiler:function(e){return _(e)===g},isStrictMode:function(e){return _(e)===P},isSuspense:function(e){return _(e)===T},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===S||e===x||e===g||e===P||e===T||e===M||"object"==typeof e&&null!==e&&(e.$$typeof===$||e.$$typeof===R||e.$$typeof===O||e.$$typeof===w||e.$$typeof===E||e.$$typeof===j||e.$$typeof===q||e.$$typeof===D||e.$$typeof===N)},typeOf:_},H=u((function(e){e.exports=k})),U={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},A={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},W={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},L={};function I(e){return H.isMemo(e)?W:L[e.$$typeof]||U}L[H.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},L[H.Memo]=W;var z=Object.defineProperty,K=Object.getOwnPropertyNames,V=Object.getOwnPropertySymbols,B=Object.getOwnPropertyDescriptor,Y=Object.getPrototypeOf,G=Object.prototype;var J=function e(r,t,n){if("string"!=typeof t){if(G){var o=Y(t);o&&o!==G&&e(r,o,n)}var u=K(t);V&&(u=u.concat(V(t)));for(var a=I(r),c=I(t),i=0;u.length>i;++i){var f=u[i];if(!(A[f]||n&&n[f]||c&&c[f]||a&&a[f])){var s=B(t,f);try{z(r,f,s)}catch(e){}}}}return r},Q=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],X=["reactReduxForwardedRef"],Z=[],ee=[null,null];function re(e,r){return[r.payload,e[1]+1]}function te(e,r,t){d((function(){return e.apply(void 0,r)}),t)}function ne(e,r,t,n,o,u,a){e.current=n,r.current=o,t.current=!1,u.current&&(u.current=null,a())}function oe(e,r,t,n,o,u,a,c,i,f){if(e){var s=!1,p=null,l=function(){if(!s){var e,t,l=r.getState();try{e=n(l,o.current)}catch(e){t=e,p=e}t||(p=null),e===u.current?a.current||i():(u.current=e,c.current=e,a.current=!0,f({type:"STORE_UPDATED",payload:{error:t}}))}};t.onStateChange=l,t.trySubscribe(),l();return function(){if(s=!0,t.tryUnsubscribe(),t.onStateChange=null,p)throw p}}}var ue=function(){return[null,0]};function ae(e,t){void 0===t&&(t={});var n=t,u=n.getDisplayName,a=void 0===u?function(e){return"ConnectAdvanced("+e+")"}:u,c=n.methodName,f=void 0===c?"connectAdvanced":c,s=n.renderCountProp,p=void 0===s?void 0:s,d=n.shouldHandleStateChanges,m=void 0===d||d,b=n.storeKey,h=void 0===b?"store":b,S=n.forwardRef,P=void 0!==S&&S,g=n.context,O=void 0===g?i:g,w=v(n,Q),C=O;return function(t){var n=t.displayName||t.name||"Component",u=a(n),c=y({},w,{getDisplayName:a,methodName:f,renderCountProp:p,shouldHandleStateChanges:m,storeKey:h,displayName:u,wrappedComponentName:n,WrappedComponent:t}),i=w.pure;var s=i?r.useMemo:function(e){return e()};function d(n){var u=r.useMemo((function(){var e=n.reactReduxForwardedRef,r=v(n,X);return[n.context,e,r]}),[n]),a=u[0],i=u[1],f=u[2],p=r.useMemo((function(){return a&&a.Consumer&&H.isContextConsumer(o.default.createElement(a.Consumer,null))?a:C}),[a,C]),d=r.useContext(p),b=!!n.store&&!!n.store.getState&&!!n.store.dispatch,h=b?n.store:d.store,S=r.useMemo((function(){return function(r){return e(r.dispatch,c)}(h)}),[h]),P=r.useMemo((function(){if(!m)return ee;var e=l(h,b?null:d.subscription),r=e.notifyNestedSubs.bind(e);return[e,r]}),[h,b,d]),g=P[0],O=P[1],w=r.useMemo((function(){return b?d:y({},d,{subscription:g})}),[b,d,g]),x=r.useReducer(re,Z,ue),E=x[0][0],T=x[1];if(E&&E.error)throw E.error;var M=r.useRef(),R=r.useRef(f),$=r.useRef(),N=r.useRef(!1),j=s((function(){return $.current&&f===R.current?$.current:S(h.getState(),f)}),[h,E,f]);te(ne,[R,M,N,f,j,$,O]),te(oe,[m,h,g,S,R,M,N,$,O,T],[h,g,S]);var q=r.useMemo((function(){return o.default.createElement(t,y({},j,{ref:i}))}),[i,t,j]);return r.useMemo((function(){return m?o.default.createElement(p.Provider,{value:w},q):q}),[p,q,w])}var b=i?o.default.memo(d):d;if(b.WrappedComponent=t,b.displayName=d.displayName=u,P){var S=o.default.forwardRef((function(e,r){return o.default.createElement(b,y({},e,{reactReduxForwardedRef:r}))}));return S.displayName=u,S.WrappedComponent=t,J(S,t)}return J(b,t)}}function ce(e,r){return e===r?0!==e||0!==r||1/e==1/r:e!=e&&r!=r}function ie(e,r){if(ce(e,r))return!0;if("object"!=typeof e||null===e||"object"!=typeof r||null===r)return!1;var t=Object.keys(e);if(t.length!==Object.keys(r).length)return!1;for(var n=0;t.length>n;n++)if(!Object.prototype.hasOwnProperty.call(r,t[n])||!ce(e[t[n]],r[t[n]]))return!1;return!0}function fe(e){return function(r,t){var n=e(r,t);function o(){return n}return o.dependsOnOwnProps=!1,o}}function se(e){return null!=e.dependsOnOwnProps?!!e.dependsOnOwnProps:1!==e.length}function pe(e,r){return function(r,t){var n=function(e,r){return n.dependsOnOwnProps?n.mapToProps(e,r):n.mapToProps(e)};return n.dependsOnOwnProps=!0,n.mapToProps=function(r,t){n.mapToProps=e,n.dependsOnOwnProps=se(e);var o=n(r,t);return"function"==typeof o&&(n.mapToProps=o,n.dependsOnOwnProps=se(o),o=n(r,t)),o},n}}var le=[function(e){return"function"==typeof e?pe(e):void 0},function(e){return e?void 0:fe((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?fe((function(r){return function(e,r){var t={},n=function(n){var o=e[n];"function"==typeof o&&(t[n]=function(){return r(o.apply(void 0,arguments))})};for(var o in e)n(o);return t}(e,r)})):void 0}];var de=[function(e){return"function"==typeof e?pe(e):void 0},function(e){return e?void 0:fe((function(){return{}}))}];function ye(e,r,t){return y({},t,e,r)}var ve=[function(e){return"function"==typeof e?function(e){return function(r,t){var n,o=t.pure,u=t.areMergedPropsEqual,a=!1;return function(r,t,c){var i=e(r,t,c);return a?o&&u(i,n)||(n=i):(a=!0,n=i),n}}}(e):void 0},function(e){return e?void 0:function(){return ye}}],me=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function be(e,r,t,n){return function(o,u){return t(e(o,u),r(n,u),u)}}function he(e,r,t,n,o){var u,a,c,i,f,s=o.areStatesEqual,p=o.areOwnPropsEqual,l=o.areStatePropsEqual,d=!1;function y(o,d){var y,v,m=!p(d,a),b=!s(o,u);return u=o,a=d,m&&b?(c=e(u,a),r.dependsOnOwnProps&&(i=r(n,a)),f=t(c,i,a)):m?(e.dependsOnOwnProps&&(c=e(u,a)),r.dependsOnOwnProps&&(i=r(n,a)),f=t(c,i,a)):b?(y=e(u,a),v=!l(y,c),c=y,v&&(f=t(c,i,a)),f):f}return function(o,s){return d?y(o,s):(c=e(u=o,a=s),i=r(n,a),f=t(c,i,a),d=!0,f)}}function Se(e,r){var t=r.initMapStateToProps,n=r.initMapDispatchToProps,o=r.initMergeProps,u=v(r,me),a=t(e,u),c=n(e,u),i=o(e,u);return(u.pure?he:be)(a,c,i,e,u)}var Pe=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function ge(e,r,t){for(var n=r.length-1;n>=0;n--){var o=r[n](e);if(o)return o}return function(r,n){throw Error("Invalid value of type "+typeof e+" for "+t+" argument when connecting component "+n.wrappedComponentName+".")}}function Oe(e,r){return e===r}function we(e){var r=void 0===e?{}:e,t=r.connectHOC,n=void 0===t?ae:t,o=r.mapStateToPropsFactories,u=void 0===o?de:o,a=r.mapDispatchToPropsFactories,c=void 0===a?le:a,i=r.mergePropsFactories,f=void 0===i?ve:i,s=r.selectorFactory,p=void 0===s?Se:s;return function(e,r,t,o){void 0===o&&(o={});var a=o.pure,i=void 0===a||a,s=o.areStatesEqual,l=void 0===s?Oe:s,d=o.areOwnPropsEqual,m=void 0===d?ie:d,b=o.areStatePropsEqual,h=void 0===b?ie:b,S=o.areMergedPropsEqual,P=void 0===S?ie:S,g=v(o,Pe),O=ge(e,u,"mapStateToProps"),w=ge(r,c,"mapDispatchToProps"),C=ge(t,f,"mergeProps");return n(p,y({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:!!e,initMapStateToProps:O,initMapDispatchToProps:w,initMergeProps:C,pure:i,areStatesEqual:l,areOwnPropsEqual:m,areStatePropsEqual:h,areMergedPropsEqual:P},g))}}var Ce=we();function xe(){return r.useContext(i)}function Ee(e){void 0===e&&(e=i);var t=e===i?xe:function(){return r.useContext(e)};return function(){return t().store}}var Te=Ee();function Me(e){void 0===e&&(e=i);var r=e===i?Te:Ee(e);return function(){return r().dispatch}}var Re=Me(),$e=function(e,r){return e===r};function Ne(e){void 0===e&&(e=i);var t=e===i?xe:function(){return r.useContext(e)};return function(e,n){void 0===n&&(n=$e);var o=t(),u=function(e,t,n,o){var u,a=r.useReducer((function(e){return e+1}),0)[1],c=r.useMemo((function(){return l(n,o)}),[n,o]),i=r.useRef(),f=r.useRef(),s=r.useRef(),p=r.useRef(),y=n.getState();try{if(e!==f.current||y!==s.current||i.current){var v=e(y);u=void 0!==p.current&&t(v,p.current)?p.current:v}else u=p.current}catch(e){throw i.current&&(e.message+="\nThe error may be correlated with this previous error:\n"+i.current.stack+"\n\n"),e}return d((function(){f.current=e,s.current=y,p.current=u,i.current=void 0})),d((function(){function e(){try{var e=n.getState();if(e===s.current)return;var r=f.current(e);if(t(r,p.current))return;p.current=r,s.current=e}catch(e){i.current=e}a()}return c.onStateChange=e,c.trySubscribe(),e(),function(){return c.tryUnsubscribe()}}),[n,c]),u}(e,n,o.store,o.subscription);return r.useDebugValue(u),u}}var je=Ne();f=t.unstable_batchedUpdates,Object.defineProperty(e,"batch",{enumerable:!0,get:function(){return t.unstable_batchedUpdates}}),e.Provider=function(e){var t=e.store,n=e.context,u=e.children,a=r.useMemo((function(){var e=l(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),c=r.useMemo((function(){return t.getState()}),[t]);return d((function(){var e=a.subscription;return e.trySubscribe(),c!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[a,c]),o.default.createElement((n||i).Provider,{value:a},u)},e.ReactReduxContext=i,e.connect=Ce,e.connectAdvanced=ae,e.createDispatchHook=Me,e.createSelectorHook=Ne,e.createStoreHook=Ee,e.shallowEqual=ie,e.useDispatch=Re,e.useSelector=je,e.useStore=Te,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","react","react-dom"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).ReactRedux={},e.React,e.ReactDOM)}(this,(function(e,t,r){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=n(t);function u(){}function a(){}a.resetWarningCache=u;!function(){function e(e,t,r,n,o,u){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==u){var a=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:u};r.PropTypes=r}();var c=o.default.createContext(null);var i=function(e){e()},f=function(){return i};var s={notify:function(){},get:function(){return[]}};function p(e,t){var r,n=s;function o(){a.onStateChange&&a.onStateChange()}function u(){r||(r=t?t.addNestedSub(o):e.subscribe(o),n=function(){var e=f(),t=null,r=null;return{clear:function(){t=null,r=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],r=t;r;)e.push(r),r=r.next;return e},subscribe:function(e){var n=!0,o=r={callback:e,next:null,prev:r};return o.prev?o.prev.next=o:t=o,function(){n&&null!==t&&(n=!1,o.next?o.next.prev=o.prev:r=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}var a={addNestedSub:function(e){return u(),n.subscribe(e)},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:o,isSubscribed:function(){return!!r},trySubscribe:u,tryUnsubscribe:function(){r&&(r(),r=void 0,n.clear(),n=s)},getListeners:function(){return n}};return a}var l="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?t.useLayoutEffect:t.useEffect;function d(){return d=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},d.apply(this,arguments)}function y(e,t){if(null==e)return{};var r,n,o={},u=Object.keys(e);for(n=0;u.length>n;n++)0>t.indexOf(r=u[n])&&(o[r]=e[r]);return o}var v={exports:{}},m={},b="function"==typeof Symbol&&Symbol.for,S=b?Symbol.for("react.element"):60103,h=b?Symbol.for("react.portal"):60106,P=b?Symbol.for("react.fragment"):60107,g=b?Symbol.for("react.strict_mode"):60108,O=b?Symbol.for("react.profiler"):60114,w=b?Symbol.for("react.provider"):60109,C=b?Symbol.for("react.context"):60110,x=b?Symbol.for("react.async_mode"):60111,$=b?Symbol.for("react.concurrent_mode"):60111,M=b?Symbol.for("react.forward_ref"):60112,E=b?Symbol.for("react.suspense"):60113,T=b?Symbol.for("react.suspense_list"):60120,R=b?Symbol.for("react.memo"):60115,j=b?Symbol.for("react.lazy"):60116,N=b?Symbol.for("react.block"):60121,_=b?Symbol.for("react.fundamental"):60117,D=b?Symbol.for("react.responder"):60118,q=b?Symbol.for("react.scope"):60119;function F(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case S:switch(e=e.type){case x:case $:case P:case O:case g:case E:return e;default:switch(e=e&&e.$$typeof){case C:case M:case j:case R:case w:return e;default:return t}}case h:return t}}}function k(e){return F(e)===$}m.AsyncMode=x,m.ConcurrentMode=$,m.ContextConsumer=C,m.ContextProvider=w,m.Element=S,m.ForwardRef=M,m.Fragment=P,m.Lazy=j,m.Memo=R,m.Portal=h,m.Profiler=O,m.StrictMode=g,m.Suspense=E,m.isAsyncMode=function(e){return k(e)||F(e)===x},m.isConcurrentMode=k,m.isContextConsumer=function(e){return F(e)===C},m.isContextProvider=function(e){return F(e)===w},m.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===S},m.isForwardRef=function(e){return F(e)===M},m.isFragment=function(e){return F(e)===P},m.isLazy=function(e){return F(e)===j},m.isMemo=function(e){return F(e)===R},m.isPortal=function(e){return F(e)===h},m.isProfiler=function(e){return F(e)===O},m.isStrictMode=function(e){return F(e)===g},m.isSuspense=function(e){return F(e)===E},m.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===P||e===$||e===O||e===g||e===E||e===T||"object"==typeof e&&null!==e&&(e.$$typeof===j||e.$$typeof===R||e.$$typeof===w||e.$$typeof===C||e.$$typeof===M||e.$$typeof===_||e.$$typeof===D||e.$$typeof===q||e.$$typeof===N)},m.typeOf=F,v.exports=m;var H=v.exports,U={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},A={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},L={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},W={};function z(e){return H.isMemo(e)?L:W[e.$$typeof]||U}W[H.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},W[H.Memo]=L;var I=Object.defineProperty,V=Object.getOwnPropertyNames,K=Object.getOwnPropertySymbols,B=Object.getOwnPropertyDescriptor,Y=Object.getPrototypeOf,G=Object.prototype;var J=function e(t,r,n){if("string"!=typeof r){if(G){var o=Y(r);o&&o!==G&&e(t,o,n)}var u=V(r);K&&(u=u.concat(K(r)));for(var a=z(t),c=z(r),i=0;u.length>i;++i){var f=u[i];if(!(A[f]||n&&n[f]||c&&c[f]||a&&a[f])){var s=B(r,f);try{I(t,f,s)}catch(e){}}}}return t},Q={exports:{}},X={},Z=60103,ee=60106,te=60107,re=60108,ne=60114,oe=60109,ue=60110,ae=60112,ce=60113,ie=60120,fe=60115,se=60116,pe=60121,le=60122,de=60117,ye=60129,ve=60131;if("function"==typeof Symbol&&Symbol.for){var me=Symbol.for;Z=me("react.element"),ee=me("react.portal"),te=me("react.fragment"),re=me("react.strict_mode"),ne=me("react.profiler"),oe=me("react.provider"),ue=me("react.context"),ae=me("react.forward_ref"),ce=me("react.suspense"),ie=me("react.suspense_list"),fe=me("react.memo"),se=me("react.lazy"),pe=me("react.block"),le=me("react.server.block"),de=me("react.fundamental"),ye=me("react.debug_trace_mode"),ve=me("react.legacy_hidden")}function be(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Z:switch(e=e.type){case te:case ne:case re:case ce:case ie:return e;default:switch(e=e&&e.$$typeof){case ue:case ae:case se:case fe:case oe:return e;default:return t}}case ee:return t}}}var Se=oe,he=Z,Pe=ae,ge=te,Oe=se,we=fe,Ce=ee,xe=ne,$e=re,Me=ce;X.ContextConsumer=ue,X.ContextProvider=Se,X.Element=he,X.ForwardRef=Pe,X.Fragment=ge,X.Lazy=Oe,X.Memo=we,X.Portal=Ce,X.Profiler=xe,X.StrictMode=$e,X.Suspense=Me,X.isAsyncMode=function(){return!1},X.isConcurrentMode=function(){return!1},X.isContextConsumer=function(e){return be(e)===ue},X.isContextProvider=function(e){return be(e)===oe},X.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Z},X.isForwardRef=function(e){return be(e)===ae},X.isFragment=function(e){return be(e)===te},X.isLazy=function(e){return be(e)===se},X.isMemo=function(e){return be(e)===fe},X.isPortal=function(e){return be(e)===ee},X.isProfiler=function(e){return be(e)===ne},X.isStrictMode=function(e){return be(e)===re},X.isSuspense=function(e){return be(e)===ce},X.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===te||e===ne||e===ye||e===re||e===ce||e===ie||e===ve||"object"==typeof e&&null!==e&&(e.$$typeof===se||e.$$typeof===fe||e.$$typeof===oe||e.$$typeof===ue||e.$$typeof===ae||e.$$typeof===de||e.$$typeof===pe||e[0]===le)},X.typeOf=be,Q.exports=X;var Ee=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],Te=["reactReduxForwardedRef"],Re=[],je=[null,null];function Ne(e,t){return[t.payload,e[1]+1]}function _e(e,t,r){l((function(){return e.apply(void 0,t)}),r)}function De(e,t,r,n,o,u,a){e.current=n,t.current=o,r.current=!1,u.current&&(u.current=null,a())}function qe(e,t,r,n,o,u,a,c,i,f){if(e){var s=!1,p=null,l=function(){if(!s){var e,r,l=t.getState();try{e=n(l,o.current)}catch(e){r=e,p=e}r||(p=null),e===u.current?a.current||i():(u.current=e,c.current=e,a.current=!0,f({type:"STORE_UPDATED",payload:{error:r}}))}};r.onStateChange=l,r.trySubscribe(),l();return function(){if(s=!0,r.tryUnsubscribe(),r.onStateChange=null,p)throw p}}}var Fe=function(){return[null,0]};function ke(e,r){void 0===r&&(r={});var n=r,u=n.getDisplayName,a=void 0===u?function(e){return"ConnectAdvanced("+e+")"}:u,i=n.methodName,f=void 0===i?"connectAdvanced":i,s=n.renderCountProp,l=void 0===s?void 0:s,v=n.shouldHandleStateChanges,m=void 0===v||v,b=n.storeKey,S=void 0===b?"store":b,h=n.forwardRef,P=void 0!==h&&h,g=n.context,O=void 0===g?c:g,w=y(n,Ee),C=O;return function(r){var n=r.displayName||r.name||"Component",u=a(n),c=d({},w,{getDisplayName:a,methodName:f,renderCountProp:l,shouldHandleStateChanges:m,storeKey:S,displayName:u,wrappedComponentName:n,WrappedComponent:r}),i=w.pure;var s=i?t.useMemo:function(e){return e()};function v(n){var u=t.useMemo((function(){var e=n.reactReduxForwardedRef,t=y(n,Te);return[n.context,e,t]}),[n]),a=u[0],i=u[1],f=u[2],l=t.useMemo((function(){return a&&a.Consumer&&Q.exports.isContextConsumer(o.default.createElement(a.Consumer,null))?a:C}),[a,C]),v=t.useContext(l),b=!!n.store&&!!n.store.getState&&!!n.store.dispatch,S=b?n.store:v.store,h=t.useMemo((function(){return function(t){return e(t.dispatch,c)}(S)}),[S]),P=t.useMemo((function(){if(!m)return je;var e=p(S,b?null:v.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[S,b,v]),g=P[0],O=P[1],w=t.useMemo((function(){return b?v:d({},v,{subscription:g})}),[b,v,g]),x=t.useReducer(Ne,Re,Fe),$=x[0][0],M=x[1];if($&&$.error)throw $.error;var E=t.useRef(),T=t.useRef(f),R=t.useRef(),j=t.useRef(!1),N=s((function(){return R.current&&f===T.current?R.current:h(S.getState(),f)}),[S,$,f]);_e(De,[T,E,j,f,N,R,O]),_e(qe,[m,S,g,h,T,E,j,R,O,M],[S,g,h]);var _=t.useMemo((function(){return o.default.createElement(r,d({},N,{ref:i}))}),[i,r,N]);return t.useMemo((function(){return m?o.default.createElement(l.Provider,{value:w},_):_}),[l,_,w])}var b=i?o.default.memo(v):v;if(b.WrappedComponent=r,b.displayName=v.displayName=u,P){var h=o.default.forwardRef((function(e,t){return o.default.createElement(b,d({},e,{reactReduxForwardedRef:t}))}));return h.displayName=u,h.WrappedComponent=r,J(h,r)}return J(b,r)}}function He(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Ue(e,t){if(He(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(var n=0;r.length>n;n++)if(!Object.prototype.hasOwnProperty.call(t,r[n])||!He(e[r[n]],t[r[n]]))return!1;return!0}function Ae(e){return function(t,r){var n=e(t,r);function o(){return n}return o.dependsOnOwnProps=!1,o}}function Le(e){return null!=e.dependsOnOwnProps?!!e.dependsOnOwnProps:1!==e.length}function We(e,t){return function(t,r){var n=function(e,t){return n.dependsOnOwnProps?n.mapToProps(e,t):n.mapToProps(e)};return n.dependsOnOwnProps=!0,n.mapToProps=function(t,r){n.mapToProps=e,n.dependsOnOwnProps=Le(e);var o=n(t,r);return"function"==typeof o&&(n.mapToProps=o,n.dependsOnOwnProps=Le(o),o=n(t,r)),o},n}}var ze=[function(e){return"function"==typeof e?We(e):void 0},function(e){return e?void 0:Ae((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?Ae((function(t){return function(e,t){var r={},n=function(n){var o=e[n];"function"==typeof o&&(r[n]=function(){return t(o.apply(void 0,arguments))})};for(var o in e)n(o);return r}(e,t)})):void 0}];var Ie=[function(e){return"function"==typeof e?We(e):void 0},function(e){return e?void 0:Ae((function(){return{}}))}];function Ve(e,t,r){return d({},r,e,t)}var Ke=[function(e){return"function"==typeof e?function(e){return function(t,r){var n,o=r.pure,u=r.areMergedPropsEqual,a=!1;return function(t,r,c){var i=e(t,r,c);return a?o&&u(i,n)||(n=i):(a=!0,n=i),n}}}(e):void 0},function(e){return e?void 0:function(){return Ve}}],Be=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function Ye(e,t,r,n){return function(o,u){return r(e(o,u),t(n,u),u)}}function Ge(e,t,r,n,o){var u,a,c,i,f,s=o.areStatesEqual,p=o.areOwnPropsEqual,l=o.areStatePropsEqual,d=!1;function y(o,d){var y,v,m=!p(d,a),b=!s(o,u);return u=o,a=d,m&&b?(c=e(u,a),t.dependsOnOwnProps&&(i=t(n,a)),f=r(c,i,a)):m?(e.dependsOnOwnProps&&(c=e(u,a)),t.dependsOnOwnProps&&(i=t(n,a)),f=r(c,i,a)):b?(y=e(u,a),v=!l(y,c),c=y,v&&(f=r(c,i,a)),f):f}return function(o,s){return d?y(o,s):(c=e(u=o,a=s),i=t(n,a),f=r(c,i,a),d=!0,f)}}function Je(e,t){var r=t.initMapStateToProps,n=t.initMapDispatchToProps,o=t.initMergeProps,u=y(t,Be),a=r(e,u),c=n(e,u),i=o(e,u);return(u.pure?Ge:Ye)(a,c,i,e,u)}var Qe=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function Xe(e,t,r){for(var n=t.length-1;n>=0;n--){var o=t[n](e);if(o)return o}return function(t,n){throw Error("Invalid value of type "+typeof e+" for "+r+" argument when connecting component "+n.wrappedComponentName+".")}}function Ze(e,t){return e===t}function et(e){var t=void 0===e?{}:e,r=t.connectHOC,n=void 0===r?ke:r,o=t.mapStateToPropsFactories,u=void 0===o?Ie:o,a=t.mapDispatchToPropsFactories,c=void 0===a?ze:a,i=t.mergePropsFactories,f=void 0===i?Ke:i,s=t.selectorFactory,p=void 0===s?Je:s;return function(e,t,r,o){void 0===o&&(o={});var a=o.pure,i=void 0===a||a,s=o.areStatesEqual,l=void 0===s?Ze:s,v=o.areOwnPropsEqual,m=void 0===v?Ue:v,b=o.areStatePropsEqual,S=void 0===b?Ue:b,h=o.areMergedPropsEqual,P=void 0===h?Ue:h,g=y(o,Qe),O=Xe(e,u,"mapStateToProps"),w=Xe(t,c,"mapDispatchToProps"),C=Xe(r,f,"mergeProps");return n(p,d({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:!!e,initMapStateToProps:O,initMapDispatchToProps:w,initMergeProps:C,pure:i,areStatesEqual:l,areOwnPropsEqual:m,areStatePropsEqual:S,areMergedPropsEqual:P},g))}}var tt=et();function rt(){return t.useContext(c)}function nt(e){void 0===e&&(e=c);var r=e===c?rt:function(){return t.useContext(e)};return function(){return r().store}}var ot=nt();function ut(e){void 0===e&&(e=c);var t=e===c?ot:nt(e);return function(){return t().dispatch}}var at=ut(),ct=function(e,t){return e===t};function it(e){void 0===e&&(e=c);var r=e===c?rt:function(){return t.useContext(e)};return function(e,n){void 0===n&&(n=ct);var o=r(),u=function(e,r,n,o){var u,a=t.useReducer((function(e){return e+1}),0)[1],c=t.useMemo((function(){return p(n,o)}),[n,o]),i=t.useRef(),f=t.useRef(),s=t.useRef(),d=t.useRef(),y=n.getState();try{if(e!==f.current||y!==s.current||i.current){var v=e(y);u=void 0!==d.current&&r(v,d.current)?d.current:v}else u=d.current}catch(e){throw i.current&&(e.message+="\nThe error may be correlated with this previous error:\n"+i.current.stack+"\n\n"),e}return l((function(){f.current=e,s.current=y,d.current=u,i.current=void 0})),l((function(){function e(){try{var e=n.getState();if(e===s.current)return;var t=f.current(e);if(r(t,d.current))return;d.current=t,s.current=e}catch(e){i.current=e}a()}return c.onStateChange=e,c.trySubscribe(),e(),function(){return c.tryUnsubscribe()}}),[n,c]),u}(e,n,o.store,o.subscription);return t.useDebugValue(u),u}}var ft=it();i=r.unstable_batchedUpdates,Object.defineProperty(e,"batch",{enumerable:!0,get:function(){return r.unstable_batchedUpdates}}),e.Provider=function(e){var r=e.store,n=e.context,u=e.children,a=t.useMemo((function(){var e=p(r);return e.onStateChange=e.notifyNestedSubs,{store:r,subscription:e}}),[r]),i=t.useMemo((function(){return r.getState()}),[r]);return l((function(){var e=a.subscription;return e.trySubscribe(),i!==r.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[a,i]),o.default.createElement((n||c).Provider,{value:a},u)},e.ReactReduxContext=c,e.connect=tt,e.connectAdvanced=ke,e.createDispatchHook=ut,e.createSelectorHook=it,e.createStoreHook=nt,e.shallowEqual=Ue,e.useDispatch=at,e.useSelector=ft,e.useStore=ot,Object.defineProperty(e,"__esModule",{value:!0})})); |
@@ -132,10 +132,10 @@ import _extends from "@babel/runtime/helpers/esm/extends"; | ||
compute new props from state, props, and dispatch. For example: | ||
export default connectAdvanced((dispatch, options) => (state, props) => ({ | ||
export default connectAdvanced((dispatch, options) => (state, props) => ({ | ||
thing: state.things[props.thingId], | ||
saveThing: fields => dispatch(actionCreators.saveThing(props.thingId, fields)), | ||
}))(YourComponent) | ||
Access to dispatch is provided to the factory so selectorFactories can bind actionCreators | ||
Access to dispatch is provided to the factory so selectorFactories can bind actionCreators | ||
outside of their selector as an optimization. Options passed to connectAdvanced are passed to | ||
the selectorFactory, along with displayName and WrappedComponent, as the second argument. | ||
Note that selectorFactory is responsible for all caching/memoization of inbound and outbound | ||
Note that selectorFactory is responsible for all caching/memoization of inbound and outbound | ||
props. Do not use connectAdvanced directly without memoizing results between calls to your | ||
@@ -142,0 +142,0 @@ selector, otherwise the Connect component will re-render on every state or props change. |
@@ -0,0 +0,0 @@ import _extends from "@babel/runtime/helpers/esm/extends"; |
@@ -0,0 +0,0 @@ import { ReactReduxContext } from '../components/Context'; |
@@ -0,0 +0,0 @@ import { useContext } from 'react'; |
@@ -0,0 +0,0 @@ import { useReducer, useRef, useMemo, useContext, useDebugValue } from 'react'; |
@@ -0,0 +0,0 @@ import { useContext } from 'react'; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"]; | ||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard")["default"]; | ||
exports.__esModule = true; | ||
@@ -26,7 +28,2 @@ exports["default"] = connectAdvanced; | ||
_excluded2 = ["reactReduxForwardedRef"]; | ||
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } | ||
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
// Define some constant arrays just to avoid re-creating these | ||
@@ -153,10 +150,10 @@ var EMPTY_ARRAY = []; | ||
compute new props from state, props, and dispatch. For example: | ||
export default connectAdvanced((dispatch, options) => (state, props) => ({ | ||
export default connectAdvanced((dispatch, options) => (state, props) => ({ | ||
thing: state.things[props.thingId], | ||
saveThing: fields => dispatch(actionCreators.saveThing(props.thingId, fields)), | ||
}))(YourComponent) | ||
Access to dispatch is provided to the factory so selectorFactories can bind actionCreators | ||
Access to dispatch is provided to the factory so selectorFactories can bind actionCreators | ||
outside of their selector as an optimization. Options passed to connectAdvanced are passed to | ||
the selectorFactory, along with displayName and WrappedComponent, as the second argument. | ||
Note that selectorFactory is responsible for all caching/memoization of inbound and outbound | ||
Note that selectorFactory is responsible for all caching/memoization of inbound and outbound | ||
props. Do not use connectAdvanced directly without memoizing results between calls to your | ||
@@ -163,0 +160,0 @@ selector, otherwise the Connect component will re-render on every state or props change. |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"]; | ||
@@ -5,0 +5,0 @@ exports.__esModule = true; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"]; | ||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard")["default"]; | ||
exports.__esModule = true; | ||
@@ -18,6 +20,2 @@ exports["default"] = void 0; | ||
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } | ||
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
function Provider(_ref) { | ||
@@ -24,0 +22,0 @@ var store = _ref.store, |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"]; | ||
@@ -5,0 +5,0 @@ exports.__esModule = true; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"]; | ||
exports.__esModule = true; | ||
exports["default"] = void 0; | ||
exports.whenMapDispatchToPropsIsFunction = whenMapDispatchToPropsIsFunction; | ||
exports.whenMapDispatchToPropsIsMissing = whenMapDispatchToPropsIsMissing; | ||
exports.whenMapDispatchToPropsIsObject = whenMapDispatchToPropsIsObject; | ||
exports["default"] = void 0; | ||
@@ -11,0 +11,0 @@ var _bindActionCreators = _interopRequireDefault(require("../utils/bindActionCreators")); |
"use strict"; | ||
exports.__esModule = true; | ||
exports["default"] = void 0; | ||
exports.whenMapStateToPropsIsFunction = whenMapStateToPropsIsFunction; | ||
exports.whenMapStateToPropsIsMissing = whenMapStateToPropsIsMissing; | ||
exports["default"] = void 0; | ||
@@ -8,0 +8,0 @@ var _wrapMapToProps = require("./wrapMapToProps"); |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"]; | ||
exports.__esModule = true; | ||
exports["default"] = void 0; | ||
exports.defaultMergeProps = defaultMergeProps; | ||
exports.wrapMergePropsFunc = wrapMergePropsFunc; | ||
exports.whenMergePropsIsFunction = whenMergePropsIsFunction; | ||
exports.whenMergePropsIsOmitted = whenMergePropsIsOmitted; | ||
exports["default"] = void 0; | ||
exports.wrapMergePropsFunc = wrapMergePropsFunc; | ||
@@ -12,0 +12,0 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")); |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"]; | ||
exports.__esModule = true; | ||
exports["default"] = finalPropsSelectorFactory; | ||
exports.impureFinalPropsSelectorFactory = impureFinalPropsSelectorFactory; | ||
exports.pureFinalPropsSelectorFactory = pureFinalPropsSelectorFactory; | ||
exports["default"] = finalPropsSelectorFactory; | ||
@@ -10,0 +10,0 @@ var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose")); |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"]; | ||
@@ -5,0 +5,0 @@ exports.__esModule = true; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"]; | ||
exports.__esModule = true; | ||
exports.getDependsOnOwnProps = getDependsOnOwnProps; | ||
exports.wrapMapToPropsConstant = wrapMapToPropsConstant; | ||
exports.getDependsOnOwnProps = getDependsOnOwnProps; | ||
exports.wrapMapToPropsFunc = wrapMapToPropsFunc; | ||
@@ -9,0 +9,0 @@ |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"]; | ||
@@ -5,0 +5,0 @@ exports.__esModule = true; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ "use strict"; |
"use strict"; | ||
exports.__esModule = true; | ||
exports.getBatch = exports.setBatch = void 0; | ||
exports.setBatch = exports.getBatch = void 0; | ||
@@ -6,0 +6,0 @@ // Default to a dummy "batch" implementation that just runs the callback |
@@ -0,0 +0,0 @@ "use strict"; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"]; | ||
@@ -5,0 +5,0 @@ exports.__esModule = true; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ The MIT License (MIT) |
{ | ||
"name": "react-redux", | ||
"version": "7.2.5", | ||
"version": "7.2.6", | ||
"description": "Official React bindings for Redux", | ||
@@ -29,14 +29,11 @@ "keywords": [ | ||
"build:umd:min": "cross-env NODE_ENV=production rollup -c -o dist/react-redux.min.js", | ||
"build": "yarn build:commonjs && yarn build:es && yarn build:umd && yarn build:umd:min", | ||
"build": "npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min", | ||
"clean": "rimraf lib dist es coverage", | ||
"format": "prettier --write \"{src,test}/**/*.{js,ts}\" \"docs/**/*.md\"", | ||
"lint": "eslint src test/utils test/components test/hooks", | ||
"prepare": "yarn clean && yarn build", | ||
"pretest": "yarn lint", | ||
"prepare": "npm run clean && npm run build", | ||
"pretest": "npm run lint", | ||
"test": "jest", | ||
"coverage": "codecov" | ||
}, | ||
"workspaces": [ | ||
"website" | ||
], | ||
"peerDependencies": { | ||
@@ -54,48 +51,47 @@ "react": "^16.8.3 || ^17" | ||
"dependencies": { | ||
"@babel/runtime": "^7.12.1", | ||
"@types/react-redux": "^7.1.16", | ||
"@babel/runtime": "^7.15.4", | ||
"@types/react-redux": "^7.1.20", | ||
"hoist-non-react-statics": "^3.3.2", | ||
"loose-envify": "^1.4.0", | ||
"prop-types": "^15.7.2", | ||
"react-is": "^16.13.1" | ||
"react-is": "^17.0.2" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.12.1", | ||
"@babel/core": "^7.12.3", | ||
"@babel/plugin-proposal-decorators": "^7.12.1", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.12.1", | ||
"@babel/plugin-transform-react-display-name": "^7.12.1", | ||
"@babel/plugin-transform-react-jsx": "^7.12.1", | ||
"@babel/plugin-transform-runtime": "^7.12.1", | ||
"@babel/preset-env": "^7.12.1", | ||
"@rollup/plugin-babel": "^5.2.1", | ||
"@rollup/plugin-commonjs": "^15.1.0", | ||
"@rollup/plugin-node-resolve": "^9.0.0", | ||
"@rollup/plugin-replace": "^2.3.3", | ||
"@testing-library/jest-dom": "^5.11.5", | ||
"@testing-library/jest-native": "^3.4.3", | ||
"@testing-library/react": "^12.0.0", | ||
"@testing-library/react-hooks": "^3.4.2", | ||
"@testing-library/react-native": "^7.1.0", | ||
"@babel/cli": "^7.15.7", | ||
"@babel/core": "^7.15.8", | ||
"@babel/plugin-proposal-decorators": "^7.15.8", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.15.6", | ||
"@babel/plugin-transform-react-display-name": "^7.15.1", | ||
"@babel/plugin-transform-react-jsx": "^7.14.9", | ||
"@babel/plugin-transform-runtime": "^7.15.8", | ||
"@babel/preset-env": "^7.15.8", | ||
"@rollup/plugin-babel": "^5.3.0", | ||
"@rollup/plugin-commonjs": "^21.0.1", | ||
"@rollup/plugin-node-resolve": "^13.0.6", | ||
"@rollup/plugin-replace": "^3.0.0", | ||
"@testing-library/jest-dom": "^5.14.1", | ||
"@testing-library/jest-native": "^4.0.2", | ||
"@testing-library/react": "^12.1.2", | ||
"@testing-library/react-hooks": "^7.0.2", | ||
"@testing-library/react-native": "^8.0.0", | ||
"babel-eslint": "^10.1.0", | ||
"babel-jest": "^26.6.1", | ||
"codecov": "^3.8.0", | ||
"babel-jest": "^27.3.1", | ||
"codecov": "^3.8.3", | ||
"create-react-class": "^15.7.0", | ||
"cross-env": "^7.0.2", | ||
"es3ify": "^0.2.0", | ||
"eslint": "^7.12.0", | ||
"eslint-config-prettier": "^6.14.0", | ||
"eslint-plugin-import": "^2.22.1", | ||
"eslint-plugin-prettier": "^3.1.4", | ||
"eslint-plugin-react": "^7.21.5", | ||
"glob": "^7.1.6", | ||
"jest": "^26.6.1", | ||
"prettier": "^2.1.2", | ||
"react": "^16.14.0", | ||
"react-dom": "^16.14.0", | ||
"react-native": "^0.64.1", | ||
"react-test-renderer": "^16.14.0", | ||
"redux": "^4.0.5", | ||
"cross-env": "^7.0.3", | ||
"es3ify": "^0.2.2", | ||
"eslint": "^7.32.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-import": "^2.25.2", | ||
"eslint-plugin-react": "^7.26.1", | ||
"glob": "^7.2.0", | ||
"jest": "^27.3.1", | ||
"prettier": "^2.4.1", | ||
"react": "^17.0.2", | ||
"react-dom": "^17.0.2", | ||
"react-native": "^0.66.1", | ||
"react-test-renderer": "^17.0.2", | ||
"redux": "^4.1.1", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^2.32.1", | ||
"rollup": "^2.58.3", | ||
"rollup-plugin-terser": "^7.0.2" | ||
@@ -102,0 +98,0 @@ }, |
@@ -0,0 +0,0 @@ # React Redux |
@@ -0,0 +0,0 @@ export * from './exports' |
@@ -275,13 +275,10 @@ import hoistStatics from 'hoist-non-react-statics' | ||
function ConnectFunction(props) { | ||
const [ | ||
propsContext, | ||
reactReduxForwardedRef, | ||
wrapperProps, | ||
] = useMemo(() => { | ||
// Distinguish between actual "data" props that were passed to the wrapper component, | ||
// and values needed to control behavior (forwarded refs, alternate context instances). | ||
// To maintain the wrapperProps object reference, memoize this destructuring. | ||
const { reactReduxForwardedRef, ...wrapperProps } = props | ||
return [props.context, reactReduxForwardedRef, wrapperProps] | ||
}, [props]) | ||
const [propsContext, reactReduxForwardedRef, wrapperProps] = | ||
useMemo(() => { | ||
// Distinguish between actual "data" props that were passed to the wrapper component, | ||
// and values needed to control behavior (forwarded refs, alternate context instances). | ||
// To maintain the wrapperProps object reference, memoize this destructuring. | ||
const { reactReduxForwardedRef, ...wrapperProps } = props | ||
return [props.context, reactReduxForwardedRef, wrapperProps] | ||
}, [props]) | ||
@@ -347,5 +344,4 @@ const ContextToUse = useMemo(() => { | ||
// that have been unsubscribed in the middle of the notification loop. | ||
const notifyNestedSubs = subscription.notifyNestedSubs.bind( | ||
subscription | ||
) | ||
const notifyNestedSubs = | ||
subscription.notifyNestedSubs.bind(subscription) | ||
@@ -375,6 +371,4 @@ return [subscription, notifyNestedSubs] | ||
// causes a change to the calculated child component props (or we caught an error in mapState) | ||
const [ | ||
[previousStateUpdateResult], | ||
forceComponentUpdateDispatch, | ||
] = useReducer(storeStateUpdatesReducer, EMPTY_ARRAY, initStateUpdates) | ||
const [[previousStateUpdateResult], forceComponentUpdateDispatch] = | ||
useReducer(storeStateUpdatesReducer, EMPTY_ARRAY, initStateUpdates) | ||
@@ -381,0 +375,0 @@ // Propagate any mapState/mapDispatch errors upwards |
@@ -0,0 +0,0 @@ import React from 'react' |
@@ -0,0 +0,0 @@ import React, { useMemo } from 'react' |
@@ -0,0 +0,0 @@ import connectAdvanced from '../components/connectAdvanced' |
@@ -0,0 +0,0 @@ import bindActionCreators from '../utils/bindActionCreators' |
@@ -0,0 +0,0 @@ import { wrapMapToPropsConstant, wrapMapToPropsFunc } from './wrapMapToProps' |
@@ -0,0 +0,0 @@ import verifyPlainObject from '../utils/verifyPlainObject' |
@@ -0,0 +0,0 @@ import verifySubselectors from './verifySubselectors' |
@@ -0,0 +0,0 @@ import warning from '../utils/warning' |
@@ -0,0 +0,0 @@ import verifyPlainObject from '../utils/verifyPlainObject' |
@@ -0,0 +0,0 @@ import Provider from './components/Provider' |
@@ -0,0 +0,0 @@ import { ReactReduxContext } from '../components/Context' |
@@ -0,0 +0,0 @@ import { useContext } from 'react' |
@@ -17,6 +17,6 @@ import { useReducer, useRef, useMemo, useContext, useDebugValue } from 'react' | ||
const subscription = useMemo(() => createSubscription(store, contextSub), [ | ||
store, | ||
contextSub, | ||
]) | ||
const subscription = useMemo( | ||
() => createSubscription(store, contextSub), | ||
[store, contextSub] | ||
) | ||
@@ -23,0 +23,0 @@ const latestSubscriptionCallbackError = useRef() |
@@ -0,0 +0,0 @@ import { useContext } from 'react' |
@@ -0,0 +0,0 @@ export * from './exports' |
@@ -0,0 +0,0 @@ // Default to a dummy "batch" implementation that just runs the callback |
@@ -0,0 +0,0 @@ export default function bindActionCreators(actionCreators, dispatch) { |
@@ -0,0 +0,0 @@ /** |
/* eslint-disable import/no-unresolved */ | ||
export { unstable_batchedUpdates } from 'react-dom' |
@@ -0,0 +0,0 @@ /* eslint-disable import/named */ |
@@ -0,0 +0,0 @@ function is(x, y) { |
@@ -0,0 +0,0 @@ import { getBatch } from './batch' |
@@ -0,0 +0,0 @@ import { useEffect, useLayoutEffect } from 'react' |
@@ -0,0 +0,0 @@ import { useLayoutEffect } from 'react' |
@@ -0,0 +0,0 @@ import isPlainObject from './isPlainObject' |
@@ -0,0 +0,0 @@ /** |
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
297329
38
6218
89
+ Addedreact-is@17.0.2(transitive)
Updated@babel/runtime@^7.15.4
Updated@types/react-redux@^7.1.20
Updatedreact-is@^17.0.2