motionary 11.9.0 → 12.1.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/AGENTS.md +1 -1
- package/CHANGELOG.md +27 -0
- package/README.md +75 -73
- package/README_ja.md +4 -4
- package/README_zh.md +4 -4
- package/bin/motionary.mjs +29 -2
- package/bin/xplat.mjs +164 -0
- package/dist/chunks/{anim-image-B0OtraWD.cjs → anim-image-D_WUCgp4.cjs} +2 -2
- package/dist/chunks/{anim-image-C_KpJ7os.js → anim-image-KyCg37rY.js} +2 -2
- package/dist/chunks/{audio-h-eiqo5B.cjs → audio-BSQmg3MB.cjs} +2 -5
- package/dist/chunks/{audio-C10EnE3b.js → audio-DNNfcWi9.js} +2 -5
- package/dist/chunks/{badge-wall-CHvTcDpR.cjs → badge-wall-BPbL8OTC.cjs} +4 -1
- package/dist/chunks/{badge-wall-fWlK0AtX.js → badge-wall-Dg7S7RJn.js} +4 -1
- package/dist/chunks/base-B3me2y0o.cjs +1 -1
- package/dist/chunks/base-zSGb8ujt.js +1 -1
- package/dist/chunks/bg-generator-DKX8nt8T.js +1 -1
- package/dist/chunks/bg-generator-U6fomxZX.cjs +1 -1
- package/dist/chunks/bind-B_CTL6Qn.js +1 -1
- package/dist/chunks/bind-Ui43-n2d.cjs +1 -1
- package/dist/chunks/builtins-Cz3iufK6.cjs +1 -1
- package/dist/chunks/builtins-Simwbnqg.js +1 -1
- package/dist/chunks/carousel-BvdFWXZC.cjs +1 -1
- package/dist/chunks/carousel-C36_TV-w.js +1 -1
- package/dist/chunks/{cart-drawer-CDBjWN5-.js → cart-drawer-BIeW2ITt.js} +4 -1
- package/dist/chunks/{cart-drawer-BMth2aMo.cjs → cart-drawer-BRK4G_aL.cjs} +4 -1
- package/dist/chunks/code-export-B6NVzEhx.js +1 -1
- package/dist/chunks/code-export-BUcIsaA0.cjs +1 -1
- package/dist/chunks/{color-picker-DFvcXhEq.js → color-picker-6qKpXxrS.js} +2 -1
- package/dist/chunks/{color-picker-Dmr2b2J4.cjs → color-picker-CZvB7e4m.cjs} +2 -1
- package/dist/chunks/command-palette-BSTQQK3b.js +1 -1
- package/dist/chunks/command-palette-CNnX1Qlx.cjs +1 -1
- package/dist/chunks/core-BOCM9zD5.js +1 -1
- package/dist/chunks/core-BcQb_f91.js +1 -1
- package/dist/chunks/core-BdLFN0RS.cjs +1 -1
- package/dist/chunks/core-BjcOCpJt.cjs +1 -1
- package/dist/chunks/core-Dj6iomdc.js +1 -1
- package/dist/chunks/core-KIvPGg0c.cjs +1 -1
- package/dist/chunks/countdown-CzDT07_X.js +1 -1
- package/dist/chunks/countdown-D5fCuduX.cjs +1 -1
- package/dist/chunks/date-picker-DJ5URMsx.cjs +1 -1
- package/dist/chunks/date-picker-DKv1uKYq.js +1 -1
- package/dist/chunks/ease-HwYZnZat.cjs +1 -1
- package/dist/chunks/ease-XN8_0sXu.js +1 -1
- package/dist/chunks/equalizer-C8mel4Mn.js +1 -1
- package/dist/chunks/equalizer-D3iO1wBO.cjs +1 -1
- package/dist/chunks/festival-banner-BYn-HCza.js +1 -1
- package/dist/chunks/festival-banner-Dx7QAmxt.cjs +1 -1
- package/dist/chunks/field-BlWcKLcW.js +1 -1
- package/dist/chunks/field-CLbSJL_S.cjs +1 -1
- package/dist/chunks/fx-BaPAanPW.cjs +1 -1
- package/dist/chunks/fx-DUteojZx.js +1 -1
- package/dist/chunks/generative-2LhxG5BJ.js +1 -1
- package/dist/chunks/generative-BHIj-NU0.cjs +1 -1
- package/dist/chunks/{gl-scene-BO28sVfQ.cjs → gl-scene-BzOKrqVW.cjs} +2 -2
- package/dist/chunks/{gl-scene-B9CUF5f3.js → gl-scene-DqFpR0Z7.js} +2 -2
- package/dist/chunks/globe-6qzMhWwL.js +1 -1
- package/dist/chunks/globe-DDPNdPPD.cjs +1 -1
- package/dist/chunks/gpu-Dw1udOJW.cjs +1 -1
- package/dist/chunks/gpu-ML0i9eNv.js +1 -1
- package/dist/chunks/gpu-particles-Ce1Q_xJk.js +1 -1
- package/dist/chunks/gpu-particles-Z95SjKpc.cjs +1 -1
- 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-CDfaqK4L.js → keyframes-DbVzmsRL.js} +2 -2
- package/dist/chunks/{keyframes-DA6Ie3XT.cjs → keyframes-cJHH8OjN.cjs} +2 -2
- package/dist/chunks/{leaderboard-DYRLL45b.cjs → leaderboard-ButHN_NI.cjs} +4 -1
- package/dist/chunks/{leaderboard-BReEpUTf.js → leaderboard-PaGjUBdI.js} +4 -1
- package/dist/chunks/location-card-CLR05EP-.cjs +1 -1
- package/dist/chunks/location-card-D-jdyQge.js +1 -1
- package/dist/chunks/lottie-icon-1x0omshZ.js +1 -1
- package/dist/chunks/lottie-icon-DDKThCMc.cjs +1 -1
- package/dist/chunks/{lottie-player-Bs9X-VZY.js → lottie-player-CHqBhRAB.js} +2 -2
- package/dist/chunks/{lottie-player-B_4d1D6U.cjs → lottie-player-DGUpDJeC.cjs} +2 -2
- package/dist/chunks/{lyrics-CtKFEFtI.cjs → lyrics-gmFffOvn.cjs} +4 -1
- package/dist/chunks/{lyrics-DHri0dBh.js → lyrics-r4Z0TGnm.js} +4 -1
- package/dist/chunks/manifest-Bcz6rQ20.cjs +1 -1
- package/dist/chunks/manifest-pFJWahGJ.js +1 -1
- package/dist/chunks/menu-BTGBkd2U.js +1 -1
- package/dist/chunks/menu-BgO53POm.cjs +1 -1
- package/dist/chunks/{menu-toggle-uNItb_kw.cjs → menu-toggle-BJEK8BJD.cjs} +2 -1
- package/dist/chunks/{menu-toggle-Dpmz7Wm2.js → menu-toggle-Dch8f2GK.js} +2 -1
- package/dist/chunks/nav-morph-BlfdTr2-.js +1 -1
- package/dist/chunks/nav-morph-DvE3FgWw.cjs +1 -1
- package/dist/chunks/otp-B1_JY5KD.cjs +1 -1
- package/dist/chunks/otp-Dxw6l5CL.js +1 -1
- package/dist/chunks/{pagination-CpP1IDsD.cjs → pagination-C5bamOI4.cjs} +2 -1
- package/dist/chunks/{pagination-q9iyalDu.js → pagination-CFOc73i-.js} +2 -1
- package/dist/chunks/{physics-playground-Byj_5mso.cjs → physics-playground-C5K776AL.cjs} +3 -2
- package/dist/chunks/{physics-playground-YlkHVQQ3.js → physics-playground-DHO_tLsW.js} +3 -2
- package/dist/chunks/{player-oFkk6pPT.cjs → player-B7QRAdUN.cjs} +4 -8
- package/dist/chunks/{player-Ba3HWMUt.js → player-BA50IpKZ.js} +4 -8
- package/dist/chunks/presence-230b12uw.cjs +1 -1
- package/dist/chunks/presence-CPc3nH2E.js +1 -1
- package/dist/chunks/presets-BYBVJVeP.js +1 -1
- package/dist/chunks/presets-CUHys3sK.cjs +1 -1
- package/dist/chunks/{prize-wheel-DuS1Ud_o.cjs → prize-wheel-CYEPyee6.cjs} +4 -1
- package/dist/chunks/{prize-wheel-BzYWrEvu.js → prize-wheel-ClMtfLVa.js} +4 -1
- package/dist/chunks/product-gallery-DlVGui98.js +1 -1
- package/dist/chunks/product-gallery-mML9zLXE.cjs +1 -1
- package/dist/chunks/progress-ring-C8OHcD1x.cjs +1 -1
- package/dist/chunks/progress-ring-u5QwkDUc.js +1 -1
- package/dist/chunks/prop-panel-B4SaLelu.cjs +1 -1
- package/dist/chunks/prop-panel-CYTkWP9Y.js +1 -1
- package/dist/chunks/radar-B7ZGs9Ca.js +1 -1
- package/dist/chunks/radar-BWjX0-2G.cjs +1 -1
- package/dist/chunks/{reactions-BCX05Z6_.js → reactions-BTTEhsnZ.js} +4 -1
- package/dist/chunks/{reactions-BNpZ7cPy.cjs → reactions-D2QL8ezS.cjs} +4 -1
- package/dist/chunks/registry-BB1oO-lR.cjs +1 -1
- package/dist/chunks/registry-CYojuxi5.js +1 -1
- package/dist/chunks/{registry-CMjteilk.js → registry-D3VGJOuX.js} +3 -3
- package/dist/chunks/{registry-U0scTJZr.cjs → registry-VKfDCYYI.cjs} +3 -3
- package/dist/chunks/retro-button-CiVnwK4T.js +1 -1
- package/dist/chunks/retro-button-CqLmeF6H.cjs +1 -1
- package/dist/chunks/rive-CfWKBIa5.cjs +1 -1
- package/dist/chunks/rive-CtYlVrH0.js +1 -1
- package/dist/chunks/{runtime-link-2DE2Nz8C.js → runtime-link-CvJOTQYQ.js} +2 -2
- package/dist/chunks/{runtime-link-Cnij6nmH.cjs → runtime-link-CyExCzuU.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-CqaCIEZg.js → scroll-scene-BuR-Rq0p.js} +3 -3
- package/dist/chunks/{scroll-scene-D3NqonOT.cjs → scroll-scene-CFHW9iRD.cjs} +3 -3
- package/dist/chunks/segmented-BEuxQKN8.js +1 -1
- package/dist/chunks/segmented-omNqJ1vK.cjs +1 -1
- package/dist/chunks/shader-backdrop-Tnlj5ag3.cjs +1 -1
- package/dist/chunks/shader-backdrop-jJaiqu2T.js +1 -1
- 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-BHvZA7rD.js +1 -1
- package/dist/chunks/sheet-BfH5vWIW.cjs +1 -1
- package/dist/chunks/sign-DvZ1jHxE.js +1 -1
- package/dist/chunks/sign-RAkQIWrM.cjs +1 -1
- package/dist/chunks/skeleton-reveal-Dwm8Z6Iv.js +1 -1
- package/dist/chunks/skeleton-reveal-n4L3iur-.cjs +1 -1
- package/dist/chunks/sparkline-BtSW-HY0.js +1 -1
- package/dist/chunks/sparkline-DZiGHCOf.cjs +1 -1
- package/dist/chunks/spring-CznnvQCN.js +1 -1
- package/dist/chunks/spring-DcM7pQgx.cjs +1 -1
- package/dist/chunks/stagger-B9sKPwQB.js +1 -1
- package/dist/chunks/stagger-DFKwqOQG.cjs +1 -1
- package/dist/chunks/suggestion-chips-BVt6aSMC.cjs +1 -1
- package/dist/chunks/suggestion-chips-CtgmWPtH.js +1 -1
- package/dist/chunks/{switch-CztuZrH3.cjs → switch-BKhvELnx.cjs} +2 -1
- package/dist/chunks/{switch-DU21VZMJ.js → switch-CZCdSuCz.js} +2 -1
- package/dist/chunks/tab-bar-2d1734DE.js +1 -1
- package/dist/chunks/tab-bar-B3ucWWMl.cjs +1 -1
- package/dist/chunks/{ticker-D58R9_k6.cjs → ticker-Bx4j1lSk.cjs} +2 -2
- package/dist/chunks/{ticker-wWXyZQwD.js → ticker-vWmxVVge.js} +2 -2
- package/dist/chunks/tip-BQwC2KtE.cjs +1 -1
- package/dist/chunks/tip-r4VuAjSI.js +1 -1
- package/dist/chunks/toast-stack-D3zrI7U6.js +1 -1
- package/dist/chunks/toast-stack-DfFjAKGz.cjs +1 -1
- package/dist/chunks/{tween-B0nMjJJi.js → tween-DhlovBgd.js} +2 -2
- package/dist/chunks/{tween-DRtewovf.cjs → tween-DjySqWFm.cjs} +2 -2
- package/dist/chunks/upload-progress-CkfDSMr-.js +1 -1
- package/dist/chunks/upload-progress-DmywVhec.cjs +1 -1
- package/dist/chunks/variants-DRi3tBJf.js +1 -1
- package/dist/chunks/variants-cVfgIaXa.cjs +1 -1
- package/dist/chunks/voice-button-CZ5cpeWN.cjs +1 -1
- package/dist/chunks/voice-button-DVovZYBR.js +1 -1
- package/dist/chunks/weather-card-DCzxr5T4.cjs +1 -1
- package/dist/chunks/weather-card-pF9sSKuI.js +1 -1
- package/dist/chunks/worker-canvas-CDc2aIKC.cjs +1 -1
- package/dist/chunks/worker-canvas-Hl3quLAh.js +1 -1
- package/dist/chunks/xp-bar-D4Yq5Dpv.cjs +1 -1
- package/dist/chunks/xp-bar-j1FsL32r.js +1 -1
- package/dist/components/a11y.cjs +1 -1
- package/dist/components/a11y.js +1 -1
- package/dist/components/ai.cjs +1 -1
- package/dist/components/ai.js +1 -1
- package/dist/components/angular.cjs +1 -1
- package/dist/components/angular.js +1 -1
- package/dist/components/background.cjs +13 -1
- package/dist/components/background.js +13 -1
- package/dist/components/bridge.cjs +1 -1
- package/dist/components/bridge.js +1 -1
- package/dist/components/cards.cjs +2 -1
- package/dist/components/cards.js +2 -1
- package/dist/components/click.cjs +4 -1
- package/dist/components/click.js +4 -1
- package/dist/components/core.cjs +1 -1
- package/dist/components/core.js +1 -1
- package/dist/components/depth.cjs +1 -1
- package/dist/components/depth.js +1 -1
- package/dist/components/design.cjs +1 -1
- package/dist/components/design.js +1 -1
- package/dist/components/dotlottie.cjs +4 -4
- package/dist/components/dotlottie.js +4 -4
- package/dist/components/dsl.cjs +1 -1
- package/dist/components/dsl.js +1 -1
- package/dist/components/effects.cjs +3 -3
- package/dist/components/effects.d.cts +4 -4
- package/dist/components/effects.d.ts +4 -4
- package/dist/components/effects.js +5 -5
- package/dist/components/engine.cjs +1 -1
- package/dist/components/engine.js +1 -1
- package/dist/components/feedback.cjs +1 -1
- package/dist/components/feedback.js +1 -1
- package/dist/components/fx-3d.cjs +1 -1
- package/dist/components/fx-3d.js +1 -1
- package/dist/components/fx-ai.cjs +1 -1
- package/dist/components/fx-ai.js +1 -1
- package/dist/components/fx-chart.cjs +1 -1
- package/dist/components/fx-chart.js +1 -1
- package/dist/components/fx-cinema.cjs +1 -1
- package/dist/components/fx-cinema.js +1 -1
- package/dist/components/fx-cyber.cjs +1 -1
- package/dist/components/fx-cyber.js +1 -1
- package/dist/components/fx-festival.cjs +1 -1
- package/dist/components/fx-festival.js +1 -1
- package/dist/components/fx-focus.cjs +1 -1
- package/dist/components/fx-focus.js +1 -1
- package/dist/components/fx-form.cjs +1 -1
- package/dist/components/fx-form.js +1 -1
- package/dist/components/fx-game.cjs +1 -1
- package/dist/components/fx-game.js +1 -1
- package/dist/components/fx-genart.cjs +1 -1
- package/dist/components/fx-genart.js +1 -1
- package/dist/components/fx-geo.cjs +1 -1
- package/dist/components/fx-geo.js +1 -1
- package/dist/components/fx-gesture.cjs +1 -1
- package/dist/components/fx-gesture.js +1 -1
- package/dist/components/fx-gpu.cjs +1 -1
- package/dist/components/fx-gpu.js +1 -1
- package/dist/components/fx-light.cjs +1 -1
- package/dist/components/fx-light.js +1 -1
- package/dist/components/fx-lottie.cjs +1 -1
- package/dist/components/fx-lottie.js +1 -1
- package/dist/components/fx-morph.cjs +1 -1
- package/dist/components/fx-morph.js +1 -1
- package/dist/components/fx-music.cjs +2 -2
- package/dist/components/fx-music.d.cts +1 -1
- package/dist/components/fx-music.d.ts +1 -1
- package/dist/components/fx-music.js +2 -2
- package/dist/components/fx-organic.cjs +1 -1
- package/dist/components/fx-organic.js +1 -1
- package/dist/components/fx-paper.cjs +1 -1
- package/dist/components/fx-paper.js +1 -1
- package/dist/components/fx-perf.cjs +1 -1
- package/dist/components/fx-perf.js +1 -1
- package/dist/components/fx-physics.cjs +1 -1
- package/dist/components/fx-physics.js +1 -1
- package/dist/components/fx-retro.cjs +1 -1
- package/dist/components/fx-retro.js +1 -1
- package/dist/components/fx-safe.cjs +1 -1
- package/dist/components/fx-safe.js +1 -1
- package/dist/components/fx-shop.cjs +1 -1
- package/dist/components/fx-shop.js +1 -1
- package/dist/components/fx-social.cjs +1 -1
- package/dist/components/fx-social.js +1 -1
- package/dist/components/fx-spatial.cjs +1 -1
- package/dist/components/fx-spatial.js +1 -1
- package/dist/components/fx-surface.cjs +1 -1
- package/dist/components/fx-surface.js +1 -1
- package/dist/components/fx-text.cjs +1 -1
- package/dist/components/fx-text.js +1 -1
- package/dist/components/fx-transitions.cjs +1 -1
- package/dist/components/fx-transitions.js +1 -1
- package/dist/components/fx-video.cjs +1 -1
- package/dist/components/fx-video.js +1 -1
- package/dist/components/fx-weather.cjs +1 -1
- package/dist/components/fx-weather.js +1 -1
- package/dist/components/fx.cjs +1 -1
- package/dist/components/fx.js +1 -1
- package/dist/components/fx2.cjs +2 -2
- package/dist/components/fx2.d.cts +1 -1
- package/dist/components/fx2.d.ts +1 -1
- package/dist/components/fx2.js +2 -2
- package/dist/components/gesture.cjs +4 -1
- package/dist/components/gesture.js +4 -1
- package/dist/components/gl-model.cjs +4 -4
- package/dist/components/gl-model.js +4 -4
- package/dist/components/interaction.cjs +1 -1
- package/dist/components/interaction.js +1 -1
- package/dist/components/jsx.cjs +1 -1
- package/dist/components/jsx.js +1 -1
- package/dist/components/layout.cjs +4 -1
- package/dist/components/layout.js +4 -1
- package/dist/components/lazy.cjs +1 -1
- package/dist/components/lazy.js +1 -1
- package/dist/components/lite.cjs +56 -1
- package/dist/components/lite.js +56 -1
- package/dist/components/marketplace.cjs +1 -1
- package/dist/components/marketplace.js +1 -1
- package/dist/components/native.cjs +1 -1
- package/dist/components/native.js +1 -1
- package/dist/components/packs.cjs +1 -1
- package/dist/components/packs.js +1 -1
- package/dist/components/page.cjs +16 -1
- package/dist/components/page.js +16 -1
- package/dist/components/perf.cjs +1 -1
- package/dist/components/perf.js +1 -1
- package/dist/components/physics.cjs +1 -1
- package/dist/components/physics.js +1 -1
- package/dist/components/plugins.cjs +2 -2
- package/dist/components/plugins.js +2 -2
- package/dist/components/react.cjs +1 -1
- package/dist/components/react.js +1 -1
- package/dist/components/reveal.cjs +1 -1
- package/dist/components/reveal.js +1 -1
- package/dist/components/snap-carousel.cjs +3 -3
- package/dist/components/snap-carousel.js +3 -3
- package/dist/components/solid.cjs +1 -1
- package/dist/components/solid.js +1 -1
- package/dist/components/svelte.cjs +1 -1
- package/dist/components/svelte.js +1 -1
- package/dist/components/svg.cjs +7 -1
- package/dist/components/svg.js +7 -1
- package/dist/components/text.cjs +1 -1
- package/dist/components/text.js +1 -1
- package/dist/components/timeline.cjs +1 -1
- package/dist/components/timeline.js +1 -1
- package/dist/components/tokens.cjs +1 -1
- package/dist/components/tokens.js +1 -1
- package/dist/components/transitions.cjs +1 -1
- package/dist/components/transitions.js +1 -1
- package/dist/components/ui.cjs +13 -1
- package/dist/components/ui.js +13 -1
- package/dist/components/vue.cjs +1 -1
- package/dist/components/vue.js +1 -1
- package/dist/components/webgl.cjs +1 -1
- package/dist/components/webgl.js +1 -1
- package/dist/components/widgets.cjs +18 -18
- package/dist/components/widgets.d.cts +1 -1
- package/dist/components/widgets.d.ts +1 -1
- package/dist/components/widgets.js +30 -30
- package/dist/components.cjs +1 -1
- package/dist/components.js +1 -1
- package/dist/components.umd.js +3 -3
- package/dist/effects/achievement-unlock.cjs +1 -1
- package/dist/effects/achievement-unlock.js +1 -1
- package/dist/effects/aurora-veil.cjs +1 -1
- package/dist/effects/aurora-veil.js +1 -1
- package/dist/effects/badge-pop.cjs +1 -1
- package/dist/effects/badge-pop.js +1 -1
- package/dist/effects/bars-grow.cjs +1 -1
- package/dist/effects/bars-grow.js +1 -1
- package/dist/effects/beat-bounce.cjs +2 -2
- package/dist/effects/beat-bounce.js +2 -2
- package/dist/effects/blob-button.cjs +1 -1
- package/dist/effects/blob-button.js +1 -1
- package/dist/effects/bloom.cjs +1 -1
- package/dist/effects/bloom.js +1 -1
- package/dist/effects/breathe.cjs +1 -1
- package/dist/effects/breathe.js +1 -1
- package/dist/effects/brushed-metal.cjs +1 -1
- package/dist/effects/brushed-metal.js +1 -1
- package/dist/effects/camera-dolly.cjs +1 -1
- package/dist/effects/camera-dolly.js +1 -1
- package/dist/effects/card-flip-3d.cjs +1 -1
- package/dist/effects/card-flip-3d.js +1 -1
- package/dist/effects/chest-open.cjs +1 -1
- package/dist/effects/chest-open.js +1 -1
- package/dist/effects/cloth.cjs +1 -1
- package/dist/effects/cloth.js +1 -1
- package/dist/effects/coin-burst.cjs +1 -1
- package/dist/effects/coin-burst.js +1 -1
- package/dist/effects/color-pulse.cjs +1 -1
- package/dist/effects/color-pulse.js +1 -1
- package/dist/effects/crt-power.cjs +1 -1
- package/dist/effects/crt-power.js +1 -1
- package/dist/effects/crumple.cjs +1 -1
- package/dist/effects/crumple.js +1 -1
- package/dist/effects/data-decode.cjs +1 -1
- package/dist/effects/data-decode.js +1 -1
- package/dist/effects/day-cycle.cjs +1 -1
- package/dist/effects/day-cycle.js +1 -1
- package/dist/effects/depth-in.cjs +1 -1
- package/dist/effects/depth-in.js +1 -1
- package/dist/effects/depth-pop.cjs +1 -1
- package/dist/effects/depth-pop.js +1 -1
- package/dist/effects/depth-stack.cjs +1 -1
- package/dist/effects/depth-stack.js +1 -1
- package/dist/effects/dolly-in.cjs +1 -1
- package/dist/effects/dolly-in.js +1 -1
- package/dist/effects/dots-pop.cjs +1 -1
- package/dist/effects/dots-pop.js +1 -1
- package/dist/effects/field-shake.cjs +1 -1
- package/dist/effects/field-shake.js +1 -1
- package/dist/effects/field-success.cjs +1 -1
- package/dist/effects/field-success.js +1 -1
- package/dist/effects/film-burn.cjs +1 -1
- package/dist/effects/film-burn.js +1 -1
- package/dist/effects/fire.cjs +1 -1
- package/dist/effects/fire.js +1 -1
- package/dist/effects/fireflies.cjs +1 -1
- package/dist/effects/fireflies.js +1 -1
- package/dist/effects/firework-burst.cjs +1 -1
- package/dist/effects/firework-burst.js +1 -1
- package/dist/effects/flip-chars.cjs +1 -1
- package/dist/effects/flip-chars.js +1 -1
- package/dist/effects/fluid.cjs +1 -1
- package/dist/effects/fluid.js +1 -1
- package/dist/effects/fly-to-cart.cjs +1 -1
- package/dist/effects/fly-to-cart.js +1 -1
- package/dist/effects/focus-draw.cjs +1 -1
- package/dist/effects/focus-draw.js +1 -1
- package/dist/effects/focus-glow.cjs +1 -1
- package/dist/effects/focus-glow.js +1 -1
- package/dist/effects/fog.cjs +1 -1
- package/dist/effects/fog.js +1 -1
- package/dist/effects/font-breathe.cjs +1 -1
- package/dist/effects/font-breathe.js +1 -1
- package/dist/effects/form-cascade.cjs +1 -1
- package/dist/effects/form-cascade.js +1 -1
- package/dist/effects/gen-skeleton.cjs +1 -1
- package/dist/effects/gen-skeleton.js +1 -1
- package/dist/effects/glass-frost.cjs +1 -1
- package/dist/effects/glass-frost.js +1 -1
- package/dist/effects/glitch-text.cjs +1 -1
- package/dist/effects/glitch-text.js +1 -1
- package/dist/effects/globe-spin.cjs +1 -1
- package/dist/effects/globe-spin.js +1 -1
- package/dist/effects/god-rays.cjs +1 -1
- package/dist/effects/god-rays.js +1 -1
- package/dist/effects/gpu-lift.cjs +1 -1
- package/dist/effects/gpu-lift.js +1 -1
- package/dist/effects/grain-flicker.cjs +1 -1
- package/dist/effects/grain-flicker.js +1 -1
- package/dist/effects/halftone-in.cjs +1 -1
- package/dist/effects/halftone-in.js +1 -1
- package/dist/effects/highlight-sweep.cjs +1 -1
- package/dist/effects/highlight-sweep.js +1 -1
- package/dist/effects/hologram.cjs +1 -1
- package/dist/effects/hologram.js +1 -1
- package/dist/effects/hud-frame.cjs +1 -1
- package/dist/effects/hud-frame.js +1 -1
- package/dist/effects/icon-pop.cjs +1 -1
- package/dist/effects/icon-pop.js +1 -1
- package/dist/effects/icon-swap.cjs +1 -1
- package/dist/effects/icon-swap.js +1 -1
- package/dist/effects/idle-reveal.cjs +1 -1
- package/dist/effects/idle-reveal.js +1 -1
- package/dist/effects/ink.cjs +1 -1
- package/dist/effects/ink.js +1 -1
- package/dist/effects/jump-cut.cjs +1 -1
- package/dist/effects/jump-cut.js +1 -1
- package/dist/effects/kaleido.cjs +1 -1
- package/dist/effects/kaleido.js +1 -1
- package/dist/effects/label-float.cjs +1 -1
- package/dist/effects/label-float.js +1 -1
- package/dist/effects/lantern-rise.cjs +1 -1
- package/dist/effects/lantern-rise.js +1 -1
- package/dist/effects/leaves.cjs +1 -1
- package/dist/effects/leaves.js +1 -1
- package/dist/effects/letterbox.cjs +1 -1
- package/dist/effects/letterbox.js +1 -1
- package/dist/effects/level-up.cjs +1 -1
- package/dist/effects/level-up.js +1 -1
- package/dist/effects/light-follow.cjs +1 -1
- package/dist/effects/light-follow.js +1 -1
- package/dist/effects/lightning.cjs +1 -1
- package/dist/effects/lightning.js +1 -1
- package/dist/effects/line-draw.cjs +1 -1
- package/dist/effects/line-draw.js +1 -1
- package/dist/effects/liquid-text.cjs +1 -1
- package/dist/effects/liquid-text.js +1 -1
- package/dist/effects/liquid-wipe.cjs +1 -1
- package/dist/effects/liquid-wipe.js +1 -1
- package/dist/effects/lottie-play.cjs +1 -1
- package/dist/effects/lottie-play.js +1 -1
- package/dist/effects/magnet.cjs +1 -1
- package/dist/effects/magnet.js +1 -1
- package/dist/effects/marching-ants.cjs +1 -1
- package/dist/effects/marching-ants.js +1 -1
- package/dist/effects/marker-pulse.cjs +1 -1
- package/dist/effects/marker-pulse.js +1 -1
- package/dist/effects/mention-glow.cjs +1 -1
- package/dist/effects/mention-glow.js +1 -1
- package/dist/effects/mesh-drift.cjs +1 -1
- package/dist/effects/mesh-drift.js +1 -1
- package/dist/effects/message-in.cjs +1 -1
- package/dist/effects/message-in.js +1 -1
- package/dist/effects/mosaic-flip.cjs +1 -1
- package/dist/effects/mosaic-flip.js +1 -1
- package/dist/effects/neon-ignite.cjs +1 -1
- package/dist/effects/neon-ignite.js +1 -1
- package/dist/effects/neon-pulse.cjs +1 -1
- package/dist/effects/neon-pulse.js +1 -1
- package/dist/effects/neon-write.cjs +1 -1
- package/dist/effects/neon-write.js +1 -1
- package/dist/effects/neu-press.cjs +1 -1
- package/dist/effects/neu-press.js +1 -1
- package/dist/effects/noise-reveal.cjs +1 -1
- package/dist/effects/noise-reveal.js +1 -1
- package/dist/effects/number-roll.cjs +1 -1
- package/dist/effects/number-roll.js +1 -1
- package/dist/effects/orbit-camera.cjs +1 -1
- package/dist/effects/orbit-camera.js +1 -1
- package/dist/effects/orbit-in.cjs +1 -1
- package/dist/effects/orbit-in.js +1 -1
- package/dist/effects/origami.cjs +1 -1
- package/dist/effects/origami.js +1 -1
- package/dist/effects/page-curl.cjs +1 -1
- package/dist/effects/page-curl.js +1 -1
- package/dist/effects/pan-reveal.cjs +1 -1
- package/dist/effects/pan-reveal.js +1 -1
- package/dist/effects/paper-unfold.cjs +1 -1
- package/dist/effects/paper-unfold.js +1 -1
- package/dist/effects/particle-text.cjs +1 -1
- package/dist/effects/particle-text.js +1 -1
- package/dist/effects/path-morph.cjs +1 -1
- package/dist/effects/path-morph.js +1 -1
- package/dist/effects/pearlescent.cjs +1 -1
- package/dist/effects/pearlescent.js +1 -1
- package/dist/effects/pencil-sketch.cjs +1 -1
- package/dist/effects/pencil-sketch.js +1 -1
- package/dist/effects/pin-drop.cjs +1 -1
- package/dist/effects/pin-drop.js +1 -1
- package/dist/effects/pinball.cjs +1 -1
- package/dist/effects/pinball.js +1 -1
- package/dist/effects/pinch-hint.cjs +1 -1
- package/dist/effects/pinch-hint.js +1 -1
- package/dist/effects/pixelate-in.cjs +1 -1
- package/dist/effects/pixelate-in.js +1 -1
- package/dist/effects/pointer-shadow.cjs +1 -1
- package/dist/effects/pointer-shadow.js +1 -1
- package/dist/effects/portal-open.cjs +1 -1
- package/dist/effects/portal-open.js +1 -1
- package/dist/effects/price-flip.cjs +1 -1
- package/dist/effects/price-flip.js +1 -1
- package/dist/effects/product-spin.cjs +1 -1
- package/dist/effects/product-spin.js +1 -1
- package/dist/effects/rack-focus.cjs +1 -1
- package/dist/effects/rack-focus.js +1 -1
- package/dist/effects/radial-spectrum.cjs +2 -2
- package/dist/effects/radial-spectrum.js +2 -2
- package/dist/effects/rain-glass.cjs +1 -1
- package/dist/effects/rain-glass.js +1 -1
- package/dist/effects/reaction-burst.cjs +1 -1
- package/dist/effects/reaction-burst.js +1 -1
- package/dist/effects/read-receipt.cjs +1 -1
- package/dist/effects/read-receipt.js +1 -1
- package/dist/effects/refraction.cjs +1 -1
- package/dist/effects/refraction.js +1 -1
- package/dist/effects/ring-sweep.cjs +1 -1
- package/dist/effects/ring-sweep.js +1 -1
- package/dist/effects/ripple-dissolve.cjs +1 -1
- package/dist/effects/ripple-dissolve.js +1 -1
- package/dist/effects/rope.cjs +1 -1
- package/dist/effects/rope.js +1 -1
- package/dist/effects/route-draw.cjs +1 -1
- package/dist/effects/route-draw.js +1 -1
- package/dist/effects/safe-fade.cjs +1 -1
- package/dist/effects/safe-fade.js +1 -1
- package/dist/effects/sakura.cjs +1 -1
- package/dist/effects/sakura.js +1 -1
- package/dist/effects/sale-shine.cjs +1 -1
- package/dist/effects/sale-shine.js +1 -1
- package/dist/effects/sankey-flow.cjs +1 -1
- package/dist/effects/sankey-flow.js +1 -1
- package/dist/effects/scanline-sweep.cjs +1 -1
- package/dist/effects/scanline-sweep.js +1 -1
- package/dist/effects/shatter.cjs +1 -1
- package/dist/effects/shatter.js +1 -1
- package/dist/effects/smoke.cjs +1 -1
- package/dist/effects/smoke.js +1 -1
- package/dist/effects/snowfall.cjs +1 -1
- package/dist/effects/snowfall.js +1 -1
- package/dist/effects/soft-body.cjs +1 -1
- package/dist/effects/soft-body.js +1 -1
- package/dist/effects/sound-particles.cjs +2 -2
- package/dist/effects/sound-particles.js +2 -2
- package/dist/effects/spatial-float.cjs +1 -1
- package/dist/effects/spatial-float.js +1 -1
- package/dist/effects/spectrum-mirror.cjs +2 -2
- package/dist/effects/spectrum-mirror.js +2 -2
- package/dist/effects/splash.cjs +1 -1
- package/dist/effects/splash.js +1 -1
- package/dist/effects/spooky-float.cjs +1 -1
- package/dist/effects/spooky-float.js +1 -1
- package/dist/effects/stock-pulse.cjs +1 -1
- package/dist/effects/stock-pulse.js +1 -1
- package/dist/effects/stream-text.cjs +1 -1
- package/dist/effects/stream-text.js +1 -1
- package/dist/effects/stroke-draw.cjs +1 -1
- package/dist/effects/stroke-draw.js +1 -1
- package/dist/effects/success-check.cjs +1 -1
- package/dist/effects/success-check.js +1 -1
- package/dist/effects/swipe-hint.cjs +1 -1
- package/dist/effects/swipe-hint.js +1 -1
- package/dist/effects/text-trail.cjs +1 -1
- package/dist/effects/text-trail.js +1 -1
- package/dist/effects/thinking-glow.cjs +1 -1
- package/dist/effects/thinking-glow.js +1 -1
- package/dist/effects/tilt-wobble.cjs +1 -1
- package/dist/effects/tilt-wobble.js +1 -1
- package/dist/effects/typing-dots.cjs +1 -1
- package/dist/effects/typing-dots.js +1 -1
- package/dist/effects/underline-sweep.cjs +1 -1
- package/dist/effects/underline-sweep.js +1 -1
- package/dist/effects/vhs-glitch.cjs +1 -1
- package/dist/effects/vhs-glitch.js +1 -1
- package/dist/effects/vine-grow.cjs +1 -1
- package/dist/effects/vine-grow.js +1 -1
- package/dist/effects/vinyl-spin.cjs +2 -2
- package/dist/effects/vinyl-spin.js +2 -2
- package/dist/effects/voice-wave.cjs +1 -1
- package/dist/effects/voice-wave.js +1 -1
- package/dist/effects/water-drop.cjs +1 -1
- package/dist/effects/water-drop.js +1 -1
- package/dist/effects/watercolor.cjs +1 -1
- package/dist/effects/watercolor.js +1 -1
- package/dist/effects/waveform-scope.cjs +2 -2
- package/dist/effects/waveform-scope.js +2 -2
- package/dist/effects/xmas-snow.cjs +1 -1
- package/dist/effects/xmas-snow.js +1 -1
- package/dist/effects/xp-gain.cjs +1 -1
- package/dist/effects/xp-gain.js +1 -1
- package/dist/effects/y2k-shine.cjs +1 -1
- package/dist/effects/y2k-shine.js +1 -1
- package/dist/element.cjs +1 -1
- package/dist/element.js +1 -1
- package/dist/element.umd.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/llms-full.txt +332 -300
- package/dist/llms.txt +2 -2
- package/dist/manifest.json +421 -301
- 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 +2 -2
- package/dist/runtime.d.ts +2 -2
- 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 +4 -1
- package/dist/widgets/add-to-cart.js +4 -1
- package/dist/widgets/badge-wall.cjs +2 -2
- package/dist/widgets/badge-wall.js +2 -2
- package/dist/widgets/bar-chart.cjs +1 -1
- package/dist/widgets/bar-chart.js +1 -1
- package/dist/widgets/bg-generator.cjs +1 -1
- package/dist/widgets/bg-generator.js +1 -1
- package/dist/widgets/carousel.cjs +1 -1
- package/dist/widgets/carousel.js +1 -1
- package/dist/widgets/cart-drawer.cjs +2 -2
- package/dist/widgets/cart-drawer.js +2 -2
- package/dist/widgets/chapter-nav.cjs +1 -1
- package/dist/widgets/chapter-nav.js +1 -1
- package/dist/widgets/chat-composer.cjs +1 -1
- package/dist/widgets/chat-composer.js +1 -1
- package/dist/widgets/clock-control.cjs +1 -1
- package/dist/widgets/clock-control.js +1 -1
- package/dist/widgets/code-export.cjs +1 -1
- package/dist/widgets/code-export.js +1 -1
- package/dist/widgets/color-picker.cjs +2 -2
- package/dist/widgets/color-picker.js +2 -2
- package/dist/widgets/command-palette.cjs +1 -1
- package/dist/widgets/command-palette.js +1 -1
- package/dist/widgets/compare.cjs +1 -1
- package/dist/widgets/compare.js +1 -1
- package/dist/widgets/countdown.cjs +1 -1
- package/dist/widgets/countdown.js +1 -1
- package/dist/widgets/cube-gallery.cjs +1 -1
- package/dist/widgets/cube-gallery.js +1 -1
- package/dist/widgets/date-picker.cjs +1 -1
- package/dist/widgets/date-picker.js +1 -1
- package/dist/widgets/disclosure.cjs +4 -1
- package/dist/widgets/disclosure.js +4 -1
- package/dist/widgets/dock.cjs +1 -1
- package/dist/widgets/dock.js +1 -1
- package/dist/widgets/dotlottie.cjs +4 -4
- package/dist/widgets/dotlottie.js +4 -4
- package/dist/widgets/equalizer.cjs +1 -1
- package/dist/widgets/equalizer.js +1 -1
- package/dist/widgets/festival-banner.cjs +1 -1
- package/dist/widgets/festival-banner.js +1 -1
- package/dist/widgets/field.cjs +1 -1
- package/dist/widgets/field.js +1 -1
- package/dist/widgets/file-drop.cjs +4 -1
- package/dist/widgets/file-drop.js +4 -1
- package/dist/widgets/gauge.cjs +1 -1
- package/dist/widgets/gauge.js +1 -1
- package/dist/widgets/gen-art.cjs +1 -1
- package/dist/widgets/gen-art.js +1 -1
- package/dist/widgets/gesture-sticker.cjs +1 -1
- package/dist/widgets/gesture-sticker.js +1 -1
- package/dist/widgets/gl-model.cjs +4 -4
- package/dist/widgets/gl-model.js +4 -4
- package/dist/widgets/gl-scene.cjs +4 -4
- package/dist/widgets/gl-scene.js +4 -4
- package/dist/widgets/globe.cjs +1 -1
- package/dist/widgets/globe.js +1 -1
- package/dist/widgets/gpu-particles.cjs +1 -1
- package/dist/widgets/gpu-particles.js +1 -1
- package/dist/widgets/gyro-card.cjs +1 -1
- package/dist/widgets/gyro-card.js +1 -1
- package/dist/widgets/hero-video.cjs +1 -1
- package/dist/widgets/hero-video.js +1 -1
- package/dist/widgets/hud-panel.cjs +1 -1
- package/dist/widgets/hud-panel.js +1 -1
- package/dist/widgets/hydrate.cjs +1 -1
- package/dist/widgets/hydrate.js +1 -1
- package/dist/widgets/install-button.cjs +1 -1
- package/dist/widgets/install-button.js +1 -1
- package/dist/widgets/kanban.cjs +4 -1
- package/dist/widgets/kanban.js +4 -1
- package/dist/widgets/keyframe-editor.cjs +5 -2
- package/dist/widgets/keyframe-editor.js +5 -2
- package/dist/widgets/kpi.cjs +2 -1
- package/dist/widgets/kpi.js +2 -1
- package/dist/widgets/leaderboard.cjs +2 -2
- package/dist/widgets/leaderboard.js +2 -2
- package/dist/widgets/liquid-nav.cjs +1 -1
- package/dist/widgets/liquid-nav.js +1 -1
- package/dist/widgets/location-card.cjs +1 -1
- package/dist/widgets/location-card.js +1 -1
- package/dist/widgets/lottie-icon.cjs +1 -1
- package/dist/widgets/lottie-icon.js +1 -1
- package/dist/widgets/lottie-player.cjs +4 -4
- package/dist/widgets/lottie-player.js +4 -4
- package/dist/widgets/lottie.cjs +1 -1
- package/dist/widgets/lottie.js +1 -1
- package/dist/widgets/lyrics.cjs +2 -2
- package/dist/widgets/lyrics.js +2 -2
- package/dist/widgets/masonry-flow.cjs +1 -1
- package/dist/widgets/masonry-flow.js +1 -1
- package/dist/widgets/menu-toggle.cjs +2 -2
- package/dist/widgets/menu-toggle.js +2 -2
- package/dist/widgets/menu.cjs +1 -1
- package/dist/widgets/menu.js +1 -1
- package/dist/widgets/message-list.cjs +4 -1
- package/dist/widgets/message-list.js +4 -1
- package/dist/widgets/milestones.cjs +1 -1
- package/dist/widgets/milestones.js +1 -1
- package/dist/widgets/modal.cjs +1 -1
- package/dist/widgets/modal.js +1 -1
- package/dist/widgets/motion-inspector.cjs +2 -2
- package/dist/widgets/motion-inspector.js +2 -2
- package/dist/widgets/motion-prefs.cjs +1 -1
- package/dist/widgets/motion-prefs.js +1 -1
- package/dist/widgets/motion-prompt.cjs +1 -1
- package/dist/widgets/motion-prompt.js +1 -1
- package/dist/widgets/motion-spec.cjs +1 -1
- package/dist/widgets/motion-spec.js +1 -1
- package/dist/widgets/motion.cjs +1 -1
- package/dist/widgets/motion.js +1 -1
- package/dist/widgets/music-player.cjs +1 -1
- package/dist/widgets/music-player.js +1 -1
- package/dist/widgets/native-preview.cjs +1 -1
- package/dist/widgets/native-preview.js +1 -1
- package/dist/widgets/nav-morph.cjs +1 -1
- package/dist/widgets/nav-morph.js +1 -1
- package/dist/widgets/notification-bell.cjs +4 -1
- package/dist/widgets/notification-bell.js +4 -1
- package/dist/widgets/odometer.cjs +1 -1
- package/dist/widgets/odometer.js +1 -1
- package/dist/widgets/organic-card.cjs +1 -1
- package/dist/widgets/organic-card.js +1 -1
- package/dist/widgets/otp.cjs +1 -1
- package/dist/widgets/otp.js +1 -1
- package/dist/widgets/pagination.cjs +2 -2
- package/dist/widgets/pagination.js +2 -2
- package/dist/widgets/panorama.cjs +1 -1
- package/dist/widgets/panorama.js +1 -1
- package/dist/widgets/parallax-layers.cjs +1 -1
- package/dist/widgets/parallax-layers.js +1 -1
- package/dist/widgets/pause-all.cjs +1 -1
- package/dist/widgets/pause-all.js +1 -1
- package/dist/widgets/perf-monitor.cjs +1 -1
- package/dist/widgets/perf-monitor.js +1 -1
- package/dist/widgets/physics-playground.cjs +4 -4
- package/dist/widgets/physics-playground.js +4 -4
- package/dist/widgets/plugin-card.cjs +3 -3
- package/dist/widgets/plugin-card.js +3 -3
- package/dist/widgets/plugin-store.cjs +1 -1
- package/dist/widgets/plugin-store.js +1 -1
- package/dist/widgets/presence.cjs +1 -1
- package/dist/widgets/presence.js +1 -1
- package/dist/widgets/prize-wheel.cjs +2 -2
- package/dist/widgets/prize-wheel.js +2 -2
- package/dist/widgets/product-gallery.cjs +1 -1
- package/dist/widgets/product-gallery.js +1 -1
- package/dist/widgets/progress-ring.cjs +1 -1
- package/dist/widgets/progress-ring.js +1 -1
- package/dist/widgets/prop-panel.cjs +1 -1
- package/dist/widgets/prop-panel.js +1 -1
- package/dist/widgets/pull-cord.cjs +5 -1
- package/dist/widgets/pull-cord.js +5 -1
- package/dist/widgets/radar.cjs +1 -1
- package/dist/widgets/radar.js +1 -1
- package/dist/widgets/reactions.cjs +2 -2
- package/dist/widgets/reactions.js +2 -2
- package/dist/widgets/red-envelope.cjs +1 -1
- package/dist/widgets/red-envelope.js +1 -1
- package/dist/widgets/retro-button.cjs +1 -1
- package/dist/widgets/retro-button.js +1 -1
- package/dist/widgets/rive.cjs +1 -1
- package/dist/widgets/rive.js +1 -1
- package/dist/widgets/route-transition.cjs +1 -1
- package/dist/widgets/route-transition.js +1 -1
- package/dist/widgets/scene.cjs +1 -1
- package/dist/widgets/scene.js +1 -1
- package/dist/widgets/scroll-ring.cjs +1 -1
- package/dist/widgets/scroll-ring.js +1 -1
- package/dist/widgets/scroll-scene.cjs +4 -4
- package/dist/widgets/scroll-scene.js +4 -4
- package/dist/widgets/segmented.cjs +1 -1
- package/dist/widgets/segmented.js +1 -1
- package/dist/widgets/shader-backdrop.cjs +1 -1
- package/dist/widgets/shader-backdrop.js +1 -1
- package/dist/widgets/sheet.cjs +1 -1
- package/dist/widgets/sheet.js +1 -1
- package/dist/widgets/shortcut.cjs +1 -1
- package/dist/widgets/shortcut.js +1 -1
- package/dist/widgets/skeleton-reveal.cjs +1 -1
- package/dist/widgets/skeleton-reveal.js +1 -1
- package/dist/widgets/sketch-chart.cjs +1 -1
- package/dist/widgets/sketch-chart.js +1 -1
- package/dist/widgets/smooth-scroll.cjs +3 -3
- package/dist/widgets/smooth-scroll.js +3 -3
- package/dist/widgets/snap-carousel.cjs +3 -3
- package/dist/widgets/snap-carousel.js +3 -3
- package/dist/widgets/sparkline.cjs +1 -1
- package/dist/widgets/sparkline.js +1 -1
- package/dist/widgets/spatial-card.cjs +1 -1
- package/dist/widgets/spatial-card.js +1 -1
- package/dist/widgets/star-rating.cjs +1 -1
- package/dist/widgets/star-rating.js +1 -1
- package/dist/widgets/stepper.cjs +2 -1
- package/dist/widgets/stepper.js +2 -1
- package/dist/widgets/sticky-wall.cjs +1 -1
- package/dist/widgets/sticky-wall.js +1 -1
- package/dist/widgets/stories.cjs +1 -1
- package/dist/widgets/stories.js +1 -1
- package/dist/widgets/suggestion-chips.cjs +1 -1
- package/dist/widgets/suggestion-chips.js +1 -1
- package/dist/widgets/swipe-deck.cjs +4 -1
- package/dist/widgets/swipe-deck.js +4 -1
- package/dist/widgets/switch.cjs +2 -2
- package/dist/widgets/switch.js +2 -2
- package/dist/widgets/tab-bar.cjs +1 -1
- package/dist/widgets/tab-bar.js +1 -1
- package/dist/widgets/terminal.cjs +1 -1
- package/dist/widgets/terminal.js +1 -1
- package/dist/widgets/text-splitter.cjs +3 -3
- package/dist/widgets/text-splitter.js +3 -3
- package/dist/widgets/theme-surface.cjs +1 -1
- package/dist/widgets/theme-surface.js +1 -1
- package/dist/widgets/theme-switcher.cjs +1 -1
- package/dist/widgets/theme-switcher.js +1 -1
- package/dist/widgets/tip.cjs +1 -1
- package/dist/widgets/tip.js +1 -1
- package/dist/widgets/toast-stack.cjs +1 -1
- package/dist/widgets/toast-stack.js +1 -1
- package/dist/widgets/token-editor.cjs +1 -1
- package/dist/widgets/token-editor.js +1 -1
- package/dist/widgets/upload-progress.cjs +1 -1
- package/dist/widgets/upload-progress.js +1 -1
- package/dist/widgets/video-card.cjs +1 -1
- package/dist/widgets/video-card.js +1 -1
- package/dist/widgets/voice-button.cjs +1 -1
- package/dist/widgets/voice-button.js +1 -1
- package/dist/widgets/volume-knob.cjs +2 -1
- package/dist/widgets/volume-knob.js +2 -1
- package/dist/widgets/weather-card.cjs +1 -1
- package/dist/widgets/weather-card.js +1 -1
- package/dist/widgets/worker-canvas.cjs +1 -1
- package/dist/widgets/worker-canvas.js +1 -1
- package/dist/widgets/xp-bar.cjs +1 -1
- package/dist/widgets/xp-bar.js +1 -1
- package/dist/widgets.umd.js +2 -2
- package/docs/component-contract.md +12 -11
- package/docs/components/usa-accordion.md +1 -1
- package/docs/components/usa-acrylic.md +1 -1
- package/docs/components/usa-add-to-cart.md +2 -2
- package/docs/components/usa-ambient.md +1 -1
- package/docs/components/usa-anim-icon.md +1 -1
- package/docs/components/usa-audio.md +1 -1
- package/docs/components/usa-aurora.md +1 -1
- package/docs/components/usa-auto-animate.md +2 -2
- package/docs/components/usa-auto-skeleton.md +1 -1
- package/docs/components/usa-avatar-stack.md +1 -1
- package/docs/components/usa-back-to-top.md +2 -2
- package/docs/components/usa-badge-wall.md +2 -2
- package/docs/components/usa-badge.md +1 -1
- package/docs/components/usa-bar-chart.md +1 -1
- package/docs/components/usa-bg-generator.md +1 -1
- package/docs/components/usa-blobs.md +2 -2
- package/docs/components/usa-bottom-sheet.md +1 -1
- package/docs/components/usa-button.md +1 -1
- package/docs/components/usa-card-stack.md +1 -1
- package/docs/components/usa-card.md +1 -1
- package/docs/components/usa-carousel-3d.md +1 -1
- package/docs/components/usa-carousel.md +1 -1
- package/docs/components/usa-cart-drawer.md +2 -2
- package/docs/components/usa-chapter-nav.md +1 -1
- package/docs/components/usa-chat-composer.md +1 -1
- package/docs/components/usa-check.md +1 -1
- package/docs/components/usa-checkbox.md +1 -1
- package/docs/components/usa-click.md +1 -1
- package/docs/components/usa-clock-control.md +1 -1
- package/docs/components/usa-code-export.md +1 -1
- package/docs/components/usa-color-picker.md +1 -1
- package/docs/components/usa-command-palette.md +1 -1
- package/docs/components/usa-compare.md +1 -1
- package/docs/components/usa-countdown.md +1 -1
- package/docs/components/usa-counter.md +1 -1
- package/docs/components/usa-cube-gallery.md +1 -1
- package/docs/components/usa-cube.md +1 -1
- package/docs/components/usa-cursor.md +1 -1
- package/docs/components/usa-date-picker.md +1 -1
- package/docs/components/usa-depth.md +1 -1
- package/docs/components/usa-dialog.md +1 -1
- package/docs/components/usa-disclosure.md +2 -2
- package/docs/components/usa-distort.md +1 -1
- package/docs/components/usa-dock.md +1 -1
- package/docs/components/usa-dot-network.md +2 -2
- package/docs/components/usa-dotlottie.md +6 -6
- package/docs/components/usa-double-tap.md +2 -2
- package/docs/components/usa-draggable.md +1 -1
- package/docs/components/usa-draw.md +2 -2
- package/docs/components/usa-drawer.md +1 -1
- package/docs/components/usa-equalizer.md +1 -1
- package/docs/components/usa-fab.md +1 -1
- package/docs/components/usa-festival-banner.md +1 -1
- package/docs/components/usa-field.md +1 -1
- package/docs/components/usa-file-drop.md +2 -2
- package/docs/components/usa-fullpage.md +2 -2
- package/docs/components/usa-fx.md +1 -1
- package/docs/components/usa-gauge.md +1 -1
- package/docs/components/usa-gen-art.md +1 -1
- package/docs/components/usa-gesture-fx.md +1 -1
- package/docs/components/usa-gesture-sticker.md +1 -1
- package/docs/components/usa-gl-model.md +7 -7
- package/docs/components/usa-gl-scene.md +8 -8
- package/docs/components/usa-glitch.md +1 -1
- package/docs/components/usa-globe.md +1 -1
- package/docs/components/usa-gpu-particles.md +1 -1
- package/docs/components/usa-gradient-text.md +1 -1
- package/docs/components/usa-grain.md +1 -1
- package/docs/components/usa-grid-glow.md +2 -2
- package/docs/components/usa-gyro-card.md +1 -1
- package/docs/components/usa-handwriting.md +1 -1
- package/docs/components/usa-hero-video.md +1 -1
- package/docs/components/usa-hold.md +1 -1
- package/docs/components/usa-hud-panel.md +1 -1
- package/docs/components/usa-hydrate.md +1 -1
- package/docs/components/usa-icon-morph.md +1 -1
- package/docs/components/usa-install-button.md +3 -3
- package/docs/components/usa-kanban.md +2 -2
- package/docs/components/usa-keyframe-editor.md +2 -2
- package/docs/components/usa-kpi.md +1 -1
- package/docs/components/usa-leaderboard.md +2 -2
- package/docs/components/usa-like.md +1 -1
- package/docs/components/usa-liquid-nav.md +1 -1
- package/docs/components/usa-liquid.md +1 -1
- package/docs/components/usa-loading-bar.md +2 -2
- package/docs/components/usa-location-card.md +1 -1
- package/docs/components/usa-lottie-icon.md +1 -1
- package/docs/components/usa-lottie-player.md +5 -5
- package/docs/components/usa-lottie.md +1 -1
- package/docs/components/usa-lyrics.md +2 -2
- package/docs/components/usa-magnetic.md +1 -1
- package/docs/components/usa-marquee.md +1 -1
- package/docs/components/usa-mask-reveal.md +2 -2
- package/docs/components/usa-masonry-flow.md +1 -1
- package/docs/components/usa-masonry.md +1 -1
- package/docs/components/usa-menu-toggle.md +1 -1
- package/docs/components/usa-menu.md +1 -1
- package/docs/components/usa-message-list.md +2 -2
- package/docs/components/usa-milestones.md +1 -1
- package/docs/components/usa-modal.md +1 -1
- package/docs/components/usa-morph.md +1 -1
- package/docs/components/usa-motion-inspector.md +1 -1
- package/docs/components/usa-motion-prefs.md +1 -1
- package/docs/components/usa-motion-prompt.md +1 -1
- package/docs/components/usa-motion-spec.md +1 -1
- package/docs/components/usa-motion-switch.md +2 -2
- package/docs/components/usa-motion-theme.md +1 -1
- package/docs/components/usa-motion.md +1 -1
- package/docs/components/usa-music-player.md +1 -1
- package/docs/components/usa-native-preview.md +1 -1
- package/docs/components/usa-nav-morph.md +1 -1
- package/docs/components/usa-navbar.md +2 -2
- package/docs/components/usa-notification-bell.md +2 -2
- package/docs/components/usa-odometer.md +1 -1
- package/docs/components/usa-organic-card.md +1 -1
- package/docs/components/usa-otp.md +1 -1
- package/docs/components/usa-overscroll.md +1 -1
- package/docs/components/usa-pack.md +1 -1
- package/docs/components/usa-pagination.md +1 -1
- package/docs/components/usa-panorama.md +1 -1
- package/docs/components/usa-parallax-layers.md +1 -1
- package/docs/components/usa-particles.md +1 -1
- package/docs/components/usa-pause-all.md +1 -1
- package/docs/components/usa-perf-monitor.md +1 -1
- package/docs/components/usa-physics-playground.md +6 -6
- package/docs/components/usa-pinch-zoom.md +2 -2
- package/docs/components/usa-player.md +1 -1
- package/docs/components/usa-plugin-card.md +4 -4
- package/docs/components/usa-plugin-store.md +1 -1
- package/docs/components/usa-popover.md +2 -2
- package/docs/components/usa-post-fx.md +1 -1
- package/docs/components/usa-presence.md +1 -1
- package/docs/components/usa-press.md +1 -1
- package/docs/components/usa-prize-wheel.md +2 -2
- package/docs/components/usa-product-gallery.md +1 -1
- package/docs/components/usa-progress-ring.md +1 -1
- package/docs/components/usa-progress.md +1 -1
- package/docs/components/usa-prop-panel.md +1 -1
- package/docs/components/usa-pull-cord.md +2 -2
- package/docs/components/usa-pull-refresh.md +2 -2
- package/docs/components/usa-radar.md +1 -1
- package/docs/components/usa-reactions.md +2 -2
- package/docs/components/usa-red-envelope.md +1 -1
- package/docs/components/usa-retro-button.md +1 -1
- package/docs/components/usa-reveal.md +1 -1
- package/docs/components/usa-ripple.md +1 -1
- package/docs/components/usa-rive.md +3 -3
- package/docs/components/usa-route-transition.md +1 -1
- package/docs/components/usa-scene.md +1 -1
- package/docs/components/usa-scramble.md +1 -1
- package/docs/components/usa-scroll-highlight.md +1 -1
- package/docs/components/usa-scroll-progress.md +1 -1
- package/docs/components/usa-scroll-ring.md +1 -1
- package/docs/components/usa-scroll-scene.md +5 -5
- package/docs/components/usa-scrolly.md +1 -1
- package/docs/components/usa-segmented.md +1 -1
- package/docs/components/usa-shader-backdrop.md +1 -1
- package/docs/components/usa-shader.md +1 -1
- package/docs/components/usa-sheet.md +1 -1
- package/docs/components/usa-shimmer-text.md +1 -1
- package/docs/components/usa-shortcut.md +1 -1
- package/docs/components/usa-skeleton-reveal.md +1 -1
- package/docs/components/usa-skeleton.md +1 -1
- package/docs/components/usa-sketch-chart.md +1 -1
- package/docs/components/usa-slider.md +1 -1
- package/docs/components/usa-smooth-scroll.md +5 -5
- package/docs/components/usa-snap-carousel.md +5 -5
- package/docs/components/usa-sparkline.md +1 -1
- package/docs/components/usa-spatial-card.md +1 -1
- package/docs/components/usa-spinner.md +1 -1
- package/docs/components/usa-splash.md +2 -2
- package/docs/components/usa-split-text.md +1 -1
- package/docs/components/usa-spotlight.md +1 -1
- package/docs/components/usa-spring.md +1 -1
- package/docs/components/usa-stagger.md +1 -1
- package/docs/components/usa-star-rating.md +1 -1
- package/docs/components/usa-stepper.md +1 -1
- package/docs/components/usa-sticky-stack.md +1 -1
- package/docs/components/usa-sticky-wall.md +1 -1
- package/docs/components/usa-stories.md +1 -1
- package/docs/components/usa-story.md +2 -2
- package/docs/components/usa-suggestion-chips.md +1 -1
- package/docs/components/usa-swipe-deck.md +2 -2
- package/docs/components/usa-swipeable.md +1 -1
- package/docs/components/usa-switch.md +1 -1
- package/docs/components/usa-tab-bar.md +1 -1
- package/docs/components/usa-tabs.md +1 -1
- package/docs/components/usa-terminal.md +1 -1
- package/docs/components/usa-text-rotate.md +1 -1
- package/docs/components/usa-text-splitter.md +5 -5
- package/docs/components/usa-theme-surface.md +1 -1
- package/docs/components/usa-theme-switcher.md +1 -1
- package/docs/components/usa-tilt.md +1 -1
- package/docs/components/usa-timeline.md +1 -1
- package/docs/components/usa-tip.md +1 -1
- package/docs/components/usa-toast-stack.md +1 -1
- package/docs/components/usa-toaster.md +1 -1
- package/docs/components/usa-token-editor.md +1 -1
- package/docs/components/usa-typewriter.md +1 -1
- package/docs/components/usa-upload-progress.md +1 -1
- package/docs/components/usa-video-card.md +1 -1
- package/docs/components/usa-view-switch.md +1 -1
- package/docs/components/usa-voice-button.md +1 -1
- package/docs/components/usa-volume-knob.md +1 -1
- package/docs/components/usa-water-ripple.md +2 -2
- package/docs/components/usa-wave-text.md +1 -1
- package/docs/components/usa-weather-card.md +1 -1
- package/docs/components/usa-worker-canvas.md +1 -1
- package/docs/components/usa-xp-bar.md +1 -1
- package/docs/components.md +50 -50
- package/docs/contract-report.json +241 -522
- package/docs/contract-report.md +16 -49
- package/docs/cross-platform.md +41 -0
- package/docs/hybrid-apps.md +1 -1
- package/docs/runtime/core.md +2 -2
- package/docs/runtime/drag-snap.md +3 -3
- package/docs/runtime/format-apng.md +3 -3
- package/docs/runtime/format-css.md +3 -3
- package/docs/runtime/format-gif.md +3 -3
- package/docs/runtime/format-gltf.md +3 -3
- package/docs/runtime/format-motion.md +3 -3
- package/docs/runtime/format-obj.md +3 -3
- package/docs/runtime/format-scene.md +3 -3
- package/docs/runtime/format-sprite.md +3 -3
- package/docs/runtime/format-svg.md +3 -3
- package/docs/runtime/format-webp.md +3 -3
- package/docs/runtime/gl.md +3 -3
- package/docs/runtime/gltf-anim.md +3 -3
- package/docs/runtime/gltf-decoders.md +3 -3
- package/docs/runtime/lottie-state.md +3 -3
- package/docs/runtime/physics.md +3 -3
- package/docs/runtime/scroll.md +3 -3
- package/docs/runtime/smooth.md +3 -3
- package/docs/runtime/text.md +3 -3
- package/docs/runtime/vector.md +3 -3
- package/docs/upgrading-12.md +2 -2
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -39,7 +39,7 @@ All of these are generated from the source at build time, so they match the inst
|
|
|
39
39
|
Plain HTML:
|
|
40
40
|
|
|
41
41
|
```html
|
|
42
|
-
<script src="https://unpkg.com/motionary@
|
|
42
|
+
<script src="https://unpkg.com/motionary@12/dist/components.umd.js"></script>
|
|
43
43
|
<usa-reveal effect="fade-up"><h2>Hello</h2></usa-reveal>
|
|
44
44
|
```
|
|
45
45
|
|
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,33 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [12.1.0] - 2026-10-10
|
|
11
|
+
|
|
12
|
+
### Cross-platform 3.0 (Public API)
|
|
13
|
+
- `npx motionary export --target css|wxss|arkts [--presets a,b] [--duration token] [--easing token] [--rpx] [--out file]` exports the presets, durations and easings from `motion.tokens.json` to code each platform runs natively.
|
|
14
|
+
- Mini programs (WeChat WXSS, Alipay ACSS, Douyin TTSS): `@keyframes` + `.usa-<preset>` classes, variables on `page`, optional px → rpx; example in `examples/miniapp`.
|
|
15
|
+
- HarmonyOS ArkUI: an ArkTS module with `USA_DURATION`, `USA_CURVE` (`curves.cubicBezierCurve`), `USA_PRESETS` frames and `usaAnimate()` on `animateTo`; parts with no ArkUI attribute (skew, perspective, clip-path) are listed in the file, never silently dropped; example in `examples/harmony-arkts`.
|
|
16
|
+
- Cross-platform previewer `showcase/xplat.html`: one preset on the web, in a mini program and as ArkUI maps it, with the generated code to copy.
|
|
17
|
+
- Reduced motion in every target: `@media (prefers-reduced-motion)` + `.usa-reduce-motion` class (CSS / WXSS), `reduceMotion` flag (ArkTS).
|
|
18
|
+
- New [docs/cross-platform.md](./docs/cross-platform.md). The exporter (`bin/xplat.mjs`) is build-time only: no runtime bundle changes.
|
|
19
|
+
|
|
20
|
+
### Checks
|
|
21
|
+
- New `test/widgets-12-1.test.ts`: transform parsing, ArkUI mapping + unmapped report, curves, every core preset exports to all three targets, reduced-motion rules, CLI (`--out`, unknown target / preset), committed example files equal a fresh export, previewer + docs.
|
|
22
|
+
|
|
23
|
+
## [12.0.0] - 2026-10-10
|
|
24
|
+
|
|
25
|
+
### ⚠️ Breaking — unified component contract (Components · Public API)
|
|
26
|
+
- Every `<usa-*>` element follows one contract ([docs/component-contract.md](./docs/component-contract.md)); **`npm run check:contract` now runs in CI and fails on any finding**. Intended exceptions are written next to the code (`// contract-exempt: <rule> — <reason>`) and listed in [docs/contract-report.md](./docs/contract-report.md).
|
|
27
|
+
- **Legacy event names removed:** `usa-beat`, `usa-audio-error` (`<usa-audio>`), `usa-player-ready`, `usa-player-finish` (`<usa-player>`), `usa-story-step` (`<usa-story>`). Listen to `usa:beat`, `usa:audio-error`, `usa:ready`, `usa:finish`, `usa:step` (available since 11.8). `npx usa-codemod-12 --write` rewrites listeners and Vue / Angular / Svelte bindings.
|
|
28
|
+
- **Attributes:** elements that had no `observedAttributes` list now observe every attribute they read — changing e.g. `<usa-popover placement>` or `<usa-navbar threshold>` after mount re-renders the element instead of being ignored. State the element reflects itself (`checked`, `value`, `open`, `page` …) is set through the property (documented exemption).
|
|
29
|
+
- CDN URLs move with the major: `motionary@11/` → `motionary@12/` (docs, showcase, `RUNTIME_CDN`); `RUNTIME_VERSION` 12.0.0 (plugins declaring `engines.motionary: "^11"` show as incompatible in `<usa-plugin-card>`).
|
|
30
|
+
|
|
31
|
+
### Not changed
|
|
32
|
+
- The import paths deprecated in 11.5 keep working through 12.x (removed in 13.0); still no runtime warning. Migration guide: [docs/upgrading-12.md](./docs/upgrading-12.md).
|
|
33
|
+
|
|
34
|
+
### Checks
|
|
35
|
+
- New `test/widgets-12-0.test.ts`: zero contract findings, documented exemptions, blocking `check:contract`, legacy events gone, version wiring.
|
|
36
|
+
|
|
10
37
|
## [11.9.0] - 2026-10-10
|
|
11
38
|
|
|
12
39
|
### 12.0 preparation (all layers)
|
package/README.md
CHANGED
|
@@ -26,12 +26,12 @@ npm i motionary
|
|
|
26
26
|
|
|
27
27
|
```html
|
|
28
28
|
<!-- CDN (no build) -->
|
|
29
|
-
<script src="https://unpkg.com/motionary@
|
|
30
|
-
<script src="https://unpkg.com/motionary@
|
|
31
|
-
<script src="https://unpkg.com/motionary@
|
|
29
|
+
<script src="https://unpkg.com/motionary@12/dist/index.umd.js"></script> <!-- window.ScrollAnimate -->
|
|
30
|
+
<script src="https://unpkg.com/motionary@12/dist/presets-extended.umd.js"></script> <!-- +181 presets -->
|
|
31
|
+
<script src="https://unpkg.com/motionary@12/dist/components.umd.js"></script> <!-- every <usa-*>, window.UsaComponents -->
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
-
jsDelivr works too: `https://cdn.jsdelivr.net/npm/motionary@
|
|
34
|
+
jsDelivr works too: `https://cdn.jsdelivr.net/npm/motionary@12/dist/…`. Existing `use-scroll-animate` installs and `unpkg.com/use-scroll-animate@6` URLs keep working.
|
|
35
35
|
|
|
36
36
|
## 30-second quickstart
|
|
37
37
|
|
|
@@ -113,6 +113,8 @@ export class Hero {}
|
|
|
113
113
|
> 11.6: `suggestMotion(text, { provider })` from `motionary/tooling/ai` — local parser by default, optional user-supplied LLM ([docs/ai-provider.md](./docs/ai-provider.md)).
|
|
114
114
|
> 11.7: every `<usa-*>` element is audited against one contract — attributes, events, keyboard, lifecycle, reduced motion, errors ([docs/component-contract.md](./docs/component-contract.md), [report](./docs/contract-report.md)).
|
|
115
115
|
> 11.9: preparing for 12.0 — [docs/upgrading-12.md](./docs/upgrading-12.md) · `npx motionary doctor` · `npx usa-codemod-12 --write`.
|
|
116
|
+
> 12.0: one component contract for every `<usa-*>` element, enforced in CI — [docs/component-contract.md](./docs/component-contract.md) · upgrading: [docs/upgrading-12.md](./docs/upgrading-12.md).
|
|
117
|
+
> 12.1: cross-platform 3.0 — `npx motionary export --target css|wxss|arkts` for mini programs and HarmonyOS ArkUI, plus a [cross-platform previewer](https://harrisoncn.github.io/Motionary/showcase/xplat.html) — [docs/cross-platform.md](./docs/cross-platform.md).
|
|
116
118
|
|
|
117
119
|
Animated components need no framework at all:
|
|
118
120
|
|
|
@@ -178,28 +180,28 @@ Motionary ships its own zero-dependency animation runtime — shared ticker, twe
|
|
|
178
180
|
|
|
179
181
|
| Module | Import | CDN (IIFE) | Register | gzip budget |
|
|
180
182
|
|---|---|---|---|---|
|
|
181
|
-
| [Runtime core](docs/runtime/core.md) | `motionary/runtime` | `https://cdn.jsdelivr.net/npm/motionary@
|
|
182
|
-
| [CSS @keyframes & WAAPI keyframes loader](docs/runtime/format-css.md) | `motionary/runtime/format-css` | `https://cdn.jsdelivr.net/npm/motionary@
|
|
183
|
-
| [Motion / Framer keyframe JSON loader](docs/runtime/format-motion.md) | `motionary/runtime/format-motion` | `https://cdn.jsdelivr.net/npm/motionary@
|
|
184
|
-
| [Scroll scenes](docs/runtime/scroll.md) | `motionary/runtime/scroll` | `https://cdn.jsdelivr.net/npm/motionary@
|
|
185
|
-
| [SVG loader: SMIL playback + path morphing](docs/runtime/format-svg.md) | `motionary/runtime/format-svg` | `https://cdn.jsdelivr.net/npm/motionary@
|
|
186
|
-
| [Text splitting](docs/runtime/text.md) | `motionary/runtime/text` | `https://cdn.jsdelivr.net/npm/motionary@
|
|
187
|
-
| [Sprite sheets & image sequences](docs/runtime/format-sprite.md) | `motionary/runtime/format-sprite` | `https://cdn.jsdelivr.net/npm/motionary@
|
|
188
|
-
| [Smooth scrolling](docs/runtime/smooth.md) | `motionary/runtime/smooth` | `https://cdn.jsdelivr.net/npm/motionary@
|
|
189
|
-
| [GIF decoder](docs/runtime/format-gif.md) | `motionary/runtime/format-gif` | `https://cdn.jsdelivr.net/npm/motionary@
|
|
190
|
-
| [APNG loader](docs/runtime/format-apng.md) | `motionary/runtime/format-apng` | `https://cdn.jsdelivr.net/npm/motionary@
|
|
191
|
-
| [Animated WebP loader](docs/runtime/format-webp.md) | `motionary/runtime/format-webp` | `https://cdn.jsdelivr.net/npm/motionary@
|
|
192
|
-
| [WebGL2 scene renderer](docs/runtime/gl.md) | `motionary/runtime/gl` | `https://cdn.jsdelivr.net/npm/motionary@
|
|
193
|
-
| [glTF 2.0 / GLB loader](docs/runtime/format-gltf.md) | `motionary/runtime/format-gltf` | `https://cdn.jsdelivr.net/npm/motionary@
|
|
194
|
-
| [OBJ / MTL loader](docs/runtime/format-obj.md) | `motionary/runtime/format-obj` | `https://cdn.jsdelivr.net/npm/motionary@
|
|
195
|
-
| [Lottie + dotLottie player](docs/runtime/vector.md) | `motionary/runtime/vector` | `https://cdn.jsdelivr.net/npm/motionary@
|
|
183
|
+
| [Runtime core](docs/runtime/core.md) | `motionary/runtime` | `https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime.iife.js` | `use();` | 5.5 KB |
|
|
184
|
+
| [CSS @keyframes & WAAPI keyframes loader](docs/runtime/format-css.md) | `motionary/runtime/format-css` | `https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/format-css.iife.js` | `use(formatCss);` | 2.5 KB |
|
|
185
|
+
| [Motion / Framer keyframe JSON loader](docs/runtime/format-motion.md) | `motionary/runtime/format-motion` | `https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/format-motion.iife.js` | `use(formatMotion);` | 2.5 KB |
|
|
186
|
+
| [Scroll scenes](docs/runtime/scroll.md) | `motionary/runtime/scroll` | `https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/scroll.iife.js` | `use(scroll);` | 4.5 KB |
|
|
187
|
+
| [SVG loader: SMIL playback + path morphing](docs/runtime/format-svg.md) | `motionary/runtime/format-svg` | `https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/format-svg.iife.js` | `use(formatSvg);` | 5.0 KB |
|
|
188
|
+
| [Text splitting](docs/runtime/text.md) | `motionary/runtime/text` | `https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/text.iife.js` | `use(text);` | 2.5 KB |
|
|
189
|
+
| [Sprite sheets & image sequences](docs/runtime/format-sprite.md) | `motionary/runtime/format-sprite` | `https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/format-sprite.iife.js` | `use(formatSprite);` | 3.0 KB |
|
|
190
|
+
| [Smooth scrolling](docs/runtime/smooth.md) | `motionary/runtime/smooth` | `https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/smooth.iife.js` | `use(smooth);` | 3.5 KB |
|
|
191
|
+
| [GIF decoder](docs/runtime/format-gif.md) | `motionary/runtime/format-gif` | `https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/format-gif.iife.js` | `use(formatGif);` | 3.0 KB |
|
|
192
|
+
| [APNG loader](docs/runtime/format-apng.md) | `motionary/runtime/format-apng` | `https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/format-apng.iife.js` | `use(formatApng);` | 3.0 KB |
|
|
193
|
+
| [Animated WebP loader](docs/runtime/format-webp.md) | `motionary/runtime/format-webp` | `https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/format-webp.iife.js` | `use(formatWebp);` | 3.0 KB |
|
|
194
|
+
| [WebGL2 scene renderer](docs/runtime/gl.md) | `motionary/runtime/gl` | `https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/gl.iife.js` | `use(gl);` | 9.0 KB |
|
|
195
|
+
| [glTF 2.0 / GLB loader](docs/runtime/format-gltf.md) | `motionary/runtime/format-gltf` | `https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/format-gltf.iife.js` | `use(formatGltf);` | 6.0 KB |
|
|
196
|
+
| [OBJ / MTL loader](docs/runtime/format-obj.md) | `motionary/runtime/format-obj` | `https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/format-obj.iife.js` | `use(formatObj);` | 3.0 KB |
|
|
197
|
+
| [Lottie + dotLottie player](docs/runtime/vector.md) | `motionary/runtime/vector` | `https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/vector.iife.js` | `use(vector);` | 12.0 KB |
|
|
196
198
|
| [Official Rive runtime](docs/runtime/rive.md) | `@rive-app/canvas` | `https://unpkg.com/@rive-app/canvas@2.44.1/rive.js` | `provideRiveRuntime(() => import('@rive-app/canvas')); // lazy: fetched when the first <usa-rive> mounts` | official runtime (not bundled) |
|
|
197
|
-
| [2D rigid-body physics](docs/runtime/physics.md) | `motionary/runtime/physics` | `https://cdn.jsdelivr.net/npm/motionary@
|
|
198
|
-
| [Scene JSON (motionary-scene@1)](docs/runtime/format-scene.md) | `motionary/runtime/format-scene` | `https://cdn.jsdelivr.net/npm/motionary@
|
|
199
|
-
| [Drag, inertia and snap points](docs/runtime/drag-snap.md) | `motionary/runtime/drag-snap` | `https://cdn.jsdelivr.net/npm/motionary@
|
|
200
|
-
| [glTF animation, skinning and morph targets](docs/runtime/gltf-anim.md) | `motionary/runtime/gltf-anim` | `https://cdn.jsdelivr.net/npm/motionary@
|
|
201
|
-
| [dotLottie themes + state machines](docs/runtime/lottie-state.md) | `motionary/runtime/lottie-state` | `https://cdn.jsdelivr.net/npm/motionary@
|
|
202
|
-
| [glTF decoder hooks (Draco, KTX2)](docs/runtime/gltf-decoders.md) | `motionary/runtime/gltf-decoders` | `https://cdn.jsdelivr.net/npm/motionary@
|
|
199
|
+
| [2D rigid-body physics](docs/runtime/physics.md) | `motionary/runtime/physics` | `https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/physics.iife.js` | `use(physics);` | 10.0 KB |
|
|
200
|
+
| [Scene JSON (motionary-scene@1)](docs/runtime/format-scene.md) | `motionary/runtime/format-scene` | `https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/format-scene.iife.js` | `use(formatScene);` | 3.0 KB |
|
|
201
|
+
| [Drag, inertia and snap points](docs/runtime/drag-snap.md) | `motionary/runtime/drag-snap` | `https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/drag-snap.iife.js` | `use(dragSnap);` | 4.0 KB |
|
|
202
|
+
| [glTF animation, skinning and morph targets](docs/runtime/gltf-anim.md) | `motionary/runtime/gltf-anim` | `https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/gltf-anim.iife.js` | `use(gltfAnim);` | 4.5 KB |
|
|
203
|
+
| [dotLottie themes + state machines](docs/runtime/lottie-state.md) | `motionary/runtime/lottie-state` | `https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/lottie-state.iife.js` | `use(lottieState);` | 3.5 KB |
|
|
204
|
+
| [glTF decoder hooks (Draco, KTX2)](docs/runtime/gltf-decoders.md) | `motionary/runtime/gltf-decoders` | `https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/gltf-decoders.iife.js` | `use(gltfDecoders);` | 3.0 KB |
|
|
203
205
|
| [Official Draco decoder (Google)](docs/runtime/draco3d.md) | `draco3d` | `https://www.gstatic.com/draco/versioned/decoders/1.5.7/draco_decoder.js` | `provideGltfDecoder('draco', () => import('draco3d')); // lazy: fetched when the first Draco-compressed model loads` | official runtime (not bundled) |
|
|
204
206
|
| [Official Basis Universal transcoder (Binomial)](docs/runtime/basis-transcoder.md) | `basis_transcoder.js` | `https://cdn.jsdelivr.net/gh/BinomialLLC/basis_universal@1.16.4/webgl/transcoder/build/basis_transcoder.js` | `provideGltfDecoder('ktx2', () => import('/vendor/basis_transcoder.js').then((m) => m.default || window.BASIS)); // lazy: fetched with the first KTX2 texture` | official runtime (not bundled) |
|
|
205
207
|
|
|
@@ -221,10 +223,10 @@ definePluginCard(); // registers <usa-plugin-card> — after the prerequisites
|
|
|
221
223
|
- **CDN:**
|
|
222
224
|
|
|
223
225
|
```html
|
|
224
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
226
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime.iife.js"></script>
|
|
225
227
|
<!-- then the component bundles -->
|
|
226
|
-
<script src="https://unpkg.com/motionary@
|
|
227
|
-
<script src="https://unpkg.com/motionary@
|
|
228
|
+
<script src="https://unpkg.com/motionary@12/dist/components.umd.js"></script>
|
|
229
|
+
<script src="https://unpkg.com/motionary@12/dist/widgets.umd.js"></script>
|
|
228
230
|
```
|
|
229
231
|
|
|
230
232
|
- **Minimal example:**
|
|
@@ -252,11 +254,11 @@ defineScrollScene(); // registers <usa-scroll-scene> — after the prerequisites
|
|
|
252
254
|
- **CDN:**
|
|
253
255
|
|
|
254
256
|
```html
|
|
255
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
256
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
257
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime.iife.js"></script>
|
|
258
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/scroll.iife.js"></script>
|
|
257
259
|
<!-- then the component bundles -->
|
|
258
|
-
<script src="https://unpkg.com/motionary@
|
|
259
|
-
<script src="https://unpkg.com/motionary@
|
|
260
|
+
<script src="https://unpkg.com/motionary@12/dist/components.umd.js"></script>
|
|
261
|
+
<script src="https://unpkg.com/motionary@12/dist/widgets.umd.js"></script>
|
|
260
262
|
```
|
|
261
263
|
|
|
262
264
|
- **Minimal example:**
|
|
@@ -285,11 +287,11 @@ defineTextSplitter(); // registers <usa-text-splitter> — after the prerequisit
|
|
|
285
287
|
- **CDN:**
|
|
286
288
|
|
|
287
289
|
```html
|
|
288
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
289
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
290
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime.iife.js"></script>
|
|
291
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/text.iife.js"></script>
|
|
290
292
|
<!-- then the component bundles -->
|
|
291
|
-
<script src="https://unpkg.com/motionary@
|
|
292
|
-
<script src="https://unpkg.com/motionary@
|
|
293
|
+
<script src="https://unpkg.com/motionary@12/dist/components.umd.js"></script>
|
|
294
|
+
<script src="https://unpkg.com/motionary@12/dist/widgets.umd.js"></script>
|
|
293
295
|
```
|
|
294
296
|
|
|
295
297
|
- **Minimal example:**
|
|
@@ -315,11 +317,11 @@ defineSmoothScroll(); // registers <usa-smooth-scroll> — after the prerequisit
|
|
|
315
317
|
- **CDN:**
|
|
316
318
|
|
|
317
319
|
```html
|
|
318
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
319
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
320
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime.iife.js"></script>
|
|
321
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/smooth.iife.js"></script>
|
|
320
322
|
<!-- then the component bundles -->
|
|
321
|
-
<script src="https://unpkg.com/motionary@
|
|
322
|
-
<script src="https://unpkg.com/motionary@
|
|
323
|
+
<script src="https://unpkg.com/motionary@12/dist/components.umd.js"></script>
|
|
324
|
+
<script src="https://unpkg.com/motionary@12/dist/widgets.umd.js"></script>
|
|
323
325
|
```
|
|
324
326
|
|
|
325
327
|
- **Minimal example:**
|
|
@@ -348,14 +350,14 @@ defineGlScene(); // registers <usa-gl-scene> — after the prerequisites
|
|
|
348
350
|
- **CDN:**
|
|
349
351
|
|
|
350
352
|
```html
|
|
351
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
352
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
353
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
354
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
355
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
353
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime.iife.js"></script>
|
|
354
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/gl.iife.js"></script>
|
|
355
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/format-gltf.iife.js"></script>
|
|
356
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/format-obj.iife.js"></script>
|
|
357
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/gltf-anim.iife.js"></script>
|
|
356
358
|
<!-- then the component bundles -->
|
|
357
|
-
<script src="https://unpkg.com/motionary@
|
|
358
|
-
<script src="https://unpkg.com/motionary@
|
|
359
|
+
<script src="https://unpkg.com/motionary@12/dist/components.umd.js"></script>
|
|
360
|
+
<script src="https://unpkg.com/motionary@12/dist/widgets.umd.js"></script>
|
|
359
361
|
```
|
|
360
362
|
|
|
361
363
|
- **Minimal example:**
|
|
@@ -381,11 +383,11 @@ defineLottiePlayer(); // registers <usa-lottie-player> — after the prerequisit
|
|
|
381
383
|
- **CDN:**
|
|
382
384
|
|
|
383
385
|
```html
|
|
384
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
385
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
386
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime.iife.js"></script>
|
|
387
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/vector.iife.js"></script>
|
|
386
388
|
<!-- then the component bundles -->
|
|
387
|
-
<script src="https://unpkg.com/motionary@
|
|
388
|
-
<script src="https://unpkg.com/motionary@
|
|
389
|
+
<script src="https://unpkg.com/motionary@12/dist/components.umd.js"></script>
|
|
390
|
+
<script src="https://unpkg.com/motionary@12/dist/widgets.umd.js"></script>
|
|
389
391
|
```
|
|
390
392
|
|
|
391
393
|
- **Minimal example:**
|
|
@@ -412,8 +414,8 @@ defineRive(); // registers <usa-rive> — after the prerequisites
|
|
|
412
414
|
```html
|
|
413
415
|
<script src="https://unpkg.com/@rive-app/canvas@2.44.1/rive.js"></script>
|
|
414
416
|
<!-- then the component bundles -->
|
|
415
|
-
<script src="https://unpkg.com/motionary@
|
|
416
|
-
<script src="https://unpkg.com/motionary@
|
|
417
|
+
<script src="https://unpkg.com/motionary@12/dist/components.umd.js"></script>
|
|
418
|
+
<script src="https://unpkg.com/motionary@12/dist/widgets.umd.js"></script>
|
|
417
419
|
```
|
|
418
420
|
|
|
419
421
|
- **Minimal example:**
|
|
@@ -440,12 +442,12 @@ definePhysicsPlayground(); // registers <usa-physics-playground> — after the p
|
|
|
440
442
|
- **CDN:**
|
|
441
443
|
|
|
442
444
|
```html
|
|
443
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
444
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
445
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
445
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime.iife.js"></script>
|
|
446
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/physics.iife.js"></script>
|
|
447
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/format-scene.iife.js"></script>
|
|
446
448
|
<!-- then the component bundles -->
|
|
447
|
-
<script src="https://unpkg.com/motionary@
|
|
448
|
-
<script src="https://unpkg.com/motionary@
|
|
449
|
+
<script src="https://unpkg.com/motionary@12/dist/components.umd.js"></script>
|
|
450
|
+
<script src="https://unpkg.com/motionary@12/dist/widgets.umd.js"></script>
|
|
449
451
|
```
|
|
450
452
|
|
|
451
453
|
- **Minimal example:**
|
|
@@ -471,11 +473,11 @@ defineSnapCarousel(); // registers <usa-snap-carousel> — after the prerequisit
|
|
|
471
473
|
- **CDN:**
|
|
472
474
|
|
|
473
475
|
```html
|
|
474
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
475
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
476
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime.iife.js"></script>
|
|
477
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/drag-snap.iife.js"></script>
|
|
476
478
|
<!-- then the component bundles -->
|
|
477
|
-
<script src="https://unpkg.com/motionary@
|
|
478
|
-
<script src="https://unpkg.com/motionary@
|
|
479
|
+
<script src="https://unpkg.com/motionary@12/dist/components.umd.js"></script>
|
|
480
|
+
<script src="https://unpkg.com/motionary@12/dist/widgets.umd.js"></script>
|
|
479
481
|
```
|
|
480
482
|
|
|
481
483
|
- **Minimal example:**
|
|
@@ -506,12 +508,12 @@ defineDotLottie(); // registers <usa-dotlottie> — after the prerequisites
|
|
|
506
508
|
- **CDN:**
|
|
507
509
|
|
|
508
510
|
```html
|
|
509
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
510
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
511
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
511
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime.iife.js"></script>
|
|
512
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/vector.iife.js"></script>
|
|
513
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/lottie-state.iife.js"></script>
|
|
512
514
|
<!-- then the component bundles -->
|
|
513
|
-
<script src="https://unpkg.com/motionary@
|
|
514
|
-
<script src="https://unpkg.com/motionary@
|
|
515
|
+
<script src="https://unpkg.com/motionary@12/dist/components.umd.js"></script>
|
|
516
|
+
<script src="https://unpkg.com/motionary@12/dist/widgets.umd.js"></script>
|
|
515
517
|
```
|
|
516
518
|
|
|
517
519
|
- **Minimal example:**
|
|
@@ -542,15 +544,15 @@ defineGlModel(); // registers <usa-gl-model> — after the prerequisites
|
|
|
542
544
|
- **CDN:**
|
|
543
545
|
|
|
544
546
|
```html
|
|
545
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
546
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
547
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
548
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
547
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime.iife.js"></script>
|
|
548
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/gl.iife.js"></script>
|
|
549
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/format-gltf.iife.js"></script>
|
|
550
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/gltf-decoders.iife.js"></script>
|
|
549
551
|
<script src="https://www.gstatic.com/draco/versioned/decoders/1.5.7/draco_decoder.js"></script>
|
|
550
552
|
<script src="https://cdn.jsdelivr.net/gh/BinomialLLC/basis_universal@1.16.4/webgl/transcoder/build/basis_transcoder.js"></script>
|
|
551
553
|
<!-- then the component bundles -->
|
|
552
|
-
<script src="https://unpkg.com/motionary@
|
|
553
|
-
<script src="https://unpkg.com/motionary@
|
|
554
|
+
<script src="https://unpkg.com/motionary@12/dist/components.umd.js"></script>
|
|
555
|
+
<script src="https://unpkg.com/motionary@12/dist/widgets.umd.js"></script>
|
|
554
556
|
```
|
|
555
557
|
|
|
556
558
|
- **Minimal example:**
|
package/README_ja.md
CHANGED
|
@@ -26,12 +26,12 @@ npm i motionary
|
|
|
26
26
|
|
|
27
27
|
```html
|
|
28
28
|
<!-- CDN (no build) -->
|
|
29
|
-
<script src="https://unpkg.com/motionary@
|
|
30
|
-
<script src="https://unpkg.com/motionary@
|
|
31
|
-
<script src="https://unpkg.com/motionary@
|
|
29
|
+
<script src="https://unpkg.com/motionary@12/dist/index.umd.js"></script> <!-- window.ScrollAnimate -->
|
|
30
|
+
<script src="https://unpkg.com/motionary@12/dist/presets-extended.umd.js"></script> <!-- +181 presets -->
|
|
31
|
+
<script src="https://unpkg.com/motionary@12/dist/components.umd.js"></script> <!-- every <usa-*>, window.UsaComponents -->
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
-
jsDelivr も利用できます:`https://cdn.jsdelivr.net/npm/motionary@
|
|
34
|
+
jsDelivr も利用できます:`https://cdn.jsdelivr.net/npm/motionary@12/dist/…`。既存の `use-scroll-animate` と `unpkg.com/use-scroll-animate@6` の URL もそのまま動きます。
|
|
35
35
|
|
|
36
36
|
## 30 秒クイックスタート
|
|
37
37
|
|
package/README_zh.md
CHANGED
|
@@ -26,12 +26,12 @@ npm i motionary
|
|
|
26
26
|
|
|
27
27
|
```html
|
|
28
28
|
<!-- CDN (no build) -->
|
|
29
|
-
<script src="https://unpkg.com/motionary@
|
|
30
|
-
<script src="https://unpkg.com/motionary@
|
|
31
|
-
<script src="https://unpkg.com/motionary@
|
|
29
|
+
<script src="https://unpkg.com/motionary@12/dist/index.umd.js"></script> <!-- window.ScrollAnimate -->
|
|
30
|
+
<script src="https://unpkg.com/motionary@12/dist/presets-extended.umd.js"></script> <!-- +181 presets -->
|
|
31
|
+
<script src="https://unpkg.com/motionary@12/dist/components.umd.js"></script> <!-- every <usa-*>, window.UsaComponents -->
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
-
jsDelivr 同样可用:`https://cdn.jsdelivr.net/npm/motionary@
|
|
34
|
+
jsDelivr 同样可用:`https://cdn.jsdelivr.net/npm/motionary@12/dist/…`。已有的 `use-scroll-animate` 安装与 `unpkg.com/use-scroll-animate@6` 链接继续可用。
|
|
35
35
|
|
|
36
36
|
## 30 秒上手
|
|
37
37
|
|
package/bin/motionary.mjs
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// motionary — command line (11.5).
|
|
3
3
|
// npx motionary doctor [paths…] [--json] scan a project for deprecated import paths (exit 1 when found)
|
|
4
|
+
// npx motionary export --target css|wxss|arkts presets + motion tokens for other platforms (12.1)
|
|
4
5
|
// npx motionary help
|
|
5
6
|
// Old subpaths still work (removed in 13.0) and never warn at runtime; `doctor` is how a project finds them.
|
|
6
7
|
import { readFileSync, readdirSync, statSync, existsSync } from 'node:fs';
|
|
7
8
|
import { join, extname } from 'node:path';
|
|
8
9
|
import { pathToFileURL } from 'node:url';
|
|
10
|
+
import { writeFileSync } from 'node:fs';
|
|
11
|
+
import { exportMotion, TARGETS } from './xplat.mjs';
|
|
9
12
|
import { DEPRECATED_PATHS, REMOVED_IN, LEGACY_EVENTS, EVENTS_REMOVED_IN, findDeprecated } from './public-paths.mjs';
|
|
10
13
|
|
|
11
14
|
const EXT = new Set(['.js', '.mjs', '.cjs', '.jsx', '.ts', '.tsx', '.mts', '.cts', '.vue', '.svelte', '.html', '.astro', '.md', '.mdx', '.json']);
|
|
@@ -32,6 +35,8 @@ const HELP = `motionary <command>
|
|
|
32
35
|
|
|
33
36
|
doctor [paths…] [--json] list deprecated motionary import paths and legacy event names (default: current directory).
|
|
34
37
|
Exit code 1 when any is found. Fix them with: npx usa-codemod-12 --write [paths…]
|
|
38
|
+
export --target css|wxss|arkts [--presets a,b] [--duration token] [--easing token] [--rpx] [--out file]
|
|
39
|
+
export presets + motion tokens for the web, mini programs (WXSS) or HarmonyOS (ArkTS) — docs/cross-platform.md
|
|
35
40
|
help this text
|
|
36
41
|
|
|
37
42
|
Deprecated subpaths (work until ${REMOVED_IN}, no runtime warning):
|
|
@@ -41,8 +46,30 @@ Legacy event names (fire next to the usa:* names since 11.8, removed in ${EVENTS
|
|
|
41
46
|
${Object.entries(LEGACY_EVENTS).map(([a, b]) => ` ${a} → ${b}`).join('\n')}
|
|
42
47
|
`;
|
|
43
48
|
|
|
44
|
-
|
|
49
|
+
const flag = (rest, name) => { const i = rest.indexOf('--' + name); return i >= 0 ? rest[i + 1] : undefined; };
|
|
50
|
+
/** `motionary export`: returns the exit code; writes to --out or stdout. */
|
|
51
|
+
export function runExport(rest, presets, tokens) {
|
|
52
|
+
const target = flag(rest, 'target') || 'css';
|
|
53
|
+
const list = flag(rest, 'presets');
|
|
54
|
+
try {
|
|
55
|
+
const code = exportMotion(target, presets, tokens, { presets: list ? list.split(',').map((s) => s.trim()).filter(Boolean) : undefined, duration: flag(rest, 'duration'), easing: flag(rest, 'easing'), rpx: rest.includes('--rpx') });
|
|
56
|
+
const out = flag(rest, 'out');
|
|
57
|
+
if (out) { writeFileSync(out, code); console.log(`motionary export: ${target} → ${out}`); } else process.stdout.write(code);
|
|
58
|
+
return 0;
|
|
59
|
+
} catch (e) {
|
|
60
|
+
console.error(String(e.message || e) + `\n(targets: ${TARGETS.join(', ')})`);
|
|
61
|
+
return 2;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
const TOKENS = () => { try { return JSON.parse(readFileSync(new URL('../docs/motion.tokens.json', import.meta.url), 'utf8')); } catch { return JSON.parse(readFileSync(join(process.cwd(), 'docs/motion.tokens.json'), 'utf8')); } }; // non-file import.meta.url under jsdom
|
|
65
|
+
|
|
66
|
+
/** env.presets / env.tokens are for tests; the CLI loads PRESETS from the built package (dist/index.js). */
|
|
67
|
+
export function main(argv, env = {}) {
|
|
45
68
|
const [cmd = 'help', ...rest] = argv;
|
|
69
|
+
if (cmd === 'export') {
|
|
70
|
+
if (env.presets) return runExport(rest, env.presets, env.tokens || TOKENS());
|
|
71
|
+
return import('../dist/index.js').then((m) => runExport(rest, m.PRESETS, env.tokens || TOKENS()));
|
|
72
|
+
}
|
|
46
73
|
if (cmd === 'doctor' || cmd === 'check') {
|
|
47
74
|
const found = doctor(rest.filter((a) => !a.startsWith('--')));
|
|
48
75
|
if (rest.includes('--json')) console.log(JSON.stringify({ deprecated: found }, null, 2));
|
|
@@ -57,4 +84,4 @@ export function main(argv) {
|
|
|
57
84
|
return cmd === 'help' || cmd === '--help' || cmd === '-h' ? 0 : 2;
|
|
58
85
|
}
|
|
59
86
|
|
|
60
|
-
if (import.meta.url === pathToFileURL(process.argv[1] || '').href)
|
|
87
|
+
if (import.meta.url === pathToFileURL(process.argv[1] || '').href) Promise.resolve(main(process.argv.slice(2))).then((c) => { process.exitCode = c; });
|
package/bin/xplat.mjs
ADDED
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
// motionary cross-platform export (12.1) — pure functions, no Node or DOM APIs, so the CLI (`npx motionary export`)
|
|
2
|
+
// and the cross-platform previewer (showcase/xplat.html) share one implementation.
|
|
3
|
+
//
|
|
4
|
+
// toCss(presets, tokens, opts) plain CSS: custom properties + @keyframes + .usa-<preset> classes
|
|
5
|
+
// toWxss(presets, tokens, opts) WeChat / Alipay / Douyin mini programs (WXSS / ACSS / TTSS): same CSS subset, rpx-safe
|
|
6
|
+
// toArkTs(presets, tokens, opts) HarmonyOS ArkTS module: duration / curve constants + from/to frames for animateTo()
|
|
7
|
+
//
|
|
8
|
+
// presets: { name: { from: {opacity, transform, filter, clipPath}, to: {...} } } (motionary PRESETS shape)
|
|
9
|
+
// tokens: docs/motion.tokens.json (W3C design-token format) — durations and cubic-bezier easings
|
|
10
|
+
// Reduced motion is part of every target: CSS/WXSS emit `@media (prefers-reduced-motion: reduce)` plus a `.usa-reduce-motion`
|
|
11
|
+
// class for an in-app setting; ArkTS takes a `reduceMotion` flag (usaAnimate(…, reduceMotion) jumps to the end state).
|
|
12
|
+
|
|
13
|
+
export const XPLAT_VERSION = '12.1';
|
|
14
|
+
export const TARGETS = ['css', 'wxss', 'arkts'];
|
|
15
|
+
|
|
16
|
+
/** Flatten motion.tokens.json → { durations: {name: ms}, easings: {name: 'cubic-bezier(…)'|'linear'} }. */
|
|
17
|
+
export function readTokens(tokens) {
|
|
18
|
+
const m = (tokens && tokens.motion) || {};
|
|
19
|
+
const durations = {}, easings = {};
|
|
20
|
+
for (const [k, v] of Object.entries(m.duration || {})) durations[k] = parseFloat(String(v.$value)) || 0;
|
|
21
|
+
for (const [k, v] of Object.entries(m.easing || {})) easings[k] = Array.isArray(v.$value) ? `cubic-bezier(${v.$value.join(', ')})` : String(v.$value);
|
|
22
|
+
return { durations, easings };
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const TF = /([a-zA-Z0-9]+)\(([^)]*)\)/g;
|
|
26
|
+
/** 'translateY(40px) scale(0.8)' → [{fn:'translateY', args:['40px']}, …] */
|
|
27
|
+
export function parseTransform(t) {
|
|
28
|
+
const out = [];
|
|
29
|
+
if (!t) return out;
|
|
30
|
+
for (const m of String(t).matchAll(TF)) out.push({ fn: m[1], args: m[2].split(',').map((s) => s.trim()).filter(Boolean) });
|
|
31
|
+
return out;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const num = (s) => parseFloat(s);
|
|
35
|
+
const unit = (s) => String(s).replace(/^-?[0-9.]+/, '');
|
|
36
|
+
const kebab = (k) => k.replace(/[A-Z]/g, (c) => '-' + c.toLowerCase());
|
|
37
|
+
const safeName = (n) => String(n).replace(/[^a-zA-Z0-9-]/g, '-');
|
|
38
|
+
|
|
39
|
+
/** One frame → ArkTS attribute values. Unsupported parts are reported, never silently dropped. */
|
|
40
|
+
export function arkFrame(f) {
|
|
41
|
+
const o = {}, unsupported = [];
|
|
42
|
+
if (f.opacity != null) o.opacity = Number(f.opacity);
|
|
43
|
+
for (const { fn, args } of parseTransform(f.transform)) {
|
|
44
|
+
const a = args[0];
|
|
45
|
+
const len = (s) => (unit(s) === '%' ? `'${s}'` : num(s));
|
|
46
|
+
if (fn === 'translateX') o.tx = len(a);
|
|
47
|
+
else if (fn === 'translateY') o.ty = len(a);
|
|
48
|
+
else if (fn === 'translate') { o.tx = len(a); if (args[1]) o.ty = len(args[1]); }
|
|
49
|
+
else if (fn === 'scale') { o.sx = num(a); o.sy = args[1] != null ? num(args[1]) : num(a); }
|
|
50
|
+
else if (fn === 'scaleX') o.sx = num(a);
|
|
51
|
+
else if (fn === 'scaleY') o.sy = num(a);
|
|
52
|
+
else if (fn === 'rotate' || fn === 'rotateZ') o.rz = num(a);
|
|
53
|
+
else if (fn === 'rotateX') o.rx = num(a);
|
|
54
|
+
else if (fn === 'rotateY') o.ry = num(a);
|
|
55
|
+
else unsupported.push(fn); // skew*, perspective, matrix*: no direct ArkUI attribute
|
|
56
|
+
}
|
|
57
|
+
for (const { fn, args } of parseTransform(f.filter)) {
|
|
58
|
+
if (fn === 'blur') o.blur = num(args[0]);
|
|
59
|
+
else if (fn === 'brightness') o.brightness = num(args[0]);
|
|
60
|
+
else unsupported.push(fn);
|
|
61
|
+
}
|
|
62
|
+
if (f.clipPath) unsupported.push('clip-path');
|
|
63
|
+
return { frame: o, unsupported };
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/** ArkUI curve expression for a CSS easing string. */
|
|
67
|
+
export function arkCurve(e) {
|
|
68
|
+
const s = String(e || 'ease').trim();
|
|
69
|
+
const named = { linear: 'Curve.Linear', ease: 'Curve.Ease', 'ease-in': 'Curve.EaseIn', 'ease-out': 'Curve.EaseOut', 'ease-in-out': 'Curve.EaseInOut' };
|
|
70
|
+
if (named[s]) return named[s];
|
|
71
|
+
const m = s.match(/^cubic-bezier\(([^)]*)\)$/);
|
|
72
|
+
if (m) return `curves.cubicBezierCurve(${m[1].split(',').map((x) => num(x)).join(', ')})`;
|
|
73
|
+
return 'Curve.Ease';
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
function pick(presets, names) {
|
|
77
|
+
const all = Object.keys(presets || {});
|
|
78
|
+
const list = names && names.length ? names : all;
|
|
79
|
+
const missing = list.filter((n) => !presets[n]);
|
|
80
|
+
if (missing.length) throw new Error(`[motionary] unknown preset(s): ${missing.join(', ')}`);
|
|
81
|
+
return list;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
function cssFrame(f, { rpx = false } = {}) {
|
|
85
|
+
return Object.entries(f)
|
|
86
|
+
.map(([k, v]) => `${kebab(k)}: ${rpx ? String(v).replace(/(-?[0-9.]+)px/g, (_, n) => `${+n * 2}rpx`) : v};`)
|
|
87
|
+
.join(' ');
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
function cssLike(presets, tokens, opts, rpx, header, root) {
|
|
91
|
+
const { durations, easings } = readTokens(tokens);
|
|
92
|
+
const names = pick(presets, opts.presets);
|
|
93
|
+
const dur = opts.duration || 'normal', ease = opts.easing || 'standard';
|
|
94
|
+
const L = [header, root + ' {'];
|
|
95
|
+
for (const [k, v] of Object.entries(durations)) L.push(` --usa-duration-${k}: ${v}ms;`);
|
|
96
|
+
for (const [k, v] of Object.entries(easings)) L.push(` --usa-easing-${k}: ${v};`);
|
|
97
|
+
L.push('}', '');
|
|
98
|
+
for (const n of names) {
|
|
99
|
+
const p = presets[n], c = safeName(n);
|
|
100
|
+
L.push(`@keyframes usa-${c} { from { ${cssFrame(p.from, { rpx })} } to { ${cssFrame(p.to, { rpx })} } }`);
|
|
101
|
+
L.push(`.usa-${c} { animation: usa-${c} var(--usa-duration-${dur}, ${durations[dur] ?? 300}ms) var(--usa-easing-${ease}, ${easings[ease] || 'ease'}) both; }`);
|
|
102
|
+
}
|
|
103
|
+
L.push('', '/* reduced motion: OS setting where the renderer exposes it, or add .usa-reduce-motion from your own setting */');
|
|
104
|
+
const sel = names.map((n) => `.usa-${safeName(n)}`).join(', ');
|
|
105
|
+
L.push(`@media (prefers-reduced-motion: reduce) { ${sel} { animation-duration: 1ms; animation-delay: 0s; } }`);
|
|
106
|
+
L.push(names.map((n) => `.usa-reduce-motion .usa-${safeName(n)}, .usa-reduce-motion.usa-${safeName(n)}`).join(',\n') + ' { animation-duration: 1ms; animation-delay: 0s; }');
|
|
107
|
+
return L.join('\n') + '\n';
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export function toCss(presets, tokens, opts = {}) {
|
|
111
|
+
return cssLike(presets, tokens, opts, false, `/* motionary ${XPLAT_VERSION} — CSS export (npx motionary export --target css) */`, ':root');
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/** Mini programs: WXSS has no :root, so variables sit on `page`; px stay px unless { rpx: true } (1px → 2rpx at 750 design width). */
|
|
115
|
+
export function toWxss(presets, tokens, opts = {}) {
|
|
116
|
+
return cssLike(presets, tokens, opts, !!opts.rpx, `/* motionary ${XPLAT_VERSION} — mini program export (WXSS / ACSS / TTSS). Generated: npx motionary export --target wxss */`, 'page');
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export function toArkTs(presets, tokens, opts = {}) {
|
|
120
|
+
const { durations, easings } = readTokens(tokens);
|
|
121
|
+
const names = pick(presets, opts.presets);
|
|
122
|
+
const L = [
|
|
123
|
+
`// motionary ${XPLAT_VERSION} — HarmonyOS ArkTS export. Generated: npx motionary export --target arkts`,
|
|
124
|
+
`// Usage: this.frame = USA_PRESETS['fade-in-up'].from; usaAnimate(USA_PRESETS['fade-in-up'], (f) => this.frame = f, { reduceMotion })`,
|
|
125
|
+
`import { curves } from '@kit.ArkUI';`,
|
|
126
|
+
'',
|
|
127
|
+
'export interface UsaFrame { opacity?: number; tx?: number | string; ty?: number | string; sx?: number; sy?: number; rx?: number; ry?: number; rz?: number; blur?: number; brightness?: number }',
|
|
128
|
+
'export interface UsaPreset { from: UsaFrame; to: UsaFrame }',
|
|
129
|
+
'export interface UsaAnimateOptions { duration?: string; curve?: string; reduceMotion?: boolean }',
|
|
130
|
+
'',
|
|
131
|
+
`export const USA_DURATION: Record<string, number> = { ${Object.entries(durations).map(([k, v]) => `'${k}': ${v}`).join(', ')} };`,
|
|
132
|
+
`export const USA_CURVE: Record<string, ICurve> = { ${Object.entries(easings).map(([k, v]) => `'${k}': ${arkCurve(v).replace(/^Curve\.(\w+)$/, 'curves.initCurve(Curve.$1)')}`).join(', ')} };`,
|
|
133
|
+
'',
|
|
134
|
+
'export const USA_PRESETS: Record<string, UsaPreset> = {',
|
|
135
|
+
];
|
|
136
|
+
const notes = [];
|
|
137
|
+
for (const n of names) {
|
|
138
|
+
const a = arkFrame(presets[n].from), b = arkFrame(presets[n].to);
|
|
139
|
+
const un = [...new Set([...a.unsupported, ...b.unsupported])];
|
|
140
|
+
if (un.length) notes.push(`${n}: ${un.join(', ')} not mapped (no direct ArkUI attribute)`);
|
|
141
|
+
const fr = (o) => '{ ' + Object.entries(o).map(([k, v]) => `${k}: ${v}`).join(', ') + ' }';
|
|
142
|
+
L.push(` '${n}': { from: ${fr(a.frame)}, to: ${fr(b.frame)} },`);
|
|
143
|
+
}
|
|
144
|
+
L.push('};', '');
|
|
145
|
+
if (notes.length) L.push('// Not mapped:', ...notes.map((s) => '// ' + s), '');
|
|
146
|
+
L.push(
|
|
147
|
+
'/** Animate a preset with animateTo(); reduceMotion = true jumps straight to the end state (honour your own setting). */',
|
|
148
|
+
'export function usaAnimate(p: UsaPreset, apply: (f: UsaFrame) => void, opts: UsaAnimateOptions = {}): void {',
|
|
149
|
+
' apply(p.from);',
|
|
150
|
+
" if (opts.reduceMotion) { apply(p.to); return; }",
|
|
151
|
+
` animateTo({ duration: USA_DURATION[opts.duration ?? '${opts.duration || 'normal'}'], curve: USA_CURVE[opts.curve ?? '${opts.easing || 'standard'}'] }, () => apply(p.to));`,
|
|
152
|
+
'}',
|
|
153
|
+
'',
|
|
154
|
+
);
|
|
155
|
+
return L.join('\n');
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/** Dispatch by target name. */
|
|
159
|
+
export function exportMotion(target, presets, tokens, opts = {}) {
|
|
160
|
+
if (target === 'css') return toCss(presets, tokens, opts);
|
|
161
|
+
if (target === 'wxss' || target === 'miniapp') return toWxss(presets, tokens, opts);
|
|
162
|
+
if (target === 'arkts' || target === 'harmony') return toArkTs(presets, tokens, opts);
|
|
163
|
+
throw new Error(`[motionary] unknown export target "${target}" — use one of: ${TARGETS.join(', ')}`);
|
|
164
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var tween = require('./tween-
|
|
3
|
+
var tween = require('./tween-DjySqWFm.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/
|
|
174
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v12.1.0/dist/chunks/anim-image-D_WUCgp4.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as Playable } from './tween-
|
|
1
|
+
import { P as Playable } from './tween-DhlovBgd.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/
|
|
166
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v12.1.0/dist/chunks/anim-image-KyCg37rY.js.map
|