bippy 0.6.1-dev.0597fd5 → 0.6.1-dev.fe75557

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/README.md CHANGED
@@ -337,9 +337,7 @@ import { memo } from "react";
337
337
  const RealComponent = () => {
338
338
  return <div>hello</div>;
339
339
  };
340
- const MemoizedComponent = memo(() => {
341
- return <div>hello</div>;
342
- });
340
+ const MemoizedComponent = memo(RealComponent);
343
341
 
344
342
  console.log(getType(fiberForMemoizedComponent) === RealComponent);
345
343
  ```
@@ -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
- var Bippy=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});let t=e=>Object.assign(e,{[Symbol.dispose]:e}),n=`0.6.1-dev.0597fd5`,r=`bippy-${n}`,i=Object.defineProperty,a=Object.prototype.hasOwnProperty,o=()=>{},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://reactjs.org/link/perf-use-production-build`)})}catch{}},c=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>!!(e&&`getFiberRoots`in e),l=!1,u,d=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>l?!0:(e&&typeof e.inject==`function`&&(u=e.inject.toString()),!!u?.includes(`(injected)`)),f=new Set,p=new Set,m=new Set,h=new WeakSet,ee=null,te=e=>{if(e.inject===ee)return;let t=e.inject,n=n=>{let r=t.call(e,n);if(!h.has(n)){h.add(n);for(let e of m)e(n)}return r};e.inject=n,ee=n},g=e=>(te(b()),m.add(e),t(()=>{m.delete(e)})),_=e=>{e&&f.add(e);let t=new Map,n=0,a={_instrumentationIsActive:!1,_instrumentationSource:r,checkDCE:s,hasUnsupportedRendererAttached:!1,inject(e){let r=++n;return t.set(r,e),p.add(e),a._instrumentationIsActive||(a._instrumentationIsActive=!0,f.forEach(e=>e())),r},on:o,onCommitFiberRoot:o,onCommitFiberUnmount:o,onPostCommitFiberRoot:o,renderers:t,supportsFiber:!0,supportsFlight:!0};try{i(globalThis,`__REACT_DEVTOOLS_GLOBAL_HOOK__`,{configurable:!0,enumerable:!0,get(){return a},set(t){if(t&&typeof t==`object`){let n=a.renderers;a=t,n.size>0&&(n.forEach((e,n)=>{p.add(e),t.renderers.set(n,e)}),v(e))}}});let t=window.hasOwnProperty,n=!1;i(window,`hasOwnProperty`,{configurable:!0,value:function(...e){try{if(!n&&e[0]===`__REACT_DEVTOOLS_GLOBAL_HOOK__`)return globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,n=!0,-0}catch{}return t.apply(this,e)},writable:!0})}catch{v(e)}return a},v=e=>{e&&f.add(e);try{let t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t)return;if(!t._instrumentationSource){t.checkDCE=s,t.supportsFiber=!0,t.supportsFlight=!0,t.hasUnsupportedRendererAttached=!1,t._instrumentationSource=r,t._instrumentationIsActive=!1;let e=c(t);if(e||(t.on=o),t.renderers.size){t._instrumentationIsActive=!0,f.forEach(e=>e());return}let n=t.inject,i=d(t);i&&!e&&(l=!0,t.inject({scheduleRefresh(){}})&&(t._instrumentationIsActive=!0)),t.inject=e=>{let r=n(e);return p.add(e),i&&t.renderers.set(r,e),t._instrumentationIsActive=!0,f.forEach(e=>e()),r}}(t.renderers.size||t._instrumentationIsActive||d())&&e?.()}catch{}},y=()=>a.call(globalThis,`__REACT_DEVTOOLS_GLOBAL_HOOK__`),b=e=>y()?(v(e),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__):_(e),ne=()=>!!(typeof window<`u`&&(window.document?.createElement||window.navigator?.product===`ReactNative`)),re=()=>{try{ne()&&b()}catch{}};re();let x=60111,ie=`Symbol(react.concurrent_mode)`,S=`Symbol(react.async_mode)`,C=13366,ae=e=>typeof e==`object`&&!!e&&`$$typeof`in e&&[`Symbol(react.element)`,`Symbol(react.transitional.element)`].includes(String(e.$$typeof)),oe=e=>typeof e==`object`&&!!e&&`tag`in e&&`stateNode`in e&&`return`in e&&`child`in e&&`sibling`in e&&`flags`in e,w=e=>{switch(e.tag){case 5:case 26:case 27:return!0;default:return typeof e.type==`string`}},se=e=>{switch(e.tag){case 1:case 11:case 0:case 14:case 15:return!0;default:return!1}},ce=e=>!e||typeof e!=`object`?!1:`pendingProps`in e&&!(`containerInfo`in e),le=(e,t)=>{try{let n=e.dependencies,r=e.alternate?.dependencies;if(!n||!r||typeof n!=`object`||!(`firstContext`in n)||typeof r!=`object`||!(`firstContext`in r))return!1;let i=n.firstContext,a=r.firstContext;for(;i&&typeof i==`object`&&`memoizedValue`in i||a&&typeof a==`object`&&`memoizedValue`in a;){if(t(i,a)===!0)return!0;i=i?.next,a=a?.next}}catch{}return!1},ue=(e,t)=>{try{let n=e.memoizedState,r=e.alternate?.memoizedState;for(;n||r;){if(t(n,r)===!0)return!0;n=n?.next,r=r?.next}}catch{}return!1},de=(e,t)=>{try{let n=e.memoizedProps,r=e.alternate?.memoizedProps||{};for(let e of Object.keys(n))if(t(e,n[e],r[e])===!0)return!0;for(let e of Object.keys(r))if(!(e in n)&&t(e,n[e],r[e])===!0)return!0}catch{}return!1},T=e=>{let t=e.memoizedProps,n=e.alternate?.memoizedProps||{},r=e.flags??e.effectTag??0;switch(e.tag){case 1:case 9:case 11:case 0:case 14:case 15:return(r&1)==1;default:return e.alternate?n!==t||e.alternate.memoizedState!==e.memoizedState||e.alternate.ref!==e.ref:!0}},fe=e=>!!(e.flags&(C|8)||e.subtreeFlags&(C|8)),pe=e=>{let t=[],n=[e];for(;n.length;){let e=n.pop();e&&(w(e)&&fe(e)&&T(e)&&t.push(e),e.child&&n.push(e.child),e.sibling&&n.push(e.sibling))}return t},me=e=>{let t=[],n=e;for(;n.return;)t.push(n),n=n.return;return t},E=e=>{switch(e.tag){case 18:return!0;case 7:case 6:case 23:case 22:return!0;case 3:return!1;default:{let t=typeof e.type==`object`&&e.type!==null?e.type.$$typeof:e.type;if(typeof t==`symbol`)return t.description===`react.concurrent_mode`||t.description===`react.async_mode`;switch(t){case x:case ie:case S:return!0;default:return!1}}}},he=(e,t=!1)=>{let n=D(e,w,t);return n||=D(e,w,!t),n},ge=e=>{let t=[],n=[];for(w(e)?t.push(e):e.child&&n.push(e.child);n.length;){let e=n.pop();if(!e)break;w(e)?t.push(e):e.child&&n.push(e.child),e.sibling&&n.push(e.sibling)}return t};function D(e,t,n=!1){if(!e)return null;let r=t(e);if(r instanceof Promise)return(async()=>{if(await r===!0)return e;let i=n?e.return:e.child;for(;i;){let e=await k(i,t,n);if(e)return e;i=n?null:i.sibling}return null})();if(r===!0)return e;let i=n?e.return:e.child;for(;i;){let e=O(i,t,n);if(e)return e;i=n?null:i.sibling}return null}let O=(e,t,n=!1)=>{if(!e)return null;if(t(e)===!0)return e;let r=n?e.return:e.child;for(;r;){let e=O(r,t,n);if(e)return e;r=n?null:r.sibling}return null},k=async(e,t,n=!1)=>{if(!e)return null;if(await t(e)===!0)return e;let r=n?e.return:e.child;for(;r;){let e=await k(r,t,n);if(e)return e;r=n?null:r.sibling}return null},_e=e=>{let t=e?.actualDuration??0,n=t,r=e?.child??null;for(;t>0&&r!=null;)n-=r.actualDuration??0,r=r.sibling;return{selfTime:n,totalTime:t}},ve=e=>!!e.updateQueue?.memoCache,A=e=>{let t=e;return typeof t==`function`?t:typeof t==`object`&&t?A(t.type||t.render):null},ye=e=>{let t=e;if(typeof t==`string`)return t;if(typeof t!=`function`&&!(typeof t==`object`&&t))return null;let n=t.displayName||t.name||null;if(n)return n;let r=A(t);return r&&(r.displayName||r.name)||null},be=e=>{try{if(typeof e.version==`string`&&e.bundleType>0)return`development`}catch{}return`production`},xe=()=>{let e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;return!!e?._instrumentationIsActive||c(e)||d(e)},j=new Set,Se=e=>{let t=e.alternate;if(!t)return e;if(t.actualStartTime&&e.actualStartTime)return t.actualStartTime>e.actualStartTime?t:e;for(let t of j){let n=D(t.current,t=>{if(t===e)return!0});if(n)return n}return e},M=0,N=new WeakMap,P=(e,t=M++)=>{N.set(e,t)},F=e=>{let t=N.get(e);return t===void 0&&e.alternate&&(t=N.get(e.alternate)),t===void 0&&(t=M++,P(e,t)),t},I=(e,t,n)=>{let r=t;for(;r!=null;){if(N.has(r)||F(r),!E(r)&&T(r)&&e(r,`mount`),r.tag===13)if(r.memoizedState!==null){let t=r.child,n=t?t.sibling:null;if(n){let t=n.child;t!==null&&I(e,t,!1)}}else{let t=null;r.child!==null&&(t=r.child.child),t!==null&&I(e,t,!1)}else r.child!=null&&I(e,r.child,!0);r=n?r.sibling:null}},L=(e,t,n,r)=>{if(N.has(t)||F(t),!n)return;N.has(n)||F(n);let i=t.tag===13,a=!E(t);a&&T(t)&&e(t,`update`);let o=i&&n.memoizedState!==null,s=i&&t.memoizedState!==null;if(o&&s){let r=t.child?.sibling??null,i=n.child?.sibling??null;r!==null&&i!==null&&L(e,r,i,t)}else if(o&&!s){let n=t.child;n!==null&&I(e,n,!0)}else if(!o&&s){z(e,n);let r=t.child?.sibling??null;r!==null&&I(e,r,!0)}else if(t.child!==n.child){let n=t.child;for(;n;){if(n.alternate){let i=n.alternate;L(e,n,i,a?t:r)}else I(e,n,!1);n=n.sibling}}},R=(e,t)=>{(t.tag===3||!E(t))&&e(t,`unmount`)},z=(e,t)=>{let n=t.tag===13&&t.memoizedState!==null,r=t.child;for(n&&(r=(t.child?.sibling??null)?.child??null);r!==null;)r.return!==null&&(R(e,r),z(e,r)),r=r.sibling},Ce=0,B=new WeakMap,we=(e,t)=>{let n=`current`in e?e.current:e,r=B.get(e);r||(r={id:Ce++,prevFiber:null},B.set(e,r));let{prevFiber:i}=r;if(!n)R(t,n);else if(i!==null){let e=i&&i.memoizedState!=null&&i.memoizedState.element!=null&&i.memoizedState.isDehydrated!==!0,r=n.memoizedState!=null&&n.memoizedState.element!=null&&n.memoizedState.isDehydrated!==!0;!e&&r?I(t,n,!1):e&&r?L(t,n,n.alternate,null):e&&!r&&R(t,n)}else I(t,n,!0);r.prevFiber=n},V=new Set,H=!1,Te=()=>{if(H||!y())return;let e=b();if(e?.renderers){H=!0,Ne(e);for(let t of e.renderers.values())V.add(t);g(e=>{V.add(e)})}},U=e=>{if(!y())return null;let t=e;for(;t.return;)t=t.return;let n=Me.get(t.stateNode);return n===void 0?null:b().renderers?.get(n)??null},W=e=>{Te();let t=U(e);return t?[t]:Array.from(V)},G=(e,t,n,r)=>{for(let i of e)try{i.overrideProps?.(t,n,r)}catch{}},Ee=(e,t)=>{let n=e.memoizedState;for(let e=0;e<t;e++){if(!n?.next)return null;n=n.next}let r=n?.queue;return K(r)&&typeof r.dispatch==`function`?r.dispatch:null},De=(e,t)=>{let n=e;for(;n;){let e=n.type;if(e===t||e?.Provider===t)return n;n=n.return}return null},K=e=>Object.prototype.toString.call(e)===`[object Object]`&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null),Oe=(e,t=[])=>{if(!K(e))return[{path:t,value:e}];let n=[];for(let r in e){let i=e[r],a=t.concat(r);K(i)?n.push(...Oe(i,a)):n.push({path:a,value:i})}return n},q=e=>K(e)?Oe(e):[{path:[],value:e}],ke=(e,t)=>{let n=W(e);for(let{path:r,value:i}of q(t))G(n,e,r,i)},Ae=(e,t,n)=>{let r=W(e).filter(e=>!!e.overrideHookState),i=q(n);if(r.length>0){let n=String(t);for(let t of r)for(let{path:r,value:a}of i)try{t.overrideHookState?.(e,n,r,a)}catch{}return}if(K(n))return;let a=Ee(e,t);if(a)try{a(n)}catch{}},je=(e,t,n)=>{let r=De(e,t);if(!r)return;let i=W(r);for(let{path:e,value:t}of q(n))G(i,r,[`value`,...e],t),r.alternate&&G(i,r.alternate,[`value`,...e],t)},J=new Set,Y=new Set,X=new Set,Z=new Set,Q=new WeakMap,Me=new WeakMap,Ne=e=>{let t=Q.get(e)??{};if(Q.set(e,t),!t.onCommitFiberRoot||e.onCommitFiberRoot!==t.onCommitFiberRoot){let n=e.onCommitFiberRoot,r=(t,i,a)=>{if(n?.(t,i,a),Q.get(e)?.onCommitFiberRoot===r){j.add(i),Me.set(i,t);for(let e of J)e(t,i,a)}};t.onCommitFiberRoot=r,e.onCommitFiberRoot=r}if(!t.onCommitFiberUnmount||e.onCommitFiberUnmount!==t.onCommitFiberUnmount){let n=e.onCommitFiberUnmount,r=(t,i)=>{if(n?.(t,i),Q.get(e)?.onCommitFiberUnmount===r)for(let e of Y)e(t,i)};t.onCommitFiberUnmount=r,e.onCommitFiberUnmount=r}if(!t.onPostCommitFiberRoot||e.onPostCommitFiberRoot!==t.onPostCommitFiberRoot){let n=e.onPostCommitFiberRoot,r=(t,i)=>{if(n?.(t,i),Q.get(e)?.onPostCommitFiberRoot===r)for(let e of X)e(t,i)};t.onPostCommitFiberRoot=r,e.onPostCommitFiberRoot=r}if(!t.onScheduleFiberRoot||e.onScheduleFiberRoot!==t.onScheduleFiberRoot){let n=e.onScheduleFiberRoot,r=(t,i,a)=>{if(n?.(t,i,a),Q.get(e)?.onScheduleFiberRoot===r)for(let e of Z)e(t,i,a)};t.onScheduleFiberRoot=r,e.onScheduleFiberRoot=r}},Pe=e=>{let n=b(e.onActive);n._instrumentationSource=e.name??r,Ne(n);let{onActive:i,onCommitFiberRoot:a,onCommitFiberUnmount:o,onPostCommitFiberRoot:s,onScheduleFiberRoot:c}=e;return a&&J.add(a),o&&Y.add(o),s&&X.add(s),c&&Z.add(c),t(()=>{i&&f.delete(i),a&&J.delete(a),o&&Y.delete(o),s&&X.delete(s),c&&Z.delete(c)})},$=new Set,Fe=e=>e.startsWith(`__reactContainer$`)||e.startsWith(`__reactInternalInstance$`)||e.startsWith(`__reactFiber`);return e.ActivityComponentTag=28,e.BIPPY_INSTRUMENTATION_STRING=r,e.CONCURRENT_MODE_NUMBER=x,e.CONCURRENT_MODE_SYMBOL_DESCRIPTION=`react.concurrent_mode`,e.CONCURRENT_MODE_SYMBOL_STRING=ie,e.ClassComponentTag=1,e.ContextConsumerTag=9,e.DEPRECATED_ASYNC_MODE_SYMBOL_DESCRIPTION=`react.async_mode`,e.DEPRECATED_ASYNC_MODE_SYMBOL_STRING=S,e.DehydratedSuspenseComponentTag=18,e.ELEMENT_TYPE_SYMBOL_STRING=`Symbol(react.element)`,e.ForwardRefTag=11,e.FragmentTag=7,e.FunctionComponentTag=0,e.HostComponentTag=5,e.HostHoistableTag=26,e.HostPortalTag=4,e.HostRootTag=3,e.HostSingletonTag=27,e.HostTextTag=6,e.LazyComponentTag=16,e.LegacyHiddenComponentTag=23,e.MemoComponentTag=14,e.OffscreenComponentTag=22,e.SimpleMemoComponentTag=15,e.SuspenseComponentTag=13,e.SuspenseListComponentTag=19,e.TRANSITIONAL_ELEMENT_TYPE_SYMBOL_STRING=`Symbol(react.transitional.element)`,e.ViewTransitionComponentTag=30,e._fiberRoots=j,e._onActiveListeners=f,e._renderers=p,e.detectReactBuildType=be,e.didFiberCommit=fe,e.didFiberRender=T,e.getDisplayName=ye,e.getFiberFromHostInstance=e=>{let t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t?.renderers)for(let n of t.renderers.values())try{let t=n.findFiberByHostInstance?.(e);if(t)return t}catch{}if(typeof e==`object`&&e){if(`_reactRootContainer`in e)return e._reactRootContainer?._internalRoot?.current?.child;let t=e.__internalInstanceHandle??e._internalInstanceHandle;if(ce(t))return t;let n=e;for(let e of $){let t=n[e];if(t)return t}for(let e of Object.keys(n))if(Fe(e))return $.add(e),n[e]||null;for(let t of j){if(U(t.current)?.findFiberByHostInstance)continue;let n=D(t.current,t=>t.stateNode===e);if(n)return n}}return null},e.getFiberId=F,e.getFiberStack=me,e.getLatestFiber=Se,e.getMutatedHostFibers=pe,e.getNearestHostFiber=he,e.getNearestHostFibers=ge,e.getRDTHook=b,e.getTimings=_e,e.getType=A,e.hasMemoCache=ve,e.hasRDTHook=y,e.installRDTHook=_,e.instrument=Pe,e.isClientEnvironment=ne,e.isCompositeFiber=se,e.isFiber=ce,e.isHostFiber=w,e.isInstrumentationActive=xe,e.isReactRefresh=d,e.isRealReactDevtools=c,e.isValidElement=ae,e.isValidFiber=oe,e.onRendererInject=g,e.overrideContext=je,e.overrideHookState=Ae,e.overrideProps=ke,e.patchRDTHook=v,e.safelyInstallRDTHook=re,e.setFiberId=P,e.toUnsubscribe=t,e.traverseContexts=le,e.traverseFiber=D,e.traverseProps=de,e.traverseRenderedFibers=we,e.traverseState=ue,e.version=n,e})({});
9
+ var Bippy=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});let t=e=>Object.assign(e,{[Symbol.dispose]:e}),n=`0.6.1-dev.fe75557`,r=`bippy-${n}`,i=Object.defineProperty,a=Object.prototype.hasOwnProperty,o=()=>{},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://reactjs.org/link/perf-use-production-build`)})}catch{}},c=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>!!(e&&`getFiberRoots`in e),l=!1,u,d=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>l?!0:(e&&typeof e.inject==`function`&&(u=e.inject.toString()),!!u?.includes(`(injected)`)),f=new Set,p=new Set,m=new Set,h=new WeakSet,ee=null,te=e=>{if(e.inject===ee)return;let t=e.inject,n=n=>{let r=t.call(e,n);if(!h.has(n)){h.add(n);for(let e of m)e(n)}return r};e.inject=n,ee=n},g=e=>(te(b()),m.add(e),t(()=>{m.delete(e)})),_=e=>{e&&f.add(e);let t=new Map,n=0,a={_instrumentationIsActive:!1,_instrumentationSource:r,checkDCE:s,hasUnsupportedRendererAttached:!1,inject(e){let r=++n;return t.set(r,e),p.add(e),a._instrumentationIsActive||(a._instrumentationIsActive=!0,f.forEach(e=>e())),r},on:o,onCommitFiberRoot:o,onCommitFiberUnmount:o,onPostCommitFiberRoot:o,renderers:t,supportsFiber:!0,supportsFlight:!0};try{i(globalThis,`__REACT_DEVTOOLS_GLOBAL_HOOK__`,{configurable:!0,enumerable:!0,get(){return a},set(t){if(t&&typeof t==`object`){let n=a.renderers;a=t,n.size>0&&(n.forEach((e,n)=>{p.add(e),t.renderers.set(n,e)}),v(e))}}});let t=window.hasOwnProperty,n=!1;i(window,`hasOwnProperty`,{configurable:!0,value:function(...e){try{if(!n&&e[0]===`__REACT_DEVTOOLS_GLOBAL_HOOK__`)return globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,n=!0,-0}catch{}return t.apply(this,e)},writable:!0})}catch{v(e)}return a},v=e=>{e&&f.add(e);try{let t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t)return;if(!t._instrumentationSource){t.checkDCE=s,t.supportsFiber=!0,t.supportsFlight=!0,t.hasUnsupportedRendererAttached=!1,t._instrumentationSource=r,t._instrumentationIsActive=!1;let e=c(t);if(e||(t.on=o),t.renderers.size){t._instrumentationIsActive=!0,f.forEach(e=>e());return}let n=t.inject,i=d(t);i&&!e&&(l=!0,t.inject({scheduleRefresh(){}})&&(t._instrumentationIsActive=!0)),t.inject=e=>{let r=n(e);return p.add(e),i&&t.renderers.set(r,e),t._instrumentationIsActive=!0,f.forEach(e=>e()),r}}(t.renderers.size||t._instrumentationIsActive||d())&&e?.()}catch{}},y=()=>a.call(globalThis,`__REACT_DEVTOOLS_GLOBAL_HOOK__`),b=e=>y()?(v(e),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__):_(e),ne=()=>!!(typeof window<`u`&&(window.document?.createElement||window.navigator?.product===`ReactNative`)),re=()=>{try{ne()&&b()}catch{}};re();let x=60111,ie=`Symbol(react.concurrent_mode)`,S=`Symbol(react.async_mode)`,C=13366,ae=e=>typeof e==`object`&&!!e&&`$$typeof`in e&&[`Symbol(react.element)`,`Symbol(react.transitional.element)`].includes(String(e.$$typeof)),oe=e=>typeof e==`object`&&!!e&&`tag`in e&&`stateNode`in e&&`return`in e&&`child`in e&&`sibling`in e&&`flags`in e,w=e=>{switch(e.tag){case 5:case 26:case 27:return!0;default:return typeof e.type==`string`}},se=e=>{switch(e.tag){case 1:case 11:case 0:case 14:case 15:return!0;default:return!1}},ce=e=>!e||typeof e!=`object`?!1:`pendingProps`in e&&!(`containerInfo`in e),le=(e,t)=>{try{let n=e.dependencies,r=e.alternate?.dependencies;if(!n||!r||typeof n!=`object`||!(`firstContext`in n)||typeof r!=`object`||!(`firstContext`in r))return!1;let i=n.firstContext,a=r.firstContext;for(;i&&typeof i==`object`&&`memoizedValue`in i||a&&typeof a==`object`&&`memoizedValue`in a;){if(t(i,a)===!0)return!0;i=i?.next,a=a?.next}}catch{}return!1},ue=(e,t)=>{try{let n=e.memoizedState,r=e.alternate?.memoizedState;for(;n||r;){if(t(n,r)===!0)return!0;n=n?.next,r=r?.next}}catch{}return!1},de=(e,t)=>{try{let n=e.memoizedProps,r=e.alternate?.memoizedProps||{};for(let e of Object.keys(n))if(t(e,n[e],r[e])===!0)return!0;for(let e of Object.keys(r))if(!(e in n)&&t(e,n[e],r[e])===!0)return!0}catch{}return!1},T=e=>{let t=e.memoizedProps,n=e.alternate?.memoizedProps||{},r=e.flags??e.effectTag??0;switch(e.tag){case 1:case 9:case 11:case 0:case 14:case 15:return(r&1)==1;default:return e.alternate?n!==t||e.alternate.memoizedState!==e.memoizedState||e.alternate.ref!==e.ref:!0}},fe=e=>!!(e.flags&(C|8)||e.subtreeFlags&(C|8)),pe=e=>{let t=[],n=[e];for(;n.length;){let e=n.pop();e&&(w(e)&&fe(e)&&T(e)&&t.push(e),e.child&&n.push(e.child),e.sibling&&n.push(e.sibling))}return t},me=e=>{let t=[],n=e;for(;n.return;)t.push(n),n=n.return;return t},E=e=>{switch(e.tag){case 18:return!0;case 7:case 6:case 23:case 22:return!0;case 3:return!1;default:{let t=typeof e.type==`object`&&e.type!==null?e.type.$$typeof:e.type;if(typeof t==`symbol`)return t.description===`react.concurrent_mode`||t.description===`react.async_mode`;switch(t){case x:case ie:case S:return!0;default:return!1}}}},he=(e,t=!1)=>{let n=D(e,w,t);return n||=D(e,w,!t),n},ge=e=>{let t=[],n=[];for(w(e)?t.push(e):e.child&&n.push(e.child);n.length;){let e=n.pop();if(!e)break;w(e)?t.push(e):e.child&&n.push(e.child),e.sibling&&n.push(e.sibling)}return t};function D(e,t,n=!1){if(!e)return null;let r=t(e);if(r instanceof Promise)return(async()=>{if(await r===!0)return e;let i=n?e.return:e.child;for(;i;){let e=await k(i,t,n);if(e)return e;i=n?null:i.sibling}return null})();if(r===!0)return e;let i=n?e.return:e.child;for(;i;){let e=O(i,t,n);if(e)return e;i=n?null:i.sibling}return null}let O=(e,t,n=!1)=>{if(!e)return null;if(t(e)===!0)return e;let r=n?e.return:e.child;for(;r;){let e=O(r,t,n);if(e)return e;r=n?null:r.sibling}return null},k=async(e,t,n=!1)=>{if(!e)return null;if(await t(e)===!0)return e;let r=n?e.return:e.child;for(;r;){let e=await k(r,t,n);if(e)return e;r=n?null:r.sibling}return null},_e=e=>{let t=e?.actualDuration??0,n=t,r=e?.child??null;for(;t>0&&r!=null;)n-=r.actualDuration??0,r=r.sibling;return{selfTime:n,totalTime:t}},ve=e=>!!e.updateQueue?.memoCache,A=e=>{let t=e;return typeof t==`function`?t:typeof t==`object`&&t?A(t.type||t.render):null},ye=e=>{let t=e;if(typeof t==`string`)return t;if(typeof t!=`function`&&!(typeof t==`object`&&t))return null;let n=t.displayName||t.name||null;if(n)return n;let r=A(t);return r&&(r.displayName||r.name)||null},be=e=>{try{if(typeof e.version==`string`&&e.bundleType>0)return`development`}catch{}return`production`},xe=()=>{let e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;return!!e?._instrumentationIsActive||c(e)||d(e)},j=new Set,Se=e=>{let t=e.alternate;if(!t)return e;if(t.actualStartTime&&e.actualStartTime)return t.actualStartTime>e.actualStartTime?t:e;for(let t of j){let n=D(t.current,t=>{if(t===e)return!0});if(n)return n}return e},M=0,N=new WeakMap,P=(e,t=M++)=>{N.set(e,t)},F=e=>{let t=N.get(e);return t===void 0&&e.alternate&&(t=N.get(e.alternate)),t===void 0&&(t=M++,P(e,t)),t},I=(e,t,n)=>{let r=t;for(;r!=null;){if(N.has(r)||F(r),!E(r)&&T(r)&&e(r,`mount`),r.tag===13)if(r.memoizedState!==null){let t=r.child,n=t?t.sibling:null;if(n){let t=n.child;t!==null&&I(e,t,!1)}}else{let t=null;r.child!==null&&(t=r.child.child),t!==null&&I(e,t,!1)}else r.child!=null&&I(e,r.child,!0);r=n?r.sibling:null}},L=(e,t,n,r)=>{if(N.has(t)||F(t),!n)return;N.has(n)||F(n);let i=t.tag===13,a=!E(t);a&&T(t)&&e(t,`update`);let o=i&&n.memoizedState!==null,s=i&&t.memoizedState!==null;if(o&&s){let r=t.child?.sibling??null,i=n.child?.sibling??null;r!==null&&i!==null&&L(e,r,i,t)}else if(o&&!s){let n=t.child;n!==null&&I(e,n,!0)}else if(!o&&s){z(e,n);let r=t.child?.sibling??null;r!==null&&I(e,r,!0)}else if(t.child!==n.child){let n=t.child;for(;n;){if(n.alternate){let i=n.alternate;L(e,n,i,a?t:r)}else I(e,n,!1);n=n.sibling}}},R=(e,t)=>{(t.tag===3||!E(t))&&e(t,`unmount`)},z=(e,t)=>{let n=t.tag===13&&t.memoizedState!==null,r=t.child;for(n&&(r=(t.child?.sibling??null)?.child??null);r!==null;)r.return!==null&&(R(e,r),z(e,r)),r=r.sibling},Ce=0,B=new WeakMap,we=(e,t)=>{let n=`current`in e?e.current:e,r=B.get(e);r||(r={id:Ce++,prevFiber:null},B.set(e,r));let{prevFiber:i}=r;if(!n)R(t,n);else if(i!==null){let e=i&&i.memoizedState!=null&&i.memoizedState.element!=null&&i.memoizedState.isDehydrated!==!0,r=n.memoizedState!=null&&n.memoizedState.element!=null&&n.memoizedState.isDehydrated!==!0;!e&&r?I(t,n,!1):e&&r?L(t,n,n.alternate,null):e&&!r&&R(t,n)}else I(t,n,!0);r.prevFiber=n},V=new Set,H=!1,Te=()=>{if(H||!y())return;let e=b();if(e?.renderers){H=!0,Ne(e);for(let t of e.renderers.values())V.add(t);g(e=>{V.add(e)})}},U=e=>{if(!y())return null;let t=e;for(;t.return;)t=t.return;let n=Me.get(t.stateNode);return n===void 0?null:b().renderers?.get(n)??null},W=e=>{Te();let t=U(e);return t?[t]:Array.from(V)},G=(e,t,n,r)=>{for(let i of e)try{i.overrideProps?.(t,n,r)}catch{}},Ee=(e,t)=>{let n=e.memoizedState;for(let e=0;e<t;e++){if(!n?.next)return null;n=n.next}let r=n?.queue;return K(r)&&typeof r.dispatch==`function`?r.dispatch:null},De=(e,t)=>{let n=e;for(;n;){let e=n.type;if(e===t||e?.Provider===t)return n;n=n.return}return null},K=e=>Object.prototype.toString.call(e)===`[object Object]`&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null),Oe=(e,t=[])=>{if(!K(e))return[{path:t,value:e}];let n=[];for(let r in e){let i=e[r],a=t.concat(r);K(i)?n.push(...Oe(i,a)):n.push({path:a,value:i})}return n},q=e=>K(e)?Oe(e):[{path:[],value:e}],ke=(e,t)=>{let n=W(e);for(let{path:r,value:i}of q(t))G(n,e,r,i)},Ae=(e,t,n)=>{let r=W(e).filter(e=>!!e.overrideHookState),i=q(n);if(r.length>0){let n=String(t);for(let t of r)for(let{path:r,value:a}of i)try{t.overrideHookState?.(e,n,r,a)}catch{}return}if(K(n))return;let a=Ee(e,t);if(a)try{a(n)}catch{}},je=(e,t,n)=>{let r=De(e,t);if(!r)return;let i=W(r);for(let{path:e,value:t}of q(n))G(i,r,[`value`,...e],t),r.alternate&&G(i,r.alternate,[`value`,...e],t)},J=new Set,Y=new Set,X=new Set,Z=new Set,Q=new WeakMap,Me=new WeakMap,Ne=e=>{let t=Q.get(e)??{};if(Q.set(e,t),!t.onCommitFiberRoot||e.onCommitFiberRoot!==t.onCommitFiberRoot){let n=e.onCommitFiberRoot,r=(t,i,a)=>{if(n?.(t,i,a),Q.get(e)?.onCommitFiberRoot===r){j.add(i),Me.set(i,t);for(let e of J)e(t,i,a)}};t.onCommitFiberRoot=r,e.onCommitFiberRoot=r}if(!t.onCommitFiberUnmount||e.onCommitFiberUnmount!==t.onCommitFiberUnmount){let n=e.onCommitFiberUnmount,r=(t,i)=>{if(n?.(t,i),Q.get(e)?.onCommitFiberUnmount===r)for(let e of Y)e(t,i)};t.onCommitFiberUnmount=r,e.onCommitFiberUnmount=r}if(!t.onPostCommitFiberRoot||e.onPostCommitFiberRoot!==t.onPostCommitFiberRoot){let n=e.onPostCommitFiberRoot,r=(t,i)=>{if(n?.(t,i),Q.get(e)?.onPostCommitFiberRoot===r)for(let e of X)e(t,i)};t.onPostCommitFiberRoot=r,e.onPostCommitFiberRoot=r}if(!t.onScheduleFiberRoot||e.onScheduleFiberRoot!==t.onScheduleFiberRoot){let n=e.onScheduleFiberRoot,r=(t,i,a)=>{if(n?.(t,i,a),Q.get(e)?.onScheduleFiberRoot===r)for(let e of Z)e(t,i,a)};t.onScheduleFiberRoot=r,e.onScheduleFiberRoot=r}},Pe=e=>{let n=b(e.onActive);n._instrumentationSource=e.name??r,Ne(n);let{onActive:i,onCommitFiberRoot:a,onCommitFiberUnmount:o,onPostCommitFiberRoot:s,onScheduleFiberRoot:c}=e;return a&&J.add(a),o&&Y.add(o),s&&X.add(s),c&&Z.add(c),t(()=>{i&&f.delete(i),a&&J.delete(a),o&&Y.delete(o),s&&X.delete(s),c&&Z.delete(c)})},$=new Set,Fe=e=>e.startsWith(`__reactContainer$`)||e.startsWith(`__reactInternalInstance$`)||e.startsWith(`__reactFiber`);return e.ActivityComponentTag=28,e.BIPPY_INSTRUMENTATION_STRING=r,e.CONCURRENT_MODE_NUMBER=x,e.CONCURRENT_MODE_SYMBOL_DESCRIPTION=`react.concurrent_mode`,e.CONCURRENT_MODE_SYMBOL_STRING=ie,e.ClassComponentTag=1,e.ContextConsumerTag=9,e.DEPRECATED_ASYNC_MODE_SYMBOL_DESCRIPTION=`react.async_mode`,e.DEPRECATED_ASYNC_MODE_SYMBOL_STRING=S,e.DehydratedSuspenseComponentTag=18,e.ELEMENT_TYPE_SYMBOL_STRING=`Symbol(react.element)`,e.ForwardRefTag=11,e.FragmentTag=7,e.FunctionComponentTag=0,e.HostComponentTag=5,e.HostHoistableTag=26,e.HostPortalTag=4,e.HostRootTag=3,e.HostSingletonTag=27,e.HostTextTag=6,e.LazyComponentTag=16,e.LegacyHiddenComponentTag=23,e.MemoComponentTag=14,e.OffscreenComponentTag=22,e.SimpleMemoComponentTag=15,e.SuspenseComponentTag=13,e.SuspenseListComponentTag=19,e.TRANSITIONAL_ELEMENT_TYPE_SYMBOL_STRING=`Symbol(react.transitional.element)`,e.ViewTransitionComponentTag=30,e._fiberRoots=j,e._onActiveListeners=f,e._renderers=p,e.detectReactBuildType=be,e.didFiberCommit=fe,e.didFiberRender=T,e.getDisplayName=ye,e.getFiberFromHostInstance=e=>{let t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t?.renderers)for(let n of t.renderers.values())try{let t=n.findFiberByHostInstance?.(e);if(t)return t}catch{}if(typeof e==`object`&&e){if(`_reactRootContainer`in e)return e._reactRootContainer?._internalRoot?.current?.child;let t=e.__internalInstanceHandle??e._internalInstanceHandle;if(ce(t))return t;let n=e;for(let e of $){let t=n[e];if(t)return t}for(let e of Object.keys(n))if(Fe(e))return $.add(e),n[e]||null;for(let t of j){if(U(t.current)?.findFiberByHostInstance)continue;let n=D(t.current,t=>t.stateNode===e);if(n)return n}}return null},e.getFiberId=F,e.getFiberStack=me,e.getLatestFiber=Se,e.getMutatedHostFibers=pe,e.getNearestHostFiber=he,e.getNearestHostFibers=ge,e.getRDTHook=b,e.getTimings=_e,e.getType=A,e.hasMemoCache=ve,e.hasRDTHook=y,e.installRDTHook=_,e.instrument=Pe,e.isClientEnvironment=ne,e.isCompositeFiber=se,e.isFiber=ce,e.isHostFiber=w,e.isInstrumentationActive=xe,e.isReactRefresh=d,e.isRealReactDevtools=c,e.isValidElement=ae,e.isValidFiber=oe,e.onRendererInject=g,e.overrideContext=je,e.overrideHookState=Ae,e.overrideProps=ke,e.patchRDTHook=v,e.safelyInstallRDTHook=re,e.setFiberId=P,e.toUnsubscribe=t,e.traverseContexts=le,e.traverseFiber=D,e.traverseProps=de,e.traverseRenderedFibers=we,e.traverseState=ue,e.version=n,e})({});
@@ -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
- (function(){let e=`bippy-0.6.1-dev.0597fd5`,t=Object.defineProperty,n=Object.prototype.hasOwnProperty,r=()=>{},i=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://reactjs.org/link/perf-use-production-build`)})}catch{}},a=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>!!(e&&`getFiberRoots`in e),o=!1,s,c=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>o?!0:(e&&typeof e.inject==`function`&&(s=e.inject.toString()),!!s?.includes(`(injected)`)),l=new Set,u=new Set,d=n=>{n&&l.add(n);let a=new Map,o=0,s={_instrumentationIsActive:!1,_instrumentationSource:e,checkDCE:i,hasUnsupportedRendererAttached:!1,inject(e){let t=++o;return a.set(t,e),u.add(e),s._instrumentationIsActive||(s._instrumentationIsActive=!0,l.forEach(e=>e())),t},on:r,onCommitFiberRoot:r,onCommitFiberUnmount:r,onPostCommitFiberRoot:r,renderers:a,supportsFiber:!0,supportsFlight:!0};try{t(globalThis,`__REACT_DEVTOOLS_GLOBAL_HOOK__`,{configurable:!0,enumerable:!0,get(){return s},set(e){if(e&&typeof e==`object`){let t=s.renderers;s=e,t.size>0&&(t.forEach((t,n)=>{u.add(t),e.renderers.set(n,t)}),f(n))}}});let e=window.hasOwnProperty,r=!1;t(window,`hasOwnProperty`,{configurable:!0,value:function(...t){try{if(!r&&t[0]===`__REACT_DEVTOOLS_GLOBAL_HOOK__`)return globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,r=!0,-0}catch{}return e.apply(this,t)},writable:!0})}catch{f(n)}return s},f=t=>{t&&l.add(t);try{let n=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!n)return;if(!n._instrumentationSource){n.checkDCE=i,n.supportsFiber=!0,n.supportsFlight=!0,n.hasUnsupportedRendererAttached=!1,n._instrumentationSource=e,n._instrumentationIsActive=!1;let t=a(n);if(t||(n.on=r),n.renderers.size){n._instrumentationIsActive=!0,l.forEach(e=>e());return}let s=n.inject,d=c(n);d&&!t&&(o=!0,n.inject({scheduleRefresh(){}})&&(n._instrumentationIsActive=!0)),n.inject=e=>{let t=s(e);return u.add(e),d&&n.renderers.set(t,e),n._instrumentationIsActive=!0,l.forEach(e=>e()),t}}(n.renderers.size||n._instrumentationIsActive||c())&&t?.()}catch{}},p=()=>n.call(globalThis,`__REACT_DEVTOOLS_GLOBAL_HOOK__`),m=e=>p()?(f(e),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__):d(e),h=()=>!!(typeof window<`u`&&(window.document?.createElement||window.navigator?.product===`ReactNative`));(()=>{try{h()&&m()}catch{}})()})();
9
+ (function(){let e=`bippy-0.6.1-dev.fe75557`,t=Object.defineProperty,n=Object.prototype.hasOwnProperty,r=()=>{},i=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://reactjs.org/link/perf-use-production-build`)})}catch{}},a=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>!!(e&&`getFiberRoots`in e),o=!1,s,c=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>o?!0:(e&&typeof e.inject==`function`&&(s=e.inject.toString()),!!s?.includes(`(injected)`)),l=new Set,u=new Set,d=n=>{n&&l.add(n);let a=new Map,o=0,s={_instrumentationIsActive:!1,_instrumentationSource:e,checkDCE:i,hasUnsupportedRendererAttached:!1,inject(e){let t=++o;return a.set(t,e),u.add(e),s._instrumentationIsActive||(s._instrumentationIsActive=!0,l.forEach(e=>e())),t},on:r,onCommitFiberRoot:r,onCommitFiberUnmount:r,onPostCommitFiberRoot:r,renderers:a,supportsFiber:!0,supportsFlight:!0};try{t(globalThis,`__REACT_DEVTOOLS_GLOBAL_HOOK__`,{configurable:!0,enumerable:!0,get(){return s},set(e){if(e&&typeof e==`object`){let t=s.renderers;s=e,t.size>0&&(t.forEach((t,n)=>{u.add(t),e.renderers.set(n,t)}),f(n))}}});let e=window.hasOwnProperty,r=!1;t(window,`hasOwnProperty`,{configurable:!0,value:function(...t){try{if(!r&&t[0]===`__REACT_DEVTOOLS_GLOBAL_HOOK__`)return globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,r=!0,-0}catch{}return e.apply(this,t)},writable:!0})}catch{f(n)}return s},f=t=>{t&&l.add(t);try{let n=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!n)return;if(!n._instrumentationSource){n.checkDCE=i,n.supportsFiber=!0,n.supportsFlight=!0,n.hasUnsupportedRendererAttached=!1,n._instrumentationSource=e,n._instrumentationIsActive=!1;let t=a(n);if(t||(n.on=r),n.renderers.size){n._instrumentationIsActive=!0,l.forEach(e=>e());return}let s=n.inject,d=c(n);d&&!t&&(o=!0,n.inject({scheduleRefresh(){}})&&(n._instrumentationIsActive=!0)),n.inject=e=>{let t=s(e);return u.add(e),d&&n.renderers.set(t,e),n._instrumentationIsActive=!0,l.forEach(e=>e()),t}}(n.renderers.size||n._instrumentationIsActive||c())&&t?.()}catch{}},p=()=>n.call(globalThis,`__REACT_DEVTOOLS_GLOBAL_HOOK__`),m=e=>p()?(f(e),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__):d(e),h=()=>!!(typeof window<`u`&&(window.document?.createElement||window.navigator?.product===`ReactNative`));(()=>{try{h()&&m()}catch{}})()})();
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=e=>Object.assign(e,{[Symbol.dispose]:e}),t=`0.6.1-dev.0597fd5`,n=`bippy-${t}`,r=Object.defineProperty,i=Object.prototype.hasOwnProperty,a=()=>{},o=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://reactjs.org/link/perf-use-production-build`)})}catch{}},s=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>!!(e&&`getFiberRoots`in e);let c=!1,l;const u=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>c?!0:(e&&typeof e.inject==`function`&&(l=e.inject.toString()),!!l?.includes(`(injected)`)),d=new Set,f=new Set,p=new Set,m=new WeakSet;let h=null;const g=e=>{if(e.inject===h)return;let t=e.inject,n=n=>{let r=t.call(e,n);if(!m.has(n)){m.add(n);for(let e of p)e(n)}return r};e.inject=n,h=n},_=t=>(g(x()),p.add(t),e(()=>{p.delete(t)})),v=e=>{e&&d.add(e);let t=new Map,i=0,s={_instrumentationIsActive:!1,_instrumentationSource:n,checkDCE:o,hasUnsupportedRendererAttached:!1,inject(e){let n=++i;return t.set(n,e),f.add(e),s._instrumentationIsActive||(s._instrumentationIsActive=!0,d.forEach(e=>e())),n},on:a,onCommitFiberRoot:a,onCommitFiberUnmount:a,onPostCommitFiberRoot:a,renderers:t,supportsFiber:!0,supportsFlight:!0};try{r(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,n.size>0&&(n.forEach((e,n)=>{f.add(e),t.renderers.set(n,e)}),y(e))}}});let t=window.hasOwnProperty,n=!1;r(window,`hasOwnProperty`,{configurable:!0,value:function(...e){try{if(!n&&e[0]===`__REACT_DEVTOOLS_GLOBAL_HOOK__`)return globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,n=!0,-0}catch{}return t.apply(this,e)},writable:!0})}catch{y(e)}return s},y=e=>{e&&d.add(e);try{let t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t)return;if(!t._instrumentationSource){t.checkDCE=o,t.supportsFiber=!0,t.supportsFlight=!0,t.hasUnsupportedRendererAttached=!1,t._instrumentationSource=n,t._instrumentationIsActive=!1;let e=s(t);if(e||(t.on=a),t.renderers.size){t._instrumentationIsActive=!0,d.forEach(e=>e());return}let r=t.inject,i=u(t);i&&!e&&(c=!0,t.inject({scheduleRefresh(){}})&&(t._instrumentationIsActive=!0)),t.inject=e=>{let n=r(e);return f.add(e),i&&t.renderers.set(n,e),t._instrumentationIsActive=!0,d.forEach(e=>e()),n}}(t.renderers.size||t._instrumentationIsActive||u())&&e?.()}catch{}},b=()=>i.call(globalThis,`__REACT_DEVTOOLS_GLOBAL_HOOK__`),x=e=>b()?(y(e),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__):v(e),S=()=>!!(typeof window<`u`&&(window.document?.createElement||window.navigator?.product===`ReactNative`)),C=()=>{try{S()&&x()}catch{}};Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return b}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return x}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`m`,{enumerable:!0,get:function(){return e}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return S}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return _}});
9
+ const e=e=>Object.assign(e,{[Symbol.dispose]:e}),t=`0.6.1-dev.fe75557`,n=`bippy-${t}`,r=Object.defineProperty,i=Object.prototype.hasOwnProperty,a=()=>{},o=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://reactjs.org/link/perf-use-production-build`)})}catch{}},s=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>!!(e&&`getFiberRoots`in e);let c=!1,l;const u=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>c?!0:(e&&typeof e.inject==`function`&&(l=e.inject.toString()),!!l?.includes(`(injected)`)),d=new Set,f=new Set,p=new Set,m=new WeakSet;let h=null;const g=e=>{if(e.inject===h)return;let t=e.inject,n=n=>{let r=t.call(e,n);if(!m.has(n)){m.add(n);for(let e of p)e(n)}return r};e.inject=n,h=n},_=t=>(g(x()),p.add(t),e(()=>{p.delete(t)})),v=e=>{e&&d.add(e);let t=new Map,i=0,s={_instrumentationIsActive:!1,_instrumentationSource:n,checkDCE:o,hasUnsupportedRendererAttached:!1,inject(e){let n=++i;return t.set(n,e),f.add(e),s._instrumentationIsActive||(s._instrumentationIsActive=!0,d.forEach(e=>e())),n},on:a,onCommitFiberRoot:a,onCommitFiberUnmount:a,onPostCommitFiberRoot:a,renderers:t,supportsFiber:!0,supportsFlight:!0};try{r(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,n.size>0&&(n.forEach((e,n)=>{f.add(e),t.renderers.set(n,e)}),y(e))}}});let t=window.hasOwnProperty,n=!1;r(window,`hasOwnProperty`,{configurable:!0,value:function(...e){try{if(!n&&e[0]===`__REACT_DEVTOOLS_GLOBAL_HOOK__`)return globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,n=!0,-0}catch{}return t.apply(this,e)},writable:!0})}catch{y(e)}return s},y=e=>{e&&d.add(e);try{let t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t)return;if(!t._instrumentationSource){t.checkDCE=o,t.supportsFiber=!0,t.supportsFlight=!0,t.hasUnsupportedRendererAttached=!1,t._instrumentationSource=n,t._instrumentationIsActive=!1;let e=s(t);if(e||(t.on=a),t.renderers.size){t._instrumentationIsActive=!0,d.forEach(e=>e());return}let r=t.inject,i=u(t);i&&!e&&(c=!0,t.inject({scheduleRefresh(){}})&&(t._instrumentationIsActive=!0)),t.inject=e=>{let n=r(e);return f.add(e),i&&t.renderers.set(n,e),t._instrumentationIsActive=!0,d.forEach(e=>e()),n}}(t.renderers.size||t._instrumentationIsActive||u())&&e?.()}catch{}},b=()=>i.call(globalThis,`__REACT_DEVTOOLS_GLOBAL_HOOK__`),x=e=>b()?(y(e),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__):v(e),S=()=>!!(typeof window<`u`&&(window.document?.createElement||window.navigator?.product===`ReactNative`)),C=()=>{try{S()&&x()}catch{}};Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return b}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return x}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`m`,{enumerable:!0,get:function(){return e}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return S}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return _}});
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=e=>Object.assign(e,{[Symbol.dispose]:e}),t=`0.6.1-dev.0597fd5`,n=`bippy-${t}`,r=Object.defineProperty,i=Object.prototype.hasOwnProperty,a=()=>{},o=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://reactjs.org/link/perf-use-production-build`)})}catch{}},s=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>!!(e&&`getFiberRoots`in e);let c=!1,l;const u=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>c?!0:(e&&typeof e.inject==`function`&&(l=e.inject.toString()),!!l?.includes(`(injected)`)),d=new Set,f=new Set,p=new Set,m=new WeakSet;let h=null;const g=e=>{if(e.inject===h)return;let t=e.inject,n=n=>{let r=t.call(e,n);if(!m.has(n)){m.add(n);for(let e of p)e(n)}return r};e.inject=n,h=n},_=t=>(g(x()),p.add(t),e(()=>{p.delete(t)})),v=e=>{e&&d.add(e);let t=new Map,i=0,s={_instrumentationIsActive:!1,_instrumentationSource:n,checkDCE:o,hasUnsupportedRendererAttached:!1,inject(e){let n=++i;return t.set(n,e),f.add(e),s._instrumentationIsActive||(s._instrumentationIsActive=!0,d.forEach(e=>e())),n},on:a,onCommitFiberRoot:a,onCommitFiberUnmount:a,onPostCommitFiberRoot:a,renderers:t,supportsFiber:!0,supportsFlight:!0};try{r(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,n.size>0&&(n.forEach((e,n)=>{f.add(e),t.renderers.set(n,e)}),y(e))}}});let t=window.hasOwnProperty,n=!1;r(window,`hasOwnProperty`,{configurable:!0,value:function(...e){try{if(!n&&e[0]===`__REACT_DEVTOOLS_GLOBAL_HOOK__`)return globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,n=!0,-0}catch{}return t.apply(this,e)},writable:!0})}catch{y(e)}return s},y=e=>{e&&d.add(e);try{let t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t)return;if(!t._instrumentationSource){t.checkDCE=o,t.supportsFiber=!0,t.supportsFlight=!0,t.hasUnsupportedRendererAttached=!1,t._instrumentationSource=n,t._instrumentationIsActive=!1;let e=s(t);if(e||(t.on=a),t.renderers.size){t._instrumentationIsActive=!0,d.forEach(e=>e());return}let r=t.inject,i=u(t);i&&!e&&(c=!0,t.inject({scheduleRefresh(){}})&&(t._instrumentationIsActive=!0)),t.inject=e=>{let n=r(e);return f.add(e),i&&t.renderers.set(n,e),t._instrumentationIsActive=!0,d.forEach(e=>e()),n}}(t.renderers.size||t._instrumentationIsActive||u())&&e?.()}catch{}},b=()=>i.call(globalThis,`__REACT_DEVTOOLS_GLOBAL_HOOK__`),x=e=>b()?(y(e),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__):v(e),S=()=>!!(typeof window<`u`&&(window.document?.createElement||window.navigator?.product===`ReactNative`)),C=()=>{try{S()&&x()}catch{}};export{b as a,u as c,y as d,C as f,x as i,s as l,e as m,d as n,v as o,t as p,f as r,S as s,n as t,_ as u};
9
+ const e=e=>Object.assign(e,{[Symbol.dispose]:e}),t=`0.6.1-dev.fe75557`,n=`bippy-${t}`,r=Object.defineProperty,i=Object.prototype.hasOwnProperty,a=()=>{},o=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://reactjs.org/link/perf-use-production-build`)})}catch{}},s=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>!!(e&&`getFiberRoots`in e);let c=!1,l;const u=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>c?!0:(e&&typeof e.inject==`function`&&(l=e.inject.toString()),!!l?.includes(`(injected)`)),d=new Set,f=new Set,p=new Set,m=new WeakSet;let h=null;const g=e=>{if(e.inject===h)return;let t=e.inject,n=n=>{let r=t.call(e,n);if(!m.has(n)){m.add(n);for(let e of p)e(n)}return r};e.inject=n,h=n},_=t=>(g(x()),p.add(t),e(()=>{p.delete(t)})),v=e=>{e&&d.add(e);let t=new Map,i=0,s={_instrumentationIsActive:!1,_instrumentationSource:n,checkDCE:o,hasUnsupportedRendererAttached:!1,inject(e){let n=++i;return t.set(n,e),f.add(e),s._instrumentationIsActive||(s._instrumentationIsActive=!0,d.forEach(e=>e())),n},on:a,onCommitFiberRoot:a,onCommitFiberUnmount:a,onPostCommitFiberRoot:a,renderers:t,supportsFiber:!0,supportsFlight:!0};try{r(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,n.size>0&&(n.forEach((e,n)=>{f.add(e),t.renderers.set(n,e)}),y(e))}}});let t=window.hasOwnProperty,n=!1;r(window,`hasOwnProperty`,{configurable:!0,value:function(...e){try{if(!n&&e[0]===`__REACT_DEVTOOLS_GLOBAL_HOOK__`)return globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,n=!0,-0}catch{}return t.apply(this,e)},writable:!0})}catch{y(e)}return s},y=e=>{e&&d.add(e);try{let t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t)return;if(!t._instrumentationSource){t.checkDCE=o,t.supportsFiber=!0,t.supportsFlight=!0,t.hasUnsupportedRendererAttached=!1,t._instrumentationSource=n,t._instrumentationIsActive=!1;let e=s(t);if(e||(t.on=a),t.renderers.size){t._instrumentationIsActive=!0,d.forEach(e=>e());return}let r=t.inject,i=u(t);i&&!e&&(c=!0,t.inject({scheduleRefresh(){}})&&(t._instrumentationIsActive=!0)),t.inject=e=>{let n=r(e);return f.add(e),i&&t.renderers.set(n,e),t._instrumentationIsActive=!0,d.forEach(e=>e()),n}}(t.renderers.size||t._instrumentationIsActive||u())&&e?.()}catch{}},b=()=>i.call(globalThis,`__REACT_DEVTOOLS_GLOBAL_HOOK__`),x=e=>b()?(y(e),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__):v(e),S=()=>!!(typeof window<`u`&&(window.document?.createElement||window.navigator?.product===`ReactNative`)),C=()=>{try{S()&&x()}catch{}};export{b as a,u as c,y as d,C as f,x as i,s as l,e as m,d as n,v as o,t as p,f as r,S as s,n as t,_ as u};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bippy",
3
- "version": "0.6.1-dev.0597fd5",
3
+ "version": "0.6.1-dev.fe75557",
4
4
  "description": "hack into react internals",
5
5
  "keywords": [
6
6
  "bippy",