bippy 0.2.6 → 0.2.7
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/{chunk-A425RZH5.cjs → chunk-7H6RTVXX.cjs} +18 -6
- package/dist/{chunk-DCVQB6TW.js → chunk-ZF32UKFC.js} +17 -7
- package/dist/core.cjs +57 -57
- package/dist/core.d.cts +195 -3
- package/dist/core.d.ts +195 -3
- package/dist/core.js +1 -1
- package/dist/index.cjs +70 -66
- package/dist/index.d.cts +10 -5
- package/dist/index.d.ts +10 -5
- package/dist/index.js +1 -1
- package/dist/inspect.cjs +427 -87
- package/dist/inspect.js +400 -60
- package/dist/sw.cjs +38 -0
- package/dist/sw.d.cts +69 -0
- package/dist/sw.d.ts +69 -0
- package/dist/sw.global.js +9 -0
- package/dist/sw.js +36 -0
- package/package.json +11 -1
- package/dist/core-VaoADixi.d.cts +0 -260
- package/dist/core-VaoADixi.d.ts +0 -260
- package/dist/index.global.js +0 -9
package/dist/index.global.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
var Bippy=function(e){"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* @license bippy
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Aiden Bai, Million Software, Inc.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var t="0.2.6",n=`bippy-${t}`,o=()=>{},r=e=>{try{Function.prototype.toString.call(e).indexOf("^_^")>-1&&setTimeout((()=>{throw new 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{}},i=(e=m())=>"getFiberRoots"in e,s=!1,l=(e=m())=>!!s||!("checkDCE"in e),a=e=>{const t=new Map;let i=0;const s={checkDCE:r,supportsFiber:!0,supportsFlight:!0,hasUnsupportedRendererAttached:!1,renderers:t,onCommitFiberRoot:o,onCommitFiberUnmount:o,onPostCommitFiberRoot:o,inject(n){const o=++i;return t.set(o,n),s._instrumentationIsActive||(s._instrumentationIsActive=!0,e?.()),o},_instrumentationSource:n,_instrumentationIsActive:!1};try{Object.defineProperty(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__",{value:s})}catch{c(e)}return s},c=e=>{try{const t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;t._instrumentationSource||(s=l(t),t.checkDCE=r,t.supportsFiber=!0,t.supportsFlight=!0,t.hasUnsupportedRendererAttached=!1,t._instrumentationSource=n,t._instrumentationIsActive=!0,e?.())}catch{}},u=()=>Object.prototype.hasOwnProperty.call(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__"),m=e=>u()?(c(e),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__):a(e);try{"undefined"==typeof window||!window.document?.createElement&&"ReactNative"!==window.navigator?.product||"undefined"==typeof process||null==process.versions||null==process.versions.node||a()}catch{}var d="Symbol(react.element)",p="Symbol(react.transitional.element)",b="Symbol(react.concurrent_mode)",f="Symbol(react.async_mode)",h=e=>{switch(e.tag){case 5:case 26:case 27:return!0;default:return"string"==typeof e.type}},g=e=>{const t=e.memoizedProps,n=e.alternate?.memoizedProps||{},o=e.flags??e.effectTag??0;switch(e.tag){case 1:case 0:case 9:case 11:case 14:case 15:return!(1&~o);default:return!e.alternate||(n!==t||e.alternate.memoizedState!==e.memoizedState||e.alternate.ref!==e.ref)}},_=e=>Boolean(!!(13374&e.flags)||!!(13374&e.subtreeFlags)),y=e=>{switch(e.tag){case 18:case 6:case 7:case 23:case 22:return!0;case 3:return!1;default:{const t="object"==typeof e.type&&null!==e.type?e.type.$$typeof:e.type;switch("symbol"==typeof t?t.toString():t){case 60111:case b:case f:return!0;default:return!1}}}},C=(e,t,n=!1)=>{if(!e)return null;if(!0===t(e))return e;let o=n?e.return:e.child;for(;o;){const e=C(o,t,n);if(e)return e;o=n?null:o.sibling}return null},R=e=>{const t=e;return"function"==typeof t?t:"object"==typeof t&&t?R(t.type||t.render):null},T=e=>{try{if("string"==typeof e.version&&e.bundleType>0)return"development"}catch{}return"production"},F=0,S=new WeakMap,O=(e,t=F++)=>{S.set(e,t)},v=e=>{let t=S.get(e);return!t&&e.alternate&&(t=S.get(e.alternate)),t||(t=F++,O(e,t)),t},E=(e,t,n)=>{let o=t;for(;null!=o;){S.has(o)||v(o);if(!y(o)&&g(o)&&e(o,"mount"),13===o.tag){if(null!==o.memoizedState){const t=o.child,n=t?t.sibling:null;if(n){const t=n.child;null!==t&&E(e,t,!1)}}else{let t=null;null!==o.child&&(t=o.child.child),null!==t&&E(e,t,!1)}}else null!=o.child&&E(e,o.child,!0);o=n?o.sibling:null}},A=(e,t,n,o)=>{if(S.has(t)||v(t),!n)return;S.has(n)||v(n);const r=13===t.tag;!y(t)&&g(t)&&e(t,"update");const i=r&&null!==n.memoizedState,s=r&&null!==t.memoizedState;if(i&&s){const o=t.child?.sibling??null,r=n.child?.sibling??null;null!==o&&null!==r&&A(e,o,r)}else if(i&&!s){const n=t.child;null!==n&&E(e,n,!0)}else if(!i&&s){L(e,n);const o=t.child?.sibling??null;null!==o&&E(e,o,!0)}else if(t.child!==n.child){let n=t.child;for(;n;){if(n.alternate){const t=n.alternate;A(e,n,t)}else E(e,n,!1);n=n.sibling}}},I=(e,t)=>{!(3===t.tag)&&y(t)||e(t,"unmount")},L=(e,t)=>{const n=13===t.tag&&null!==t.memoizedState;let o=t.child;if(n){const e=t.child,n=e?.sibling??null;o=n?.child??null}for(;null!==o;)null!==o.return&&(I(e,o),L(e,o)),o=o.sibling},N=0,D=new WeakMap,H=(e,t)=>{const n="current"in e?e.current:e;let o=D.get(e);o||(o={prevFiber:null,id:N++},D.set(e,o));const{prevFiber:r}=o;if(n)if(null!==r){const e=r&&null!=r.memoizedState&&null!=r.memoizedState.element&&!0!==r.memoizedState.isDehydrated,o=null!=n.memoizedState&&null!=n.memoizedState.element&&!0!==n.memoizedState.isDehydrated;!e&&o?E(t,n,!1):e&&o?A(t,n,n.alternate):e&&!o&&I(t,n)}else E(t,n,!0);else I(t,n);o.prevFiber=n},P=e=>m((()=>{const t=m();e.onActive?.(),t._instrumentationSource=e.name??n;const o=t.onCommitFiberRoot;e.onCommitFiberRoot&&(t.onCommitFiberRoot=(t,n,r)=>{o&&o(t,n,r),e.onCommitFiberRoot?.(t,n,r)});const r=t.onCommitFiberUnmount;e.onCommitFiberUnmount&&(t.onCommitFiberUnmount=(t,n)=>{r&&r(t,n),e.onCommitFiberUnmount?.(t,n)});const i=t.onPostCommitFiberRoot;e.onPostCommitFiberRoot&&(t.onPostCommitFiberRoot=(t,n)=>{i&&i(t,n),e.onPostCommitFiberRoot?.(t,n)})})),w=(e,t={})=>{const n=e.onActive,o=u(),r=i(),s=l();let a,c=!1;return e.onActive=()=>{clearTimeout(a);let o=!0;try{n?.();const e=m();for(const n of e.renderers.values()){const[e]=n.version.split(".");Number(e)<(t.minReactMajorVersion??17)&&(o=!1);"development"!==T(n)&&(c=!0,t.dangerouslyRunInProduction||(o=!1))}}catch(e){t.onError?.(e)}if(!o)return e.onCommitFiberRoot=void 0,e.onCommitFiberUnmount=void 0,e.onPostCommitFiberRoot=void 0,void(e.onActive=void 0);try{const n=e.onCommitFiberRoot;n&&(e.onCommitFiberRoot=(e,o,r)=>{try{n(e,o,r)}catch(e){t.onError?.(e)}});const o=e.onCommitFiberUnmount;o&&(e.onCommitFiberUnmount=(e,n)=>{try{o(e,n)}catch(e){t.onError?.(e)}});const r=e.onPostCommitFiberRoot;r&&(e.onPostCommitFiberRoot=(e,n)=>{try{r(e,n)}catch(e){t.onError?.(e)}})}catch(e){t.onError?.(e)}},o||r||s||(a=setTimeout((()=>{c||t.onError?.(),stop()}),t.installCheckTimeout??100)),e};return e.BIPPY_INSTRUMENTATION_STRING=n,e.CONCURRENT_MODE_NUMBER=60111,e.CONCURRENT_MODE_SYMBOL_STRING=b,e.ClassComponentTag=1,e.ContextConsumerTag=9,e.DEPRECATED_ASYNC_MODE_SYMBOL_STRING=f,e.DehydratedSuspenseComponentTag=18,e.ELEMENT_TYPE_SYMBOL_STRING=d,e.ForwardRefTag=11,e.FragmentTag=7,e.FunctionComponentTag=0,e.HostComponentTag=5,e.HostHoistableTag=26,e.HostRootTag=3,e.HostSingletonTag=27,e.HostTextTag=6,e.INSTALL_HOOK_SCRIPT_STRING="(()=>{try{var t=()=>{};const n=new Map;let o=0;globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__={checkDCE:t,supportsFiber:!0,supportsFlight:!0,hasUnsupportedRendererAttached:!1,renderers:n,onCommitFiberRoot:t,onCommitFiberUnmount:t,onPostCommitFiberRoot:t,inject(t){var e=++o;return n.set(e,t),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__._instrumentationIsActive=!0,e},_instrumentationIsActive:!1}}catch{}})();",e.LegacyHiddenComponentTag=23,e.MemoComponentTag=14,e.OffscreenComponentTag=22,e.SimpleMemoComponentTag=15,e.SuspenseComponentTag=13,e.TRANSITIONAL_ELEMENT_TYPE_SYMBOL_STRING=p,e.createFiberVisitor=({onRender:e})=>(t,n,o)=>{H(n,e)},e.detectReactBuildType=T,e.didFiberCommit=_,e.didFiberRender=g,e.fiberIdMap=S,e.getDisplayName=e=>{const t=e;if("function"!=typeof t&&("object"!=typeof t||!t))return null;const n=t.displayName||t.name||null;if(n)return n;const o=R(t);return o&&(o.displayName||o.name)||null},e.getFiberFromHostInstance=e=>{const t=m();for(const n of t.renderers.values())try{const t=n.findFiberByHostInstance?.(e);if(t)return t}catch{}if("object"==typeof e&&null!=e){if("_reactRootContainer"in e)return e._reactRootContainer?._internalRoot?.current?.child;for(const t in e)if(t.startsWith("__reactInternalInstance$")||t.startsWith("__reactFiber"))return e[t]}return null},e.getFiberId=v,e.getFiberStack=e=>{const t=[];let n=e;for(;n.return;)t.push(n),n=n.return;const o=new Array(t.length);for(let e=0;e<t.length;e++)o[e]=t[t.length-e-1];return o},e.getMutatedHostFibers=e=>{const t=[],n=[e];for(;n.length;){const e=n.pop();e&&(h(e)&&_(e)&&g(e)&&t.push(e),e.child&&n.push(e.child),e.sibling&&n.push(e.sibling))}return t},e.getNearestHostFiber=(e,t=!1)=>{let n=C(e,h,t);return n||(n=C(e,h,!t)),n},e.getNearestHostFibers=e=>{const t=[],n=[];for(h(e)?t.push(e):e.child&&n.push(e.child);n.length;){const e=n.pop();if(!e)break;h(e)?t.push(e):e.child&&n.push(e.child),e.sibling&&n.push(e.sibling)}return t},e.getRDTHook=m,e.getTimings=e=>{const t=e?.actualDuration??0;let n=t,o=e?.child??null;for(;t>0&&null!=o;)n-=o.actualDuration??0,o=o.sibling;return{selfTime:n,totalTime:t}},e.getType=R,e.hasMemoCache=e=>Boolean(e.updateQueue?.memoCache),e.hasRDTHook=u,e.installRDTHook=a,e.instrument=P,e.isCompositeFiber=e=>{switch(e.tag){case 0:case 1:case 15:case 14:case 11:return!0;default:return!1}},e.isHostFiber=h,e.isInstrumentationActive=()=>{const e=m();return Boolean(e._instrumentationIsActive)||i()||l()},e.isReactRefresh=l,e.isRealReactDevtools=i,e.isValidElement=e=>"object"==typeof e&&null!=e&&"$$typeof"in e&&[d,p].includes(String(e.$$typeof)),e.isValidFiber=e=>"object"==typeof e&&null!=e&&"tag"in e&&"stateNode"in e&&"return"in e&&"child"in e&&"sibling"in e&&"flags"in e,e.mountFiberRecursively=E,e.onCommitFiberRoot=e=>{P(w({onCommitFiberRoot:(t,n)=>{e(n)}}))},e.patchRDTHook=c,e.secure=w,e.setFiberId=O,e.shouldFilterFiber=y,e.traverseContexts=(e,t)=>{try{const n=e.dependencies,o=e.alternate?.dependencies;if(!n||!o)return!1;if("object"!=typeof n||!("firstContext"in n)||"object"!=typeof o||!("firstContext"in o))return!1;let r=n.firstContext,i=o.firstContext;for(;r&&"object"==typeof r&&"memoizedValue"in r||i&&"object"==typeof i&&"memoizedValue"in i;){if(!0===t(r,i))return!0;r=r?.next,i=i?.next}}catch{}return!1},e.traverseEffects=(e,t)=>{try{let n=e.updateQueue?.lastEffect,o=e.alternate?.updateQueue?.lastEffect;for(;n||o;){if(!0===t(n,o))return!0;if(n?.next===n||o?.next===o)break;n=n?.next,o=o?.next}}catch{}return!1},e.traverseFiber=C,e.traverseProps=(e,t)=>{try{const n=e.memoizedProps,o=e.alternate?.memoizedProps||{},r=new Set([...Object.keys(o),...Object.keys(n)]);for(const e of r){const r=o?.[e],i=n?.[e];if(!0===t(e,i,r))return!0}}catch{}return!1},e.traverseRenderedFibers=H,e.traverseState=(e,t)=>{try{let n=e.memoizedState,o=e.alternate?.memoizedState;for(;n||o;){if(!0===t(n,o))return!0;n=n?.next,o=o?.next}}catch{}return!1},e.unmountFiber=I,e.unmountFiberChildrenRecursively=L,e.updateFiberRecursively=A,e.version=t,e}({});
|