bippy 0.7.3-dev.8ba0705 → 0.7.3
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.
- package/dist/rdt-hook.cjs +1 -1
- package/dist/rdt-hook.js +1 -1
- package/package.json +1 -1
package/dist/rdt-hook.cjs
CHANGED
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
const e=`0.7.3
|
|
9
|
+
const e=`0.7.3`,t=`bippy-${e}`,n=Object.defineProperty,r=()=>{},i=e=>e.__REACT_DEVTOOLS_GLOBAL_HOOK__,a=e=>Object.assign(e,{[Symbol.dispose]:e}),o=e=>{let t=e.current.memoizedState;return t===null||t!==void 0&&(t.element===null||t.element===void 0)},s=e=>{try{Function.prototype.toString.call(e).indexOf(`^_^`)>-1&&setTimeout(()=>{throw Error(`React is running in production mode, but dead code elimination has not been applied. Read how to correctly configure React for production: https://react.dev/link/perf-use-production-build`)})}catch{}},c=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>!!(e&&`getFiberRoots`in e&&e._isBippyHook!==!0),l=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>{if(!e||typeof e.inject!=`function`||c(e))return!1;try{return Function.prototype.toString.call(e.inject).includes(`(injected)`)}catch{return!1}},u=new Set,d=new Set,f=new WeakMap,p=new Set,m=new Set,h=new WeakMap,g=(e,t)=>{u.add(e);let n=f.get(e)??new Set;n.add(t),f.set(e,n)},_=(e,t)=>{let n=f.get(e);n?.delete(t),(!n||n.size===0)&&(f.delete(e),u.delete(e))},v=e=>{for(let t of u)f.get(t)?.has(e)&&t()},y=(e,t)=>{for(let n of p)n.target===e&&n.listener(t)},b=(e,t)=>{for(let n of m)n(e,t)},x=(e,t=globalThis)=>{k(void 0,t);let n={listener:e,target:t};return p.add(n),a(()=>{p.delete(n)})},S=e=>(m.add(e),a(()=>{m.delete(e)})),C=e=>Object.prototype.toString.call(e)===`[object Map]`,w=e=>(C(e.renderers)||(e.renderers=new Map),e.renderers),T=(e,t,n,r,i)=>{n.set(r,i),d.add(i),e._instrumentationIsActive||(e._instrumentationIsActive=!0,v(t));let a=h.get(t)??new WeakSet;h.set(t,a),!a.has(i)&&(a.add(i),y(t,i))},E=(e,i=globalThis)=>{e&&g(e,i);let a=new Map,c=new Map,l=e=>{let t=c.get(e)??new Set;return c.set(e,t),t},u=0,f={_instrumentationIsActive:!1,_instrumentationSource:t,_isBippyHook:!0,checkDCE:s,getFiberRoots:l,hasUnsupportedRendererAttached:!1,inject:e=>{let t=++u;return T(f,i,a,t,e),t},on:r,onCommitFiberRoot:(e,t)=>{let n=l(e);o(t)?n.delete(t):n.add(t)},onCommitFiberUnmount:r,onPostCommitFiberRoot:r,renderers:a,supportsFiber:!0,supportsFlight:!0};try{if(n(i,`__REACT_DEVTOOLS_GLOBAL_HOOK__`,{configurable:!0,enumerable:!0,get:()=>f,set:t=>{if(t&&typeof t==`object`){let n=f.renderers;f=t;let r=w(f);n.forEach((e,t)=>{d.add(e),r.set(t,e)}),(n.size>0||m.size>0)&&D(e,i),b(f,i)}}}),i===globalThis&&typeof window<`u`){let e=window.hasOwnProperty.bind(window),t=Object.getOwnPropertyDescriptor(window,`hasOwnProperty`),r=!1,i=()=>{t?n(window,`hasOwnProperty`,t):Reflect.deleteProperty(window,`hasOwnProperty`)};n(window,`hasOwnProperty`,{configurable:!0,value:t=>!r&&t===`__REACT_DEVTOOLS_GLOBAL_HOOK__`?(r=!0,i(),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,!1):e(t),writable:!0})}}catch{D(e,i)}return f},D=(e,n=globalThis)=>{e&&g(e,n);let a=!1,o=i(n);if(!o)return;let u=w(o);if(!o._instrumentationSource){o.checkDCE=s,o.supportsFiber=!0,o.supportsFlight=!0,o.hasUnsupportedRendererAttached=!1,o._instrumentationSource=t,o._instrumentationIsActive=!1;let e=c(o);e||(o.on=r),u.size?(u.forEach(e=>d.add(e)),o._instrumentationIsActive=!0,v(n),a=!0):!e&&l(o)&&(o._instrumentationIsActive=!0,v(n),a=!0);let i=o.inject;o.inject=e=>{let t=i.call(o,e);return T(o,n,u,t,e),t}}!a&&(u.size||o._instrumentationIsActive)&&e?.()},O=(e=globalThis)=>Object.hasOwn(e,`__REACT_DEVTOOLS_GLOBAL_HOOK__`),k=(e,t=globalThis)=>O(t)?(D(e,t),i(t)??E(e,t)):E(e,t);Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return O}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return S}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return x}}),Object.defineProperty(exports,"h",{enumerable:!0,get:function(){return e}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return k}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"m",{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return E}}),Object.defineProperty(exports,"p",{enumerable:!0,get:function(){return D}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return C}});
|
package/dist/rdt-hook.js
CHANGED
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
const e=`0.7.3
|
|
9
|
+
const e=`0.7.3`,t=`bippy-${e}`,n=Object.defineProperty,r=()=>{},i=e=>e.__REACT_DEVTOOLS_GLOBAL_HOOK__,a=e=>Object.assign(e,{[Symbol.dispose]:e}),o=e=>{let t=e.current.memoizedState;return t===null||t!==void 0&&(t.element===null||t.element===void 0)},s=e=>{try{Function.prototype.toString.call(e).indexOf(`^_^`)>-1&&setTimeout(()=>{throw Error(`React is running in production mode, but dead code elimination has not been applied. Read how to correctly configure React for production: https://react.dev/link/perf-use-production-build`)})}catch{}},c=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>!!(e&&`getFiberRoots`in e&&e._isBippyHook!==!0),l=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>{if(!e||typeof e.inject!=`function`||c(e))return!1;try{return Function.prototype.toString.call(e.inject).includes(`(injected)`)}catch{return!1}},u=new Set,d=new Set,f=new WeakMap,p=new Set,m=new Set,h=new WeakMap,g=(e,t)=>{u.add(e);let n=f.get(e)??new Set;n.add(t),f.set(e,n)},_=(e,t)=>{let n=f.get(e);n?.delete(t),(!n||n.size===0)&&(f.delete(e),u.delete(e))},v=e=>{for(let t of u)f.get(t)?.has(e)&&t()},y=(e,t)=>{for(let n of p)n.target===e&&n.listener(t)},b=(e,t)=>{for(let n of m)n(e,t)},x=(e,t=globalThis)=>{k(void 0,t);let n={listener:e,target:t};return p.add(n),a(()=>{p.delete(n)})},S=e=>(m.add(e),a(()=>{m.delete(e)})),C=e=>Object.prototype.toString.call(e)===`[object Map]`,w=e=>(C(e.renderers)||(e.renderers=new Map),e.renderers),T=(e,t,n,r,i)=>{n.set(r,i),d.add(i),e._instrumentationIsActive||(e._instrumentationIsActive=!0,v(t));let a=h.get(t)??new WeakSet;h.set(t,a),!a.has(i)&&(a.add(i),y(t,i))},E=(e,i=globalThis)=>{e&&g(e,i);let a=new Map,c=new Map,l=e=>{let t=c.get(e)??new Set;return c.set(e,t),t},u=0,f={_instrumentationIsActive:!1,_instrumentationSource:t,_isBippyHook:!0,checkDCE:s,getFiberRoots:l,hasUnsupportedRendererAttached:!1,inject:e=>{let t=++u;return T(f,i,a,t,e),t},on:r,onCommitFiberRoot:(e,t)=>{let n=l(e);o(t)?n.delete(t):n.add(t)},onCommitFiberUnmount:r,onPostCommitFiberRoot:r,renderers:a,supportsFiber:!0,supportsFlight:!0};try{if(n(i,`__REACT_DEVTOOLS_GLOBAL_HOOK__`,{configurable:!0,enumerable:!0,get:()=>f,set:t=>{if(t&&typeof t==`object`){let n=f.renderers;f=t;let r=w(f);n.forEach((e,t)=>{d.add(e),r.set(t,e)}),(n.size>0||m.size>0)&&D(e,i),b(f,i)}}}),i===globalThis&&typeof window<`u`){let e=window.hasOwnProperty.bind(window),t=Object.getOwnPropertyDescriptor(window,`hasOwnProperty`),r=!1,i=()=>{t?n(window,`hasOwnProperty`,t):Reflect.deleteProperty(window,`hasOwnProperty`)};n(window,`hasOwnProperty`,{configurable:!0,value:t=>!r&&t===`__REACT_DEVTOOLS_GLOBAL_HOOK__`?(r=!0,i(),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,!1):e(t),writable:!0})}}catch{D(e,i)}return f},D=(e,n=globalThis)=>{e&&g(e,n);let a=!1,o=i(n);if(!o)return;let u=w(o);if(!o._instrumentationSource){o.checkDCE=s,o.supportsFiber=!0,o.supportsFlight=!0,o.hasUnsupportedRendererAttached=!1,o._instrumentationSource=t,o._instrumentationIsActive=!1;let e=c(o);e||(o.on=r),u.size?(u.forEach(e=>d.add(e)),o._instrumentationIsActive=!0,v(n),a=!0):!e&&l(o)&&(o._instrumentationIsActive=!0,v(n),a=!0);let i=o.inject;o.inject=e=>{let t=i.call(o,e);return T(o,n,u,t,e),t}}!a&&(u.size||o._instrumentationIsActive)&&e?.()},O=(e=globalThis)=>Object.hasOwn(e,`__REACT_DEVTOOLS_GLOBAL_HOOK__`),k=(e,t=globalThis)=>O(t)?(D(e,t),i(t)??E(e,t)):E(e,t);export{O as a,l as c,S as d,x as f,e as h,k as i,c as l,_ as m,d as n,E as o,D as p,a as r,o as s,t,C as u};
|