motionary 13.3.0 → 13.5.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 +77 -0
- package/README.md +10 -7
- package/dist/chunks/{anim-image-B68xnlYD.cjs → anim-image-CSVlsA0t.cjs} +2 -2
- package/dist/chunks/{anim-image-teDgsATS.js → anim-image-D6yGJ5SF.js} +2 -2
- package/dist/chunks/{audio-5FOqrAxu.js → audio-CZgCXg1t.js} +27 -6
- package/dist/chunks/{audio-DhgfWYZ_.cjs → audio-D0LwPShE.cjs} +27 -6
- package/dist/chunks/{badge-wall-Bd2dP3J7.js → badge-wall-C0gJ_Kck.js} +2 -2
- package/dist/chunks/{badge-wall-Q7x5HSe_.cjs → badge-wall-CITexuW7.cjs} +2 -2
- package/dist/chunks/{base-vu_KhBiv.cjs → base-BvH4nAcv.cjs} +146 -124
- package/dist/chunks/{base-nzeN_ux7.js → base-C9CJrhL3.js} +145 -125
- package/dist/chunks/{bg-generator-Dncd000D.cjs → bg-generator-CML8tPN8.cjs} +2 -2
- package/dist/chunks/{bg-generator-Dxx3s2zQ.js → bg-generator-oRwfTA5B.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-A9ihuDwy.cjs → builtins-DweCp29Z.cjs} +3 -3
- package/dist/chunks/{builtins-hBOeCPXL.js → builtins-SwWQKzb-.js} +3 -3
- package/dist/chunks/{carousel-Blko8aKV.cjs → carousel-DU3rHTq0.cjs} +2 -2
- package/dist/chunks/{carousel-DkQKWBK3.js → carousel-u6rqMqGu.js} +2 -2
- package/dist/chunks/{cart-drawer-CtX6EQRa.js → cart-drawer-CEIZfCw8.js} +4 -4
- package/dist/chunks/{cart-drawer-kyj9TlQC.cjs → cart-drawer-CkFMKMhx.cjs} +4 -4
- package/dist/chunks/{code-export-DOioRmM9.cjs → code-export-PdGSl9WE.cjs} +2 -2
- package/dist/chunks/{code-export-B6b27ZiI.js → code-export-wdrBIWRv.js} +2 -2
- package/dist/chunks/{color-picker-B6YXJdur.cjs → color-picker-B_xWVH8H.cjs} +2 -2
- package/dist/chunks/{color-picker-DNTzNylo.js → color-picker-CN8ThZfh.js} +2 -2
- package/dist/chunks/{command-palette-C6XV1glX.js → command-palette-IJuNiXhv.js} +2 -2
- package/dist/chunks/{command-palette-DAQQ_bkg.cjs → command-palette-ISetAeX1.cjs} +2 -2
- package/dist/chunks/{core-Bar7NFx7.js → core-B9Sjd4AV.js} +2 -2
- package/dist/chunks/{core-DVGtPabi.js → core-BZhM_0Zh.js} +2 -2
- package/dist/chunks/core-BjcOCpJt.cjs +1 -1
- package/dist/chunks/{core-DfkeC4s-.cjs → core-DbAYRKnS.cjs} +2 -2
- package/dist/chunks/core-Dj6iomdc.js +1 -1
- package/dist/chunks/{core-E18xla6s.cjs → core-DjjKLmZ6.cjs} +2 -2
- package/dist/chunks/{countdown-Cvef0Kb1.cjs → countdown-RQViryt7.cjs} +2 -2
- package/dist/chunks/{countdown-Dhp9G96N.js → countdown-WDZxXQz7.js} +2 -2
- package/dist/chunks/{date-picker-C9iVZUP3.cjs → date-picker-BgApzPNn.cjs} +2 -2
- package/dist/chunks/{date-picker-M7n1jZw9.js → date-picker-D4yqKTMJ.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-CwGL1sD8.js} +2 -2
- package/dist/chunks/{equalizer-6uhO-yfZ.cjs → equalizer-_eD_ZdCl.cjs} +2 -2
- package/dist/chunks/{festival-banner-ByYX1Oy6.cjs → festival-banner-Bs18K0MJ.cjs} +2 -2
- package/dist/chunks/{festival-banner-Dsu53in5.js → festival-banner-Dslu8K1g.js} +2 -2
- package/dist/chunks/{field-DeTgNf7K.js → field-DALTalya.js} +2 -2
- package/dist/chunks/{field-DcC_zJBH.cjs → field-Dwq8-CLN.cjs} +2 -2
- package/dist/chunks/{fx-lszndeFU.cjs → fx-DaVuB89C.cjs} +2 -2
- package/dist/chunks/{fx-qAVpKs8e.js → fx-Dc1sMyNg.js} +2 -2
- package/dist/chunks/{generative-BHIj-NU0.cjs → generative-BKoxWOSP.cjs} +16 -4
- package/dist/chunks/{generative-2LhxG5BJ.js → generative-DWdAwxYB.js} +20 -8
- package/dist/chunks/{gl-scene-CUTsZPTZ.js → gl-scene-BjQkVhUh.js} +9 -9
- package/dist/chunks/{gl-scene-DwcPxX2X.cjs → gl-scene-Ccn_PpRS.cjs} +6 -6
- package/dist/chunks/{globe-CzQ6nQ-o.js → globe-D56xlOmk.js} +10 -9
- package/dist/chunks/{globe-Dms25CB5.cjs → globe-DA0jyb6s.cjs} +10 -9
- package/dist/chunks/{gpu-DdiOOXTP.js → gpu-7AY-uzNc.js} +37 -16
- package/dist/chunks/{gpu-BREsvJpT.cjs → gpu-DTO3JmAF.cjs} +30 -9
- package/dist/chunks/{gpu-particles-CbBJ_tIZ.js → gpu-particles-4DBj91f-.js} +6 -6
- package/dist/chunks/{gpu-particles-DrjYuSVR.cjs → gpu-particles-wEO_rds1.cjs} +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-dsAcxcJv.cjs → keyframes-DyniziL4.cjs} +2 -2
- package/dist/chunks/{keyframes-BBke3wIL.js → keyframes-t521frAa.js} +2 -2
- package/dist/chunks/{leaderboard-wF-UnLbY.cjs → leaderboard-DvSSQ8o3.cjs} +4 -4
- package/dist/chunks/{leaderboard-D2Xb0lqP.js → leaderboard-_UPi0KQX.js} +4 -4
- package/dist/chunks/{location-card-GrQnXfwp.js → location-card-Bq596aK5.js} +2 -2
- package/dist/chunks/{location-card-BJsN6s34.cjs → location-card-DSPTApUe.cjs} +2 -2
- package/dist/chunks/{lottie-icon-DMkTeHCL.cjs → lottie-icon-BoxkukMd.cjs} +2 -2
- package/dist/chunks/{lottie-icon-D3fdgfNU.js → lottie-icon-pqBgCV0y.js} +2 -2
- package/dist/chunks/{lottie-player-CkdMUN-D.js → lottie-player-C9X0Gp_E.js} +3 -3
- package/dist/chunks/{lottie-player-hYycf5lY.cjs → lottie-player-D6YGOx39.cjs} +3 -3
- package/dist/chunks/{lyrics-CBRdLBDw.cjs → lyrics-CRB7dA1j.cjs} +6 -5
- package/dist/chunks/{lyrics-jTQwzX9m.js → lyrics-D7mzxVIq.js} +6 -5
- package/dist/chunks/{manifest-pVzW6oyg.js → manifest-CqfKtjeL.js} +2 -2
- package/dist/chunks/{manifest-Rxf1Mumb.cjs → manifest-xr3WET80.cjs} +2 -2
- package/dist/chunks/{menu-Bc2M8HMJ.cjs → menu-CZ1zHTT9.cjs} +2 -2
- package/dist/chunks/{menu-Ydg47TQx.js → menu-XcdMtcfw.js} +2 -2
- package/dist/chunks/{menu-toggle-B1YBlbdJ.cjs → menu-toggle-DGXN4VsN.cjs} +2 -2
- package/dist/chunks/{menu-toggle-C-_dv_TN.js → menu-toggle-RD6Fu1Gm.js} +2 -2
- package/dist/chunks/{nav-morph-kKmG_ocG.cjs → nav-morph-C4rD3wrU.cjs} +2 -2
- package/dist/chunks/{nav-morph-DA-Q4xec.js → nav-morph-F6qzM20K.js} +2 -2
- package/dist/chunks/{otp-CVUw78Mr.js → otp-BJKyY7I3.js} +2 -2
- package/dist/chunks/{otp-Cxz5uFb_.cjs → otp-DUyEWYMi.cjs} +2 -2
- package/dist/chunks/{pagination-0fuULrSB.js → pagination-D6iMBStU.js} +2 -2
- package/dist/chunks/{pagination-DbqyUpxV.cjs → pagination-DHmYZZU9.cjs} +2 -2
- package/dist/chunks/{physics-playground-5lihsTyh.cjs → physics-playground-BJx2yVvV.cjs} +5 -5
- package/dist/chunks/{physics-playground-_5_slxtj.js → physics-playground-C8jCWhgK.js} +5 -5
- package/dist/chunks/{player-DqUZJ0d_.js → player-BTaPvK8G.js} +14 -13
- package/dist/chunks/{player-DIwSjUFR.cjs → player-BZOkQbZ9.cjs} +14 -13
- package/dist/chunks/{presence-DfTxVIEf.js → presence-6eQ9t5vX.js} +2 -2
- package/dist/chunks/{presence-CRfWmNWz.cjs → presence-DAthlALi.cjs} +2 -2
- package/dist/chunks/presets-BYBVJVeP.js +1 -1
- package/dist/chunks/presets-CUHys3sK.cjs +1 -1
- package/dist/chunks/{prize-wheel-tgpOsdDA.js → prize-wheel-CpGVo8QG.js} +2 -2
- package/dist/chunks/{prize-wheel-MOZOrI-p.cjs → prize-wheel-emDopI5c.cjs} +2 -2
- package/dist/chunks/{product-gallery-BcGA35Ie.js → product-gallery-BmnYLKAQ.js} +2 -2
- package/dist/chunks/{product-gallery-Bi6I6x1o.cjs → product-gallery-CKtSVhZk.cjs} +2 -2
- package/dist/chunks/{progress-ring-BO9a3Q24.cjs → progress-ring-C75O4MUi.cjs} +7 -6
- package/dist/chunks/{progress-ring-6kTzB49S.js → progress-ring-CKgR1GRB.js} +7 -6
- package/dist/chunks/{prop-panel-DGm8VM4Z.js → prop-panel-BjbCiPAB.js} +2 -2
- package/dist/chunks/{prop-panel-_kA6mvB9.cjs → prop-panel-DFqga6H5.cjs} +2 -2
- package/dist/chunks/{radar-DT93Se3Y.cjs → radar-D-bZRrgs.cjs} +2 -2
- package/dist/chunks/{radar-sKiciNsS.js → radar-rBQT1BFh.js} +2 -2
- package/dist/chunks/{reactions-BASnlqck.cjs → reactions-BL2iO8iy.cjs} +2 -2
- package/dist/chunks/{reactions-B4xogsDd.js → reactions-CsdP0Su5.js} +2 -2
- package/dist/chunks/{registry-EziiQiWO.cjs → registry-CibnX7Ui.cjs} +2 -2
- package/dist/chunks/{registry-BfiEkviv.cjs → registry-D4qv6B49.cjs} +2 -2
- package/dist/chunks/{registry-PxXkPc1Q.js → registry-DKs_BiEo.js} +2 -2
- package/dist/chunks/{registry-C8rYCsXx.js → registry-Ng9TVXnA.js} +2 -2
- package/dist/chunks/{retro-button-BxCv-ybi.js → retro-button-Bw4sqAkl.js} +2 -2
- package/dist/chunks/{retro-button-DfuSdfWj.cjs → retro-button-DrrBZ6w8.cjs} +2 -2
- package/dist/chunks/{rive-cR-Q9Quh.cjs → rive-D6X4J0Mi.cjs} +2 -2
- package/dist/chunks/{rive-BHdln8XJ.js → rive-FjeW9KDl.js} +2 -2
- package/dist/chunks/{runtime-link-CeVpMlOJ.js → runtime-link-BZd9tPZE.js} +2 -2
- package/dist/chunks/{runtime-link-MABGYSmW.cjs → runtime-link-DDGDuR6q.cjs} +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-CgFA-E0N.js} +4 -4
- package/dist/chunks/{scroll-scene-CmbLFA1m.cjs → scroll-scene-Ch5d1PER.cjs} +4 -4
- package/dist/chunks/{segmented-DHBqMcAF.js → segmented-BEep92iW.js} +2 -2
- package/dist/chunks/{segmented-CbZtwChW.cjs → segmented-CpB4mKIn.cjs} +2 -2
- package/dist/chunks/{shader-backdrop-DT1h5Zoc.cjs → shader-backdrop-C4UhepvI.cjs} +5 -5
- package/dist/chunks/{shader-backdrop-rrssjdMI.js → shader-backdrop-DC0ZvVMV.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-7UwF69TQ.cjs → sheet-B38ylIEW.cjs} +2 -2
- package/dist/chunks/{sheet-C63sKkKn.js → sheet-BHTMF8qx.js} +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-BMrbmru6.js} +2 -2
- package/dist/chunks/{skeleton-reveal-DfH6IiUG.cjs → skeleton-reveal-Dsd3Wp0n.cjs} +2 -2
- package/dist/chunks/{sparkline-CCV_wZ9j.cjs → sparkline-DeKhZpVo.cjs} +7 -6
- package/dist/chunks/{sparkline-kl8sJ7cP.js → sparkline-htTaTcgs.js} +7 -6
- package/dist/chunks/{spring-BX7EJst7.js → spring-DBCejV_z.js} +2 -2
- package/dist/chunks/{spring-Q3Y-pHuP.cjs → spring-XEl_diDJ.cjs} +2 -2
- package/dist/chunks/stagger-B9sKPwQB.js +1 -1
- package/dist/chunks/stagger-DFKwqOQG.cjs +1 -1
- package/dist/chunks/{suggestion-chips-D9i2FGGX.cjs → suggestion-chips-CAcbFTr4.cjs} +2 -2
- package/dist/chunks/{suggestion-chips-fmrwI2Da.js → suggestion-chips-Cj70JCtZ.js} +2 -2
- package/dist/chunks/{switch-DnwGGeZj.js → switch-CnSs8nDn.js} +2 -2
- package/dist/chunks/{switch-Db4uTUcj.cjs → switch-DiTlApGd.cjs} +2 -2
- package/dist/chunks/{tab-bar-CSx4fTC9.js → tab-bar-B7hFB974.js} +2 -2
- package/dist/chunks/{tab-bar-DqzNvlDc.cjs → tab-bar-BBlVAqbq.cjs} +2 -2
- package/dist/chunks/{ticker-j_dmsse0.cjs → ticker-Bcx-J0T3.cjs} +2 -2
- package/dist/chunks/{ticker-DaMSl3Kd.js → ticker-DZN0D39q.js} +2 -2
- package/dist/chunks/{tip-CIh4O-DZ.cjs → tip-VGS3qAUm.cjs} +2 -2
- package/dist/chunks/{tip-C8T1SdOJ.js → tip-ylGHoOIf.js} +2 -2
- package/dist/chunks/{toast-stack-kHQdNZDv.cjs → toast-stack-DprisNp_.cjs} +3 -3
- package/dist/chunks/{toast-stack-COXQ3IOx.js → toast-stack-Z_5cS1Nz.js} +3 -3
- package/dist/chunks/{tween-DQzuHdMx.cjs → tween-C755kVRe.cjs} +2 -2
- package/dist/chunks/{tween-BqIL1A7u.js → tween-DZdCTOBG.js} +2 -2
- package/dist/chunks/{upload-progress-BhyFjwb6.cjs → upload-progress-CEAWkP-p.cjs} +2 -2
- package/dist/chunks/{upload-progress-CXfoNUhm.js → upload-progress-y7N0eaM4.js} +2 -2
- package/dist/chunks/{variants-Dk-FItCT.cjs → variants-BtqEJuki.cjs} +2 -2
- package/dist/chunks/{variants-DY08myqK.js → variants-MxfB3UVB.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-9UauxvT9.cjs} +2 -2
- package/dist/chunks/{voice-button-DdKxtavP.js → voice-button-DFEoNe24.js} +2 -2
- package/dist/chunks/{weather-card-DfXFesfY.cjs → weather-card-4Eg6e43D.cjs} +5 -5
- package/dist/chunks/{weather-card-Ecgk-JQd.js → weather-card-NR0i507J.js} +6 -6
- package/dist/chunks/{worker-canvas-CEbqBgK5.cjs → worker-canvas-BMBXAFWp.cjs} +2 -2
- package/dist/chunks/{worker-canvas-BIuesniy.js → worker-canvas-CPZvzrWQ.js} +2 -2
- package/dist/chunks/{xp-bar-Cx-dMEMT.js → xp-bar-DAbx1LZ_.js} +2 -2
- package/dist/chunks/{xp-bar-BC8UnCHG.cjs → xp-bar-DkWfCTfB.cjs} +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 +17 -41
- package/dist/components/angular.d.cts +2047 -8
- package/dist/components/angular.d.ts +2047 -8
- package/dist/components/angular.js +17 -41
- 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 +2 -5
- package/dist/components/design.js +2 -5
- package/dist/components/dotlottie.cjs +4 -5
- package/dist/components/dotlottie.js +4 -5
- package/dist/components/dsl.cjs +2 -3
- package/dist/components/dsl.js +2 -3
- package/dist/components/effects.cjs +60 -30
- package/dist/components/effects.d.cts +0 -88
- package/dist/components/effects.d.ts +0 -88
- package/dist/components/effects.js +68 -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 +23 -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 +23 -6
- package/dist/components/fx-ai.cjs +2 -3
- package/dist/components/fx-ai.js +2 -3
- package/dist/components/fx-chart.cjs +2 -3
- package/dist/components/fx-chart.js +2 -3
- package/dist/components/fx-cinema.cjs +2 -3
- package/dist/components/fx-cinema.js +2 -3
- package/dist/components/fx-cyber.cjs +2 -3
- package/dist/components/fx-cyber.js +2 -3
- package/dist/components/fx-festival.cjs +2 -3
- package/dist/components/fx-festival.js +2 -3
- package/dist/components/fx-focus.cjs +2 -3
- package/dist/components/fx-focus.js +2 -3
- package/dist/components/fx-form.cjs +2 -3
- package/dist/components/fx-form.js +2 -3
- package/dist/components/fx-game.cjs +2 -3
- package/dist/components/fx-game.js +2 -3
- package/dist/components/fx-genart.cjs +2 -3
- package/dist/components/fx-genart.js +2 -3
- package/dist/components/fx-geo.cjs +2 -3
- package/dist/components/fx-geo.js +2 -3
- package/dist/components/fx-gesture.cjs +2 -3
- package/dist/components/fx-gesture.js +2 -3
- package/dist/components/fx-gpu.cjs +4 -5
- package/dist/components/fx-gpu.js +4 -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 +2 -3
- package/dist/components/fx-lottie.js +2 -3
- package/dist/components/fx-morph.cjs +2 -3
- package/dist/components/fx-morph.js +2 -3
- package/dist/components/fx-music.cjs +24 -9
- 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 -10
- package/dist/components/fx-organic.cjs +2 -3
- package/dist/components/fx-organic.js +2 -3
- package/dist/components/fx-paper.cjs +2 -3
- package/dist/components/fx-paper.js +2 -3
- package/dist/components/fx-perf.cjs +3 -3
- package/dist/components/fx-perf.js +3 -3
- package/dist/components/fx-physics.cjs +25 -8
- 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 -12
- package/dist/components/fx-retro.cjs +2 -3
- package/dist/components/fx-retro.js +2 -3
- package/dist/components/fx-safe.cjs +3 -3
- package/dist/components/fx-safe.js +3 -3
- package/dist/components/fx-shop.cjs +2 -3
- package/dist/components/fx-shop.js +2 -3
- package/dist/components/fx-social.cjs +2 -3
- package/dist/components/fx-social.js +2 -3
- package/dist/components/fx-spatial.cjs +2 -3
- package/dist/components/fx-spatial.js +2 -3
- package/dist/components/fx-surface.cjs +2 -3
- package/dist/components/fx-surface.js +2 -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 +3 -4
- package/dist/components/fx-weather.js +3 -4
- package/dist/components/fx.cjs +4 -7
- package/dist/components/fx.js +5 -8
- package/dist/components/fx2.cjs +4 -8
- package/dist/components/fx2.d.cts +0 -133
- package/dist/components/fx2.d.ts +0 -133
- package/dist/components/fx2.js +5 -9
- package/dist/components/gesture.cjs +4 -4
- package/dist/components/gesture.js +5 -5
- package/dist/components/gl-model.cjs +4 -5
- package/dist/components/gl-model.js +4 -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.d.cts +2049 -3
- package/dist/components/jsx.d.ts +2049 -3
- 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 +124 -119
- package/dist/components/lite.js +124 -120
- package/dist/components/marketplace.cjs +2 -4
- package/dist/components/marketplace.js +3 -5
- package/dist/components/native.cjs +1 -4
- package/dist/components/native.js +1 -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 +2 -7
- package/dist/components/plugins.js +2 -7
- package/dist/components/react.cjs +26 -3
- package/dist/components/react.d.cts +23 -1
- package/dist/components/react.d.ts +23 -1
- package/dist/components/react.js +24 -4
- package/dist/components/reveal.cjs +2 -2
- package/dist/components/reveal.js +2 -2
- package/dist/components/snap-carousel.cjs +3 -4
- package/dist/components/snap-carousel.js +3 -4
- package/dist/components/solid.cjs +3 -36
- package/dist/components/solid.d.cts +1451 -2
- package/dist/components/solid.d.ts +1451 -2
- package/dist/components/solid.js +3 -36
- package/dist/components/svelte.cjs +10 -36
- package/dist/components/svelte.d.cts +2047 -2
- package/dist/components/svelte.d.ts +2047 -2
- package/dist/components/svelte.js +10 -36
- package/dist/components/svg.cjs +2 -2
- package/dist/components/svg.js +2 -2
- package/dist/components/text.cjs +3 -4
- package/dist/components/text.js +3 -4
- package/dist/components/timeline.cjs +3 -4
- package/dist/components/timeline.js +4 -5
- 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 +8 -35
- package/dist/components/vue.d.cts +2046 -1
- package/dist/components/vue.d.ts +2046 -1
- package/dist/components/vue.js +8 -35
- package/dist/components/webgl.cjs +2 -2
- package/dist/components/webgl.js +2 -2
- package/dist/components/widgets.cjs +52 -85
- package/dist/components/widgets.js +101 -134
- package/dist/components.cjs +10 -11
- package/dist/components.d.cts +13 -5
- package/dist/components.d.ts +13 -5
- package/dist/components.js +11 -13
- package/dist/components.umd.js +3 -3
- package/dist/effects/achievement-unlock.cjs +2 -3
- package/dist/effects/achievement-unlock.js +2 -3
- package/dist/effects/aurora-veil.cjs +2 -5
- package/dist/effects/aurora-veil.js +2 -5
- package/dist/effects/badge-pop.cjs +2 -3
- package/dist/effects/badge-pop.js +2 -3
- package/dist/effects/bars-grow.cjs +2 -4
- package/dist/effects/bars-grow.js +2 -4
- package/dist/effects/beat-bounce.cjs +2 -6
- package/dist/effects/beat-bounce.js +2 -6
- package/dist/effects/blob-button.cjs +2 -4
- package/dist/effects/blob-button.js +2 -4
- package/dist/effects/bloom.cjs +2 -3
- package/dist/effects/bloom.js +2 -3
- package/dist/effects/breathe.cjs +2 -3
- package/dist/effects/breathe.js +2 -3
- package/dist/effects/brushed-metal.cjs +2 -5
- package/dist/effects/brushed-metal.js +2 -5
- package/dist/effects/camera-dolly.cjs +2 -4
- package/dist/effects/camera-dolly.js +2 -4
- package/dist/effects/card-flip-3d.cjs +2 -6
- package/dist/effects/card-flip-3d.js +2 -6
- package/dist/effects/chest-open.cjs +2 -3
- package/dist/effects/chest-open.js +2 -3
- package/dist/effects/cloth.cjs +2 -5
- package/dist/effects/cloth.js +2 -5
- package/dist/effects/coin-burst.cjs +2 -3
- package/dist/effects/coin-burst.js +2 -3
- package/dist/effects/color-pulse.cjs +2 -3
- package/dist/effects/color-pulse.js +2 -3
- package/dist/effects/crt-power.cjs +2 -3
- package/dist/effects/crt-power.js +2 -3
- package/dist/effects/crumple.cjs +2 -3
- package/dist/effects/crumple.js +2 -3
- package/dist/effects/data-decode.cjs +2 -3
- package/dist/effects/data-decode.js +2 -3
- package/dist/effects/day-cycle.cjs +2 -5
- package/dist/effects/day-cycle.js +2 -5
- package/dist/effects/depth-in.cjs +2 -3
- package/dist/effects/depth-in.js +2 -3
- package/dist/effects/depth-pop.cjs +2 -3
- package/dist/effects/depth-pop.js +2 -3
- package/dist/effects/depth-stack.cjs +2 -6
- package/dist/effects/depth-stack.js +2 -6
- package/dist/effects/dolly-in.cjs +2 -3
- package/dist/effects/dolly-in.js +2 -3
- package/dist/effects/dots-pop.cjs +2 -4
- package/dist/effects/dots-pop.js +2 -4
- package/dist/effects/field-shake.cjs +2 -3
- package/dist/effects/field-shake.js +2 -3
- package/dist/effects/field-success.cjs +2 -3
- package/dist/effects/field-success.js +2 -3
- package/dist/effects/film-burn.cjs +2 -3
- package/dist/effects/film-burn.js +2 -3
- package/dist/effects/fire.cjs +3 -6
- package/dist/effects/fire.js +3 -6
- package/dist/effects/fireflies.cjs +3 -6
- package/dist/effects/fireflies.js +3 -6
- package/dist/effects/firework-burst.cjs +2 -3
- package/dist/effects/firework-burst.js +2 -3
- package/dist/effects/flip-chars.cjs +2 -4
- package/dist/effects/flip-chars.js +2 -4
- package/dist/effects/fluid.cjs +3 -6
- package/dist/effects/fluid.js +3 -6
- package/dist/effects/fly-to-cart.cjs +2 -3
- package/dist/effects/fly-to-cart.js +2 -3
- package/dist/effects/focus-draw.cjs +2 -3
- package/dist/effects/focus-draw.js +2 -3
- package/dist/effects/focus-glow.cjs +2 -3
- package/dist/effects/focus-glow.js +2 -3
- package/dist/effects/fog.cjs +2 -5
- package/dist/effects/fog.js +2 -5
- package/dist/effects/font-breathe.cjs +2 -4
- package/dist/effects/font-breathe.js +2 -4
- package/dist/effects/form-cascade.cjs +2 -3
- package/dist/effects/form-cascade.js +2 -3
- package/dist/effects/gen-skeleton.cjs +2 -3
- package/dist/effects/gen-skeleton.js +2 -3
- package/dist/effects/glass-frost.cjs +2 -3
- package/dist/effects/glass-frost.js +2 -3
- package/dist/effects/glitch-text.cjs +2 -4
- package/dist/effects/glitch-text.js +2 -4
- package/dist/effects/globe-spin.cjs +2 -3
- package/dist/effects/globe-spin.js +2 -3
- package/dist/effects/god-rays.cjs +2 -5
- package/dist/effects/god-rays.js +2 -5
- package/dist/effects/gpu-lift.cjs +2 -3
- package/dist/effects/gpu-lift.js +2 -3
- package/dist/effects/grain-flicker.cjs +2 -3
- package/dist/effects/grain-flicker.js +2 -3
- package/dist/effects/halftone-in.cjs +2 -3
- package/dist/effects/halftone-in.js +2 -3
- package/dist/effects/highlight-sweep.cjs +2 -3
- package/dist/effects/highlight-sweep.js +2 -3
- package/dist/effects/hologram.cjs +2 -3
- package/dist/effects/hologram.js +2 -3
- package/dist/effects/hud-frame.cjs +2 -3
- package/dist/effects/hud-frame.js +2 -3
- package/dist/effects/icon-pop.cjs +2 -3
- package/dist/effects/icon-pop.js +2 -3
- package/dist/effects/icon-swap.cjs +2 -4
- package/dist/effects/icon-swap.js +2 -4
- package/dist/effects/idle-reveal.cjs +2 -3
- package/dist/effects/idle-reveal.js +2 -3
- package/dist/effects/ink.cjs +3 -6
- package/dist/effects/ink.js +3 -6
- package/dist/effects/jump-cut.cjs +2 -3
- package/dist/effects/jump-cut.js +2 -3
- package/dist/effects/kaleido.cjs +2 -3
- package/dist/effects/kaleido.js +2 -3
- package/dist/effects/label-float.cjs +2 -3
- package/dist/effects/label-float.js +2 -3
- package/dist/effects/lantern-rise.cjs +2 -3
- package/dist/effects/lantern-rise.js +2 -3
- package/dist/effects/leaves.cjs +3 -6
- package/dist/effects/leaves.js +3 -6
- package/dist/effects/letterbox.cjs +2 -3
- package/dist/effects/letterbox.js +2 -3
- package/dist/effects/level-up.cjs +2 -3
- package/dist/effects/level-up.js +2 -3
- package/dist/effects/light-follow.cjs +2 -5
- package/dist/effects/light-follow.js +2 -5
- package/dist/effects/lightning.cjs +2 -5
- package/dist/effects/lightning.js +2 -5
- package/dist/effects/line-draw.cjs +2 -4
- package/dist/effects/line-draw.js +2 -4
- package/dist/effects/liquid-text.cjs +2 -4
- package/dist/effects/liquid-text.js +2 -4
- package/dist/effects/liquid-wipe.cjs +2 -4
- package/dist/effects/liquid-wipe.js +2 -4
- package/dist/effects/lottie-play.cjs +2 -3
- package/dist/effects/lottie-play.js +2 -3
- package/dist/effects/magnet.cjs +2 -5
- package/dist/effects/magnet.js +2 -5
- package/dist/effects/marching-ants.cjs +2 -3
- package/dist/effects/marching-ants.js +2 -3
- package/dist/effects/marker-pulse.cjs +2 -3
- package/dist/effects/marker-pulse.js +2 -3
- package/dist/effects/mention-glow.cjs +2 -3
- package/dist/effects/mention-glow.js +2 -3
- package/dist/effects/mesh-drift.cjs +2 -3
- package/dist/effects/mesh-drift.js +2 -3
- package/dist/effects/message-in.cjs +2 -3
- package/dist/effects/message-in.js +2 -3
- package/dist/effects/mosaic-flip.cjs +2 -4
- package/dist/effects/mosaic-flip.js +2 -4
- package/dist/effects/neon-ignite.cjs +2 -3
- package/dist/effects/neon-ignite.js +2 -3
- package/dist/effects/neon-pulse.cjs +2 -3
- package/dist/effects/neon-pulse.js +2 -3
- package/dist/effects/neon-write.cjs +2 -4
- package/dist/effects/neon-write.js +2 -4
- package/dist/effects/neu-press.cjs +2 -3
- package/dist/effects/neu-press.js +2 -3
- package/dist/effects/noise-reveal.cjs +2 -4
- package/dist/effects/noise-reveal.js +2 -4
- package/dist/effects/number-roll.cjs +2 -4
- package/dist/effects/number-roll.js +2 -4
- package/dist/effects/orbit-camera.cjs +2 -6
- package/dist/effects/orbit-camera.js +2 -6
- package/dist/effects/orbit-in.cjs +2 -3
- package/dist/effects/orbit-in.js +2 -3
- package/dist/effects/origami.cjs +2 -6
- package/dist/effects/origami.js +2 -6
- package/dist/effects/page-curl.cjs +2 -4
- package/dist/effects/page-curl.js +2 -4
- package/dist/effects/pan-reveal.cjs +2 -3
- package/dist/effects/pan-reveal.js +2 -3
- package/dist/effects/paper-unfold.cjs +2 -3
- package/dist/effects/paper-unfold.js +2 -3
- package/dist/effects/particle-text.cjs +2 -4
- package/dist/effects/particle-text.js +2 -4
- package/dist/effects/path-morph.cjs +2 -4
- package/dist/effects/path-morph.js +2 -4
- package/dist/effects/pearlescent.cjs +2 -5
- package/dist/effects/pearlescent.js +2 -5
- package/dist/effects/pencil-sketch.cjs +2 -3
- package/dist/effects/pencil-sketch.js +2 -3
- package/dist/effects/pin-drop.cjs +2 -3
- package/dist/effects/pin-drop.js +2 -3
- package/dist/effects/pinball.cjs +2 -5
- package/dist/effects/pinball.js +2 -5
- package/dist/effects/pinch-hint.cjs +2 -3
- package/dist/effects/pinch-hint.js +2 -3
- package/dist/effects/pixelate-in.cjs +2 -3
- package/dist/effects/pixelate-in.js +2 -3
- package/dist/effects/pointer-shadow.cjs +2 -5
- package/dist/effects/pointer-shadow.js +2 -5
- package/dist/effects/portal-open.cjs +2 -3
- package/dist/effects/portal-open.js +2 -3
- package/dist/effects/price-flip.cjs +2 -3
- package/dist/effects/price-flip.js +2 -3
- package/dist/effects/product-spin.cjs +2 -6
- package/dist/effects/product-spin.js +2 -6
- package/dist/effects/rack-focus.cjs +2 -3
- package/dist/effects/rack-focus.js +2 -3
- package/dist/effects/radial-spectrum.cjs +2 -6
- package/dist/effects/radial-spectrum.js +2 -6
- package/dist/effects/rain-glass.cjs +2 -5
- package/dist/effects/rain-glass.js +2 -5
- package/dist/effects/reaction-burst.cjs +2 -3
- package/dist/effects/reaction-burst.js +2 -3
- package/dist/effects/read-receipt.cjs +2 -3
- package/dist/effects/read-receipt.js +2 -3
- package/dist/effects/refraction.cjs +2 -5
- package/dist/effects/refraction.js +2 -5
- package/dist/effects/ring-sweep.cjs +2 -4
- package/dist/effects/ring-sweep.js +2 -4
- package/dist/effects/ripple-dissolve.cjs +2 -4
- package/dist/effects/ripple-dissolve.js +2 -4
- package/dist/effects/rope.cjs +2 -5
- package/dist/effects/rope.js +2 -5
- package/dist/effects/route-draw.cjs +2 -3
- package/dist/effects/route-draw.js +2 -3
- package/dist/effects/safe-fade.cjs +2 -3
- package/dist/effects/safe-fade.js +2 -3
- package/dist/effects/sakura.cjs +3 -6
- package/dist/effects/sakura.js +3 -6
- package/dist/effects/sale-shine.cjs +2 -3
- package/dist/effects/sale-shine.js +2 -3
- package/dist/effects/sankey-flow.cjs +2 -4
- package/dist/effects/sankey-flow.js +2 -4
- package/dist/effects/scanline-sweep.cjs +2 -3
- package/dist/effects/scanline-sweep.js +2 -3
- package/dist/effects/shatter.cjs +2 -4
- package/dist/effects/shatter.js +2 -4
- package/dist/effects/smoke.cjs +3 -6
- package/dist/effects/smoke.js +3 -6
- package/dist/effects/snowfall.cjs +2 -5
- package/dist/effects/snowfall.js +2 -5
- package/dist/effects/soft-body.cjs +2 -5
- package/dist/effects/soft-body.js +2 -5
- package/dist/effects/sound-particles.cjs +2 -6
- package/dist/effects/sound-particles.js +2 -6
- package/dist/effects/spatial-float.cjs +2 -3
- package/dist/effects/spatial-float.js +2 -3
- package/dist/effects/spectrum-mirror.cjs +2 -6
- package/dist/effects/spectrum-mirror.js +2 -6
- package/dist/effects/splash.cjs +3 -6
- package/dist/effects/splash.js +3 -6
- package/dist/effects/spooky-float.cjs +2 -3
- package/dist/effects/spooky-float.js +2 -3
- package/dist/effects/stock-pulse.cjs +2 -3
- package/dist/effects/stock-pulse.js +2 -3
- package/dist/effects/stream-text.cjs +2 -3
- package/dist/effects/stream-text.js +2 -3
- package/dist/effects/stroke-draw.cjs +2 -4
- package/dist/effects/stroke-draw.js +2 -4
- package/dist/effects/success-check.cjs +2 -3
- package/dist/effects/success-check.js +2 -3
- package/dist/effects/swipe-hint.cjs +2 -3
- package/dist/effects/swipe-hint.js +2 -3
- package/dist/effects/text-trail.cjs +2 -4
- package/dist/effects/text-trail.js +2 -4
- package/dist/effects/thinking-glow.cjs +2 -3
- package/dist/effects/thinking-glow.js +2 -3
- package/dist/effects/tilt-wobble.cjs +2 -3
- package/dist/effects/tilt-wobble.js +2 -3
- package/dist/effects/typing-dots.cjs +2 -3
- package/dist/effects/typing-dots.js +2 -3
- package/dist/effects/underline-sweep.cjs +2 -3
- package/dist/effects/underline-sweep.js +2 -3
- package/dist/effects/vhs-glitch.cjs +2 -3
- package/dist/effects/vhs-glitch.js +2 -3
- package/dist/effects/vine-grow.cjs +2 -3
- package/dist/effects/vine-grow.js +2 -3
- package/dist/effects/vinyl-spin.cjs +2 -6
- package/dist/effects/vinyl-spin.js +2 -6
- package/dist/effects/voice-wave.cjs +2 -3
- package/dist/effects/voice-wave.js +2 -3
- package/dist/effects/water-drop.cjs +2 -3
- package/dist/effects/water-drop.js +2 -3
- package/dist/effects/watercolor.cjs +2 -3
- package/dist/effects/watercolor.js +2 -3
- package/dist/effects/waveform-scope.cjs +2 -6
- package/dist/effects/waveform-scope.js +2 -6
- package/dist/effects/xmas-snow.cjs +2 -3
- package/dist/effects/xmas-snow.js +2 -3
- package/dist/effects/xp-gain.cjs +2 -3
- package/dist/effects/xp-gain.js +2 -3
- package/dist/effects/y2k-shine.cjs +2 -3
- package/dist/effects/y2k-shine.js +2 -3
- package/dist/element.cjs +1 -2
- package/dist/element.js +1 -2
- package/dist/element.umd.js +1 -1
- package/dist/index.cjs +2 -4
- package/dist/index.js +2 -4
- package/dist/index.umd.js +3 -3
- package/dist/llms-full.txt +1 -1
- package/dist/llms.txt +1 -1
- package/dist/manifest.json +10 -5
- 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 -2
- package/dist/react.js +1 -2
- 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 +3 -6
- package/dist/runtime/format-apng.iife.js +1 -1
- package/dist/runtime/format-apng.js +3 -6
- package/dist/runtime/format-css.cjs +3 -6
- package/dist/runtime/format-css.iife.js +1 -1
- package/dist/runtime/format-css.js +3 -6
- package/dist/runtime/format-gif.cjs +3 -6
- package/dist/runtime/format-gif.iife.js +1 -1
- package/dist/runtime/format-gif.js +3 -6
- 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 +4 -5
- package/dist/runtime/format-motion.iife.js +1 -1
- package/dist/runtime/format-motion.js +4 -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 +3 -5
- package/dist/runtime/format-sprite.iife.js +1 -1
- package/dist/runtime/format-sprite.js +3 -5
- package/dist/runtime/format-svg.cjs +3 -4
- package/dist/runtime/format-svg.iife.js +1 -1
- package/dist/runtime/format-svg.js +3 -4
- package/dist/runtime/format-webp.cjs +3 -6
- package/dist/runtime/format-webp.iife.js +1 -1
- package/dist/runtime/format-webp.js +3 -6
- 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 +3 -5
- package/dist/runtime/vector.iife.js +1 -1
- package/dist/runtime/vector.js +3 -5
- 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 -2
- package/dist/solid.js +1 -2
- package/dist/svelte.cjs +1 -2
- package/dist/svelte.js +1 -2
- package/dist/vue.cjs +1 -2
- package/dist/vue.js +1 -2
- package/dist/widgets/add-to-cart.cjs +4 -7
- package/dist/widgets/add-to-cart.js +4 -7
- package/dist/widgets/badge-wall.cjs +2 -3
- package/dist/widgets/badge-wall.js +2 -3
- package/dist/widgets/bar-chart.cjs +2 -2
- package/dist/widgets/bar-chart.js +2 -2
- package/dist/widgets/bg-generator.cjs +2 -5
- package/dist/widgets/bg-generator.js +2 -5
- package/dist/widgets/carousel.cjs +2 -4
- package/dist/widgets/carousel.js +2 -4
- package/dist/widgets/cart-drawer.cjs +2 -3
- package/dist/widgets/cart-drawer.js +2 -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 +2 -4
- package/dist/widgets/code-export.js +2 -4
- package/dist/widgets/color-picker.cjs +2 -4
- package/dist/widgets/color-picker.js +2 -4
- package/dist/widgets/command-palette.cjs +2 -3
- package/dist/widgets/command-palette.js +2 -3
- package/dist/widgets/compare.cjs +5 -5
- package/dist/widgets/compare.js +5 -5
- package/dist/widgets/countdown.cjs +2 -3
- package/dist/widgets/countdown.js +2 -3
- package/dist/widgets/cube-gallery.cjs +2 -2
- package/dist/widgets/cube-gallery.js +2 -2
- package/dist/widgets/date-picker.cjs +2 -4
- package/dist/widgets/date-picker.js +2 -4
- 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 +1 -5
- package/dist/widgets/dotlottie.js +1 -5
- package/dist/widgets/equalizer.cjs +2 -4
- package/dist/widgets/equalizer.js +2 -4
- package/dist/widgets/festival-banner.cjs +2 -3
- package/dist/widgets/festival-banner.js +2 -3
- package/dist/widgets/field.cjs +2 -3
- package/dist/widgets/field.js +2 -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 +6 -6
- package/dist/widgets/gen-art.js +6 -6
- package/dist/widgets/gesture-sticker.cjs +2 -3
- package/dist/widgets/gesture-sticker.js +2 -3
- package/dist/widgets/gl-model.cjs +1 -5
- package/dist/widgets/gl-model.js +1 -5
- package/dist/widgets/gl-scene.cjs +2 -5
- package/dist/widgets/gl-scene.js +2 -5
- package/dist/widgets/globe.cjs +2 -3
- package/dist/widgets/globe.js +2 -3
- package/dist/widgets/gpu-particles.cjs +2 -3
- package/dist/widgets/gpu-particles.js +2 -3
- package/dist/widgets/gyro-card.cjs +2 -3
- package/dist/widgets/gyro-card.js +2 -3
- package/dist/widgets/hero-video.cjs +2 -3
- package/dist/widgets/hero-video.js +2 -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 +5 -8
- package/dist/widgets/keyframe-editor.js +5 -8
- package/dist/widgets/kpi.cjs +7 -6
- package/dist/widgets/kpi.js +7 -6
- package/dist/widgets/leaderboard.cjs +2 -3
- package/dist/widgets/leaderboard.js +2 -3
- package/dist/widgets/liquid-nav.cjs +3 -3
- package/dist/widgets/liquid-nav.js +3 -3
- package/dist/widgets/location-card.cjs +2 -3
- package/dist/widgets/location-card.js +2 -3
- package/dist/widgets/lottie-icon.cjs +2 -7
- package/dist/widgets/lottie-icon.js +2 -7
- package/dist/widgets/lottie-player.cjs +2 -5
- package/dist/widgets/lottie-player.js +2 -5
- package/dist/widgets/lottie.cjs +2 -3
- package/dist/widgets/lottie.js +2 -3
- package/dist/widgets/lyrics.cjs +2 -4
- package/dist/widgets/lyrics.js +2 -4
- package/dist/widgets/masonry-flow.cjs +2 -2
- package/dist/widgets/masonry-flow.js +2 -2
- package/dist/widgets/menu-toggle.cjs +2 -3
- package/dist/widgets/menu-toggle.js +2 -3
- package/dist/widgets/menu.cjs +2 -4
- package/dist/widgets/menu.js +2 -4
- 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 +2 -5
- package/dist/widgets/modal.js +2 -5
- package/dist/widgets/motion-inspector.cjs +3 -3
- package/dist/widgets/motion-inspector.js +3 -3
- package/dist/widgets/motion-prefs.cjs +2 -3
- package/dist/widgets/motion-prefs.js +2 -3
- package/dist/widgets/motion-prompt.cjs +2 -2
- package/dist/widgets/motion-prompt.js +2 -2
- package/dist/widgets/motion-spec.cjs +2 -5
- package/dist/widgets/motion-spec.js +2 -5
- package/dist/widgets/motion.cjs +2 -3
- package/dist/widgets/motion.js +2 -3
- package/dist/widgets/music-player.cjs +7 -6
- package/dist/widgets/music-player.js +7 -6
- package/dist/widgets/native-preview.cjs +2 -6
- package/dist/widgets/native-preview.js +2 -6
- package/dist/widgets/nav-morph.cjs +2 -4
- package/dist/widgets/nav-morph.js +2 -4
- package/dist/widgets/notification-bell.cjs +2 -2
- package/dist/widgets/notification-bell.js +2 -2
- package/dist/widgets/odometer.cjs +2 -4
- package/dist/widgets/odometer.js +2 -4
- package/dist/widgets/organic-card.cjs +2 -3
- package/dist/widgets/organic-card.js +2 -3
- package/dist/widgets/otp.cjs +2 -3
- package/dist/widgets/otp.js +2 -3
- package/dist/widgets/pagination.cjs +2 -5
- package/dist/widgets/pagination.js +2 -5
- package/dist/widgets/panorama.cjs +7 -7
- package/dist/widgets/panorama.js +7 -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 +2 -3
- package/dist/widgets/perf-monitor.js +2 -3
- package/dist/widgets/physics-playground.cjs +2 -5
- package/dist/widgets/physics-playground.js +2 -5
- package/dist/widgets/plugin-card.cjs +4 -4
- package/dist/widgets/plugin-card.js +4 -4
- package/dist/widgets/plugin-store.cjs +2 -5
- package/dist/widgets/plugin-store.js +2 -5
- package/dist/widgets/presence.cjs +2 -3
- package/dist/widgets/presence.js +2 -3
- package/dist/widgets/prize-wheel.cjs +2 -3
- package/dist/widgets/prize-wheel.js +2 -3
- package/dist/widgets/product-gallery.cjs +2 -3
- package/dist/widgets/product-gallery.js +2 -3
- package/dist/widgets/progress-ring.cjs +2 -4
- package/dist/widgets/progress-ring.js +2 -4
- package/dist/widgets/prop-panel.cjs +2 -3
- package/dist/widgets/prop-panel.js +2 -3
- package/dist/widgets/pull-cord.cjs +7 -6
- package/dist/widgets/pull-cord.js +7 -6
- package/dist/widgets/radar.cjs +2 -3
- package/dist/widgets/radar.js +2 -3
- package/dist/widgets/reactions.cjs +2 -3
- package/dist/widgets/reactions.js +2 -3
- package/dist/widgets/red-envelope.cjs +4 -4
- package/dist/widgets/red-envelope.js +4 -4
- package/dist/widgets/retro-button.cjs +2 -3
- package/dist/widgets/retro-button.js +2 -3
- package/dist/widgets/rive.cjs +2 -3
- package/dist/widgets/rive.js +2 -3
- package/dist/widgets/route-transition.cjs +2 -2
- package/dist/widgets/route-transition.js +2 -2
- package/dist/widgets/scene.cjs +2 -3
- package/dist/widgets/scene.js +2 -3
- package/dist/widgets/scroll-ring.cjs +4 -4
- package/dist/widgets/scroll-ring.js +7 -7
- package/dist/widgets/scroll-scene.cjs +2 -5
- package/dist/widgets/scroll-scene.js +2 -5
- package/dist/widgets/segmented.cjs +2 -4
- package/dist/widgets/segmented.js +2 -4
- package/dist/widgets/shader-backdrop.cjs +2 -3
- package/dist/widgets/shader-backdrop.js +2 -3
- package/dist/widgets/sheet.cjs +2 -5
- package/dist/widgets/sheet.js +2 -5
- package/dist/widgets/shortcut.cjs +3 -3
- package/dist/widgets/shortcut.js +3 -3
- package/dist/widgets/skeleton-reveal.cjs +2 -4
- package/dist/widgets/skeleton-reveal.js +2 -4
- package/dist/widgets/sketch-chart.cjs +2 -3
- package/dist/widgets/sketch-chart.js +2 -3
- package/dist/widgets/smooth-scroll.cjs +3 -4
- package/dist/widgets/smooth-scroll.js +3 -4
- package/dist/widgets/snap-carousel.cjs +1 -4
- package/dist/widgets/snap-carousel.js +1 -4
- package/dist/widgets/sparkline.cjs +2 -3
- package/dist/widgets/sparkline.js +2 -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 +2 -3
- package/dist/widgets/sticky-wall.js +2 -3
- package/dist/widgets/stories.cjs +2 -2
- package/dist/widgets/stories.js +2 -2
- package/dist/widgets/suggestion-chips.cjs +2 -3
- package/dist/widgets/suggestion-chips.js +2 -3
- package/dist/widgets/swipe-deck.cjs +2 -2
- package/dist/widgets/swipe-deck.js +2 -2
- package/dist/widgets/switch.cjs +2 -3
- package/dist/widgets/switch.js +2 -3
- package/dist/widgets/tab-bar.cjs +2 -4
- package/dist/widgets/tab-bar.js +2 -4
- 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 +2 -3
- package/dist/widgets/theme-surface.js +2 -3
- package/dist/widgets/theme-switcher.cjs +2 -3
- package/dist/widgets/theme-switcher.js +2 -3
- package/dist/widgets/tip.cjs +2 -4
- package/dist/widgets/tip.js +2 -4
- package/dist/widgets/toast-stack.cjs +2 -6
- package/dist/widgets/toast-stack.js +2 -6
- package/dist/widgets/token-editor.cjs +2 -2
- package/dist/widgets/token-editor.js +2 -2
- package/dist/widgets/upload-progress.cjs +2 -3
- package/dist/widgets/upload-progress.js +2 -3
- package/dist/widgets/video-card.cjs +2 -2
- package/dist/widgets/video-card.js +2 -2
- package/dist/widgets/voice-button.cjs +2 -3
- package/dist/widgets/voice-button.js +2 -3
- package/dist/widgets/volume-knob.cjs +2 -2
- package/dist/widgets/volume-knob.js +2 -2
- package/dist/widgets/weather-card.cjs +2 -3
- package/dist/widgets/weather-card.js +2 -3
- package/dist/widgets/worker-canvas.cjs +2 -5
- package/dist/widgets/worker-canvas.js +2 -5
- package/dist/widgets/xp-bar.cjs +2 -3
- package/dist/widgets/xp-bar.js +2 -3
- package/dist/widgets.umd.js +2 -2
- package/docs/components/usa-aurora.md +1 -1
- package/docs/components/usa-carousel-3d.md +1 -1
- package/docs/components/usa-story.md +1 -1
- package/docs/components/usa-switch.md +1 -1
- package/docs/components.md +1 -1
- package/docs/frameworks-matrix.md +64 -0
- package/docs/frameworks-ssr.md +24 -8
- package/docs/public-api.md +1 -1
- package/docs/scheduling.md +58 -0
- package/package.json +23 -2
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-C9CJrhL3.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.5.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-BvH4nAcv.cjs');
|
|
4
|
+
var spring = require('../chunks/spring-XEl_diDJ.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.5.0/dist/components/page.cjs.map
|
package/dist/components/page.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { f as defineElement, b as caf, r as raf, p as prefersReducedMotion, n as now,
|
|
2
|
-
export {
|
|
3
|
-
import { e as springSamples } from '../chunks/spring-
|
|
1
|
+
import { f as defineElement, b as caf, r as raf, p as prefersReducedMotion, n as now, I as queryAttr, g as getMotionSensitivity, w as getMotionIntensity, c as configureComponents, G as adoptStyles } from '../chunks/base-C9CJrhL3.js';
|
|
2
|
+
export { l as MOTION_SCALE } from '../chunks/base-C9CJrhL3.js';
|
|
3
|
+
import { e as springSamples } from '../chunks/spring-DBCejV_z.js';
|
|
4
4
|
|
|
5
5
|
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}}";
|
|
6
6
|
|
|
@@ -812,4 +812,4 @@ function definePageComponents() {
|
|
|
812
812
|
}
|
|
813
813
|
|
|
814
814
|
export { AMBIENT_EFFECTS, CURSOR_MODES, PAGE_EFFECTS, defineAmbient, defineAutoSkeleton, defineBackToTop, defineCursor, defineFullpage, defineLoadingBar, defineMotionSwitch, definePageComponents, defineSplash, enableMpaTransitions, getMotionIntensity, getMotionLevel, loadingBar, pageTransition, restoreMotionIntensity, scrollToTarget, setMotionIntensity, setMotionLevel, smoothScroll, supportsViewTransitions, themeTransition };
|
|
815
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.
|
|
815
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.5.0/dist/components/page.js.map
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var base = require('../chunks/base-BvH4nAcv.cjs');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* motionary/components/perf — long-task helpers (13.4).
|
|
7
|
+
*
|
|
8
|
+
* `yieldToMain()` gives the browser a chance to handle input and paint:
|
|
9
|
+
* `scheduler.yield()` where it exists (Chromium 129+), otherwise a
|
|
10
|
+
* MessageChannel macrotask, otherwise `setTimeout(0)`.
|
|
11
|
+
* `shouldYield()` uses `navigator.scheduling.isInputPending()` where
|
|
12
|
+
* available and always falls back to a time slice.
|
|
13
|
+
* `runChunked()` processes a list in slices that each stay inside a frame
|
|
14
|
+
* budget, yielding between slices, so a big setup never becomes a long task.
|
|
15
|
+
*/
|
|
16
|
+
/** Resolve on a fresh macrotask (scheduler.yield → MessageChannel → setTimeout). */
|
|
17
|
+
function yieldToMain() {
|
|
18
|
+
const s = globalThis.scheduler;
|
|
19
|
+
if (s && typeof s.yield === 'function')
|
|
20
|
+
return s.yield();
|
|
21
|
+
if (typeof MessageChannel === 'function') {
|
|
22
|
+
return new Promise((ok) => {
|
|
23
|
+
const c = new MessageChannel();
|
|
24
|
+
c.port1.onmessage = () => {
|
|
25
|
+
c.port1.close();
|
|
26
|
+
ok();
|
|
27
|
+
};
|
|
28
|
+
c.port2.postMessage(0);
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
return new Promise((ok) => setTimeout(ok, 0));
|
|
32
|
+
}
|
|
33
|
+
/** True when the current slice that started at `since` should give way: pending input, or `budget` ms used. */
|
|
34
|
+
function shouldYield(since, budget = 8) {
|
|
35
|
+
const sch = typeof navigator !== 'undefined' ? navigator.scheduling : undefined;
|
|
36
|
+
try {
|
|
37
|
+
if (sch && typeof sch.isInputPending === 'function' && sch.isInputPending())
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
catch {
|
|
41
|
+
/* isInputPending may throw in cross-origin iframes */
|
|
42
|
+
}
|
|
43
|
+
return base.now() - since >= budget;
|
|
44
|
+
}
|
|
45
|
+
/** Run `fn` for every item in budgeted slices, yielding to the main thread between slices. */
|
|
46
|
+
async function runChunked(items, fn, options = {}) {
|
|
47
|
+
const budget = options.budget ?? 8;
|
|
48
|
+
const list = Array.from(items);
|
|
49
|
+
let i = 0;
|
|
50
|
+
let yields = 0;
|
|
51
|
+
while (i < list.length) {
|
|
52
|
+
if (options.signal?.aborted)
|
|
53
|
+
return { done: i, yields, aborted: true };
|
|
54
|
+
const since = base.now();
|
|
55
|
+
do
|
|
56
|
+
fn(list[i], i++);
|
|
57
|
+
while (i < list.length && !shouldYield(since, budget));
|
|
58
|
+
if (i < list.length) {
|
|
59
|
+
yields++;
|
|
60
|
+
await yieldToMain();
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return { done: i, yields, aborted: false };
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
exports.runChunked = runChunked;
|
|
67
|
+
exports.shouldYield = shouldYield;
|
|
68
|
+
exports.yieldToMain = yieldToMain;
|
|
69
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.5.0/dist/components/perf-tasks.cjs.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** Resolve on a fresh macrotask (scheduler.yield → MessageChannel → setTimeout). */
|
|
2
|
+
declare function yieldToMain(): Promise<void>;
|
|
3
|
+
/** True when the current slice that started at `since` should give way: pending input, or `budget` ms used. */
|
|
4
|
+
declare function shouldYield(since: number, budget?: number): boolean;
|
|
5
|
+
interface ChunkOptions {
|
|
6
|
+
/** ms of work per slice before yielding (default 8). */
|
|
7
|
+
budget?: number;
|
|
8
|
+
/** Stop early (e.g. the owning element disconnected). */
|
|
9
|
+
signal?: AbortSignal;
|
|
10
|
+
}
|
|
11
|
+
interface ChunkResult {
|
|
12
|
+
/** Items processed. */
|
|
13
|
+
done: number;
|
|
14
|
+
/** Times the work yielded to the main thread. */
|
|
15
|
+
yields: number;
|
|
16
|
+
/** True when the signal aborted the run. */
|
|
17
|
+
aborted: boolean;
|
|
18
|
+
}
|
|
19
|
+
/** Run `fn` for every item in budgeted slices, yielding to the main thread between slices. */
|
|
20
|
+
declare function runChunked<T>(items: Iterable<T>, fn: (item: T, index: number) => void, options?: ChunkOptions): Promise<ChunkResult>;
|
|
21
|
+
|
|
22
|
+
export { runChunked, shouldYield, yieldToMain };
|
|
23
|
+
export type { ChunkOptions, ChunkResult };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** Resolve on a fresh macrotask (scheduler.yield → MessageChannel → setTimeout). */
|
|
2
|
+
declare function yieldToMain(): Promise<void>;
|
|
3
|
+
/** True when the current slice that started at `since` should give way: pending input, or `budget` ms used. */
|
|
4
|
+
declare function shouldYield(since: number, budget?: number): boolean;
|
|
5
|
+
interface ChunkOptions {
|
|
6
|
+
/** ms of work per slice before yielding (default 8). */
|
|
7
|
+
budget?: number;
|
|
8
|
+
/** Stop early (e.g. the owning element disconnected). */
|
|
9
|
+
signal?: AbortSignal;
|
|
10
|
+
}
|
|
11
|
+
interface ChunkResult {
|
|
12
|
+
/** Items processed. */
|
|
13
|
+
done: number;
|
|
14
|
+
/** Times the work yielded to the main thread. */
|
|
15
|
+
yields: number;
|
|
16
|
+
/** True when the signal aborted the run. */
|
|
17
|
+
aborted: boolean;
|
|
18
|
+
}
|
|
19
|
+
/** Run `fn` for every item in budgeted slices, yielding to the main thread between slices. */
|
|
20
|
+
declare function runChunked<T>(items: Iterable<T>, fn: (item: T, index: number) => void, options?: ChunkOptions): Promise<ChunkResult>;
|
|
21
|
+
|
|
22
|
+
export { runChunked, shouldYield, yieldToMain };
|
|
23
|
+
export type { ChunkOptions, ChunkResult };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { n as now } from '../chunks/base-C9CJrhL3.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* motionary/components/perf — long-task helpers (13.4).
|
|
5
|
+
*
|
|
6
|
+
* `yieldToMain()` gives the browser a chance to handle input and paint:
|
|
7
|
+
* `scheduler.yield()` where it exists (Chromium 129+), otherwise a
|
|
8
|
+
* MessageChannel macrotask, otherwise `setTimeout(0)`.
|
|
9
|
+
* `shouldYield()` uses `navigator.scheduling.isInputPending()` where
|
|
10
|
+
* available and always falls back to a time slice.
|
|
11
|
+
* `runChunked()` processes a list in slices that each stay inside a frame
|
|
12
|
+
* budget, yielding between slices, so a big setup never becomes a long task.
|
|
13
|
+
*/
|
|
14
|
+
/** Resolve on a fresh macrotask (scheduler.yield → MessageChannel → setTimeout). */
|
|
15
|
+
function yieldToMain() {
|
|
16
|
+
const s = globalThis.scheduler;
|
|
17
|
+
if (s && typeof s.yield === 'function')
|
|
18
|
+
return s.yield();
|
|
19
|
+
if (typeof MessageChannel === 'function') {
|
|
20
|
+
return new Promise((ok) => {
|
|
21
|
+
const c = new MessageChannel();
|
|
22
|
+
c.port1.onmessage = () => {
|
|
23
|
+
c.port1.close();
|
|
24
|
+
ok();
|
|
25
|
+
};
|
|
26
|
+
c.port2.postMessage(0);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
return new Promise((ok) => setTimeout(ok, 0));
|
|
30
|
+
}
|
|
31
|
+
/** True when the current slice that started at `since` should give way: pending input, or `budget` ms used. */
|
|
32
|
+
function shouldYield(since, budget = 8) {
|
|
33
|
+
const sch = typeof navigator !== 'undefined' ? navigator.scheduling : undefined;
|
|
34
|
+
try {
|
|
35
|
+
if (sch && typeof sch.isInputPending === 'function' && sch.isInputPending())
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
catch {
|
|
39
|
+
/* isInputPending may throw in cross-origin iframes */
|
|
40
|
+
}
|
|
41
|
+
return now() - since >= budget;
|
|
42
|
+
}
|
|
43
|
+
/** Run `fn` for every item in budgeted slices, yielding to the main thread between slices. */
|
|
44
|
+
async function runChunked(items, fn, options = {}) {
|
|
45
|
+
const budget = options.budget ?? 8;
|
|
46
|
+
const list = Array.from(items);
|
|
47
|
+
let i = 0;
|
|
48
|
+
let yields = 0;
|
|
49
|
+
while (i < list.length) {
|
|
50
|
+
if (options.signal?.aborted)
|
|
51
|
+
return { done: i, yields, aborted: true };
|
|
52
|
+
const since = now();
|
|
53
|
+
do
|
|
54
|
+
fn(list[i], i++);
|
|
55
|
+
while (i < list.length && !shouldYield(since, budget));
|
|
56
|
+
if (i < list.length) {
|
|
57
|
+
yields++;
|
|
58
|
+
await yieldToMain();
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return { done: i, yields, aborted: false };
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export { runChunked, shouldYield, yieldToMain };
|
|
65
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.5.0/dist/components/perf-tasks.js.map
|
package/dist/components/perf.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var base = require('../chunks/base-
|
|
3
|
+
var base = require('../chunks/base-BvH4nAcv.cjs');
|
|
4
4
|
var indexTags = require('../chunks/index-tags-hLIF2Clq.cjs');
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -112,9 +112,10 @@ exports.animationBudget = base.animationBudget;
|
|
|
112
112
|
exports.onFrame = base.onFrame;
|
|
113
113
|
exports.schedulerStats = base.schedulerStats;
|
|
114
114
|
exports.setAnimationBudget = base.setAnimationBudget;
|
|
115
|
+
exports.setFrameBudget = base.setFrameBudget;
|
|
115
116
|
exports.autoDegrade = autoDegrade;
|
|
116
117
|
exports.categoryOf = categoryOf;
|
|
117
118
|
exports.loadCategoryStyles = loadCategoryStyles;
|
|
118
119
|
exports.loadedStyles = loadedStyles;
|
|
119
120
|
exports.onDemandStyles = onDemandStyles;
|
|
120
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.
|
|
121
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.5.0/dist/components/perf.cjs.map
|
|
@@ -1,13 +1,21 @@
|
|
|
1
|
-
/**
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Run `fn(time, dt)` every frame on the shared scheduler until the returned function is called.
|
|
3
|
+
* 13.4: with an owner `el` the loop stops running once `el` is detached (and pauses off screen with the offscreen plug-in).
|
|
4
|
+
*/
|
|
5
|
+
declare function onFrame(fn: (t: number, dt: number) => void, el?: Element): () => void;
|
|
6
|
+
/** Scheduler counters: frames flushed, callbacks run, peak per frame, pending now, loops, frames split by the budget, callbacks / loops parked, budget ms. */
|
|
4
7
|
declare function schedulerStats(): {
|
|
5
8
|
frames: number;
|
|
6
9
|
callbacks: number;
|
|
7
10
|
peak: number;
|
|
8
11
|
pending: number;
|
|
9
12
|
loops: number;
|
|
13
|
+
deferred: number;
|
|
14
|
+
parked: number;
|
|
15
|
+
budget: number;
|
|
10
16
|
};
|
|
17
|
+
/** 13.4: per-frame time budget in ms for queued callbacks (default 8; `Infinity` = never split a frame). */
|
|
18
|
+
declare function setFrameBudget(ms: number): void;
|
|
11
19
|
/** Number of component animations running right now. */
|
|
12
20
|
declare const activeAnimations: () => number;
|
|
13
21
|
/** Cap concurrent component animations; extra ones jump to their final frame (`Infinity` = no cap). */
|
|
@@ -94,5 +102,5 @@ declare function onDemandStyles(base: string): () => void;
|
|
|
94
102
|
/** Categories whose CSS has been requested so far. */
|
|
95
103
|
declare const loadedStyles: () => string[];
|
|
96
104
|
|
|
97
|
-
export { activeAnimations, animationBudget, autoDegrade, categoryOf, loadCategoryStyles, loadedStyles, onDemandStyles, onFrame, schedulerStats, setAnimationBudget };
|
|
105
|
+
export { activeAnimations, animationBudget, autoDegrade, categoryOf, loadCategoryStyles, loadedStyles, onDemandStyles, onFrame, schedulerStats, setAnimationBudget, setFrameBudget };
|
|
98
106
|
export type { AutoDegradeOptions, DegradeState };
|
|
@@ -1,13 +1,21 @@
|
|
|
1
|
-
/**
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Run `fn(time, dt)` every frame on the shared scheduler until the returned function is called.
|
|
3
|
+
* 13.4: with an owner `el` the loop stops running once `el` is detached (and pauses off screen with the offscreen plug-in).
|
|
4
|
+
*/
|
|
5
|
+
declare function onFrame(fn: (t: number, dt: number) => void, el?: Element): () => void;
|
|
6
|
+
/** Scheduler counters: frames flushed, callbacks run, peak per frame, pending now, loops, frames split by the budget, callbacks / loops parked, budget ms. */
|
|
4
7
|
declare function schedulerStats(): {
|
|
5
8
|
frames: number;
|
|
6
9
|
callbacks: number;
|
|
7
10
|
peak: number;
|
|
8
11
|
pending: number;
|
|
9
12
|
loops: number;
|
|
13
|
+
deferred: number;
|
|
14
|
+
parked: number;
|
|
15
|
+
budget: number;
|
|
10
16
|
};
|
|
17
|
+
/** 13.4: per-frame time budget in ms for queued callbacks (default 8; `Infinity` = never split a frame). */
|
|
18
|
+
declare function setFrameBudget(ms: number): void;
|
|
11
19
|
/** Number of component animations running right now. */
|
|
12
20
|
declare const activeAnimations: () => number;
|
|
13
21
|
/** Cap concurrent component animations; extra ones jump to their final frame (`Infinity` = no cap). */
|
|
@@ -94,5 +102,5 @@ declare function onDemandStyles(base: string): () => void;
|
|
|
94
102
|
/** Categories whose CSS has been requested so far. */
|
|
95
103
|
declare const loadedStyles: () => string[];
|
|
96
104
|
|
|
97
|
-
export { activeAnimations, animationBudget, autoDegrade, categoryOf, loadCategoryStyles, loadedStyles, onDemandStyles, onFrame, schedulerStats, setAnimationBudget };
|
|
105
|
+
export { activeAnimations, animationBudget, autoDegrade, categoryOf, loadCategoryStyles, loadedStyles, onDemandStyles, onFrame, schedulerStats, setAnimationBudget, setFrameBudget };
|
|
98
106
|
export type { AutoDegradeOptions, DegradeState };
|
package/dist/components/perf.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { o as onFrame, B as setStyleLoader, v as animationBudget, w as getMotionIntensity, c as configureComponents, y as setAnimationBudget, q as activeAnimations } from '../chunks/base-C9CJrhL3.js';
|
|
2
|
+
export { x as schedulerStats, z as setFrameBudget } from '../chunks/base-C9CJrhL3.js';
|
|
3
3
|
import { C as COMPONENT_CATEGORIES } from '../chunks/index-tags-B-JBecYg.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -107,4 +107,4 @@ function onDemandStyles(base) {
|
|
|
107
107
|
const loadedStyles = () => Array.from(loaded);
|
|
108
108
|
|
|
109
109
|
export { activeAnimations, animationBudget, autoDegrade, categoryOf, loadCategoryStyles, loadedStyles, onDemandStyles, onFrame, setAnimationBudget };
|
|
110
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.
|
|
110
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.5.0/dist/components/perf.js.map
|
|
@@ -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-BvH4nAcv.cjs');
|
|
4
|
+
var spring = require('../chunks/spring-XEl_diDJ.cjs');
|
|
5
5
|
|
|
6
6
|
var css$2 = "usa-spring{display:inline-block;transform-origin:50% 70%}usa-spring[block]{display:block}usa-spring[effect=\"drop\"]{transform-origin:50% 100%}usa-spring[data-state=\"hidden\"]{opacity:0}usa-spring[trigger=\"click\"],usa-spring[trigger=\"hover\"]{cursor:pointer;-webkit-tap-highlight-color:transparent}";
|
|
7
7
|
|
|
@@ -445,4 +445,4 @@ exports.defineOverscroll = defineOverscroll;
|
|
|
445
445
|
exports.definePhysicsComponents = definePhysicsComponents;
|
|
446
446
|
exports.defineSpring = defineSpring;
|
|
447
447
|
exports.springEffectKeyframes = springEffectKeyframes;
|
|
448
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.
|
|
448
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.5.0/dist/components/physics.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { f as defineElement, d as clamp } from '../chunks/base-
|
|
2
|
-
import { d as springEasing, c as createSpring, s as snapTo, a as rubberBand, p as projectInertia } from '../chunks/spring-
|
|
3
|
-
export { S as SPRING_PRESETS, l as linearEasing, r as resolveSpring, b as spring, e as springSamples, f as stepSpring, g as supportsLinearEasing } from '../chunks/spring-
|
|
1
|
+
import { f as defineElement, d as clamp } from '../chunks/base-C9CJrhL3.js';
|
|
2
|
+
import { d as springEasing, c as createSpring, s as snapTo, a as rubberBand, p as projectInertia } from '../chunks/spring-DBCejV_z.js';
|
|
3
|
+
export { S as SPRING_PRESETS, l as linearEasing, r as resolveSpring, b as spring, e as springSamples, f as stepSpring, g as supportsLinearEasing } from '../chunks/spring-DBCejV_z.js';
|
|
4
4
|
|
|
5
5
|
var css$2 = "usa-spring{display:inline-block;transform-origin:50% 70%}usa-spring[block]{display:block}usa-spring[effect=\"drop\"]{transform-origin:50% 100%}usa-spring[data-state=\"hidden\"]{opacity:0}usa-spring[trigger=\"click\"],usa-spring[trigger=\"hover\"]{cursor:pointer;-webkit-tap-highlight-color:transparent}";
|
|
6
6
|
|
|
@@ -427,4 +427,4 @@ function definePhysicsComponents() {
|
|
|
427
427
|
}
|
|
428
428
|
|
|
429
429
|
export { SPRING_EFFECTS, createSpring, defineDraggable, defineOverscroll, definePhysicsComponents, defineSpring, projectInertia, rubberBand, snapTo, springEasing, springEffectKeyframes };
|
|
430
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.
|
|
430
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.5.0/dist/components/physics.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var components_fxGpu = require('../chunks/gpu-
|
|
3
|
+
var components_fxGpu = require('../chunks/gpu-DTO3JmAF.cjs');
|
|
4
4
|
var components_fxText = require('./fx-text.cjs');
|
|
5
5
|
var components_fxLight = require('./fx-light.cjs');
|
|
6
6
|
var components_fx3d = require('./fx-3d.cjs');
|
|
@@ -31,11 +31,6 @@ var components_fxGenart = require('./fx-genart.cjs');
|
|
|
31
31
|
var components_fxVideo = require('./fx-video.cjs');
|
|
32
32
|
var components_fxSafe = require('./fx-safe.cjs');
|
|
33
33
|
var components_fxPerf = require('./fx-perf.cjs');
|
|
34
|
-
require('../chunks/registry-EziiQiWO.cjs');
|
|
35
|
-
require('../chunks/base-vu_KhBiv.cjs');
|
|
36
|
-
require('../chunks/generative-BHIj-NU0.cjs');
|
|
37
|
-
require('../chunks/shared-jkgRH-Hx.cjs');
|
|
38
|
-
require('../chunks/audio-DhgfWYZ_.cjs');
|
|
39
34
|
|
|
40
35
|
const P = (name, effects) => ({ name, effects });
|
|
41
36
|
/** The `gpu` pack. */
|
|
@@ -135,4 +130,4 @@ exports.text = text;
|
|
|
135
130
|
exports.transitions = transitions;
|
|
136
131
|
exports.video = video;
|
|
137
132
|
exports.weather = weather;
|
|
138
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.
|
|
133
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.5.0/dist/components/plugins.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as GPU_FX } from '../chunks/gpu-
|
|
1
|
+
import { G as GPU_FX } from '../chunks/gpu-7AY-uzNc.js';
|
|
2
2
|
import { TEXT3_FX } from './fx-text.js';
|
|
3
3
|
import { LIGHT_FX } from './fx-light.js';
|
|
4
4
|
import { DEPTH3_FX } from './fx-3d.js';
|
|
@@ -29,11 +29,6 @@ import { GENART_FX } from './fx-genart.js';
|
|
|
29
29
|
import { VIDEO_FX } from './fx-video.js';
|
|
30
30
|
import { SAFE_FX } from './fx-safe.js';
|
|
31
31
|
import { PERF3_FX } from './fx-perf.js';
|
|
32
|
-
import '../chunks/registry-PxXkPc1Q.js';
|
|
33
|
-
import '../chunks/base-nzeN_ux7.js';
|
|
34
|
-
import '../chunks/generative-2LhxG5BJ.js';
|
|
35
|
-
import '../chunks/shared-CkKHWrtJ.js';
|
|
36
|
-
import '../chunks/audio-5FOqrAxu.js';
|
|
37
32
|
|
|
38
33
|
const P = (name, effects) => ({ name, effects });
|
|
39
34
|
/** The `gpu` pack. */
|
|
@@ -102,4 +97,4 @@ const perf3 = /*#__PURE__*/ P('perf3', PERF3_FX);
|
|
|
102
97
|
const ALL_PLUGINS = [gpu, text, light, depth, morph, transitions, weather, physics, focus, music, chart, shop, social, game, geo, form, ai, festival, retro, organic, cyber, paper, surface, gesture3, spatial, cinema, lottie, genart, video, safe, perf3];
|
|
103
98
|
|
|
104
99
|
export { ALL_PLUGINS, ai, chart, cinema, cyber, depth, festival, focus, form, game, genart, geo, gesture3, gpu, light, lottie, morph, music, organic, paper, perf3, physics, retro, safe, shop, social, spatial, surface, text, transitions, video, weather };
|
|
105
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.
|
|
100
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.5.0/dist/components/plugins.js.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var indexTags = require('../chunks/index-tags-hLIF2Clq.cjs');
|
|
4
|
+
var bind = require('../chunks/bind-Ui43-n2d.cjs');
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* motionary/components/react — React wrappers for every `<usa-*>`
|
|
@@ -20,6 +21,16 @@ var indexTags = require('../chunks/index-tags-hLIF2Clq.cjs');
|
|
|
20
21
|
*
|
|
21
22
|
* JSX types for the raw tags (`<usa-card effect="flip">`) come from
|
|
22
23
|
* `motionary/components/jsx` (see `UsaIntrinsicElements`).
|
|
24
|
+
*
|
|
25
|
+
* React 19 + SSR (13.5.0): React 19 does NOT attach custom-element event props
|
|
26
|
+
* (`onusa:change`) to server-rendered elements it hydrates (they work on
|
|
27
|
+
* client-created elements). For SSR/hydrated trees bind events with a ref
|
|
28
|
+
* callback over `bindUsa` (re-exported here):
|
|
29
|
+
*
|
|
30
|
+
* ```tsx
|
|
31
|
+
* import { bindUsa } from 'motionary/components/react';
|
|
32
|
+
* <usa-switch ref={(el) => { if (!el) return; const b = bindUsa(el, { on: { change: onChange } }); return () => b.destroy(); }} />
|
|
33
|
+
* ```
|
|
23
34
|
*/
|
|
24
35
|
/** `usa-auto-animate` → `UsaAutoAnimate` */
|
|
25
36
|
const pascal = (tag) => tag.replace(/(^|-)([a-z0-9])/g, (_, __, c) => c.toUpperCase());
|
|
@@ -36,7 +47,8 @@ const PROPS = /*#__PURE__*/ new Set(['checked', 'value', 'state', 'open', 'liked
|
|
|
36
47
|
/** All `<usa-*>` tags shipped by the package. */
|
|
37
48
|
const USA_TAGS = /*#__PURE__*/ Object.values(indexTags.COMPONENT_CATEGORIES).flat();
|
|
38
49
|
function createUsaComponents(React) {
|
|
39
|
-
|
|
50
|
+
// 13.5.0: useLayoutEffect only in the browser — React 18 warns for every wrapper rendered on the server otherwise.
|
|
51
|
+
const useIso = (typeof document != 'undefined' && React.useLayoutEffect) || React.useEffect;
|
|
40
52
|
const make = (tag) => {
|
|
41
53
|
const C = React.forwardRef((props, ref) => {
|
|
42
54
|
const inner = React.useRef(null);
|
|
@@ -86,11 +98,22 @@ function createUsaComponents(React) {
|
|
|
86
98
|
C.displayName = pascal(tag);
|
|
87
99
|
return C;
|
|
88
100
|
};
|
|
89
|
-
|
|
101
|
+
// 13.5.0: the wrappers used to cover only the core tags (USA_TAGS) — `UsaSwitch`, `UsaPricing` and every other
|
|
102
|
+
// widget were `undefined`. Known tags are created up front (enumerable); any other `Usa*` name — widgets, packs,
|
|
103
|
+
// your own `usa-*` elements — is created on first access and cached.
|
|
104
|
+
const all = Object.fromEntries(USA_TAGS.map((t) => [pascal(t), make(t)]));
|
|
105
|
+
return new Proxy(all, {
|
|
106
|
+
get: (o, k) => (typeof k === 'string' && /^Usa[A-Z0-9]/.test(k) && !(k in o) ? (o[k] = make(kebab(k))) : o[k]),
|
|
107
|
+
});
|
|
90
108
|
}
|
|
109
|
+
/** `UsaAutoAnimate` → `usa-auto-animate`, `UsaCarousel3d` → `usa-carousel-3d` (inverse of {@link pascal} for the shipped tags). */
|
|
110
|
+
const kebab = (name) => name.replace(/([a-z0-9])([A-Z])/g, '$1-$2').replace(/([A-Z])([A-Z][a-z])/g, '$1-$2').replace(/([a-z])(\d)/g, '$1-$2').toLowerCase();
|
|
91
111
|
|
|
112
|
+
exports.bindUsa = bind.bindUsa;
|
|
113
|
+
exports.usaEventName = bind.usaEventName;
|
|
92
114
|
exports.USA_TAGS = USA_TAGS;
|
|
93
115
|
exports.createUsaComponents = createUsaComponents;
|
|
94
116
|
exports.eventName = eventName;
|
|
117
|
+
exports.kebab = kebab;
|
|
95
118
|
exports.pascal = pascal;
|
|
96
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.
|
|
119
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.5.0/dist/components/react.cjs.map
|
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Framework-neutral binding for `<usa-*>` elements (v3.8): set DOM
|
|
3
|
+
* **properties** and listen to `usa:*` events, with update / destroy — the
|
|
4
|
+
* shape Svelte actions, Solid directives and Angular directives all share.
|
|
5
|
+
*/
|
|
6
|
+
interface UsaBinding {
|
|
7
|
+
/** DOM properties to set (`checked`, `value`, `open`, `index`…). */
|
|
8
|
+
props?: Record<string, unknown>;
|
|
9
|
+
/** Event handlers by name; `change` is shorthand for `usa:change`. */
|
|
10
|
+
on?: Record<string, (e: CustomEvent) => void>;
|
|
11
|
+
}
|
|
12
|
+
/** Normalise an event key: `change` → `usa:change`, `usa:change` stays. */
|
|
13
|
+
declare const usaEventName: (k: string) => string;
|
|
14
|
+
/** Bind properties and `usa:*` listeners to an element; returns `{ update, destroy }`. */
|
|
15
|
+
declare function bindUsa(el: HTMLElement, binding?: UsaBinding): {
|
|
16
|
+
update(b: UsaBinding): void;
|
|
17
|
+
destroy(): void;
|
|
18
|
+
};
|
|
19
|
+
|
|
1
20
|
interface ReactLike {
|
|
2
21
|
createElement: (type: any, props?: any, ...children: any[]) => any;
|
|
3
22
|
forwardRef: (render: (props: any, ref: any) => any) => any;
|
|
@@ -14,5 +33,8 @@ declare function eventName(prop: string): string | null;
|
|
|
14
33
|
/** All `<usa-*>` tags shipped by the package. */
|
|
15
34
|
declare const USA_TAGS: string[];
|
|
16
35
|
declare function createUsaComponents(React: ReactLike): Record<string, any>;
|
|
36
|
+
/** `UsaAutoAnimate` → `usa-auto-animate`, `UsaCarousel3d` → `usa-carousel-3d` (inverse of {@link pascal} for the shipped tags). */
|
|
37
|
+
declare const kebab: (name: string) => string;
|
|
17
38
|
|
|
18
|
-
export { USA_TAGS, createUsaComponents, eventName, pascal };
|
|
39
|
+
export { USA_TAGS, bindUsa, createUsaComponents, eventName, kebab, pascal, usaEventName };
|
|
40
|
+
export type { UsaBinding };
|
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Framework-neutral binding for `<usa-*>` elements (v3.8): set DOM
|
|
3
|
+
* **properties** and listen to `usa:*` events, with update / destroy — the
|
|
4
|
+
* shape Svelte actions, Solid directives and Angular directives all share.
|
|
5
|
+
*/
|
|
6
|
+
interface UsaBinding {
|
|
7
|
+
/** DOM properties to set (`checked`, `value`, `open`, `index`…). */
|
|
8
|
+
props?: Record<string, unknown>;
|
|
9
|
+
/** Event handlers by name; `change` is shorthand for `usa:change`. */
|
|
10
|
+
on?: Record<string, (e: CustomEvent) => void>;
|
|
11
|
+
}
|
|
12
|
+
/** Normalise an event key: `change` → `usa:change`, `usa:change` stays. */
|
|
13
|
+
declare const usaEventName: (k: string) => string;
|
|
14
|
+
/** Bind properties and `usa:*` listeners to an element; returns `{ update, destroy }`. */
|
|
15
|
+
declare function bindUsa(el: HTMLElement, binding?: UsaBinding): {
|
|
16
|
+
update(b: UsaBinding): void;
|
|
17
|
+
destroy(): void;
|
|
18
|
+
};
|
|
19
|
+
|
|
1
20
|
interface ReactLike {
|
|
2
21
|
createElement: (type: any, props?: any, ...children: any[]) => any;
|
|
3
22
|
forwardRef: (render: (props: any, ref: any) => any) => any;
|
|
@@ -14,5 +33,8 @@ declare function eventName(prop: string): string | null;
|
|
|
14
33
|
/** All `<usa-*>` tags shipped by the package. */
|
|
15
34
|
declare const USA_TAGS: string[];
|
|
16
35
|
declare function createUsaComponents(React: ReactLike): Record<string, any>;
|
|
36
|
+
/** `UsaAutoAnimate` → `usa-auto-animate`, `UsaCarousel3d` → `usa-carousel-3d` (inverse of {@link pascal} for the shipped tags). */
|
|
37
|
+
declare const kebab: (name: string) => string;
|
|
17
38
|
|
|
18
|
-
export { USA_TAGS, createUsaComponents, eventName, pascal };
|
|
39
|
+
export { USA_TAGS, bindUsa, createUsaComponents, eventName, kebab, pascal, usaEventName };
|
|
40
|
+
export type { UsaBinding };
|
package/dist/components/react.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { C as COMPONENT_CATEGORIES } from '../chunks/index-tags-B-JBecYg.js';
|
|
2
|
+
export { b as bindUsa, u as usaEventName } from '../chunks/bind-B_CTL6Qn.js';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* motionary/components/react — React wrappers for every `<usa-*>`
|
|
@@ -18,6 +19,16 @@ import { C as COMPONENT_CATEGORIES } from '../chunks/index-tags-B-JBecYg.js';
|
|
|
18
19
|
*
|
|
19
20
|
* JSX types for the raw tags (`<usa-card effect="flip">`) come from
|
|
20
21
|
* `motionary/components/jsx` (see `UsaIntrinsicElements`).
|
|
22
|
+
*
|
|
23
|
+
* React 19 + SSR (13.5.0): React 19 does NOT attach custom-element event props
|
|
24
|
+
* (`onusa:change`) to server-rendered elements it hydrates (they work on
|
|
25
|
+
* client-created elements). For SSR/hydrated trees bind events with a ref
|
|
26
|
+
* callback over `bindUsa` (re-exported here):
|
|
27
|
+
*
|
|
28
|
+
* ```tsx
|
|
29
|
+
* import { bindUsa } from 'motionary/components/react';
|
|
30
|
+
* <usa-switch ref={(el) => { if (!el) return; const b = bindUsa(el, { on: { change: onChange } }); return () => b.destroy(); }} />
|
|
31
|
+
* ```
|
|
21
32
|
*/
|
|
22
33
|
/** `usa-auto-animate` → `UsaAutoAnimate` */
|
|
23
34
|
const pascal = (tag) => tag.replace(/(^|-)([a-z0-9])/g, (_, __, c) => c.toUpperCase());
|
|
@@ -34,7 +45,8 @@ const PROPS = /*#__PURE__*/ new Set(['checked', 'value', 'state', 'open', 'liked
|
|
|
34
45
|
/** All `<usa-*>` tags shipped by the package. */
|
|
35
46
|
const USA_TAGS = /*#__PURE__*/ Object.values(COMPONENT_CATEGORIES).flat();
|
|
36
47
|
function createUsaComponents(React) {
|
|
37
|
-
|
|
48
|
+
// 13.5.0: useLayoutEffect only in the browser — React 18 warns for every wrapper rendered on the server otherwise.
|
|
49
|
+
const useIso = (typeof document != 'undefined' && React.useLayoutEffect) || React.useEffect;
|
|
38
50
|
const make = (tag) => {
|
|
39
51
|
const C = React.forwardRef((props, ref) => {
|
|
40
52
|
const inner = React.useRef(null);
|
|
@@ -84,8 +96,16 @@ function createUsaComponents(React) {
|
|
|
84
96
|
C.displayName = pascal(tag);
|
|
85
97
|
return C;
|
|
86
98
|
};
|
|
87
|
-
|
|
99
|
+
// 13.5.0: the wrappers used to cover only the core tags (USA_TAGS) — `UsaSwitch`, `UsaPricing` and every other
|
|
100
|
+
// widget were `undefined`. Known tags are created up front (enumerable); any other `Usa*` name — widgets, packs,
|
|
101
|
+
// your own `usa-*` elements — is created on first access and cached.
|
|
102
|
+
const all = Object.fromEntries(USA_TAGS.map((t) => [pascal(t), make(t)]));
|
|
103
|
+
return new Proxy(all, {
|
|
104
|
+
get: (o, k) => (typeof k === 'string' && /^Usa[A-Z0-9]/.test(k) && !(k in o) ? (o[k] = make(kebab(k))) : o[k]),
|
|
105
|
+
});
|
|
88
106
|
}
|
|
107
|
+
/** `UsaAutoAnimate` → `usa-auto-animate`, `UsaCarousel3d` → `usa-carousel-3d` (inverse of {@link pascal} for the shipped tags). */
|
|
108
|
+
const kebab = (name) => name.replace(/([a-z0-9])([A-Z])/g, '$1-$2').replace(/([A-Z])([A-Z][a-z])/g, '$1-$2').replace(/([a-z])(\d)/g, '$1-$2').toLowerCase();
|
|
89
109
|
|
|
90
|
-
export { USA_TAGS, createUsaComponents, eventName, pascal };
|
|
91
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.
|
|
110
|
+
export { USA_TAGS, createUsaComponents, eventName, kebab, pascal };
|
|
111
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.5.0/dist/components/react.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var base = require('../chunks/base-
|
|
3
|
+
var base = require('../chunks/base-BvH4nAcv.cjs');
|
|
4
4
|
|
|
5
5
|
/** Entrance effects shared by `<usa-reveal>` and `<usa-stagger>` (transform / opacity / filter only). */
|
|
6
6
|
const REVEAL_EFFECTS = [
|
|
@@ -360,4 +360,4 @@ exports.defineScrolly = defineScrolly;
|
|
|
360
360
|
exports.defineStagger = defineStagger;
|
|
361
361
|
exports.readScrollProgress = readScrollProgress;
|
|
362
362
|
exports.revealKeyframes = revealKeyframes;
|
|
363
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.
|
|
363
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.5.0/dist/components/reveal.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as defineElement,
|
|
1
|
+
import { f as defineElement, H as EASE_OUT, d as clamp, b as caf, I as queryAttr, r as raf } from '../chunks/base-C9CJrhL3.js';
|
|
2
2
|
|
|
3
3
|
/** Entrance effects shared by `<usa-reveal>` and `<usa-stagger>` (transform / opacity / filter only). */
|
|
4
4
|
const REVEAL_EFFECTS = [
|
|
@@ -351,4 +351,4 @@ function defineRevealComponents() {
|
|
|
351
351
|
}
|
|
352
352
|
|
|
353
353
|
export { REVEAL_EFFECTS, defineReveal, defineRevealComponents, defineScrollProgress, defineScrolly, defineStagger, readScrollProgress, revealKeyframes };
|
|
354
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.
|
|
354
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.5.0/dist/components/reveal.js.map
|