motionary 13.3.0 → 13.4.0
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 +34 -0
- package/README.md +1 -1
- package/dist/chunks/{anim-image-teDgsATS.js → anim-image-Czp1v-zv.js} +2 -2
- package/dist/chunks/{anim-image-B68xnlYD.cjs → anim-image-DnpOI25h.cjs} +2 -2
- package/dist/chunks/{audio-DhgfWYZ_.cjs → audio-D7Dk2gUF.cjs} +27 -6
- package/dist/chunks/{audio-5FOqrAxu.js → audio-DJkvNk0A.js} +27 -6
- package/dist/chunks/{badge-wall-Q7x5HSe_.cjs → badge-wall-BkqFzeUf.cjs} +2 -2
- package/dist/chunks/{badge-wall-Bd2dP3J7.js → badge-wall-C6St1WyC.js} +2 -2
- package/dist/chunks/{base-nzeN_ux7.js → base-Be98yNyq.js} +131 -99
- package/dist/chunks/{base-vu_KhBiv.cjs → base-Do-R_9gU.cjs} +132 -98
- package/dist/chunks/{bg-generator-Dncd000D.cjs → bg-generator-C9ee__nJ.cjs} +2 -2
- package/dist/chunks/{bg-generator-Dxx3s2zQ.js → bg-generator-YTB0quZa.js} +2 -2
- package/dist/chunks/bind-B_CTL6Qn.js +1 -1
- package/dist/chunks/bind-Ui43-n2d.cjs +1 -1
- package/dist/chunks/{builtins-hBOeCPXL.js → builtins-BQZ7idez.js} +3 -3
- package/dist/chunks/{builtins-A9ihuDwy.cjs → builtins-DGP3jBW1.cjs} +3 -3
- package/dist/chunks/{carousel-Blko8aKV.cjs → carousel-9IQYg8lJ.cjs} +2 -2
- package/dist/chunks/{carousel-DkQKWBK3.js → carousel-BQb8S9_i.js} +2 -2
- package/dist/chunks/{cart-drawer-kyj9TlQC.cjs → cart-drawer-DSRylorb.cjs} +4 -4
- package/dist/chunks/{cart-drawer-CtX6EQRa.js → cart-drawer-DsCXMYO2.js} +4 -4
- package/dist/chunks/{code-export-B6b27ZiI.js → code-export-BAM59KC-.js} +2 -2
- package/dist/chunks/{code-export-DOioRmM9.cjs → code-export-CTdTKJWS.cjs} +2 -2
- package/dist/chunks/{color-picker-B6YXJdur.cjs → color-picker-Cgj4F5G-.cjs} +2 -2
- package/dist/chunks/{color-picker-DNTzNylo.js → color-picker-zYIs1UU8.js} +2 -2
- package/dist/chunks/{command-palette-DAQQ_bkg.cjs → command-palette-Oiq7KY7o.cjs} +2 -2
- package/dist/chunks/{command-palette-C6XV1glX.js → command-palette-WCKbmW2N.js} +2 -2
- package/dist/chunks/{core-E18xla6s.cjs → core-6FhnH_Kv.cjs} +2 -2
- package/dist/chunks/{core-DfkeC4s-.cjs → core-B2156q7g.cjs} +2 -2
- package/dist/chunks/core-BjcOCpJt.cjs +1 -1
- package/dist/chunks/core-Dj6iomdc.js +1 -1
- package/dist/chunks/{core-DVGtPabi.js → core-FB2gL64M.js} +2 -2
- package/dist/chunks/{core-Bar7NFx7.js → core-RZkPEx8i.js} +2 -2
- package/dist/chunks/{countdown-Dhp9G96N.js → countdown-BKcrUeQ5.js} +2 -2
- package/dist/chunks/{countdown-Cvef0Kb1.cjs → countdown-oB1KGHQe.cjs} +2 -2
- package/dist/chunks/{date-picker-C9iVZUP3.cjs → date-picker-Bcez28ox.cjs} +2 -2
- package/dist/chunks/{date-picker-M7n1jZw9.js → date-picker-Dx4vGYze.js} +2 -2
- package/dist/chunks/ease-HwYZnZat.cjs +1 -1
- package/dist/chunks/ease-XN8_0sXu.js +1 -1
- package/dist/chunks/{equalizer-CN6AkBtT.js → equalizer-D8SG0IDP.js} +2 -2
- package/dist/chunks/{equalizer-6uhO-yfZ.cjs → equalizer-XIVScpXr.cjs} +2 -2
- package/dist/chunks/{festival-banner-Dsu53in5.js → festival-banner-C6y_nEAX.js} +2 -2
- package/dist/chunks/{festival-banner-ByYX1Oy6.cjs → festival-banner-TmiGZdmC.cjs} +2 -2
- package/dist/chunks/{field-DcC_zJBH.cjs → field-Bg6pHLD3.cjs} +2 -2
- package/dist/chunks/{field-DeTgNf7K.js → field-Do9yU2oB.js} +2 -2
- package/dist/chunks/{fx-lszndeFU.cjs → fx-O90ZgYwV.cjs} +2 -2
- package/dist/chunks/{fx-qAVpKs8e.js → fx-Wd1GKAzZ.js} +2 -2
- package/dist/chunks/{generative-BHIj-NU0.cjs → generative-BTya0iHP.cjs} +16 -4
- package/dist/chunks/{generative-2LhxG5BJ.js → generative-DkX6SvrL.js} +20 -8
- package/dist/chunks/{gl-scene-CUTsZPTZ.js → gl-scene-CZEQJPar.js} +9 -9
- package/dist/chunks/{gl-scene-DwcPxX2X.cjs → gl-scene-SRaGcmCA.cjs} +6 -6
- package/dist/chunks/{globe-Dms25CB5.cjs → globe-BOS1Kb8J.cjs} +10 -9
- package/dist/chunks/{globe-CzQ6nQ-o.js → globe-D_S-FB8k.js} +10 -9
- package/dist/chunks/{gpu-BREsvJpT.cjs → gpu--UifKXUA.cjs} +30 -9
- package/dist/chunks/{gpu-DdiOOXTP.js → gpu-B8vgh4lW.js} +37 -16
- package/dist/chunks/{gpu-particles-DrjYuSVR.cjs → gpu-particles-DICAeqwO.cjs} +6 -6
- package/dist/chunks/{gpu-particles-CbBJ_tIZ.js → gpu-particles-DaRztimn.js} +6 -6
- package/dist/chunks/index-tags-B-JBecYg.js +1 -1
- package/dist/chunks/index-tags-hLIF2Clq.cjs +1 -1
- package/dist/chunks/key-click-BLm3BI8_.js +1 -1
- package/dist/chunks/key-click-v7I4K5Sr.cjs +1 -1
- package/dist/chunks/{keyframes-BBke3wIL.js → keyframes-DE4F_oWc.js} +2 -2
- package/dist/chunks/{keyframes-dsAcxcJv.cjs → keyframes-DWmt9GdV.cjs} +2 -2
- package/dist/chunks/{leaderboard-wF-UnLbY.cjs → leaderboard-BKmKMStS.cjs} +4 -4
- package/dist/chunks/{leaderboard-D2Xb0lqP.js → leaderboard-CdMYDeaT.js} +4 -4
- package/dist/chunks/{location-card-BJsN6s34.cjs → location-card-Bxemk6MJ.cjs} +2 -2
- package/dist/chunks/{location-card-GrQnXfwp.js → location-card-C_3CQ3u-.js} +2 -2
- package/dist/chunks/{lottie-icon-DMkTeHCL.cjs → lottie-icon-Dyz8XJm5.cjs} +2 -2
- package/dist/chunks/{lottie-icon-D3fdgfNU.js → lottie-icon-oGP5LQ4G.js} +2 -2
- package/dist/chunks/{lottie-player-CkdMUN-D.js → lottie-player-Dr6ZGZZ9.js} +3 -3
- package/dist/chunks/{lottie-player-hYycf5lY.cjs → lottie-player-m8yiMFGM.cjs} +3 -3
- package/dist/chunks/{lyrics-CBRdLBDw.cjs → lyrics-BuVT1PyD.cjs} +6 -5
- package/dist/chunks/{lyrics-jTQwzX9m.js → lyrics-DlNbqyV3.js} +6 -5
- package/dist/chunks/{manifest-pVzW6oyg.js → manifest-C6nei25r.js} +2 -2
- package/dist/chunks/{manifest-Rxf1Mumb.cjs → manifest-DcyvsF07.cjs} +2 -2
- package/dist/chunks/{menu-Bc2M8HMJ.cjs → menu-CZj0BChd.cjs} +2 -2
- package/dist/chunks/{menu-Ydg47TQx.js → menu-hmi07frR.js} +2 -2
- package/dist/chunks/{menu-toggle-C-_dv_TN.js → menu-toggle--mqC1pWc.js} +2 -2
- package/dist/chunks/{menu-toggle-B1YBlbdJ.cjs → menu-toggle-Bef1YqbK.cjs} +2 -2
- package/dist/chunks/{nav-morph-kKmG_ocG.cjs → nav-morph-C7nb0-oA.cjs} +2 -2
- package/dist/chunks/{nav-morph-DA-Q4xec.js → nav-morph-k7sIJdS3.js} +2 -2
- package/dist/chunks/{otp-CVUw78Mr.js → otp-B9ctuDQG.js} +2 -2
- package/dist/chunks/{otp-Cxz5uFb_.cjs → otp-VBvUiZhb.cjs} +2 -2
- package/dist/chunks/{pagination-0fuULrSB.js → pagination-BiVi2UVo.js} +2 -2
- package/dist/chunks/{pagination-DbqyUpxV.cjs → pagination-DLTCrJwy.cjs} +2 -2
- package/dist/chunks/{physics-playground-5lihsTyh.cjs → physics-playground-CJMHlyVL.cjs} +5 -5
- package/dist/chunks/{physics-playground-_5_slxtj.js → physics-playground-DwL_sPea.js} +5 -5
- package/dist/chunks/{player-DqUZJ0d_.js → player-BdKLax0N.js} +14 -13
- package/dist/chunks/{player-DIwSjUFR.cjs → player-CbCdaCgu.cjs} +14 -13
- package/dist/chunks/{presence-CRfWmNWz.cjs → presence-5lrgeDaX.cjs} +2 -2
- package/dist/chunks/{presence-DfTxVIEf.js → presence-DnBQPaaY.js} +2 -2
- package/dist/chunks/presets-BYBVJVeP.js +1 -1
- package/dist/chunks/presets-CUHys3sK.cjs +1 -1
- package/dist/chunks/{prize-wheel-MOZOrI-p.cjs → prize-wheel-BA1q90gH.cjs} +2 -2
- package/dist/chunks/{prize-wheel-tgpOsdDA.js → prize-wheel-CYH2ZPIu.js} +2 -2
- package/dist/chunks/{product-gallery-BcGA35Ie.js → product-gallery-7iuP6mwb.js} +2 -2
- package/dist/chunks/{product-gallery-Bi6I6x1o.cjs → product-gallery-Dc7JVl8a.cjs} +2 -2
- package/dist/chunks/{progress-ring-6kTzB49S.js → progress-ring-Ba9YULbX.js} +7 -6
- package/dist/chunks/{progress-ring-BO9a3Q24.cjs → progress-ring-DDqq7gdF.cjs} +7 -6
- package/dist/chunks/{prop-panel-DGm8VM4Z.js → prop-panel-CS-i1ddG.js} +2 -2
- package/dist/chunks/{prop-panel-_kA6mvB9.cjs → prop-panel-Dzx20-yH.cjs} +2 -2
- package/dist/chunks/{radar-DT93Se3Y.cjs → radar-BQo33pqi.cjs} +2 -2
- package/dist/chunks/{radar-sKiciNsS.js → radar-DJ-g9iCt.js} +2 -2
- package/dist/chunks/{reactions-BASnlqck.cjs → reactions-B64fCmEB.cjs} +2 -2
- package/dist/chunks/{reactions-B4xogsDd.js → reactions-CLwwZmwU.js} +2 -2
- package/dist/chunks/{registry-PxXkPc1Q.js → registry-BEIhIRTY.js} +2 -2
- package/dist/chunks/{registry-C8rYCsXx.js → registry-BUmmzmpq.js} +2 -2
- package/dist/chunks/{registry-EziiQiWO.cjs → registry-CyVCJneg.cjs} +2 -2
- package/dist/chunks/{registry-BfiEkviv.cjs → registry-c80No5j_.cjs} +2 -2
- package/dist/chunks/{retro-button-BxCv-ybi.js → retro-button-BFF6rtya.js} +2 -2
- package/dist/chunks/{retro-button-DfuSdfWj.cjs → retro-button-BQNrjtEi.cjs} +2 -2
- package/dist/chunks/{rive-BHdln8XJ.js → rive-C9ySVu0Q.js} +2 -2
- package/dist/chunks/{rive-cR-Q9Quh.cjs → rive-Dr8J-ESq.cjs} +2 -2
- package/dist/chunks/{runtime-link-MABGYSmW.cjs → runtime-link-D3-QlIsO.cjs} +2 -2
- package/dist/chunks/{runtime-link-CeVpMlOJ.js → runtime-link-mepflyss.js} +2 -2
- package/dist/chunks/scroll-driven-CQbwzCdn.cjs +1 -1
- package/dist/chunks/scroll-driven-LghshrWq.js +1 -1
- package/dist/chunks/{scroll-scene-Bn2EQiJd.js → scroll-scene-BWY-mgkQ.js} +4 -4
- package/dist/chunks/{scroll-scene-CmbLFA1m.cjs → scroll-scene-YLwbThAg.cjs} +4 -4
- package/dist/chunks/{segmented-DHBqMcAF.js → segmented-B-Fafr8-.js} +2 -2
- package/dist/chunks/{segmented-CbZtwChW.cjs → segmented-C1wgQyHN.cjs} +2 -2
- package/dist/chunks/{shader-backdrop-DT1h5Zoc.cjs → shader-backdrop-BXGpaRMH.cjs} +5 -5
- package/dist/chunks/{shader-backdrop-rrssjdMI.js → shader-backdrop-DnT3eoNa.js} +8 -8
- package/dist/chunks/shared-Bf72wLyt.cjs +1 -1
- package/dist/chunks/shared-CkKHWrtJ.js +1 -1
- package/dist/chunks/shared-jkgRH-Hx.cjs +1 -1
- package/dist/chunks/shared-o9CtwHmi.js +1 -1
- package/dist/chunks/{sheet-C63sKkKn.js → sheet-CtmrBo6Z.js} +2 -2
- package/dist/chunks/{sheet-7UwF69TQ.cjs → sheet-V2M4Hqeg.cjs} +2 -2
- package/dist/chunks/sign-DvZ1jHxE.js +1 -1
- package/dist/chunks/sign-RAkQIWrM.cjs +1 -1
- package/dist/chunks/{skeleton-reveal-yj2lioib.js → skeleton-reveal-CVrbqy61.js} +2 -2
- package/dist/chunks/{skeleton-reveal-DfH6IiUG.cjs → skeleton-reveal-qCjodjPN.cjs} +2 -2
- package/dist/chunks/{sparkline-kl8sJ7cP.js → sparkline-B07Pc0F5.js} +7 -6
- package/dist/chunks/{sparkline-CCV_wZ9j.cjs → sparkline-BUBWK0k8.cjs} +7 -6
- package/dist/chunks/{spring-Q3Y-pHuP.cjs → spring-B0v7o7dG.cjs} +2 -2
- package/dist/chunks/{spring-BX7EJst7.js → spring-p9RY-4VF.js} +2 -2
- package/dist/chunks/stagger-B9sKPwQB.js +1 -1
- package/dist/chunks/stagger-DFKwqOQG.cjs +1 -1
- package/dist/chunks/{suggestion-chips-fmrwI2Da.js → suggestion-chips-C5jM-6sb.js} +2 -2
- package/dist/chunks/{suggestion-chips-D9i2FGGX.cjs → suggestion-chips-CnCb3mOH.cjs} +2 -2
- package/dist/chunks/{switch-DnwGGeZj.js → switch-Ch0OQ9TC.js} +2 -2
- package/dist/chunks/{switch-Db4uTUcj.cjs → switch-mpVeEIno.cjs} +2 -2
- package/dist/chunks/{tab-bar-CSx4fTC9.js → tab-bar-DUCZzsih.js} +2 -2
- package/dist/chunks/{tab-bar-DqzNvlDc.cjs → tab-bar-sXS1oYQ3.cjs} +2 -2
- package/dist/chunks/{ticker-j_dmsse0.cjs → ticker-BFq0AxP5.cjs} +2 -2
- package/dist/chunks/{ticker-DaMSl3Kd.js → ticker-DtCFsNm7.js} +2 -2
- package/dist/chunks/{tip-C8T1SdOJ.js → tip-B-mmUYra.js} +2 -2
- package/dist/chunks/{tip-CIh4O-DZ.cjs → tip-ICi0K5SV.cjs} +2 -2
- package/dist/chunks/{toast-stack-kHQdNZDv.cjs → toast-stack-BK0eWurx.cjs} +3 -3
- package/dist/chunks/{toast-stack-COXQ3IOx.js → toast-stack-DBGrj6zP.js} +3 -3
- package/dist/chunks/{tween-DQzuHdMx.cjs → tween-DUYiyPH_.cjs} +2 -2
- package/dist/chunks/{tween-BqIL1A7u.js → tween-DehPKIbN.js} +2 -2
- package/dist/chunks/{upload-progress-CXfoNUhm.js → upload-progress-Bup8Iw7N.js} +2 -2
- package/dist/chunks/{upload-progress-BhyFjwb6.cjs → upload-progress-fBjRmlqD.cjs} +2 -2
- package/dist/chunks/{variants-Dk-FItCT.cjs → variants-BbO5akAC.cjs} +2 -2
- package/dist/chunks/{variants-DY08myqK.js → variants-D7tUTCVW.js} +2 -2
- package/dist/chunks/viewport-BAXHhZLV.js +1 -1
- package/dist/chunks/viewport-EFYGqMNa.cjs +1 -1
- package/dist/chunks/{voice-button-DudPeVqK.cjs → voice-button-A-NPMqJG.cjs} +2 -2
- package/dist/chunks/{voice-button-DdKxtavP.js → voice-button-Bxh_839h.js} +2 -2
- package/dist/chunks/{weather-card-DfXFesfY.cjs → weather-card-CtqBfWnZ.cjs} +5 -5
- package/dist/chunks/{weather-card-Ecgk-JQd.js → weather-card-D2D8kYxm.js} +6 -6
- package/dist/chunks/{worker-canvas-BIuesniy.js → worker-canvas-C0lQZbKy.js} +2 -2
- package/dist/chunks/{worker-canvas-CEbqBgK5.cjs → worker-canvas-DGSgO2ci.cjs} +2 -2
- package/dist/chunks/{xp-bar-BC8UnCHG.cjs → xp-bar-5PeQeB1Y.cjs} +2 -2
- package/dist/chunks/{xp-bar-Cx-dMEMT.js → xp-bar-BGJrZYex.js} +2 -2
- package/dist/components/a11y.cjs +2 -2
- package/dist/components/a11y.js +3 -3
- package/dist/components/ai.cjs +1 -1
- package/dist/components/ai.js +1 -1
- package/dist/components/angular.cjs +9 -9
- package/dist/components/angular.js +9 -9
- package/dist/components/background.cjs +3 -3
- package/dist/components/background.js +3 -3
- package/dist/components/bridge.cjs +2 -2
- package/dist/components/bridge.js +2 -2
- package/dist/components/cards.cjs +3 -3
- package/dist/components/cards.js +3 -3
- package/dist/components/click.cjs +4 -4
- package/dist/components/click.js +4 -4
- package/dist/components/core.cjs +1 -1
- package/dist/components/core.js +1 -1
- package/dist/components/depth.cjs +4 -4
- package/dist/components/depth.js +4 -4
- package/dist/components/design.cjs +4 -4
- package/dist/components/design.js +4 -4
- package/dist/components/dotlottie.cjs +5 -5
- package/dist/components/dotlottie.js +5 -5
- package/dist/components/dsl.cjs +3 -3
- package/dist/components/dsl.js +3 -3
- package/dist/components/effects.cjs +64 -30
- package/dist/components/effects.d.cts +0 -88
- package/dist/components/effects.d.ts +0 -88
- package/dist/components/effects.js +72 -38
- package/dist/components/engine.cjs +2 -2
- package/dist/components/engine.js +3 -3
- package/dist/components/feedback.cjs +2 -2
- package/dist/components/feedback.js +2 -2
- package/dist/components/fx-3d.cjs +24 -6
- package/dist/components/fx-3d.d.cts +0 -19
- package/dist/components/fx-3d.d.ts +0 -19
- package/dist/components/fx-3d.js +24 -6
- package/dist/components/fx-ai.cjs +3 -3
- package/dist/components/fx-ai.js +3 -3
- package/dist/components/fx-chart.cjs +3 -3
- package/dist/components/fx-chart.js +3 -3
- package/dist/components/fx-cinema.cjs +3 -3
- package/dist/components/fx-cinema.js +3 -3
- package/dist/components/fx-cyber.cjs +3 -3
- package/dist/components/fx-cyber.js +3 -3
- package/dist/components/fx-festival.cjs +3 -3
- package/dist/components/fx-festival.js +3 -3
- package/dist/components/fx-focus.cjs +3 -3
- package/dist/components/fx-focus.js +3 -3
- package/dist/components/fx-form.cjs +3 -3
- package/dist/components/fx-form.js +3 -3
- package/dist/components/fx-game.cjs +3 -3
- package/dist/components/fx-game.js +3 -3
- package/dist/components/fx-genart.cjs +3 -3
- package/dist/components/fx-genart.js +3 -3
- package/dist/components/fx-geo.cjs +3 -3
- package/dist/components/fx-geo.js +3 -3
- package/dist/components/fx-gesture.cjs +3 -3
- package/dist/components/fx-gesture.js +3 -3
- package/dist/components/fx-gpu.cjs +5 -5
- package/dist/components/fx-gpu.js +5 -5
- package/dist/components/fx-light.cjs +27 -6
- package/dist/components/fx-light.d.cts +0 -22
- package/dist/components/fx-light.d.ts +0 -22
- package/dist/components/fx-light.js +31 -10
- package/dist/components/fx-lottie.cjs +3 -3
- package/dist/components/fx-lottie.js +3 -3
- package/dist/components/fx-morph.cjs +3 -3
- package/dist/components/fx-morph.js +3 -3
- package/dist/components/fx-music.cjs +24 -8
- package/dist/components/fx-music.d.cts +0 -39
- package/dist/components/fx-music.d.ts +0 -39
- package/dist/components/fx-music.js +25 -9
- package/dist/components/fx-organic.cjs +3 -3
- package/dist/components/fx-organic.js +3 -3
- package/dist/components/fx-paper.cjs +3 -3
- package/dist/components/fx-paper.js +3 -3
- package/dist/components/fx-perf.cjs +3 -3
- package/dist/components/fx-perf.js +3 -3
- package/dist/components/fx-physics.cjs +25 -7
- package/dist/components/fx-physics.d.cts +0 -19
- package/dist/components/fx-physics.d.ts +0 -19
- package/dist/components/fx-physics.js +29 -11
- package/dist/components/fx-retro.cjs +3 -3
- package/dist/components/fx-retro.js +3 -3
- package/dist/components/fx-safe.cjs +3 -3
- package/dist/components/fx-safe.js +3 -3
- package/dist/components/fx-shop.cjs +3 -3
- package/dist/components/fx-shop.js +3 -3
- package/dist/components/fx-social.cjs +3 -3
- package/dist/components/fx-social.js +3 -3
- package/dist/components/fx-spatial.cjs +3 -3
- package/dist/components/fx-spatial.js +3 -3
- package/dist/components/fx-surface.cjs +3 -3
- package/dist/components/fx-surface.js +3 -3
- package/dist/components/fx-text.cjs +3 -3
- package/dist/components/fx-text.js +3 -3
- package/dist/components/fx-transitions.cjs +4 -4
- package/dist/components/fx-transitions.js +4 -4
- package/dist/components/fx-video.cjs +3 -3
- package/dist/components/fx-video.js +3 -3
- package/dist/components/fx-weather.cjs +4 -4
- package/dist/components/fx-weather.js +4 -4
- package/dist/components/fx.cjs +6 -6
- package/dist/components/fx.js +7 -7
- package/dist/components/fx2.cjs +7 -7
- package/dist/components/fx2.d.cts +0 -133
- package/dist/components/fx2.d.ts +0 -133
- package/dist/components/fx2.js +8 -8
- package/dist/components/gesture.cjs +4 -4
- package/dist/components/gesture.js +5 -5
- package/dist/components/gl-model.cjs +5 -5
- package/dist/components/gl-model.js +5 -5
- package/dist/components/interaction.cjs +2 -2
- package/dist/components/interaction.js +2 -2
- package/dist/components/jsx.cjs +1 -1
- package/dist/components/jsx.js +1 -1
- package/dist/components/layout.cjs +3 -3
- package/dist/components/layout.js +3 -3
- package/dist/components/lazy.cjs +1 -1
- package/dist/components/lazy.js +1 -1
- package/dist/components/lite.cjs +110 -93
- package/dist/components/lite.js +110 -94
- package/dist/components/marketplace.cjs +4 -4
- package/dist/components/marketplace.js +5 -5
- package/dist/components/native.cjs +4 -4
- package/dist/components/native.js +4 -4
- package/dist/components/offscreen.cjs +69 -0
- package/dist/components/offscreen.d.cts +10 -0
- package/dist/components/offscreen.d.ts +10 -0
- package/dist/components/offscreen.js +65 -0
- package/dist/components/packs.cjs +2 -2
- package/dist/components/packs.js +2 -2
- package/dist/components/page.cjs +3 -3
- package/dist/components/page.js +4 -4
- package/dist/components/perf-tasks.cjs +69 -0
- package/dist/components/perf-tasks.d.cts +23 -0
- package/dist/components/perf-tasks.d.ts +23 -0
- package/dist/components/perf-tasks.js +65 -0
- package/dist/components/perf.cjs +3 -2
- package/dist/components/perf.d.cts +12 -4
- package/dist/components/perf.d.ts +12 -4
- package/dist/components/perf.js +3 -3
- package/dist/components/physics.cjs +3 -3
- package/dist/components/physics.js +4 -4
- package/dist/components/plugins.cjs +6 -6
- package/dist/components/plugins.js +6 -6
- package/dist/components/react.cjs +1 -1
- package/dist/components/react.js +1 -1
- package/dist/components/reveal.cjs +2 -2
- package/dist/components/reveal.js +2 -2
- package/dist/components/snap-carousel.cjs +4 -4
- package/dist/components/snap-carousel.js +4 -4
- package/dist/components/solid.cjs +9 -9
- package/dist/components/solid.js +9 -9
- package/dist/components/svelte.cjs +9 -9
- package/dist/components/svelte.js +9 -9
- package/dist/components/svg.cjs +2 -2
- package/dist/components/svg.js +2 -2
- package/dist/components/text.cjs +3 -3
- package/dist/components/text.js +3 -3
- package/dist/components/timeline.cjs +3 -3
- package/dist/components/timeline.js +4 -4
- package/dist/components/tokens.cjs +1 -1
- package/dist/components/tokens.js +1 -1
- package/dist/components/transitions.cjs +2 -2
- package/dist/components/transitions.js +2 -2
- package/dist/components/ui.cjs +4 -4
- package/dist/components/ui.js +5 -5
- package/dist/components/vue.cjs +9 -9
- package/dist/components/vue.js +9 -9
- package/dist/components/webgl.cjs +2 -2
- package/dist/components/webgl.js +2 -2
- package/dist/components/widgets.cjs +63 -62
- package/dist/components/widgets.js +112 -111
- package/dist/components.cjs +10 -9
- package/dist/components.d.cts +13 -5
- package/dist/components.d.ts +13 -5
- package/dist/components.js +11 -11
- package/dist/components.umd.js +3 -3
- package/dist/effects/achievement-unlock.cjs +3 -3
- package/dist/effects/achievement-unlock.js +3 -3
- package/dist/effects/aurora-veil.cjs +4 -4
- package/dist/effects/aurora-veil.js +4 -4
- package/dist/effects/badge-pop.cjs +3 -3
- package/dist/effects/badge-pop.js +3 -3
- package/dist/effects/bars-grow.cjs +3 -3
- package/dist/effects/bars-grow.js +3 -3
- package/dist/effects/beat-bounce.cjs +5 -5
- package/dist/effects/beat-bounce.js +5 -5
- package/dist/effects/blob-button.cjs +3 -3
- package/dist/effects/blob-button.js +3 -3
- package/dist/effects/bloom.cjs +3 -3
- package/dist/effects/bloom.js +3 -3
- package/dist/effects/breathe.cjs +3 -3
- package/dist/effects/breathe.js +3 -3
- package/dist/effects/brushed-metal.cjs +4 -4
- package/dist/effects/brushed-metal.js +4 -4
- package/dist/effects/camera-dolly.cjs +3 -3
- package/dist/effects/camera-dolly.js +3 -3
- package/dist/effects/card-flip-3d.cjs +4 -4
- package/dist/effects/card-flip-3d.js +4 -4
- package/dist/effects/chest-open.cjs +3 -3
- package/dist/effects/chest-open.js +3 -3
- package/dist/effects/cloth.cjs +4 -4
- package/dist/effects/cloth.js +4 -4
- package/dist/effects/coin-burst.cjs +3 -3
- package/dist/effects/coin-burst.js +3 -3
- package/dist/effects/color-pulse.cjs +3 -3
- package/dist/effects/color-pulse.js +3 -3
- package/dist/effects/crt-power.cjs +3 -3
- package/dist/effects/crt-power.js +3 -3
- package/dist/effects/crumple.cjs +3 -3
- package/dist/effects/crumple.js +3 -3
- package/dist/effects/data-decode.cjs +3 -3
- package/dist/effects/data-decode.js +3 -3
- package/dist/effects/day-cycle.cjs +4 -4
- package/dist/effects/day-cycle.js +4 -4
- package/dist/effects/depth-in.cjs +3 -3
- package/dist/effects/depth-in.js +3 -3
- package/dist/effects/depth-pop.cjs +3 -3
- package/dist/effects/depth-pop.js +3 -3
- package/dist/effects/depth-stack.cjs +4 -4
- package/dist/effects/depth-stack.js +4 -4
- package/dist/effects/dolly-in.cjs +3 -3
- package/dist/effects/dolly-in.js +3 -3
- package/dist/effects/dots-pop.cjs +3 -3
- package/dist/effects/dots-pop.js +3 -3
- package/dist/effects/field-shake.cjs +3 -3
- package/dist/effects/field-shake.js +3 -3
- package/dist/effects/field-success.cjs +3 -3
- package/dist/effects/field-success.js +3 -3
- package/dist/effects/film-burn.cjs +3 -3
- package/dist/effects/film-burn.js +3 -3
- package/dist/effects/fire.cjs +5 -5
- package/dist/effects/fire.js +5 -5
- package/dist/effects/fireflies.cjs +5 -5
- package/dist/effects/fireflies.js +5 -5
- package/dist/effects/firework-burst.cjs +3 -3
- package/dist/effects/firework-burst.js +3 -3
- package/dist/effects/flip-chars.cjs +3 -3
- package/dist/effects/flip-chars.js +3 -3
- package/dist/effects/fluid.cjs +5 -5
- package/dist/effects/fluid.js +5 -5
- package/dist/effects/fly-to-cart.cjs +3 -3
- package/dist/effects/fly-to-cart.js +3 -3
- package/dist/effects/focus-draw.cjs +3 -3
- package/dist/effects/focus-draw.js +3 -3
- package/dist/effects/focus-glow.cjs +3 -3
- package/dist/effects/focus-glow.js +3 -3
- package/dist/effects/fog.cjs +4 -4
- package/dist/effects/fog.js +4 -4
- package/dist/effects/font-breathe.cjs +3 -3
- package/dist/effects/font-breathe.js +3 -3
- package/dist/effects/form-cascade.cjs +3 -3
- package/dist/effects/form-cascade.js +3 -3
- package/dist/effects/gen-skeleton.cjs +3 -3
- package/dist/effects/gen-skeleton.js +3 -3
- package/dist/effects/glass-frost.cjs +3 -3
- package/dist/effects/glass-frost.js +3 -3
- package/dist/effects/glitch-text.cjs +3 -3
- package/dist/effects/glitch-text.js +3 -3
- package/dist/effects/globe-spin.cjs +3 -3
- package/dist/effects/globe-spin.js +3 -3
- package/dist/effects/god-rays.cjs +4 -4
- package/dist/effects/god-rays.js +4 -4
- package/dist/effects/gpu-lift.cjs +3 -3
- package/dist/effects/gpu-lift.js +3 -3
- package/dist/effects/grain-flicker.cjs +3 -3
- package/dist/effects/grain-flicker.js +3 -3
- package/dist/effects/halftone-in.cjs +3 -3
- package/dist/effects/halftone-in.js +3 -3
- package/dist/effects/highlight-sweep.cjs +3 -3
- package/dist/effects/highlight-sweep.js +3 -3
- package/dist/effects/hologram.cjs +3 -3
- package/dist/effects/hologram.js +3 -3
- package/dist/effects/hud-frame.cjs +3 -3
- package/dist/effects/hud-frame.js +3 -3
- package/dist/effects/icon-pop.cjs +3 -3
- package/dist/effects/icon-pop.js +3 -3
- package/dist/effects/icon-swap.cjs +3 -3
- package/dist/effects/icon-swap.js +3 -3
- package/dist/effects/idle-reveal.cjs +3 -3
- package/dist/effects/idle-reveal.js +3 -3
- package/dist/effects/ink.cjs +5 -5
- package/dist/effects/ink.js +5 -5
- package/dist/effects/jump-cut.cjs +3 -3
- package/dist/effects/jump-cut.js +3 -3
- package/dist/effects/kaleido.cjs +3 -3
- package/dist/effects/kaleido.js +3 -3
- package/dist/effects/label-float.cjs +3 -3
- package/dist/effects/label-float.js +3 -3
- package/dist/effects/lantern-rise.cjs +3 -3
- package/dist/effects/lantern-rise.js +3 -3
- package/dist/effects/leaves.cjs +5 -5
- package/dist/effects/leaves.js +5 -5
- package/dist/effects/letterbox.cjs +3 -3
- package/dist/effects/letterbox.js +3 -3
- package/dist/effects/level-up.cjs +3 -3
- package/dist/effects/level-up.js +3 -3
- package/dist/effects/light-follow.cjs +4 -4
- package/dist/effects/light-follow.js +4 -4
- package/dist/effects/lightning.cjs +4 -4
- package/dist/effects/lightning.js +4 -4
- package/dist/effects/line-draw.cjs +3 -3
- package/dist/effects/line-draw.js +3 -3
- package/dist/effects/liquid-text.cjs +3 -3
- package/dist/effects/liquid-text.js +3 -3
- package/dist/effects/liquid-wipe.cjs +3 -3
- package/dist/effects/liquid-wipe.js +3 -3
- package/dist/effects/lottie-play.cjs +3 -3
- package/dist/effects/lottie-play.js +3 -3
- package/dist/effects/magnet.cjs +4 -4
- package/dist/effects/magnet.js +4 -4
- package/dist/effects/marching-ants.cjs +3 -3
- package/dist/effects/marching-ants.js +3 -3
- package/dist/effects/marker-pulse.cjs +3 -3
- package/dist/effects/marker-pulse.js +3 -3
- package/dist/effects/mention-glow.cjs +3 -3
- package/dist/effects/mention-glow.js +3 -3
- package/dist/effects/mesh-drift.cjs +3 -3
- package/dist/effects/mesh-drift.js +3 -3
- package/dist/effects/message-in.cjs +3 -3
- package/dist/effects/message-in.js +3 -3
- package/dist/effects/mosaic-flip.cjs +3 -3
- package/dist/effects/mosaic-flip.js +3 -3
- package/dist/effects/neon-ignite.cjs +3 -3
- package/dist/effects/neon-ignite.js +3 -3
- package/dist/effects/neon-pulse.cjs +3 -3
- package/dist/effects/neon-pulse.js +3 -3
- package/dist/effects/neon-write.cjs +3 -3
- package/dist/effects/neon-write.js +3 -3
- package/dist/effects/neu-press.cjs +3 -3
- package/dist/effects/neu-press.js +3 -3
- package/dist/effects/noise-reveal.cjs +3 -3
- package/dist/effects/noise-reveal.js +3 -3
- package/dist/effects/number-roll.cjs +3 -3
- package/dist/effects/number-roll.js +3 -3
- package/dist/effects/orbit-camera.cjs +4 -4
- package/dist/effects/orbit-camera.js +4 -4
- package/dist/effects/orbit-in.cjs +3 -3
- package/dist/effects/orbit-in.js +3 -3
- package/dist/effects/origami.cjs +4 -4
- package/dist/effects/origami.js +4 -4
- package/dist/effects/page-curl.cjs +3 -3
- package/dist/effects/page-curl.js +3 -3
- package/dist/effects/pan-reveal.cjs +3 -3
- package/dist/effects/pan-reveal.js +3 -3
- package/dist/effects/paper-unfold.cjs +3 -3
- package/dist/effects/paper-unfold.js +3 -3
- package/dist/effects/particle-text.cjs +3 -3
- package/dist/effects/particle-text.js +3 -3
- package/dist/effects/path-morph.cjs +3 -3
- package/dist/effects/path-morph.js +3 -3
- package/dist/effects/pearlescent.cjs +4 -4
- package/dist/effects/pearlescent.js +4 -4
- package/dist/effects/pencil-sketch.cjs +3 -3
- package/dist/effects/pencil-sketch.js +3 -3
- package/dist/effects/pin-drop.cjs +3 -3
- package/dist/effects/pin-drop.js +3 -3
- package/dist/effects/pinball.cjs +4 -4
- package/dist/effects/pinball.js +4 -4
- package/dist/effects/pinch-hint.cjs +3 -3
- package/dist/effects/pinch-hint.js +3 -3
- package/dist/effects/pixelate-in.cjs +3 -3
- package/dist/effects/pixelate-in.js +3 -3
- package/dist/effects/pointer-shadow.cjs +4 -4
- package/dist/effects/pointer-shadow.js +4 -4
- package/dist/effects/portal-open.cjs +3 -3
- package/dist/effects/portal-open.js +3 -3
- package/dist/effects/price-flip.cjs +3 -3
- package/dist/effects/price-flip.js +3 -3
- package/dist/effects/product-spin.cjs +4 -4
- package/dist/effects/product-spin.js +4 -4
- package/dist/effects/rack-focus.cjs +3 -3
- package/dist/effects/rack-focus.js +3 -3
- package/dist/effects/radial-spectrum.cjs +5 -5
- package/dist/effects/radial-spectrum.js +5 -5
- package/dist/effects/rain-glass.cjs +4 -4
- package/dist/effects/rain-glass.js +4 -4
- package/dist/effects/reaction-burst.cjs +3 -3
- package/dist/effects/reaction-burst.js +3 -3
- package/dist/effects/read-receipt.cjs +3 -3
- package/dist/effects/read-receipt.js +3 -3
- package/dist/effects/refraction.cjs +4 -4
- package/dist/effects/refraction.js +4 -4
- package/dist/effects/ring-sweep.cjs +3 -3
- package/dist/effects/ring-sweep.js +3 -3
- package/dist/effects/ripple-dissolve.cjs +3 -3
- package/dist/effects/ripple-dissolve.js +3 -3
- package/dist/effects/rope.cjs +4 -4
- package/dist/effects/rope.js +4 -4
- package/dist/effects/route-draw.cjs +3 -3
- package/dist/effects/route-draw.js +3 -3
- package/dist/effects/safe-fade.cjs +3 -3
- package/dist/effects/safe-fade.js +3 -3
- package/dist/effects/sakura.cjs +5 -5
- package/dist/effects/sakura.js +5 -5
- package/dist/effects/sale-shine.cjs +3 -3
- package/dist/effects/sale-shine.js +3 -3
- package/dist/effects/sankey-flow.cjs +3 -3
- package/dist/effects/sankey-flow.js +3 -3
- package/dist/effects/scanline-sweep.cjs +3 -3
- package/dist/effects/scanline-sweep.js +3 -3
- package/dist/effects/shatter.cjs +3 -3
- package/dist/effects/shatter.js +3 -3
- package/dist/effects/smoke.cjs +5 -5
- package/dist/effects/smoke.js +5 -5
- package/dist/effects/snowfall.cjs +4 -4
- package/dist/effects/snowfall.js +4 -4
- package/dist/effects/soft-body.cjs +4 -4
- package/dist/effects/soft-body.js +4 -4
- package/dist/effects/sound-particles.cjs +5 -5
- package/dist/effects/sound-particles.js +5 -5
- package/dist/effects/spatial-float.cjs +3 -3
- package/dist/effects/spatial-float.js +3 -3
- package/dist/effects/spectrum-mirror.cjs +5 -5
- package/dist/effects/spectrum-mirror.js +5 -5
- package/dist/effects/splash.cjs +5 -5
- package/dist/effects/splash.js +5 -5
- package/dist/effects/spooky-float.cjs +3 -3
- package/dist/effects/spooky-float.js +3 -3
- package/dist/effects/stock-pulse.cjs +3 -3
- package/dist/effects/stock-pulse.js +3 -3
- package/dist/effects/stream-text.cjs +3 -3
- package/dist/effects/stream-text.js +3 -3
- package/dist/effects/stroke-draw.cjs +3 -3
- package/dist/effects/stroke-draw.js +3 -3
- package/dist/effects/success-check.cjs +3 -3
- package/dist/effects/success-check.js +3 -3
- package/dist/effects/swipe-hint.cjs +3 -3
- package/dist/effects/swipe-hint.js +3 -3
- package/dist/effects/text-trail.cjs +3 -3
- package/dist/effects/text-trail.js +3 -3
- package/dist/effects/thinking-glow.cjs +3 -3
- package/dist/effects/thinking-glow.js +3 -3
- package/dist/effects/tilt-wobble.cjs +3 -3
- package/dist/effects/tilt-wobble.js +3 -3
- package/dist/effects/typing-dots.cjs +3 -3
- package/dist/effects/typing-dots.js +3 -3
- package/dist/effects/underline-sweep.cjs +3 -3
- package/dist/effects/underline-sweep.js +3 -3
- package/dist/effects/vhs-glitch.cjs +3 -3
- package/dist/effects/vhs-glitch.js +3 -3
- package/dist/effects/vine-grow.cjs +3 -3
- package/dist/effects/vine-grow.js +3 -3
- package/dist/effects/vinyl-spin.cjs +5 -5
- package/dist/effects/vinyl-spin.js +5 -5
- package/dist/effects/voice-wave.cjs +3 -3
- package/dist/effects/voice-wave.js +3 -3
- package/dist/effects/water-drop.cjs +3 -3
- package/dist/effects/water-drop.js +3 -3
- package/dist/effects/watercolor.cjs +3 -3
- package/dist/effects/watercolor.js +3 -3
- package/dist/effects/waveform-scope.cjs +5 -5
- package/dist/effects/waveform-scope.js +5 -5
- package/dist/effects/xmas-snow.cjs +3 -3
- package/dist/effects/xmas-snow.js +3 -3
- package/dist/effects/xp-gain.cjs +3 -3
- package/dist/effects/xp-gain.js +3 -3
- package/dist/effects/y2k-shine.cjs +3 -3
- package/dist/effects/y2k-shine.js +3 -3
- package/dist/element.cjs +1 -1
- package/dist/element.js +1 -1
- package/dist/element.umd.js +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.js +3 -3
- package/dist/index.umd.js +3 -3
- package/dist/llms-full.txt +1 -1
- package/dist/llms.txt +1 -1
- package/dist/manifest.json +6 -3
- package/dist/presets/extended.cjs +1 -1
- package/dist/presets/extended.js +1 -1
- package/dist/presets-extended.umd.js +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.js +1 -1
- package/dist/runtime/drag-snap.cjs +2 -2
- package/dist/runtime/drag-snap.iife.js +1 -1
- package/dist/runtime/drag-snap.js +2 -2
- package/dist/runtime/format-apng.cjs +5 -5
- package/dist/runtime/format-apng.iife.js +1 -1
- package/dist/runtime/format-apng.js +5 -5
- package/dist/runtime/format-css.cjs +5 -5
- package/dist/runtime/format-css.iife.js +1 -1
- package/dist/runtime/format-css.js +5 -5
- package/dist/runtime/format-gif.cjs +5 -5
- package/dist/runtime/format-gif.iife.js +1 -1
- package/dist/runtime/format-gif.js +5 -5
- package/dist/runtime/format-gltf.cjs +2 -2
- package/dist/runtime/format-gltf.iife.js +1 -1
- package/dist/runtime/format-gltf.js +2 -2
- package/dist/runtime/format-motion.cjs +5 -5
- package/dist/runtime/format-motion.iife.js +1 -1
- package/dist/runtime/format-motion.js +5 -5
- package/dist/runtime/format-obj.cjs +2 -2
- package/dist/runtime/format-obj.iife.js +1 -1
- package/dist/runtime/format-obj.js +2 -2
- package/dist/runtime/format-scene.cjs +2 -2
- package/dist/runtime/format-scene.iife.js +1 -1
- package/dist/runtime/format-scene.js +2 -2
- package/dist/runtime/format-sprite.cjs +4 -4
- package/dist/runtime/format-sprite.iife.js +1 -1
- package/dist/runtime/format-sprite.js +4 -4
- package/dist/runtime/format-svg.cjs +4 -4
- package/dist/runtime/format-svg.iife.js +1 -1
- package/dist/runtime/format-svg.js +4 -4
- package/dist/runtime/format-webp.cjs +5 -5
- package/dist/runtime/format-webp.iife.js +1 -1
- package/dist/runtime/format-webp.js +5 -5
- package/dist/runtime/gl.cjs +2 -2
- package/dist/runtime/gl.iife.js +1 -1
- package/dist/runtime/gl.js +2 -2
- package/dist/runtime/gltf-anim.cjs +2 -2
- package/dist/runtime/gltf-anim.iife.js +1 -1
- package/dist/runtime/gltf-anim.js +2 -2
- package/dist/runtime/gltf-decoders.cjs +2 -2
- package/dist/runtime/gltf-decoders.iife.js +1 -1
- package/dist/runtime/gltf-decoders.js +2 -2
- package/dist/runtime/lottie-state.cjs +2 -2
- package/dist/runtime/lottie-state.iife.js +1 -1
- package/dist/runtime/lottie-state.js +2 -2
- package/dist/runtime/physics.cjs +2 -2
- package/dist/runtime/physics.iife.js +1 -1
- package/dist/runtime/physics.js +2 -2
- package/dist/runtime/scroll.cjs +3 -3
- package/dist/runtime/scroll.iife.js +1 -1
- package/dist/runtime/scroll.js +3 -3
- package/dist/runtime/smooth.cjs +2 -2
- package/dist/runtime/smooth.iife.js +1 -1
- package/dist/runtime/smooth.js +2 -2
- package/dist/runtime/text.cjs +2 -2
- package/dist/runtime/text.iife.js +1 -1
- package/dist/runtime/text.js +2 -2
- package/dist/runtime/vector.cjs +4 -4
- package/dist/runtime/vector.iife.js +1 -1
- package/dist/runtime/vector.js +4 -4
- package/dist/runtime.cjs +4 -4
- package/dist/runtime.d.cts +1 -1
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.iife.js +2 -2
- package/dist/runtime.js +6 -6
- package/dist/solid.cjs +1 -1
- package/dist/solid.js +1 -1
- package/dist/svelte.cjs +1 -1
- package/dist/svelte.js +1 -1
- package/dist/vue.cjs +1 -1
- package/dist/vue.js +1 -1
- package/dist/widgets/add-to-cart.cjs +6 -6
- package/dist/widgets/add-to-cart.js +6 -6
- package/dist/widgets/badge-wall.cjs +3 -3
- package/dist/widgets/badge-wall.js +3 -3
- package/dist/widgets/bar-chart.cjs +2 -2
- package/dist/widgets/bar-chart.js +2 -2
- package/dist/widgets/bg-generator.cjs +4 -4
- package/dist/widgets/bg-generator.js +4 -4
- package/dist/widgets/carousel.cjs +3 -3
- package/dist/widgets/carousel.js +3 -3
- package/dist/widgets/cart-drawer.cjs +3 -3
- package/dist/widgets/cart-drawer.js +3 -3
- package/dist/widgets/chapter-nav.cjs +2 -2
- package/dist/widgets/chapter-nav.js +2 -2
- package/dist/widgets/chat-composer.cjs +2 -2
- package/dist/widgets/chat-composer.js +2 -2
- package/dist/widgets/clock-control.cjs +2 -2
- package/dist/widgets/clock-control.js +2 -2
- package/dist/widgets/code-export.cjs +3 -3
- package/dist/widgets/code-export.js +3 -3
- package/dist/widgets/color-picker.cjs +3 -3
- package/dist/widgets/color-picker.js +3 -3
- package/dist/widgets/command-palette.cjs +3 -3
- package/dist/widgets/command-palette.js +3 -3
- package/dist/widgets/compare.cjs +5 -5
- package/dist/widgets/compare.js +5 -5
- package/dist/widgets/countdown.cjs +3 -3
- package/dist/widgets/countdown.js +3 -3
- package/dist/widgets/cube-gallery.cjs +2 -2
- package/dist/widgets/cube-gallery.js +2 -2
- package/dist/widgets/date-picker.cjs +3 -3
- package/dist/widgets/date-picker.js +3 -3
- package/dist/widgets/disclosure.cjs +3 -3
- package/dist/widgets/disclosure.js +3 -3
- package/dist/widgets/dock.cjs +4 -4
- package/dist/widgets/dock.js +4 -4
- package/dist/widgets/dotlottie.cjs +5 -5
- package/dist/widgets/dotlottie.js +5 -5
- package/dist/widgets/equalizer.cjs +3 -3
- package/dist/widgets/equalizer.js +3 -3
- package/dist/widgets/festival-banner.cjs +3 -3
- package/dist/widgets/festival-banner.js +3 -3
- package/dist/widgets/field.cjs +3 -3
- package/dist/widgets/field.js +3 -3
- package/dist/widgets/file-drop.cjs +2 -2
- package/dist/widgets/file-drop.js +2 -2
- package/dist/widgets/gauge.cjs +6 -5
- package/dist/widgets/gauge.js +6 -5
- package/dist/widgets/gen-art.cjs +7 -6
- package/dist/widgets/gen-art.js +7 -6
- package/dist/widgets/gesture-sticker.cjs +3 -3
- package/dist/widgets/gesture-sticker.js +3 -3
- package/dist/widgets/gl-model.cjs +5 -5
- package/dist/widgets/gl-model.js +5 -5
- package/dist/widgets/gl-scene.cjs +5 -5
- package/dist/widgets/gl-scene.js +5 -5
- package/dist/widgets/globe.cjs +3 -3
- package/dist/widgets/globe.js +3 -3
- package/dist/widgets/gpu-particles.cjs +3 -3
- package/dist/widgets/gpu-particles.js +3 -3
- package/dist/widgets/gyro-card.cjs +3 -3
- package/dist/widgets/gyro-card.js +3 -3
- package/dist/widgets/hero-video.cjs +3 -3
- package/dist/widgets/hero-video.js +3 -3
- package/dist/widgets/hud-panel.cjs +2 -2
- package/dist/widgets/hud-panel.js +2 -2
- package/dist/widgets/hydrate.cjs +2 -2
- package/dist/widgets/hydrate.js +2 -2
- package/dist/widgets/install-button.cjs +2 -2
- package/dist/widgets/install-button.js +2 -2
- package/dist/widgets/kanban.cjs +2 -2
- package/dist/widgets/kanban.js +2 -2
- package/dist/widgets/keyframe-editor.cjs +8 -7
- package/dist/widgets/keyframe-editor.js +8 -7
- package/dist/widgets/kpi.cjs +7 -6
- package/dist/widgets/kpi.js +7 -6
- package/dist/widgets/leaderboard.cjs +3 -3
- package/dist/widgets/leaderboard.js +3 -3
- package/dist/widgets/liquid-nav.cjs +3 -3
- package/dist/widgets/liquid-nav.js +3 -3
- package/dist/widgets/location-card.cjs +3 -3
- package/dist/widgets/location-card.js +3 -3
- package/dist/widgets/lottie-icon.cjs +4 -4
- package/dist/widgets/lottie-icon.js +4 -4
- package/dist/widgets/lottie-player.cjs +5 -5
- package/dist/widgets/lottie-player.js +5 -5
- package/dist/widgets/lottie.cjs +3 -3
- package/dist/widgets/lottie.js +3 -3
- package/dist/widgets/lyrics.cjs +3 -3
- package/dist/widgets/lyrics.js +3 -3
- package/dist/widgets/masonry-flow.cjs +2 -2
- package/dist/widgets/masonry-flow.js +2 -2
- package/dist/widgets/menu-toggle.cjs +3 -3
- package/dist/widgets/menu-toggle.js +3 -3
- package/dist/widgets/menu.cjs +3 -3
- package/dist/widgets/menu.js +3 -3
- package/dist/widgets/message-list.cjs +2 -2
- package/dist/widgets/message-list.js +2 -2
- package/dist/widgets/milestones.cjs +4 -4
- package/dist/widgets/milestones.js +4 -4
- package/dist/widgets/modal.cjs +3 -3
- package/dist/widgets/modal.js +3 -3
- package/dist/widgets/motion-inspector.cjs +3 -3
- package/dist/widgets/motion-inspector.js +3 -3
- package/dist/widgets/motion-prefs.cjs +3 -3
- package/dist/widgets/motion-prefs.js +3 -3
- package/dist/widgets/motion-prompt.cjs +2 -2
- package/dist/widgets/motion-prompt.js +2 -2
- package/dist/widgets/motion-spec.cjs +4 -4
- package/dist/widgets/motion-spec.js +4 -4
- package/dist/widgets/motion.cjs +3 -3
- package/dist/widgets/motion.js +3 -3
- package/dist/widgets/music-player.cjs +7 -6
- package/dist/widgets/music-player.js +7 -6
- package/dist/widgets/native-preview.cjs +4 -4
- package/dist/widgets/native-preview.js +4 -4
- package/dist/widgets/nav-morph.cjs +3 -3
- package/dist/widgets/nav-morph.js +3 -3
- package/dist/widgets/notification-bell.cjs +2 -2
- package/dist/widgets/notification-bell.js +2 -2
- package/dist/widgets/odometer.cjs +4 -3
- package/dist/widgets/odometer.js +4 -3
- package/dist/widgets/organic-card.cjs +3 -3
- package/dist/widgets/organic-card.js +3 -3
- package/dist/widgets/otp.cjs +3 -3
- package/dist/widgets/otp.js +3 -3
- package/dist/widgets/pagination.cjs +3 -3
- package/dist/widgets/pagination.js +3 -3
- package/dist/widgets/panorama.cjs +8 -7
- package/dist/widgets/panorama.js +8 -7
- package/dist/widgets/parallax-layers.cjs +4 -4
- package/dist/widgets/parallax-layers.js +7 -7
- package/dist/widgets/pause-all.cjs +2 -2
- package/dist/widgets/pause-all.js +2 -2
- package/dist/widgets/perf-monitor.cjs +3 -3
- package/dist/widgets/perf-monitor.js +3 -3
- package/dist/widgets/physics-playground.cjs +5 -5
- package/dist/widgets/physics-playground.js +5 -5
- package/dist/widgets/plugin-card.cjs +4 -4
- package/dist/widgets/plugin-card.js +4 -4
- package/dist/widgets/plugin-store.cjs +4 -4
- package/dist/widgets/plugin-store.js +4 -4
- package/dist/widgets/presence.cjs +3 -3
- package/dist/widgets/presence.js +3 -3
- package/dist/widgets/prize-wheel.cjs +3 -3
- package/dist/widgets/prize-wheel.js +3 -3
- package/dist/widgets/product-gallery.cjs +3 -3
- package/dist/widgets/product-gallery.js +3 -3
- package/dist/widgets/progress-ring.cjs +4 -3
- package/dist/widgets/progress-ring.js +4 -3
- package/dist/widgets/prop-panel.cjs +3 -3
- package/dist/widgets/prop-panel.js +3 -3
- package/dist/widgets/pull-cord.cjs +7 -6
- package/dist/widgets/pull-cord.js +7 -6
- package/dist/widgets/radar.cjs +3 -3
- package/dist/widgets/radar.js +3 -3
- package/dist/widgets/reactions.cjs +3 -3
- package/dist/widgets/reactions.js +3 -3
- package/dist/widgets/red-envelope.cjs +4 -4
- package/dist/widgets/red-envelope.js +4 -4
- package/dist/widgets/retro-button.cjs +3 -3
- package/dist/widgets/retro-button.js +3 -3
- package/dist/widgets/rive.cjs +3 -3
- package/dist/widgets/rive.js +3 -3
- package/dist/widgets/route-transition.cjs +2 -2
- package/dist/widgets/route-transition.js +2 -2
- package/dist/widgets/scene.cjs +3 -3
- package/dist/widgets/scene.js +3 -3
- package/dist/widgets/scroll-ring.cjs +4 -4
- package/dist/widgets/scroll-ring.js +7 -7
- package/dist/widgets/scroll-scene.cjs +5 -5
- package/dist/widgets/scroll-scene.js +5 -5
- package/dist/widgets/segmented.cjs +3 -3
- package/dist/widgets/segmented.js +3 -3
- package/dist/widgets/shader-backdrop.cjs +3 -3
- package/dist/widgets/shader-backdrop.js +3 -3
- package/dist/widgets/sheet.cjs +3 -3
- package/dist/widgets/sheet.js +3 -3
- package/dist/widgets/shortcut.cjs +3 -3
- package/dist/widgets/shortcut.js +3 -3
- package/dist/widgets/skeleton-reveal.cjs +3 -3
- package/dist/widgets/skeleton-reveal.js +3 -3
- package/dist/widgets/sketch-chart.cjs +3 -3
- package/dist/widgets/sketch-chart.js +3 -3
- package/dist/widgets/smooth-scroll.cjs +4 -4
- package/dist/widgets/smooth-scroll.js +4 -4
- package/dist/widgets/snap-carousel.cjs +4 -4
- package/dist/widgets/snap-carousel.js +4 -4
- package/dist/widgets/sparkline.cjs +4 -3
- package/dist/widgets/sparkline.js +4 -3
- package/dist/widgets/spatial-card.cjs +2 -2
- package/dist/widgets/spatial-card.js +2 -2
- package/dist/widgets/star-rating.cjs +2 -2
- package/dist/widgets/star-rating.js +2 -2
- package/dist/widgets/stepper.cjs +2 -2
- package/dist/widgets/stepper.js +2 -2
- package/dist/widgets/sticky-wall.cjs +3 -3
- package/dist/widgets/sticky-wall.js +3 -3
- package/dist/widgets/stories.cjs +2 -2
- package/dist/widgets/stories.js +2 -2
- package/dist/widgets/suggestion-chips.cjs +3 -3
- package/dist/widgets/suggestion-chips.js +3 -3
- package/dist/widgets/swipe-deck.cjs +2 -2
- package/dist/widgets/swipe-deck.js +2 -2
- package/dist/widgets/switch.cjs +3 -3
- package/dist/widgets/switch.js +3 -3
- package/dist/widgets/tab-bar.cjs +3 -3
- package/dist/widgets/tab-bar.js +3 -3
- package/dist/widgets/terminal.cjs +2 -2
- package/dist/widgets/terminal.js +2 -2
- package/dist/widgets/text-splitter.cjs +4 -4
- package/dist/widgets/text-splitter.js +4 -4
- package/dist/widgets/theme-surface.cjs +3 -3
- package/dist/widgets/theme-surface.js +3 -3
- package/dist/widgets/theme-switcher.cjs +3 -3
- package/dist/widgets/theme-switcher.js +3 -3
- package/dist/widgets/tip.cjs +3 -3
- package/dist/widgets/tip.js +3 -3
- package/dist/widgets/toast-stack.cjs +4 -4
- package/dist/widgets/toast-stack.js +4 -4
- package/dist/widgets/token-editor.cjs +2 -2
- package/dist/widgets/token-editor.js +2 -2
- package/dist/widgets/upload-progress.cjs +3 -3
- package/dist/widgets/upload-progress.js +3 -3
- package/dist/widgets/video-card.cjs +2 -2
- package/dist/widgets/video-card.js +2 -2
- package/dist/widgets/voice-button.cjs +3 -3
- package/dist/widgets/voice-button.js +3 -3
- package/dist/widgets/volume-knob.cjs +2 -2
- package/dist/widgets/volume-knob.js +2 -2
- package/dist/widgets/weather-card.cjs +3 -3
- package/dist/widgets/weather-card.js +3 -3
- package/dist/widgets/worker-canvas.cjs +4 -4
- package/dist/widgets/worker-canvas.js +4 -4
- package/dist/widgets/xp-bar.cjs +3 -3
- package/dist/widgets/xp-bar.js +3 -3
- package/dist/widgets.umd.js +2 -2
- package/docs/components/usa-aurora.md +1 -1
- package/docs/components/usa-story.md +1 -1
- package/docs/scheduling.md +58 -0
- package/package.json +21 -1
package/dist/components/lite.js
CHANGED
|
@@ -18,16 +18,16 @@ function configureComponents(options) {
|
|
|
18
18
|
if (options.reducedMotion && options.reducedMotion !== 'reduce')
|
|
19
19
|
options.reducedMotion = 'user';
|
|
20
20
|
Object.assign(config, options);
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
if (
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
else
|
|
29
|
-
document.documentElement.setAttribute('data-usa-sensitivity', options.motionSensitivity);
|
|
21
|
+
const { motionIntensity: mi, motionSensitivity: ms } = options;
|
|
22
|
+
if (typeof document == 'undefined')
|
|
23
|
+
return;
|
|
24
|
+
const de = document.documentElement;
|
|
25
|
+
if (mi) {
|
|
26
|
+
de.style.setProperty('--usa-motion', String(MOTION_SCALE[mi] ?? 1));
|
|
27
|
+
de.setAttribute('data-usa-motion', mi);
|
|
30
28
|
}
|
|
29
|
+
if (ms)
|
|
30
|
+
ms == 'full' ? de.removeAttribute('data-usa-sensitivity') : de.setAttribute('data-usa-sensitivity', ms);
|
|
31
31
|
}
|
|
32
32
|
/** The current motion-sensitivity level (v4.4). */
|
|
33
33
|
function getMotionSensitivity() {
|
|
@@ -61,13 +61,9 @@ function adaptKeyframes(frames, level = config.motionSensitivity) {
|
|
|
61
61
|
return out;
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
|
-
/** Run `fn` without 4.9 deprecation warnings (library-internal calls). */
|
|
64
|
+
/** Run `fn` without 4.9 deprecation warnings (library-internal calls). The suppression counter was never read, so this simply runs `fn` (counter removed in 13.4). */
|
|
65
65
|
function withoutDeprecations(fn) {
|
|
66
|
-
|
|
67
|
-
return fn();
|
|
68
|
-
}
|
|
69
|
-
finally {
|
|
70
|
-
}
|
|
66
|
+
return fn();
|
|
71
67
|
}
|
|
72
68
|
/** The current global motion intensity. */
|
|
73
69
|
function getMotionIntensity() {
|
|
@@ -106,38 +102,34 @@ function adoptStyles(id, css) {
|
|
|
106
102
|
if (!config.injectStyles || !css || injected.has(id) || typeof document === 'undefined')
|
|
107
103
|
return;
|
|
108
104
|
injected.add(id);
|
|
105
|
+
if (!adopt(document, css, true))
|
|
106
|
+
(document.head || document.documentElement).appendChild(styleEl(css)).setAttribute('data-usa', id);
|
|
107
|
+
}
|
|
108
|
+
/** Constructable stylesheet onto `root` (appended for a document, replacing for a shadow root); false without support. */
|
|
109
|
+
function adopt(root, css, add) {
|
|
109
110
|
try {
|
|
110
|
-
|
|
111
|
+
// no CSSStyleSheet constructor → ReferenceError → caught → <style>
|
|
112
|
+
if ('adoptedStyleSheets' in root) {
|
|
111
113
|
const sheet = new CSSStyleSheet();
|
|
112
114
|
sheet.replaceSync(css);
|
|
113
|
-
|
|
114
|
-
return;
|
|
115
|
+
root.adoptedStyleSheets = add ? [...root.adoptedStyleSheets, sheet] : [sheet];
|
|
116
|
+
return true;
|
|
115
117
|
}
|
|
116
118
|
}
|
|
117
119
|
catch {
|
|
118
120
|
/* fall through to <style> */
|
|
119
121
|
}
|
|
122
|
+
return false;
|
|
123
|
+
}
|
|
124
|
+
const styleEl = (css) => {
|
|
120
125
|
const style = document.createElement('style');
|
|
121
|
-
style.setAttribute('data-usa', id);
|
|
122
126
|
style.textContent = css;
|
|
123
|
-
|
|
124
|
-
}
|
|
127
|
+
return style;
|
|
128
|
+
};
|
|
125
129
|
/** Attach `css` to a shadow root (constructable sheet where supported, else `<style>`). */
|
|
126
130
|
function shadowStyles(root, css) {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
const sheet = new CSSStyleSheet();
|
|
130
|
-
sheet.replaceSync(css);
|
|
131
|
-
root.adoptedStyleSheets = [sheet];
|
|
132
|
-
return;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
catch {
|
|
136
|
-
/* fall through */
|
|
137
|
-
}
|
|
138
|
-
const style = document.createElement('style');
|
|
139
|
-
style.textContent = css;
|
|
140
|
-
root.prepend(style);
|
|
131
|
+
if (!adopt(root, css))
|
|
132
|
+
root.prepend(styleEl(css));
|
|
141
133
|
}
|
|
142
134
|
let baseClass = null;
|
|
143
135
|
/** The lazily created base class (needs `HTMLElement`). */
|
|
@@ -160,7 +152,7 @@ function getBase() {
|
|
|
160
152
|
styleLoader?.(this.localName);
|
|
161
153
|
// Upgraded while the parser is still inside us (a <script> in <head>
|
|
162
154
|
// defined the element): children/text are not there yet, so wait.
|
|
163
|
-
if (
|
|
155
|
+
if (document.readyState === 'loading' && !this.nextSibling && !this.childNodes.length) {
|
|
164
156
|
const go = () => {
|
|
165
157
|
if (this._connected && this.isConnected)
|
|
166
158
|
this.mount();
|
|
@@ -192,12 +184,11 @@ function getBase() {
|
|
|
192
184
|
mount() { }
|
|
193
185
|
unmount() { }
|
|
194
186
|
str(name, fallback = '') {
|
|
195
|
-
|
|
196
|
-
return v === null ? fallback : v;
|
|
187
|
+
return this.getAttribute(name) ?? fallback;
|
|
197
188
|
}
|
|
198
189
|
num(name, fallback) {
|
|
199
190
|
const v = this.getAttribute(name);
|
|
200
|
-
const n = v
|
|
191
|
+
const n = v?.trim() ? Number(v) : NaN;
|
|
201
192
|
return Number.isFinite(n) ? n : fallback;
|
|
202
193
|
}
|
|
203
194
|
/** Boolean attribute: present and not `"false"`. */
|
|
@@ -206,10 +197,7 @@ function getBase() {
|
|
|
206
197
|
return v !== null && v !== 'false';
|
|
207
198
|
}
|
|
208
199
|
setFlag(name, on) {
|
|
209
|
-
|
|
210
|
-
this.setAttribute(name, '');
|
|
211
|
-
else
|
|
212
|
-
this.removeAttribute(name);
|
|
200
|
+
this.toggleAttribute(name, !!on);
|
|
213
201
|
}
|
|
214
202
|
onCleanup(fn) {
|
|
215
203
|
this._cleanups.push(fn);
|
|
@@ -257,12 +245,8 @@ function getBase() {
|
|
|
257
245
|
* `null` (final frame applied) when nothing should animate.
|
|
258
246
|
*/
|
|
259
247
|
function animateWithMotion(el, keyframes, options) {
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
return null;
|
|
263
|
-
}
|
|
264
|
-
keyframes = adaptKeyframes(keyframes);
|
|
265
|
-
if (active$1 >= maxActive) {
|
|
248
|
+
// no WAAPI / `static` → the unadapted final frame; over the animation budget → the adapted one
|
|
249
|
+
if (typeof el.animate !== 'function' || config.motionSensitivity === 'static' || ((keyframes = adaptKeyframes(keyframes)), active$1 >= maxActive)) {
|
|
266
250
|
applyFrame(el, keyframes[keyframes.length - 1]);
|
|
267
251
|
return null;
|
|
268
252
|
}
|
|
@@ -320,41 +304,62 @@ function srText(text) {
|
|
|
320
304
|
return s;
|
|
321
305
|
}
|
|
322
306
|
// --- shared rAF scheduler (4.5) ----------------------------------------------
|
|
323
|
-
//
|
|
324
|
-
//
|
|
325
|
-
//
|
|
307
|
+
// One requestAnimationFrame per frame for every component loop; a throwing
|
|
308
|
+
// callback no longer starves the others (the first error is rethrown).
|
|
309
|
+
// 13.4: frame budget (over-budget callbacks wait for the next frame, oldest
|
|
310
|
+
// first); a callback / loop given an owner element is dropped once the owner
|
|
311
|
+
// is detached. Offscreen / hidden-tab pause is a plug-in (setPauseHook,
|
|
312
|
+
// installed by motionary/components/offscreen — not part of lite).
|
|
326
313
|
const frameQueue = /*#__PURE__*/ new Map();
|
|
327
314
|
let frameSeq = 1;
|
|
328
315
|
let frameHandle = 0;
|
|
329
316
|
let frameVia = null;
|
|
330
|
-
const frameStats = { frames: 0, callbacks: 0, peak: 0, last: 0 };
|
|
331
|
-
|
|
317
|
+
const frameStats = { frames: 0, callbacks: 0, peak: 0, last: 0, deferred: 0, parked: 0, budget: 8 };
|
|
318
|
+
/** loop → owner element */
|
|
319
|
+
const frameListeners = /*#__PURE__*/ new Map();
|
|
320
|
+
/** 0 run, 1 park (detached owner / pause hook), 2 drop (raf callback of a detached owner). */
|
|
321
|
+
const gate = (el) => (el && !el.isConnected ? 2 : 0);
|
|
332
322
|
function flushFrame(t) {
|
|
323
|
+
const st = frameStats;
|
|
333
324
|
frameHandle = 0;
|
|
334
|
-
const dt =
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
const
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
325
|
+
const dt = st.last && t > st.last ? t - st.last : 16.7;
|
|
326
|
+
st.last = t;
|
|
327
|
+
st.frames++;
|
|
328
|
+
const start = now();
|
|
329
|
+
let n = 0;
|
|
330
|
+
let p = 0;
|
|
331
|
+
let live = 0;
|
|
341
332
|
let error = null;
|
|
342
|
-
for (const cb of
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
333
|
+
for (const [id, [cb, el]] of [...frameQueue]) {
|
|
334
|
+
if (n && now() - start > st.budget) {
|
|
335
|
+
st.deferred++;
|
|
336
|
+
break;
|
|
337
|
+
}
|
|
338
|
+
const g = gate(el);
|
|
339
|
+
if (g & 1)
|
|
340
|
+
p++;
|
|
341
|
+
else if ((frameQueue.delete(id), !g))
|
|
342
|
+
try {
|
|
343
|
+
n++;
|
|
344
|
+
cb(t);
|
|
345
|
+
}
|
|
346
|
+
catch (e) {
|
|
347
|
+
error ?? (error = e);
|
|
348
|
+
}
|
|
349
349
|
}
|
|
350
|
+
st.callbacks += n;
|
|
351
|
+
st.peak = Math.max(st.peak, n);
|
|
350
352
|
// 8.0: loops run on the unified motion clock — dt scaled by its rate, frozen while paused
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
requestFlush();
|
|
353
|
+
const c = clk();
|
|
354
|
+
if (!c.paused) {
|
|
355
|
+
const cdt = dt * c.rate;
|
|
356
|
+
c.time += cdt;
|
|
357
|
+
frameListeners.forEach((el, fn) => (gate(el) ? p++ : (live++, fn(t, cdt))));
|
|
357
358
|
}
|
|
359
|
+
st.parked += p;
|
|
360
|
+
// everything parked: the pause hook's wake() restarts the loop
|
|
361
|
+
if (live || frameQueue.size > p)
|
|
362
|
+
requestFlush();
|
|
358
363
|
if (error)
|
|
359
364
|
throw error;
|
|
360
365
|
}
|
|
@@ -366,43 +371,55 @@ function requestFlush() {
|
|
|
366
371
|
frameVia = native;
|
|
367
372
|
frameHandle = native ? native(flushFrame) : setTimeout(() => flushFrame(now()), 16);
|
|
368
373
|
}
|
|
369
|
-
/**
|
|
370
|
-
|
|
374
|
+
/**
|
|
375
|
+
* requestAnimationFrame through the shared scheduler (timeout fallback in jsdom / hidden documents).
|
|
376
|
+
* 13.4: with an owner `el` the callback is dropped once `el` is detached (and paused off screen when the offscreen plug-in is installed).
|
|
377
|
+
*/
|
|
378
|
+
const raf = (cb, el) => {
|
|
371
379
|
const id = frameSeq++;
|
|
372
|
-
frameQueue.set(id, cb);
|
|
380
|
+
frameQueue.set(id, [cb, el]);
|
|
373
381
|
requestFlush();
|
|
374
382
|
return id;
|
|
375
383
|
};
|
|
376
|
-
/**
|
|
377
|
-
const now = () =>
|
|
384
|
+
/** High-resolution time (13.4: `performance` is global in every supported browser and Node ≥ 16). */
|
|
385
|
+
const now = () => performance.now();
|
|
378
386
|
const caf = (id) => {
|
|
379
387
|
frameQueue.delete(id);
|
|
380
388
|
};
|
|
381
|
-
/**
|
|
382
|
-
|
|
383
|
-
|
|
389
|
+
/**
|
|
390
|
+
* Run `fn(time, dt)` every frame on the shared scheduler until the returned function is called.
|
|
391
|
+
* 13.4: with an owner `el` the loop stops running once `el` is detached (and pauses off screen with the offscreen plug-in).
|
|
392
|
+
*/
|
|
393
|
+
function onFrame(fn, el) {
|
|
394
|
+
frameListeners.set(fn, el);
|
|
384
395
|
if (!clk().paused)
|
|
385
396
|
requestFlush();
|
|
386
397
|
return () => frameListeners.delete(fn);
|
|
387
398
|
}
|
|
388
|
-
/** Scheduler counters: frames flushed, callbacks run, peak callbacks
|
|
399
|
+
/** Scheduler counters: frames flushed, callbacks run, peak per frame, pending now, loops, frames split by the budget, callbacks / loops parked, budget ms. */
|
|
389
400
|
function schedulerStats() {
|
|
390
|
-
|
|
401
|
+
const { last, ...rest } = frameStats;
|
|
402
|
+
return { ...rest, pending: frameQueue.size, loops: frameListeners.size };
|
|
403
|
+
}
|
|
404
|
+
/** 13.4: per-frame time budget in ms for queued callbacks (default 8; `Infinity` = never split a frame). */
|
|
405
|
+
function setFrameBudget(ms) {
|
|
406
|
+
frameStats.budget = ms > 0 ? ms : 8;
|
|
391
407
|
}
|
|
392
408
|
const CLOCK_KEY = /*#__PURE__*/ Symbol.for('motionary.clock');
|
|
393
409
|
// 11.1: created on first use, so importing this module writes nothing to globalThis.
|
|
394
410
|
const clk = () => { var _a; return ((_a = globalThis)[CLOCK_KEY] || (_a[CLOCK_KEY] = { rate: 1, paused: false, time: 0, anims: new Set(), subs: new Set() })); };
|
|
395
411
|
function applyClock(a) {
|
|
412
|
+
const { rate, paused } = clk();
|
|
396
413
|
try {
|
|
397
414
|
if (typeof a.updatePlaybackRate === 'function')
|
|
398
|
-
a.updatePlaybackRate(
|
|
399
|
-
else if (
|
|
400
|
-
a.playbackRate =
|
|
401
|
-
if (
|
|
415
|
+
a.updatePlaybackRate(rate);
|
|
416
|
+
else if (rate !== 1 || a.playbackRate !== undefined)
|
|
417
|
+
a.playbackRate = rate;
|
|
418
|
+
if (paused)
|
|
402
419
|
a.pause?.();
|
|
403
420
|
else if (a.playState === 'paused' && a._usaClockPaused)
|
|
404
421
|
a.play?.();
|
|
405
|
-
a._usaClockPaused =
|
|
422
|
+
a._usaClockPaused = paused;
|
|
406
423
|
}
|
|
407
424
|
catch {
|
|
408
425
|
/* finished / detached animation */
|
|
@@ -445,8 +462,7 @@ function deprecate(key, message) {
|
|
|
445
462
|
if (warned.has(key))
|
|
446
463
|
return;
|
|
447
464
|
warned.add(key);
|
|
448
|
-
|
|
449
|
-
console.warn(`[motionary] ${message}`);
|
|
465
|
+
console.warn(`[motionary] ${message}`);
|
|
450
466
|
}
|
|
451
467
|
/**
|
|
452
468
|
* The `kind` attribute of `<usa-spinner>`, `<usa-check>`, `<usa-dialog>` and
|
|
@@ -10066,7 +10082,7 @@ function defineMasonry(tag = 'usa-masonry') {
|
|
|
10066
10082
|
if (id)
|
|
10067
10083
|
return;
|
|
10068
10084
|
// contract-exempt: reduced-motion — rAF batches layout, no motion
|
|
10069
|
-
id =
|
|
10085
|
+
id = raf(() => {
|
|
10070
10086
|
id = 0;
|
|
10071
10087
|
this.layout();
|
|
10072
10088
|
});
|
|
@@ -11036,5 +11052,5 @@ function defineComponents(categories) {
|
|
|
11036
11052
|
const STYLE_BASE = new URL('../', import.meta.url).href;
|
|
11037
11053
|
onDemandStyles(STYLE_BASE);
|
|
11038
11054
|
|
|
11039
|
-
export { ALL_TAGS, AMBIENT_EFFECTS, ANIM_ICONS, BRIDGE_PROTOCOL_VERSION, BUILTIN_EFFECTS, BUTTON_DEFORMS, CARD_EFFECTS, CLICK_EFFECTS, COMPONENT_CATEGORIES, CURSOR_MODES, EFFECT_KINDS, EFFECT_TRIGGERS, GL_FALLBACKS, JOINING_SCRIPT, LIVE_REGION_IDS, MASK_SHAPES, MORPH_ICONS, MOTION_SCALE, MOTION_SENSITIVITY, MOTION_SENSITIVITY_LEVELS, MOTION_TOKENS, PACKS, PACK_PRIMITIVES, PAGE_EFFECTS, PARTICLE_PRESETS, POST_EFFECTS, REVEAL_EFFECTS, SENSITIVITY_CSS, SHADERS, SPINNER_VARIANTS, SPRING_EFFECTS, SPRING_PRESETS, STATIC_ALTERNATIVES, STYLE_BASE, TIMELINE_PRESETS, VARIANTS, activeAnimations, adaptKeyframes, adoptVariants, animateWithMotion, animationBudget, announce, applyMotionTokens, applyNativeSettings, applyPack, auditMotionA11y, autoAnimate, autoDegrade, baselineReport, bindEffect, categoryOf, configureComponents, connectNativeShell, countUp, createSpring, defineAccordion, defineAcrylic, defineAmbient, defineAnimIcon, defineAurora, defineAutoAnimate, defineAutoSkeleton, defineAvatarStack, defineBackToTop, defineBackgroundComponents, defineBadge, defineBlobs, defineBottomSheet, defineButton, defineCard, defineCardComponents, defineCardStack, defineCarousel3d, defineCheck, defineCheckbox, defineClick, defineClickComponents, defineComponents, defineCounter, defineCube, defineCursor, defineDepth, defineDepthComponents, defineDialog, defineDistort, defineDotNetwork, defineDoubleTap, defineDraggable, defineDraw, defineDrawer, defineFab, defineFeedbackComponents, defineFullpage, defineFx, defineFxComponents, defineGestureComponents, defineGlitch, defineGradientText, defineGrain, defineGridGlow, defineHandwriting, defineHold, defineIconMorph, defineInteractionComponents, defineLayoutComponents, defineLike, defineLiquid, defineLoadingBar, defineMagnetic, defineMarquee, defineMaskReveal, defineMasonry, defineMorph, defineMotionSwitch, defineNavbar, defineOverscroll, definePack, definePacksComponents, definePageComponents, defineParticles, definePhysicsComponents, definePinchZoom, definePopover, definePostFx, definePress, defineProgress, definePullRefresh, defineReveal, defineRevealComponents, defineRipple, defineScramble, defineScrollHighlight, defineScrollProgress, defineScrolly, defineShader, defineShimmerText, defineSkeleton, defineSlider, defineSpinner, defineSplash, defineSplitText, defineSpotlight, defineSpring, defineStagger, defineStickyStack, defineSvgComponents, defineSwipeable, defineTabs, defineTextComponents, defineTextRotate, defineTilt, defineTimeline, defineTimelineComponents, defineToaster, defineTransitionComponents, defineTypewriter, defineUiComponents, defineViewSwitch, defineWaterRipple, defineWaveText, defineWebglComponents, detectNativeHost, deviceTilt, drawLines, easeOutExpo, enableMpaTransitions, exportDesignTokens, flip, flipFrames, fluentPreset, flyToCart, fragmentSource, gesture, getEffect, getMotionIntensity, getMotionLevel, getMotionSensitivity, getMotionTokens, glFallbackCss, glGovernor, glQuad, graphemes, haptic, hasEffect, importDesignTokens, importMotionTokens, interpolatePath, isTrustedMessage, linearEasing, listEffects, liveRegion, loadCategoryStyles, loadedStyles, loadingBar, masonryLayout, mergeMotionTokens, morphPath, morphTo, motionAllowed, motionScale, motionToken, motionTokensToCss, motionTokensToJSON, motionTokensToVars, motionVar, onDemandStyles, onFrame, orientationToTilt, pageTransition, parseDuration, parseEasing, parseNativeSettings, pathsCompatible, pinchScale, playEffect, postFxShader, postToNative, prefersReducedMotion, projectInertia, readScrollProgress, registerBuiltinEffects, registerEffect, registerEffects, requestOrientationPermission, resolveDurationToken, resolveEasingToken, resolvePosition, resolveSpring, resolveTokenAliases, restoreMotionIntensity, restoreMotionSensitivity, revealKeyframes, rubberBand, schedulerStats, scrambleFrame, scrollToTarget, setAnimationBudget, setMotionIntensity, setMotionLevel, setMotionSensitivity, setVariant, sharedTransition, smoothScroll, snapTo, splitOrder, splitText, splitTimeline, words as splitWords, spring, springEasing, springEffectKeyframes, springSamples, staticAlternative, stepSpring, supportsLinearEasing, supportsNativeScrub, supportsOrientation, supportsViewTransitions, supportsWebGL, swipeDirection, themeTransition, timeline, toast, validateDesignTokens, viewTransition, warnBaseline, watchPowerSaver, withoutDeprecations };
|
|
11040
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.
|
|
11055
|
+
export { ALL_TAGS, AMBIENT_EFFECTS, ANIM_ICONS, BRIDGE_PROTOCOL_VERSION, BUILTIN_EFFECTS, BUTTON_DEFORMS, CARD_EFFECTS, CLICK_EFFECTS, COMPONENT_CATEGORIES, CURSOR_MODES, EFFECT_KINDS, EFFECT_TRIGGERS, GL_FALLBACKS, JOINING_SCRIPT, LIVE_REGION_IDS, MASK_SHAPES, MORPH_ICONS, MOTION_SCALE, MOTION_SENSITIVITY, MOTION_SENSITIVITY_LEVELS, MOTION_TOKENS, PACKS, PACK_PRIMITIVES, PAGE_EFFECTS, PARTICLE_PRESETS, POST_EFFECTS, REVEAL_EFFECTS, SENSITIVITY_CSS, SHADERS, SPINNER_VARIANTS, SPRING_EFFECTS, SPRING_PRESETS, STATIC_ALTERNATIVES, STYLE_BASE, TIMELINE_PRESETS, VARIANTS, activeAnimations, adaptKeyframes, adoptVariants, animateWithMotion, animationBudget, announce, applyMotionTokens, applyNativeSettings, applyPack, auditMotionA11y, autoAnimate, autoDegrade, baselineReport, bindEffect, categoryOf, configureComponents, connectNativeShell, countUp, createSpring, defineAccordion, defineAcrylic, defineAmbient, defineAnimIcon, defineAurora, defineAutoAnimate, defineAutoSkeleton, defineAvatarStack, defineBackToTop, defineBackgroundComponents, defineBadge, defineBlobs, defineBottomSheet, defineButton, defineCard, defineCardComponents, defineCardStack, defineCarousel3d, defineCheck, defineCheckbox, defineClick, defineClickComponents, defineComponents, defineCounter, defineCube, defineCursor, defineDepth, defineDepthComponents, defineDialog, defineDistort, defineDotNetwork, defineDoubleTap, defineDraggable, defineDraw, defineDrawer, defineFab, defineFeedbackComponents, defineFullpage, defineFx, defineFxComponents, defineGestureComponents, defineGlitch, defineGradientText, defineGrain, defineGridGlow, defineHandwriting, defineHold, defineIconMorph, defineInteractionComponents, defineLayoutComponents, defineLike, defineLiquid, defineLoadingBar, defineMagnetic, defineMarquee, defineMaskReveal, defineMasonry, defineMorph, defineMotionSwitch, defineNavbar, defineOverscroll, definePack, definePacksComponents, definePageComponents, defineParticles, definePhysicsComponents, definePinchZoom, definePopover, definePostFx, definePress, defineProgress, definePullRefresh, defineReveal, defineRevealComponents, defineRipple, defineScramble, defineScrollHighlight, defineScrollProgress, defineScrolly, defineShader, defineShimmerText, defineSkeleton, defineSlider, defineSpinner, defineSplash, defineSplitText, defineSpotlight, defineSpring, defineStagger, defineStickyStack, defineSvgComponents, defineSwipeable, defineTabs, defineTextComponents, defineTextRotate, defineTilt, defineTimeline, defineTimelineComponents, defineToaster, defineTransitionComponents, defineTypewriter, defineUiComponents, defineViewSwitch, defineWaterRipple, defineWaveText, defineWebglComponents, detectNativeHost, deviceTilt, drawLines, easeOutExpo, enableMpaTransitions, exportDesignTokens, flip, flipFrames, fluentPreset, flyToCart, fragmentSource, gesture, getEffect, getMotionIntensity, getMotionLevel, getMotionSensitivity, getMotionTokens, glFallbackCss, glGovernor, glQuad, graphemes, haptic, hasEffect, importDesignTokens, importMotionTokens, interpolatePath, isTrustedMessage, linearEasing, listEffects, liveRegion, loadCategoryStyles, loadedStyles, loadingBar, masonryLayout, mergeMotionTokens, morphPath, morphTo, motionAllowed, motionScale, motionToken, motionTokensToCss, motionTokensToJSON, motionTokensToVars, motionVar, onDemandStyles, onFrame, orientationToTilt, pageTransition, parseDuration, parseEasing, parseNativeSettings, pathsCompatible, pinchScale, playEffect, postFxShader, postToNative, prefersReducedMotion, projectInertia, readScrollProgress, registerBuiltinEffects, registerEffect, registerEffects, requestOrientationPermission, resolveDurationToken, resolveEasingToken, resolvePosition, resolveSpring, resolveTokenAliases, restoreMotionIntensity, restoreMotionSensitivity, revealKeyframes, rubberBand, schedulerStats, scrambleFrame, scrollToTarget, setAnimationBudget, setFrameBudget, setMotionIntensity, setMotionLevel, setMotionSensitivity, setVariant, sharedTransition, smoothScroll, snapTo, splitOrder, splitText, splitTimeline, words as splitWords, spring, springEasing, springEffectKeyframes, springSamples, staticAlternative, stepSpring, supportsLinearEasing, supportsNativeScrub, supportsOrientation, supportsViewTransitions, supportsWebGL, swipeDirection, themeTransition, timeline, toast, validateDesignTokens, viewTransition, warnBaseline, watchPowerSaver, withoutDeprecations };
|
|
11056
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.4.0/dist/components/lite.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var manifest = require('../chunks/manifest-
|
|
3
|
+
var manifest = require('../chunks/manifest-DcyvsF07.cjs');
|
|
4
4
|
var sign = require('../chunks/sign-RAkQIWrM.cjs');
|
|
5
|
-
require('../chunks/registry-
|
|
6
|
-
require('../chunks/base-
|
|
5
|
+
require('../chunks/registry-CyVCJneg.cjs');
|
|
6
|
+
require('../chunks/base-Do-R_9gU.cjs');
|
|
7
7
|
|
|
8
8
|
const MARKETPLACE_FORMAT = 'motionary/marketplace';
|
|
9
9
|
const L = (name, title, description, entry, register, effects, tags, since) => ({ name, title, description, entry, register, effects: effects.split(' '), tags: tags.split(' '), since, author: 'Motionary', official: true });
|
|
@@ -100,4 +100,4 @@ exports.fetchMarketplace = fetchMarketplace;
|
|
|
100
100
|
exports.installPlugin = installPlugin;
|
|
101
101
|
exports.installedPlugins = installedPlugins;
|
|
102
102
|
exports.searchPlugins = searchPlugins;
|
|
103
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.
|
|
103
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.4.0/dist/components/marketplace.cjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { l as loadEffectPack } from '../chunks/manifest-
|
|
2
|
-
export { E as EFFECT_PACK_FORMAT, p as packManifest, v as validateManifest } from '../chunks/manifest-
|
|
1
|
+
import { l as loadEffectPack } from '../chunks/manifest-C6nei25r.js';
|
|
2
|
+
export { E as EFFECT_PACK_FORMAT, p as packManifest, v as validateManifest } from '../chunks/manifest-C6nei25r.js';
|
|
3
3
|
export { c as checkCompat, p as pluginIntegrity, s as satisfies, v as verifyPlugin } from '../chunks/sign-DvZ1jHxE.js';
|
|
4
|
-
import '../chunks/registry-
|
|
5
|
-
import '../chunks/base-
|
|
4
|
+
import '../chunks/registry-BEIhIRTY.js';
|
|
5
|
+
import '../chunks/base-Be98yNyq.js';
|
|
6
6
|
|
|
7
7
|
const MARKETPLACE_FORMAT = 'motionary/marketplace';
|
|
8
8
|
const L = (name, title, description, entry, register, effects, tags, since) => ({ name, title, description, entry, register, effects: effects.split(' '), tags: tags.split(' '), since, author: 'Motionary', official: true });
|
|
@@ -86,4 +86,4 @@ async function fetchMarketplace(url, fetcher = fetch) {
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
export { MARKETPLACE, MARKETPLACE_FORMAT, fetchMarketplace, installPlugin, installedPlugins, loadEffectPack, searchPlugins };
|
|
89
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.
|
|
89
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.4.0/dist/components/marketplace.js.map
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
var components_dsl = require('./dsl.cjs');
|
|
4
4
|
var components_design = require('./design.cjs');
|
|
5
5
|
var components_tokens = require('./tokens.cjs');
|
|
6
|
-
require('../chunks/registry-
|
|
7
|
-
require('../chunks/base-
|
|
8
|
-
require('../chunks/core-
|
|
6
|
+
require('../chunks/registry-CyVCJneg.cjs');
|
|
7
|
+
require('../chunks/base-Do-R_9gU.cjs');
|
|
8
|
+
require('../chunks/core-6FhnH_Kv.cjs');
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* `motionary/native` (= `motionary/components/native`, 9.8) — native 2.0:
|
|
@@ -145,4 +145,4 @@ exports.nativeEasing = nativeEasing;
|
|
|
145
145
|
exports.nativeTokens = nativeTokens;
|
|
146
146
|
exports.toFlutter = toFlutter;
|
|
147
147
|
exports.toReactNative = toReactNative;
|
|
148
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.
|
|
148
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.4.0/dist/components/native.cjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { parseMotion } from './dsl.js';
|
|
2
2
|
import { easingPoints } from './design.js';
|
|
3
3
|
import { MOTION_TOKENS } from './tokens.js';
|
|
4
|
-
import '../chunks/registry-
|
|
5
|
-
import '../chunks/base-
|
|
6
|
-
import '../chunks/core-
|
|
4
|
+
import '../chunks/registry-BEIhIRTY.js';
|
|
5
|
+
import '../chunks/base-Be98yNyq.js';
|
|
6
|
+
import '../chunks/core-RZkPEx8i.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* `motionary/native` (= `motionary/components/native`, 9.8) — native 2.0:
|
|
@@ -139,4 +139,4 @@ function nativeTokens() {
|
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
export { entranceFrom, nativeEasing, nativeTokens, toFlutter, toReactNative };
|
|
142
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.
|
|
142
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.4.0/dist/components/native.js.map
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var base = require('../chunks/base-Do-R_9gU.cjs');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* motionary/components/offscreen (13.4) — pauses scheduler work nobody can see.
|
|
7
|
+
*
|
|
8
|
+
* Installs a pause hook on the shared rAF scheduler: every loop / callback waits
|
|
9
|
+
* while the document is hidden, and one given an owner element (`raf(cb, el)`,
|
|
10
|
+
* `onFrame(fn, el)`) also waits while that element is off screen (one shared
|
|
11
|
+
* IntersectionObserver). Widgets and the full bundles install it; the lite
|
|
12
|
+
* bundle does not (lite keeps the frame budget and drop-on-detach only).
|
|
13
|
+
* Kept deliberately tiny: it rides in every per-widget entry.
|
|
14
|
+
*
|
|
15
|
+
* ```ts
|
|
16
|
+
* import { installOffscreenPause } from 'motionary/components/offscreen';
|
|
17
|
+
* installOffscreenPause();
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
/** watched owners → off screen? (detached ones are swept: unobserved, and the plug-in tears down when none remain) */
|
|
21
|
+
const seen = /*#__PURE__*/ new Map();
|
|
22
|
+
let io;
|
|
23
|
+
let wake;
|
|
24
|
+
/** Remove the pause (everything parked runs again). Re-installed lazily by the next `raf` / `onFrame`. */
|
|
25
|
+
const un = () => {
|
|
26
|
+
if (io !== undefined) {
|
|
27
|
+
document.removeEventListener('visibilitychange', wake);
|
|
28
|
+
io?.disconnect();
|
|
29
|
+
io = undefined;
|
|
30
|
+
seen.clear();
|
|
31
|
+
base.setPauseHook();
|
|
32
|
+
wake();
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
/** Unobserve detached owners; with nothing left to watch, drop the listener + observer. */
|
|
36
|
+
const sweep = () => {
|
|
37
|
+
seen.forEach((_, el) => el.isConnected || (seen.delete(el), io?.unobserve(el)));
|
|
38
|
+
seen.size || un();
|
|
39
|
+
};
|
|
40
|
+
/** Install the offscreen / hidden-tab pause (idempotent). Returns an uninstall function. */
|
|
41
|
+
function installOffscreenPause() {
|
|
42
|
+
if (io === undefined && typeof document == 'object') {
|
|
43
|
+
io =
|
|
44
|
+
typeof IntersectionObserver == 'function'
|
|
45
|
+
? new IntersectionObserver((es) => {
|
|
46
|
+
for (const e of es)
|
|
47
|
+
seen.set(e.target, !e.isIntersecting);
|
|
48
|
+
wake();
|
|
49
|
+
sweep();
|
|
50
|
+
})
|
|
51
|
+
: null;
|
|
52
|
+
wake = base.setPauseHook((el) => document.hidden || seen.get(el), (el) => {
|
|
53
|
+
seen.has(el) || (seen.set(el, false), io?.observe(el));
|
|
54
|
+
sweep();
|
|
55
|
+
});
|
|
56
|
+
document.addEventListener('visibilitychange', wake);
|
|
57
|
+
}
|
|
58
|
+
return un;
|
|
59
|
+
}
|
|
60
|
+
/** `raf(cb, el)` with the offscreen pause installed. */
|
|
61
|
+
const raf = (cb, el) => (installOffscreenPause(), base.raf(cb, el));
|
|
62
|
+
/** `onFrame(fn, el)` with the offscreen pause installed. */
|
|
63
|
+
const onFrame = (fn, el) => (installOffscreenPause(), base.onFrame(fn, el));
|
|
64
|
+
|
|
65
|
+
exports.caf = base.caf;
|
|
66
|
+
exports.installOffscreenPause = installOffscreenPause;
|
|
67
|
+
exports.onFrame = onFrame;
|
|
68
|
+
exports.raf = raf;
|
|
69
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.4.0/dist/components/offscreen.cjs.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const caf: (id: number) => void;
|
|
2
|
+
|
|
3
|
+
/** Install the offscreen / hidden-tab pause (idempotent). Returns an uninstall function. */
|
|
4
|
+
declare function installOffscreenPause(): () => void;
|
|
5
|
+
/** `raf(cb, el)` with the offscreen pause installed. */
|
|
6
|
+
declare const raf: (cb: FrameRequestCallback, el?: Element) => number;
|
|
7
|
+
/** `onFrame(fn, el)` with the offscreen pause installed. */
|
|
8
|
+
declare const onFrame: (fn: (t: number, dt: number) => void, el?: Element) => (() => void);
|
|
9
|
+
|
|
10
|
+
export { caf, installOffscreenPause, onFrame, raf };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const caf: (id: number) => void;
|
|
2
|
+
|
|
3
|
+
/** Install the offscreen / hidden-tab pause (idempotent). Returns an uninstall function. */
|
|
4
|
+
declare function installOffscreenPause(): () => void;
|
|
5
|
+
/** `raf(cb, el)` with the offscreen pause installed. */
|
|
6
|
+
declare const raf: (cb: FrameRequestCallback, el?: Element) => number;
|
|
7
|
+
/** `onFrame(fn, el)` with the offscreen pause installed. */
|
|
8
|
+
declare const onFrame: (fn: (t: number, dt: number) => void, el?: Element) => (() => void);
|
|
9
|
+
|
|
10
|
+
export { caf, installOffscreenPause, onFrame, raf };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { s as setPauseHook, o as onFrame$1, r as raf$1 } from '../chunks/base-Be98yNyq.js';
|
|
2
|
+
export { b as caf } from '../chunks/base-Be98yNyq.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* motionary/components/offscreen (13.4) — pauses scheduler work nobody can see.
|
|
6
|
+
*
|
|
7
|
+
* Installs a pause hook on the shared rAF scheduler: every loop / callback waits
|
|
8
|
+
* while the document is hidden, and one given an owner element (`raf(cb, el)`,
|
|
9
|
+
* `onFrame(fn, el)`) also waits while that element is off screen (one shared
|
|
10
|
+
* IntersectionObserver). Widgets and the full bundles install it; the lite
|
|
11
|
+
* bundle does not (lite keeps the frame budget and drop-on-detach only).
|
|
12
|
+
* Kept deliberately tiny: it rides in every per-widget entry.
|
|
13
|
+
*
|
|
14
|
+
* ```ts
|
|
15
|
+
* import { installOffscreenPause } from 'motionary/components/offscreen';
|
|
16
|
+
* installOffscreenPause();
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
/** watched owners → off screen? (detached ones are swept: unobserved, and the plug-in tears down when none remain) */
|
|
20
|
+
const seen = /*#__PURE__*/ new Map();
|
|
21
|
+
let io;
|
|
22
|
+
let wake;
|
|
23
|
+
/** Remove the pause (everything parked runs again). Re-installed lazily by the next `raf` / `onFrame`. */
|
|
24
|
+
const un = () => {
|
|
25
|
+
if (io !== undefined) {
|
|
26
|
+
document.removeEventListener('visibilitychange', wake);
|
|
27
|
+
io?.disconnect();
|
|
28
|
+
io = undefined;
|
|
29
|
+
seen.clear();
|
|
30
|
+
setPauseHook();
|
|
31
|
+
wake();
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
/** Unobserve detached owners; with nothing left to watch, drop the listener + observer. */
|
|
35
|
+
const sweep = () => {
|
|
36
|
+
seen.forEach((_, el) => el.isConnected || (seen.delete(el), io?.unobserve(el)));
|
|
37
|
+
seen.size || un();
|
|
38
|
+
};
|
|
39
|
+
/** Install the offscreen / hidden-tab pause (idempotent). Returns an uninstall function. */
|
|
40
|
+
function installOffscreenPause() {
|
|
41
|
+
if (io === undefined && typeof document == 'object') {
|
|
42
|
+
io =
|
|
43
|
+
typeof IntersectionObserver == 'function'
|
|
44
|
+
? new IntersectionObserver((es) => {
|
|
45
|
+
for (const e of es)
|
|
46
|
+
seen.set(e.target, !e.isIntersecting);
|
|
47
|
+
wake();
|
|
48
|
+
sweep();
|
|
49
|
+
})
|
|
50
|
+
: null;
|
|
51
|
+
wake = setPauseHook((el) => document.hidden || seen.get(el), (el) => {
|
|
52
|
+
seen.has(el) || (seen.set(el, false), io?.observe(el));
|
|
53
|
+
sweep();
|
|
54
|
+
});
|
|
55
|
+
document.addEventListener('visibilitychange', wake);
|
|
56
|
+
}
|
|
57
|
+
return un;
|
|
58
|
+
}
|
|
59
|
+
/** `raf(cb, el)` with the offscreen pause installed. */
|
|
60
|
+
const raf = (cb, el) => (installOffscreenPause(), raf$1(cb, el));
|
|
61
|
+
/** `onFrame(fn, el)` with the offscreen pause installed. */
|
|
62
|
+
const onFrame = (fn, el) => (installOffscreenPause(), onFrame$1(fn, el));
|
|
63
|
+
|
|
64
|
+
export { installOffscreenPause, onFrame, raf };
|
|
65
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.4.0/dist/components/offscreen.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var base = require('../chunks/base-
|
|
3
|
+
var base = require('../chunks/base-Do-R_9gU.cjs');
|
|
4
4
|
|
|
5
5
|
const anim = (el, frames, o) => {
|
|
6
6
|
if (typeof el.animate !== 'function')
|
|
@@ -189,4 +189,4 @@ exports.countUp = countUp;
|
|
|
189
189
|
exports.definePack = definePack;
|
|
190
190
|
exports.definePacksComponents = definePacksComponents;
|
|
191
191
|
exports.flyToCart = flyToCart;
|
|
192
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.
|
|
192
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.4.0/dist/components/packs.cjs.map
|
package/dist/components/packs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as prefersReducedMotion, n as now, m as motionScale, r as raf,
|
|
1
|
+
import { p as prefersReducedMotion, n as now, m as motionScale, r as raf, d as clamp, H as EASE_OUT, E as EASE_SPRING, f as defineElement } from '../chunks/base-Be98yNyq.js';
|
|
2
2
|
|
|
3
3
|
const anim = (el, frames, o) => {
|
|
4
4
|
if (typeof el.animate !== 'function')
|
|
@@ -181,4 +181,4 @@ function definePacksComponents() {
|
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
export { PACKS, PACK_PRIMITIVES, applyPack, countUp, definePack, definePacksComponents, flyToCart };
|
|
184
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.
|
|
184
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.4.0/dist/components/packs.js.map
|
package/dist/components/page.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var base = require('../chunks/base-
|
|
4
|
-
var spring = require('../chunks/spring-
|
|
3
|
+
var base = require('../chunks/base-Do-R_9gU.cjs');
|
|
4
|
+
var spring = require('../chunks/spring-B0v7o7dG.cjs');
|
|
5
5
|
|
|
6
6
|
var css$8 = "usa-cursor{--usa-cursor-color:var(--usa-accent,#7c5cff);--usa-cursor-size:28px;position:fixed;inset:0;pointer-events:none;z-index:2147483600;opacity:0;transition:opacity 0.2s ease;contain:strict}usa-cursor[data-active]{opacity:1}usa-cursor .usa-cursor-ring{position:absolute;left:0;top:0;width:var(--usa-cursor-size);height:var(--usa-cursor-size);margin:calc(var(--usa-cursor-size) / -2) 0 0 calc(var(--usa-cursor-size) / -2);border:1.5px solid var(--usa-cursor-color);border-radius:999px;box-sizing:border-box;transition:width 0.25s cubic-bezier(0.34,1.56,0.64,1),height 0.25s cubic-bezier(0.34,1.56,0.64,1),margin 0.25s ease,border-radius 0.25s ease,background-color 0.2s ease;will-change:transform}usa-cursor[data-hover] .usa-cursor-ring:first-child{width:calc(var(--usa-cursor-size) * 1.6);height:calc(var(--usa-cursor-size) * 1.6);margin:calc(var(--usa-cursor-size) * -0.8) 0 0 calc(var(--usa-cursor-size) * -0.8);background:color-mix(in srgb,var(--usa-cursor-color) 15%,transparent)}usa-cursor[data-snapped] .usa-cursor-ring{border-radius:12px;background:color-mix(in srgb,var(--usa-cursor-color) 12%,transparent);translate:-50% -50%;margin:0}usa-cursor[data-down] .usa-cursor-ring:first-child{scale:0.8}usa-cursor .usa-cursor-dot{position:absolute;left:-3px;top:-3px;width:6px;height:6px;border-radius:50%;background:var(--usa-cursor-color)}usa-cursor[data-snapped] .usa-cursor-dot{opacity:0}usa-cursor .usa-cursor-glow{position:absolute;left:-200px;top:-200px;width:400px;height:400px;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--usa-cursor-color) 35%,transparent),transparent 65%);mix-blend-mode:screen}.usa-cursor-none,.usa-cursor-none *{cursor:none !important}@media (pointer:coarse),(prefers-reduced-motion:reduce){usa-cursor{display:none}.usa-cursor-none,.usa-cursor-none *{cursor:auto !important}}";
|
|
7
7
|
|
|
@@ -837,4 +837,4 @@ exports.setMotionLevel = setMotionLevel;
|
|
|
837
837
|
exports.smoothScroll = smoothScroll;
|
|
838
838
|
exports.supportsViewTransitions = supportsViewTransitions;
|
|
839
839
|
exports.themeTransition = themeTransition;
|
|
840
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.
|
|
840
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.4.0/dist/components/page.cjs.map
|