prop-for-that 0.7.8 → 0.7.12
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/CHANGELOG.md +129 -0
- package/README.md +25 -2
- package/dist/auto.cjs +1 -1
- package/dist/auto.js +1 -1
- package/dist/battery-6MFH4UXN.cjs +1 -0
- package/dist/battery-RGIVK2PZ.js +1 -0
- package/dist/chunk-23TUV6HD.js +1 -0
- package/dist/chunk-2OCWGQTC.cjs +1 -0
- package/dist/chunk-2RNFSOS6.js +1 -0
- package/dist/chunk-2TNXW2VV.js +1 -0
- package/dist/chunk-34XDO4K2.cjs +2 -0
- package/dist/chunk-3EI2VHWK.cjs +1 -0
- package/dist/chunk-4H6UVYDJ.js +1 -0
- package/dist/chunk-4IEDDWUY.js +1 -0
- package/dist/chunk-4K5AIWZQ.cjs +1 -0
- package/dist/chunk-4WSASU6P.js +1 -0
- package/dist/chunk-5JG4K6SH.cjs +1 -0
- package/dist/chunk-64VOCEUQ.cjs +1 -0
- package/dist/chunk-6FYUJK4F.cjs +1 -0
- package/dist/chunk-6LH6U5QE.cjs +1 -0
- package/dist/chunk-7AD7LRMF.cjs +1 -0
- package/dist/chunk-7GUGSNG2.cjs +1 -0
- package/dist/chunk-7HKSU2EV.js +1 -0
- package/dist/chunk-7KOHYADG.js +1 -0
- package/dist/chunk-7OBG2QQ6.js +1 -0
- package/dist/chunk-A3CLHLE4.js +1 -0
- package/dist/chunk-ADHR4VLZ.cjs +1 -0
- package/dist/{chunk-BS2XX4G3.js → chunk-AGUPRRD4.js} +1 -1
- package/dist/chunk-ALOGYFNP.cjs +1 -0
- package/dist/chunk-AQV7LL54.js +1 -0
- package/dist/chunk-BKB5HQTJ.js +1 -0
- package/dist/chunk-BYFXKRGA.cjs +1 -0
- package/dist/chunk-CBWMRF63.cjs +1 -0
- package/dist/chunk-CXXDGS7S.js +1 -0
- package/dist/chunk-D2T22ZDL.js +1 -0
- package/dist/chunk-DELDE4TM.cjs +1 -0
- package/dist/chunk-DGJ45NBZ.js +1 -0
- package/dist/chunk-DUKZ35AN.cjs +1 -0
- package/dist/chunk-FONP6RWO.js +1 -0
- package/dist/chunk-G3KQEE4R.cjs +1 -0
- package/dist/chunk-GTPEKE7O.cjs +1 -0
- package/dist/chunk-H5ZFJCDA.cjs +1 -0
- package/dist/chunk-HA25PYSI.js +1 -0
- package/dist/chunk-II5RRRIW.cjs +1 -0
- package/dist/chunk-ILMWSJ5M.js +1 -0
- package/dist/chunk-IMW37LVJ.cjs +1 -0
- package/dist/chunk-JMSQWVGJ.cjs +1 -0
- package/dist/chunk-KOELKEUS.js +1 -0
- package/dist/chunk-M3JZ2I3N.cjs +1 -0
- package/dist/chunk-NAJLRXKX.cjs +1 -0
- package/dist/chunk-NHEC6UK5.js +1 -0
- package/dist/chunk-NJ4Z3SAN.js +1 -0
- package/dist/chunk-NKC2KU7M.cjs +1 -0
- package/dist/chunk-O3KW7BD7.cjs +1 -0
- package/dist/chunk-PFCCKKAU.js +1 -0
- package/dist/chunk-PIEENX4H.js +1 -0
- package/dist/chunk-PMDPLPCX.cjs +1 -0
- package/dist/{chunk-37L73RJL.cjs → chunk-PSEAYJTX.cjs} +1 -1
- package/dist/{chunk-HKCTBVQT.js → chunk-PSGZ7K22.js} +1 -1
- package/dist/chunk-QEBTQYJZ.js +1 -0
- package/dist/chunk-QEFUAIXU.js +1 -0
- package/dist/chunk-QUY6BC6A.cjs +1 -0
- package/dist/chunk-R7KDUB7L.cjs +1 -0
- package/dist/chunk-SHR2C4QU.js +2 -0
- package/dist/{chunk-KAK6WZS7.js → chunk-SQIQ6W3B.js} +1 -1
- package/dist/{chunk-MDKLN42L.js → chunk-UDXHWQBB.js} +1 -1
- package/dist/chunk-VBXFZRD2.cjs +1 -0
- package/dist/chunk-VEIGSGIP.js +1 -0
- package/dist/chunk-VX2YFVNN.js +1 -0
- package/dist/chunk-WCZLSJ2Z.js +1 -0
- package/dist/chunk-XKZFDAK7.cjs +1 -0
- package/dist/{chunk-3W7CXUWN.cjs → chunk-YGON2MF3.cjs} +1 -1
- package/dist/chunk-ZHPDCMOZ.cjs +1 -0
- package/dist/chunk-ZWS2DFMD.js +1 -0
- package/dist/color-input-DYFD524G.cjs +1 -0
- package/dist/color-input-VGXE3XNJ.js +1 -0
- package/dist/cpu-pressure-44GNUF4Y.cjs +1 -0
- package/dist/cpu-pressure-IMBFJ3ZO.js +1 -0
- package/dist/field-HPNPSL25.js +1 -0
- package/dist/field-WYORT6PG.cjs +1 -0
- package/dist/field-state-4PSUJFKN.js +1 -0
- package/dist/field-state-II6PJ5HS.cjs +1 -0
- package/dist/form-state-5IHJDD33.cjs +1 -0
- package/dist/form-state-OVV2M5TF.js +1 -0
- package/dist/geo-P2VA6AUO.cjs +1 -0
- package/dist/geo-ZWUUVUGV.js +1 -0
- package/dist/head.cjs +1 -1
- package/dist/head.global.js +1 -1
- package/dist/head.js +1 -1
- package/dist/img-DF7WXT4N.cjs +1 -0
- package/dist/img-EKQEJX2E.js +1 -0
- package/dist/img-color-6EPAZT5J.cjs +1 -0
- package/dist/img-color-LZCA54BY.js +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +30 -5
- package/dist/index.d.ts +30 -5
- package/dist/index.global.js +1 -1
- package/dist/index.js +1 -1
- package/dist/keyboard-64GW3PBM.cjs +1 -0
- package/dist/keyboard-TDESCGLM.js +1 -0
- package/dist/media-OMEUDO7O.js +1 -0
- package/dist/media-QTJUS7XA.cjs +1 -0
- package/dist/meta-7F3Z4TDW.js +1 -0
- package/dist/meta-LT46XDXG.cjs +1 -0
- package/dist/motion-2SODB2EA.js +1 -0
- package/dist/motion-7IYUKVGZ.cjs +1 -0
- package/dist/nav-type-U6LPZQ2P.cjs +1 -0
- package/dist/nav-type-X6F3SEKK.js +1 -0
- package/dist/network-CK67HYFH.cjs +1 -0
- package/dist/network-UZSWIPZI.js +1 -0
- package/dist/online-26LBCTSO.js +1 -0
- package/dist/online-QAPYXQPE.cjs +1 -0
- package/dist/orientation-74KQIYGZ.cjs +1 -0
- package/dist/orientation-CY3Z2V7H.js +1 -0
- package/dist/page-focused-LRTVCN2G.js +1 -0
- package/dist/page-focused-NOTCVLRM.cjs +1 -0
- package/dist/page-visible-2BODDMS2.cjs +1 -0
- package/dist/page-visible-MBFCHBMI.js +1 -0
- package/dist/plugins.cjs +1 -1
- package/dist/plugins.d.cts +70 -9
- package/dist/plugins.d.ts +70 -9
- package/dist/plugins.js +1 -1
- package/dist/pointer-6GORZRQ3.cjs +1 -0
- package/dist/pointer-XOW7F5WJ.js +1 -0
- package/dist/pointer-local-I2LOFXBK.js +1 -0
- package/dist/pointer-local-YKTILVZ2.cjs +1 -0
- package/dist/random-IUHNW2BC.cjs +1 -0
- package/dist/random-NZJGUATO.js +1 -0
- package/dist/scroll-velocity-EUEGXSPS.js +1 -0
- package/dist/scroll-velocity-GGM44R6C.cjs +1 -0
- package/dist/select-IGBNDOVX.js +1 -0
- package/dist/select-YIQGILHM.cjs +1 -0
- package/dist/truncated-52BHB5RJ.js +1 -0
- package/dist/truncated-HESCQTCR.cjs +1 -0
- package/dist/{types-CudiAlDE.d.cts → types-D8ZUfj4U.d.cts} +30 -4
- package/dist/{types-CudiAlDE.d.ts → types-D8ZUfj4U.d.ts} +30 -4
- package/dist/ua-6TXYUXIB.js +1 -0
- package/dist/ua-IS3BUTMX.cjs +1 -0
- package/dist/video-color-DY2FP4OR.js +1 -0
- package/dist/video-color-MASYKAPQ.cjs +1 -0
- package/dist/visual-viewport-KZ4IINJE.js +1 -0
- package/dist/visual-viewport-PLYUYG44.cjs +1 -0
- package/llms.txt +29 -6
- package/package.json +1 -1
- package/dist/battery-CDMJLP4C.js +0 -1
- package/dist/battery-DQQ2NOGC.cjs +0 -1
- package/dist/chunk-2E2JQAHI.js +0 -1
- package/dist/chunk-2H5YFW6O.cjs +0 -1
- package/dist/chunk-2YHGSLQQ.cjs +0 -1
- package/dist/chunk-3MK6Q7DX.cjs +0 -1
- package/dist/chunk-3QHCKCTX.cjs +0 -1
- package/dist/chunk-3REDV2FZ.cjs +0 -1
- package/dist/chunk-5JZBLUQK.js +0 -1
- package/dist/chunk-5VXDAWUI.js +0 -1
- package/dist/chunk-63C3RCO2.cjs +0 -1
- package/dist/chunk-7CDVAP3H.cjs +0 -1
- package/dist/chunk-A7GWTDM7.js +0 -1
- package/dist/chunk-BTKSOVH3.js +0 -1
- package/dist/chunk-COGNT6R5.js +0 -1
- package/dist/chunk-D24E2DBW.js +0 -1
- package/dist/chunk-DQJQEWPS.js +0 -1
- package/dist/chunk-EEMKKLRF.js +0 -1
- package/dist/chunk-EXPE3C6O.js +0 -2
- package/dist/chunk-F5H2O3AR.js +0 -1
- package/dist/chunk-FKBHTKZH.cjs +0 -1
- package/dist/chunk-FOHEZJHF.js +0 -1
- package/dist/chunk-FZYB3P7L.cjs +0 -1
- package/dist/chunk-G2BOTBBH.cjs +0 -1
- package/dist/chunk-H7X35UB4.js +0 -1
- package/dist/chunk-HTKGZP36.cjs +0 -1
- package/dist/chunk-HYVT6V4Z.cjs +0 -1
- package/dist/chunk-IIQP3BYA.cjs +0 -1
- package/dist/chunk-IPYBSM34.cjs +0 -1
- package/dist/chunk-IVUTABRM.js +0 -1
- package/dist/chunk-JB72QLD6.js +0 -1
- package/dist/chunk-K2YWGXLP.cjs +0 -1
- package/dist/chunk-KSKAQMWJ.cjs +0 -2
- package/dist/chunk-LBK3257B.js +0 -1
- package/dist/chunk-LP3QQ33O.cjs +0 -1
- package/dist/chunk-M65LNJXV.js +0 -1
- package/dist/chunk-MGZTR3X6.cjs +0 -1
- package/dist/chunk-ODPCQAKC.cjs +0 -1
- package/dist/chunk-OVCZMPYV.cjs +0 -1
- package/dist/chunk-OVF4XN2H.cjs +0 -1
- package/dist/chunk-PQVNJZUW.cjs +0 -1
- package/dist/chunk-QFJ6SZ2H.cjs +0 -1
- package/dist/chunk-QHHF5SEL.cjs +0 -1
- package/dist/chunk-QTM2FDUV.js +0 -1
- package/dist/chunk-RT47EE2L.cjs +0 -1
- package/dist/chunk-SFO6H2DN.js +0 -1
- package/dist/chunk-SKEEFKDT.js +0 -1
- package/dist/chunk-SV76E7NI.js +0 -1
- package/dist/chunk-SYKMPPTY.cjs +0 -1
- package/dist/chunk-TEPMM5DH.js +0 -1
- package/dist/chunk-TRMZLMNW.js +0 -1
- package/dist/chunk-UALPUR2L.cjs +0 -1
- package/dist/chunk-UHGW7AXC.js +0 -1
- package/dist/chunk-V4OTPLOQ.js +0 -1
- package/dist/chunk-WIPJMLJJ.cjs +0 -1
- package/dist/chunk-XQOUJEVE.cjs +0 -1
- package/dist/chunk-YARRV66T.js +0 -1
- package/dist/chunk-ZQTU5EW7.js +0 -1
- package/dist/color-input-STV57DGE.js +0 -1
- package/dist/color-input-SYYBVLZM.cjs +0 -1
- package/dist/cpu-pressure-FXZDL5IE.cjs +0 -1
- package/dist/cpu-pressure-WCDHVDRP.js +0 -1
- package/dist/field-4MBM2R7N.cjs +0 -1
- package/dist/field-6USMKGKM.js +0 -1
- package/dist/field-state-NXSK6ZZW.cjs +0 -1
- package/dist/field-state-YLUDK3XS.js +0 -1
- package/dist/form-state-FJZINKN7.cjs +0 -1
- package/dist/form-state-Q4SCA6TH.js +0 -1
- package/dist/geo-CMG7QJ6S.cjs +0 -1
- package/dist/geo-MXO5OMVO.js +0 -1
- package/dist/img-6F5QAPW3.cjs +0 -1
- package/dist/img-PYBNG6OU.js +0 -1
- package/dist/img-color-MBEU42DF.cjs +0 -1
- package/dist/img-color-VW3XMATY.js +0 -1
- package/dist/keyboard-6ZGB2LAD.cjs +0 -1
- package/dist/keyboard-YJ7S6XPJ.js +0 -1
- package/dist/media-RDQ3WR22.js +0 -1
- package/dist/media-XS6ADFFY.cjs +0 -1
- package/dist/meta-U2EHV4AM.cjs +0 -1
- package/dist/meta-VSAZR4JL.js +0 -1
- package/dist/motion-GHDWROM2.js +0 -1
- package/dist/motion-GMUGWJN3.cjs +0 -1
- package/dist/nav-type-MFJJDDPZ.cjs +0 -1
- package/dist/nav-type-S4MHMDHS.js +0 -1
- package/dist/network-BHUTXTX7.js +0 -1
- package/dist/network-DPAAEK2S.cjs +0 -1
- package/dist/online-KTMCBCXT.cjs +0 -1
- package/dist/online-MGYZDLCQ.js +0 -1
- package/dist/orientation-27ULVQVJ.js +0 -1
- package/dist/orientation-JD23MYZR.cjs +0 -1
- package/dist/page-focused-3WLSZDV4.cjs +0 -1
- package/dist/page-focused-LBKD6QXG.js +0 -1
- package/dist/page-visible-27YKTHKU.js +0 -1
- package/dist/page-visible-6PMX575B.cjs +0 -1
- package/dist/pointer-3O7MGTQD.js +0 -1
- package/dist/pointer-DJSMZGSV.cjs +0 -1
- package/dist/pointer-local-6JKSOJZV.cjs +0 -1
- package/dist/pointer-local-X5TVNEEJ.js +0 -1
- package/dist/scroll-velocity-DGZNNO73.cjs +0 -1
- package/dist/scroll-velocity-ZRXPNZG7.js +0 -1
- package/dist/select-H3CFIVK3.js +0 -1
- package/dist/select-LMRGCCLB.cjs +0 -1
- package/dist/truncated-MDPFWGSI.js +0 -1
- package/dist/truncated-RUY3JNAX.cjs +0 -1
- package/dist/ua-3MLUBLSV.cjs +0 -1
- package/dist/ua-3RC4SBYB.js +0 -1
- package/dist/video-color-B37Z5OBY.cjs +0 -1
- package/dist/video-color-ZMRKDZFO.js +0 -1
- package/dist/visual-viewport-GNJTAHPT.js +0 -1
- package/dist/visual-viewport-MKUHWUQT.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-T4N6AEOZ.js';import {a}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-T4N6AEOZ.js';import {a}from'./chunk-ZWS2DFMD.js';var c={key:"pointer",scope:"global",start(o){return a("pointermove",n=>{let e=n;o.write("pointer-x",e.clientX),o.write("pointer-y",e.clientY),o.write("pointer-x-ratio",a$1(e.clientX/window.innerWidth)),o.write("pointer-y-ratio",a$1(e.clientY/window.innerHeight));})}};export{c as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-ZWS2DFMD.js';var f={key:"online",scope:"global",start(e){let o=()=>e.write("online",navigator.onLine?1:0);o();let t=a("online",o),i=a("offline",o);return ()=>{t(),i();}}};export{f as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkADHR4VLZ_cjs=require('./chunk-ADHR4VLZ.cjs'),chunkCBWMRF63_cjs=require('./chunk-CBWMRF63.cjs');var f={key:"meta",scope:"global",start(a){if(typeof document>"u")return chunkADHR4VLZ_cjs.a;let n=new Set,s=document.querySelectorAll("meta[name], meta[property]");for(let t of s){let r=t.getAttribute("name")??t.getAttribute("property"),c=t.getAttribute("content");if(!r||!c)continue;let i=t.getAttribute("media");if(i&&typeof matchMedia=="function"&&!matchMedia(i).matches)continue;let e=chunkCBWMRF63_cjs.a(r);!e||n.has(e)||(n.add(e),a.write("meta-"+e,c,"const"));}return chunkADHR4VLZ_cjs.a}};exports.a=f;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a}from'./chunk-LTJ2VKVY.js';import {a as a$1}from'./chunk-7KOHYADG.js';import {a as a$2}from'./chunk-T4N6AEOZ.js';import {d}from'./chunk-ZWS2DFMD.js';var g={key:"select",scope:"element",gate:false,start(e){let t=a(e.target,"select");if(!t)return a$1;let i=()=>{let o=t.options.length,r=t.selectedIndex,s=t.selectedOptions.length;e.write("index",r),e.write("option-count",o),e.write("index-pct",r>=0&&o>1?a$2(r/(o-1)):0),e.write("selected-count",s),e.write("selected-pct",o>0?a$2(s/o):0);let l=Number(t.value);e.write("value-num",t.value.trim()!==""&&Number.isFinite(l)?l:"");};return i(),d(t,["input","change"],i)}};export{g as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {b}from'./chunk-ZWS2DFMD.js';var r={key:"page-visible",scope:"global",start(t){let e=()=>t.write("page-visible",document.visibilityState==="visible"?1:0);return e(),b("visibilitychange",e)}};export{r as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a as a$1}from'./chunk-7KOHYADG.js';var c={nominal:0,fair:1,serious:2,critical:3},a={key:"cpu-pressure",scope:"global",start(r){let s=globalThis.PressureObserver;if(!s)return a$1;r.write("cpu-pressure",0);let e;try{e=new s(t=>{let o=t[t.length-1];o&&r.write("cpu-pressure",c[o.state]??0);}),e.observe("cpu",{sampleInterval:1e3}).catch(()=>{});}catch{e=void 0;}return ()=>e?.disconnect()}};export{a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkA6JDSQWH_cjs=require('./chunk-A6JDSQWH.cjs'),chunkHHINWX7L_cjs=require('./chunk-HHINWX7L.cjs'),chunkADHR4VLZ_cjs=require('./chunk-ADHR4VLZ.cjs'),chunk7AD7LRMF_cjs=require('./chunk-7AD7LRMF.cjs');var s={key:"color-input",scope:"element",props:{color:chunkA6JDSQWH_cjs.b},gate:false,start(r){let o=chunkHHINWX7L_cjs.a(r.target,'input[type="color"]');if(!o)return chunkADHR4VLZ_cjs.a;let t=()=>r.write("color",o.value);return t(),chunk7AD7LRMF_cjs.d(o,["input","change"],t)}};exports.a=s;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var chunk65MXZJBD_cjs=require('./chunk-65MXZJBD.cjs'),
|
|
1
|
+
'use strict';var chunk65MXZJBD_cjs=require('./chunk-65MXZJBD.cjs'),chunk7AD7LRMF_cjs=require('./chunk-7AD7LRMF.cjs');var c={key:"pointer",scope:"global",start(o){return chunk7AD7LRMF_cjs.a("pointermove",n=>{let e=n;o.write("pointer-x",e.clientX),o.write("pointer-y",e.clientY),o.write("pointer-x-ratio",chunk65MXZJBD_cjs.a(e.clientX/window.innerWidth)),o.write("pointer-y-ratio",chunk65MXZJBD_cjs.a(e.clientY/window.innerHeight));})}};exports.a=c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkADHR4VLZ_cjs=require('./chunk-ADHR4VLZ.cjs'),chunk34XDO4K2_cjs=require('./chunk-34XDO4K2.cjs');var l={key:"ua",scope:"global",props:{"ua-platform":{syntax:"<custom-ident>",initial:"unknown"},"ua-browser":{syntax:"<custom-ident>",initial:"unknown"},"ua-engine":{syntax:"<custom-ident>",initial:"unknown"},"ua-version":{syntax:"<integer>",initial:"0"},"ua-mobile":{syntax:"<integer>",initial:"0"}},start(n){let{platform:e,browser:i,engine:r,version:a,mobile:s}=chunk34XDO4K2_cjs.a();return n.write("ua-platform",e,"const"),n.write("ua-browser",i,"const"),n.write("ua-engine",r,"const"),n.write("ua-version",a,"const"),n.write("ua-mobile",s,"const"),chunkADHR4VLZ_cjs.a}};exports.a=l;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function s(o){let t=new Map;return function(e,i){let d=o(),n=t.get(e);if(!n){let a=new Set,c=p=>{for(let v of a)v(p);};n={handlers:a,dispatch:c},t.set(e,n),d.addEventListener(e,c,{passive:true});}return n.handlers.add(i),()=>{n.handlers.delete(i),n.handlers.size===0&&(d.removeEventListener(e,n.dispatch),t.delete(e));}}}var l=s(()=>window),u=s(()=>document),f=s(()=>window.visualViewport);function w(o,t,r){for(let e of t)o.addEventListener(e,r,{passive:true});return ()=>{for(let e of t)o.removeEventListener(e,r);}}export{l as a,u as b,f as c,w as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkXKZFDAK7_cjs=require('./chunk-XKZFDAK7.cjs');require('./chunk-A6JDSQWH.cjs'),require('./chunk-HHINWX7L.cjs'),require('./chunk-ADHR4VLZ.cjs'),require('./chunk-7AD7LRMF.cjs');Object.defineProperty(exports,"colorInput",{enumerable:true,get:function(){return chunkXKZFDAK7_cjs.a}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as colorInput}from'./chunk-4WSASU6P.js';import'./chunk-A2ETARW3.js';import'./chunk-LTJ2VKVY.js';import'./chunk-7KOHYADG.js';import'./chunk-ZWS2DFMD.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkALOGYFNP_cjs=require('./chunk-ALOGYFNP.cjs');require('./chunk-ADHR4VLZ.cjs');Object.defineProperty(exports,"cpuPressure",{enumerable:true,get:function(){return chunkALOGYFNP_cjs.a}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as cpuPressure}from'./chunk-WCZLSJ2Z.js';import'./chunk-7KOHYADG.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as field}from'./chunk-4IEDDWUY.js';import'./chunk-LTJ2VKVY.js';import'./chunk-7KOHYADG.js';import'./chunk-T4N6AEOZ.js';import'./chunk-ZWS2DFMD.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunk64VOCEUQ_cjs=require('./chunk-64VOCEUQ.cjs');require('./chunk-HHINWX7L.cjs'),require('./chunk-ADHR4VLZ.cjs'),require('./chunk-65MXZJBD.cjs'),require('./chunk-7AD7LRMF.cjs');Object.defineProperty(exports,"field",{enumerable:true,get:function(){return chunk64VOCEUQ_cjs.a}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as fieldState}from'./chunk-2RNFSOS6.js';import'./chunk-QIUPJ6MF.js';import'./chunk-7KOHYADG.js';import'./chunk-ZWS2DFMD.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkG3KQEE4R_cjs=require('./chunk-G3KQEE4R.cjs');require('./chunk-L4SCOKPV.cjs'),require('./chunk-ADHR4VLZ.cjs'),require('./chunk-7AD7LRMF.cjs');Object.defineProperty(exports,"fieldState",{enumerable:true,get:function(){return chunkG3KQEE4R_cjs.a}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkH5ZFJCDA_cjs=require('./chunk-H5ZFJCDA.cjs');require('./chunk-L4SCOKPV.cjs'),require('./chunk-ADHR4VLZ.cjs'),require('./chunk-EYDIF3NM.cjs'),require('./chunk-65MXZJBD.cjs'),require('./chunk-7L35N3N3.cjs'),require('./chunk-7AD7LRMF.cjs');Object.defineProperty(exports,"formState",{enumerable:true,get:function(){return chunkH5ZFJCDA_cjs.a}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as formState}from'./chunk-BKB5HQTJ.js';import'./chunk-QIUPJ6MF.js';import'./chunk-7KOHYADG.js';import'./chunk-KG3EF456.js';import'./chunk-T4N6AEOZ.js';import'./chunk-LWKH66VY.js';import'./chunk-ZWS2DFMD.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunk7GUGSNG2_cjs=require('./chunk-7GUGSNG2.cjs');require('./chunk-ADHR4VLZ.cjs'),require('./chunk-65MXZJBD.cjs');Object.defineProperty(exports,"geo",{enumerable:true,get:function(){return chunk7GUGSNG2_cjs.a}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as geo}from'./chunk-7HKSU2EV.js';import'./chunk-7KOHYADG.js';import'./chunk-T4N6AEOZ.js';
|
package/dist/head.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunk34XDO4K2_cjs=require('./chunk-34XDO4K2.cjs');require('./chunk-CBWMRF63.cjs');var chunk7L35N3N3_cjs=require('./chunk-7L35N3N3.cjs');function c(){let i=chunk7L35N3N3_cjs.a.root,o=(a,l)=>i.style.setProperty(chunk7L35N3N3_cjs.a.constPrefix+a,String(l)),t=document.createElement("div");t.style.cssText="position:absolute;top:-9999px;width:100px;height:100px;overflow:scroll;visibility:hidden;scrollbar-width:auto",(document.body??i).appendChild(t);let n=t.offsetWidth-t.clientWidth;o("scrollbar-w",n),o("scrollbar-overlay",n===0?1:0),t.style.scrollbarWidth="thin",o("scrollbar-thin-w",t.offsetWidth-t.clientWidth),t.remove(),o("dpr",window.devicePixelRatio||1),o("cores",navigator.hardwareConcurrency||0),o("mem",navigator.deviceMemory||0);let e=chunk34XDO4K2_cjs.a();o("ua-platform",e.platform),o("ua-browser",e.browser),o("ua-engine",e.engine),o("ua-version",e.version),o("ua-mobile",e.mobile);}typeof document<"u"&&chunk7L35N3N3_cjs.a.root&&c();
|
package/dist/head.global.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(function(){'use strict';var
|
|
1
|
+
(function(){'use strict';var a={constPrefix:"--const-",root:typeof document<"u"?document.documentElement:void 0};var c=e=>e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"");var u={platform:"unknown",browser:"unknown",engine:"unknown",version:0,mobile:0},f={android:"android","chrome-os":"chromeos","chromium-os":"chromeos",ios:"ios",linux:"linux",macos:"macos",windows:"windows"};function m(e){let n=e.toLowerCase();return n.includes("edge")||n.includes("edg")?"edge":n.includes("opera")||n.includes("opr")?"opera":n.includes("samsung")?"samsung":n.includes("firefox")?"firefox":n.includes("chrome")||n.includes("chromium")?"chrome":n.includes("safari")?"safari":"unknown"}function g(e){let n=e.brands;if(!n||!n.length)return null;let r=n.filter(o=>!/not.?a.?brand/i.test(o.brand)),t=r.find(o=>!/chromium/i.test(o.brand))??r[0];return t?{platform:f[c(e.platform??"")]??"unknown",browser:m(t.brand),engine:"blink",version:parseInt(t.version,10)||0,mobile:e.mobile?1:0}:null}var p=[{id:"edge",test:/Edg(?:iOS|A)?\//,ver:/Edg(?:iOS|A)?\/(\d+)/},{id:"opera",test:/OPR\/|OPiOS\/|Opera\//,ver:/(?:OPR|OPiOS|Opera)\/(\d+)/},{id:"samsung",test:/SamsungBrowser\//,ver:/SamsungBrowser\/(\d+)/},{id:"firefox",test:/Firefox\/|FxiOS\//,ver:/(?:Firefox|FxiOS)\/(\d+)/},{id:"chrome",test:/Chrome\/|CriOS\//,ver:/(?:Chrome|CriOS)\/(\d+)/},{id:"safari",test:/Safari\//,ver:/Version\/(\d+)/}],b=[[/Android/,"android"],[/iPhone|iPad|iPod/,"ios"],[/Macintosh|Mac OS X/,"macos"],[/Windows/,"windows"],[/CrOS/,"chromeos"],[/Linux/,"linux"]],w={firefox:"gecko",safari:"webkit",unknown:"unknown"};function h(e){let n=b.find(([s])=>s.test(e))?.[1]??"unknown",r=p.find(s=>s.test.test(e)),t=r?.id??"unknown",o=r&&parseInt(e.match(r.ver)?.[1]??"",10)||0,i=n==="ios"?"webkit":w[t]??"blink",d=/Mobi|Android|iPhone|iPod/.test(e)?1:0;return {platform:n,browser:t,engine:i,version:o,mobile:d}}function l(){if(typeof navigator>"u")return u;let e=navigator.userAgentData;return (e?g(e):null)??h(navigator.userAgent||"")}function v(){let e=a.root,n=(d,s)=>e.style.setProperty(a.constPrefix+d,String(s)),r=document.createElement("div");r.style.cssText="position:absolute;top:-9999px;width:100px;height:100px;overflow:scroll;visibility:hidden;scrollbar-width:auto",(document.body??e).appendChild(r);let o=r.offsetWidth-r.clientWidth;n("scrollbar-w",o),n("scrollbar-overlay",o===0?1:0),r.style.scrollbarWidth="thin",n("scrollbar-thin-w",r.offsetWidth-r.clientWidth),r.remove(),n("dpr",window.devicePixelRatio||1),n("cores",navigator.hardwareConcurrency||0),n("mem",navigator.deviceMemory||0);let i=l();n("ua-platform",i.platform),n("ua-browser",i.browser),n("ua-engine",i.engine),n("ua-version",i.version),n("ua-mobile",i.mobile);}typeof document<"u"&&a.root&&v();
|
|
2
2
|
})();
|
package/dist/head.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-SHR2C4QU.js';import'./chunk-PFCCKKAU.js';import {a}from'./chunk-LWKH66VY.js';function c(){let i=a.root,o=(a$1,l)=>i.style.setProperty(a.constPrefix+a$1,String(l)),t=document.createElement("div");t.style.cssText="position:absolute;top:-9999px;width:100px;height:100px;overflow:scroll;visibility:hidden;scrollbar-width:auto",(document.body??i).appendChild(t);let n=t.offsetWidth-t.clientWidth;o("scrollbar-w",n),o("scrollbar-overlay",n===0?1:0),t.style.scrollbarWidth="thin",o("scrollbar-thin-w",t.offsetWidth-t.clientWidth),t.remove(),o("dpr",window.devicePixelRatio||1),o("cores",navigator.hardwareConcurrency||0),o("mem",navigator.deviceMemory||0);let e=a$1();o("ua-platform",e.platform),o("ua-browser",e.browser),o("ua-engine",e.engine),o("ua-version",e.version),o("ua-mobile",e.mobile);}typeof document<"u"&&a.root&&c();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkR7KDUB7L_cjs=require('./chunk-R7KDUB7L.cjs');require('./chunk-HHINWX7L.cjs'),require('./chunk-ADHR4VLZ.cjs');Object.defineProperty(exports,"img",{enumerable:true,get:function(){return chunkR7KDUB7L_cjs.a}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as img}from'./chunk-KOELKEUS.js';import'./chunk-LTJ2VKVY.js';import'./chunk-7KOHYADG.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunk5JG4K6SH_cjs=require('./chunk-5JG4K6SH.cjs');require('./chunk-A6JDSQWH.cjs'),require('./chunk-HHINWX7L.cjs'),require('./chunk-ADHR4VLZ.cjs'),require('./chunk-65MXZJBD.cjs');Object.defineProperty(exports,"imgColor",{enumerable:true,get:function(){return chunk5JG4K6SH_cjs.a}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as imgColor}from'./chunk-7OBG2QQ6.js';import'./chunk-A2ETARW3.js';import'./chunk-LTJ2VKVY.js';import'./chunk-7KOHYADG.js';import'./chunk-T4N6AEOZ.js';
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkJMSQWVGJ_cjs=require('./chunk-JMSQWVGJ.cjs');require('./chunk-NAJLRXKX.cjs'),require('./chunk-HHINWX7L.cjs'),require('./chunk-ADHR4VLZ.cjs');var chunkEYDIF3NM_cjs=require('./chunk-EYDIF3NM.cjs');require('./chunk-65MXZJBD.cjs'),require('./chunk-7L35N3N3.cjs'),require('./chunk-7AD7LRMF.cjs');Object.defineProperty(exports,"configure",{enumerable:true,get:function(){return chunkJMSQWVGJ_cjs.d}});Object.defineProperty(exports,"isRegistered",{enumerable:true,get:function(){return chunkJMSQWVGJ_cjs.c}});Object.defineProperty(exports,"propsFor",{enumerable:true,get:function(){return chunkJMSQWVGJ_cjs.e}});Object.defineProperty(exports,"register",{enumerable:true,get:function(){return chunkJMSQWVGJ_cjs.a}});Object.defineProperty(exports,"reset",{enumerable:true,get:function(){return chunkJMSQWVGJ_cjs.g}});Object.defineProperty(exports,"unbind",{enumerable:true,get:function(){return chunkJMSQWVGJ_cjs.f}});Object.defineProperty(exports,"unregister",{enumerable:true,get:function(){return chunkJMSQWVGJ_cjs.b}});Object.defineProperty(exports,"pause",{enumerable:true,get:function(){return chunkEYDIF3NM_cjs.d}});Object.defineProperty(exports,"resume",{enumerable:true,get:function(){return chunkEYDIF3NM_cjs.e}});
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as Config, D as Disposer, S as Source } from './types-
|
|
2
|
-
export { C as Cadence, P as PropSpec, b as SourceContext } from './types-
|
|
1
|
+
import { a as Config, D as Disposer, S as Source } from './types-D8ZUfj4U.cjs';
|
|
2
|
+
export { C as Cadence, P as PropSpec, b as SourceContext } from './types-D8ZUfj4U.cjs';
|
|
3
3
|
|
|
4
4
|
/** Freeze the loop: no sampling, no flushing, until `resume()`. Idempotent. */
|
|
5
5
|
declare function pause(): void;
|
|
@@ -9,9 +9,29 @@ declare function resume(): void;
|
|
|
9
9
|
type CoreKey = 'viewport' | 'size' | 'visibility' | 'range';
|
|
10
10
|
/** Built-in keys autocomplete; any registered/plugin key (a string) is allowed. */
|
|
11
11
|
type SourceKey = CoreKey | (string & {});
|
|
12
|
+
/** Options for the element-targeted `propsFor`. */
|
|
13
|
+
interface PropsForOptions {
|
|
14
|
+
/**
|
|
15
|
+
* Write this binding's properties on an **ancestor** instead of the bound
|
|
16
|
+
* element — a selector resolved with `el.closest()`, or an explicit element.
|
|
17
|
+
* The bound element is still the one observed.
|
|
18
|
+
*
|
|
19
|
+
* Custom properties inherit downward only, and `@container style()` matches
|
|
20
|
+
* against an *ancestor*, so an element can neither style-query nor share the
|
|
21
|
+
* values written on itself. Hoisting to a wrapper is what lets the element's
|
|
22
|
+
* siblings — and the element itself — react to them.
|
|
23
|
+
*
|
|
24
|
+
* No `closest()` match warns and falls back to the element itself; `to` on a
|
|
25
|
+
* `global` source warns and is ignored. Keep it to **one binding per key per
|
|
26
|
+
* target**: two elements hoisting the same key to one ancestor overwrite each
|
|
27
|
+
* other (dev-time warning).
|
|
28
|
+
*/
|
|
29
|
+
to?: Element | string;
|
|
30
|
+
}
|
|
12
31
|
/** Register a custom or plugin source so it can be used by key. */
|
|
13
32
|
declare function register(source: Source): void;
|
|
14
|
-
/** Remove a previously registered source key.
|
|
33
|
+
/** Remove a previously registered source key. Bindings already attached with it
|
|
34
|
+
* keep running — `unbind`/`reset` tear those down. */
|
|
15
35
|
declare function unregister(key: string): void;
|
|
16
36
|
/** Whether a source key is currently registered (core or added via `register`). */
|
|
17
37
|
declare function isRegistered(key: string): boolean;
|
|
@@ -25,15 +45,20 @@ declare function configure(opts: Partial<Config>): void;
|
|
|
25
45
|
* propsFor(el, ['size']) // → el
|
|
26
46
|
* propsFor(els, ['visibility']) // → each element in a NodeList / array
|
|
27
47
|
*
|
|
48
|
+
* `opts.to` hoists the writes to an ancestor (selector or element) while still
|
|
49
|
+
* observing the bound element, so siblings can read the values:
|
|
50
|
+
*
|
|
51
|
+
* propsFor(img, ['img'], { to: 'figure' })
|
|
52
|
+
*
|
|
28
53
|
* Returns a disposer that tears down exactly what this call started and removes
|
|
29
54
|
* the custom properties it wrote.
|
|
30
55
|
*/
|
|
31
56
|
declare function propsFor(keys: SourceKey[]): Disposer;
|
|
32
|
-
declare function propsFor(target: Element | NodeList | HTMLCollection | Element[], keys: SourceKey[]): Disposer;
|
|
57
|
+
declare function propsFor(target: Element | NodeList | HTMLCollection | Element[], keys: SourceKey[], opts?: PropsForOptions): Disposer;
|
|
33
58
|
/** Detach specific keys from an element, or all of them. Removes written props. */
|
|
34
59
|
declare function unbind(target: HTMLElement, keys?: string[]): void;
|
|
35
60
|
/** Tear down every active binding (and, via ref-counting, the shared observers
|
|
36
61
|
* and listeners they used). Useful for SPA route changes, HMR, and tests. */
|
|
37
62
|
declare function reset(): void;
|
|
38
63
|
|
|
39
|
-
export { Config, Disposer, Source, type SourceKey, configure, isRegistered, pause, propsFor, register, reset, resume, unbind, unregister };
|
|
64
|
+
export { Config, Disposer, type PropsForOptions, Source, type SourceKey, configure, isRegistered, pause, propsFor, register, reset, resume, unbind, unregister };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as Config, D as Disposer, S as Source } from './types-
|
|
2
|
-
export { C as Cadence, P as PropSpec, b as SourceContext } from './types-
|
|
1
|
+
import { a as Config, D as Disposer, S as Source } from './types-D8ZUfj4U.js';
|
|
2
|
+
export { C as Cadence, P as PropSpec, b as SourceContext } from './types-D8ZUfj4U.js';
|
|
3
3
|
|
|
4
4
|
/** Freeze the loop: no sampling, no flushing, until `resume()`. Idempotent. */
|
|
5
5
|
declare function pause(): void;
|
|
@@ -9,9 +9,29 @@ declare function resume(): void;
|
|
|
9
9
|
type CoreKey = 'viewport' | 'size' | 'visibility' | 'range';
|
|
10
10
|
/** Built-in keys autocomplete; any registered/plugin key (a string) is allowed. */
|
|
11
11
|
type SourceKey = CoreKey | (string & {});
|
|
12
|
+
/** Options for the element-targeted `propsFor`. */
|
|
13
|
+
interface PropsForOptions {
|
|
14
|
+
/**
|
|
15
|
+
* Write this binding's properties on an **ancestor** instead of the bound
|
|
16
|
+
* element — a selector resolved with `el.closest()`, or an explicit element.
|
|
17
|
+
* The bound element is still the one observed.
|
|
18
|
+
*
|
|
19
|
+
* Custom properties inherit downward only, and `@container style()` matches
|
|
20
|
+
* against an *ancestor*, so an element can neither style-query nor share the
|
|
21
|
+
* values written on itself. Hoisting to a wrapper is what lets the element's
|
|
22
|
+
* siblings — and the element itself — react to them.
|
|
23
|
+
*
|
|
24
|
+
* No `closest()` match warns and falls back to the element itself; `to` on a
|
|
25
|
+
* `global` source warns and is ignored. Keep it to **one binding per key per
|
|
26
|
+
* target**: two elements hoisting the same key to one ancestor overwrite each
|
|
27
|
+
* other (dev-time warning).
|
|
28
|
+
*/
|
|
29
|
+
to?: Element | string;
|
|
30
|
+
}
|
|
12
31
|
/** Register a custom or plugin source so it can be used by key. */
|
|
13
32
|
declare function register(source: Source): void;
|
|
14
|
-
/** Remove a previously registered source key.
|
|
33
|
+
/** Remove a previously registered source key. Bindings already attached with it
|
|
34
|
+
* keep running — `unbind`/`reset` tear those down. */
|
|
15
35
|
declare function unregister(key: string): void;
|
|
16
36
|
/** Whether a source key is currently registered (core or added via `register`). */
|
|
17
37
|
declare function isRegistered(key: string): boolean;
|
|
@@ -25,15 +45,20 @@ declare function configure(opts: Partial<Config>): void;
|
|
|
25
45
|
* propsFor(el, ['size']) // → el
|
|
26
46
|
* propsFor(els, ['visibility']) // → each element in a NodeList / array
|
|
27
47
|
*
|
|
48
|
+
* `opts.to` hoists the writes to an ancestor (selector or element) while still
|
|
49
|
+
* observing the bound element, so siblings can read the values:
|
|
50
|
+
*
|
|
51
|
+
* propsFor(img, ['img'], { to: 'figure' })
|
|
52
|
+
*
|
|
28
53
|
* Returns a disposer that tears down exactly what this call started and removes
|
|
29
54
|
* the custom properties it wrote.
|
|
30
55
|
*/
|
|
31
56
|
declare function propsFor(keys: SourceKey[]): Disposer;
|
|
32
|
-
declare function propsFor(target: Element | NodeList | HTMLCollection | Element[], keys: SourceKey[]): Disposer;
|
|
57
|
+
declare function propsFor(target: Element | NodeList | HTMLCollection | Element[], keys: SourceKey[], opts?: PropsForOptions): Disposer;
|
|
33
58
|
/** Detach specific keys from an element, or all of them. Removes written props. */
|
|
34
59
|
declare function unbind(target: HTMLElement, keys?: string[]): void;
|
|
35
60
|
/** Tear down every active binding (and, via ref-counting, the shared observers
|
|
36
61
|
* and listeners they used). Useful for SPA route changes, HMR, and tests. */
|
|
37
62
|
declare function reset(): void;
|
|
38
63
|
|
|
39
|
-
export { Config, Disposer, Source, type SourceKey, configure, isRegistered, pause, propsFor, register, reset, resume, unbind, unregister };
|
|
64
|
+
export { Config, Disposer, type PropsForOptions, Source, type SourceKey, configure, isRegistered, pause, propsFor, register, reset, resume, unbind, unregister };
|
package/dist/index.global.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var PropForThat=(function(exports){'use strict';var
|
|
1
|
+
var PropForThat=(function(exports){'use strict';var u={livePrefix:"--live-",constPrefix:"--const-",root:typeof document<"u"?document.documentElement:void 0,typed:false};var S=new Set,R=null,a=0,x=false,g=false,O=0,T=false,H=()=>typeof requestAnimationFrame=="function";function k(e){if(a=0,g)return;let t=u.liveHz;if(H()&&t&&t>0&&e-O<1e3/t){(S.size||T)&&(a=requestAnimationFrame(k));return}if(O=e,x=true,S.size)for(let n of S)n(e);T=false,R?.(),x=false,S.size&&H()&&C();}function C(){a||x||g||(H()?a=requestAnimationFrame(k):k(0));}function I(){T=true,C();}function A(e){R=e;}function W(){g||(g=true,a&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(a),a=0);}function q(){g&&(g=false,C());}typeof document<"u"&&typeof document.addEventListener=="function"&&document.addEventListener("visibilitychange",()=>{document.hidden?W():q();});var m;function Z(){if(m!==void 0||(m=null,typeof document>"u"||typeof CSSStyleSheet!="function"||!("adoptedStyleSheets"in document)))return m;try{let e=new CSSStyleSheet;e.replaceSync(":root{}"),document.adoptedStyleSheets=[...document.adoptedStyleSheets,e],m=e.cssRules[0].style;}catch{m=null;}return m}function h(e){if(typeof document<"u"&&e===document.documentElement){let t=Z();if(t)return t}return e.style}var ee=32,F=class{pending=new Map;last=new WeakMap;pool=[];set(t,n,r){let i=this.pending.get(t);if(i?.has(n)){i.set(n,r);return}if(this.last.get(t)?.get(n)!==r){if(i)i.set(n,r);else {let s=this.pool.pop()??new Map;s.set(n,r),this.pending.set(t,s);}I();}}forget(t,n){this.last.get(t)?.delete(n);let r=this.pending.get(t);r&&(r.delete(n),r.size===0&&this.pending.delete(t));}flush=()=>{if(this.pending.size!==0){for(let[t,n]of this.pending){let r=this.last.get(t);r||this.last.set(t,r=new Map);let i=h(t);for(let[s,o]of n)r.get(s)!==o&&(i.setProperty(s,o),r.set(s,o));n.clear(),this.pool.length<ee&&this.pool.push(n);}this.pending.clear();}}},w=new F;A(w.flush);function K(e){let t,n=new WeakMap,r=new WeakMap;return function(s,o){t||(t=e(f=>{for(let l of f){r.set(l.target,l);let v=n.get(l.target);if(v)for(let Q of v)Q(l);}}));let p=n.get(s);p||(n.set(s,p=new Set),t.observe(s)),p.add(o);let c=r.get(s);return c&&o(c),()=>{let f=n.get(s);f&&(f.delete(o),f.size===0&&(n.delete(s),t.unobserve(s)));}}}var V=K(e=>new ResizeObserver(e)),te=[0,.98,.99,.995,.999,1],E=K(e=>new IntersectionObserver(e,{threshold:te}));var $=new Set;function B(e,t,n){if($.has(e)||typeof CSS>"u"||typeof CSS.registerProperty!="function")return;$.add(e);let r=t?n?.[t]:void 0,i=t?u.defaults?.[t]:void 0;try{CSS.registerProperty({name:e,syntax:r?.syntax??"<number>",inherits:r?.inherits??!0,initialValue:i!=null?String(i):r?.initial??"0"});}catch{}}function z(e){let t=new Map;return function(r,i){let s=e(),o=t.get(r);if(!o){let p=new Set,c=f=>{for(let l of p)l(f);};o={handlers:p,dispatch:c},t.set(r,o),s.addEventListener(r,c,{passive:true});}return o.handlers.add(i),()=>{o.handlers.delete(i),o.handlers.size===0&&(s.removeEventListener(r,o.dispatch),t.delete(r));}}}var _=z(()=>window);var j={key:"viewport",scope:"global",start(e){let t=()=>{e.write("vw",window.innerWidth),e.write("vh",window.innerHeight);};return t(),_("resize",t)}};function y(e){return Math.round(e*1e4)/1e4}var G={key:"size",scope:"element",start(e){return V(e.target,t=>{let n=t.borderBoxSize?.[0],r=n?n.inlineSize:t.contentRect.width,i=n?n.blockSize:t.contentRect.height;e.write("w",y(r)),e.write("h",y(i)),e.write("aspect",i>0?y(r/i):0);})}};var b=1;function ne(e){let t=e.rootBounds;if(!t)return e.intersectionRatio>=1;let n=e.boundingClientRect;return n.top>=t.top-b&&n.right<=t.right+b&&n.bottom<=t.bottom+b&&n.left>=t.left-b}var U={key:"visibility",scope:"element",gate:false,start(e){let t=false;return e.write("visible",0),e.write("has-entered",0,"const"),E(e.target,n=>{let r=ne(n);e.write("visible",r?1:0),r&&!t&&(t=true,e.write("has-entered",1,"const"));})}};var L=()=>{};function X(e,t){return e.matches(t)?e:e.querySelector(t)}var Y={key:"range",scope:"element",gate:false,start(e){let t=X(e.target,'input[type="range"], input[type="number"]');if(!t)return L;let n=()=>{let r=t.min===""?0:Number(t.min),i=t.max===""?100:Number(t.max),s=Number(t.value);e.write("value",s),e.write("value-pct",i>r?y((s-r)/(i-r)):0);};return n(),t.addEventListener("input",n,{passive:true}),()=>t.removeEventListener("input",n)}};var J={viewport:j,size:G,visibility:U,range:Y};var d=new Map,D=new WeakMap,M={...J};function Je(e){M[e.key]=e;}function Ne(e){delete M[e];}function Qe(e){return e in M}function Ze(e){Object.assign(u,e);}function re(e,t,n,r){let i={live:new Map,const:new Map};return {target:e,config:u,write(s,o,p="live"){let c=i[p],f=c.get(s);if(f){if(f.raw===o)return;f.raw=o;}else {let l=(p==="const"?u.constPrefix:u.livePrefix)+s;c.set(s,f={raw:o,prop:l}),n.add(l);}u.typed&&(r?.[s]||typeof o=="number")&&B(f.prop,s,r),w.set(t,f.prop,String(o));}}}function N(e,t){try{return e.start(t)}catch(n){return console.error(`[prop-for-that] source "${e.key}" failed to start`,n),null}}function oe(e,t,n){if(!(e.scope==="element"&&e.gate!==false&&n!==u.root&&typeof IntersectionObserver<"u"))return N(e,t);let i=null,s=()=>{i||(i=N(e,t));},o=()=>{i?.(),i=null;},p=E(n,c=>{c.isIntersecting?s():o();});return ()=>{p(),o();}}function P(e,t,n){let r=n.get(t);if(!r)return;r.dispose();let{writeTarget:i}=r,s=h(i);for(let o of r.written)s.removeProperty(o),w.forget(i,o);i!==e&&D.get(i)?.delete(t),n.delete(t);}function ie(e,t){if(typeof t!="string")return t;let n=e.closest(t);return n||(console.warn(`[prop-for-that] no ancestor matches "${t}" \u2014 writing on the element itself`),e)}function se(e,t){let n=D.get(e);n||D.set(e,n=new Set),n.has(t)&&console.warn(`[prop-for-that] "${t}" is already hoisted onto this element \u2014 the bindings will overwrite each other`,e),n.add(t);}function pe(e,t,n){let r=d.get(e);r||d.set(e,r=new Map);let i=n?ie(e,n):e,s=[];for(let o of t){if(r.has(o))continue;let p=M[o];if(!p){console.warn(`[prop-for-that] unknown source "${o}"`);continue}let c=i;c!==e&&p.scope==="global"&&(console.warn(`[prop-for-that] "to" ignored for global source "${o}"`),c=e);let f=new Set,l=re(e,c,f,p.props),v=oe(p,l,e);v&&(c!==e&&se(c,o),r.set(o,{dispose:v,written:f,writeTarget:c}),s.push(o));}return ()=>{let o=d.get(e);if(o){for(let p of s)P(e,p,o);o.size===0&&d.delete(e);}}}function ce(e){return e instanceof Element?[e]:typeof NodeList<"u"&&e instanceof NodeList||typeof HTMLCollection<"u"&&e instanceof HTMLCollection||Array.isArray(e)?Array.from(e).filter(t=>t instanceof Element):[]}function fe(e){return Array.isArray(e)&&(e.length===0||typeof e[0]=="string")}function et(e,t,n){let r,i;if(t===void 0&&fe(e)?(r=u.root?[u.root]:[],i=e):(r=ce(e),i=t??[]),!r.length||!i.length)return L;let s=r.map(o=>pe(o,i,n?.to));return ()=>{for(let o of s)o();}}function tt(e,t){let n=d.get(e);if(n){for(let r of t??[...n.keys()])P(e,r,n);n.size===0&&d.delete(e);}}function nt(){for(let[e,t]of d)for(let n of [...t.keys()])P(e,n,t);d.clear();}exports.configure=Ze;exports.isRegistered=Qe;exports.pause=W;exports.propsFor=et;exports.register=Je;exports.reset=nt;exports.resume=q;exports.unbind=tt;exports.unregister=Ne;return exports;})({});
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{d as configure,c as isRegistered,e as propsFor,a as register,g as reset,f as unbind,b as unregister}from'./chunk-
|
|
1
|
+
export{d as configure,c as isRegistered,e as propsFor,a as register,g as reset,f as unbind,b as unregister}from'./chunk-CXXDGS7S.js';import'./chunk-AQV7LL54.js';import'./chunk-LTJ2VKVY.js';import'./chunk-7KOHYADG.js';export{d as pause,e as resume}from'./chunk-KG3EF456.js';import'./chunk-T4N6AEOZ.js';import'./chunk-LWKH66VY.js';import'./chunk-ZWS2DFMD.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkBYFXKRGA_cjs=require('./chunk-BYFXKRGA.cjs');require('./chunk-ADHR4VLZ.cjs'),require('./chunk-65MXZJBD.cjs'),require('./chunk-7AD7LRMF.cjs');Object.defineProperty(exports,"keyboard",{enumerable:true,get:function(){return chunkBYFXKRGA_cjs.a}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as keyboard}from'./chunk-4H6UVYDJ.js';import'./chunk-7KOHYADG.js';import'./chunk-T4N6AEOZ.js';import'./chunk-ZWS2DFMD.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as media}from'./chunk-QEFUAIXU.js';import'./chunk-LTJ2VKVY.js';import'./chunk-7KOHYADG.js';import'./chunk-T4N6AEOZ.js';import'./chunk-ZWS2DFMD.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkQUY6BC6A_cjs=require('./chunk-QUY6BC6A.cjs');require('./chunk-HHINWX7L.cjs'),require('./chunk-ADHR4VLZ.cjs'),require('./chunk-65MXZJBD.cjs'),require('./chunk-7AD7LRMF.cjs');Object.defineProperty(exports,"media",{enumerable:true,get:function(){return chunkQUY6BC6A_cjs.a}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as meta}from'./chunk-D2T22ZDL.js';import'./chunk-7KOHYADG.js';import'./chunk-PFCCKKAU.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkVBXFZRD2_cjs=require('./chunk-VBXFZRD2.cjs');require('./chunk-ADHR4VLZ.cjs'),require('./chunk-CBWMRF63.cjs');Object.defineProperty(exports,"meta",{enumerable:true,get:function(){return chunkVBXFZRD2_cjs.a}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as motion}from'./chunk-ILMWSJ5M.js';import'./chunk-7KOHYADG.js';import'./chunk-T4N6AEOZ.js';import'./chunk-ZWS2DFMD.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkGTPEKE7O_cjs=require('./chunk-GTPEKE7O.cjs');require('./chunk-ADHR4VLZ.cjs'),require('./chunk-65MXZJBD.cjs'),require('./chunk-7AD7LRMF.cjs');Object.defineProperty(exports,"motion",{enumerable:true,get:function(){return chunkGTPEKE7O_cjs.a}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunk4K5AIWZQ_cjs=require('./chunk-4K5AIWZQ.cjs');require('./chunk-ADHR4VLZ.cjs');Object.defineProperty(exports,"navType",{enumerable:true,get:function(){return chunk4K5AIWZQ_cjs.a}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as navType}from'./chunk-QEBTQYJZ.js';import'./chunk-7KOHYADG.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunk2OCWGQTC_cjs=require('./chunk-2OCWGQTC.cjs');require('./chunk-ADHR4VLZ.cjs');Object.defineProperty(exports,"netTypeToNumber",{enumerable:true,get:function(){return chunk2OCWGQTC_cjs.a}});Object.defineProperty(exports,"network",{enumerable:true,get:function(){return chunk2OCWGQTC_cjs.b}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as netTypeToNumber,b as network}from'./chunk-PIEENX4H.js';import'./chunk-7KOHYADG.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as online}from'./chunk-UDXHWQBB.js';import'./chunk-ZWS2DFMD.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkM3JZ2I3N_cjs=require('./chunk-M3JZ2I3N.cjs');require('./chunk-7AD7LRMF.cjs');Object.defineProperty(exports,"online",{enumerable:true,get:function(){return chunkM3JZ2I3N_cjs.a}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkNKC2KU7M_cjs=require('./chunk-NKC2KU7M.cjs');require('./chunk-ADHR4VLZ.cjs'),require('./chunk-65MXZJBD.cjs'),require('./chunk-7AD7LRMF.cjs');Object.defineProperty(exports,"orientation",{enumerable:true,get:function(){return chunkNKC2KU7M_cjs.a}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as orientation}from'./chunk-FONP6RWO.js';import'./chunk-7KOHYADG.js';import'./chunk-T4N6AEOZ.js';import'./chunk-ZWS2DFMD.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as pageFocused}from'./chunk-PSGZ7K22.js';import'./chunk-ZWS2DFMD.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkDELDE4TM_cjs=require('./chunk-DELDE4TM.cjs');require('./chunk-7AD7LRMF.cjs');Object.defineProperty(exports,"pageFocused",{enumerable:true,get:function(){return chunkDELDE4TM_cjs.a}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkIMW37LVJ_cjs=require('./chunk-IMW37LVJ.cjs');require('./chunk-7AD7LRMF.cjs');Object.defineProperty(exports,"pageVisible",{enumerable:true,get:function(){return chunkIMW37LVJ_cjs.a}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as pageVisible}from'./chunk-VX2YFVNN.js';import'./chunk-ZWS2DFMD.js';
|
package/dist/plugins.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkZHPDCMOZ_cjs=require('./chunk-ZHPDCMOZ.cjs'),chunk6FYUJK4F_cjs=require('./chunk-6FYUJK4F.cjs'),chunkNKC2KU7M_cjs=require('./chunk-NKC2KU7M.cjs'),chunkGTPEKE7O_cjs=require('./chunk-GTPEKE7O.cjs'),chunk7GUGSNG2_cjs=require('./chunk-7GUGSNG2.cjs'),chunkALOGYFNP_cjs=require('./chunk-ALOGYFNP.cjs'),chunkR7KDUB7L_cjs=require('./chunk-R7KDUB7L.cjs'),chunk5JG4K6SH_cjs=require('./chunk-5JG4K6SH.cjs'),chunk6LH6U5QE_cjs=require('./chunk-6LH6U5QE.cjs'),chunkPSEAYJTX_cjs=require('./chunk-PSEAYJTX.cjs'),chunkYGON2MF3_cjs=require('./chunk-YGON2MF3.cjs'),chunkPMDPLPCX_cjs=require('./chunk-PMDPLPCX.cjs'),chunkQUY6BC6A_cjs=require('./chunk-QUY6BC6A.cjs'),chunk64VOCEUQ_cjs=require('./chunk-64VOCEUQ.cjs'),chunkG3KQEE4R_cjs=require('./chunk-G3KQEE4R.cjs'),chunkH5ZFJCDA_cjs=require('./chunk-H5ZFJCDA.cjs');require('./chunk-L4SCOKPV.cjs');var chunk3EI2VHWK_cjs=require('./chunk-3EI2VHWK.cjs'),chunkXKZFDAK7_cjs=require('./chunk-XKZFDAK7.cjs');require('./chunk-A6JDSQWH.cjs');var chunk4K5AIWZQ_cjs=require('./chunk-4K5AIWZQ.cjs'),chunkVBXFZRD2_cjs=require('./chunk-VBXFZRD2.cjs'),chunk2OCWGQTC_cjs=require('./chunk-2OCWGQTC.cjs'),chunkDUKZ35AN_cjs=require('./chunk-DUKZ35AN.cjs'),chunk6LTQ7ISE_cjs=require('./chunk-6LTQ7ISE.cjs'),chunk2OYRAOTM_cjs=require('./chunk-2OYRAOTM.cjs'),chunkII5RRRIW_cjs=require('./chunk-II5RRRIW.cjs'),chunkBYFXKRGA_cjs=require('./chunk-BYFXKRGA.cjs'),chunkJMSQWVGJ_cjs=require('./chunk-JMSQWVGJ.cjs');require('./chunk-NAJLRXKX.cjs'),require('./chunk-HHINWX7L.cjs'),require('./chunk-ADHR4VLZ.cjs'),require('./chunk-34XDO4K2.cjs'),require('./chunk-CBWMRF63.cjs');var chunkO3KW7BD7_cjs=require('./chunk-O3KW7BD7.cjs');require('./chunk-EYDIF3NM.cjs'),require('./chunk-65MXZJBD.cjs'),require('./chunk-7L35N3N3.cjs');var chunkM3JZ2I3N_cjs=require('./chunk-M3JZ2I3N.cjs'),chunkDELDE4TM_cjs=require('./chunk-DELDE4TM.cjs'),chunkIMW37LVJ_cjs=require('./chunk-IMW37LVJ.cjs');require('./chunk-7AD7LRMF.cjs');var z=[chunkO3KW7BD7_cjs.a,chunkM3JZ2I3N_cjs.a,chunkDELDE4TM_cjs.a,chunkIMW37LVJ_cjs.a,chunk4K5AIWZQ_cjs.a,chunkVBXFZRD2_cjs.a,chunk2OCWGQTC_cjs.b,chunkDUKZ35AN_cjs.a,chunk6LTQ7ISE_cjs.a,chunk2OYRAOTM_cjs.a,chunkII5RRRIW_cjs.a,chunkBYFXKRGA_cjs.a,chunkYGON2MF3_cjs.a,chunkPMDPLPCX_cjs.a,chunkQUY6BC6A_cjs.a,chunk64VOCEUQ_cjs.a,chunkG3KQEE4R_cjs.a,chunkH5ZFJCDA_cjs.a,chunk3EI2VHWK_cjs.a,chunkXKZFDAK7_cjs.a,chunkNKC2KU7M_cjs.a,chunkGTPEKE7O_cjs.a,chunk7GUGSNG2_cjs.a,chunkALOGYFNP_cjs.a,chunkR7KDUB7L_cjs.a,chunk5JG4K6SH_cjs.a,chunk6LH6U5QE_cjs.a,chunkPSEAYJTX_cjs.a,chunkZHPDCMOZ_cjs.a,chunk6FYUJK4F_cjs.a];function ao(...o){for(let q of o.length?o:z)chunkJMSQWVGJ_cjs.a(q);}Object.defineProperty(exports,"ua",{enumerable:true,get:function(){return chunkZHPDCMOZ_cjs.a}});Object.defineProperty(exports,"random",{enumerable:true,get:function(){return chunk6FYUJK4F_cjs.a}});Object.defineProperty(exports,"orientation",{enumerable:true,get:function(){return chunkNKC2KU7M_cjs.a}});Object.defineProperty(exports,"motion",{enumerable:true,get:function(){return chunkGTPEKE7O_cjs.a}});Object.defineProperty(exports,"geo",{enumerable:true,get:function(){return chunk7GUGSNG2_cjs.a}});Object.defineProperty(exports,"cpuPressure",{enumerable:true,get:function(){return chunkALOGYFNP_cjs.a}});Object.defineProperty(exports,"img",{enumerable:true,get:function(){return chunkR7KDUB7L_cjs.a}});Object.defineProperty(exports,"imgColor",{enumerable:true,get:function(){return chunk5JG4K6SH_cjs.a}});Object.defineProperty(exports,"videoColor",{enumerable:true,get:function(){return chunk6LH6U5QE_cjs.a}});Object.defineProperty(exports,"truncated",{enumerable:true,get:function(){return chunkPSEAYJTX_cjs.a}});Object.defineProperty(exports,"pointer",{enumerable:true,get:function(){return chunkYGON2MF3_cjs.a}});Object.defineProperty(exports,"pointerLocal",{enumerable:true,get:function(){return chunkPMDPLPCX_cjs.a}});Object.defineProperty(exports,"media",{enumerable:true,get:function(){return chunkQUY6BC6A_cjs.a}});Object.defineProperty(exports,"field",{enumerable:true,get:function(){return chunk64VOCEUQ_cjs.a}});Object.defineProperty(exports,"fieldState",{enumerable:true,get:function(){return chunkG3KQEE4R_cjs.a}});Object.defineProperty(exports,"formState",{enumerable:true,get:function(){return chunkH5ZFJCDA_cjs.a}});Object.defineProperty(exports,"select",{enumerable:true,get:function(){return chunk3EI2VHWK_cjs.a}});Object.defineProperty(exports,"colorInput",{enumerable:true,get:function(){return chunkXKZFDAK7_cjs.a}});Object.defineProperty(exports,"navType",{enumerable:true,get:function(){return chunk4K5AIWZQ_cjs.a}});Object.defineProperty(exports,"meta",{enumerable:true,get:function(){return chunkVBXFZRD2_cjs.a}});Object.defineProperty(exports,"network",{enumerable:true,get:function(){return chunk2OCWGQTC_cjs.b}});Object.defineProperty(exports,"battery",{enumerable:true,get:function(){return chunkDUKZ35AN_cjs.a}});Object.defineProperty(exports,"clock",{enumerable:true,get:function(){return chunk6LTQ7ISE_cjs.a}});Object.defineProperty(exports,"fps",{enumerable:true,get:function(){return chunk2OYRAOTM_cjs.a}});Object.defineProperty(exports,"visualViewport",{enumerable:true,get:function(){return chunkII5RRRIW_cjs.a}});Object.defineProperty(exports,"keyboard",{enumerable:true,get:function(){return chunkBYFXKRGA_cjs.a}});Object.defineProperty(exports,"scrollVelocity",{enumerable:true,get:function(){return chunkO3KW7BD7_cjs.a}});Object.defineProperty(exports,"online",{enumerable:true,get:function(){return chunkM3JZ2I3N_cjs.a}});Object.defineProperty(exports,"pageFocused",{enumerable:true,get:function(){return chunkDELDE4TM_cjs.a}});Object.defineProperty(exports,"pageVisible",{enumerable:true,get:function(){return chunkIMW37LVJ_cjs.a}});exports.allPlugins=z;exports.registerPlugins=ao;
|