motionary 14.0.0 → 14.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +107 -1
- package/README.md +10 -4
- package/README_ja.md +1 -1
- package/README_zh.md +1 -1
- package/bin/motionary.mjs +63 -0
- package/bin/public-paths.mjs +4 -0
- package/dist/chunks/{anim-image-DodXfc61.cjs → anim-image-CHdhCFU7.cjs} +2 -2
- package/dist/chunks/{anim-image-ClUQGh0E.js → anim-image-DkioZN9X.js} +2 -2
- package/dist/chunks/audio-D0LwPShE.cjs +1 -1
- package/dist/chunks/{audio-CfvQzwt5.js → audio-D7mfQAUI.js} +4 -4
- package/dist/chunks/badge-wall-CITexuW7.cjs +1 -1
- package/dist/chunks/{badge-wall-Bp5kUwTU.js → badge-wall-TxNk_TTE.js} +2 -2
- package/dist/chunks/base-BvH4nAcv.cjs +1 -1
- package/dist/chunks/{base-D0sRwVz1.js → base-ByyAdGqz.js} +2 -2
- package/dist/chunks/{bg-generator-CbdOCgcF.js → bg-generator-BJ0Obz4R.js} +2 -2
- package/dist/chunks/bg-generator-CML8tPN8.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-CY1l_hAW.js → builtins-CpH2mTyp.js} +3 -3
- package/dist/chunks/builtins-DweCp29Z.cjs +1 -1
- package/dist/chunks/{carousel-Drr0G4y7.js → carousel-Bdl2DpWW.js} +2 -2
- package/dist/chunks/carousel-DU3rHTq0.cjs +1 -1
- package/dist/chunks/cart-drawer-CkFMKMhx.cjs +1 -1
- package/dist/chunks/{cart-drawer-BrBfdhOd.js → cart-drawer-S3X_-dcv.js} +2 -2
- package/dist/chunks/{code-export-qPPmVqgS.js → code-export-DwrlLHA5.js} +2 -2
- package/dist/chunks/code-export-PdGSl9WE.cjs +1 -1
- package/dist/chunks/color-picker-B_xWVH8H.cjs +1 -1
- package/dist/chunks/{color-picker-D4-raPTo.js → color-picker-C2PH87yD.js} +2 -2
- package/dist/chunks/{command-palette-YgbhCzi2.js → command-palette-7lHRJzV1.js} +2 -2
- package/dist/chunks/command-palette-ISetAeX1.cjs +1 -1
- package/dist/chunks/{core-BSqTp8Bt.js → core-BPPcJVGQ.js} +2 -2
- package/dist/chunks/core-BjcOCpJt.cjs +1 -1
- package/dist/chunks/{core-LmWkFGlE.js → core-CfuLPjGf.js} +2 -2
- package/dist/chunks/core-DbAYRKnS.cjs +1 -1
- package/dist/chunks/core-Dj6iomdc.js +1 -1
- package/dist/chunks/core-DjjKLmZ6.cjs +1 -1
- package/dist/chunks/{countdown-CE26Bi78.js → countdown-C4M4Ymbd.js} +2 -2
- package/dist/chunks/countdown-RQViryt7.cjs +1 -1
- package/dist/chunks/date-picker-BgApzPNn.cjs +1 -1
- package/dist/chunks/{date-picker-a677RmYE.js → date-picker-D1FhYimW.js} +2 -2
- package/dist/chunks/ease-HwYZnZat.cjs +1 -1
- package/dist/chunks/ease-XN8_0sXu.js +1 -1
- package/dist/chunks/{equalizer-2GzcV-8j.js → equalizer-Dxl2dMWN.js} +2 -2
- package/dist/chunks/equalizer-_eD_ZdCl.cjs +1 -1
- package/dist/chunks/festival-banner-Bs18K0MJ.cjs +1 -1
- package/dist/chunks/{festival-banner-Cfbi5oks.js → festival-banner-RkIBAUue.js} +2 -2
- package/dist/chunks/{field-B3_pZbPt.js → field-B_JKBZ66.js} +2 -2
- package/dist/chunks/field-Dwq8-CLN.cjs +1 -1
- package/dist/chunks/{format-B2XGhlqH.js → format-ClNijrhe.js} +2 -2
- package/dist/chunks/format-DrRrPbjl.cjs +1 -1
- package/dist/chunks/fx-DaVuB89C.cjs +1 -1
- package/dist/chunks/{fx-szWxgCx0.js → fx-lkOk6ZLK.js} +2 -2
- package/dist/chunks/generative-BKoxWOSP.cjs +1 -1
- package/dist/chunks/{generative-D1QtbFNP.js → generative-CbMIaqxn.js} +2 -2
- package/dist/chunks/{gl-scene-C2-f72GW.js → gl-scene-6k5slLJ1.js} +3 -3
- package/dist/chunks/{gl-scene-CVQgoCo9.cjs → gl-scene-Btp6k9ym.cjs} +2 -2
- package/dist/chunks/globe-DA0jyb6s.cjs +1 -1
- package/dist/chunks/{globe-C2UzKQJI.js → globe-ejBBHY6v.js} +2 -2
- package/dist/chunks/{gpu-D7wkP6SZ.js → gpu-C0vrwBcn.js} +4 -4
- package/dist/chunks/gpu-C2C6iBQC.cjs +1 -1
- package/dist/chunks/{gpu-particles-Dw2HV4Me.js → gpu-particles-BvUfEndq.js} +2 -2
- package/dist/chunks/gpu-particles-wEO_rds1.cjs +1 -1
- package/dist/chunks/{index-B65QsFQk.cjs → index-C9_FEsfz.cjs} +3 -2
- package/dist/chunks/{index-DSF6GbSF.js → index-gwb-TO6r.js} +8 -7
- 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-BBxaMajc.js → keyframes-BikOcXxh.js} +2 -2
- package/dist/chunks/{keyframes-DJtDafnp.cjs → keyframes-Dqk1X3Q5.cjs} +2 -2
- package/dist/chunks/{leaderboard-odMGN-i2.js → leaderboard-BmACkMks.js} +2 -2
- package/dist/chunks/leaderboard-DvSSQ8o3.cjs +1 -1
- package/dist/chunks/{location-card-B7LwfBVv.js → location-card-9SyNFFc7.js} +2 -2
- package/dist/chunks/location-card-DSPTApUe.cjs +1 -1
- package/dist/chunks/lottie-icon-BoxkukMd.cjs +1 -1
- package/dist/chunks/{lottie-icon-BsW6EvKG.js → lottie-icon-CGG_tfjT.js} +2 -2
- package/dist/chunks/{lottie-player-Bl1gLrZT.js → lottie-player-CwD15LsB.js} +3 -3
- package/dist/chunks/{lottie-player-BCoUFOkM.cjs → lottie-player-DbEnSefT.cjs} +2 -2
- package/dist/chunks/lyrics-CRB7dA1j.cjs +1 -1
- package/dist/chunks/{lyrics-CfAOpxkR.js → lyrics-D7iF9I0S.js} +2 -2
- package/dist/chunks/{manifest-mzYIR0fB.js → manifest-i1lnR0qJ.js} +2 -2
- package/dist/chunks/manifest-xr3WET80.cjs +1 -1
- package/dist/chunks/menu-CZ1zHTT9.cjs +1 -1
- package/dist/chunks/{menu-Bwy7HGGu.js → menu-DrQfp6bJ.js} +2 -2
- package/dist/chunks/menu-toggle-DGXN4VsN.cjs +1 -1
- package/dist/chunks/{menu-toggle-9o38aUlM.js → menu-toggle-DI8fAtZ0.js} +2 -2
- package/dist/chunks/nav-morph-C4rD3wrU.cjs +1 -1
- package/dist/chunks/{nav-morph-CmqTSjWr.js → nav-morph-CBZ5HXQo.js} +2 -2
- package/dist/chunks/{otp-DlwGTaHQ.js → otp-C1l7yq3_.js} +2 -2
- package/dist/chunks/otp-DUyEWYMi.cjs +1 -1
- package/dist/chunks/pagination-DHmYZZU9.cjs +1 -1
- package/dist/chunks/{pagination-9Kv3ngXX.js → pagination-JG7Hw-q-.js} +2 -2
- package/dist/chunks/{physics-playground-BOwru4ar.cjs → physics-playground-CxN5MmrO.cjs} +2 -2
- package/dist/chunks/{physics-playground-DsnhVbVr.js → physics-playground-D4pkMRhy.js} +3 -3
- package/dist/chunks/{play-BdevnnRU.js → play-CkjaaN6e.js} +2 -2
- package/dist/chunks/play-DCeKlDqE.cjs +1 -1
- package/dist/chunks/player-BJPVdtzo.cjs +1 -1
- package/dist/chunks/{player-D18aHq0n.js → player-DkhZKVZX.js} +4 -4
- package/dist/chunks/{player-core-DR1WR-41.js → player-core-BGIt5Gzl.js} +4 -4
- package/dist/chunks/player-core-BTFa6_IO.cjs +1 -1
- package/dist/chunks/{presence-DQsKeMSf.js → presence-BQ2mRjpt.js} +2 -2
- package/dist/chunks/presence-DAthlALi.cjs +1 -1
- package/dist/chunks/presets-BYBVJVeP.js +1 -1
- package/dist/chunks/presets-CUHys3sK.cjs +1 -1
- package/dist/chunks/{prize-wheel-D2MlXZz3.js → prize-wheel-B5YpUMgr.js} +2 -2
- package/dist/chunks/prize-wheel-emDopI5c.cjs +1 -1
- package/dist/chunks/{product-gallery-BznJaf2u.js → product-gallery-BpJEGKIw.js} +2 -2
- package/dist/chunks/product-gallery-CKtSVhZk.cjs +1 -1
- package/dist/chunks/progress-ring-C75O4MUi.cjs +1 -1
- package/dist/chunks/{progress-ring-DTbpqpsJ.js → progress-ring-CRSbrt2I.js} +2 -2
- package/dist/chunks/{prop-panel-DTDO4kVW.js → prop-panel-D4DEkdXL.js} +2 -2
- package/dist/chunks/prop-panel-DFqga6H5.cjs +1 -1
- package/dist/chunks/radar-D-bZRrgs.cjs +1 -1
- package/dist/chunks/{radar-lUFsshFe.js → radar-DE_QcCUX.js} +2 -2
- package/dist/chunks/reactions-BL2iO8iy.cjs +1 -1
- package/dist/chunks/{reactions-zFqABIRz.js → reactions-BV57Pw0R.js} +2 -2
- package/dist/chunks/{registry-DwxAf29L.js → registry-BCFobMY2.js} +2 -2
- package/dist/chunks/registry-CibnX7Ui.cjs +1 -1
- package/dist/chunks/{registry-ChLWwIC4.cjs → registry-Cy7Nk97K.cjs} +2 -2
- package/dist/chunks/{registry-CE5_Mo_p.js → registry-RLD_spxR.js} +2 -2
- package/dist/chunks/{retro-button-CS_yN0sA.js → retro-button-CrbkhjHv.js} +2 -2
- package/dist/chunks/retro-button-DrrBZ6w8.cjs +1 -1
- package/dist/chunks/{rive-BTqu1owb.js → rive-Bt5R5BjT.js} +2 -2
- package/dist/chunks/rive-D6X4J0Mi.cjs +1 -1
- package/dist/chunks/{runtime-link-Bg6c5x7w.js → runtime-link-3fqOLtwH.js} +2 -2
- package/dist/chunks/{runtime-link-ykoWOFHQ.cjs → runtime-link-BWMZB3tC.cjs} +2 -2
- package/dist/chunks/{scene-DWNb4Lb1.js → scene-Bc03O1V2.js} +2 -2
- package/dist/chunks/scene-C4h75wjo.cjs +1 -1
- package/dist/chunks/scroll-driven-CQbwzCdn.cjs +1 -1
- package/dist/chunks/scroll-driven-LghshrWq.js +1 -1
- package/dist/chunks/{scroll-scene-DQBNf7Q4.js → scroll-scene-CmvOpk6I.js} +4 -4
- package/dist/chunks/{scroll-scene-C_d8SE9e.cjs → scroll-scene-Xk4OKyWQ.cjs} +3 -3
- package/dist/chunks/{segmented-Dn8MH47H.js → segmented-Bqxe4qRo.js} +2 -2
- package/dist/chunks/segmented-CpB4mKIn.cjs +1 -1
- package/dist/chunks/shader-backdrop-BodjXMhw.cjs +1 -1
- package/dist/chunks/{shader-backdrop-Cnq8-zUi.js → shader-backdrop-C49tKiU1.js} +2 -2
- package/dist/chunks/shared-Bf72wLyt.cjs +1 -1
- package/dist/chunks/shared-CkKHWrtJ.js +1 -1
- package/dist/chunks/shared-jkgRH-Hx.cjs +1 -1
- package/dist/chunks/shared-o9CtwHmi.js +1 -1
- package/dist/chunks/sheet-B38ylIEW.cjs +1 -1
- package/dist/chunks/{sheet-CeSuvE2R.js → sheet-DZXot7SV.js} +2 -2
- package/dist/chunks/sign-DvZ1jHxE.js +1 -1
- package/dist/chunks/sign-RAkQIWrM.cjs +1 -1
- package/dist/chunks/{skeleton-reveal-WR9NVMyM.js → skeleton-reveal-CMqfJYM2.js} +2 -2
- package/dist/chunks/skeleton-reveal-Dsd3Wp0n.cjs +1 -1
- package/dist/chunks/{sparkline-4vqobz_N.js → sparkline-3fxOzufX.js} +2 -2
- package/dist/chunks/sparkline-DeKhZpVo.cjs +1 -1
- package/dist/chunks/{spring-CpnuPym2.js → spring-CLwlIQHm.js} +2 -2
- package/dist/chunks/spring-XEl_diDJ.cjs +1 -1
- package/dist/chunks/stagger-B9sKPwQB.js +1 -1
- package/dist/chunks/stagger-DFKwqOQG.cjs +1 -1
- package/dist/chunks/{suggestion-chips-CuuKEDNG.js → suggestion-chips-BwKPsDra.js} +2 -2
- package/dist/chunks/suggestion-chips-CAcbFTr4.cjs +1 -1
- package/dist/chunks/{switch-WErIYZJD.js → switch-CMtM5gqP.js} +2 -2
- package/dist/chunks/switch-DiTlApGd.cjs +1 -1
- package/dist/chunks/tab-bar-BBlVAqbq.cjs +1 -1
- package/dist/chunks/{tab-bar-D01Yx5Qz.js → tab-bar-COPkxGY6.js} +2 -2
- package/dist/chunks/{ticker-DxG5WlGA.js → ticker-DQIpLv48.js} +2 -2
- package/dist/chunks/{ticker-CdX1xnUl.cjs → ticker-crNxbg2p.cjs} +2 -2
- package/dist/chunks/{tip-BsX2--FP.js → tip-D4DdDz83.js} +2 -2
- package/dist/chunks/tip-VGS3qAUm.cjs +1 -1
- package/dist/chunks/{toast-stack-Cdu0GOkt.js → toast-stack-Cx1aTwf5.js} +3 -3
- package/dist/chunks/toast-stack-DprisNp_.cjs +1 -1
- package/dist/chunks/{tween-CB3CoBmZ.js → tween-Bx-UetkK.js} +2 -2
- package/dist/chunks/{tween-BEox7vZY.cjs → tween-CnVJt41b.cjs} +2 -2
- package/dist/chunks/upload-progress-CEAWkP-p.cjs +1 -1
- package/dist/chunks/{upload-progress-DguzIPm0.js → upload-progress-Px_Zdd9c.js} +2 -2
- package/dist/chunks/{variants-Dvcgx0pd.js → variants-BV9wFxiP.js} +2 -2
- package/dist/chunks/variants-BtqEJuki.cjs +1 -1
- package/dist/chunks/viewport-BAXHhZLV.js +1 -1
- package/dist/chunks/viewport-EFYGqMNa.cjs +1 -1
- package/dist/chunks/voice-button-9UauxvT9.cjs +1 -1
- package/dist/chunks/{voice-button-DBAXRVMZ.js → voice-button-CmbZldLT.js} +2 -2
- package/dist/chunks/weather-card-4Eg6e43D.cjs +1 -1
- package/dist/chunks/{weather-card-DQ9HUFd4.js → weather-card-BdvgvAxQ.js} +2 -2
- package/dist/chunks/{worker-canvas-BZKnSNtg.js → worker-canvas-BLXaLvtq.js} +2 -2
- package/dist/chunks/worker-canvas-BMBXAFWp.cjs +1 -1
- package/dist/chunks/{xp-bar-CxjWJQFS.js → xp-bar-CjOalkPm.js} +2 -2
- package/dist/chunks/xp-bar-DkWfCTfB.cjs +1 -1
- package/dist/components/a11y.cjs +1 -1
- package/dist/components/a11y.js +3 -3
- package/dist/components/ai.cjs +1 -1
- package/dist/components/ai.js +1 -1
- package/dist/components/angular.cjs +1 -1
- package/dist/components/angular.js +1 -1
- package/dist/components/background.cjs +1 -1
- package/dist/components/background.js +3 -3
- package/dist/components/bridge.cjs +1 -1
- package/dist/components/bridge.js +2 -2
- package/dist/components/cards.cjs +1 -1
- package/dist/components/cards.js +3 -3
- package/dist/components/click.cjs +1 -1
- package/dist/components/click.js +4 -4
- package/dist/components/compat-v13.cjs +1 -1
- package/dist/components/compat-v13.js +3 -3
- 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 +4 -4
- package/dist/components/design.cjs +1 -1
- package/dist/components/design.js +2 -2
- package/dist/components/dotlottie.cjs +3 -3
- package/dist/components/dotlottie.js +4 -4
- package/dist/components/dsl.cjs +1 -1
- package/dist/components/dsl.js +2 -2
- package/dist/components/effects.cjs +1 -1
- package/dist/components/effects.js +10 -10
- package/dist/components/engine.cjs +1 -1
- package/dist/components/engine.js +3 -3
- package/dist/components/feedback.cjs +1 -1
- package/dist/components/feedback.js +2 -2
- package/dist/components/fx-3d.cjs +1 -1
- package/dist/components/fx-3d.js +3 -3
- package/dist/components/fx-ai.cjs +1 -1
- package/dist/components/fx-ai.js +2 -2
- package/dist/components/fx-chart.cjs +1 -1
- package/dist/components/fx-chart.js +2 -2
- package/dist/components/fx-cinema.cjs +1 -1
- package/dist/components/fx-cinema.js +2 -2
- package/dist/components/fx-cyber.cjs +1 -1
- package/dist/components/fx-cyber.js +2 -2
- package/dist/components/fx-festival.cjs +1 -1
- package/dist/components/fx-festival.js +2 -2
- package/dist/components/fx-focus.cjs +1 -1
- package/dist/components/fx-focus.js +2 -2
- package/dist/components/fx-form.cjs +1 -1
- package/dist/components/fx-form.js +2 -2
- package/dist/components/fx-game.cjs +1 -1
- package/dist/components/fx-game.js +2 -2
- package/dist/components/fx-genart.cjs +1 -1
- package/dist/components/fx-genart.js +2 -2
- package/dist/components/fx-geo.cjs +1 -1
- package/dist/components/fx-geo.js +2 -2
- package/dist/components/fx-gesture.cjs +1 -1
- package/dist/components/fx-gesture.js +2 -2
- package/dist/components/fx-gpu.cjs +1 -1
- package/dist/components/fx-gpu.js +4 -4
- package/dist/components/fx-light.cjs +1 -1
- package/dist/components/fx-light.js +4 -4
- package/dist/components/fx-lottie.cjs +1 -1
- package/dist/components/fx-lottie.js +2 -2
- package/dist/components/fx-morph.cjs +1 -1
- package/dist/components/fx-morph.js +2 -2
- package/dist/components/fx-music.cjs +1 -1
- package/dist/components/fx-music.js +5 -5
- package/dist/components/fx-organic.cjs +1 -1
- package/dist/components/fx-organic.js +2 -2
- package/dist/components/fx-paper.cjs +1 -1
- package/dist/components/fx-paper.js +2 -2
- package/dist/components/fx-perf.cjs +1 -1
- package/dist/components/fx-perf.js +3 -3
- package/dist/components/fx-physics.cjs +1 -1
- package/dist/components/fx-physics.js +4 -4
- package/dist/components/fx-retro.cjs +1 -1
- package/dist/components/fx-retro.js +2 -2
- package/dist/components/fx-safe.cjs +1 -1
- package/dist/components/fx-safe.js +3 -3
- package/dist/components/fx-shop.cjs +1 -1
- package/dist/components/fx-shop.js +2 -2
- package/dist/components/fx-social.cjs +1 -1
- package/dist/components/fx-social.js +2 -2
- package/dist/components/fx-spatial.cjs +1 -1
- package/dist/components/fx-spatial.js +2 -2
- package/dist/components/fx-surface.cjs +1 -1
- package/dist/components/fx-surface.js +2 -2
- package/dist/components/fx-text.cjs +1 -1
- package/dist/components/fx-text.js +3 -3
- package/dist/components/fx-transitions.cjs +1 -1
- package/dist/components/fx-transitions.js +4 -4
- package/dist/components/fx-video.cjs +1 -1
- package/dist/components/fx-video.js +3 -3
- package/dist/components/fx-weather.cjs +1 -1
- package/dist/components/fx-weather.js +3 -3
- package/dist/components/fx.cjs +1 -1
- package/dist/components/fx.js +5 -5
- package/dist/components/fx2.cjs +1 -1
- package/dist/components/fx2.js +5 -5
- package/dist/components/gesture.cjs +1 -1
- package/dist/components/gesture.js +5 -5
- package/dist/components/gl-model.cjs +3 -3
- package/dist/components/gl-model.js +4 -4
- package/dist/components/gl-pool.cjs +1 -1
- package/dist/components/gl-pool.js +1 -1
- package/dist/components/interaction.cjs +1 -1
- package/dist/components/interaction.js +2 -2
- package/dist/components/jsx.cjs +1 -1
- package/dist/components/jsx.js +1 -1
- package/dist/components/layout.cjs +1 -1
- package/dist/components/layout.js +2 -2
- package/dist/components/lazy.cjs +1 -1
- package/dist/components/lazy.js +1 -1
- package/dist/components/lite.cjs +1 -1
- package/dist/components/lite.js +1 -1
- package/dist/components/marketplace.cjs +1 -1
- package/dist/components/marketplace.js +3 -3
- package/dist/components/motion-layout.cjs +566 -0
- package/dist/components/motion-layout.d.cts +209 -0
- package/dist/components/motion-layout.d.ts +209 -0
- package/dist/components/motion-layout.js +543 -0
- package/dist/components/motion-scene.cjs +2 -2
- package/dist/components/motion-scene.js +3 -3
- package/dist/components/motion-tokens.cjs +837 -0
- package/dist/components/motion-tokens.d.cts +242 -0
- package/dist/components/motion-tokens.d.ts +242 -0
- package/dist/components/motion-tokens.js +811 -0
- package/dist/components/motion.cjs +2 -2
- package/dist/components/motion.js +5 -5
- package/dist/components/native.cjs +1 -1
- package/dist/components/native.js +1 -1
- package/dist/components/offscreen.cjs +1 -1
- package/dist/components/offscreen.js +3 -3
- package/dist/components/packs.cjs +1 -1
- package/dist/components/packs.js +2 -2
- package/dist/components/page.cjs +1 -1
- package/dist/components/page.js +4 -4
- package/dist/components/perf-tasks.cjs +1 -1
- package/dist/components/perf-tasks.js +2 -2
- package/dist/components/perf.cjs +1 -1
- package/dist/components/perf.js +3 -3
- package/dist/components/physics.cjs +1 -1
- package/dist/components/physics.js +4 -4
- package/dist/components/plugins.cjs +1 -1
- 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 +2 -2
- package/dist/components/scene-v2.cjs +1 -1
- package/dist/components/scene-v2.js +3 -3
- package/dist/components/snap-carousel.cjs +2 -2
- 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 +1 -1
- package/dist/components/svg.js +2 -2
- package/dist/components/text.cjs +1 -1
- package/dist/components/text.js +3 -3
- package/dist/components/timeline-editor.cjs +1 -1
- package/dist/components/timeline-editor.js +5 -5
- package/dist/components/timeline.cjs +1 -1
- package/dist/components/timeline.js +4 -4
- package/dist/components/tokens.cjs +1 -1
- package/dist/components/tokens.js +1 -1
- package/dist/components/transitions.cjs +1 -1
- package/dist/components/transitions.js +2 -2
- package/dist/components/ui.cjs +1 -1
- package/dist/components/ui.js +5 -5
- 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 +2 -2
- package/dist/components/widgets.cjs +5 -5
- package/dist/components/widgets.js +101 -101
- package/dist/components.cjs +1 -1
- package/dist/components.js +11 -11
- package/dist/components.umd.js +1 -1
- package/dist/effects/achievement-unlock.cjs +1 -1
- package/dist/effects/achievement-unlock.js +2 -2
- package/dist/effects/aurora-veil.cjs +1 -1
- package/dist/effects/aurora-veil.js +2 -2
- package/dist/effects/badge-pop.cjs +1 -1
- package/dist/effects/badge-pop.js +2 -2
- package/dist/effects/bars-grow.cjs +1 -1
- package/dist/effects/bars-grow.js +2 -2
- package/dist/effects/beat-bounce.cjs +1 -1
- package/dist/effects/beat-bounce.js +2 -2
- package/dist/effects/blob-button.cjs +1 -1
- package/dist/effects/blob-button.js +2 -2
- package/dist/effects/bloom.cjs +1 -1
- package/dist/effects/bloom.js +2 -2
- package/dist/effects/breathe.cjs +1 -1
- package/dist/effects/breathe.js +2 -2
- package/dist/effects/brushed-metal.cjs +1 -1
- package/dist/effects/brushed-metal.js +2 -2
- package/dist/effects/camera-dolly.cjs +1 -1
- package/dist/effects/camera-dolly.js +2 -2
- package/dist/effects/card-flip-3d.cjs +1 -1
- package/dist/effects/card-flip-3d.js +2 -2
- package/dist/effects/chest-open.cjs +1 -1
- package/dist/effects/chest-open.js +2 -2
- package/dist/effects/cloth.cjs +1 -1
- package/dist/effects/cloth.js +2 -2
- package/dist/effects/coin-burst.cjs +1 -1
- package/dist/effects/coin-burst.js +2 -2
- package/dist/effects/color-pulse.cjs +1 -1
- package/dist/effects/color-pulse.js +2 -2
- package/dist/effects/crt-power.cjs +1 -1
- package/dist/effects/crt-power.js +2 -2
- package/dist/effects/crumple.cjs +1 -1
- package/dist/effects/crumple.js +2 -2
- package/dist/effects/data-decode.cjs +1 -1
- package/dist/effects/data-decode.js +2 -2
- package/dist/effects/day-cycle.cjs +1 -1
- package/dist/effects/day-cycle.js +2 -2
- package/dist/effects/depth-in.cjs +1 -1
- package/dist/effects/depth-in.js +2 -2
- package/dist/effects/depth-pop.cjs +1 -1
- package/dist/effects/depth-pop.js +2 -2
- package/dist/effects/depth-stack.cjs +1 -1
- package/dist/effects/depth-stack.js +2 -2
- package/dist/effects/dolly-in.cjs +1 -1
- package/dist/effects/dolly-in.js +2 -2
- package/dist/effects/dots-pop.cjs +1 -1
- package/dist/effects/dots-pop.js +2 -2
- package/dist/effects/field-shake.cjs +1 -1
- package/dist/effects/field-shake.js +2 -2
- package/dist/effects/field-success.cjs +1 -1
- package/dist/effects/field-success.js +2 -2
- package/dist/effects/film-burn.cjs +1 -1
- package/dist/effects/film-burn.js +2 -2
- package/dist/effects/fire.cjs +1 -1
- package/dist/effects/fire.js +3 -3
- package/dist/effects/fireflies.cjs +1 -1
- package/dist/effects/fireflies.js +3 -3
- package/dist/effects/firework-burst.cjs +1 -1
- package/dist/effects/firework-burst.js +2 -2
- package/dist/effects/flip-chars.cjs +1 -1
- package/dist/effects/flip-chars.js +2 -2
- package/dist/effects/fluid.cjs +1 -1
- package/dist/effects/fluid.js +3 -3
- package/dist/effects/fly-to-cart.cjs +1 -1
- package/dist/effects/fly-to-cart.js +2 -2
- package/dist/effects/focus-draw.cjs +1 -1
- package/dist/effects/focus-draw.js +2 -2
- package/dist/effects/focus-glow.cjs +1 -1
- package/dist/effects/focus-glow.js +2 -2
- package/dist/effects/fog.cjs +1 -1
- package/dist/effects/fog.js +2 -2
- package/dist/effects/font-breathe.cjs +1 -1
- package/dist/effects/font-breathe.js +2 -2
- package/dist/effects/form-cascade.cjs +1 -1
- package/dist/effects/form-cascade.js +2 -2
- package/dist/effects/gen-skeleton.cjs +1 -1
- package/dist/effects/gen-skeleton.js +2 -2
- package/dist/effects/glass-frost.cjs +1 -1
- package/dist/effects/glass-frost.js +2 -2
- package/dist/effects/glitch-text.cjs +1 -1
- package/dist/effects/glitch-text.js +2 -2
- package/dist/effects/globe-spin.cjs +1 -1
- package/dist/effects/globe-spin.js +2 -2
- package/dist/effects/god-rays.cjs +1 -1
- package/dist/effects/god-rays.js +2 -2
- package/dist/effects/gpu-lift.cjs +1 -1
- package/dist/effects/gpu-lift.js +2 -2
- package/dist/effects/grain-flicker.cjs +1 -1
- package/dist/effects/grain-flicker.js +2 -2
- package/dist/effects/halftone-in.cjs +1 -1
- package/dist/effects/halftone-in.js +2 -2
- package/dist/effects/highlight-sweep.cjs +1 -1
- package/dist/effects/highlight-sweep.js +2 -2
- package/dist/effects/hologram.cjs +1 -1
- package/dist/effects/hologram.js +2 -2
- package/dist/effects/hud-frame.cjs +1 -1
- package/dist/effects/hud-frame.js +2 -2
- package/dist/effects/icon-pop.cjs +1 -1
- package/dist/effects/icon-pop.js +2 -2
- package/dist/effects/icon-swap.cjs +1 -1
- package/dist/effects/icon-swap.js +2 -2
- package/dist/effects/idle-reveal.cjs +1 -1
- package/dist/effects/idle-reveal.js +2 -2
- package/dist/effects/ink.cjs +1 -1
- package/dist/effects/ink.js +3 -3
- package/dist/effects/jump-cut.cjs +1 -1
- package/dist/effects/jump-cut.js +2 -2
- package/dist/effects/kaleido.cjs +1 -1
- package/dist/effects/kaleido.js +2 -2
- package/dist/effects/label-float.cjs +1 -1
- package/dist/effects/label-float.js +2 -2
- package/dist/effects/lantern-rise.cjs +1 -1
- package/dist/effects/lantern-rise.js +2 -2
- package/dist/effects/leaves.cjs +1 -1
- package/dist/effects/leaves.js +3 -3
- package/dist/effects/letterbox.cjs +1 -1
- package/dist/effects/letterbox.js +2 -2
- package/dist/effects/level-up.cjs +1 -1
- package/dist/effects/level-up.js +2 -2
- package/dist/effects/light-follow.cjs +1 -1
- package/dist/effects/light-follow.js +2 -2
- package/dist/effects/lightning.cjs +1 -1
- package/dist/effects/lightning.js +2 -2
- package/dist/effects/line-draw.cjs +1 -1
- package/dist/effects/line-draw.js +2 -2
- package/dist/effects/liquid-text.cjs +1 -1
- package/dist/effects/liquid-text.js +2 -2
- package/dist/effects/liquid-wipe.cjs +1 -1
- package/dist/effects/liquid-wipe.js +2 -2
- package/dist/effects/lottie-play.cjs +1 -1
- package/dist/effects/lottie-play.js +2 -2
- package/dist/effects/magnet.cjs +1 -1
- package/dist/effects/magnet.js +2 -2
- package/dist/effects/marching-ants.cjs +1 -1
- package/dist/effects/marching-ants.js +2 -2
- package/dist/effects/marker-pulse.cjs +1 -1
- package/dist/effects/marker-pulse.js +2 -2
- package/dist/effects/mention-glow.cjs +1 -1
- package/dist/effects/mention-glow.js +2 -2
- package/dist/effects/mesh-drift.cjs +1 -1
- package/dist/effects/mesh-drift.js +2 -2
- package/dist/effects/message-in.cjs +1 -1
- package/dist/effects/message-in.js +2 -2
- package/dist/effects/mosaic-flip.cjs +1 -1
- package/dist/effects/mosaic-flip.js +2 -2
- package/dist/effects/neon-ignite.cjs +1 -1
- package/dist/effects/neon-ignite.js +2 -2
- package/dist/effects/neon-pulse.cjs +1 -1
- package/dist/effects/neon-pulse.js +2 -2
- package/dist/effects/neon-write.cjs +1 -1
- package/dist/effects/neon-write.js +2 -2
- package/dist/effects/neu-press.cjs +1 -1
- package/dist/effects/neu-press.js +2 -2
- package/dist/effects/noise-reveal.cjs +1 -1
- package/dist/effects/noise-reveal.js +2 -2
- package/dist/effects/number-roll.cjs +1 -1
- package/dist/effects/number-roll.js +2 -2
- package/dist/effects/orbit-camera.cjs +1 -1
- package/dist/effects/orbit-camera.js +2 -2
- package/dist/effects/orbit-in.cjs +1 -1
- package/dist/effects/orbit-in.js +2 -2
- package/dist/effects/origami.cjs +1 -1
- package/dist/effects/origami.js +2 -2
- package/dist/effects/page-curl.cjs +1 -1
- package/dist/effects/page-curl.js +2 -2
- package/dist/effects/pan-reveal.cjs +1 -1
- package/dist/effects/pan-reveal.js +2 -2
- package/dist/effects/paper-unfold.cjs +1 -1
- package/dist/effects/paper-unfold.js +2 -2
- package/dist/effects/particle-text.cjs +1 -1
- package/dist/effects/particle-text.js +2 -2
- package/dist/effects/path-morph.cjs +1 -1
- package/dist/effects/path-morph.js +2 -2
- package/dist/effects/pearlescent.cjs +1 -1
- package/dist/effects/pearlescent.js +2 -2
- package/dist/effects/pencil-sketch.cjs +1 -1
- package/dist/effects/pencil-sketch.js +2 -2
- package/dist/effects/pin-drop.cjs +1 -1
- package/dist/effects/pin-drop.js +2 -2
- package/dist/effects/pinball.cjs +1 -1
- package/dist/effects/pinball.js +2 -2
- package/dist/effects/pinch-hint.cjs +1 -1
- package/dist/effects/pinch-hint.js +2 -2
- package/dist/effects/pixelate-in.cjs +1 -1
- package/dist/effects/pixelate-in.js +2 -2
- package/dist/effects/pointer-shadow.cjs +1 -1
- package/dist/effects/pointer-shadow.js +2 -2
- package/dist/effects/portal-open.cjs +1 -1
- package/dist/effects/portal-open.js +2 -2
- package/dist/effects/price-flip.cjs +1 -1
- package/dist/effects/price-flip.js +2 -2
- package/dist/effects/product-spin.cjs +1 -1
- package/dist/effects/product-spin.js +2 -2
- package/dist/effects/rack-focus.cjs +1 -1
- package/dist/effects/rack-focus.js +2 -2
- package/dist/effects/radial-spectrum.cjs +1 -1
- package/dist/effects/radial-spectrum.js +2 -2
- package/dist/effects/rain-glass.cjs +1 -1
- package/dist/effects/rain-glass.js +2 -2
- package/dist/effects/reaction-burst.cjs +1 -1
- package/dist/effects/reaction-burst.js +2 -2
- package/dist/effects/read-receipt.cjs +1 -1
- package/dist/effects/read-receipt.js +2 -2
- package/dist/effects/refraction.cjs +1 -1
- package/dist/effects/refraction.js +2 -2
- package/dist/effects/ring-sweep.cjs +1 -1
- package/dist/effects/ring-sweep.js +2 -2
- package/dist/effects/ripple-dissolve.cjs +1 -1
- package/dist/effects/ripple-dissolve.js +2 -2
- package/dist/effects/rope.cjs +1 -1
- package/dist/effects/rope.js +2 -2
- package/dist/effects/route-draw.cjs +1 -1
- package/dist/effects/route-draw.js +2 -2
- package/dist/effects/safe-fade.cjs +1 -1
- package/dist/effects/safe-fade.js +2 -2
- package/dist/effects/sakura.cjs +1 -1
- package/dist/effects/sakura.js +3 -3
- package/dist/effects/sale-shine.cjs +1 -1
- package/dist/effects/sale-shine.js +2 -2
- package/dist/effects/sankey-flow.cjs +1 -1
- package/dist/effects/sankey-flow.js +2 -2
- package/dist/effects/scanline-sweep.cjs +1 -1
- package/dist/effects/scanline-sweep.js +2 -2
- package/dist/effects/shatter.cjs +1 -1
- package/dist/effects/shatter.js +2 -2
- package/dist/effects/smoke.cjs +1 -1
- package/dist/effects/smoke.js +3 -3
- package/dist/effects/snowfall.cjs +1 -1
- package/dist/effects/snowfall.js +2 -2
- package/dist/effects/soft-body.cjs +1 -1
- package/dist/effects/soft-body.js +2 -2
- package/dist/effects/sound-particles.cjs +1 -1
- package/dist/effects/sound-particles.js +2 -2
- package/dist/effects/spatial-float.cjs +1 -1
- package/dist/effects/spatial-float.js +2 -2
- package/dist/effects/spectrum-mirror.cjs +1 -1
- package/dist/effects/spectrum-mirror.js +2 -2
- package/dist/effects/splash.cjs +1 -1
- package/dist/effects/splash.js +3 -3
- package/dist/effects/spooky-float.cjs +1 -1
- package/dist/effects/spooky-float.js +2 -2
- package/dist/effects/stock-pulse.cjs +1 -1
- package/dist/effects/stock-pulse.js +2 -2
- package/dist/effects/stream-text.cjs +1 -1
- package/dist/effects/stream-text.js +2 -2
- package/dist/effects/stroke-draw.cjs +1 -1
- package/dist/effects/stroke-draw.js +2 -2
- package/dist/effects/success-check.cjs +1 -1
- package/dist/effects/success-check.js +2 -2
- package/dist/effects/swipe-hint.cjs +1 -1
- package/dist/effects/swipe-hint.js +2 -2
- package/dist/effects/text-trail.cjs +1 -1
- package/dist/effects/text-trail.js +2 -2
- package/dist/effects/thinking-glow.cjs +1 -1
- package/dist/effects/thinking-glow.js +2 -2
- package/dist/effects/tilt-wobble.cjs +1 -1
- package/dist/effects/tilt-wobble.js +2 -2
- package/dist/effects/typing-dots.cjs +1 -1
- package/dist/effects/typing-dots.js +2 -2
- package/dist/effects/underline-sweep.cjs +1 -1
- package/dist/effects/underline-sweep.js +2 -2
- package/dist/effects/vhs-glitch.cjs +1 -1
- package/dist/effects/vhs-glitch.js +2 -2
- package/dist/effects/vine-grow.cjs +1 -1
- package/dist/effects/vine-grow.js +2 -2
- package/dist/effects/vinyl-spin.cjs +1 -1
- package/dist/effects/vinyl-spin.js +2 -2
- package/dist/effects/voice-wave.cjs +1 -1
- package/dist/effects/voice-wave.js +2 -2
- package/dist/effects/water-drop.cjs +1 -1
- package/dist/effects/water-drop.js +2 -2
- package/dist/effects/watercolor.cjs +1 -1
- package/dist/effects/watercolor.js +2 -2
- package/dist/effects/waveform-scope.cjs +1 -1
- package/dist/effects/waveform-scope.js +2 -2
- package/dist/effects/xmas-snow.cjs +1 -1
- package/dist/effects/xmas-snow.js +2 -2
- package/dist/effects/xp-gain.cjs +1 -1
- package/dist/effects/xp-gain.js +2 -2
- package/dist/effects/y2k-shine.cjs +1 -1
- package/dist/effects/y2k-shine.js +2 -2
- 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 +2 -2
- package/dist/index.umd.js +1 -1
- package/dist/llms-full.txt +1 -1
- package/dist/llms.txt +1 -1
- package/dist/manifest.json +1 -1
- 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 +3 -3
- package/dist/runtime/format-apng.iife.js +1 -1
- package/dist/runtime/format-apng.js +3 -3
- package/dist/runtime/format-css.cjs +3 -3
- package/dist/runtime/format-css.iife.js +1 -1
- package/dist/runtime/format-css.js +3 -3
- package/dist/runtime/format-gif.cjs +3 -3
- package/dist/runtime/format-gif.iife.js +1 -1
- package/dist/runtime/format-gif.js +3 -3
- package/dist/runtime/format-gltf.cjs +2 -2
- package/dist/runtime/format-gltf.iife.js +1 -1
- package/dist/runtime/format-gltf.js +2 -2
- package/dist/runtime/format-motion.cjs +4 -4
- package/dist/runtime/format-motion.iife.js +1 -1
- package/dist/runtime/format-motion.js +4 -4
- package/dist/runtime/format-obj.cjs +2 -2
- package/dist/runtime/format-obj.iife.js +1 -1
- package/dist/runtime/format-obj.js +2 -2
- package/dist/runtime/format-scene.cjs +2 -2
- package/dist/runtime/format-scene.iife.js +1 -1
- package/dist/runtime/format-scene.js +2 -2
- package/dist/runtime/format-sprite.cjs +3 -3
- package/dist/runtime/format-sprite.iife.js +1 -1
- package/dist/runtime/format-sprite.js +3 -3
- package/dist/runtime/format-svg.cjs +3 -3
- package/dist/runtime/format-svg.iife.js +1 -1
- package/dist/runtime/format-svg.js +3 -3
- package/dist/runtime/format-webp.cjs +3 -3
- package/dist/runtime/format-webp.iife.js +1 -1
- package/dist/runtime/format-webp.js +3 -3
- package/dist/runtime/gl.cjs +2 -2
- package/dist/runtime/gl.iife.js +1 -1
- package/dist/runtime/gl.js +2 -2
- package/dist/runtime/gltf-anim.cjs +2 -2
- package/dist/runtime/gltf-anim.iife.js +1 -1
- package/dist/runtime/gltf-anim.js +2 -2
- package/dist/runtime/gltf-decoders.cjs +2 -2
- package/dist/runtime/gltf-decoders.iife.js +1 -1
- package/dist/runtime/gltf-decoders.js +2 -2
- package/dist/runtime/lottie-state.cjs +2 -2
- package/dist/runtime/lottie-state.iife.js +1 -1
- package/dist/runtime/lottie-state.js +2 -2
- package/dist/runtime/physics.cjs +2 -2
- package/dist/runtime/physics.iife.js +1 -1
- package/dist/runtime/physics.js +2 -2
- package/dist/runtime/scroll.cjs +3 -3
- package/dist/runtime/scroll.iife.js +1 -1
- package/dist/runtime/scroll.js +3 -3
- package/dist/runtime/smooth.cjs +2 -2
- package/dist/runtime/smooth.iife.js +1 -1
- package/dist/runtime/smooth.js +2 -2
- package/dist/runtime/text.cjs +2 -2
- package/dist/runtime/text.iife.js +1 -1
- package/dist/runtime/text.js +2 -2
- package/dist/runtime/vector.cjs +3 -3
- package/dist/runtime/vector.iife.js +1 -1
- package/dist/runtime/vector.js +3 -3
- package/dist/runtime.cjs +4 -4
- package/dist/runtime.d.cts +1 -1
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.iife.js +2 -2
- package/dist/runtime.js +6 -6
- package/dist/solid.cjs +1 -1
- package/dist/solid.js +1 -1
- package/dist/svelte.cjs +1 -1
- package/dist/svelte.js +1 -1
- package/dist/vue.cjs +1 -1
- package/dist/vue.js +1 -1
- package/dist/widgets/add-to-cart.cjs +1 -1
- package/dist/widgets/add-to-cart.js +4 -4
- package/dist/widgets/badge-wall.cjs +1 -1
- package/dist/widgets/badge-wall.js +2 -2
- package/dist/widgets/bar-chart.cjs +1 -1
- package/dist/widgets/bar-chart.js +2 -2
- package/dist/widgets/bg-generator.cjs +1 -1
- package/dist/widgets/bg-generator.js +2 -2
- package/dist/widgets/carousel.cjs +1 -1
- package/dist/widgets/carousel.js +2 -2
- package/dist/widgets/cart-drawer.cjs +1 -1
- package/dist/widgets/cart-drawer.js +2 -2
- package/dist/widgets/chapter-nav.cjs +1 -1
- package/dist/widgets/chapter-nav.js +2 -2
- package/dist/widgets/chat-composer.cjs +1 -1
- package/dist/widgets/chat-composer.js +2 -2
- package/dist/widgets/clock-control.cjs +1 -1
- package/dist/widgets/clock-control.js +2 -2
- package/dist/widgets/code-export.cjs +1 -1
- package/dist/widgets/code-export.js +2 -2
- package/dist/widgets/color-picker.cjs +1 -1
- package/dist/widgets/color-picker.js +2 -2
- package/dist/widgets/command-palette.cjs +1 -1
- package/dist/widgets/command-palette.js +2 -2
- package/dist/widgets/compare.cjs +1 -1
- package/dist/widgets/compare.js +2 -2
- package/dist/widgets/countdown.cjs +1 -1
- package/dist/widgets/countdown.js +2 -2
- package/dist/widgets/cube-gallery.cjs +1 -1
- package/dist/widgets/cube-gallery.js +2 -2
- package/dist/widgets/date-picker.cjs +1 -1
- package/dist/widgets/date-picker.js +2 -2
- package/dist/widgets/disclosure.cjs +1 -1
- package/dist/widgets/disclosure.js +3 -3
- package/dist/widgets/dock.cjs +1 -1
- package/dist/widgets/dock.js +2 -2
- package/dist/widgets/dotlottie.cjs +1 -1
- package/dist/widgets/dotlottie.js +1 -1
- package/dist/widgets/equalizer.cjs +1 -1
- package/dist/widgets/equalizer.js +2 -2
- package/dist/widgets/festival-banner.cjs +1 -1
- package/dist/widgets/festival-banner.js +2 -2
- package/dist/widgets/field.cjs +1 -1
- package/dist/widgets/field.js +2 -2
- package/dist/widgets/file-drop.cjs +1 -1
- package/dist/widgets/file-drop.js +2 -2
- package/dist/widgets/gauge.cjs +1 -1
- package/dist/widgets/gauge.js +2 -2
- package/dist/widgets/gen-art.cjs +1 -1
- package/dist/widgets/gen-art.js +2 -2
- package/dist/widgets/gesture-sticker.cjs +1 -1
- package/dist/widgets/gesture-sticker.js +2 -2
- package/dist/widgets/gl-model.cjs +1 -1
- package/dist/widgets/gl-model.js +1 -1
- package/dist/widgets/gl-scene.cjs +2 -2
- package/dist/widgets/gl-scene.js +2 -2
- package/dist/widgets/globe.cjs +1 -1
- package/dist/widgets/globe.js +2 -2
- package/dist/widgets/gpu-particles.cjs +1 -1
- package/dist/widgets/gpu-particles.js +2 -2
- package/dist/widgets/gyro-card.cjs +1 -1
- package/dist/widgets/gyro-card.js +2 -2
- package/dist/widgets/hero-video.cjs +1 -1
- package/dist/widgets/hero-video.js +2 -2
- package/dist/widgets/hud-panel.cjs +1 -1
- package/dist/widgets/hud-panel.js +2 -2
- package/dist/widgets/hydrate.cjs +1 -1
- package/dist/widgets/hydrate.js +2 -2
- package/dist/widgets/install-button.cjs +1 -1
- package/dist/widgets/install-button.js +2 -2
- package/dist/widgets/kanban.cjs +1 -1
- package/dist/widgets/kanban.js +2 -2
- package/dist/widgets/keyframe-editor.cjs +1 -1
- package/dist/widgets/keyframe-editor.js +3 -3
- package/dist/widgets/kpi.cjs +1 -1
- package/dist/widgets/kpi.js +2 -2
- package/dist/widgets/leaderboard.cjs +1 -1
- package/dist/widgets/leaderboard.js +2 -2
- package/dist/widgets/liquid-nav.cjs +1 -1
- package/dist/widgets/liquid-nav.js +2 -2
- package/dist/widgets/location-card.cjs +1 -1
- package/dist/widgets/location-card.js +2 -2
- package/dist/widgets/lottie-icon.cjs +1 -1
- package/dist/widgets/lottie-icon.js +2 -2
- package/dist/widgets/lottie-player.cjs +2 -2
- package/dist/widgets/lottie-player.js +2 -2
- package/dist/widgets/lottie.cjs +1 -1
- package/dist/widgets/lottie.js +2 -2
- package/dist/widgets/lyrics.cjs +1 -1
- package/dist/widgets/lyrics.js +2 -2
- package/dist/widgets/masonry-flow.cjs +1 -1
- package/dist/widgets/masonry-flow.js +2 -2
- package/dist/widgets/menu-toggle.cjs +1 -1
- package/dist/widgets/menu-toggle.js +2 -2
- package/dist/widgets/menu.cjs +1 -1
- package/dist/widgets/menu.js +2 -2
- package/dist/widgets/message-list.cjs +1 -1
- package/dist/widgets/message-list.js +2 -2
- package/dist/widgets/milestones.cjs +1 -1
- package/dist/widgets/milestones.js +2 -2
- package/dist/widgets/modal.cjs +1 -1
- package/dist/widgets/modal.js +2 -2
- package/dist/widgets/motion-inspector.cjs +2 -2
- package/dist/widgets/motion-inspector.js +3 -3
- package/dist/widgets/motion-prefs.cjs +1 -1
- package/dist/widgets/motion-prefs.js +2 -2
- package/dist/widgets/motion-prompt.cjs +1 -1
- package/dist/widgets/motion-prompt.js +2 -2
- package/dist/widgets/motion-spec.cjs +1 -1
- package/dist/widgets/motion-spec.js +2 -2
- package/dist/widgets/motion.cjs +1 -1
- package/dist/widgets/motion.js +2 -2
- package/dist/widgets/music-player.cjs +1 -1
- package/dist/widgets/music-player.js +2 -2
- package/dist/widgets/native-preview.cjs +1 -1
- package/dist/widgets/native-preview.js +2 -2
- package/dist/widgets/nav-morph.cjs +1 -1
- package/dist/widgets/nav-morph.js +2 -2
- package/dist/widgets/notification-bell.cjs +1 -1
- package/dist/widgets/notification-bell.js +2 -2
- package/dist/widgets/odometer.cjs +1 -1
- package/dist/widgets/odometer.js +2 -2
- package/dist/widgets/organic-card.cjs +1 -1
- package/dist/widgets/organic-card.js +2 -2
- package/dist/widgets/otp.cjs +1 -1
- package/dist/widgets/otp.js +2 -2
- package/dist/widgets/pagination.cjs +1 -1
- package/dist/widgets/pagination.js +2 -2
- package/dist/widgets/panorama.cjs +1 -1
- package/dist/widgets/panorama.js +2 -2
- package/dist/widgets/parallax-layers.cjs +1 -1
- package/dist/widgets/parallax-layers.js +2 -2
- package/dist/widgets/pause-all.cjs +1 -1
- package/dist/widgets/pause-all.js +2 -2
- package/dist/widgets/perf-monitor.cjs +1 -1
- package/dist/widgets/perf-monitor.js +2 -2
- package/dist/widgets/physics-playground.cjs +2 -2
- package/dist/widgets/physics-playground.js +2 -2
- package/dist/widgets/plugin-card.cjs +3 -3
- package/dist/widgets/plugin-card.js +4 -4
- package/dist/widgets/plugin-store.cjs +1 -1
- package/dist/widgets/plugin-store.js +2 -2
- package/dist/widgets/presence.cjs +1 -1
- package/dist/widgets/presence.js +2 -2
- package/dist/widgets/prize-wheel.cjs +1 -1
- package/dist/widgets/prize-wheel.js +2 -2
- package/dist/widgets/product-gallery.cjs +1 -1
- package/dist/widgets/product-gallery.js +2 -2
- package/dist/widgets/progress-ring.cjs +1 -1
- package/dist/widgets/progress-ring.js +2 -2
- package/dist/widgets/prop-panel.cjs +1 -1
- package/dist/widgets/prop-panel.js +2 -2
- package/dist/widgets/pull-cord.cjs +1 -1
- package/dist/widgets/pull-cord.js +2 -2
- package/dist/widgets/radar.cjs +1 -1
- package/dist/widgets/radar.js +2 -2
- package/dist/widgets/reactions.cjs +1 -1
- package/dist/widgets/reactions.js +2 -2
- package/dist/widgets/red-envelope.cjs +1 -1
- package/dist/widgets/red-envelope.js +2 -2
- package/dist/widgets/retro-button.cjs +1 -1
- package/dist/widgets/retro-button.js +2 -2
- package/dist/widgets/rive.cjs +1 -1
- package/dist/widgets/rive.js +2 -2
- package/dist/widgets/route-transition.cjs +1 -1
- package/dist/widgets/route-transition.js +2 -2
- package/dist/widgets/scene.cjs +1 -1
- package/dist/widgets/scene.js +2 -2
- package/dist/widgets/scroll-ring.cjs +1 -1
- package/dist/widgets/scroll-ring.js +2 -2
- package/dist/widgets/scroll-scene.cjs +2 -2
- package/dist/widgets/scroll-scene.js +2 -2
- package/dist/widgets/segmented.cjs +1 -1
- package/dist/widgets/segmented.js +2 -2
- package/dist/widgets/shader-backdrop.cjs +1 -1
- package/dist/widgets/shader-backdrop.js +2 -2
- package/dist/widgets/sheet.cjs +1 -1
- package/dist/widgets/sheet.js +2 -2
- package/dist/widgets/shortcut.cjs +1 -1
- package/dist/widgets/shortcut.js +3 -3
- package/dist/widgets/skeleton-reveal.cjs +1 -1
- package/dist/widgets/skeleton-reveal.js +2 -2
- package/dist/widgets/sketch-chart.cjs +1 -1
- package/dist/widgets/sketch-chart.js +2 -2
- package/dist/widgets/smooth-scroll.cjs +2 -2
- package/dist/widgets/smooth-scroll.js +3 -3
- package/dist/widgets/snap-carousel.cjs +1 -1
- package/dist/widgets/snap-carousel.js +1 -1
- package/dist/widgets/sparkline.cjs +1 -1
- package/dist/widgets/sparkline.js +2 -2
- package/dist/widgets/spatial-card.cjs +1 -1
- package/dist/widgets/spatial-card.js +2 -2
- package/dist/widgets/star-rating.cjs +1 -1
- package/dist/widgets/star-rating.js +2 -2
- package/dist/widgets/stepper.cjs +1 -1
- package/dist/widgets/stepper.js +2 -2
- package/dist/widgets/sticky-wall.cjs +1 -1
- package/dist/widgets/sticky-wall.js +2 -2
- package/dist/widgets/stories.cjs +1 -1
- package/dist/widgets/stories.js +2 -2
- package/dist/widgets/suggestion-chips.cjs +1 -1
- package/dist/widgets/suggestion-chips.js +2 -2
- package/dist/widgets/swipe-deck.cjs +1 -1
- package/dist/widgets/swipe-deck.js +2 -2
- package/dist/widgets/switch.cjs +1 -1
- package/dist/widgets/switch.js +2 -2
- package/dist/widgets/tab-bar.cjs +1 -1
- package/dist/widgets/tab-bar.js +2 -2
- package/dist/widgets/terminal.cjs +1 -1
- package/dist/widgets/terminal.js +2 -2
- package/dist/widgets/text-splitter.cjs +3 -3
- package/dist/widgets/text-splitter.js +4 -4
- package/dist/widgets/theme-surface.cjs +1 -1
- package/dist/widgets/theme-surface.js +2 -2
- package/dist/widgets/theme-switcher.cjs +1 -1
- package/dist/widgets/theme-switcher.js +2 -2
- package/dist/widgets/tip.cjs +1 -1
- package/dist/widgets/tip.js +2 -2
- package/dist/widgets/toast-stack.cjs +1 -1
- package/dist/widgets/toast-stack.js +2 -2
- package/dist/widgets/token-editor.cjs +1 -1
- package/dist/widgets/token-editor.js +2 -2
- package/dist/widgets/upload-progress.cjs +1 -1
- package/dist/widgets/upload-progress.js +2 -2
- package/dist/widgets/video-card.cjs +1 -1
- package/dist/widgets/video-card.js +2 -2
- package/dist/widgets/voice-button.cjs +1 -1
- package/dist/widgets/voice-button.js +2 -2
- package/dist/widgets/volume-knob.cjs +1 -1
- package/dist/widgets/volume-knob.js +2 -2
- package/dist/widgets/weather-card.cjs +1 -1
- package/dist/widgets/weather-card.js +2 -2
- package/dist/widgets/worker-canvas.cjs +1 -1
- package/dist/widgets/worker-canvas.js +2 -2
- package/dist/widgets/xp-bar.cjs +1 -1
- package/dist/widgets/xp-bar.js +2 -2
- package/dist/widgets.umd.js +2 -2
- package/docs/layout-motion.md +248 -0
- package/docs/motion-tokens.md +144 -5
- package/docs/versions.md +6 -4
- package/package.json +41 -1
|
@@ -0,0 +1,543 @@
|
|
|
1
|
+
import { D as EASE_OUT, p as prefersReducedMotion } from '../chunks/base-ByyAdGqz.js';
|
|
2
|
+
import { resolveDurationToken } from './tokens.js';
|
|
3
|
+
import { t as toEasingFn, c as control } from '../chunks/index-gwb-TO6r.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* `motionary/motion/layout` (= `motionary/components/motion-layout`, 14.2) — **Layout Motion 2.0** on Motion Engine v2.
|
|
7
|
+
*
|
|
8
|
+
* ```ts
|
|
9
|
+
* import { flip, layoutGroup, setLayoutId, layoutTransition } from 'motionary/motion/layout';
|
|
10
|
+
*
|
|
11
|
+
* flip('.card', () => grid.classList.toggle('dense')); // FLIP with scale + border-radius correction
|
|
12
|
+
* const g = layoutGroup('.accordion > section'); // siblings reflow together
|
|
13
|
+
* g.flip(() => item.classList.toggle('open'));
|
|
14
|
+
* setLayoutId(thumb, 'photo-1'); // shared element (layoutId)
|
|
15
|
+
* await layoutTransition(() => router.go('/photo/1')); // View Transitions API, FLIP fallback
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* - **FLIP 2.0**: elements are measured before and after a DOM change, then shown at their old box with a
|
|
19
|
+
* `translate3d() scale()` (origin `0 0`) that eases to none. Direct children are counter-scaled so text and
|
|
20
|
+
* images do not stretch (`correct`), border-radius is corrected for the current scale (`radius`), and nested
|
|
21
|
+
* layout elements animate in their parent's frame.
|
|
22
|
+
* - **Interruptible**: a new layout change on an element that is still animating starts from where it is now.
|
|
23
|
+
* - **Scroll / transforms / sticky**: boxes are measured scroll-independently (window and scroll containers
|
|
24
|
+
* scrolling during an update are not layout changes), deltas are converted into the local px of scaled
|
|
25
|
+
* ancestors, and sticky / fixed elements are measured in viewport space.
|
|
26
|
+
* - **Shared elements**: `data-layout-id` (`setLayoutId`) pairs elements across states and routes.
|
|
27
|
+
* - **View Transitions**: `layoutTransition()` uses `document.startViewTransition` when present and falls back to
|
|
28
|
+
* FLIP; `crossDocumentLayout()` enables cross-document view transitions or a sessionStorage FLIP fallback.
|
|
29
|
+
* - **Reduced motion**: instant by default, `reducedMotion: 'crossfade'` for an opacity-only change.
|
|
30
|
+
*
|
|
31
|
+
* Every animation is a standard {@link MotionControls}. Not part of `motionary/motion` or `lite`; zero
|
|
32
|
+
* dependencies. docs/layout-motion.md
|
|
33
|
+
*/
|
|
34
|
+
/** Layout Motion generation (14.2 = 2). */
|
|
35
|
+
const LAYOUT_MOTION_VERSION = 2;
|
|
36
|
+
// --- pure math ---------------------------------------------------------------------------
|
|
37
|
+
const r4 = (v) => Math.round(v * 1e4) / 1e4 || 0;
|
|
38
|
+
const mix = (a, b, p) => a + (b - a) * p;
|
|
39
|
+
const ONE = { x: 1, y: 1 };
|
|
40
|
+
/** The transform that shows an element laid out at `to` at the box `from` (`ps` = ancestor scale). */
|
|
41
|
+
function layoutDelta(from, to, ps = ONE) {
|
|
42
|
+
return { x: (from.x - to.x) / ps.x, y: (from.y - to.y) / ps.y, sx: to.width ? from.width / to.width : 1, sy: to.height ? from.height / to.height : 1 };
|
|
43
|
+
}
|
|
44
|
+
/** Interpolate two boxes. */
|
|
45
|
+
function mixBox(a, b, p) {
|
|
46
|
+
return { x: mix(a.x, b.x, p), y: mix(a.y, b.y, p), width: mix(a.width, b.width, p), height: mix(a.height, b.height, p) };
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* The transform that shows an element laid out at `to` at the box `want`. With `parent` (an animated layout
|
|
50
|
+
* ancestor: its layout box `to` and the box it is `shown` at) the result is in the parent's frame, so a child
|
|
51
|
+
* that should look untouched is counter-scaled (scale correction).
|
|
52
|
+
*/
|
|
53
|
+
function solveLayoutTransform(want, to, parent, ps = ONE) {
|
|
54
|
+
if (!parent)
|
|
55
|
+
return layoutDelta(want, to, ps);
|
|
56
|
+
const px = parent.to.width ? parent.shown.width / parent.to.width : 1;
|
|
57
|
+
const py = parent.to.height ? parent.shown.height / parent.to.height : 1;
|
|
58
|
+
return {
|
|
59
|
+
x: ((want.x - parent.shown.x) / px - (to.x - parent.to.x)) / ps.x,
|
|
60
|
+
y: ((want.y - parent.shown.y) / py - (to.y - parent.to.y)) / ps.y,
|
|
61
|
+
sx: to.width ? want.width / (px * to.width) : 1,
|
|
62
|
+
sy: to.height ? want.height / (py * to.height) : 1,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
/** `translate3d(x, y, 0) scale(sx, sy)`; `''` at identity. */
|
|
66
|
+
function layoutTransform(d) {
|
|
67
|
+
const x = r4(d.x), y = r4(d.y), sx = r4(d.sx), sy = r4(d.sy);
|
|
68
|
+
return !x && !y && sx === 1 && sy === 1 ? '' : `translate3d(${x}px, ${y}px, 0) scale(${sx}, ${sy})`;
|
|
69
|
+
}
|
|
70
|
+
/** Border-radius (visible px) that looks right on an element shown at scale `sx`, `sy`. */
|
|
71
|
+
function correctRadius(r, sx, sy) {
|
|
72
|
+
const [rx, ry] = typeof r === 'number' ? [r, r] : r;
|
|
73
|
+
return !rx && !ry ? '' : `${r4(rx / (sx || 1))}px / ${r4(ry / (sy || 1))}px`;
|
|
74
|
+
}
|
|
75
|
+
// --- measuring ---------------------------------------------------------------------------
|
|
76
|
+
const hasDoc = () => typeof document !== 'undefined';
|
|
77
|
+
const cs = (el) => (typeof getComputedStyle === 'function' ? getComputedStyle(el) : {});
|
|
78
|
+
const pinned = (el) => /^(sticky|fixed)$/.test(cs(el).position || '');
|
|
79
|
+
/** Scroll offsets that do not change how `el` is laid out: scroll containers up to a sticky / fixed ancestor, then the window. */
|
|
80
|
+
function scrollOffset(el) {
|
|
81
|
+
if (pinned(el))
|
|
82
|
+
return [0, 0];
|
|
83
|
+
let x = 0, y = 0;
|
|
84
|
+
const se = hasDoc() ? document.scrollingElement : null;
|
|
85
|
+
for (let n = el.parentElement; n; n = n.parentElement) {
|
|
86
|
+
if (n !== se)
|
|
87
|
+
(x += n.scrollLeft || 0), (y += n.scrollTop || 0);
|
|
88
|
+
if (pinned(n))
|
|
89
|
+
return [x, y];
|
|
90
|
+
}
|
|
91
|
+
return typeof window === 'undefined' ? [x, y] : [x + (window.scrollX || 0), y + (window.scrollY || 0)];
|
|
92
|
+
}
|
|
93
|
+
/** The element's box as rendered, in scroll-independent coordinates (see {@link Box}). */
|
|
94
|
+
function measureLayout(el) {
|
|
95
|
+
const r = el.getBoundingClientRect();
|
|
96
|
+
const [ox, oy] = scrollOffset(el);
|
|
97
|
+
return { x: r.left + ox, y: r.top + oy, width: r.width, height: r.height };
|
|
98
|
+
}
|
|
99
|
+
/** Cumulative scale of the ancestors (rendered size / layout size of the parent). */
|
|
100
|
+
function ancestorScale(el) {
|
|
101
|
+
const p = el.parentElement;
|
|
102
|
+
if (!p || !p.offsetWidth || !p.offsetHeight)
|
|
103
|
+
return ONE;
|
|
104
|
+
const r = p.getBoundingClientRect();
|
|
105
|
+
return { x: r.width / p.offsetWidth || 1, y: r.height / p.offsetHeight || 1 };
|
|
106
|
+
}
|
|
107
|
+
function readRadius(el, b) {
|
|
108
|
+
const s = cs(el);
|
|
109
|
+
const v = (s.borderTopLeftRadius || s.borderRadius || '').split('/')[0].trim().split(/\s+/);
|
|
110
|
+
const px = (t, of) => (!t ? 0 : t.endsWith('%') ? (parseFloat(t) / 100) * of : parseFloat(t) || 0);
|
|
111
|
+
return [px(v[0], b.width), px(v[1] ?? v[0], b.height)];
|
|
112
|
+
}
|
|
113
|
+
const toEls = (t) => {
|
|
114
|
+
if (typeof t === 'function')
|
|
115
|
+
t = t();
|
|
116
|
+
if (typeof t === 'string')
|
|
117
|
+
return hasDoc() ? Array.from(document.querySelectorAll(t)) : [];
|
|
118
|
+
if (typeof Element !== 'undefined' && t instanceof Element)
|
|
119
|
+
return [t];
|
|
120
|
+
return Array.from(t);
|
|
121
|
+
};
|
|
122
|
+
const KEYS = ['transform', 'transformOrigin', 'borderRadius', 'opacity', 'visibility'];
|
|
123
|
+
const running = /*#__PURE__*/ new WeakMap();
|
|
124
|
+
const save = (el) => Object.fromEntries(KEYS.map((k) => [k, el.style[k]]));
|
|
125
|
+
const restore = (el, s) => KEYS.forEach((k) => (el.style[k] = s[k]));
|
|
126
|
+
const restoreItem = (i) => {
|
|
127
|
+
restore(i.el, i.s);
|
|
128
|
+
i.kids.forEach((k) => restore(k.el, k.s));
|
|
129
|
+
};
|
|
130
|
+
/** Is a layout animation of this package running on `el`? */
|
|
131
|
+
function isLayoutAnimating(el) {
|
|
132
|
+
return running.has(el);
|
|
133
|
+
}
|
|
134
|
+
/** Measure `el` as shown now; if a layout animation runs on it, take it over (stop it and keep its current box). */
|
|
135
|
+
function capture(el) {
|
|
136
|
+
const run = running.get(el);
|
|
137
|
+
const box = measureLayout(el);
|
|
138
|
+
const it = run?.items.find((i) => i.el === el);
|
|
139
|
+
const radius = it?.R || readRadius(el, box);
|
|
140
|
+
run?.drop(el);
|
|
141
|
+
return { el, box, radius };
|
|
142
|
+
}
|
|
143
|
+
const PIN = '0px 0px';
|
|
144
|
+
function render(i, p, o) {
|
|
145
|
+
const D = (i.D = mixBox(i.from, i.dest, p));
|
|
146
|
+
if (o.scale === false)
|
|
147
|
+
(D.width = i.to.width), (D.height = i.to.height);
|
|
148
|
+
const el = i.el.style;
|
|
149
|
+
el.transformOrigin = PIN;
|
|
150
|
+
el.transform = layoutTransform(solveLayoutTransform(D, i.to, i.parent && i.parent.D ? { shown: i.parent.D, to: i.parent.to } : null, i.ps));
|
|
151
|
+
const sx = i.to.width ? D.width / i.to.width : 1, sy = i.to.height ? D.height / i.to.height : 1;
|
|
152
|
+
if (o.radius !== false && i.r0 && i.r1 && (i.r0[0] || i.r1[0]) && (Math.abs(sx - 1) > 1e-3 || Math.abs(sy - 1) > 1e-3 || i.r0[0] !== i.r1[0])) {
|
|
153
|
+
i.R = [mix(i.r0[0], i.r1[0], p), mix(i.r0[1], i.r1[1], p)];
|
|
154
|
+
el.borderRadius = correctRadius(i.R, sx, sy);
|
|
155
|
+
}
|
|
156
|
+
if (i.op)
|
|
157
|
+
el.opacity = String(r4(mix(i.op[0], i.op[1], p)));
|
|
158
|
+
if (i.hide)
|
|
159
|
+
el.visibility = 'hidden';
|
|
160
|
+
for (const k of i.kids) {
|
|
161
|
+
k.el.style.transformOrigin = PIN;
|
|
162
|
+
k.el.style.transform = layoutTransform(solveLayoutTransform({ x: D.x + k.off[0], y: D.y + k.off[1], width: k.to.width, height: k.to.height }, k.to, { shown: D, to: i.to }, i.ps));
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
const tok = (v) => (typeof v === 'string' ? v.replace(/^\{duration\.([\w-]+)\}$/, '$1') : v);
|
|
166
|
+
/** `'instant' | 'crossfade' | null` — what reduced motion asks for right now. */
|
|
167
|
+
const reducedMode = (o) => (o.reducedMotion === 'ignore' || !prefersReducedMotion() ? null : o.reducedMotion === 'crossfade' ? 'crossfade' : 'instant');
|
|
168
|
+
/** Build items into one Motion Engine v2 controller. */
|
|
169
|
+
function play(items, o) {
|
|
170
|
+
const rm = reducedMode(o);
|
|
171
|
+
if (rm === 'crossfade') {
|
|
172
|
+
items = items.filter((i) => !i.op || i.op[1] > 0);
|
|
173
|
+
for (const i of items)
|
|
174
|
+
(i.from = i.dest = i.to), (i.op = [0, 1]), (i.kids = []), (i.r0 = i.r1 = undefined), (i.hide = false);
|
|
175
|
+
}
|
|
176
|
+
// parents first; nested items animate in their parent's frame; children of scaling items get corrected
|
|
177
|
+
const map = new Map(items.map((i) => [i.el, i]));
|
|
178
|
+
for (const i of items) {
|
|
179
|
+
for (let n = i.el.parentElement; n && !i.parent; n = n.parentElement)
|
|
180
|
+
i.parent = map.get(n) || null;
|
|
181
|
+
}
|
|
182
|
+
const depth = (i) => (i.parent ? 1 + depth(i.parent) : 0);
|
|
183
|
+
items.sort((a, b) => depth(a) - depth(b));
|
|
184
|
+
for (const i of items) {
|
|
185
|
+
i.ps = i.parent ? i.parent.ps : ancestorScale(i.el);
|
|
186
|
+
const scales = o.scale !== false && (Math.abs(i.from.width - i.to.width) > 0.5 || Math.abs(i.from.height - i.to.height) > 0.5 || Math.abs(i.dest.width - i.to.width) > 0.5);
|
|
187
|
+
if (scales && o.correct !== false && rm !== 'crossfade') {
|
|
188
|
+
const list = typeof o.correct === 'string' ? Array.from(i.el.querySelectorAll(o.correct)) : Array.from(i.el.children);
|
|
189
|
+
i.kids = list.filter((k) => !map.has(k) && k.style).map((k) => {
|
|
190
|
+
const to = measureLayout(k);
|
|
191
|
+
return { el: k, to, off: [to.x - i.to.x, to.y - i.to.y], s: save(k) };
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
const dur = Math.max(0, resolveDurationToken(tok(o.duration), 300));
|
|
196
|
+
const delay = o.delay || 0;
|
|
197
|
+
const ease = toEasingFn(o.easing ?? EASE_OUT);
|
|
198
|
+
const unreg = () => items.forEach((i) => running.get(i.el) === run && running.delete(i.el));
|
|
199
|
+
const node = {
|
|
200
|
+
d: delay + dur,
|
|
201
|
+
r(t) {
|
|
202
|
+
const p = t <= delay ? 0 : dur ? Math.min(1, (t - delay) / dur) : 1;
|
|
203
|
+
if (p >= 1)
|
|
204
|
+
items.forEach(restoreItem);
|
|
205
|
+
else {
|
|
206
|
+
const e = ease(p);
|
|
207
|
+
items.forEach((i) => render(i, e, o));
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
x() {
|
|
211
|
+
items.forEach(restoreItem);
|
|
212
|
+
unreg();
|
|
213
|
+
},
|
|
214
|
+
};
|
|
215
|
+
const ctl = control(node, { ...o, autoplay: false, reducedMotion: 'ignore', onComplete: () => (unreg(), o.onComplete?.()) });
|
|
216
|
+
const run = {
|
|
217
|
+
items,
|
|
218
|
+
ctl,
|
|
219
|
+
drop(el) {
|
|
220
|
+
const k = items.findIndex((i) => i.el === el);
|
|
221
|
+
if (k < 0)
|
|
222
|
+
return;
|
|
223
|
+
restoreItem(items[k]);
|
|
224
|
+
items.splice(k, 1);
|
|
225
|
+
running.delete(el);
|
|
226
|
+
if (!items.length)
|
|
227
|
+
ctl.cancel();
|
|
228
|
+
},
|
|
229
|
+
};
|
|
230
|
+
for (const i of items) {
|
|
231
|
+
running.get(i.el)?.drop(i.el);
|
|
232
|
+
running.set(i.el, run);
|
|
233
|
+
}
|
|
234
|
+
if (rm === 'instant' || !items.length)
|
|
235
|
+
return ctl.finish();
|
|
236
|
+
node.r(0);
|
|
237
|
+
if (o.autoplay !== false)
|
|
238
|
+
ctl.play();
|
|
239
|
+
return ctl;
|
|
240
|
+
}
|
|
241
|
+
const same = (a, b) => Math.abs(a.x - b.x) + Math.abs(a.y - b.y) + Math.abs(a.width - b.width) + Math.abs(a.height - b.height) < 0.5;
|
|
242
|
+
function item(el, from, fromR, extra = {}) {
|
|
243
|
+
if (!el.isConnected)
|
|
244
|
+
return null;
|
|
245
|
+
const to = measureLayout(el);
|
|
246
|
+
if (!to.width && !to.height)
|
|
247
|
+
return null; // display: none
|
|
248
|
+
const r1 = readRadius(el, to);
|
|
249
|
+
const it = { el, from, dest: to, to, r0: fromR || r1, r1, ps: ONE, kids: [], s: save(el), ...extra };
|
|
250
|
+
if (!extra.op && !extra.hide && extra.dest === undefined && same(from, to) && it.r0[0] === r1[0])
|
|
251
|
+
return null;
|
|
252
|
+
return it;
|
|
253
|
+
}
|
|
254
|
+
/** Capture the boxes of `targets` (taking over running layout animations); call `animate()` after the DOM changed. */
|
|
255
|
+
function snapshotLayout(targets, defaults = {}) {
|
|
256
|
+
const caps = toEls(targets).map(capture);
|
|
257
|
+
return {
|
|
258
|
+
elements: caps.map((c) => c.el),
|
|
259
|
+
animate: (o = defaults) => play(caps.map((c) => item(c.el, c.box, c.radius)).filter(Boolean), o),
|
|
260
|
+
};
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* FLIP: measure `targets`, run `update()` (synchronous DOM change), measure again and animate each element
|
|
264
|
+
* from its old box to the new one with transforms (scale + children + border-radius corrected).
|
|
265
|
+
*/
|
|
266
|
+
function flip(targets, update, options = {}) {
|
|
267
|
+
const snap = snapshotLayout(targets);
|
|
268
|
+
update();
|
|
269
|
+
return snap.animate(options);
|
|
270
|
+
}
|
|
271
|
+
/** A set of elements that animate together when any of them changes layout. */
|
|
272
|
+
function layoutGroup(members = [], options = {}) {
|
|
273
|
+
const base = typeof members === 'string' ? members : toEls(members);
|
|
274
|
+
const extra = new Set();
|
|
275
|
+
const out = new Set();
|
|
276
|
+
const g = {
|
|
277
|
+
id: options.id,
|
|
278
|
+
get members() {
|
|
279
|
+
const list = [...toEls(base), ...extra];
|
|
280
|
+
return [...new Set(list)].filter((e) => !out.has(e));
|
|
281
|
+
},
|
|
282
|
+
add: (el) => (out.delete(el), extra.add(el), g),
|
|
283
|
+
remove: (el) => (extra.delete(el), out.add(el), g),
|
|
284
|
+
snapshot: (o) => snapshotLayout(g.members, { ...options, ...o }),
|
|
285
|
+
flip: (update, o) => flip(g.members, update, { ...options, ...o }),
|
|
286
|
+
shared: (update, o) => sharedLayout(update, { ...options, ...o, scope: options.id ? options.id + '/' : o?.scope }),
|
|
287
|
+
};
|
|
288
|
+
return g;
|
|
289
|
+
}
|
|
290
|
+
// --- shared elements (layoutId) -------------------------------------------------------------
|
|
291
|
+
const ATTR = 'data-layout-id';
|
|
292
|
+
/** Pair elements across states / routes: same layoutId = same element. `null` removes it. */
|
|
293
|
+
function setLayoutId(el, id, group) {
|
|
294
|
+
if (id == null)
|
|
295
|
+
el.removeAttribute(ATTR);
|
|
296
|
+
else
|
|
297
|
+
el.setAttribute(ATTR, group?.id ? `${group.id}/${id}` : id);
|
|
298
|
+
}
|
|
299
|
+
/** The layoutId (`data-layout-id`, or the 13.x `data-shared`). */
|
|
300
|
+
function getLayoutId(el) {
|
|
301
|
+
return el.getAttribute(ATTR) ?? el.getAttribute('data-shared');
|
|
302
|
+
}
|
|
303
|
+
function collect(root = document, scope) {
|
|
304
|
+
const m = new Map();
|
|
305
|
+
root.querySelectorAll(`[${ATTR}],[data-shared]`).forEach((el) => {
|
|
306
|
+
const id = getLayoutId(el);
|
|
307
|
+
if (id && (!scope || id.startsWith(scope)))
|
|
308
|
+
m.set(id, el);
|
|
309
|
+
});
|
|
310
|
+
return m;
|
|
311
|
+
}
|
|
312
|
+
function sharedItems(before, after, o) {
|
|
313
|
+
const items = [];
|
|
314
|
+
after.forEach((el, id) => {
|
|
315
|
+
const b = before.get(id);
|
|
316
|
+
if (!b)
|
|
317
|
+
return void (o.enter !== 'none' && items.push(item(el, measureLayout(el), undefined, { op: [0, 1] })));
|
|
318
|
+
if (b.el === el)
|
|
319
|
+
return void items.push(item(el, b.box, b.radius));
|
|
320
|
+
const n = item(el, b.box, b.radius, o.crossfade && b.el.isConnected ? { op: [0, 1] } : {});
|
|
321
|
+
items.push(n);
|
|
322
|
+
if (n && b.el.isConnected)
|
|
323
|
+
items.push(item(b.el, b.box, b.radius, o.crossfade ? { dest: n.to, op: [1, 0] } : { hide: true }));
|
|
324
|
+
});
|
|
325
|
+
return items.filter(Boolean);
|
|
326
|
+
}
|
|
327
|
+
/**
|
|
328
|
+
* Shared-element transition (FLIP): elements with a layoutId before `update()` (sync or async — a route
|
|
329
|
+
* change) fly to the element with the same layoutId afterwards.
|
|
330
|
+
*/
|
|
331
|
+
async function sharedLayout(update, options = {}) {
|
|
332
|
+
const root = options.root || document;
|
|
333
|
+
const before = new Map([...collect(root, options.scope)].map(([id, el]) => [id, capture(el)]));
|
|
334
|
+
await update();
|
|
335
|
+
return play(sharedItems(before, collect(root, options.scope), options), options);
|
|
336
|
+
}
|
|
337
|
+
// --- View Transitions ------------------------------------------------------------------------
|
|
338
|
+
/** Same-document View Transitions API available. */
|
|
339
|
+
function supportsViewTransitions() {
|
|
340
|
+
return hasDoc() && typeof document.startViewTransition === 'function';
|
|
341
|
+
}
|
|
342
|
+
/** Cross-document view transitions (`@view-transition { navigation: auto }`, pageswap / pagereveal) available. */
|
|
343
|
+
function supportsCrossDocumentViewTransitions() {
|
|
344
|
+
return typeof window !== 'undefined' && 'onpagereveal' in window && typeof CSS !== 'undefined' && !!CSS.supports?.('view-transition-name', 'a');
|
|
345
|
+
}
|
|
346
|
+
/** `view-transition-name` for a layoutId (`mo-` + id with unsafe characters as `_`). */
|
|
347
|
+
function viewTransitionName(id) {
|
|
348
|
+
return 'mo-' + id.replace(/[^\w-]/g, '_');
|
|
349
|
+
}
|
|
350
|
+
const VTN = 'view-transition-name';
|
|
351
|
+
const nameAll = (m) => m.forEach((el, id) => el.style.setProperty(VTN, viewTransitionName(id)));
|
|
352
|
+
const clearAll = (m) => m.forEach((el) => el.style.removeProperty(VTN));
|
|
353
|
+
const timingCss = (o) => {
|
|
354
|
+
const e = typeof o.easing === 'string' ? o.easing : typeof o.easing === 'function' ? '' : EASE_OUT;
|
|
355
|
+
return `::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation-duration:${Math.max(0, resolveDurationToken(tok(o.duration), 300))}ms;${o.delay ? `animation-delay:${o.delay}ms;` : ''}${e ? `animation-timing-function:${e};` : ''}}`;
|
|
356
|
+
};
|
|
357
|
+
const styleEl = (attr, css) => {
|
|
358
|
+
const s = document.createElement('style');
|
|
359
|
+
s.setAttribute(attr, '');
|
|
360
|
+
s.textContent = css;
|
|
361
|
+
document.head.append(s);
|
|
362
|
+
return s;
|
|
363
|
+
};
|
|
364
|
+
let currentVT = null;
|
|
365
|
+
const settle = (p) => p.then(() => undefined, () => undefined);
|
|
366
|
+
/**
|
|
367
|
+
* Animate a DOM change (sync or async: state change, route change) with shared elements: the View Transitions
|
|
368
|
+
* API when present (layoutIds become `view-transition-name`s), FLIP otherwise or when it fails. A new transition
|
|
369
|
+
* skips the running one. Resolves once the DOM is updated.
|
|
370
|
+
*/
|
|
371
|
+
async function layoutTransition(update, options = {}) {
|
|
372
|
+
const o = options;
|
|
373
|
+
const root = o.root || document;
|
|
374
|
+
const rm = reducedMode(o);
|
|
375
|
+
const skipCurrent = () => (currentVT?.skipTransition?.(), (currentVT = null));
|
|
376
|
+
if (rm === 'instant') {
|
|
377
|
+
skipCurrent();
|
|
378
|
+
await update();
|
|
379
|
+
return { method: 'instant', finished: Promise.resolve(), skip() { } };
|
|
380
|
+
}
|
|
381
|
+
if (o.method !== 'flip' && supportsViewTransitions()) {
|
|
382
|
+
let after = new Map();
|
|
383
|
+
const before = rm ? new Map() : collect(root, o.scope);
|
|
384
|
+
let vt;
|
|
385
|
+
let style = null;
|
|
386
|
+
try {
|
|
387
|
+
skipCurrent();
|
|
388
|
+
nameAll(before);
|
|
389
|
+
style = styleEl('data-motionary-vt', timingCss(o));
|
|
390
|
+
const cb = async () => {
|
|
391
|
+
clearAll(before);
|
|
392
|
+
await update();
|
|
393
|
+
if (!rm)
|
|
394
|
+
nameAll((after = collect(root, o.scope)));
|
|
395
|
+
};
|
|
396
|
+
const doc = document;
|
|
397
|
+
try {
|
|
398
|
+
vt = o.types ? doc.startViewTransition({ update: cb, types: o.types }) : doc.startViewTransition(cb);
|
|
399
|
+
}
|
|
400
|
+
catch (e) {
|
|
401
|
+
if (!(e instanceof TypeError) || !o.types)
|
|
402
|
+
throw e;
|
|
403
|
+
vt = doc.startViewTransition(cb); // no types support
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
catch {
|
|
407
|
+
clearAll(before);
|
|
408
|
+
style?.remove();
|
|
409
|
+
vt = null;
|
|
410
|
+
}
|
|
411
|
+
if (vt) {
|
|
412
|
+
currentVT = vt;
|
|
413
|
+
await vt.updateCallbackDone;
|
|
414
|
+
const finished = settle(vt.finished).then(() => {
|
|
415
|
+
clearAll(after);
|
|
416
|
+
style?.remove();
|
|
417
|
+
if (currentVT === vt)
|
|
418
|
+
currentVT = null;
|
|
419
|
+
});
|
|
420
|
+
return { method: rm ? 'crossfade' : 'view-transition', finished, viewTransition: vt, skip: () => vt.skipTransition?.() };
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
skipCurrent();
|
|
424
|
+
const controls = await sharedLayout(update, o);
|
|
425
|
+
return { method: rm ? 'crossfade' : 'flip', finished: settle(controls.finished), controls, skip: () => controls.finish() };
|
|
426
|
+
}
|
|
427
|
+
// --- cross-document (MPA) ------------------------------------------------------------------------
|
|
428
|
+
const KEY = 'motionary:layout';
|
|
429
|
+
const store = () => {
|
|
430
|
+
try {
|
|
431
|
+
return typeof sessionStorage === 'undefined' ? null : sessionStorage;
|
|
432
|
+
}
|
|
433
|
+
catch {
|
|
434
|
+
return null;
|
|
435
|
+
}
|
|
436
|
+
};
|
|
437
|
+
/** Save the viewport boxes of every layoutId (call on `pagehide` / before navigating) for {@link playLayoutSnapshot}. */
|
|
438
|
+
function saveLayoutSnapshot(root = document, key = KEY) {
|
|
439
|
+
const boxes = {};
|
|
440
|
+
collect(root).forEach((el, id) => {
|
|
441
|
+
const r = el.getBoundingClientRect();
|
|
442
|
+
boxes[id] = { x: r.left, y: r.top, width: r.width, height: r.height, r: readRadius(el, r) };
|
|
443
|
+
});
|
|
444
|
+
try {
|
|
445
|
+
store()?.setItem(key, JSON.stringify({ t: Date.now(), boxes }));
|
|
446
|
+
}
|
|
447
|
+
catch {
|
|
448
|
+
/* storage full / blocked */
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
/** On the new page: FLIP every layoutId from the box saved on the previous page (once; ignored after `maxAge` ms, default 5000). */
|
|
452
|
+
function playLayoutSnapshot(root = document, options = {}) {
|
|
453
|
+
const s = store();
|
|
454
|
+
const raw = s?.getItem(options.key || KEY);
|
|
455
|
+
if (!raw)
|
|
456
|
+
return null;
|
|
457
|
+
s.removeItem(options.key || KEY);
|
|
458
|
+
let data;
|
|
459
|
+
try {
|
|
460
|
+
data = JSON.parse(raw);
|
|
461
|
+
}
|
|
462
|
+
catch {
|
|
463
|
+
return null;
|
|
464
|
+
}
|
|
465
|
+
if (!data || Date.now() - data.t > (options.maxAge ?? 5000))
|
|
466
|
+
return null;
|
|
467
|
+
const items = [];
|
|
468
|
+
collect(root).forEach((el, id) => {
|
|
469
|
+
const b = data.boxes?.[id];
|
|
470
|
+
if (!b)
|
|
471
|
+
return;
|
|
472
|
+
const [ox, oy] = scrollOffset(el);
|
|
473
|
+
const it = item(el, { x: b.x + ox, y: b.y + oy, width: b.width, height: b.height }, b.r);
|
|
474
|
+
if (it)
|
|
475
|
+
items.push(it);
|
|
476
|
+
});
|
|
477
|
+
return items.length ? play(items, options) : null;
|
|
478
|
+
}
|
|
479
|
+
/**
|
|
480
|
+
* Shared elements across page loads (MPA): native cross-document view transitions where supported (adds
|
|
481
|
+
* `@view-transition { navigation: auto }` and names layoutIds on `pageswap` / `pagereveal`), otherwise the
|
|
482
|
+
* sessionStorage FLIP fallback (save on `pagehide`, play on load). Include it on both pages, early (render-
|
|
483
|
+
* blocking) for `pagereveal`. Returns an undo.
|
|
484
|
+
*/
|
|
485
|
+
function crossDocumentLayout(options = {}) {
|
|
486
|
+
if (typeof window === 'undefined' || !hasDoc())
|
|
487
|
+
return () => { };
|
|
488
|
+
const root = options.root || document;
|
|
489
|
+
const native = options.method === 'view-transition' || (options.method !== 'flip' && supportsCrossDocumentViewTransitions());
|
|
490
|
+
const offs = [];
|
|
491
|
+
const on = (type, fn) => (window.addEventListener(type, fn), offs.push(() => window.removeEventListener(type, fn)));
|
|
492
|
+
if (native) {
|
|
493
|
+
const style = styleEl('data-motionary-cross-document', `@view-transition { navigation: auto; }\n${timingCss(options)}`);
|
|
494
|
+
offs.push(() => style.remove());
|
|
495
|
+
const named = (e) => {
|
|
496
|
+
const rm = reducedMode(options);
|
|
497
|
+
if (rm === 'instant')
|
|
498
|
+
return void e?.viewTransition?.skipTransition?.();
|
|
499
|
+
if (rm)
|
|
500
|
+
return; // cross-fade only
|
|
501
|
+
const m = collect(root, options.scope);
|
|
502
|
+
nameAll(m);
|
|
503
|
+
e?.viewTransition?.finished?.finally?.(() => clearAll(m));
|
|
504
|
+
};
|
|
505
|
+
on('pageswap', named);
|
|
506
|
+
on('pagereveal', named);
|
|
507
|
+
}
|
|
508
|
+
else {
|
|
509
|
+
on('pagehide', () => saveLayoutSnapshot(root));
|
|
510
|
+
const run = () => playLayoutSnapshot(root, options);
|
|
511
|
+
if (document.readyState === 'loading') {
|
|
512
|
+
document.addEventListener('DOMContentLoaded', run, { once: true });
|
|
513
|
+
offs.push(() => document.removeEventListener('DOMContentLoaded', run));
|
|
514
|
+
}
|
|
515
|
+
else
|
|
516
|
+
run();
|
|
517
|
+
}
|
|
518
|
+
return () => offs.splice(0).forEach((f) => f());
|
|
519
|
+
}
|
|
520
|
+
/** Framework-neutral FLIP helper: `snapshot()` before a render, `animate()` after it. */
|
|
521
|
+
function createLayoutTracker(targets, options = {}) {
|
|
522
|
+
let snap = null;
|
|
523
|
+
let last = null;
|
|
524
|
+
return {
|
|
525
|
+
snapshot: () => void (snap = snapshotLayout(toEls(targets), options)),
|
|
526
|
+
animate() {
|
|
527
|
+
if (!snap)
|
|
528
|
+
return null;
|
|
529
|
+
const s = snap;
|
|
530
|
+
snap = null;
|
|
531
|
+
return (last = s.animate(options));
|
|
532
|
+
},
|
|
533
|
+
cancel() {
|
|
534
|
+
snap = null;
|
|
535
|
+
if (last && last.playState !== 'finished')
|
|
536
|
+
last.cancel();
|
|
537
|
+
last = null;
|
|
538
|
+
},
|
|
539
|
+
};
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
export { LAYOUT_MOTION_VERSION, correctRadius, createLayoutTracker, crossDocumentLayout, flip, getLayoutId, isLayoutAnimating, layoutDelta, layoutGroup, layoutTransform, layoutTransition, measureLayout, mixBox, playLayoutSnapshot, saveLayoutSnapshot, setLayoutId, sharedLayout, snapshotLayout, solveLayoutTransform, supportsCrossDocumentViewTransitions, supportsViewTransitions, viewTransitionName };
|
|
543
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v14.2.0/dist/components/motion-layout.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var components_motion = require('../chunks/index-
|
|
3
|
+
var components_motion = require('../chunks/index-C9_FEsfz.cjs');
|
|
4
4
|
var play = require('../chunks/play-DCeKlDqE.cjs');
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -40,4 +40,4 @@ function playScene(root, doc, options = {}) {
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
exports.playScene = playScene;
|
|
43
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v14.
|
|
43
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v14.2.0/dist/components/motion-scene.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as animate, c as control, g as group } from '../chunks/index-
|
|
2
|
-
import { s as sceneToAnimation } from '../chunks/play-
|
|
1
|
+
import { a as animate, c as control, g as group } from '../chunks/index-gwb-TO6r.js';
|
|
2
|
+
import { s as sceneToAnimation } from '../chunks/play-CkjaaN6e.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* `motionary/motion/scene` (= `motionary/components/motion-scene`, 14.0) — `playScene()`: play a
|
|
@@ -38,4 +38,4 @@ function playScene(root, doc, options = {}) {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
export { playScene };
|
|
41
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v14.
|
|
41
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v14.2.0/dist/components/motion-scene.js.map
|