motionary 13.0.0 → 13.0.1
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 +14 -0
- package/README.md +323 -153
- package/README_ja.md +245 -118
- package/README_zh.md +245 -118
- package/dist/chunks/{anim-image-D3zLsN-S.cjs → anim-image-Bp-A3hNC.cjs} +2 -2
- package/dist/chunks/{anim-image-D6JtZnwb.js → anim-image-DeBvYIDu.js} +2 -2
- package/dist/chunks/{audio-DNNfcWi9.js → audio-BV1YemPb.js} +3 -3
- package/dist/chunks/{audio-BSQmg3MB.cjs → audio-CztPMZ1b.cjs} +3 -3
- package/dist/chunks/{badge-wall-Dg7S7RJn.js → badge-wall-BBAW52s-.js} +2 -2
- package/dist/chunks/{badge-wall-BPbL8OTC.cjs → badge-wall-COxq4-hJ.cjs} +2 -2
- package/dist/chunks/{base-B3me2y0o.cjs → base-BG_mxssu.cjs} +3 -2
- package/dist/chunks/{base-zSGb8ujt.js → base-CBMzOs1k.js} +3 -2
- package/dist/chunks/{bg-generator-U6fomxZX.cjs → bg-generator-Bw0JAZG7.cjs} +2 -2
- package/dist/chunks/{bg-generator-DKX8nt8T.js → bg-generator-CFjnTyP9.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-Simwbnqg.js → builtins-DINhkShu.js} +3 -3
- package/dist/chunks/{builtins-Cz3iufK6.cjs → builtins-Dk6hr4_C.cjs} +3 -3
- package/dist/chunks/{carousel-BvdFWXZC.cjs → carousel-6UZLhjGL.cjs} +2 -2
- package/dist/chunks/{carousel-C36_TV-w.js → carousel-BQiUPJ6H.js} +2 -2
- package/dist/chunks/{cart-drawer-BRK4G_aL.cjs → cart-drawer-BhHW454c.cjs} +2 -2
- package/dist/chunks/{cart-drawer-BIeW2ITt.js → cart-drawer-DTBLUsXS.js} +2 -2
- package/dist/chunks/{code-export-B6NVzEhx.js → code-export-B_q_hPy8.js} +2 -2
- package/dist/chunks/{code-export-BUcIsaA0.cjs → code-export-CbKPNcnx.cjs} +2 -2
- package/dist/chunks/{color-picker-CZvB7e4m.cjs → color-picker-C17hLqcy.cjs} +3 -3
- package/dist/chunks/{color-picker-6qKpXxrS.js → color-picker-DAAhbpHV.js} +3 -3
- package/dist/chunks/{command-palette-BSTQQK3b.js → command-palette-B-_C5aOb.js} +2 -2
- package/dist/chunks/{command-palette-CNnX1Qlx.cjs → command-palette-CABkONwK.cjs} +2 -2
- package/dist/chunks/{core-BdLFN0RS.cjs → core-Bg5WaRYY.cjs} +2 -2
- package/dist/chunks/core-BjcOCpJt.cjs +1 -1
- package/dist/chunks/{core-BOCM9zD5.js → core-CBU40kLB.js} +2 -2
- package/dist/chunks/{core-BcQb_f91.js → core-D1vhyt2F.js} +2 -2
- package/dist/chunks/{core-KIvPGg0c.cjs → core-DMrg99HN.cjs} +2 -2
- package/dist/chunks/core-Dj6iomdc.js +1 -1
- package/dist/chunks/{countdown-D5fCuduX.cjs → countdown-5kyFj3EA.cjs} +2 -2
- package/dist/chunks/{countdown-CzDT07_X.js → countdown-BWy4-V8Y.js} +2 -2
- package/dist/chunks/{date-picker-DKv1uKYq.js → date-picker-CAreI9C7.js} +2 -2
- package/dist/chunks/{date-picker-DJ5URMsx.cjs → date-picker-V4SjW1_f.cjs} +2 -2
- package/dist/chunks/ease-HwYZnZat.cjs +1 -1
- package/dist/chunks/ease-XN8_0sXu.js +1 -1
- package/dist/chunks/{equalizer-D3iO1wBO.cjs → equalizer-B0fb-kFT.cjs} +2 -2
- package/dist/chunks/{equalizer-C8mel4Mn.js → equalizer-BPS1yV-f.js} +2 -2
- package/dist/chunks/{festival-banner-BYn-HCza.js → festival-banner-CvGwychu.js} +2 -2
- package/dist/chunks/{festival-banner-Dx7QAmxt.cjs → festival-banner-DWCMdZM1.cjs} +2 -2
- package/dist/chunks/{field-CLbSJL_S.cjs → field-D5hYtW6A.cjs} +2 -2
- package/dist/chunks/{field-BlWcKLcW.js → field-iruUHpdy.js} +2 -2
- package/dist/chunks/{fx-BaPAanPW.cjs → fx-aA8nn1zv.cjs} +2 -2
- package/dist/chunks/{fx-DUteojZx.js → fx-tuYvq2Dr.js} +2 -2
- package/dist/chunks/generative-2LhxG5BJ.js +1 -1
- package/dist/chunks/generative-BHIj-NU0.cjs +1 -1
- package/dist/chunks/{gl-scene-7iATBiAo.cjs → gl-scene-B9QYN-U7.cjs} +3 -3
- package/dist/chunks/{gl-scene-CS6F2id8.js → gl-scene-BZnZV6e0.js} +3 -3
- package/dist/chunks/{globe-DDPNdPPD.cjs → globe-BvTRCzBa.cjs} +2 -2
- package/dist/chunks/{globe-6qzMhWwL.js → globe-t8Tz1KrC.js} +2 -2
- package/dist/chunks/{gpu-Dw1udOJW.cjs → gpu-BFYGfLfN.cjs} +2 -2
- package/dist/chunks/{gpu-ML0i9eNv.js → gpu-CxTWIssF.js} +2 -2
- package/dist/chunks/{gpu-particles-Z95SjKpc.cjs → gpu-particles-C4UZX5H4.cjs} +2 -2
- package/dist/chunks/{gpu-particles-Ce1Q_xJk.js → gpu-particles-GxP4a0P6.js} +2 -2
- 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-BAtnMJd-.js → keyframes-B6Ju70i1.js} +2 -2
- package/dist/chunks/{keyframes-CbM8m-7I.cjs → keyframes-DhUhKdn2.cjs} +2 -2
- package/dist/chunks/{leaderboard-ButHN_NI.cjs → leaderboard-D3aXcUrH.cjs} +2 -2
- package/dist/chunks/{leaderboard-PaGjUBdI.js → leaderboard-DqCbNSLV.js} +2 -2
- package/dist/chunks/{location-card-D-jdyQge.js → location-card-BFWhuOvM.js} +2 -2
- package/dist/chunks/{location-card-CLR05EP-.cjs → location-card-D50y0yPP.cjs} +2 -2
- package/dist/chunks/{lottie-icon-1x0omshZ.js → lottie-icon-Cg99YqMK.js} +2 -2
- package/dist/chunks/{lottie-icon-DDKThCMc.cjs → lottie-icon-CiL7TQeN.cjs} +2 -2
- package/dist/chunks/{lottie-player-BaZsKC-H.cjs → lottie-player--_SwVeIS.cjs} +3 -3
- package/dist/chunks/{lottie-player-D7exPyhQ.js → lottie-player-CvGhfdfy.js} +3 -3
- package/dist/chunks/{lyrics-r4Z0TGnm.js → lyrics-BW8Ajj8K.js} +2 -2
- package/dist/chunks/{lyrics-gmFffOvn.cjs → lyrics-CmZKfI0D.cjs} +2 -2
- package/dist/chunks/{manifest-Bcz6rQ20.cjs → manifest-CKtkSVw4.cjs} +2 -2
- package/dist/chunks/{manifest-pFJWahGJ.js → manifest-CQUlazDF.js} +2 -2
- package/dist/chunks/{menu-BTGBkd2U.js → menu-2qfS--b1.js} +2 -2
- package/dist/chunks/{menu-BgO53POm.cjs → menu-BDG5gcER.cjs} +2 -2
- package/dist/chunks/{menu-toggle-BJEK8BJD.cjs → menu-toggle-934mf8c-.cjs} +3 -3
- package/dist/chunks/{menu-toggle-Dch8f2GK.js → menu-toggle-DuXU6-hH.js} +3 -3
- package/dist/chunks/{nav-morph-BlfdTr2-.js → nav-morph-Bc0SfHn9.js} +2 -2
- package/dist/chunks/{nav-morph-DvE3FgWw.cjs → nav-morph-DeVvWJm-.cjs} +2 -2
- package/dist/chunks/{otp-B1_JY5KD.cjs → otp-C0PpgU4T.cjs} +2 -2
- package/dist/chunks/{otp-Dxw6l5CL.js → otp-CwhyPG7i.js} +2 -2
- package/dist/chunks/{pagination-C5bamOI4.cjs → pagination-4NCqUPrX.cjs} +3 -3
- package/dist/chunks/{pagination-CFOc73i-.js → pagination-D7C1zFvF.js} +3 -3
- package/dist/chunks/{physics-playground-MeKCuHR-.cjs → physics-playground-C8Dp1VZo.cjs} +4 -4
- package/dist/chunks/{physics-playground-CGAdvO6r.js → physics-playground-Dfb6XJrk.js} +4 -4
- package/dist/chunks/{player-B7QRAdUN.cjs → player-BNOKDUw-.cjs} +4 -4
- package/dist/chunks/{player-BA50IpKZ.js → player-DtLIUxwJ.js} +4 -4
- package/dist/chunks/{presence-230b12uw.cjs → presence-CwaD7bup.cjs} +2 -2
- package/dist/chunks/{presence-CPc3nH2E.js → presence-DRGK2bwc.js} +2 -2
- package/dist/chunks/presets-BYBVJVeP.js +1 -1
- package/dist/chunks/presets-CUHys3sK.cjs +1 -1
- package/dist/chunks/{prize-wheel-CYEPyee6.cjs → prize-wheel-Cl48woXn.cjs} +2 -2
- package/dist/chunks/{prize-wheel-ClMtfLVa.js → prize-wheel-DtR0WMqK.js} +2 -2
- package/dist/chunks/{product-gallery-mML9zLXE.cjs → product-gallery-C3q6aoVe.cjs} +2 -2
- package/dist/chunks/{product-gallery-DlVGui98.js → product-gallery-s0Mojkcm.js} +2 -2
- package/dist/chunks/{progress-ring-C8OHcD1x.cjs → progress-ring-B8Ytgw_Q.cjs} +2 -2
- package/dist/chunks/{progress-ring-u5QwkDUc.js → progress-ring-Q1yoAUrU.js} +2 -2
- package/dist/chunks/{prop-panel-CYTkWP9Y.js → prop-panel-BoejVIkT.js} +2 -2
- package/dist/chunks/{prop-panel-B4SaLelu.cjs → prop-panel-CLYoy2fY.cjs} +2 -2
- package/dist/chunks/{radar-BWjX0-2G.cjs → radar-B0f-lKWX.cjs} +2 -2
- package/dist/chunks/{radar-B7ZGs9Ca.js → radar-BAfz6Y20.js} +2 -2
- package/dist/chunks/{reactions-BTTEhsnZ.js → reactions-CAMzdddC.js} +2 -2
- package/dist/chunks/{reactions-D2QL8ezS.cjs → reactions-Dfadd7FC.cjs} +2 -2
- package/dist/chunks/{registry-CYojuxi5.js → registry-4UDF3Dpk.js} +2 -2
- package/dist/chunks/{registry-DQEOHLh7.js → registry-BgdHqx0s.js} +2 -2
- package/dist/chunks/{registry-CFnXdATC.cjs → registry-D3N8O2Nc.cjs} +2 -2
- package/dist/chunks/{registry-BB1oO-lR.cjs → registry-LE5iyTqw.cjs} +2 -2
- package/dist/chunks/{retro-button-CiVnwK4T.js → retro-button-DPOGCNEB.js} +2 -2
- package/dist/chunks/{retro-button-CqLmeF6H.cjs → retro-button-oiGvtRdV.cjs} +2 -2
- package/dist/chunks/{rive-CtYlVrH0.js → rive-BiqV3D2R.js} +2 -2
- package/dist/chunks/{rive-CfWKBIa5.cjs → rive-D2POjYyT.cjs} +2 -2
- package/dist/chunks/{runtime-link-D1Vn3BZq.cjs → runtime-link-6mNrr9AF.cjs} +3 -3
- package/dist/chunks/{runtime-link-C3_nsDxl.js → runtime-link-yprBSd9n.js} +3 -3
- package/dist/chunks/scroll-driven-CQbwzCdn.cjs +1 -1
- package/dist/chunks/scroll-driven-LghshrWq.js +1 -1
- package/dist/chunks/{scroll-scene-DSymhsCt.cjs → scroll-scene-C34tV2yS.cjs} +4 -4
- package/dist/chunks/{scroll-scene-Bp9Txz5d.js → scroll-scene-DMfol8B-.js} +4 -4
- package/dist/chunks/{segmented-omNqJ1vK.cjs → segmented-Bs0lNncg.cjs} +2 -2
- package/dist/chunks/{segmented-BEuxQKN8.js → segmented-DnGy8Aw_.js} +2 -2
- package/dist/chunks/{shader-backdrop-jJaiqu2T.js → shader-backdrop-CQBsDITY.js} +2 -2
- package/dist/chunks/{shader-backdrop-Tnlj5ag3.cjs → shader-backdrop-Df_2GJFz.cjs} +2 -2
- package/dist/chunks/shared-BxK1D7EZ.cjs +1 -1
- package/dist/chunks/shared-C8Pi6tuh.js +1 -1
- package/dist/chunks/shared-CkKHWrtJ.js +1 -1
- package/dist/chunks/shared-jkgRH-Hx.cjs +1 -1
- package/dist/chunks/{sheet-BfH5vWIW.cjs → sheet-6Vp7Yox1.cjs} +40 -17
- package/dist/chunks/{sheet-BHvZA7rD.js → sheet-CAItJBXn.js} +40 -17
- package/dist/chunks/sign-DvZ1jHxE.js +1 -1
- package/dist/chunks/sign-RAkQIWrM.cjs +1 -1
- package/dist/chunks/{skeleton-reveal-Dwm8Z6Iv.js → skeleton-reveal-CNr6jhZN.js} +2 -2
- package/dist/chunks/{skeleton-reveal-n4L3iur-.cjs → skeleton-reveal-DH7sd6uV.cjs} +2 -2
- package/dist/chunks/{sparkline-BtSW-HY0.js → sparkline-MRwlHeWm.js} +2 -2
- package/dist/chunks/{sparkline-DZiGHCOf.cjs → sparkline-we35dC6w.cjs} +2 -2
- package/dist/chunks/{spring-CznnvQCN.js → spring-2YZXQmr7.js} +2 -2
- package/dist/chunks/{spring-DcM7pQgx.cjs → spring-CibVO2Tk.cjs} +2 -2
- package/dist/chunks/stagger-B9sKPwQB.js +1 -1
- package/dist/chunks/stagger-DFKwqOQG.cjs +1 -1
- package/dist/chunks/{suggestion-chips-BVt6aSMC.cjs → suggestion-chips-DIzEGoUE.cjs} +2 -2
- package/dist/chunks/{suggestion-chips-CtgmWPtH.js → suggestion-chips-DWViXX9m.js} +2 -2
- package/dist/chunks/{switch-BKhvELnx.cjs → switch-DSzo6hVT.cjs} +3 -3
- package/dist/chunks/{switch-CZCdSuCz.js → switch-iQNaYTQB.js} +3 -3
- package/dist/chunks/{tab-bar-B3ucWWMl.cjs → tab-bar-DZtJO0Ge.cjs} +2 -2
- package/dist/chunks/{tab-bar-2d1734DE.js → tab-bar-DzSapgXH.js} +2 -2
- package/dist/chunks/{ticker-Dj7p5cMU.cjs → ticker-D73Bn74b.cjs} +2 -2
- package/dist/chunks/{ticker-CFlr9gom.js → ticker-vHgAp_Uz.js} +2 -2
- package/dist/chunks/{tip-r4VuAjSI.js → tip-Cg4VdOV4.js} +2 -2
- package/dist/chunks/{tip-BQwC2KtE.cjs → tip-CoXfHx5J.cjs} +2 -2
- package/dist/chunks/{toast-stack-DfFjAKGz.cjs → toast-stack-B0YJ93dM.cjs} +4 -4
- package/dist/chunks/{toast-stack-D3zrI7U6.js → toast-stack-DZ5XkmO_.js} +4 -4
- package/dist/chunks/{tween-DJfADHZK.js → tween-BtX9Wj7P.js} +2 -2
- package/dist/chunks/{tween-fNIolo0r.cjs → tween-CO_7OEFf.cjs} +2 -2
- package/dist/chunks/{upload-progress-DmywVhec.cjs → upload-progress-Bv5i3ebk.cjs} +2 -2
- package/dist/chunks/{upload-progress-CkfDSMr-.js → upload-progress-CZbedTLC.js} +2 -2
- package/dist/chunks/{variants-DRi3tBJf.js → variants-B8gnRVha.js} +2 -2
- package/dist/chunks/{variants-cVfgIaXa.cjs → variants-D7gblATl.cjs} +2 -2
- package/dist/chunks/{voice-button-DVovZYBR.js → voice-button-BEibeass.js} +2 -2
- package/dist/chunks/{voice-button-CZ5cpeWN.cjs → voice-button-DfDRNgmG.cjs} +2 -2
- package/dist/chunks/{weather-card-pF9sSKuI.js → weather-card-BO_6E5OV.js} +2 -2
- package/dist/chunks/{weather-card-DCzxr5T4.cjs → weather-card-DodZfOsv.cjs} +2 -2
- package/dist/chunks/{worker-canvas-CDc2aIKC.cjs → worker-canvas-Bqsw_Fym.cjs} +2 -2
- package/dist/chunks/{worker-canvas-Hl3quLAh.js → worker-canvas-D2TU72M8.js} +2 -2
- package/dist/chunks/{xp-bar-D4Yq5Dpv.cjs → xp-bar-CUHPolzJ.cjs} +2 -2
- package/dist/chunks/{xp-bar-j1FsL32r.js → xp-bar-CsASrTkD.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 +4 -4
- package/dist/components/cards.js +4 -4
- 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 +8 -8
- package/dist/components/effects.js +10 -10
- package/dist/components/engine.cjs +3 -3
- package/dist/components/engine.js +4 -4
- package/dist/components/feedback.cjs +2 -2
- package/dist/components/feedback.js +2 -2
- package/dist/components/fx-3d.cjs +3 -3
- package/dist/components/fx-3d.js +3 -3
- 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 +4 -4
- package/dist/components/fx-gpu.js +4 -4
- package/dist/components/fx-light.cjs +3 -3
- package/dist/components/fx-light.js +3 -3
- 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 +4 -4
- package/dist/components/fx-music.js +4 -4
- 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 +3 -3
- package/dist/components/fx-physics.js +3 -3
- 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 +3 -3
- package/dist/components/fx-weather.js +3 -3
- package/dist/components/fx.cjs +6 -6
- package/dist/components/fx.js +7 -7
- package/dist/components/fx2.cjs +6 -6
- package/dist/components/fx2.js +7 -7
- 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 +2 -2
- package/dist/components/layout.js +2 -2
- package/dist/components/lazy.cjs +1 -1
- package/dist/components/lazy.js +1 -1
- package/dist/components/lite.cjs +9 -8
- package/dist/components/lite.js +9 -8
- 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/packs.cjs +3 -3
- package/dist/components/packs.js +3 -3
- package/dist/components/page.cjs +3 -3
- package/dist/components/page.js +4 -4
- package/dist/components/perf.cjs +2 -2
- 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 +5 -5
- package/dist/components/plugins.js +5 -5
- 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 +8 -8
- package/dist/components/ui.js +9 -9
- 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 +62 -62
- package/dist/components/widgets.d.cts +2 -1
- package/dist/components/widgets.d.ts +2 -1
- package/dist/components/widgets.js +111 -111
- package/dist/components.cjs +9 -9
- package/dist/components.js +11 -11
- package/dist/components.umd.js +2 -2
- package/dist/effects/achievement-unlock.cjs +3 -3
- package/dist/effects/achievement-unlock.js +3 -3
- package/dist/effects/aurora-veil.cjs +3 -3
- package/dist/effects/aurora-veil.js +3 -3
- 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 +4 -4
- package/dist/effects/beat-bounce.js +4 -4
- 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 +3 -3
- package/dist/effects/brushed-metal.js +3 -3
- package/dist/effects/camera-dolly.cjs +3 -3
- package/dist/effects/camera-dolly.js +3 -3
- package/dist/effects/card-flip-3d.cjs +3 -3
- package/dist/effects/card-flip-3d.js +3 -3
- package/dist/effects/chest-open.cjs +3 -3
- package/dist/effects/chest-open.js +3 -3
- package/dist/effects/cloth.cjs +3 -3
- package/dist/effects/cloth.js +3 -3
- 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 +3 -3
- package/dist/effects/day-cycle.js +3 -3
- 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 +3 -3
- package/dist/effects/depth-stack.js +3 -3
- 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 +4 -4
- package/dist/effects/fire.js +4 -4
- package/dist/effects/fireflies.cjs +4 -4
- package/dist/effects/fireflies.js +4 -4
- 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 +4 -4
- package/dist/effects/fluid.js +4 -4
- 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 +3 -3
- package/dist/effects/fog.js +3 -3
- 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 +3 -3
- package/dist/effects/god-rays.js +3 -3
- 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 +4 -4
- package/dist/effects/ink.js +4 -4
- 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 +4 -4
- package/dist/effects/leaves.js +4 -4
- 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 +3 -3
- package/dist/effects/light-follow.js +3 -3
- package/dist/effects/lightning.cjs +3 -3
- package/dist/effects/lightning.js +3 -3
- 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 +3 -3
- package/dist/effects/magnet.js +3 -3
- 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 +3 -3
- package/dist/effects/orbit-camera.js +3 -3
- package/dist/effects/orbit-in.cjs +3 -3
- package/dist/effects/orbit-in.js +3 -3
- package/dist/effects/origami.cjs +3 -3
- package/dist/effects/origami.js +3 -3
- 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 +3 -3
- package/dist/effects/pearlescent.js +3 -3
- 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 +3 -3
- package/dist/effects/pinball.js +3 -3
- 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 +3 -3
- package/dist/effects/pointer-shadow.js +3 -3
- 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 +3 -3
- package/dist/effects/product-spin.js +3 -3
- package/dist/effects/rack-focus.cjs +3 -3
- package/dist/effects/rack-focus.js +3 -3
- package/dist/effects/radial-spectrum.cjs +4 -4
- package/dist/effects/radial-spectrum.js +4 -4
- package/dist/effects/rain-glass.cjs +3 -3
- package/dist/effects/rain-glass.js +3 -3
- 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 +3 -3
- package/dist/effects/refraction.js +3 -3
- 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 +3 -3
- package/dist/effects/rope.js +3 -3
- 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 +4 -4
- package/dist/effects/sakura.js +4 -4
- 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 +4 -4
- package/dist/effects/smoke.js +4 -4
- package/dist/effects/snowfall.cjs +3 -3
- package/dist/effects/snowfall.js +3 -3
- package/dist/effects/soft-body.cjs +3 -3
- package/dist/effects/soft-body.js +3 -3
- package/dist/effects/sound-particles.cjs +4 -4
- package/dist/effects/sound-particles.js +4 -4
- package/dist/effects/spatial-float.cjs +3 -3
- package/dist/effects/spatial-float.js +3 -3
- package/dist/effects/spectrum-mirror.cjs +4 -4
- package/dist/effects/spectrum-mirror.js +4 -4
- package/dist/effects/splash.cjs +4 -4
- package/dist/effects/splash.js +4 -4
- 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 +4 -4
- package/dist/effects/vinyl-spin.js +4 -4
- 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 +4 -4
- package/dist/effects/waveform-scope.js +4 -4
- 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 +1 -1
- package/dist/llms-full.txt +7 -1
- package/dist/llms.txt +1 -1
- package/dist/manifest.json +39 -11
- 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 +2 -2
- package/dist/widgets/compare.js +2 -2
- 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 +2 -2
- package/dist/widgets/dock.js +2 -2
- 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 +2 -2
- package/dist/widgets/gauge.js +2 -2
- package/dist/widgets/gen-art.cjs +3 -3
- package/dist/widgets/gen-art.js +3 -3
- 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 +5 -5
- package/dist/widgets/keyframe-editor.js +5 -5
- package/dist/widgets/kpi.cjs +3 -3
- package/dist/widgets/kpi.js +3 -3
- package/dist/widgets/leaderboard.cjs +3 -3
- package/dist/widgets/leaderboard.js +3 -3
- package/dist/widgets/liquid-nav.cjs +2 -2
- package/dist/widgets/liquid-nav.js +2 -2
- 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 +2 -2
- package/dist/widgets/milestones.js +2 -2
- 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 +2 -2
- package/dist/widgets/music-player.js +2 -2
- 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 +3 -3
- package/dist/widgets/odometer.js +3 -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 +3 -3
- package/dist/widgets/panorama.js +3 -3
- package/dist/widgets/parallax-layers.cjs +2 -2
- package/dist/widgets/parallax-layers.js +2 -2
- 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 +3 -3
- package/dist/widgets/progress-ring.js +3 -3
- package/dist/widgets/prop-panel.cjs +3 -3
- package/dist/widgets/prop-panel.js +3 -3
- package/dist/widgets/pull-cord.cjs +3 -3
- package/dist/widgets/pull-cord.js +3 -3
- 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 +2 -2
- package/dist/widgets/red-envelope.js +2 -2
- 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 +2 -2
- package/dist/widgets/scroll-ring.js +2 -2
- 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 +3 -3
- package/dist/widgets/sparkline.js +3 -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 +3 -3
- package/dist/widgets/stepper.js +3 -3
- 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 +3 -3
- package/dist/widgets/volume-knob.js +3 -3
- 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/ai-provider.md +1 -1
- package/docs/component-contract.md +12 -2
- package/docs/components/usa-dialog.md +1 -1
- package/docs/components/usa-modal.md +5 -5
- package/docs/components/usa-pull-refresh.md +1 -1
- package/docs/components/usa-sheet.md +5 -5
- package/docs/contract-report.json +1175 -27
- package/docs/contract-report.md +23 -15
- package/docs/versions.md +43 -0
- package/figma-plugin/code.js +1 -1
- package/package.json +1 -1
package/README_zh.md
CHANGED
|
@@ -2,21 +2,35 @@
|
|
|
2
2
|
|
|
3
3
|
# Motionary
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
**面向 Web 的滚动动画、动画 Web Components 与零依赖动效运行时。**
|
|
6
6
|
|
|
7
|
-
_原名 **use-scroll-animate
|
|
7
|
+
_原名 **use-scroll-animate**。旧 npm 包仍会作为别名,与 motionary 同版本、同构建一起发布。_
|
|
8
8
|
|
|
9
|
-
[](https://www.npmjs.com/package/motionary) [](https://github.com/HarrisonCN/Motionary/actions/workflows/ci.yml) [](./LICENSE)
|
|
9
|
+
[](https://www.npmjs.com/package/motionary) [](https://github.com/HarrisonCN/Motionary/actions/workflows/ci.yml) [](https://bundlejs.com/?q=motionary/core) [](./LICENSE)
|
|
10
10
|
|
|
11
|
-
[English](./README.md) |
|
|
11
|
+
[English](./README.md) | **简体中文** | [日本語](./README_ja.md)
|
|
12
12
|
|
|
13
|
-
**[
|
|
14
|
-
|
|
15
|
-
<sub>动画商店可预览、调整并复制全部 <b>227</b> 个动画 —— 214 个滚动预设,以及卡片、点击、物理与整页效果 —— 支持桌面与手机尺寸。</sub>
|
|
13
|
+
**[动画商店](https://harrisoncn.github.io/Motionary/showcase/)** · **[组件库](https://harrisoncn.github.io/Motionary/showcase/components.html)** · **[组件演练场](https://harrisoncn.github.io/Motionary/showcase/run.html)** · **[时间线编辑器](https://harrisoncn.github.io/Motionary/showcase/playground.html)** · **[滚动叙事](https://harrisoncn.github.io/Motionary/showcase/story.html)**
|
|
16
14
|
|
|
17
15
|
</div>
|
|
18
16
|
|
|
19
|
-
Motionary
|
|
17
|
+
Motionary 让内容在滚入视口时自然登场,并提供 209 个开箱即用的 `<usa-*>` 动画自定义元素:卡片、按钮、物理效果、页面转场、生成式背景、Lottie、WebGL 等等。无论是纯 HTML,还是 React、Vue、Svelte、Solid、Angular,乃至 Electron、Tauri、WebView2 这类桌面 Web 视图,都能直接使用。运行时零依赖,每个入口都可 tree-shaking,并在 CI 中有固定的 gzip 体积预算;所有动画都遵循 `prefers-reduced-motion`。
|
|
18
|
+
|
|
19
|
+
> 13.0:发现 · 复制 · 运行。12.x 的工具链在 13.0 转为稳定版:MCP 挂载校验(`validate_snippet { mount: true }`)与按版本作答(`check_compat`)、Figma 插件导出、[组件演练场](https://harrisoncn.github.io/Motionary/showcase/run.html)、`npx motionary export` 和 `npx motionary compat`。11.5 起标记为弃用的导入路径已移除,详见 [升级到 13](#升级到-13)。
|
|
20
|
+
|
|
21
|
+
## 目录
|
|
22
|
+
|
|
23
|
+
[特性](#特性) · [安装](#安装) · [快速上手](#快速上手) · [运行时分级](#运行时与分级) · [组件](#组件演示与演练场) · [CLI](#cli) · [MCP 服务器与 AI](#mcp-服务器与-ai) · [Figma 插件](#figma-插件) · [无障碍](#无障碍) · [体积预算](#体积预算) · [升级到 13](#升级到-13) · [版本](#版本与兼容性) · [文档](#文档) · [参与贡献](#参与贡献) · [参考](#参考)
|
|
24
|
+
|
|
25
|
+
## 特性
|
|
26
|
+
|
|
27
|
+
- **214 个滚动显现预设**,分为 14 个系列(核心内置 33 个,`motionary/presets/extended` 再提供 181 个):淡入、缩放、3D 翻转、clip-path 形状、模糊与遮罩、弹跳、景深、故障风,以及随滚动进度变化的 `scrub-*`。另有 `timeline()`、`staggerChildren()` 和 `parallax()`。
|
|
28
|
+
- **209 个 `<usa-*>` Web Components**:`motionary/components` 中按分类提供 91 个,另有 118 个小部件,每个都有独立入口(`motionary/widgets/<name>`)。此外还有 141 个效果,同样各有独立入口(`motionary/effects/<name>`)。
|
|
29
|
+
- **Motion Core**:`motionary/core` 提供的 `createMotion()`,插件化引擎,gzip 后约 2.5 KB(预算 10 KB)。
|
|
30
|
+
- **自研运行时**:`motionary/runtime`(ticker、tween、timeline)加 20 个模块,覆盖滚动场景、平滑滚动、文字拆分、SVG 变形、精灵图、GIF / APNG / WebP、Lottie 与 dotLottie、WebGL2、glTF / OBJ、2D 物理。模块分为三个等级,只为实际导入的部分付出体积。
|
|
31
|
+
- **适配所有框架**:`motionary/react`、`motionary/vue`、`motionary/svelte`、`motionary/solid`、`motionary/angular`,以及元素封装 `motionary/components/react` · `vue` · `svelte` · `solid`。在服务端导入不会产生任何副作用。
|
|
32
|
+
- **配套工具**:面向 AI 助手的 MCP 服务器、本地动效解析器(可接入你自己的 LLM)、Figma 插件、可导出 CSS / 小程序 WXSS / 鸿蒙 ArkTS 的 CLI,以及每个大版本的 codemod。
|
|
33
|
+
- **默认无障碍**:处处支持减少动态效果,提供面向用户的动效开关;所有元素遵循同一份组件契约(属性、事件、键盘、生命周期),由 CI 强制检查。
|
|
20
34
|
|
|
21
35
|
## 安装
|
|
22
36
|
|
|
@@ -24,41 +38,76 @@ Motionary 在内容滚入视口时播放入场动画(IntersectionObserver + We
|
|
|
24
38
|
npm i motionary
|
|
25
39
|
```
|
|
26
40
|
|
|
41
|
+
不想引入构建工具?直接用 CDN。URL 固定到大版本(`@13`):
|
|
42
|
+
|
|
27
43
|
```html
|
|
28
|
-
<!--
|
|
29
|
-
<script src="https://unpkg.com/motionary@13/dist/
|
|
30
|
-
<script src="https://unpkg.com/motionary@13/dist/
|
|
31
|
-
<script src="https://unpkg.com/motionary@13/dist/
|
|
44
|
+
<script src="https://unpkg.com/motionary@13/dist/index.umd.js"></script> <!-- 滚动 API:window.ScrollAnimate -->
|
|
45
|
+
<script src="https://unpkg.com/motionary@13/dist/presets-extended.umd.js"></script> <!-- 再加 181 个预设 -->
|
|
46
|
+
<script src="https://unpkg.com/motionary@13/dist/components.umd.js"></script> <!-- motionary/components 的元素:window.UsaComponents -->
|
|
47
|
+
<script src="https://unpkg.com/motionary@13/dist/widgets.umd.js"></script> <!-- 小部件:window.UsaWidgets -->
|
|
32
48
|
```
|
|
33
49
|
|
|
34
|
-
jsDelivr
|
|
50
|
+
也可以用 jsDelivr:`https://cdn.jsdelivr.net/npm/motionary@13/dist/…`。还在用 `use-scroll-animate`?它会继续以相同版本发布;要切换,只需在 import 和 URL 中替换包名([详情](./docs/versions.md))。
|
|
35
51
|
|
|
36
|
-
##
|
|
52
|
+
## 快速上手
|
|
37
53
|
|
|
38
|
-
|
|
54
|
+
### HTML:data 属性
|
|
39
55
|
|
|
40
56
|
```html
|
|
41
|
-
<!-- 1. HTML only: data attributes + one init() call -->
|
|
42
57
|
<h2 data-sa data-sa-animation="fade-in-up">Hello</h2>
|
|
43
58
|
<div data-sa data-sa-animation="bounce-in-up" data-sa-delay="150">Card</div>
|
|
59
|
+
|
|
44
60
|
<script type="module">
|
|
45
61
|
import ScrollAnimate from 'motionary';
|
|
46
|
-
import 'motionary/presets/extended'; //
|
|
47
|
-
ScrollAnimate.init();
|
|
62
|
+
import 'motionary/presets/extended'; // 可选:再加 181 个预设(bounce-in-up、clip-diamond……)
|
|
63
|
+
ScrollAnimate.init(); // 自动处理所有 [data-sa]
|
|
48
64
|
</script>
|
|
49
65
|
```
|
|
50
66
|
|
|
67
|
+
每个选项都有对应的 `data-sa-*` 属性([API 参考](./docs/API.md))。
|
|
68
|
+
|
|
69
|
+
### JavaScript
|
|
70
|
+
|
|
51
71
|
```js
|
|
52
|
-
|
|
53
|
-
import ScrollAnimate, { staggerChildren, parallax, timeline } from 'motionary';
|
|
72
|
+
import ScrollAnimate, { staggerChildren, parallax } from 'motionary';
|
|
54
73
|
|
|
55
74
|
ScrollAnimate.observe('.card', { animation: 'zoom-in-up', duration: 800, easing: 'spring' });
|
|
56
75
|
staggerChildren(document.querySelector('.grid'), { animation: 'stagger-pop', stagger: 60 });
|
|
57
76
|
parallax('.hero-bg', { speed: 0.3 });
|
|
77
|
+
// 浏览器支持时使用原生滚动时间线,脱离主线程运行
|
|
58
78
|
ScrollAnimate.observe('.logo', { animation: 'scrub-spin', engine: 'css', viewRange: ['cover 0%', 'cover 100%'] });
|
|
59
79
|
```
|
|
60
80
|
|
|
61
|
-
|
|
81
|
+
### Motion Core(`motionary/core`)
|
|
82
|
+
|
|
83
|
+
```js
|
|
84
|
+
import { createMotion } from 'motionary/core';
|
|
85
|
+
import { retro, cinema } from 'motionary/plugins';
|
|
86
|
+
|
|
87
|
+
const motion = createMotion().use(retro, cinema);
|
|
88
|
+
motion.reveal('.card', 'fade-up', { stagger: 80 }); // 滚入时入场
|
|
89
|
+
motion.bind(button, 'vhs-glitch', { trigger: 'click' }); // 绑定到触发器的效果
|
|
90
|
+
await motion.play(hero, 'dolly-in', { duration: 900 }); // 播放一次并等待结束
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
更多内容:[docs/core.md](./docs/core.md)。
|
|
94
|
+
|
|
95
|
+
### Web Components
|
|
96
|
+
|
|
97
|
+
```html
|
|
98
|
+
<script type="module">
|
|
99
|
+
import { defineComponents } from 'motionary/components';
|
|
100
|
+
defineComponents(); // 或使用 'motionary/components/lazy' 的 lazyDefine():只加载页面上出现的标签
|
|
101
|
+
</script>
|
|
102
|
+
|
|
103
|
+
<usa-card effect="holo">…</usa-card>
|
|
104
|
+
<usa-button deform="gooey">Buy</usa-button>
|
|
105
|
+
<usa-fx effect="confetti" trigger="click"><button>Celebrate</button></usa-fx>
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
### 框架
|
|
109
|
+
|
|
110
|
+
每个适配器都是独立入口,组件卸载时会自动清理。
|
|
62
111
|
|
|
63
112
|
```jsx
|
|
64
113
|
// React
|
|
@@ -94,128 +143,206 @@ const { animateRef } = useScrollAnimate({ animation: 'zoom-in' });
|
|
|
94
143
|
```jsx
|
|
95
144
|
// Solid
|
|
96
145
|
import { scrollAnimate } from 'motionary/solid';
|
|
97
|
-
scrollAnimate; //
|
|
146
|
+
scrollAnimate; // 保留指令导入(TypeScript)
|
|
98
147
|
export const Card = () => <div use:scrollAnimate={{ animation: 'blur-in-up' }}>Hello</div>;
|
|
99
148
|
```
|
|
100
149
|
|
|
101
150
|
```ts
|
|
102
|
-
// Angular
|
|
151
|
+
// Angular(standalone):使用 <usa-*> 元素
|
|
103
152
|
import { APP_INITIALIZER, CUSTOM_ELEMENTS_SCHEMA, Component } from '@angular/core';
|
|
104
|
-
import {
|
|
105
|
-
|
|
106
|
-
// app.config.ts: providers: [{ provide: APP_INITIALIZER, multi: true, useFactory: usaInitializer() }]
|
|
153
|
+
import { provideUsa } from 'motionary/angular';
|
|
154
|
+
// app.config.ts:providers: [provideUsa(APP_INITIALIZER, ['click', 'ui'])] (要注册的分类)
|
|
107
155
|
@Component({ standalone: true, schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
108
|
-
template: `<usa-
|
|
109
|
-
export class
|
|
156
|
+
template: `<usa-checkbox label="Motion" [checked]="on" (usa:change)="on = $any($event).detail.checked"></usa-checkbox>` })
|
|
157
|
+
export class Settings { on = false; }
|
|
110
158
|
```
|
|
111
159
|
|
|
112
|
-
|
|
160
|
+
SSR、Next.js、Nuxt、SvelteKit:[docs/frameworks-ssr.md](./docs/frameworks-ssr.md)。按分层列出的全部公开子路径:[docs/public-api.md](./docs/public-api.md)。
|
|
113
161
|
|
|
114
|
-
|
|
162
|
+
## 运行时与分级
|
|
115
163
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
164
|
+
`motionary/runtime` 是 Motionary 自研的动画运行时:共享的 ticker、tween 与 timeline 引擎,外加按功能或文件格式拆分的模块(`motionary/runtime/<module>`)。用到哪个模块,就用 `use()` 注册哪个。每个模块属于一个等级,且只依赖同级或更低等级的模块,所以只用基础功能的页面永远不会下载 WebGL、3D 或物理相关代码。
|
|
165
|
+
|
|
166
|
+
| 等级 | 模块 | 打包体积(gzip,13.0) | 预算 |
|
|
167
|
+
|---|---|---:|---:|
|
|
168
|
+
| **Basic(基础)** | core(ticker、tween、timeline)、`scroll`、`text`、`format-css`、`format-motion` | 10.83 KB | 12 KB |
|
|
169
|
+
| **Standard(标准)** | 基础 + `smooth`、`drag-snap`、`format-svg`、`format-sprite`、`format-gif`、`format-apng`、`format-webp`、`vector`(Lottie / dotLottie)、`lottie-state`;官方 Rive 运行时 | 33.74 KB | 37 KB |
|
|
170
|
+
| **Advanced(高级)** | 标准 + `gl`(WebGL2)、`format-gltf`、`format-obj`、`gltf-anim`、`gltf-decoders`(Draco / KTX2)、`physics`、`format-scene` | 54.55 KB | 60 KB |
|
|
171
|
+
|
|
172
|
+
```js
|
|
173
|
+
import { use } from 'motionary/runtime';
|
|
174
|
+
import { scroll } from 'motionary/runtime/scroll';
|
|
175
|
+
import { defineScrollScene } from 'motionary/components/widgets';
|
|
176
|
+
|
|
177
|
+
use(scroll); // 先注册模块(会顺带注册 core)
|
|
178
|
+
defineScrollScene(); // 再注册依赖它的组件
|
|
124
179
|
```
|
|
125
180
|
|
|
126
|
-
|
|
181
|
+
需要运行时模块的组件会在组件库中显示 **Requires:** 标记;缺少模块时会抛出清晰的错误,告诉你如何安装、导入或从 CDN 加载。详见 [docs/runtime-tiers.md](./docs/runtime-tiers.md),以及 [docs/runtime/](./docs/runtime/) 下每个模块的说明页。
|
|
182
|
+
|
|
183
|
+
## 组件、演示与演练场
|
|
127
184
|
|
|
128
|
-
|
|
|
185
|
+
| 页面 | 用途 |
|
|
129
186
|
|---|---|
|
|
130
|
-
|
|
|
131
|
-
|
|
|
132
|
-
|
|
|
133
|
-
|
|
|
134
|
-
|
|
|
135
|
-
|
|
|
136
|
-
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
187
|
+
| [动画商店](https://harrisoncn.github.io/Motionary/showcase/) | 在桌面和手机尺寸下预览、调整并复制所有预设与效果 |
|
|
188
|
+
| [组件库](https://harrisoncn.github.io/Motionary/showcase/components.html) | 每个 `<usa-*>` 元素的属性、前置依赖与等级 |
|
|
189
|
+
| [组件演练场](https://harrisoncn.github.io/Motionary/showcase/run.html) | 每个组件都是一个完整可运行的页面:编辑、**Run**、**Copy** 或 **Download .html**;支持 `run.html#usa-tilt` 这样的深链接 |
|
|
190
|
+
| [时间线编辑器](https://harrisoncn.github.io/Motionary/showcase/playground.html) | 可视化关键帧编辑,导出 `<usa-player>` 可播放的 JSON |
|
|
191
|
+
| [滚动叙事](https://harrisoncn.github.io/Motionary/showcase/story.html) | `<usa-story>` 滚动叙事模板 |
|
|
192
|
+
| [跨平台预览](https://harrisoncn.github.io/Motionary/showcase/xplat.html) | 同一个预设在 Web、小程序与鸿蒙 ArkUI 中的效果对比 |
|
|
193
|
+
| [demo/index.html](./demo/index.html) | 所有预设,无需构建(本地打开即可) |
|
|
194
|
+
|
|
195
|
+
可以按分类导入(`motionary/components/cards`)、全部导入(`motionary/components`)、使用按需加载 CSS 的构建(`motionary/components/lite`),或只导入单个小部件(`motionary/widgets/<name>`,例如 `motionary/widgets/toast-stack`)。全部元素:[docs/components.md](./docs/components.md);每个元素的单独页面:[docs/components/](./docs/components/README.md);全部入口:[docs/entry-points.md](./docs/entry-points.md)。
|
|
196
|
+
|
|
197
|
+
<details>
|
|
198
|
+
<summary><b><code>motionary/components</code> 中的 91 个元素</b></summary>
|
|
199
|
+
|
|
200
|
+
| 分类 | 入口 | 元素 |
|
|
201
|
+
|---|---|---|
|
|
202
|
+
| **滚动显现** | `motionary/components/reveal` | `<usa-reveal>` · `<usa-stagger>` · `<usa-scroll-progress>` · `<usa-scrolly>` |
|
|
203
|
+
| **文字** | `motionary/components/text` | `<usa-typewriter>` · `<usa-split-text>` · `<usa-scramble>` · `<usa-counter>` · `<usa-shimmer-text>` · `<usa-text-rotate>` · `<usa-wave-text>` · `<usa-glitch>` · `<usa-gradient-text>` · `<usa-handwriting>` · `<usa-scroll-highlight>` |
|
|
204
|
+
| **交互** | `motionary/components/interaction` | `<usa-ripple>` · `<usa-magnetic>` · `<usa-tilt>` · `<usa-spotlight>` · `<usa-press>` |
|
|
205
|
+
| **反馈** | `motionary/components/feedback` | `<usa-spinner>` · `<usa-skeleton>` · `<usa-progress>` · `<usa-toaster>` · `<usa-check>` |
|
|
206
|
+
| **背景** | `motionary/components/background` | `<usa-aurora>` · `<usa-particles>` · `<usa-grain>` · `<usa-marquee>` · `<usa-acrylic>` · `<usa-grid-glow>` · `<usa-blobs>` · `<usa-water-ripple>` · `<usa-dot-network>` |
|
|
207
|
+
| **过渡** | `motionary/components/transitions` | `<usa-dialog>` · `<usa-accordion>` · `<usa-view-switch>` |
|
|
208
|
+
| **弹簧与物理** | `motionary/components/physics` | `<usa-spring>` · `<usa-draggable>` · `<usa-overscroll>` |
|
|
209
|
+
| **卡片** | `motionary/components/cards` | `<usa-card>` · `<usa-card-stack>` · `<usa-sticky-stack>` · `<usa-carousel-3d>` |
|
|
210
|
+
| **点击与按钮** | `motionary/components/click` | `<usa-click>` · `<usa-button>` · `<usa-icon-morph>` · `<usa-like>` · `<usa-hold>` · `<usa-double-tap>` · `<usa-checkbox>` |
|
|
211
|
+
| **UI 套件** | `motionary/components/ui` | `<usa-tabs>` · `<usa-drawer>` · `<usa-bottom-sheet>` · `<usa-pull-refresh>` · `<usa-fab>` · `<usa-navbar>` · `<usa-slider>` · `<usa-popover>` · `<usa-badge>` · `<usa-avatar-stack>` |
|
|
212
|
+
| **整页** | `motionary/components/page` | `<usa-cursor>` · `<usa-fullpage>` · `<usa-loading-bar>` · `<usa-back-to-top>` · `<usa-ambient>` · `<usa-splash>` · `<usa-auto-skeleton>` · `<usa-motion-switch>` |
|
|
213
|
+
| **时间线** | `motionary/components/timeline` | `<usa-timeline>` |
|
|
214
|
+
| **手势** | `motionary/components/gesture` | `<usa-swipeable>` · `<usa-pinch-zoom>` |
|
|
215
|
+
| **SVG** | `motionary/components/svg` | `<usa-draw>` · `<usa-morph>` · `<usa-mask-reveal>` · `<usa-anim-icon>` |
|
|
216
|
+
| **WebGL** | `motionary/components/webgl` | `<usa-shader>` · `<usa-distort>` · `<usa-liquid>` · `<usa-post-fx>` |
|
|
217
|
+
| **3D 景深** | `motionary/components/depth` | `<usa-cube>` · `<usa-depth>` |
|
|
218
|
+
| **布局** | `motionary/components/layout` | `<usa-auto-animate>` · `<usa-masonry>` |
|
|
219
|
+
| **效果包** | `motionary/components/packs` | `<usa-pack>` |
|
|
220
|
+
| **效果注册表** | `motionary/components/fx` | `<usa-fx>` |
|
|
221
|
+
| **效果包元素** | `motionary/components/effects` | `<usa-player>` · `<usa-story>` · `<usa-audio>` · `<usa-motion-theme>` · `<usa-gesture-fx>` |
|
|
222
|
+
|
|
223
|
+
</details>
|
|
224
|
+
|
|
225
|
+
## CLI
|
|
226
|
+
|
|
227
|
+
全部随 `motionary` 包一起安装,用 `npx` 运行:
|
|
228
|
+
|
|
229
|
+
| 命令 | 作用 |
|
|
230
|
+
|---|---|
|
|
231
|
+
| `npx motionary doctor [paths…] [--json]` | 列出项目中已移除的导入路径和旧事件名;发现问题时以退出码 1 结束,可直接用于 CI |
|
|
232
|
+
| `npx motionary export --target css\|wxss\|arkts [--presets a,b] [--rpx] [--out file]` | 把预设与动效令牌导出为 CSS、小程序 WXSS 或鸿蒙 ArkTS([docs/cross-platform.md](./docs/cross-platform.md)) |
|
|
233
|
+
| `npx motionary compat <version> [--json]` | 某个版本的项目能用什么、之后又改了什么([docs/version-compat.md](./docs/version-compat.md)) |
|
|
234
|
+
| `npx usa-codemod-13 [--write] [paths…]` | 改写 13.0 中移除的路径,以及固定在 `@10` / `@11` / `@12` 的 CDN URL;不加 `--write` 时只做预演。更早的大版本对应 `usa-codemod-5` … `usa-codemod-12` |
|
|
235
|
+
| `npx create-motionary-plugin <name>` | 生成一个带测试和签名脚本的效果插件脚手架 |
|
|
236
|
+
| `npx -y -p motionary motionary-mcp` | 启动 MCP 服务器(见下一节) |
|
|
237
|
+
|
|
238
|
+
## MCP 服务器与 AI
|
|
239
|
+
|
|
240
|
+
`motionary-mcp` 是一个只读的 [Model Context Protocol](https://modelcontextprotocol.io) 服务器。Claude、Cursor、VS Code、Windsurf、Zed 等 MCP 客户端可以通过它查询组件目录,并拿到已经按正确顺序安装、导入、注册好全部前置依赖的代码片段。
|
|
241
|
+
|
|
242
|
+
```json
|
|
243
|
+
{ "mcpServers": { "motionary": { "command": "npx", "args": ["-y", "-p", "motionary", "motionary-mcp"] } } }
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
Claude Code:`claude mcp add motionary -- npx -y -p motionary motionary-mcp`。
|
|
247
|
+
|
|
248
|
+
- 工具:`list_components`、`search_components`、`get_component`、`get_example`、`scaffold_snippet`、`suggest_motion`、`validate_snippet`、`check_compat`。
|
|
249
|
+
- `validate_snippet { mount: true }` 会在 jsdom(可选 peer 依赖:`npm i -D jsdom`)中用真实的打包产物挂载代码,并按组件契约检查;代码片段自身的脚本不会被执行。
|
|
250
|
+
- 回答会按你项目中安装的版本给出;`check_compat` 会列出该版本缺少或行为不同的部分。
|
|
251
|
+
- 完整指南:[docs/mcp.md](./docs/mcp.md)。
|
|
252
|
+
|
|
253
|
+
**用文字描述动效。** `motionary/tooling/ai` 能把“卡片从下往上依次淡入”这样的描述转换成效果、关键帧、CSS 以及对应的组件。默认解析器在本地运行、结果确定(支持中文和英文)。如果想用自己的 LLM,给 `suggestMotion()` 传入一个 provider 即可。Motionary 不内置任何厂商 SDK,也不会主动发起网络请求,除非你传入了 provider。模型的回答会经过 JSON Schema 校验,不通过时自动回退到本地结果。
|
|
254
|
+
|
|
255
|
+
```ts
|
|
256
|
+
import { suggestMotion } from 'motionary/tooling/ai';
|
|
257
|
+
const { intent, source } = await suggestMotion('卡片像多米诺骨牌一样依次倒下', { provider }); // provider 可省略
|
|
258
|
+
el.animate(intent.keyframes, intent.options);
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
更多:[docs/ai-provider.md](./docs/ai-provider.md) · [提示词指南](./docs/ai-prompt-guide.md) · [AGENTS.md](./AGENTS.md) · 网站根目录提供 [`components.json`](https://harrisoncn.github.io/Motionary/components.json) 与 [`llms.txt`](https://harrisoncn.github.io/Motionary/llms.txt)。
|
|
141
262
|
|
|
142
|
-
|
|
263
|
+
## Figma 插件
|
|
143
264
|
|
|
144
|
-
|
|
265
|
+
[figma-plugin/](./figma-plugin/README.md)(也位于 `node_modules/motionary/figma-plugin/`)可以把当前选中的内容导出为三种格式:**完整的 HTML 页面**(令牌、按顺序排列的前置脚本、每个图层对应一个元素)、**CSS 令牌**,以及 **motion.tokens.json**(W3C 设计令牌)。以组件命名的图层(如 `usa-tilt`)会变成对应的元素;Figma 变量 `motion/duration/*` 和 `motion/easing/*` 会覆盖默认令牌。插件不访问网络,也不会修改文档。详见 [figma-plugin/README.md](./figma-plugin/README.md) 与 [docs/motion-tokens.md](./docs/motion-tokens.md)。
|
|
145
266
|
|
|
146
|
-
|
|
267
|
+
## 无障碍
|
|
147
268
|
|
|
148
|
-
|
|
269
|
+
- 当系统设置为 `prefers-reduced-motion: reduce` 时,滚动显现会直接显示内容(没有入场、视差或 scrub 动效),组件也会切换到平静的状态(`staticAlternative()`、`adaptKeyframes()`)。
|
|
270
|
+
- `motionary/components/a11y`:`setMotionSensitivity()` 让用户关闭闪烁、循环或视差;另有用于实时区域的 `announce()`,以及 `auditMotionA11y()` 和 `baselineReport()`。`<usa-motion-switch>` 是现成的用户动效开关。
|
|
271
|
+
- 所有元素遵循同一份[组件契约](./docs/component-contract.md)(键盘、焦点、事件、生命周期、减少动态效果),由 CI 中的 `npm run check:contract` 强制执行。
|
|
272
|
+
- 更多:[docs/accessibility.md](./docs/accessibility.md)。
|
|
273
|
+
|
|
274
|
+
## 体积预算
|
|
275
|
+
|
|
276
|
+
每个入口在 [`size-budget.json`](./size-budget.json) 中都有固定的 gzip 预算(共 401 项)。任何入口超出预算,CI 就会失败,预算也从不自动上调。以下为 13.0.0 构建的实测数据(压缩 + gzip):
|
|
277
|
+
|
|
278
|
+
| 导入内容 | gzip | 预算 |
|
|
279
|
+
|---|---:|---:|
|
|
280
|
+
| `motionary/core`(`createMotion`) | 2.53 KB | 10.00 KB |
|
|
281
|
+
| `import ScrollAnimate from 'motionary'`(默认实例) | 5.49 KB | 6.00 KB |
|
|
282
|
+
| `motionary` 的全部导出 | 8.77 KB | 9.75 KB |
|
|
283
|
+
| `dist/index.umd.js`(CDN) | 8.93 KB | 9.75 KB |
|
|
284
|
+
| 仅 `parallax()` | 0.94 KB | 2.00 KB |
|
|
285
|
+
| `motionary/presets/extended`(181 个预设) | 4.69 KB | 5.25 KB |
|
|
286
|
+
| `motionary/runtime`(运行时核心) | 5.42 KB | 5.50 KB |
|
|
287
|
+
| `motionary/components/reveal` | 4.32 KB | 5.00 KB |
|
|
288
|
+
| `motionary/components/lite`(全部元素,CSS 按需加载) | 69.61 KB | 70.00 KB |
|
|
289
|
+
| `motionary/components`(全部元素 + CSS) | 85.66 KB | 93.75 KB |
|
|
290
|
+
| `dist/components.umd.js`(CDN,全部内容) | 107.40 KB | 115.75 KB |
|
|
291
|
+
|
|
292
|
+
默认不监听 scroll 事件(改用 IntersectionObserver),动画只作用于合成层属性(`transform`、`opacity`、`filter`、`clip-path`),导入本身没有副作用([docs/tree-shaking.md](./docs/tree-shaking.md))。每个 PR 还会在无头 Chrome 中测量首屏传输量、脚本耗时、GPU 资源与帧稳定性([docs/perf-ci.md](./docs/perf-ci.md))。source map 不随 npm 包发布,而是附在每个 GitHub Release 上([docs/source-maps.md](./docs/source-maps.md))。更多:[docs/performance.md](./docs/performance.md)。
|
|
293
|
+
|
|
294
|
+
**浏览器支持:** 2023 年以来的常青浏览器(Chrome / Edge ≥ 111、Safari ≥ 16.4、Firefox ≥ 115、WebView2、Electron ≥ 24)。浏览器支持 View Transitions 和滚动驱动动画时直接使用,不支持时回退到 JavaScript 实现。可以用 `baselineReport()` 检查某个浏览器。
|
|
295
|
+
|
|
296
|
+
## 升级到 13
|
|
297
|
+
|
|
298
|
+
13.0 只有一项破坏性变更:**移除 11.5 起标记为弃用的导入路径。** 替代路径指向的是同一批文件,所以行为和包体积都不会变化。
|
|
299
|
+
|
|
300
|
+
```bash
|
|
301
|
+
npx motionary doctor # 列出项目中所有已移除的路径(以及残留的旧事件名)
|
|
302
|
+
npx usa-codemod-13 --write # 一并改写,并把固定在 @10 / @11 / @12 的 CDN URL 改为 @13
|
|
303
|
+
```
|
|
304
|
+
|
|
305
|
+
| 已移除 | 改用 |
|
|
149
306
|
|---|---|
|
|
150
|
-
|
|
|
151
|
-
|
|
|
152
|
-
|
|
|
153
|
-
|
|
|
154
|
-
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
| **3D 景深** (`/components/depth`) | `<usa-cube>` · `<usa-depth>` |
|
|
166
|
-
| **布局** (`/components/layout`) | `<usa-auto-animate>` · `<usa-masonry>` |
|
|
167
|
-
| **效果包** (`/components/packs`) | `<usa-pack>` |
|
|
168
|
-
| **效果注册表** (`/components/fx`) | `<usa-fx>` |
|
|
169
|
-
| **效果包** (`/components/effects`) | `<usa-player>` · `<usa-story>` · `<usa-audio>` · `<usa-motion-theme>` · `<usa-gesture-fx>` |
|
|
170
|
-
|
|
171
|
-
## 无障碍与减少动态效果
|
|
172
|
-
|
|
173
|
-
- 开启 `prefers-reduced-motion: reduce` 时,滚动揭示会立即显示内容(无入场、视差或随滚动动画),组件退回平静状态(`staticAlternative()` / `adaptKeyframes()`)。
|
|
174
|
-
- `motionary/components/a11y`:`setMotionSensitivity()` 分级让用户关闭闪烁、循环或视差;`announce()` 实时播报区域;`auditMotionA11y()`;`baselineReport()`。`<usa-motion-switch>` 是现成的面向用户的动效开关。
|
|
175
|
-
- 详见 [docs/accessibility.md](./docs/accessibility.md)。
|
|
176
|
-
|
|
177
|
-
## 性能与体积
|
|
178
|
-
|
|
179
|
-
默认不监听 scroll 事件(IntersectionObserver),动画运行在合成层(`transform`、`opacity`、`filter`、`clip-path`),可选主线程之外的原生滚动时间线(`engine: 'css'`)。每个入口都可摇树,并在 CI 中强制 gzip 预算(`size-budget.json`)。6.1 实测(压缩 + gzip):
|
|
180
|
-
|
|
181
|
-
| 导入内容 | gzip |
|
|
182
|
-
|---|---:|
|
|
183
|
-
| `import ScrollAnimate from 'motionary'` (default instance) | 5.72 kB |
|
|
184
|
-
| Everything from the main entry | 8.69 kB |
|
|
185
|
-
| `dist/index.umd.js` (CDN) | 8.81 kB |
|
|
186
|
-
| `parallax()` alone | 1.22 kB |
|
|
187
|
-
| `motionary/presets/extended` (181 presets) | 4.69 kB |
|
|
188
|
-
| `motionary/components/reveal` | 4.10 kB |
|
|
189
|
-
| `motionary/components/effects` (8 effect packs) | 26.40 kB |
|
|
190
|
-
| `motionary/components/lite` (every component, CSS on demand) | 68.48 kB |
|
|
191
|
-
| `motionary/components` (every component + CSS) | 85.15 kB |
|
|
192
|
-
| `dist/components.umd.js` (CDN, everything) | 106.75 kB |
|
|
193
|
-
|
|
194
|
-
更多:[docs/performance.md](./docs/performance.md)。
|
|
195
|
-
|
|
196
|
-
## 浏览器支持
|
|
197
|
-
|
|
198
|
-
2023 年以来的常青浏览器:Chrome / Edge ≥ 111、Safari ≥ 16.4、Firefox ≥ 115、WebView2、Electron ≥ 24(Custom Elements、Web Animations、IntersectionObserver、ResizeObserver、可构造样式表)。View Transitions 与滚动驱动动画为渐进增强 —— 支持时使用,否则回退到 JS。在服务端(SSR)导入不会执行任何操作。可用 `baselineReport()` 检查浏览器。
|
|
307
|
+
| ~~motionary/components/core~~ | `motionary/core` |
|
|
308
|
+
| ~~motionary/components/ai~~ | `motionary/tooling/ai` |
|
|
309
|
+
| ~~motionary/components/design~~、~~motionary/design~~ | `motionary/tooling/design` |
|
|
310
|
+
| ~~motionary/components/angular~~ | `motionary/angular` |
|
|
311
|
+
| ~~motionary/manifest.json~~、~~motionary/manifest.schema.json~~ | `motionary/tooling/manifest.json`、`motionary/tooling/manifest.schema.json` |
|
|
312
|
+
|
|
313
|
+
`use-scroll-animate/…` 同理。完整指南:[docs/upgrading-13.md](./docs/upgrading-13.md)。更早的大版本:[12](./docs/upgrading-12.md) · [11](./docs/upgrading-11.md) · [10](./docs/upgrading-10.md) · [9](./docs/upgrading-9.md) · [8](./docs/upgrading-8.md) · [7](./docs/upgrading-7.md) · [6](./docs/upgrading-6.md) · [5](./docs/upgrading-5.md) · [4](./docs/upgrading-4.md) · [3](./docs/upgrading-3.md) · [2](./docs/deprecations.md)。从其他库迁移:[AOS](./docs/migration-from-aos.md) · [GSAP ScrollTrigger](./docs/migration-from-gsap-scrolltrigger.md)。
|
|
314
|
+
|
|
315
|
+
## 版本与兼容性
|
|
316
|
+
|
|
317
|
+
- **npm dist-tags:** `latest` 指向当前大版本及其补丁版本(13.0.1)。每个次版本另有自己的标签 `v<major>-<minor>`(例如 `v12-9`)。`motionary` 与 `use-scroll-animate` 总是以相同版本一起发布。
|
|
318
|
+
- **CDN:** URL 固定到大版本(`motionary@13`);固定到具体版本(`motionary@12.4.0`)的链接也继续可用。
|
|
319
|
+
- **语义化版本:** 破坏性变更只出现在大版本,每次都附带升级指南和 codemod。弃用的内容会保留到下一个大版本,期间类型标记为 `@deprecated`,运行时不输出警告。
|
|
320
|
+
- **各版本包含什么:** 每个组件和运行时模块的 `since` / `changed`([docs/version-compat.md](./docs/version-compat.md)),以及逐项功能支持([docs/compat-matrix.md](./docs/compat-matrix.md))。
|
|
321
|
+
- 详情:[docs/versions.md](./docs/versions.md) · [CHANGELOG.md](./CHANGELOG.md)。
|
|
199
322
|
|
|
200
323
|
## 文档
|
|
201
324
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
- [
|
|
325
|
+
| 主题 | 文档 |
|
|
326
|
+
|---|---|
|
|
327
|
+
| 参考 | [API](./docs/API.md) · [预设](./docs/presets.md)(全部 214 个)· [组件](./docs/components.md) · [入口列表](./docs/entry-points.md) · [按分层的公开 API](./docs/public-api.md) · [Motion Core](./docs/core.md) |
|
|
328
|
+
| 运行时 | [运行时分级](./docs/runtime-tiers.md) · [模块](./docs/runtime/) · [兼容性矩阵](./docs/compat-matrix.md) |
|
|
329
|
+
| 平台 | [框架与 SSR](./docs/frameworks-ssr.md) · [Windows 应用](./docs/windows-apps.md) · [混合应用(MAUI、Flutter、Electron、Tauri)](./docs/hybrid-apps.md) · [跨平台导出](./docs/cross-platform.md) · [示例](./examples/) |
|
|
330
|
+
| 设计与 AI | [动效令牌](./docs/motion-tokens.md) · [Figma 插件](./figma-plugin/README.md) · [MCP 服务器](./docs/mcp.md) · [AI provider](./docs/ai-provider.md) · [提示词指南](./docs/ai-prompt-guide.md) |
|
|
331
|
+
| 质量 | [无障碍](./docs/accessibility.md) · [组件契约](./docs/component-contract.md) · [性能](./docs/performance.md) · [性能 CI](./docs/perf-ci.md) · [Tree-shaking](./docs/tree-shaking.md) · [Source map](./docs/source-maps.md) |
|
|
332
|
+
| 项目 | [架构](./docs/architecture.md) · [路线图](./docs/ROADMAP.md) · [版本](./docs/versions.md) · [更新日志](./CHANGELOG.md) |
|
|
333
|
+
|
|
334
|
+
架构分为四层:Motion Core、运行时、组件和工具链,框架入口位于最上层。各层之间的导入规则由 `test/architecture.test.ts` 强制检查([docs/architecture.md](./docs/architecture.md))。
|
|
335
|
+
|
|
336
|
+
除本 README 外,`docs/` 下的文档以英文为主(路线图为中文)。
|
|
208
337
|
|
|
209
|
-
##
|
|
338
|
+
## 参与贡献
|
|
210
339
|
|
|
211
|
-
|
|
212
|
-
- [升级到 6.0](./docs/upgrading-6.md)(`npx usa-codemod-6`)· [升级到 5.0](./docs/upgrading-5.md)(`npx usa-codemod-5`)· [4.0](./docs/upgrading-4.md) · [3.0](./docs/upgrading-3.md) · [2.0](./docs/deprecations.md)
|
|
213
|
-
- [更新日志](./CHANGELOG.md)
|
|
340
|
+
欢迎提交 Issue 和 Pull Request,参见 [CONTRIBUTING.md](./CONTRIBUTING.md)。提交 PR 前请运行 `npm test`、`npm run build`、`npm run check:contract`、`npm run check:peer-docs` 和 `npm run size:check`。如果改动了行为,请同时更新 [README.md](./README.md)、本文件和 [README_ja.md](./README_ja.md)。
|
|
214
341
|
|
|
215
|
-
##
|
|
342
|
+
## 许可证
|
|
216
343
|
|
|
217
|
-
|
|
344
|
+
MIT © HarrisonCN,参见 [LICENSE](./LICENSE)。
|
|
218
345
|
|
|
219
|
-
##
|
|
346
|
+
## 参考
|
|
220
347
|
|
|
221
|
-
|
|
348
|
+
运行时模块一览、每个组件的前置依赖(安装、导入与注册顺序、CDN 加载顺序、最小示例)以及 11.0 冻结的兼容性矩阵,都由 `node scripts/gen-runtime-docs.mjs` 根据经过测试的模块数据生成,仅提供英文版:见英文 README 的 [Reference](./README.md#reference) 一节、[docs/runtime/](./docs/runtime/) 和 [docs/compat-matrix.md](./docs/compat-matrix.md)。
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var tween = require('./tween-
|
|
3
|
+
var tween = require('./tween-CO_7OEFf.cjs');
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Shared internals of the animated-image loaders (`format-gif`, `format-apng`,
|
|
@@ -171,4 +171,4 @@ exports.composeFrames = composeFrames;
|
|
|
171
171
|
exports.crc32 = crc32;
|
|
172
172
|
exports.fixDelay = fixDelay;
|
|
173
173
|
exports.u8 = u8;
|
|
174
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.0.
|
|
174
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.0.1/dist/chunks/anim-image-Bp-A3hNC.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as Playable } from './tween-
|
|
1
|
+
import { P as Playable } from './tween-BtX9Wj7P.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Shared internals of the animated-image loaders (`format-gif`, `format-apng`,
|
|
@@ -163,4 +163,4 @@ function crc32(bytes, start = 0, end = bytes.length) {
|
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
export { animatedImagePlayer as a, browserDecode as b, composeFrames as c, bytesOf as d, crc32 as e, fixDelay as f, u8 as u };
|
|
166
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.0.
|
|
166
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.0.1/dist/chunks/anim-image-DeBvYIDu.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { playEffect } from './registry-
|
|
2
|
-
import { f as defineElement, p as prefersReducedMotion } from './base-
|
|
1
|
+
import { playEffect } from './registry-4UDF3Dpk.js';
|
|
2
|
+
import { f as defineElement, p as prefersReducedMotion } from './base-CBMzOs1k.js';
|
|
3
3
|
import { c as canvasBackground, h as hexRgb } from './generative-2LhxG5BJ.js';
|
|
4
4
|
import { P as PALETTE } from './shared-CkKHWrtJ.js';
|
|
5
5
|
|
|
@@ -330,4 +330,4 @@ function defineAudio(tag = 'usa-audio') {
|
|
|
330
330
|
}
|
|
331
331
|
|
|
332
332
|
export { AUDIO_FX as A, disableAudio as a, bindBeat as b, createBeatDetector as c, defineAudio as d, enableAudio as e, getAudio as g, onBeat as o };
|
|
333
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.0.
|
|
333
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.0.1/dist/chunks/audio-BV1YemPb.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var registry = require('./registry-
|
|
4
|
-
var base = require('./base-
|
|
3
|
+
var registry = require('./registry-LE5iyTqw.cjs');
|
|
4
|
+
var base = require('./base-BG_mxssu.cjs');
|
|
5
5
|
var generative = require('./generative-BHIj-NU0.cjs');
|
|
6
6
|
var shared = require('./shared-jkgRH-Hx.cjs');
|
|
7
7
|
|
|
@@ -339,4 +339,4 @@ exports.disableAudio = disableAudio;
|
|
|
339
339
|
exports.enableAudio = enableAudio;
|
|
340
340
|
exports.getAudio = getAudio;
|
|
341
341
|
exports.onBeat = onBeat;
|
|
342
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.0.
|
|
342
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.0.1/dist/chunks/audio-CztPMZ1b.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as defineElement } from './base-
|
|
1
|
+
import { f as defineElement } from './base-CBMzOs1k.js';
|
|
2
2
|
|
|
3
3
|
var css = "usa-badge-wall{display:block;width:var(--usa-bw-w,320px);max-width:100%;font:600 12px/1.2 system-ui,sans-serif}.usa-bw-count{margin:0 0 8px;font-size:13px;opacity:.75;font-variant-numeric:tabular-nums}.usa-bw-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(70px,1fr));gap:8px;margin:0;padding:0;list-style:none}.usa-bw-badge{position:relative;display:grid;justify-items:center;gap:4px;padding:8px 4px;border-radius:12px;background:linear-gradient(160deg,#fde68a,#f59e0b);color:#422006;text-align:center;overflow:hidden}.usa-bw-icon{font-size:24px;line-height:1}.usa-bw-name{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.usa-bw-badge[data-locked]{background:var(--usa-bw-locked,#e2e8f0);color:#64748b}.usa-bw-badge[data-locked] .usa-bw-icon{filter:grayscale(1);opacity:.45}.usa-bw-badge[data-locked]::after{content:\"🔒\";position:absolute;top:3px;right:4px;font-size:11px}.usa-bw-badge[data-shine]::before{content:\"\";position:absolute;inset:0;background:linear-gradient(110deg,transparent 35%,rgba(255,255,255,.75) 50%,transparent 65%) 120% 0/250% 100%;animation:usa-bw-shine 1s ease-in-out .3s both;pointer-events:none}@keyframes usa-bw-shine{to{background-position:-20% 0}}.usa-bw-live{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}@media (prefers-reduced-motion:reduce){.usa-bw-badge[data-shine]::before{animation:none;display:none}}";
|
|
4
4
|
|
|
@@ -74,4 +74,4 @@ function defineBadgeWall(tag = 'usa-badge-wall') {
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
export { badgeProgress as b, defineBadgeWall as d };
|
|
77
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.0.
|
|
77
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.0.1/dist/chunks/badge-wall-BBAW52s-.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var base = require('./base-
|
|
3
|
+
var base = require('./base-BG_mxssu.cjs');
|
|
4
4
|
|
|
5
5
|
var css = "usa-badge-wall{display:block;width:var(--usa-bw-w,320px);max-width:100%;font:600 12px/1.2 system-ui,sans-serif}.usa-bw-count{margin:0 0 8px;font-size:13px;opacity:.75;font-variant-numeric:tabular-nums}.usa-bw-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(70px,1fr));gap:8px;margin:0;padding:0;list-style:none}.usa-bw-badge{position:relative;display:grid;justify-items:center;gap:4px;padding:8px 4px;border-radius:12px;background:linear-gradient(160deg,#fde68a,#f59e0b);color:#422006;text-align:center;overflow:hidden}.usa-bw-icon{font-size:24px;line-height:1}.usa-bw-name{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.usa-bw-badge[data-locked]{background:var(--usa-bw-locked,#e2e8f0);color:#64748b}.usa-bw-badge[data-locked] .usa-bw-icon{filter:grayscale(1);opacity:.45}.usa-bw-badge[data-locked]::after{content:\"🔒\";position:absolute;top:3px;right:4px;font-size:11px}.usa-bw-badge[data-shine]::before{content:\"\";position:absolute;inset:0;background:linear-gradient(110deg,transparent 35%,rgba(255,255,255,.75) 50%,transparent 65%) 120% 0/250% 100%;animation:usa-bw-shine 1s ease-in-out .3s both;pointer-events:none}@keyframes usa-bw-shine{to{background-position:-20% 0}}.usa-bw-live{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}@media (prefers-reduced-motion:reduce){.usa-bw-badge[data-shine]::before{animation:none;display:none}}";
|
|
6
6
|
|
|
@@ -77,4 +77,4 @@ function defineBadgeWall(tag = 'usa-badge-wall') {
|
|
|
77
77
|
|
|
78
78
|
exports.badgeProgress = badgeProgress;
|
|
79
79
|
exports.defineBadgeWall = defineBadgeWall;
|
|
80
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.0.
|
|
80
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.0.1/dist/chunks/badge-wall-COxq4-hJ.cjs.map
|
|
@@ -224,7 +224,8 @@ function getBase() {
|
|
|
224
224
|
return animateWithMotion(el, keyframes, options);
|
|
225
225
|
}
|
|
226
226
|
emit(type, detail) {
|
|
227
|
-
|
|
227
|
+
// 13.0.1: composed — usa:* events cross Shadow DOM boundaries (documented since 12.0, missing until now)
|
|
228
|
+
return this.dispatchEvent(new CustomEvent(`usa:${type}`, { detail, bubbles: true, composed: true, cancelable: true }));
|
|
228
229
|
}
|
|
229
230
|
}
|
|
230
231
|
baseClass = Base;
|
|
@@ -494,4 +495,4 @@ exports.shadowStyles = shadowStyles;
|
|
|
494
495
|
exports.srText = srText;
|
|
495
496
|
exports.trackAnimation = trackAnimation;
|
|
496
497
|
exports.withoutDeprecations = withoutDeprecations;
|
|
497
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.0.
|
|
498
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.0.1/dist/chunks/base-BG_mxssu.cjs.map
|
|
@@ -222,7 +222,8 @@ function getBase() {
|
|
|
222
222
|
return animateWithMotion(el, keyframes, options);
|
|
223
223
|
}
|
|
224
224
|
emit(type, detail) {
|
|
225
|
-
|
|
225
|
+
// 13.0.1: composed — usa:* events cross Shadow DOM boundaries (documented since 12.0, missing until now)
|
|
226
|
+
return this.dispatchEvent(new CustomEvent(`usa:${type}`, { detail, bubbles: true, composed: true, cancelable: true }));
|
|
226
227
|
}
|
|
227
228
|
}
|
|
228
229
|
baseClass = Base;
|
|
@@ -458,4 +459,4 @@ function kindOf(el, valid, fallback) {
|
|
|
458
459
|
const clamp = (v, min, max) => Math.min(max, Math.max(min, v));
|
|
459
460
|
|
|
460
461
|
export { srText as A, deprecate as B, adoptStyles as C, EASE_OUT as D, EASE_SPRING as E, kindOf as F, shadowStyles as G, FLUENT_DECELERATE as H, MOTION_SENSITIVITY_LEVELS as M, applyFrame as a, caf as b, configureComponents as c, clamp as d, animateWithMotion as e, defineElement as f, getMotionSensitivity as g, getClock as h, canDefine as i, MOTION_SCALE as j, activeAnimations as k, adaptKeyframes as l, motionScale as m, now as n, onClockChange as o, prefersReducedMotion as p, animationBudget as q, raf as r, setClock as s, trackAnimation as t, getMotionIntensity as u, onFrame as v, schedulerStats as w, setAnimationBudget as x, withoutDeprecations as y, setStyleLoader as z };
|
|
461
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.0.
|
|
462
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.0.1/dist/chunks/base-CBMzOs1k.js.map
|