bippy 0.7.1 → 0.7.2-dev.23cd194

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 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.1`,t=`bippy-${e}`,n=Object.defineProperty,r=()=>{},i=e=>Object.assign(e,{[Symbol.dispose]:e}),a=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{}},o=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>!!(e&&`getFiberRoots`in e),s=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>{if(!e||typeof e.inject!=`function`||o(e))return!1;try{return Function.prototype.toString.call(e.inject).includes(`(injected)`)}catch{return!1}},c=new Set,l=new Set,u=new Set,d=new Set,f=new WeakSet,p=new WeakMap,m=()=>{for(let e of c)e()},h=e=>{for(let t of u)t(e)},g=e=>{for(let t of d)t(e)},_=e=>{if(e.inject===p.get(e))return;let t=e.inject,n=n=>{let r=t.call(e,n);return f.has(n)||(f.add(n),h(n)),r};e.inject=n,p.set(e,n)},v=e=>(_(T()),u.add(e),i(()=>{u.delete(e)})),y=e=>(d.add(e),i(()=>{d.delete(e)})),b=e=>(e.renderers instanceof Map||(e.renderers=new Map),e.renderers),x=(e,t,n,r)=>{t.set(n,r),l.add(r),e._instrumentationIsActive||(e._instrumentationIsActive=!0,m())},S=e=>{e&&c.add(e);let i=new Map,o=0,s={_instrumentationIsActive:!1,_instrumentationSource:t,checkDCE:a,hasUnsupportedRendererAttached:!1,inject:e=>{let t=++o;return x(s,i,t,e),t},on:r,onCommitFiberRoot:r,onCommitFiberUnmount:r,onPostCommitFiberRoot:r,renderers:i,supportsFiber:!0,supportsFlight:!0};try{if(n(globalThis,`__REACT_DEVTOOLS_GLOBAL_HOOK__`,{configurable:!0,enumerable:!0,get(){return s},set(t){if(t&&typeof t==`object`){let n=s.renderers;s=t;let r=b(s);n.forEach((e,t)=>{l.add(e),r.set(t,e)}),(n.size>0||d.size>0)&&C(e),g(s)}}}),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{C(e)}return s},C=e=>{e&&c.add(e);let n=!1,i=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!i)return;let u=b(i);if(!i._instrumentationSource){i.checkDCE=a,i.supportsFiber=!0,i.supportsFlight=!0,i.hasUnsupportedRendererAttached=!1,i._instrumentationSource=t,i._instrumentationIsActive=!1;let e=o(i);e||(i.on=r),u.size?(u.forEach(e=>l.add(e)),i._instrumentationIsActive=!0,m(),n=!0):!e&&s(i)&&(i._instrumentationIsActive=!0,m(),n=!0);let c=i.inject;i.inject=e=>{let t=c.call(i,e);return x(i,u,t,e),t}}!n&&(u.size||i._instrumentationIsActive)&&e?.()},w=()=>Object.hasOwn(globalThis,`__REACT_DEVTOOLS_GLOBAL_HOOK__`),T=e=>w()?(C(e),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__??S(e)):S(e);Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return T}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return w}}),Object.defineProperty(exports,"p",{enumerable:!0,get:function(){return e}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return S}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return y}});
9
+ const e=`0.7.2-dev.23cd194`,t=`bippy-${e}`,n=Object.defineProperty,r=()=>{},i=e=>Object.assign(e,{[Symbol.dispose]:e}),a=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{}},o=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>!!(e&&`getFiberRoots`in e),s=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>{if(!e||typeof e.inject!=`function`||o(e))return!1;try{return Function.prototype.toString.call(e.inject).includes(`(injected)`)}catch{return!1}},c=new Set,l=new Set,u=new Set,d=new Set,f=new WeakSet,p=new WeakMap,m=()=>{for(let e of c)e()},h=e=>{for(let t of u)t(e)},g=e=>{for(let t of d)t(e)},_=e=>{if(e.inject===p.get(e))return;let t=e.inject,n=n=>{let r=t.call(e,n);return f.has(n)||(f.add(n),h(n)),r};e.inject=n,p.set(e,n)},v=e=>(_(T()),u.add(e),i(()=>{u.delete(e)})),y=e=>(d.add(e),i(()=>{d.delete(e)})),b=e=>(e.renderers instanceof Map||(e.renderers=new Map),e.renderers),x=(e,t,n,r)=>{t.set(n,r),l.add(r),e._instrumentationIsActive||(e._instrumentationIsActive=!0,m())},S=e=>{e&&c.add(e);let i=new Map,o=0,s={_instrumentationIsActive:!1,_instrumentationSource:t,checkDCE:a,hasUnsupportedRendererAttached:!1,inject:e=>{let t=++o;return x(s,i,t,e),t},on:r,onCommitFiberRoot:r,onCommitFiberUnmount:r,onPostCommitFiberRoot:r,renderers:i,supportsFiber:!0,supportsFlight:!0};try{if(n(globalThis,`__REACT_DEVTOOLS_GLOBAL_HOOK__`,{configurable:!0,enumerable:!0,get(){return s},set(t){if(t&&typeof t==`object`){let n=s.renderers;s=t;let r=b(s);n.forEach((e,t)=>{l.add(e),r.set(t,e)}),(n.size>0||d.size>0)&&C(e),g(s)}}}),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{C(e)}return s},C=e=>{e&&c.add(e);let n=!1,i=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!i)return;let u=b(i);if(!i._instrumentationSource){i.checkDCE=a,i.supportsFiber=!0,i.supportsFlight=!0,i.hasUnsupportedRendererAttached=!1,i._instrumentationSource=t,i._instrumentationIsActive=!1;let e=o(i);e||(i.on=r),u.size?(u.forEach(e=>l.add(e)),i._instrumentationIsActive=!0,m(),n=!0):!e&&s(i)&&(i._instrumentationIsActive=!0,m(),n=!0);let c=i.inject;i.inject=e=>{let t=c.call(i,e);return x(i,u,t,e),t}}!n&&(u.size||i._instrumentationIsActive)&&e?.()},w=()=>Object.hasOwn(globalThis,`__REACT_DEVTOOLS_GLOBAL_HOOK__`),T=e=>w()?(C(e),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__??S(e)):S(e);Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return T}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return w}}),Object.defineProperty(exports,"p",{enumerable:!0,get:function(){return e}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return S}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return y}});
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.1`,t=`bippy-${e}`,n=Object.defineProperty,r=()=>{},i=e=>Object.assign(e,{[Symbol.dispose]:e}),a=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{}},o=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>!!(e&&`getFiberRoots`in e),s=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>{if(!e||typeof e.inject!=`function`||o(e))return!1;try{return Function.prototype.toString.call(e.inject).includes(`(injected)`)}catch{return!1}},c=new Set,l=new Set,u=new Set,d=new Set,f=new WeakSet,p=new WeakMap,m=()=>{for(let e of c)e()},h=e=>{for(let t of u)t(e)},g=e=>{for(let t of d)t(e)},_=e=>{if(e.inject===p.get(e))return;let t=e.inject,n=n=>{let r=t.call(e,n);return f.has(n)||(f.add(n),h(n)),r};e.inject=n,p.set(e,n)},v=e=>(_(T()),u.add(e),i(()=>{u.delete(e)})),y=e=>(d.add(e),i(()=>{d.delete(e)})),b=e=>(e.renderers instanceof Map||(e.renderers=new Map),e.renderers),x=(e,t,n,r)=>{t.set(n,r),l.add(r),e._instrumentationIsActive||(e._instrumentationIsActive=!0,m())},S=e=>{e&&c.add(e);let i=new Map,o=0,s={_instrumentationIsActive:!1,_instrumentationSource:t,checkDCE:a,hasUnsupportedRendererAttached:!1,inject:e=>{let t=++o;return x(s,i,t,e),t},on:r,onCommitFiberRoot:r,onCommitFiberUnmount:r,onPostCommitFiberRoot:r,renderers:i,supportsFiber:!0,supportsFlight:!0};try{if(n(globalThis,`__REACT_DEVTOOLS_GLOBAL_HOOK__`,{configurable:!0,enumerable:!0,get(){return s},set(t){if(t&&typeof t==`object`){let n=s.renderers;s=t;let r=b(s);n.forEach((e,t)=>{l.add(e),r.set(t,e)}),(n.size>0||d.size>0)&&C(e),g(s)}}}),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{C(e)}return s},C=e=>{e&&c.add(e);let n=!1,i=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!i)return;let u=b(i);if(!i._instrumentationSource){i.checkDCE=a,i.supportsFiber=!0,i.supportsFlight=!0,i.hasUnsupportedRendererAttached=!1,i._instrumentationSource=t,i._instrumentationIsActive=!1;let e=o(i);e||(i.on=r),u.size?(u.forEach(e=>l.add(e)),i._instrumentationIsActive=!0,m(),n=!0):!e&&s(i)&&(i._instrumentationIsActive=!0,m(),n=!0);let c=i.inject;i.inject=e=>{let t=c.call(i,e);return x(i,u,t,e),t}}!n&&(u.size||i._instrumentationIsActive)&&e?.()},w=()=>Object.hasOwn(globalThis,`__REACT_DEVTOOLS_GLOBAL_HOOK__`),T=e=>w()?(C(e),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__??S(e)):S(e);export{T as a,s as c,v as d,C as f,i,o as l,c as n,w as o,e as p,l as r,S as s,t,y as u};
9
+ const e=`0.7.2-dev.23cd194`,t=`bippy-${e}`,n=Object.defineProperty,r=()=>{},i=e=>Object.assign(e,{[Symbol.dispose]:e}),a=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{}},o=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>!!(e&&`getFiberRoots`in e),s=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>{if(!e||typeof e.inject!=`function`||o(e))return!1;try{return Function.prototype.toString.call(e.inject).includes(`(injected)`)}catch{return!1}},c=new Set,l=new Set,u=new Set,d=new Set,f=new WeakSet,p=new WeakMap,m=()=>{for(let e of c)e()},h=e=>{for(let t of u)t(e)},g=e=>{for(let t of d)t(e)},_=e=>{if(e.inject===p.get(e))return;let t=e.inject,n=n=>{let r=t.call(e,n);return f.has(n)||(f.add(n),h(n)),r};e.inject=n,p.set(e,n)},v=e=>(_(T()),u.add(e),i(()=>{u.delete(e)})),y=e=>(d.add(e),i(()=>{d.delete(e)})),b=e=>(e.renderers instanceof Map||(e.renderers=new Map),e.renderers),x=(e,t,n,r)=>{t.set(n,r),l.add(r),e._instrumentationIsActive||(e._instrumentationIsActive=!0,m())},S=e=>{e&&c.add(e);let i=new Map,o=0,s={_instrumentationIsActive:!1,_instrumentationSource:t,checkDCE:a,hasUnsupportedRendererAttached:!1,inject:e=>{let t=++o;return x(s,i,t,e),t},on:r,onCommitFiberRoot:r,onCommitFiberUnmount:r,onPostCommitFiberRoot:r,renderers:i,supportsFiber:!0,supportsFlight:!0};try{if(n(globalThis,`__REACT_DEVTOOLS_GLOBAL_HOOK__`,{configurable:!0,enumerable:!0,get(){return s},set(t){if(t&&typeof t==`object`){let n=s.renderers;s=t;let r=b(s);n.forEach((e,t)=>{l.add(e),r.set(t,e)}),(n.size>0||d.size>0)&&C(e),g(s)}}}),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{C(e)}return s},C=e=>{e&&c.add(e);let n=!1,i=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!i)return;let u=b(i);if(!i._instrumentationSource){i.checkDCE=a,i.supportsFiber=!0,i.supportsFlight=!0,i.hasUnsupportedRendererAttached=!1,i._instrumentationSource=t,i._instrumentationIsActive=!1;let e=o(i);e||(i.on=r),u.size?(u.forEach(e=>l.add(e)),i._instrumentationIsActive=!0,m(),n=!0):!e&&s(i)&&(i._instrumentationIsActive=!0,m(),n=!0);let c=i.inject;i.inject=e=>{let t=c.call(i,e);return x(i,u,t,e),t}}!n&&(u.size||i._instrumentationIsActive)&&e?.()},w=()=>Object.hasOwn(globalThis,`__REACT_DEVTOOLS_GLOBAL_HOOK__`),T=e=>w()?(C(e),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__??S(e)):S(e);export{T as a,s as c,v as d,C as f,i,o as l,c as n,w as o,e as p,l as r,S as s,t,y as u};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bippy",
3
- "version": "0.7.1",
3
+ "version": "0.7.2-dev.23cd194",
4
4
  "description": "hack into react internals",
5
5
  "keywords": [
6
6
  "bippy",
@@ -90,8 +90,8 @@
90
90
  "@testing-library/dom": "^10.4.0",
91
91
  "@testing-library/react": "^16.1.0",
92
92
  "@types/node": "^20",
93
- "@types/react": "^19.2.17",
94
- "@types/react-dom": "^19.2.3",
93
+ "@types/react": "^19.2.18",
94
+ "@types/react-dom": "^19.2.4",
95
95
  "@vitest/coverage-istanbul": "^4.1.10",
96
96
  "happy-dom": "^15.11.7",
97
97
  "ink": "^7.1.1",