prop-for-that 0.7.1 → 0.7.2

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 CHANGED
@@ -8,6 +8,20 @@ backwards-compatible change (semver's `1.0.0`+ rules kick in at v1).
8
8
  Only the published library (`dist/`) is versioned here; the demo and docs site
9
9
  are repo-only and not part of the npm package.
10
10
 
11
+ ## [0.7.2]
12
+
13
+ ### Fixed
14
+ - **`fps` source no longer writes `--live-fps` every frame.** The exponential
15
+ moving average is still sampled per frame, but the value is now written at most
16
+ every 250 ms (≤4 Hz). Writing per frame coupled the readout to the frame rate:
17
+ each write invalidates `--live-fps` for the whole tree, and on a large reactive
18
+ DOM that restyle is heavy enough to lower the frame rate, which changes the
19
+ rounded value, which writes again — a feedback loop that spiralled FPS downward
20
+ and accumulated restyle/GC work in Firefox until the tab hung and crashed (no
21
+ user interaction required). The throttled write breaks the loop; an fps readout
22
+ doesn't need to update faster than a few hertz anyway. Values are unchanged
23
+ (rounded EMA), only the write cadence is bounded.
24
+
11
25
  ## [0.7.1]
12
26
 
13
27
  ### Fixed
package/dist/auto.cjs CHANGED
@@ -1 +1 @@
1
- 'use strict';var chunk2LAVIUIS_cjs=require('./chunk-2LAVIUIS.cjs');require('./chunk-HHINWX7L.cjs'),require('./chunk-EOPF4ZLZ.cjs'),require('./chunk-65MXZJBD.cjs'),require('./chunk-7L35N3N3.cjs'),require('./chunk-QHHF5SEL.cjs');var u={"scroll-velocity":()=>import('./scroll-velocity-FBORAQ7L.cjs').then(t=>t.scrollVelocity),online:()=>import('./online-KTMCBCXT.cjs').then(t=>t.online),"page-focused":()=>import('./page-focused-3WLSZDV4.cjs').then(t=>t.pageFocused),"page-visible":()=>import('./page-visible-6PMX575B.cjs').then(t=>t.pageVisible),"nav-type":()=>import('./nav-type-MFJJDDPZ.cjs').then(t=>t.navType),network:()=>import('./network-DPAAEK2S.cjs').then(t=>t.network),battery:()=>import('./battery-DQQ2NOGC.cjs').then(t=>t.battery),clock:()=>import('./clock-EVSBOOMJ.cjs').then(t=>t.clock),fps:()=>import('./fps-TZQLC5MI.cjs').then(t=>t.fps),"visual-viewport":()=>import('./visual-viewport-MKUHWUQT.cjs').then(t=>t.visualViewport),pointer:()=>import('./pointer-DJSMZGSV.cjs').then(t=>t.pointer),"pointer-local":()=>import('./pointer-local-6JKSOJZV.cjs').then(t=>t.pointerLocal),media:()=>import('./media-XS6ADFFY.cjs').then(t=>t.media),field:()=>import('./field-MPAB2GPW.cjs').then(t=>t.field),"field-state":()=>import('./field-state-LUVDPYVB.cjs').then(t=>t.fieldState),"form-state":()=>import('./form-state-OQCU5JIW.cjs').then(t=>t.formState),select:()=>import('./select-VOFG6POI.cjs').then(t=>t.select),"color-input":()=>import('./color-input-ISNND62O.cjs').then(t=>t.colorInput),orientation:()=>import('./orientation-7UDEAKUV.cjs').then(t=>t.orientation),motion:()=>import('./motion-XN5OMPI3.cjs').then(t=>t.motion),geo:()=>import('./geo-CMG7QJ6S.cjs').then(t=>t.geo),"cpu-pressure":()=>import('./cpu-pressure-FXZDL5IE.cjs').then(t=>t.cpuPressure),img:()=>import('./img-QU7AEFQR.cjs').then(t=>t.img),"img-color":()=>import('./img-color-MBEU42DF.cjs').then(t=>t.imgColor),"video-color":()=>import('./video-color-B37Z5OBY.cjs').then(t=>t.videoColor)};var n=new WeakMap,a=new Map;function v(t){return (t.dataset.propsFor??"").split(/\s+/).filter(Boolean)}function E(t){if(chunk2LAVIUIS_cjs.c(t))return null;let e=u[t];if(!e)return null;let o=a.get(t);return o||(o=e().then(r=>{chunk2LAVIUIS_cjs.a(r);}).catch(r=>{a.delete(t),console.error(`[prop-for-that] failed to load plugin "${t}"`,r);}),a.set(t,o)),o}function L(t,e){let o=E(e);if(!o){chunk2LAVIUIS_cjs.e(t,[e]);return}o.then(()=>{chunk2LAVIUIS_cjs.c(e)&&(n.get(t)??[]).includes(e)&&chunk2LAVIUIS_cjs.e(t,[e]);});}function s(t){let e=v(t),o=n.get(t)??[],r=o.filter(i=>!e.includes(i)),g=e.filter(i=>!o.includes(i));r.length&&chunk2LAVIUIS_cjs.f(t,r),e.length?n.set(t,e):n.delete(t);for(let i of g)L(t,i);}function f(t){let e=n.get(t);e&&(chunk2LAVIUIS_cjs.f(t,e),n.delete(t));}function M(t){t instanceof HTMLElement&&(t.hasAttribute("data-props-for")&&s(t),t.querySelectorAll("[data-props-for]").forEach(s));}function b(t){t instanceof HTMLElement&&(f(t),t.querySelectorAll("[data-props-for]").forEach(f));}function h(){document.documentElement.hasAttribute("data-props-typed")&&chunk2LAVIUIS_cjs.d({typed:true}),document.querySelectorAll("[data-props-for]").forEach(s),new MutationObserver(t=>{for(let e of t){if(e.type==="attributes"&&e.target instanceof HTMLElement){s(e.target);continue}e.removedNodes.forEach(b),e.addedNodes.forEach(M);}}).observe(document.documentElement,{subtree:true,childList:true,attributes:true,attributeFilter:["data-props-for"]});}typeof document<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",h,{once:true}):h());
1
+ 'use strict';var chunk2LAVIUIS_cjs=require('./chunk-2LAVIUIS.cjs');require('./chunk-HHINWX7L.cjs'),require('./chunk-EOPF4ZLZ.cjs'),require('./chunk-65MXZJBD.cjs'),require('./chunk-7L35N3N3.cjs'),require('./chunk-QHHF5SEL.cjs');var u={"scroll-velocity":()=>import('./scroll-velocity-FBORAQ7L.cjs').then(t=>t.scrollVelocity),online:()=>import('./online-KTMCBCXT.cjs').then(t=>t.online),"page-focused":()=>import('./page-focused-3WLSZDV4.cjs').then(t=>t.pageFocused),"page-visible":()=>import('./page-visible-6PMX575B.cjs').then(t=>t.pageVisible),"nav-type":()=>import('./nav-type-MFJJDDPZ.cjs').then(t=>t.navType),network:()=>import('./network-DPAAEK2S.cjs').then(t=>t.network),battery:()=>import('./battery-DQQ2NOGC.cjs').then(t=>t.battery),clock:()=>import('./clock-EVSBOOMJ.cjs').then(t=>t.clock),fps:()=>import('./fps-IYNIQTBO.cjs').then(t=>t.fps),"visual-viewport":()=>import('./visual-viewport-MKUHWUQT.cjs').then(t=>t.visualViewport),pointer:()=>import('./pointer-DJSMZGSV.cjs').then(t=>t.pointer),"pointer-local":()=>import('./pointer-local-6JKSOJZV.cjs').then(t=>t.pointerLocal),media:()=>import('./media-XS6ADFFY.cjs').then(t=>t.media),field:()=>import('./field-MPAB2GPW.cjs').then(t=>t.field),"field-state":()=>import('./field-state-LUVDPYVB.cjs').then(t=>t.fieldState),"form-state":()=>import('./form-state-OQCU5JIW.cjs').then(t=>t.formState),select:()=>import('./select-VOFG6POI.cjs').then(t=>t.select),"color-input":()=>import('./color-input-ISNND62O.cjs').then(t=>t.colorInput),orientation:()=>import('./orientation-7UDEAKUV.cjs').then(t=>t.orientation),motion:()=>import('./motion-XN5OMPI3.cjs').then(t=>t.motion),geo:()=>import('./geo-CMG7QJ6S.cjs').then(t=>t.geo),"cpu-pressure":()=>import('./cpu-pressure-FXZDL5IE.cjs').then(t=>t.cpuPressure),img:()=>import('./img-QU7AEFQR.cjs').then(t=>t.img),"img-color":()=>import('./img-color-MBEU42DF.cjs').then(t=>t.imgColor),"video-color":()=>import('./video-color-B37Z5OBY.cjs').then(t=>t.videoColor)};var n=new WeakMap,a=new Map;function v(t){return (t.dataset.propsFor??"").split(/\s+/).filter(Boolean)}function E(t){if(chunk2LAVIUIS_cjs.c(t))return null;let e=u[t];if(!e)return null;let o=a.get(t);return o||(o=e().then(r=>{chunk2LAVIUIS_cjs.a(r);}).catch(r=>{a.delete(t),console.error(`[prop-for-that] failed to load plugin "${t}"`,r);}),a.set(t,o)),o}function L(t,e){let o=E(e);if(!o){chunk2LAVIUIS_cjs.e(t,[e]);return}o.then(()=>{chunk2LAVIUIS_cjs.c(e)&&(n.get(t)??[]).includes(e)&&chunk2LAVIUIS_cjs.e(t,[e]);});}function s(t){let e=v(t),o=n.get(t)??[],r=o.filter(i=>!e.includes(i)),g=e.filter(i=>!o.includes(i));r.length&&chunk2LAVIUIS_cjs.f(t,r),e.length?n.set(t,e):n.delete(t);for(let i of g)L(t,i);}function f(t){let e=n.get(t);e&&(chunk2LAVIUIS_cjs.f(t,e),n.delete(t));}function M(t){t instanceof HTMLElement&&(t.hasAttribute("data-props-for")&&s(t),t.querySelectorAll("[data-props-for]").forEach(s));}function b(t){t instanceof HTMLElement&&(f(t),t.querySelectorAll("[data-props-for]").forEach(f));}function h(){document.documentElement.hasAttribute("data-props-typed")&&chunk2LAVIUIS_cjs.d({typed:true}),document.querySelectorAll("[data-props-for]").forEach(s),new MutationObserver(t=>{for(let e of t){if(e.type==="attributes"&&e.target instanceof HTMLElement){s(e.target);continue}e.removedNodes.forEach(b),e.addedNodes.forEach(M);}}).observe(document.documentElement,{subtree:true,childList:true,attributes:true,attributeFilter:["data-props-for"]});}typeof document<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",h,{once:true}):h());
package/dist/auto.js CHANGED
@@ -1 +1 @@
1
- import {d,f as f$1,e,c,a as a$1}from'./chunk-UQW7YOHI.js';import'./chunk-LTJ2VKVY.js';import'./chunk-LF4OE7IL.js';import'./chunk-T4N6AEOZ.js';import'./chunk-LWKH66VY.js';import'./chunk-EEMKKLRF.js';var u={"scroll-velocity":()=>import('./scroll-velocity-3LOHC3FK.js').then(t=>t.scrollVelocity),online:()=>import('./online-MGYZDLCQ.js').then(t=>t.online),"page-focused":()=>import('./page-focused-LBKD6QXG.js').then(t=>t.pageFocused),"page-visible":()=>import('./page-visible-27YKTHKU.js').then(t=>t.pageVisible),"nav-type":()=>import('./nav-type-S4MHMDHS.js').then(t=>t.navType),network:()=>import('./network-BHUTXTX7.js').then(t=>t.network),battery:()=>import('./battery-CDMJLP4C.js').then(t=>t.battery),clock:()=>import('./clock-LYF2IHGE.js').then(t=>t.clock),fps:()=>import('./fps-OLN52HAI.js').then(t=>t.fps),"visual-viewport":()=>import('./visual-viewport-GNJTAHPT.js').then(t=>t.visualViewport),pointer:()=>import('./pointer-3O7MGTQD.js').then(t=>t.pointer),"pointer-local":()=>import('./pointer-local-X5TVNEEJ.js').then(t=>t.pointerLocal),media:()=>import('./media-RDQ3WR22.js').then(t=>t.media),field:()=>import('./field-N3X45MAG.js').then(t=>t.field),"field-state":()=>import('./field-state-CW4AHAD4.js').then(t=>t.fieldState),"form-state":()=>import('./form-state-43U225CL.js').then(t=>t.formState),select:()=>import('./select-EU62RW5T.js').then(t=>t.select),"color-input":()=>import('./color-input-UT32SY4G.js').then(t=>t.colorInput),orientation:()=>import('./orientation-WJTK5VKX.js').then(t=>t.orientation),motion:()=>import('./motion-BIOKXRRD.js').then(t=>t.motion),geo:()=>import('./geo-MXO5OMVO.js').then(t=>t.geo),"cpu-pressure":()=>import('./cpu-pressure-WCDHVDRP.js').then(t=>t.cpuPressure),img:()=>import('./img-ZKCK5FYH.js').then(t=>t.img),"img-color":()=>import('./img-color-VW3XMATY.js').then(t=>t.imgColor),"video-color":()=>import('./video-color-ZMRKDZFO.js').then(t=>t.videoColor)};var n=new WeakMap,a=new Map;function v(t){return (t.dataset.propsFor??"").split(/\s+/).filter(Boolean)}function E(t){if(c(t))return null;let e=u[t];if(!e)return null;let o=a.get(t);return o||(o=e().then(r=>{a$1(r);}).catch(r=>{a.delete(t),console.error(`[prop-for-that] failed to load plugin "${t}"`,r);}),a.set(t,o)),o}function L(t,e$1){let o=E(e$1);if(!o){e(t,[e$1]);return}o.then(()=>{c(e$1)&&(n.get(t)??[]).includes(e$1)&&e(t,[e$1]);});}function s(t){let e=v(t),o=n.get(t)??[],r=o.filter(i=>!e.includes(i)),g=e.filter(i=>!o.includes(i));r.length&&f$1(t,r),e.length?n.set(t,e):n.delete(t);for(let i of g)L(t,i);}function f(t){let e=n.get(t);e&&(f$1(t,e),n.delete(t));}function M(t){t instanceof HTMLElement&&(t.hasAttribute("data-props-for")&&s(t),t.querySelectorAll("[data-props-for]").forEach(s));}function b(t){t instanceof HTMLElement&&(f(t),t.querySelectorAll("[data-props-for]").forEach(f));}function h(){document.documentElement.hasAttribute("data-props-typed")&&d({typed:true}),document.querySelectorAll("[data-props-for]").forEach(s),new MutationObserver(t=>{for(let e of t){if(e.type==="attributes"&&e.target instanceof HTMLElement){s(e.target);continue}e.removedNodes.forEach(b),e.addedNodes.forEach(M);}}).observe(document.documentElement,{subtree:true,childList:true,attributes:true,attributeFilter:["data-props-for"]});}typeof document<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",h,{once:true}):h());
1
+ import {d,f as f$1,e,c,a as a$1}from'./chunk-UQW7YOHI.js';import'./chunk-LTJ2VKVY.js';import'./chunk-LF4OE7IL.js';import'./chunk-T4N6AEOZ.js';import'./chunk-LWKH66VY.js';import'./chunk-EEMKKLRF.js';var u={"scroll-velocity":()=>import('./scroll-velocity-3LOHC3FK.js').then(t=>t.scrollVelocity),online:()=>import('./online-MGYZDLCQ.js').then(t=>t.online),"page-focused":()=>import('./page-focused-LBKD6QXG.js').then(t=>t.pageFocused),"page-visible":()=>import('./page-visible-27YKTHKU.js').then(t=>t.pageVisible),"nav-type":()=>import('./nav-type-S4MHMDHS.js').then(t=>t.navType),network:()=>import('./network-BHUTXTX7.js').then(t=>t.network),battery:()=>import('./battery-CDMJLP4C.js').then(t=>t.battery),clock:()=>import('./clock-LYF2IHGE.js').then(t=>t.clock),fps:()=>import('./fps-PJTUYBXE.js').then(t=>t.fps),"visual-viewport":()=>import('./visual-viewport-GNJTAHPT.js').then(t=>t.visualViewport),pointer:()=>import('./pointer-3O7MGTQD.js').then(t=>t.pointer),"pointer-local":()=>import('./pointer-local-X5TVNEEJ.js').then(t=>t.pointerLocal),media:()=>import('./media-RDQ3WR22.js').then(t=>t.media),field:()=>import('./field-N3X45MAG.js').then(t=>t.field),"field-state":()=>import('./field-state-CW4AHAD4.js').then(t=>t.fieldState),"form-state":()=>import('./form-state-43U225CL.js').then(t=>t.formState),select:()=>import('./select-EU62RW5T.js').then(t=>t.select),"color-input":()=>import('./color-input-UT32SY4G.js').then(t=>t.colorInput),orientation:()=>import('./orientation-WJTK5VKX.js').then(t=>t.orientation),motion:()=>import('./motion-BIOKXRRD.js').then(t=>t.motion),geo:()=>import('./geo-MXO5OMVO.js').then(t=>t.geo),"cpu-pressure":()=>import('./cpu-pressure-WCDHVDRP.js').then(t=>t.cpuPressure),img:()=>import('./img-ZKCK5FYH.js').then(t=>t.img),"img-color":()=>import('./img-color-VW3XMATY.js').then(t=>t.imgColor),"video-color":()=>import('./video-color-ZMRKDZFO.js').then(t=>t.videoColor)};var n=new WeakMap,a=new Map;function v(t){return (t.dataset.propsFor??"").split(/\s+/).filter(Boolean)}function E(t){if(c(t))return null;let e=u[t];if(!e)return null;let o=a.get(t);return o||(o=e().then(r=>{a$1(r);}).catch(r=>{a.delete(t),console.error(`[prop-for-that] failed to load plugin "${t}"`,r);}),a.set(t,o)),o}function L(t,e$1){let o=E(e$1);if(!o){e(t,[e$1]);return}o.then(()=>{c(e$1)&&(n.get(t)??[]).includes(e$1)&&e(t,[e$1]);});}function s(t){let e=v(t),o=n.get(t)??[],r=o.filter(i=>!e.includes(i)),g=e.filter(i=>!o.includes(i));r.length&&f$1(t,r),e.length?n.set(t,e):n.delete(t);for(let i of g)L(t,i);}function f(t){let e=n.get(t);e&&(f$1(t,e),n.delete(t));}function M(t){t instanceof HTMLElement&&(t.hasAttribute("data-props-for")&&s(t),t.querySelectorAll("[data-props-for]").forEach(s));}function b(t){t instanceof HTMLElement&&(f(t),t.querySelectorAll("[data-props-for]").forEach(f));}function h(){document.documentElement.hasAttribute("data-props-typed")&&d({typed:true}),document.querySelectorAll("[data-props-for]").forEach(s),new MutationObserver(t=>{for(let e of t){if(e.type==="attributes"&&e.target instanceof HTMLElement){s(e.target);continue}e.removedNodes.forEach(b),e.addedNodes.forEach(M);}}).observe(document.documentElement,{subtree:true,childList:true,attributes:true,attributeFilter:["data-props-for"]});}typeof document<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",h,{once:true}):h());
@@ -0,0 +1 @@
1
+ 'use strict';var chunkEOPF4ZLZ_cjs=require('./chunk-EOPF4ZLZ.cjs');var f=250,c={key:"fps",scope:"global",start(o){let e=performance.now(),s=e,r=60;return o.write("fps",Math.round(r)),chunkEOPF4ZLZ_cjs.c(t=>{let p=t-e;e=t,!(p<=0)&&(r+=(1e3/p-r)*.1,!(t-s<f)&&(s=t,o.write("fps",Math.round(r))));})}};exports.a=c;
@@ -0,0 +1 @@
1
+ import {c as c$1}from'./chunk-LF4OE7IL.js';var f=250,c={key:"fps",scope:"global",start(o){let e=performance.now(),s=e,r=60;return o.write("fps",Math.round(r)),c$1(t=>{let p=t-e;e=t,!(p<=0)&&(r+=(1e3/p-r)*.1,!(t-s<f)&&(s=t,o.write("fps",Math.round(r))));})}};export{c as a};
@@ -1 +1 @@
1
- 'use strict';var chunkSBF6XS5A_cjs=require('./chunk-SBF6XS5A.cjs');require('./chunk-EOPF4ZLZ.cjs'),require('./chunk-7L35N3N3.cjs');Object.defineProperty(exports,"fps",{enumerable:true,get:function(){return chunkSBF6XS5A_cjs.a}});
1
+ 'use strict';var chunkCO3JFREC_cjs=require('./chunk-CO3JFREC.cjs');require('./chunk-EOPF4ZLZ.cjs'),require('./chunk-7L35N3N3.cjs');Object.defineProperty(exports,"fps",{enumerable:true,get:function(){return chunkCO3JFREC_cjs.a}});
@@ -0,0 +1 @@
1
+ export{a as fps}from'./chunk-XFT6UIQJ.js';import'./chunk-LF4OE7IL.js';import'./chunk-LWKH66VY.js';
package/dist/plugins.cjs CHANGED
@@ -1 +1 @@
1
- 'use strict';var chunkUALPUR2L_cjs=require('./chunk-UALPUR2L.cjs'),chunk2H5YFW6O_cjs=require('./chunk-2H5YFW6O.cjs'),chunk6FIY4G6K_cjs=require('./chunk-6FIY4G6K.cjs'),chunkFKBHTKZH_cjs=require('./chunk-FKBHTKZH.cjs'),chunkHYVT6V4Z_cjs=require('./chunk-HYVT6V4Z.cjs'),chunk63C3RCO2_cjs=require('./chunk-63C3RCO2.cjs'),chunkYXQTZ7WB_cjs=require('./chunk-YXQTZ7WB.cjs'),chunkCGNMHQYQ_cjs=require('./chunk-CGNMHQYQ.cjs'),chunkCQQV55KU_cjs=require('./chunk-CQQV55KU.cjs');require('./chunk-L4SCOKPV.cjs');var chunkBH7EQDLL_cjs=require('./chunk-BH7EQDLL.cjs'),chunkX5SADKXG_cjs=require('./chunk-X5SADKXG.cjs');require('./chunk-A6JDSQWH.cjs');var chunkMJJCQRTF_cjs=require('./chunk-MJJCQRTF.cjs'),chunkLULEQHRM_cjs=require('./chunk-LULEQHRM.cjs'),chunkMGZTR3X6_cjs=require('./chunk-MGZTR3X6.cjs'),chunkRT47EE2L_cjs=require('./chunk-RT47EE2L.cjs'),chunk7CDVAP3H_cjs=require('./chunk-7CDVAP3H.cjs'),chunk6LTQ7ISE_cjs=require('./chunk-6LTQ7ISE.cjs'),chunkSBF6XS5A_cjs=require('./chunk-SBF6XS5A.cjs'),chunkXQOUJEVE_cjs=require('./chunk-XQOUJEVE.cjs'),chunk3W7CXUWN_cjs=require('./chunk-3W7CXUWN.cjs'),chunkSYKMPPTY_cjs=require('./chunk-SYKMPPTY.cjs'),chunk2LAVIUIS_cjs=require('./chunk-2LAVIUIS.cjs');require('./chunk-HHINWX7L.cjs');var chunkS2QXIZB2_cjs=require('./chunk-S2QXIZB2.cjs');require('./chunk-EOPF4ZLZ.cjs'),require('./chunk-65MXZJBD.cjs'),require('./chunk-7L35N3N3.cjs');var chunkOVF4XN2H_cjs=require('./chunk-OVF4XN2H.cjs'),chunkWIPJMLJJ_cjs=require('./chunk-WIPJMLJJ.cjs');require('./chunk-QHHF5SEL.cjs');var chunk3MK6Q7DX_cjs=require('./chunk-3MK6Q7DX.cjs');var I=[chunkS2QXIZB2_cjs.a,chunkOVF4XN2H_cjs.a,chunkWIPJMLJJ_cjs.a,chunk3MK6Q7DX_cjs.a,chunkMGZTR3X6_cjs.a,chunkRT47EE2L_cjs.b,chunk7CDVAP3H_cjs.a,chunk6LTQ7ISE_cjs.a,chunkSBF6XS5A_cjs.a,chunkXQOUJEVE_cjs.a,chunk3W7CXUWN_cjs.a,chunkSYKMPPTY_cjs.a,chunk63C3RCO2_cjs.a,chunkYXQTZ7WB_cjs.a,chunkCGNMHQYQ_cjs.a,chunkCQQV55KU_cjs.a,chunkBH7EQDLL_cjs.a,chunkX5SADKXG_cjs.a,chunkMJJCQRTF_cjs.a,chunkLULEQHRM_cjs.a,chunkUALPUR2L_cjs.a,chunk2H5YFW6O_cjs.a,chunk6FIY4G6K_cjs.a,chunkFKBHTKZH_cjs.a,chunkHYVT6V4Z_cjs.a];function ro(...o){for(let F of o.length?o:I)chunk2LAVIUIS_cjs.a(F);}Object.defineProperty(exports,"geo",{enumerable:true,get:function(){return chunkUALPUR2L_cjs.a}});Object.defineProperty(exports,"cpuPressure",{enumerable:true,get:function(){return chunk2H5YFW6O_cjs.a}});Object.defineProperty(exports,"img",{enumerable:true,get:function(){return chunk6FIY4G6K_cjs.a}});Object.defineProperty(exports,"imgColor",{enumerable:true,get:function(){return chunkFKBHTKZH_cjs.a}});Object.defineProperty(exports,"videoColor",{enumerable:true,get:function(){return chunkHYVT6V4Z_cjs.a}});Object.defineProperty(exports,"media",{enumerable:true,get:function(){return chunk63C3RCO2_cjs.a}});Object.defineProperty(exports,"field",{enumerable:true,get:function(){return chunkYXQTZ7WB_cjs.a}});Object.defineProperty(exports,"fieldState",{enumerable:true,get:function(){return chunkCGNMHQYQ_cjs.a}});Object.defineProperty(exports,"formState",{enumerable:true,get:function(){return chunkCQQV55KU_cjs.a}});Object.defineProperty(exports,"select",{enumerable:true,get:function(){return chunkBH7EQDLL_cjs.a}});Object.defineProperty(exports,"colorInput",{enumerable:true,get:function(){return chunkX5SADKXG_cjs.a}});Object.defineProperty(exports,"orientation",{enumerable:true,get:function(){return chunkMJJCQRTF_cjs.a}});Object.defineProperty(exports,"motion",{enumerable:true,get:function(){return chunkLULEQHRM_cjs.a}});Object.defineProperty(exports,"navType",{enumerable:true,get:function(){return chunkMGZTR3X6_cjs.a}});Object.defineProperty(exports,"network",{enumerable:true,get:function(){return chunkRT47EE2L_cjs.b}});Object.defineProperty(exports,"battery",{enumerable:true,get:function(){return chunk7CDVAP3H_cjs.a}});Object.defineProperty(exports,"clock",{enumerable:true,get:function(){return chunk6LTQ7ISE_cjs.a}});Object.defineProperty(exports,"fps",{enumerable:true,get:function(){return chunkSBF6XS5A_cjs.a}});Object.defineProperty(exports,"visualViewport",{enumerable:true,get:function(){return chunkXQOUJEVE_cjs.a}});Object.defineProperty(exports,"pointer",{enumerable:true,get:function(){return chunk3W7CXUWN_cjs.a}});Object.defineProperty(exports,"pointerLocal",{enumerable:true,get:function(){return chunkSYKMPPTY_cjs.a}});Object.defineProperty(exports,"scrollVelocity",{enumerable:true,get:function(){return chunkS2QXIZB2_cjs.a}});Object.defineProperty(exports,"online",{enumerable:true,get:function(){return chunkOVF4XN2H_cjs.a}});Object.defineProperty(exports,"pageFocused",{enumerable:true,get:function(){return chunkWIPJMLJJ_cjs.a}});Object.defineProperty(exports,"pageVisible",{enumerable:true,get:function(){return chunk3MK6Q7DX_cjs.a}});exports.allPlugins=I;exports.registerPlugins=ro;
1
+ 'use strict';var chunkUALPUR2L_cjs=require('./chunk-UALPUR2L.cjs'),chunk2H5YFW6O_cjs=require('./chunk-2H5YFW6O.cjs'),chunk6FIY4G6K_cjs=require('./chunk-6FIY4G6K.cjs'),chunkFKBHTKZH_cjs=require('./chunk-FKBHTKZH.cjs'),chunkHYVT6V4Z_cjs=require('./chunk-HYVT6V4Z.cjs'),chunk63C3RCO2_cjs=require('./chunk-63C3RCO2.cjs'),chunkYXQTZ7WB_cjs=require('./chunk-YXQTZ7WB.cjs'),chunkCGNMHQYQ_cjs=require('./chunk-CGNMHQYQ.cjs'),chunkCQQV55KU_cjs=require('./chunk-CQQV55KU.cjs');require('./chunk-L4SCOKPV.cjs');var chunkBH7EQDLL_cjs=require('./chunk-BH7EQDLL.cjs'),chunkX5SADKXG_cjs=require('./chunk-X5SADKXG.cjs');require('./chunk-A6JDSQWH.cjs');var chunkMJJCQRTF_cjs=require('./chunk-MJJCQRTF.cjs'),chunkLULEQHRM_cjs=require('./chunk-LULEQHRM.cjs'),chunkMGZTR3X6_cjs=require('./chunk-MGZTR3X6.cjs'),chunkRT47EE2L_cjs=require('./chunk-RT47EE2L.cjs'),chunk7CDVAP3H_cjs=require('./chunk-7CDVAP3H.cjs'),chunk6LTQ7ISE_cjs=require('./chunk-6LTQ7ISE.cjs'),chunkCO3JFREC_cjs=require('./chunk-CO3JFREC.cjs'),chunkXQOUJEVE_cjs=require('./chunk-XQOUJEVE.cjs'),chunk3W7CXUWN_cjs=require('./chunk-3W7CXUWN.cjs'),chunkSYKMPPTY_cjs=require('./chunk-SYKMPPTY.cjs'),chunk2LAVIUIS_cjs=require('./chunk-2LAVIUIS.cjs');require('./chunk-HHINWX7L.cjs');var chunkS2QXIZB2_cjs=require('./chunk-S2QXIZB2.cjs');require('./chunk-EOPF4ZLZ.cjs'),require('./chunk-65MXZJBD.cjs'),require('./chunk-7L35N3N3.cjs');var chunkOVF4XN2H_cjs=require('./chunk-OVF4XN2H.cjs'),chunkWIPJMLJJ_cjs=require('./chunk-WIPJMLJJ.cjs');require('./chunk-QHHF5SEL.cjs');var chunk3MK6Q7DX_cjs=require('./chunk-3MK6Q7DX.cjs');var I=[chunkS2QXIZB2_cjs.a,chunkOVF4XN2H_cjs.a,chunkWIPJMLJJ_cjs.a,chunk3MK6Q7DX_cjs.a,chunkMGZTR3X6_cjs.a,chunkRT47EE2L_cjs.b,chunk7CDVAP3H_cjs.a,chunk6LTQ7ISE_cjs.a,chunkCO3JFREC_cjs.a,chunkXQOUJEVE_cjs.a,chunk3W7CXUWN_cjs.a,chunkSYKMPPTY_cjs.a,chunk63C3RCO2_cjs.a,chunkYXQTZ7WB_cjs.a,chunkCGNMHQYQ_cjs.a,chunkCQQV55KU_cjs.a,chunkBH7EQDLL_cjs.a,chunkX5SADKXG_cjs.a,chunkMJJCQRTF_cjs.a,chunkLULEQHRM_cjs.a,chunkUALPUR2L_cjs.a,chunk2H5YFW6O_cjs.a,chunk6FIY4G6K_cjs.a,chunkFKBHTKZH_cjs.a,chunkHYVT6V4Z_cjs.a];function ro(...o){for(let F of o.length?o:I)chunk2LAVIUIS_cjs.a(F);}Object.defineProperty(exports,"geo",{enumerable:true,get:function(){return chunkUALPUR2L_cjs.a}});Object.defineProperty(exports,"cpuPressure",{enumerable:true,get:function(){return chunk2H5YFW6O_cjs.a}});Object.defineProperty(exports,"img",{enumerable:true,get:function(){return chunk6FIY4G6K_cjs.a}});Object.defineProperty(exports,"imgColor",{enumerable:true,get:function(){return chunkFKBHTKZH_cjs.a}});Object.defineProperty(exports,"videoColor",{enumerable:true,get:function(){return chunkHYVT6V4Z_cjs.a}});Object.defineProperty(exports,"media",{enumerable:true,get:function(){return chunk63C3RCO2_cjs.a}});Object.defineProperty(exports,"field",{enumerable:true,get:function(){return chunkYXQTZ7WB_cjs.a}});Object.defineProperty(exports,"fieldState",{enumerable:true,get:function(){return chunkCGNMHQYQ_cjs.a}});Object.defineProperty(exports,"formState",{enumerable:true,get:function(){return chunkCQQV55KU_cjs.a}});Object.defineProperty(exports,"select",{enumerable:true,get:function(){return chunkBH7EQDLL_cjs.a}});Object.defineProperty(exports,"colorInput",{enumerable:true,get:function(){return chunkX5SADKXG_cjs.a}});Object.defineProperty(exports,"orientation",{enumerable:true,get:function(){return chunkMJJCQRTF_cjs.a}});Object.defineProperty(exports,"motion",{enumerable:true,get:function(){return chunkLULEQHRM_cjs.a}});Object.defineProperty(exports,"navType",{enumerable:true,get:function(){return chunkMGZTR3X6_cjs.a}});Object.defineProperty(exports,"network",{enumerable:true,get:function(){return chunkRT47EE2L_cjs.b}});Object.defineProperty(exports,"battery",{enumerable:true,get:function(){return chunk7CDVAP3H_cjs.a}});Object.defineProperty(exports,"clock",{enumerable:true,get:function(){return chunk6LTQ7ISE_cjs.a}});Object.defineProperty(exports,"fps",{enumerable:true,get:function(){return chunkCO3JFREC_cjs.a}});Object.defineProperty(exports,"visualViewport",{enumerable:true,get:function(){return chunkXQOUJEVE_cjs.a}});Object.defineProperty(exports,"pointer",{enumerable:true,get:function(){return chunk3W7CXUWN_cjs.a}});Object.defineProperty(exports,"pointerLocal",{enumerable:true,get:function(){return chunkSYKMPPTY_cjs.a}});Object.defineProperty(exports,"scrollVelocity",{enumerable:true,get:function(){return chunkS2QXIZB2_cjs.a}});Object.defineProperty(exports,"online",{enumerable:true,get:function(){return chunkOVF4XN2H_cjs.a}});Object.defineProperty(exports,"pageFocused",{enumerable:true,get:function(){return chunkWIPJMLJJ_cjs.a}});Object.defineProperty(exports,"pageVisible",{enumerable:true,get:function(){return chunk3MK6Q7DX_cjs.a}});exports.allPlugins=I;exports.registerPlugins=ro;
@@ -71,11 +71,6 @@ declare const battery: Source;
71
71
  */
72
72
  declare const clock: Source;
73
73
 
74
- /**
75
- * `--live-fps`, a short exponential moving average of recent frame rates so the
76
- * value is stable rather than jittering frame to frame. Runs on the shared frame
77
- * loop while bound.
78
- */
79
74
  declare const fps: Source;
80
75
 
81
76
  /**
package/dist/plugins.d.ts CHANGED
@@ -71,11 +71,6 @@ declare const battery: Source;
71
71
  */
72
72
  declare const clock: Source;
73
73
 
74
- /**
75
- * `--live-fps`, a short exponential moving average of recent frame rates so the
76
- * value is stable rather than jittering frame to frame. Runs on the shared frame
77
- * loop while bound.
78
- */
79
74
  declare const fps: Source;
80
75
 
81
76
  /**
package/dist/plugins.js CHANGED
@@ -1 +1 @@
1
- import {a as a$j}from'./chunk-FOHEZJHF.js';export{a as geo}from'./chunk-FOHEZJHF.js';import {a as a$k}from'./chunk-5JZBLUQK.js';export{a as cpuPressure}from'./chunk-5JZBLUQK.js';import {a as a$l}from'./chunk-KMPRPVIO.js';export{a as img}from'./chunk-KMPRPVIO.js';import {a as a$m}from'./chunk-A7GWTDM7.js';export{a as imgColor}from'./chunk-A7GWTDM7.js';import {a as a$n}from'./chunk-ZQTU5EW7.js';export{a as videoColor}from'./chunk-ZQTU5EW7.js';import {a as a$b}from'./chunk-UHGW7AXC.js';export{a as media}from'./chunk-UHGW7AXC.js';import {a as a$c}from'./chunk-2C7ZUOOR.js';export{a as field}from'./chunk-2C7ZUOOR.js';import {a as a$d}from'./chunk-YXEERKSK.js';export{a as fieldState}from'./chunk-YXEERKSK.js';import {a as a$e}from'./chunk-SRQQTNRZ.js';export{a as formState}from'./chunk-SRQQTNRZ.js';import'./chunk-QIUPJ6MF.js';import {a as a$f}from'./chunk-IJDX3MYP.js';export{a as select}from'./chunk-IJDX3MYP.js';import {a as a$g}from'./chunk-QRIZE6VL.js';export{a as colorInput}from'./chunk-QRIZE6VL.js';import'./chunk-A2ETARW3.js';import {a as a$h}from'./chunk-Y7HUY6HR.js';export{a as orientation}from'./chunk-Y7HUY6HR.js';import {a as a$i}from'./chunk-WUGCASE4.js';export{a as motion}from'./chunk-WUGCASE4.js';import {a as a$4}from'./chunk-H7X35UB4.js';export{a as navType}from'./chunk-H7X35UB4.js';import {b}from'./chunk-JB72QLD6.js';export{b as network}from'./chunk-JB72QLD6.js';import {a as a$5}from'./chunk-DQJQEWPS.js';export{a as battery}from'./chunk-DQJQEWPS.js';import {a as a$6}from'./chunk-7U544OAJ.js';export{a as clock}from'./chunk-7U544OAJ.js';import {a as a$7}from'./chunk-IKOVFAJO.js';export{a as fps}from'./chunk-IKOVFAJO.js';import {a as a$8}from'./chunk-F5H2O3AR.js';export{a as visualViewport}from'./chunk-F5H2O3AR.js';import {a as a$9}from'./chunk-KAK6WZS7.js';export{a as pointer}from'./chunk-KAK6WZS7.js';import {a as a$a}from'./chunk-2E2JQAHI.js';export{a as pointerLocal}from'./chunk-2E2JQAHI.js';import {a as a$o}from'./chunk-UQW7YOHI.js';import'./chunk-LTJ2VKVY.js';import {a}from'./chunk-RI7ZNKJ4.js';export{a as scrollVelocity}from'./chunk-RI7ZNKJ4.js';import'./chunk-LF4OE7IL.js';import'./chunk-T4N6AEOZ.js';import'./chunk-LWKH66VY.js';import {a as a$1}from'./chunk-MDKLN42L.js';export{a as online}from'./chunk-MDKLN42L.js';import {a as a$2}from'./chunk-HKCTBVQT.js';export{a as pageFocused}from'./chunk-HKCTBVQT.js';import'./chunk-EEMKKLRF.js';import {a as a$3}from'./chunk-SFO6H2DN.js';export{a as pageVisible}from'./chunk-SFO6H2DN.js';var I=[a,a$1,a$2,a$3,a$4,b,a$5,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];function ro(...o){for(let F of o.length?o:I)a$o(F);}export{I as allPlugins,ro as registerPlugins};
1
+ import {a as a$j}from'./chunk-FOHEZJHF.js';export{a as geo}from'./chunk-FOHEZJHF.js';import {a as a$k}from'./chunk-5JZBLUQK.js';export{a as cpuPressure}from'./chunk-5JZBLUQK.js';import {a as a$l}from'./chunk-KMPRPVIO.js';export{a as img}from'./chunk-KMPRPVIO.js';import {a as a$m}from'./chunk-A7GWTDM7.js';export{a as imgColor}from'./chunk-A7GWTDM7.js';import {a as a$n}from'./chunk-ZQTU5EW7.js';export{a as videoColor}from'./chunk-ZQTU5EW7.js';import {a as a$b}from'./chunk-UHGW7AXC.js';export{a as media}from'./chunk-UHGW7AXC.js';import {a as a$c}from'./chunk-2C7ZUOOR.js';export{a as field}from'./chunk-2C7ZUOOR.js';import {a as a$d}from'./chunk-YXEERKSK.js';export{a as fieldState}from'./chunk-YXEERKSK.js';import {a as a$e}from'./chunk-SRQQTNRZ.js';export{a as formState}from'./chunk-SRQQTNRZ.js';import'./chunk-QIUPJ6MF.js';import {a as a$f}from'./chunk-IJDX3MYP.js';export{a as select}from'./chunk-IJDX3MYP.js';import {a as a$g}from'./chunk-QRIZE6VL.js';export{a as colorInput}from'./chunk-QRIZE6VL.js';import'./chunk-A2ETARW3.js';import {a as a$h}from'./chunk-Y7HUY6HR.js';export{a as orientation}from'./chunk-Y7HUY6HR.js';import {a as a$i}from'./chunk-WUGCASE4.js';export{a as motion}from'./chunk-WUGCASE4.js';import {a as a$4}from'./chunk-H7X35UB4.js';export{a as navType}from'./chunk-H7X35UB4.js';import {b}from'./chunk-JB72QLD6.js';export{b as network}from'./chunk-JB72QLD6.js';import {a as a$5}from'./chunk-DQJQEWPS.js';export{a as battery}from'./chunk-DQJQEWPS.js';import {a as a$6}from'./chunk-7U544OAJ.js';export{a as clock}from'./chunk-7U544OAJ.js';import {a as a$7}from'./chunk-XFT6UIQJ.js';export{a as fps}from'./chunk-XFT6UIQJ.js';import {a as a$8}from'./chunk-F5H2O3AR.js';export{a as visualViewport}from'./chunk-F5H2O3AR.js';import {a as a$9}from'./chunk-KAK6WZS7.js';export{a as pointer}from'./chunk-KAK6WZS7.js';import {a as a$a}from'./chunk-2E2JQAHI.js';export{a as pointerLocal}from'./chunk-2E2JQAHI.js';import {a as a$o}from'./chunk-UQW7YOHI.js';import'./chunk-LTJ2VKVY.js';import {a}from'./chunk-RI7ZNKJ4.js';export{a as scrollVelocity}from'./chunk-RI7ZNKJ4.js';import'./chunk-LF4OE7IL.js';import'./chunk-T4N6AEOZ.js';import'./chunk-LWKH66VY.js';import {a as a$1}from'./chunk-MDKLN42L.js';export{a as online}from'./chunk-MDKLN42L.js';import {a as a$2}from'./chunk-HKCTBVQT.js';export{a as pageFocused}from'./chunk-HKCTBVQT.js';import'./chunk-EEMKKLRF.js';import {a as a$3}from'./chunk-SFO6H2DN.js';export{a as pageVisible}from'./chunk-SFO6H2DN.js';var I=[a,a$1,a$2,a$3,a$4,b,a$5,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];function ro(...o){for(let F of o.length?o:I)a$o(F);}export{I as allPlugins,ro as registerPlugins};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prop-for-that",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "description": "Expose what JavaScript knows but CSS can't see, as batched, diffed CSS custom properties.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -1 +0,0 @@
1
- import {c as c$1}from'./chunk-LF4OE7IL.js';var c={key:"fps",scope:"global",start(s){let t=performance.now(),r=60;return c$1(e=>{let o=e-t;t=e,!(o<=0)&&(r+=(1e3/o-r)*.1,s.write("fps",Math.round(r)));})}};export{c as a};
@@ -1 +0,0 @@
1
- 'use strict';var chunkEOPF4ZLZ_cjs=require('./chunk-EOPF4ZLZ.cjs');var c={key:"fps",scope:"global",start(s){let t=performance.now(),r=60;return chunkEOPF4ZLZ_cjs.c(e=>{let o=e-t;t=e,!(o<=0)&&(r+=(1e3/o-r)*.1,s.write("fps",Math.round(r)));})}};exports.a=c;
@@ -1 +0,0 @@
1
- export{a as fps}from'./chunk-IKOVFAJO.js';import'./chunk-LF4OE7IL.js';import'./chunk-LWKH66VY.js';