prop-for-that 0.7.11 → 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 +63 -0
- 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-KDIZYBPJ.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-4C255WE6.cjs → chunk-PSEAYJTX.cjs} +1 -1
- package/dist/{chunk-2NMXY7T4.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-6M2UIJI5.js → chunk-SQIQ6W3B.js} +1 -1
- package/dist/{chunk-2SIGTGQE.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-675RBWFU.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 +4 -3
- package/dist/index.d.ts +4 -3
- 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 +37 -8
- package/dist/plugins.d.ts +37 -8
- 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-CyGIcLOq.d.cts → types-D8ZUfj4U.d.cts} +22 -4
- package/dist/{types-CyGIcLOq.d.ts → types-D8ZUfj4U.d.ts} +22 -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 +1 -1
- package/package.json +1 -1
- package/dist/battery-CDMJLP4C.js +0 -1
- package/dist/battery-DQQ2NOGC.cjs +0 -1
- package/dist/chunk-2H5YFW6O.cjs +0 -1
- package/dist/chunk-2YHGSLQQ.cjs +0 -1
- package/dist/chunk-3QHCKCTX.cjs +0 -1
- package/dist/chunk-3REDV2FZ.cjs +0 -1
- package/dist/chunk-4R63TNNO.cjs +0 -1
- package/dist/chunk-5JZBLUQK.js +0 -1
- package/dist/chunk-5PU4B3GP.cjs +0 -1
- package/dist/chunk-5VXDAWUI.js +0 -1
- package/dist/chunk-6234NJTF.js +0 -1
- package/dist/chunk-63C3RCO2.cjs +0 -1
- package/dist/chunk-7CDVAP3H.cjs +0 -1
- package/dist/chunk-7KEBMJ3O.js +0 -1
- package/dist/chunk-7LN34C3P.cjs +0 -1
- package/dist/chunk-A7GWTDM7.js +0 -1
- package/dist/chunk-BF7D5A5Z.cjs +0 -1
- package/dist/chunk-BTKSOVH3.js +0 -1
- package/dist/chunk-COGNT6R5.js +0 -1
- package/dist/chunk-DFWBYWE3.cjs +0 -1
- package/dist/chunk-DQJQEWPS.js +0 -1
- package/dist/chunk-DRXR56P5.cjs +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-H7X35UB4.js +0 -1
- package/dist/chunk-HFE2X32G.js +0 -1
- package/dist/chunk-HTO57OQP.js +0 -1
- package/dist/chunk-HYVT6V4Z.cjs +0 -1
- package/dist/chunk-IFIWYBMP.js +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-JI7NXES2.cjs +0 -1
- package/dist/chunk-K2YWGXLP.cjs +0 -1
- package/dist/chunk-KHBJUHJ6.cjs +0 -1
- package/dist/chunk-KSKAQMWJ.cjs +0 -2
- package/dist/chunk-LBK3257B.js +0 -1
- package/dist/chunk-M65LNJXV.js +0 -1
- package/dist/chunk-MGZTR3X6.cjs +0 -1
- package/dist/chunk-N3F2LRDI.js +0 -1
- package/dist/chunk-N745RQIX.js +0 -1
- package/dist/chunk-ODPCQAKC.cjs +0 -1
- package/dist/chunk-PS7KTHW4.js +0 -1
- package/dist/chunk-QFJ6SZ2H.cjs +0 -1
- package/dist/chunk-QTM2FDUV.js +0 -1
- package/dist/chunk-RT47EE2L.cjs +0 -1
- package/dist/chunk-RVZWUZQ2.cjs +0 -1
- package/dist/chunk-SRKAOAXW.cjs +0 -1
- package/dist/chunk-TEPMM5DH.js +0 -1
- package/dist/chunk-TL5BJFFL.js +0 -1
- package/dist/chunk-UALPUR2L.cjs +0 -1
- package/dist/chunk-UHGW7AXC.js +0 -1
- package/dist/chunk-XMJ6YRQB.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-6SENJS5V.cjs +0 -1
- package/dist/motion-QDEZZYDF.js +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-HHJAVPBU.cjs +0 -1
- package/dist/online-OWTXHDGG.js +0 -1
- package/dist/orientation-LBAL4AXW.js +0 -1
- package/dist/orientation-PE3B4RPH.cjs +0 -1
- package/dist/page-focused-UK3VPLIG.js +0 -1
- package/dist/page-focused-Y74VK25Y.cjs +0 -1
- package/dist/page-visible-3YREALOP.cjs +0 -1
- package/dist/page-visible-GSBWF44E.js +0 -1
- package/dist/pointer-P2B4YDKM.cjs +0 -1
- package/dist/pointer-RJIXVFBH.js +0 -1
- package/dist/pointer-local-L4EQM2UF.js +0 -1
- package/dist/pointer-local-QZJODLIH.cjs +0 -1
- package/dist/random-LUAMZ2M7.cjs +0 -1
- package/dist/random-O4GDPYJ3.js +0 -1
- package/dist/scroll-velocity-X3F22E47.cjs +0 -1
- package/dist/scroll-velocity-Y43V5NH2.js +0 -1
- package/dist/select-H3CFIVK3.js +0 -1
- package/dist/select-LMRGCCLB.cjs +0 -1
- package/dist/truncated-23UAUK2L.cjs +0 -1
- package/dist/truncated-R3OIXDTH.js +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
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;
|
|
@@ -30,7 +30,8 @@ interface PropsForOptions {
|
|
|
30
30
|
}
|
|
31
31
|
/** Register a custom or plugin source so it can be used by key. */
|
|
32
32
|
declare function register(source: Source): void;
|
|
33
|
-
/** 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. */
|
|
34
35
|
declare function unregister(key: string): void;
|
|
35
36
|
/** Whether a source key is currently registered (core or added via `register`). */
|
|
36
37
|
declare function isRegistered(key: string): boolean;
|
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;
|
|
@@ -30,7 +30,8 @@ interface PropsForOptions {
|
|
|
30
30
|
}
|
|
31
31
|
/** Register a custom or plugin source so it can be used by key. */
|
|
32
32
|
declare function register(source: Source): void;
|
|
33
|
-
/** 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. */
|
|
34
35
|
declare function unregister(key: string): void;
|
|
35
36
|
/** Whether a source key is currently registered (core or added via `register`). */
|
|
36
37
|
declare function isRegistered(key: string): boolean;
|
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;
|
package/dist/plugins.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as Source } from './types-
|
|
1
|
+
import { S as Source } from './types-D8ZUfj4U.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* `--live-scroll-velocity` (signed px/frame, decays toward 0 when idle),
|
|
@@ -33,6 +33,11 @@ declare const pageFocused: Source;
|
|
|
33
33
|
* that should pause when truly hidden — video, polling, expensive effects — where
|
|
34
34
|
* focus gates the things that react to "is the user looking here right now."
|
|
35
35
|
* Driven by `visibilitychange`, seeded from `document.visibilityState`.
|
|
36
|
+
*
|
|
37
|
+
* The `0` is real but never *paints*: the shared frame loop freezes on the same
|
|
38
|
+
* `visibilitychange` (nothing can be shown to a hidden tab), so the queued `0` is
|
|
39
|
+
* coalesced away by the `1` on return. Read it in JS, or use it to hold state
|
|
40
|
+
* across a hide — don't expect CSS to render a hidden state.
|
|
36
41
|
*/
|
|
37
42
|
declare const pageVisible: Source;
|
|
38
43
|
|
|
@@ -79,6 +84,11 @@ declare const navType: Source;
|
|
|
79
84
|
* at bind on the `const` cadence (these don't change), so meta tags a framework
|
|
80
85
|
* swaps in *after* bind aren't tracked; for a value needed before first paint,
|
|
81
86
|
* read it in a `<head>` script instead. Global source — bind once.
|
|
87
|
+
*
|
|
88
|
+
* These names are discovered at runtime, so the source can't declare `props` for
|
|
89
|
+
* them and they stay **untyped** even under `configure({ typed: true })` — which
|
|
90
|
+
* is what keeps the values intact, since the `<number>` default would reject a
|
|
91
|
+
* colour or a URL and compute it to `0`.
|
|
82
92
|
*/
|
|
83
93
|
declare const meta: Source;
|
|
84
94
|
|
|
@@ -122,9 +132,16 @@ declare const pointer: Source;
|
|
|
122
132
|
* `--live-local-pointer-x-ratio`, `--live-local-pointer-y-ratio` (0–1 within the
|
|
123
133
|
* element's box), `--live-local-pointer-inside` (0/1).
|
|
124
134
|
*
|
|
125
|
-
* Shares the page's single `pointermove` listener
|
|
126
|
-
*
|
|
127
|
-
*
|
|
135
|
+
* Shares the page's single `pointermove` listener, but reads the element's rect
|
|
136
|
+
* on **every move** so it stays correct through layout shifts, which a cached
|
|
137
|
+
* rect would miss. That's one `getBoundingClientRect` per bound element per
|
|
138
|
+
* move — cheap when layout is clean, but bind it to the few elements that need
|
|
139
|
+
* it rather than to every card in a grid.
|
|
140
|
+
*
|
|
141
|
+
* Seeded to zeros so all three properties resolve on frame one. Until the first
|
|
142
|
+
* move the ratios are meaningless, so gate on `--live-local-pointer-inside`
|
|
143
|
+
* (`0` until the pointer is actually over the element) rather than assuming the
|
|
144
|
+
* pointer starts in the top-left corner.
|
|
128
145
|
*/
|
|
129
146
|
declare const pointerLocal: Source;
|
|
130
147
|
|
|
@@ -221,8 +238,10 @@ declare const formState: Source;
|
|
|
221
238
|
* list (`0` for a one-option list or nothing selected).
|
|
222
239
|
* - `--live-value-num` — `Number(value)` *when the chosen value is numeric*, so a
|
|
223
240
|
* choice's meaning drives layout directly:
|
|
224
|
-
* `grid-template-columns: repeat(var(--live-value-num), 1fr)`.
|
|
225
|
-
*
|
|
241
|
+
* `grid-template-columns: repeat(var(--live-value-num), 1fr)`. Removed again
|
|
242
|
+
* whenever the selected value isn't numeric — so keep a
|
|
243
|
+
* `var(--live-value-num, …)` fallback; it applies both before the first
|
|
244
|
+
* numeric pick and after a non-numeric one.
|
|
226
245
|
* - `--live-selected-count` — how many options are selected (the count CSS can't
|
|
227
246
|
* compute: `:checked` matches them, nothing tallies them). `1`/`0` for a single
|
|
228
247
|
* select; `0`…N for `<select multiple>`.
|
|
@@ -252,14 +271,16 @@ declare const colorInput: Source;
|
|
|
252
271
|
/**
|
|
253
272
|
* `--live-orient-alpha`, `--live-orient-beta`, `--live-orient-gamma` (degrees)
|
|
254
273
|
* from `deviceorientation`. Requires a user-gesture permission grant on some
|
|
255
|
-
* platforms (notably iOS).
|
|
274
|
+
* platforms (notably iOS). Seeded to zeros (flat) so the properties resolve on
|
|
275
|
+
* frame one, whether or not a grant ever arrives.
|
|
256
276
|
*/
|
|
257
277
|
declare const orientation: Source;
|
|
258
278
|
|
|
259
279
|
/**
|
|
260
280
|
* `--live-accel-x`, `--live-accel-y`, `--live-accel-z` (m/s², gravity included)
|
|
261
281
|
* from `devicemotion`. Requires a user-gesture permission grant on some
|
|
262
|
-
* platforms (notably iOS).
|
|
282
|
+
* platforms (notably iOS). Seeded to zeros (at rest) so the properties resolve
|
|
283
|
+
* on frame one, whether or not a grant ever arrives.
|
|
263
284
|
*/
|
|
264
285
|
declare const motion: Source;
|
|
265
286
|
|
|
@@ -364,6 +385,14 @@ declare const videoColor: Source;
|
|
|
364
385
|
* have it disappear the moment a wider box fits the text. Recomputed whenever the
|
|
365
386
|
* box resizes (the shared `ResizeObserver`), so responsive truncation flips both
|
|
366
387
|
* ways as the layout reflows.
|
|
388
|
+
*
|
|
389
|
+
* Two false negatives to know about, both from what it measures:
|
|
390
|
+
*
|
|
391
|
+
* - `scrollWidth` / `clientWidth` are **integer-rounded**, so a sub-pixel
|
|
392
|
+
* overflow can show an ellipsis while these still read equal.
|
|
393
|
+
* - It's driven by *resize*, so replacing the text inside a fixed-size box
|
|
394
|
+
* doesn't re-measure — a `ResizeObserver` sees no size change. Rebind (or
|
|
395
|
+
* nudge the box) after swapping content.
|
|
367
396
|
*/
|
|
368
397
|
declare const truncated: Source;
|
|
369
398
|
|
package/dist/plugins.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as Source } from './types-
|
|
1
|
+
import { S as Source } from './types-D8ZUfj4U.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* `--live-scroll-velocity` (signed px/frame, decays toward 0 when idle),
|
|
@@ -33,6 +33,11 @@ declare const pageFocused: Source;
|
|
|
33
33
|
* that should pause when truly hidden — video, polling, expensive effects — where
|
|
34
34
|
* focus gates the things that react to "is the user looking here right now."
|
|
35
35
|
* Driven by `visibilitychange`, seeded from `document.visibilityState`.
|
|
36
|
+
*
|
|
37
|
+
* The `0` is real but never *paints*: the shared frame loop freezes on the same
|
|
38
|
+
* `visibilitychange` (nothing can be shown to a hidden tab), so the queued `0` is
|
|
39
|
+
* coalesced away by the `1` on return. Read it in JS, or use it to hold state
|
|
40
|
+
* across a hide — don't expect CSS to render a hidden state.
|
|
36
41
|
*/
|
|
37
42
|
declare const pageVisible: Source;
|
|
38
43
|
|
|
@@ -79,6 +84,11 @@ declare const navType: Source;
|
|
|
79
84
|
* at bind on the `const` cadence (these don't change), so meta tags a framework
|
|
80
85
|
* swaps in *after* bind aren't tracked; for a value needed before first paint,
|
|
81
86
|
* read it in a `<head>` script instead. Global source — bind once.
|
|
87
|
+
*
|
|
88
|
+
* These names are discovered at runtime, so the source can't declare `props` for
|
|
89
|
+
* them and they stay **untyped** even under `configure({ typed: true })` — which
|
|
90
|
+
* is what keeps the values intact, since the `<number>` default would reject a
|
|
91
|
+
* colour or a URL and compute it to `0`.
|
|
82
92
|
*/
|
|
83
93
|
declare const meta: Source;
|
|
84
94
|
|
|
@@ -122,9 +132,16 @@ declare const pointer: Source;
|
|
|
122
132
|
* `--live-local-pointer-x-ratio`, `--live-local-pointer-y-ratio` (0–1 within the
|
|
123
133
|
* element's box), `--live-local-pointer-inside` (0/1).
|
|
124
134
|
*
|
|
125
|
-
* Shares the page's single `pointermove` listener
|
|
126
|
-
*
|
|
127
|
-
*
|
|
135
|
+
* Shares the page's single `pointermove` listener, but reads the element's rect
|
|
136
|
+
* on **every move** so it stays correct through layout shifts, which a cached
|
|
137
|
+
* rect would miss. That's one `getBoundingClientRect` per bound element per
|
|
138
|
+
* move — cheap when layout is clean, but bind it to the few elements that need
|
|
139
|
+
* it rather than to every card in a grid.
|
|
140
|
+
*
|
|
141
|
+
* Seeded to zeros so all three properties resolve on frame one. Until the first
|
|
142
|
+
* move the ratios are meaningless, so gate on `--live-local-pointer-inside`
|
|
143
|
+
* (`0` until the pointer is actually over the element) rather than assuming the
|
|
144
|
+
* pointer starts in the top-left corner.
|
|
128
145
|
*/
|
|
129
146
|
declare const pointerLocal: Source;
|
|
130
147
|
|
|
@@ -221,8 +238,10 @@ declare const formState: Source;
|
|
|
221
238
|
* list (`0` for a one-option list or nothing selected).
|
|
222
239
|
* - `--live-value-num` — `Number(value)` *when the chosen value is numeric*, so a
|
|
223
240
|
* choice's meaning drives layout directly:
|
|
224
|
-
* `grid-template-columns: repeat(var(--live-value-num), 1fr)`.
|
|
225
|
-
*
|
|
241
|
+
* `grid-template-columns: repeat(var(--live-value-num), 1fr)`. Removed again
|
|
242
|
+
* whenever the selected value isn't numeric — so keep a
|
|
243
|
+
* `var(--live-value-num, …)` fallback; it applies both before the first
|
|
244
|
+
* numeric pick and after a non-numeric one.
|
|
226
245
|
* - `--live-selected-count` — how many options are selected (the count CSS can't
|
|
227
246
|
* compute: `:checked` matches them, nothing tallies them). `1`/`0` for a single
|
|
228
247
|
* select; `0`…N for `<select multiple>`.
|
|
@@ -252,14 +271,16 @@ declare const colorInput: Source;
|
|
|
252
271
|
/**
|
|
253
272
|
* `--live-orient-alpha`, `--live-orient-beta`, `--live-orient-gamma` (degrees)
|
|
254
273
|
* from `deviceorientation`. Requires a user-gesture permission grant on some
|
|
255
|
-
* platforms (notably iOS).
|
|
274
|
+
* platforms (notably iOS). Seeded to zeros (flat) so the properties resolve on
|
|
275
|
+
* frame one, whether or not a grant ever arrives.
|
|
256
276
|
*/
|
|
257
277
|
declare const orientation: Source;
|
|
258
278
|
|
|
259
279
|
/**
|
|
260
280
|
* `--live-accel-x`, `--live-accel-y`, `--live-accel-z` (m/s², gravity included)
|
|
261
281
|
* from `devicemotion`. Requires a user-gesture permission grant on some
|
|
262
|
-
* platforms (notably iOS).
|
|
282
|
+
* platforms (notably iOS). Seeded to zeros (at rest) so the properties resolve
|
|
283
|
+
* on frame one, whether or not a grant ever arrives.
|
|
263
284
|
*/
|
|
264
285
|
declare const motion: Source;
|
|
265
286
|
|
|
@@ -364,6 +385,14 @@ declare const videoColor: Source;
|
|
|
364
385
|
* have it disappear the moment a wider box fits the text. Recomputed whenever the
|
|
365
386
|
* box resizes (the shared `ResizeObserver`), so responsive truncation flips both
|
|
366
387
|
* ways as the layout reflows.
|
|
388
|
+
*
|
|
389
|
+
* Two false negatives to know about, both from what it measures:
|
|
390
|
+
*
|
|
391
|
+
* - `scrollWidth` / `clientWidth` are **integer-rounded**, so a sub-pixel
|
|
392
|
+
* overflow can show an ellipsis while these still read equal.
|
|
393
|
+
* - It's driven by *resize*, so replacing the text inside a fixed-size box
|
|
394
|
+
* doesn't re-measure — a `ResizeObserver` sees no size change. Rebind (or
|
|
395
|
+
* nudge the box) after swapping content.
|
|
367
396
|
*/
|
|
368
397
|
declare const truncated: Source;
|
|
369
398
|
|
package/dist/plugins.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$r}from'./chunk-
|
|
1
|
+
import {a as a$r}from'./chunk-2TNXW2VV.js';export{a as ua}from'./chunk-2TNXW2VV.js';import {a as a$s}from'./chunk-NHEC6UK5.js';export{a as random}from'./chunk-NHEC6UK5.js';import {a as a$j}from'./chunk-FONP6RWO.js';export{a as orientation}from'./chunk-FONP6RWO.js';import {a as a$k}from'./chunk-ILMWSJ5M.js';export{a as motion}from'./chunk-ILMWSJ5M.js';import {a as a$l}from'./chunk-7HKSU2EV.js';export{a as geo}from'./chunk-7HKSU2EV.js';import {a as a$m}from'./chunk-WCZLSJ2Z.js';export{a as cpuPressure}from'./chunk-WCZLSJ2Z.js';import {a as a$n}from'./chunk-KOELKEUS.js';export{a as img}from'./chunk-KOELKEUS.js';import {a as a$o}from'./chunk-7OBG2QQ6.js';export{a as imgColor}from'./chunk-7OBG2QQ6.js';import {a as a$p}from'./chunk-A3CLHLE4.js';export{a as videoColor}from'./chunk-A3CLHLE4.js';import {a as a$q}from'./chunk-AGUPRRD4.js';export{a as truncated}from'./chunk-AGUPRRD4.js';import {a as a$b}from'./chunk-SQIQ6W3B.js';export{a as pointer}from'./chunk-SQIQ6W3B.js';import {a as a$c}from'./chunk-HA25PYSI.js';export{a as pointerLocal}from'./chunk-HA25PYSI.js';import {a as a$d}from'./chunk-QEFUAIXU.js';export{a as media}from'./chunk-QEFUAIXU.js';import {a as a$e}from'./chunk-4IEDDWUY.js';export{a as field}from'./chunk-4IEDDWUY.js';import {a as a$f}from'./chunk-2RNFSOS6.js';export{a as fieldState}from'./chunk-2RNFSOS6.js';import {a as a$g}from'./chunk-BKB5HQTJ.js';export{a as formState}from'./chunk-BKB5HQTJ.js';import'./chunk-QIUPJ6MF.js';import {a as a$h}from'./chunk-VEIGSGIP.js';export{a as select}from'./chunk-VEIGSGIP.js';import {a as a$i}from'./chunk-4WSASU6P.js';export{a as colorInput}from'./chunk-4WSASU6P.js';import'./chunk-A2ETARW3.js';import {a as a$4}from'./chunk-QEBTQYJZ.js';export{a as navType}from'./chunk-QEBTQYJZ.js';import {a as a$5}from'./chunk-D2T22ZDL.js';export{a as meta}from'./chunk-D2T22ZDL.js';import {b}from'./chunk-PIEENX4H.js';export{b as network}from'./chunk-PIEENX4H.js';import {a as a$6}from'./chunk-DGJ45NBZ.js';export{a as battery}from'./chunk-DGJ45NBZ.js';import {a as a$7}from'./chunk-7U544OAJ.js';export{a as clock}from'./chunk-7U544OAJ.js';import {a as a$8}from'./chunk-M7FMWTDF.js';export{a as fps}from'./chunk-M7FMWTDF.js';import {a as a$9}from'./chunk-23TUV6HD.js';export{a as visualViewport}from'./chunk-23TUV6HD.js';import {a as a$a}from'./chunk-4H6UVYDJ.js';export{a as keyboard}from'./chunk-4H6UVYDJ.js';import {a as a$t}from'./chunk-CXXDGS7S.js';import'./chunk-AQV7LL54.js';import'./chunk-LTJ2VKVY.js';import'./chunk-7KOHYADG.js';import'./chunk-SHR2C4QU.js';import'./chunk-PFCCKKAU.js';import {a}from'./chunk-NJ4Z3SAN.js';export{a as scrollVelocity}from'./chunk-NJ4Z3SAN.js';import'./chunk-KG3EF456.js';import'./chunk-T4N6AEOZ.js';import'./chunk-LWKH66VY.js';import {a as a$1}from'./chunk-UDXHWQBB.js';export{a as online}from'./chunk-UDXHWQBB.js';import {a as a$2}from'./chunk-PSGZ7K22.js';export{a as pageFocused}from'./chunk-PSGZ7K22.js';import {a as a$3}from'./chunk-VX2YFVNN.js';export{a as pageVisible}from'./chunk-VX2YFVNN.js';import'./chunk-ZWS2DFMD.js';var z=[a,a$1,a$2,a$3,a$4,a$5,b,a$6,a$7,a$8,a$9,a$a,a$b,a$c,a$d,a$e,a$f,a$g,a$h,a$i,a$j,a$k,a$l,a$m,a$n,a$o,a$p,a$q,a$r,a$s];function ao(...o){for(let q of o.length?o:z)a$t(q);}export{z as allPlugins,ao as registerPlugins};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkYGON2MF3_cjs=require('./chunk-YGON2MF3.cjs');require('./chunk-65MXZJBD.cjs'),require('./chunk-7AD7LRMF.cjs');Object.defineProperty(exports,"pointer",{enumerable:true,get:function(){return chunkYGON2MF3_cjs.a}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as pointer}from'./chunk-SQIQ6W3B.js';import'./chunk-T4N6AEOZ.js';import'./chunk-ZWS2DFMD.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as pointerLocal}from'./chunk-HA25PYSI.js';import'./chunk-T4N6AEOZ.js';import'./chunk-ZWS2DFMD.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkPMDPLPCX_cjs=require('./chunk-PMDPLPCX.cjs');require('./chunk-65MXZJBD.cjs'),require('./chunk-7AD7LRMF.cjs');Object.defineProperty(exports,"pointerLocal",{enumerable:true,get:function(){return chunkPMDPLPCX_cjs.a}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunk6FYUJK4F_cjs=require('./chunk-6FYUJK4F.cjs');require('./chunk-ADHR4VLZ.cjs'),require('./chunk-65MXZJBD.cjs');Object.defineProperty(exports,"random",{enumerable:true,get:function(){return chunk6FYUJK4F_cjs.a}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as random}from'./chunk-NHEC6UK5.js';import'./chunk-7KOHYADG.js';import'./chunk-T4N6AEOZ.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as scrollVelocity}from'./chunk-NJ4Z3SAN.js';import'./chunk-KG3EF456.js';import'./chunk-T4N6AEOZ.js';import'./chunk-LWKH66VY.js';import'./chunk-ZWS2DFMD.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkO3KW7BD7_cjs=require('./chunk-O3KW7BD7.cjs');require('./chunk-EYDIF3NM.cjs'),require('./chunk-65MXZJBD.cjs'),require('./chunk-7L35N3N3.cjs'),require('./chunk-7AD7LRMF.cjs');Object.defineProperty(exports,"scrollVelocity",{enumerable:true,get:function(){return chunkO3KW7BD7_cjs.a}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as select}from'./chunk-VEIGSGIP.js';import'./chunk-LTJ2VKVY.js';import'./chunk-7KOHYADG.js';import'./chunk-T4N6AEOZ.js';import'./chunk-ZWS2DFMD.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunk3EI2VHWK_cjs=require('./chunk-3EI2VHWK.cjs');require('./chunk-HHINWX7L.cjs'),require('./chunk-ADHR4VLZ.cjs'),require('./chunk-65MXZJBD.cjs'),require('./chunk-7AD7LRMF.cjs');Object.defineProperty(exports,"select",{enumerable:true,get:function(){return chunk3EI2VHWK_cjs.a}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as truncated}from'./chunk-AGUPRRD4.js';import'./chunk-AQV7LL54.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkPSEAYJTX_cjs=require('./chunk-PSEAYJTX.cjs');require('./chunk-NAJLRXKX.cjs');Object.defineProperty(exports,"truncated",{enumerable:true,get:function(){return chunkPSEAYJTX_cjs.a}});
|
|
@@ -6,13 +6,25 @@ interface Config {
|
|
|
6
6
|
livePrefix: string;
|
|
7
7
|
/** Prefix for write-once constants. */
|
|
8
8
|
constPrefix: string;
|
|
9
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* Where global sources write. Typed non-nullable for consumers' sake, but it
|
|
11
|
+
* really is `undefined` without a document — the internals guard it, and so
|
|
12
|
+
* should a custom source that reads it (`ctx.config.root`) outside the browser.
|
|
13
|
+
*/
|
|
10
14
|
root: HTMLElement;
|
|
11
15
|
/**
|
|
12
|
-
* When true, written
|
|
16
|
+
* When true, written properties are registered with `@property`
|
|
13
17
|
* (via `CSS.registerProperty`) as typed, interpolatable custom properties with
|
|
14
|
-
* a guaranteed initial value.
|
|
15
|
-
*
|
|
18
|
+
* a guaranteed initial value. Applies to both cadences — `--const-*` values
|
|
19
|
+
* are registered too, which is what lets string constants like `--const-ua-*`
|
|
20
|
+
* survive typing. Opt in with `configure({ typed: true })` before attaching
|
|
21
|
+
* sources. Off by default.
|
|
22
|
+
*
|
|
23
|
+
* A source's **string** values are only registered when the source declares a
|
|
24
|
+
* `props` entry for them (`ua`, `nav-type`, `color-input`, the colour
|
|
25
|
+
* plugins). Undeclared strings are left untyped rather than registered as the
|
|
26
|
+
* `<number>` default, which would reject the value and compute to `0` — see
|
|
27
|
+
* `meta`, whose property names are discovered at runtime.
|
|
16
28
|
*/
|
|
17
29
|
typed: boolean;
|
|
18
30
|
/**
|
|
@@ -56,6 +68,12 @@ interface SourceContext {
|
|
|
56
68
|
/**
|
|
57
69
|
* Queue a value for the next batched flush. `localName` is prefixed by cadence
|
|
58
70
|
* (e.g. `write('pointer-x', 12)` → `--live-pointer-x: 12`).
|
|
71
|
+
*
|
|
72
|
+
* Writing the **empty string** removes the property, so a value that stops
|
|
73
|
+
* being meaningful (a `<select>` whose new option isn't numeric) falls back to
|
|
74
|
+
* the consumer's `var(--live-x, …)` again instead of going stale. Under
|
|
75
|
+
* `typed: true` a removed property computes to its registered initial value
|
|
76
|
+
* rather than the `var()` fallback.
|
|
59
77
|
*/
|
|
60
78
|
write(localName: string, value: number | string, cadence?: Cadence): void;
|
|
61
79
|
}
|