rox-react-components 0.0.43 → 0.0.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- import{useCallback as n,useEffect as t}from"react";function i(i,e){void 0===e&&(e=[]);var o=n((function(){return null==i?void 0:i()}),e);t((function(){return o(),document.addEventListener("visibilitychange",o),function(){document.removeEventListener("visibilitychange",o)}}),[o])}i((function(){}),[]);export{i as default};
1
+ import{useCallback as n,useEffect as t}from"react";function e(e,i){void 0===i&&(i=[]);var o=n((function(){return null==e?void 0:e()}),i);t((function(){return o(),document.addEventListener("visibilitychange",o),function(){document.removeEventListener("visibilitychange",o)}}),[o])}export{e as default};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react");function t(t,n){void 0===n&&(n=[]);var i=e.useCallback((function(){return null==t?void 0:t()}),n);e.useEffect((function(){return i(),document.addEventListener("visibilitychange",i),function(){document.removeEventListener("visibilitychange",i)}}),[i])}t((function(){}),[]),exports.default=t;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react");exports.default=function(t,n){void 0===n&&(n=[]);var i=e.useCallback((function(){return null==t?void 0:t()}),n);e.useEffect((function(){return i(),document.addEventListener("visibilitychange",i),function(){document.removeEventListener("visibilitychange",i)}}),[i])};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rox-react-components",
3
- "version": "0.0.43",
3
+ "version": "0.0.44",
4
4
  "main": "dist/lib/index.js",
5
5
  "module": "dist/es/index.js",
6
6
  "types": "dist/index.d.ts",