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.
Files changed (967) hide show
  1. package/CHANGELOG.md +107 -1
  2. package/README.md +10 -4
  3. package/README_ja.md +1 -1
  4. package/README_zh.md +1 -1
  5. package/bin/motionary.mjs +63 -0
  6. package/bin/public-paths.mjs +4 -0
  7. package/dist/chunks/{anim-image-DodXfc61.cjs → anim-image-CHdhCFU7.cjs} +2 -2
  8. package/dist/chunks/{anim-image-ClUQGh0E.js → anim-image-DkioZN9X.js} +2 -2
  9. package/dist/chunks/audio-D0LwPShE.cjs +1 -1
  10. package/dist/chunks/{audio-CfvQzwt5.js → audio-D7mfQAUI.js} +4 -4
  11. package/dist/chunks/badge-wall-CITexuW7.cjs +1 -1
  12. package/dist/chunks/{badge-wall-Bp5kUwTU.js → badge-wall-TxNk_TTE.js} +2 -2
  13. package/dist/chunks/base-BvH4nAcv.cjs +1 -1
  14. package/dist/chunks/{base-D0sRwVz1.js → base-ByyAdGqz.js} +2 -2
  15. package/dist/chunks/{bg-generator-CbdOCgcF.js → bg-generator-BJ0Obz4R.js} +2 -2
  16. package/dist/chunks/bg-generator-CML8tPN8.cjs +1 -1
  17. package/dist/chunks/bind-B_CTL6Qn.js +1 -1
  18. package/dist/chunks/bind-Ui43-n2d.cjs +1 -1
  19. package/dist/chunks/{builtins-CY1l_hAW.js → builtins-CpH2mTyp.js} +3 -3
  20. package/dist/chunks/builtins-DweCp29Z.cjs +1 -1
  21. package/dist/chunks/{carousel-Drr0G4y7.js → carousel-Bdl2DpWW.js} +2 -2
  22. package/dist/chunks/carousel-DU3rHTq0.cjs +1 -1
  23. package/dist/chunks/cart-drawer-CkFMKMhx.cjs +1 -1
  24. package/dist/chunks/{cart-drawer-BrBfdhOd.js → cart-drawer-S3X_-dcv.js} +2 -2
  25. package/dist/chunks/{code-export-qPPmVqgS.js → code-export-DwrlLHA5.js} +2 -2
  26. package/dist/chunks/code-export-PdGSl9WE.cjs +1 -1
  27. package/dist/chunks/color-picker-B_xWVH8H.cjs +1 -1
  28. package/dist/chunks/{color-picker-D4-raPTo.js → color-picker-C2PH87yD.js} +2 -2
  29. package/dist/chunks/{command-palette-YgbhCzi2.js → command-palette-7lHRJzV1.js} +2 -2
  30. package/dist/chunks/command-palette-ISetAeX1.cjs +1 -1
  31. package/dist/chunks/{core-BSqTp8Bt.js → core-BPPcJVGQ.js} +2 -2
  32. package/dist/chunks/core-BjcOCpJt.cjs +1 -1
  33. package/dist/chunks/{core-LmWkFGlE.js → core-CfuLPjGf.js} +2 -2
  34. package/dist/chunks/core-DbAYRKnS.cjs +1 -1
  35. package/dist/chunks/core-Dj6iomdc.js +1 -1
  36. package/dist/chunks/core-DjjKLmZ6.cjs +1 -1
  37. package/dist/chunks/{countdown-CE26Bi78.js → countdown-C4M4Ymbd.js} +2 -2
  38. package/dist/chunks/countdown-RQViryt7.cjs +1 -1
  39. package/dist/chunks/date-picker-BgApzPNn.cjs +1 -1
  40. package/dist/chunks/{date-picker-a677RmYE.js → date-picker-D1FhYimW.js} +2 -2
  41. package/dist/chunks/ease-HwYZnZat.cjs +1 -1
  42. package/dist/chunks/ease-XN8_0sXu.js +1 -1
  43. package/dist/chunks/{equalizer-2GzcV-8j.js → equalizer-Dxl2dMWN.js} +2 -2
  44. package/dist/chunks/equalizer-_eD_ZdCl.cjs +1 -1
  45. package/dist/chunks/festival-banner-Bs18K0MJ.cjs +1 -1
  46. package/dist/chunks/{festival-banner-Cfbi5oks.js → festival-banner-RkIBAUue.js} +2 -2
  47. package/dist/chunks/{field-B3_pZbPt.js → field-B_JKBZ66.js} +2 -2
  48. package/dist/chunks/field-Dwq8-CLN.cjs +1 -1
  49. package/dist/chunks/{format-B2XGhlqH.js → format-ClNijrhe.js} +2 -2
  50. package/dist/chunks/format-DrRrPbjl.cjs +1 -1
  51. package/dist/chunks/fx-DaVuB89C.cjs +1 -1
  52. package/dist/chunks/{fx-szWxgCx0.js → fx-lkOk6ZLK.js} +2 -2
  53. package/dist/chunks/generative-BKoxWOSP.cjs +1 -1
  54. package/dist/chunks/{generative-D1QtbFNP.js → generative-CbMIaqxn.js} +2 -2
  55. package/dist/chunks/{gl-scene-C2-f72GW.js → gl-scene-6k5slLJ1.js} +3 -3
  56. package/dist/chunks/{gl-scene-CVQgoCo9.cjs → gl-scene-Btp6k9ym.cjs} +2 -2
  57. package/dist/chunks/globe-DA0jyb6s.cjs +1 -1
  58. package/dist/chunks/{globe-C2UzKQJI.js → globe-ejBBHY6v.js} +2 -2
  59. package/dist/chunks/{gpu-D7wkP6SZ.js → gpu-C0vrwBcn.js} +4 -4
  60. package/dist/chunks/gpu-C2C6iBQC.cjs +1 -1
  61. package/dist/chunks/{gpu-particles-Dw2HV4Me.js → gpu-particles-BvUfEndq.js} +2 -2
  62. package/dist/chunks/gpu-particles-wEO_rds1.cjs +1 -1
  63. package/dist/chunks/{index-B65QsFQk.cjs → index-C9_FEsfz.cjs} +3 -2
  64. package/dist/chunks/{index-DSF6GbSF.js → index-gwb-TO6r.js} +8 -7
  65. package/dist/chunks/index-tags-B-JBecYg.js +1 -1
  66. package/dist/chunks/index-tags-hLIF2Clq.cjs +1 -1
  67. package/dist/chunks/key-click-BLm3BI8_.js +1 -1
  68. package/dist/chunks/key-click-v7I4K5Sr.cjs +1 -1
  69. package/dist/chunks/{keyframes-BBxaMajc.js → keyframes-BikOcXxh.js} +2 -2
  70. package/dist/chunks/{keyframes-DJtDafnp.cjs → keyframes-Dqk1X3Q5.cjs} +2 -2
  71. package/dist/chunks/{leaderboard-odMGN-i2.js → leaderboard-BmACkMks.js} +2 -2
  72. package/dist/chunks/leaderboard-DvSSQ8o3.cjs +1 -1
  73. package/dist/chunks/{location-card-B7LwfBVv.js → location-card-9SyNFFc7.js} +2 -2
  74. package/dist/chunks/location-card-DSPTApUe.cjs +1 -1
  75. package/dist/chunks/lottie-icon-BoxkukMd.cjs +1 -1
  76. package/dist/chunks/{lottie-icon-BsW6EvKG.js → lottie-icon-CGG_tfjT.js} +2 -2
  77. package/dist/chunks/{lottie-player-Bl1gLrZT.js → lottie-player-CwD15LsB.js} +3 -3
  78. package/dist/chunks/{lottie-player-BCoUFOkM.cjs → lottie-player-DbEnSefT.cjs} +2 -2
  79. package/dist/chunks/lyrics-CRB7dA1j.cjs +1 -1
  80. package/dist/chunks/{lyrics-CfAOpxkR.js → lyrics-D7iF9I0S.js} +2 -2
  81. package/dist/chunks/{manifest-mzYIR0fB.js → manifest-i1lnR0qJ.js} +2 -2
  82. package/dist/chunks/manifest-xr3WET80.cjs +1 -1
  83. package/dist/chunks/menu-CZ1zHTT9.cjs +1 -1
  84. package/dist/chunks/{menu-Bwy7HGGu.js → menu-DrQfp6bJ.js} +2 -2
  85. package/dist/chunks/menu-toggle-DGXN4VsN.cjs +1 -1
  86. package/dist/chunks/{menu-toggle-9o38aUlM.js → menu-toggle-DI8fAtZ0.js} +2 -2
  87. package/dist/chunks/nav-morph-C4rD3wrU.cjs +1 -1
  88. package/dist/chunks/{nav-morph-CmqTSjWr.js → nav-morph-CBZ5HXQo.js} +2 -2
  89. package/dist/chunks/{otp-DlwGTaHQ.js → otp-C1l7yq3_.js} +2 -2
  90. package/dist/chunks/otp-DUyEWYMi.cjs +1 -1
  91. package/dist/chunks/pagination-DHmYZZU9.cjs +1 -1
  92. package/dist/chunks/{pagination-9Kv3ngXX.js → pagination-JG7Hw-q-.js} +2 -2
  93. package/dist/chunks/{physics-playground-BOwru4ar.cjs → physics-playground-CxN5MmrO.cjs} +2 -2
  94. package/dist/chunks/{physics-playground-DsnhVbVr.js → physics-playground-D4pkMRhy.js} +3 -3
  95. package/dist/chunks/{play-BdevnnRU.js → play-CkjaaN6e.js} +2 -2
  96. package/dist/chunks/play-DCeKlDqE.cjs +1 -1
  97. package/dist/chunks/player-BJPVdtzo.cjs +1 -1
  98. package/dist/chunks/{player-D18aHq0n.js → player-DkhZKVZX.js} +4 -4
  99. package/dist/chunks/{player-core-DR1WR-41.js → player-core-BGIt5Gzl.js} +4 -4
  100. package/dist/chunks/player-core-BTFa6_IO.cjs +1 -1
  101. package/dist/chunks/{presence-DQsKeMSf.js → presence-BQ2mRjpt.js} +2 -2
  102. package/dist/chunks/presence-DAthlALi.cjs +1 -1
  103. package/dist/chunks/presets-BYBVJVeP.js +1 -1
  104. package/dist/chunks/presets-CUHys3sK.cjs +1 -1
  105. package/dist/chunks/{prize-wheel-D2MlXZz3.js → prize-wheel-B5YpUMgr.js} +2 -2
  106. package/dist/chunks/prize-wheel-emDopI5c.cjs +1 -1
  107. package/dist/chunks/{product-gallery-BznJaf2u.js → product-gallery-BpJEGKIw.js} +2 -2
  108. package/dist/chunks/product-gallery-CKtSVhZk.cjs +1 -1
  109. package/dist/chunks/progress-ring-C75O4MUi.cjs +1 -1
  110. package/dist/chunks/{progress-ring-DTbpqpsJ.js → progress-ring-CRSbrt2I.js} +2 -2
  111. package/dist/chunks/{prop-panel-DTDO4kVW.js → prop-panel-D4DEkdXL.js} +2 -2
  112. package/dist/chunks/prop-panel-DFqga6H5.cjs +1 -1
  113. package/dist/chunks/radar-D-bZRrgs.cjs +1 -1
  114. package/dist/chunks/{radar-lUFsshFe.js → radar-DE_QcCUX.js} +2 -2
  115. package/dist/chunks/reactions-BL2iO8iy.cjs +1 -1
  116. package/dist/chunks/{reactions-zFqABIRz.js → reactions-BV57Pw0R.js} +2 -2
  117. package/dist/chunks/{registry-DwxAf29L.js → registry-BCFobMY2.js} +2 -2
  118. package/dist/chunks/registry-CibnX7Ui.cjs +1 -1
  119. package/dist/chunks/{registry-ChLWwIC4.cjs → registry-Cy7Nk97K.cjs} +2 -2
  120. package/dist/chunks/{registry-CE5_Mo_p.js → registry-RLD_spxR.js} +2 -2
  121. package/dist/chunks/{retro-button-CS_yN0sA.js → retro-button-CrbkhjHv.js} +2 -2
  122. package/dist/chunks/retro-button-DrrBZ6w8.cjs +1 -1
  123. package/dist/chunks/{rive-BTqu1owb.js → rive-Bt5R5BjT.js} +2 -2
  124. package/dist/chunks/rive-D6X4J0Mi.cjs +1 -1
  125. package/dist/chunks/{runtime-link-Bg6c5x7w.js → runtime-link-3fqOLtwH.js} +2 -2
  126. package/dist/chunks/{runtime-link-ykoWOFHQ.cjs → runtime-link-BWMZB3tC.cjs} +2 -2
  127. package/dist/chunks/{scene-DWNb4Lb1.js → scene-Bc03O1V2.js} +2 -2
  128. package/dist/chunks/scene-C4h75wjo.cjs +1 -1
  129. package/dist/chunks/scroll-driven-CQbwzCdn.cjs +1 -1
  130. package/dist/chunks/scroll-driven-LghshrWq.js +1 -1
  131. package/dist/chunks/{scroll-scene-DQBNf7Q4.js → scroll-scene-CmvOpk6I.js} +4 -4
  132. package/dist/chunks/{scroll-scene-C_d8SE9e.cjs → scroll-scene-Xk4OKyWQ.cjs} +3 -3
  133. package/dist/chunks/{segmented-Dn8MH47H.js → segmented-Bqxe4qRo.js} +2 -2
  134. package/dist/chunks/segmented-CpB4mKIn.cjs +1 -1
  135. package/dist/chunks/shader-backdrop-BodjXMhw.cjs +1 -1
  136. package/dist/chunks/{shader-backdrop-Cnq8-zUi.js → shader-backdrop-C49tKiU1.js} +2 -2
  137. package/dist/chunks/shared-Bf72wLyt.cjs +1 -1
  138. package/dist/chunks/shared-CkKHWrtJ.js +1 -1
  139. package/dist/chunks/shared-jkgRH-Hx.cjs +1 -1
  140. package/dist/chunks/shared-o9CtwHmi.js +1 -1
  141. package/dist/chunks/sheet-B38ylIEW.cjs +1 -1
  142. package/dist/chunks/{sheet-CeSuvE2R.js → sheet-DZXot7SV.js} +2 -2
  143. package/dist/chunks/sign-DvZ1jHxE.js +1 -1
  144. package/dist/chunks/sign-RAkQIWrM.cjs +1 -1
  145. package/dist/chunks/{skeleton-reveal-WR9NVMyM.js → skeleton-reveal-CMqfJYM2.js} +2 -2
  146. package/dist/chunks/skeleton-reveal-Dsd3Wp0n.cjs +1 -1
  147. package/dist/chunks/{sparkline-4vqobz_N.js → sparkline-3fxOzufX.js} +2 -2
  148. package/dist/chunks/sparkline-DeKhZpVo.cjs +1 -1
  149. package/dist/chunks/{spring-CpnuPym2.js → spring-CLwlIQHm.js} +2 -2
  150. package/dist/chunks/spring-XEl_diDJ.cjs +1 -1
  151. package/dist/chunks/stagger-B9sKPwQB.js +1 -1
  152. package/dist/chunks/stagger-DFKwqOQG.cjs +1 -1
  153. package/dist/chunks/{suggestion-chips-CuuKEDNG.js → suggestion-chips-BwKPsDra.js} +2 -2
  154. package/dist/chunks/suggestion-chips-CAcbFTr4.cjs +1 -1
  155. package/dist/chunks/{switch-WErIYZJD.js → switch-CMtM5gqP.js} +2 -2
  156. package/dist/chunks/switch-DiTlApGd.cjs +1 -1
  157. package/dist/chunks/tab-bar-BBlVAqbq.cjs +1 -1
  158. package/dist/chunks/{tab-bar-D01Yx5Qz.js → tab-bar-COPkxGY6.js} +2 -2
  159. package/dist/chunks/{ticker-DxG5WlGA.js → ticker-DQIpLv48.js} +2 -2
  160. package/dist/chunks/{ticker-CdX1xnUl.cjs → ticker-crNxbg2p.cjs} +2 -2
  161. package/dist/chunks/{tip-BsX2--FP.js → tip-D4DdDz83.js} +2 -2
  162. package/dist/chunks/tip-VGS3qAUm.cjs +1 -1
  163. package/dist/chunks/{toast-stack-Cdu0GOkt.js → toast-stack-Cx1aTwf5.js} +3 -3
  164. package/dist/chunks/toast-stack-DprisNp_.cjs +1 -1
  165. package/dist/chunks/{tween-CB3CoBmZ.js → tween-Bx-UetkK.js} +2 -2
  166. package/dist/chunks/{tween-BEox7vZY.cjs → tween-CnVJt41b.cjs} +2 -2
  167. package/dist/chunks/upload-progress-CEAWkP-p.cjs +1 -1
  168. package/dist/chunks/{upload-progress-DguzIPm0.js → upload-progress-Px_Zdd9c.js} +2 -2
  169. package/dist/chunks/{variants-Dvcgx0pd.js → variants-BV9wFxiP.js} +2 -2
  170. package/dist/chunks/variants-BtqEJuki.cjs +1 -1
  171. package/dist/chunks/viewport-BAXHhZLV.js +1 -1
  172. package/dist/chunks/viewport-EFYGqMNa.cjs +1 -1
  173. package/dist/chunks/voice-button-9UauxvT9.cjs +1 -1
  174. package/dist/chunks/{voice-button-DBAXRVMZ.js → voice-button-CmbZldLT.js} +2 -2
  175. package/dist/chunks/weather-card-4Eg6e43D.cjs +1 -1
  176. package/dist/chunks/{weather-card-DQ9HUFd4.js → weather-card-BdvgvAxQ.js} +2 -2
  177. package/dist/chunks/{worker-canvas-BZKnSNtg.js → worker-canvas-BLXaLvtq.js} +2 -2
  178. package/dist/chunks/worker-canvas-BMBXAFWp.cjs +1 -1
  179. package/dist/chunks/{xp-bar-CxjWJQFS.js → xp-bar-CjOalkPm.js} +2 -2
  180. package/dist/chunks/xp-bar-DkWfCTfB.cjs +1 -1
  181. package/dist/components/a11y.cjs +1 -1
  182. package/dist/components/a11y.js +3 -3
  183. package/dist/components/ai.cjs +1 -1
  184. package/dist/components/ai.js +1 -1
  185. package/dist/components/angular.cjs +1 -1
  186. package/dist/components/angular.js +1 -1
  187. package/dist/components/background.cjs +1 -1
  188. package/dist/components/background.js +3 -3
  189. package/dist/components/bridge.cjs +1 -1
  190. package/dist/components/bridge.js +2 -2
  191. package/dist/components/cards.cjs +1 -1
  192. package/dist/components/cards.js +3 -3
  193. package/dist/components/click.cjs +1 -1
  194. package/dist/components/click.js +4 -4
  195. package/dist/components/compat-v13.cjs +1 -1
  196. package/dist/components/compat-v13.js +3 -3
  197. package/dist/components/core.cjs +1 -1
  198. package/dist/components/core.js +1 -1
  199. package/dist/components/depth.cjs +1 -1
  200. package/dist/components/depth.js +4 -4
  201. package/dist/components/design.cjs +1 -1
  202. package/dist/components/design.js +2 -2
  203. package/dist/components/dotlottie.cjs +3 -3
  204. package/dist/components/dotlottie.js +4 -4
  205. package/dist/components/dsl.cjs +1 -1
  206. package/dist/components/dsl.js +2 -2
  207. package/dist/components/effects.cjs +1 -1
  208. package/dist/components/effects.js +10 -10
  209. package/dist/components/engine.cjs +1 -1
  210. package/dist/components/engine.js +3 -3
  211. package/dist/components/feedback.cjs +1 -1
  212. package/dist/components/feedback.js +2 -2
  213. package/dist/components/fx-3d.cjs +1 -1
  214. package/dist/components/fx-3d.js +3 -3
  215. package/dist/components/fx-ai.cjs +1 -1
  216. package/dist/components/fx-ai.js +2 -2
  217. package/dist/components/fx-chart.cjs +1 -1
  218. package/dist/components/fx-chart.js +2 -2
  219. package/dist/components/fx-cinema.cjs +1 -1
  220. package/dist/components/fx-cinema.js +2 -2
  221. package/dist/components/fx-cyber.cjs +1 -1
  222. package/dist/components/fx-cyber.js +2 -2
  223. package/dist/components/fx-festival.cjs +1 -1
  224. package/dist/components/fx-festival.js +2 -2
  225. package/dist/components/fx-focus.cjs +1 -1
  226. package/dist/components/fx-focus.js +2 -2
  227. package/dist/components/fx-form.cjs +1 -1
  228. package/dist/components/fx-form.js +2 -2
  229. package/dist/components/fx-game.cjs +1 -1
  230. package/dist/components/fx-game.js +2 -2
  231. package/dist/components/fx-genart.cjs +1 -1
  232. package/dist/components/fx-genart.js +2 -2
  233. package/dist/components/fx-geo.cjs +1 -1
  234. package/dist/components/fx-geo.js +2 -2
  235. package/dist/components/fx-gesture.cjs +1 -1
  236. package/dist/components/fx-gesture.js +2 -2
  237. package/dist/components/fx-gpu.cjs +1 -1
  238. package/dist/components/fx-gpu.js +4 -4
  239. package/dist/components/fx-light.cjs +1 -1
  240. package/dist/components/fx-light.js +4 -4
  241. package/dist/components/fx-lottie.cjs +1 -1
  242. package/dist/components/fx-lottie.js +2 -2
  243. package/dist/components/fx-morph.cjs +1 -1
  244. package/dist/components/fx-morph.js +2 -2
  245. package/dist/components/fx-music.cjs +1 -1
  246. package/dist/components/fx-music.js +5 -5
  247. package/dist/components/fx-organic.cjs +1 -1
  248. package/dist/components/fx-organic.js +2 -2
  249. package/dist/components/fx-paper.cjs +1 -1
  250. package/dist/components/fx-paper.js +2 -2
  251. package/dist/components/fx-perf.cjs +1 -1
  252. package/dist/components/fx-perf.js +3 -3
  253. package/dist/components/fx-physics.cjs +1 -1
  254. package/dist/components/fx-physics.js +4 -4
  255. package/dist/components/fx-retro.cjs +1 -1
  256. package/dist/components/fx-retro.js +2 -2
  257. package/dist/components/fx-safe.cjs +1 -1
  258. package/dist/components/fx-safe.js +3 -3
  259. package/dist/components/fx-shop.cjs +1 -1
  260. package/dist/components/fx-shop.js +2 -2
  261. package/dist/components/fx-social.cjs +1 -1
  262. package/dist/components/fx-social.js +2 -2
  263. package/dist/components/fx-spatial.cjs +1 -1
  264. package/dist/components/fx-spatial.js +2 -2
  265. package/dist/components/fx-surface.cjs +1 -1
  266. package/dist/components/fx-surface.js +2 -2
  267. package/dist/components/fx-text.cjs +1 -1
  268. package/dist/components/fx-text.js +3 -3
  269. package/dist/components/fx-transitions.cjs +1 -1
  270. package/dist/components/fx-transitions.js +4 -4
  271. package/dist/components/fx-video.cjs +1 -1
  272. package/dist/components/fx-video.js +3 -3
  273. package/dist/components/fx-weather.cjs +1 -1
  274. package/dist/components/fx-weather.js +3 -3
  275. package/dist/components/fx.cjs +1 -1
  276. package/dist/components/fx.js +5 -5
  277. package/dist/components/fx2.cjs +1 -1
  278. package/dist/components/fx2.js +5 -5
  279. package/dist/components/gesture.cjs +1 -1
  280. package/dist/components/gesture.js +5 -5
  281. package/dist/components/gl-model.cjs +3 -3
  282. package/dist/components/gl-model.js +4 -4
  283. package/dist/components/gl-pool.cjs +1 -1
  284. package/dist/components/gl-pool.js +1 -1
  285. package/dist/components/interaction.cjs +1 -1
  286. package/dist/components/interaction.js +2 -2
  287. package/dist/components/jsx.cjs +1 -1
  288. package/dist/components/jsx.js +1 -1
  289. package/dist/components/layout.cjs +1 -1
  290. package/dist/components/layout.js +2 -2
  291. package/dist/components/lazy.cjs +1 -1
  292. package/dist/components/lazy.js +1 -1
  293. package/dist/components/lite.cjs +1 -1
  294. package/dist/components/lite.js +1 -1
  295. package/dist/components/marketplace.cjs +1 -1
  296. package/dist/components/marketplace.js +3 -3
  297. package/dist/components/motion-layout.cjs +566 -0
  298. package/dist/components/motion-layout.d.cts +209 -0
  299. package/dist/components/motion-layout.d.ts +209 -0
  300. package/dist/components/motion-layout.js +543 -0
  301. package/dist/components/motion-scene.cjs +2 -2
  302. package/dist/components/motion-scene.js +3 -3
  303. package/dist/components/motion-tokens.cjs +837 -0
  304. package/dist/components/motion-tokens.d.cts +242 -0
  305. package/dist/components/motion-tokens.d.ts +242 -0
  306. package/dist/components/motion-tokens.js +811 -0
  307. package/dist/components/motion.cjs +2 -2
  308. package/dist/components/motion.js +5 -5
  309. package/dist/components/native.cjs +1 -1
  310. package/dist/components/native.js +1 -1
  311. package/dist/components/offscreen.cjs +1 -1
  312. package/dist/components/offscreen.js +3 -3
  313. package/dist/components/packs.cjs +1 -1
  314. package/dist/components/packs.js +2 -2
  315. package/dist/components/page.cjs +1 -1
  316. package/dist/components/page.js +4 -4
  317. package/dist/components/perf-tasks.cjs +1 -1
  318. package/dist/components/perf-tasks.js +2 -2
  319. package/dist/components/perf.cjs +1 -1
  320. package/dist/components/perf.js +3 -3
  321. package/dist/components/physics.cjs +1 -1
  322. package/dist/components/physics.js +4 -4
  323. package/dist/components/plugins.cjs +1 -1
  324. package/dist/components/plugins.js +2 -2
  325. package/dist/components/react.cjs +1 -1
  326. package/dist/components/react.js +1 -1
  327. package/dist/components/reveal.cjs +1 -1
  328. package/dist/components/reveal.js +2 -2
  329. package/dist/components/scene-v2.cjs +1 -1
  330. package/dist/components/scene-v2.js +3 -3
  331. package/dist/components/snap-carousel.cjs +2 -2
  332. package/dist/components/snap-carousel.js +3 -3
  333. package/dist/components/solid.cjs +1 -1
  334. package/dist/components/solid.js +1 -1
  335. package/dist/components/svelte.cjs +1 -1
  336. package/dist/components/svelte.js +1 -1
  337. package/dist/components/svg.cjs +1 -1
  338. package/dist/components/svg.js +2 -2
  339. package/dist/components/text.cjs +1 -1
  340. package/dist/components/text.js +3 -3
  341. package/dist/components/timeline-editor.cjs +1 -1
  342. package/dist/components/timeline-editor.js +5 -5
  343. package/dist/components/timeline.cjs +1 -1
  344. package/dist/components/timeline.js +4 -4
  345. package/dist/components/tokens.cjs +1 -1
  346. package/dist/components/tokens.js +1 -1
  347. package/dist/components/transitions.cjs +1 -1
  348. package/dist/components/transitions.js +2 -2
  349. package/dist/components/ui.cjs +1 -1
  350. package/dist/components/ui.js +5 -5
  351. package/dist/components/vue.cjs +1 -1
  352. package/dist/components/vue.js +1 -1
  353. package/dist/components/webgl.cjs +1 -1
  354. package/dist/components/webgl.js +2 -2
  355. package/dist/components/widgets.cjs +5 -5
  356. package/dist/components/widgets.js +101 -101
  357. package/dist/components.cjs +1 -1
  358. package/dist/components.js +11 -11
  359. package/dist/components.umd.js +1 -1
  360. package/dist/effects/achievement-unlock.cjs +1 -1
  361. package/dist/effects/achievement-unlock.js +2 -2
  362. package/dist/effects/aurora-veil.cjs +1 -1
  363. package/dist/effects/aurora-veil.js +2 -2
  364. package/dist/effects/badge-pop.cjs +1 -1
  365. package/dist/effects/badge-pop.js +2 -2
  366. package/dist/effects/bars-grow.cjs +1 -1
  367. package/dist/effects/bars-grow.js +2 -2
  368. package/dist/effects/beat-bounce.cjs +1 -1
  369. package/dist/effects/beat-bounce.js +2 -2
  370. package/dist/effects/blob-button.cjs +1 -1
  371. package/dist/effects/blob-button.js +2 -2
  372. package/dist/effects/bloom.cjs +1 -1
  373. package/dist/effects/bloom.js +2 -2
  374. package/dist/effects/breathe.cjs +1 -1
  375. package/dist/effects/breathe.js +2 -2
  376. package/dist/effects/brushed-metal.cjs +1 -1
  377. package/dist/effects/brushed-metal.js +2 -2
  378. package/dist/effects/camera-dolly.cjs +1 -1
  379. package/dist/effects/camera-dolly.js +2 -2
  380. package/dist/effects/card-flip-3d.cjs +1 -1
  381. package/dist/effects/card-flip-3d.js +2 -2
  382. package/dist/effects/chest-open.cjs +1 -1
  383. package/dist/effects/chest-open.js +2 -2
  384. package/dist/effects/cloth.cjs +1 -1
  385. package/dist/effects/cloth.js +2 -2
  386. package/dist/effects/coin-burst.cjs +1 -1
  387. package/dist/effects/coin-burst.js +2 -2
  388. package/dist/effects/color-pulse.cjs +1 -1
  389. package/dist/effects/color-pulse.js +2 -2
  390. package/dist/effects/crt-power.cjs +1 -1
  391. package/dist/effects/crt-power.js +2 -2
  392. package/dist/effects/crumple.cjs +1 -1
  393. package/dist/effects/crumple.js +2 -2
  394. package/dist/effects/data-decode.cjs +1 -1
  395. package/dist/effects/data-decode.js +2 -2
  396. package/dist/effects/day-cycle.cjs +1 -1
  397. package/dist/effects/day-cycle.js +2 -2
  398. package/dist/effects/depth-in.cjs +1 -1
  399. package/dist/effects/depth-in.js +2 -2
  400. package/dist/effects/depth-pop.cjs +1 -1
  401. package/dist/effects/depth-pop.js +2 -2
  402. package/dist/effects/depth-stack.cjs +1 -1
  403. package/dist/effects/depth-stack.js +2 -2
  404. package/dist/effects/dolly-in.cjs +1 -1
  405. package/dist/effects/dolly-in.js +2 -2
  406. package/dist/effects/dots-pop.cjs +1 -1
  407. package/dist/effects/dots-pop.js +2 -2
  408. package/dist/effects/field-shake.cjs +1 -1
  409. package/dist/effects/field-shake.js +2 -2
  410. package/dist/effects/field-success.cjs +1 -1
  411. package/dist/effects/field-success.js +2 -2
  412. package/dist/effects/film-burn.cjs +1 -1
  413. package/dist/effects/film-burn.js +2 -2
  414. package/dist/effects/fire.cjs +1 -1
  415. package/dist/effects/fire.js +3 -3
  416. package/dist/effects/fireflies.cjs +1 -1
  417. package/dist/effects/fireflies.js +3 -3
  418. package/dist/effects/firework-burst.cjs +1 -1
  419. package/dist/effects/firework-burst.js +2 -2
  420. package/dist/effects/flip-chars.cjs +1 -1
  421. package/dist/effects/flip-chars.js +2 -2
  422. package/dist/effects/fluid.cjs +1 -1
  423. package/dist/effects/fluid.js +3 -3
  424. package/dist/effects/fly-to-cart.cjs +1 -1
  425. package/dist/effects/fly-to-cart.js +2 -2
  426. package/dist/effects/focus-draw.cjs +1 -1
  427. package/dist/effects/focus-draw.js +2 -2
  428. package/dist/effects/focus-glow.cjs +1 -1
  429. package/dist/effects/focus-glow.js +2 -2
  430. package/dist/effects/fog.cjs +1 -1
  431. package/dist/effects/fog.js +2 -2
  432. package/dist/effects/font-breathe.cjs +1 -1
  433. package/dist/effects/font-breathe.js +2 -2
  434. package/dist/effects/form-cascade.cjs +1 -1
  435. package/dist/effects/form-cascade.js +2 -2
  436. package/dist/effects/gen-skeleton.cjs +1 -1
  437. package/dist/effects/gen-skeleton.js +2 -2
  438. package/dist/effects/glass-frost.cjs +1 -1
  439. package/dist/effects/glass-frost.js +2 -2
  440. package/dist/effects/glitch-text.cjs +1 -1
  441. package/dist/effects/glitch-text.js +2 -2
  442. package/dist/effects/globe-spin.cjs +1 -1
  443. package/dist/effects/globe-spin.js +2 -2
  444. package/dist/effects/god-rays.cjs +1 -1
  445. package/dist/effects/god-rays.js +2 -2
  446. package/dist/effects/gpu-lift.cjs +1 -1
  447. package/dist/effects/gpu-lift.js +2 -2
  448. package/dist/effects/grain-flicker.cjs +1 -1
  449. package/dist/effects/grain-flicker.js +2 -2
  450. package/dist/effects/halftone-in.cjs +1 -1
  451. package/dist/effects/halftone-in.js +2 -2
  452. package/dist/effects/highlight-sweep.cjs +1 -1
  453. package/dist/effects/highlight-sweep.js +2 -2
  454. package/dist/effects/hologram.cjs +1 -1
  455. package/dist/effects/hologram.js +2 -2
  456. package/dist/effects/hud-frame.cjs +1 -1
  457. package/dist/effects/hud-frame.js +2 -2
  458. package/dist/effects/icon-pop.cjs +1 -1
  459. package/dist/effects/icon-pop.js +2 -2
  460. package/dist/effects/icon-swap.cjs +1 -1
  461. package/dist/effects/icon-swap.js +2 -2
  462. package/dist/effects/idle-reveal.cjs +1 -1
  463. package/dist/effects/idle-reveal.js +2 -2
  464. package/dist/effects/ink.cjs +1 -1
  465. package/dist/effects/ink.js +3 -3
  466. package/dist/effects/jump-cut.cjs +1 -1
  467. package/dist/effects/jump-cut.js +2 -2
  468. package/dist/effects/kaleido.cjs +1 -1
  469. package/dist/effects/kaleido.js +2 -2
  470. package/dist/effects/label-float.cjs +1 -1
  471. package/dist/effects/label-float.js +2 -2
  472. package/dist/effects/lantern-rise.cjs +1 -1
  473. package/dist/effects/lantern-rise.js +2 -2
  474. package/dist/effects/leaves.cjs +1 -1
  475. package/dist/effects/leaves.js +3 -3
  476. package/dist/effects/letterbox.cjs +1 -1
  477. package/dist/effects/letterbox.js +2 -2
  478. package/dist/effects/level-up.cjs +1 -1
  479. package/dist/effects/level-up.js +2 -2
  480. package/dist/effects/light-follow.cjs +1 -1
  481. package/dist/effects/light-follow.js +2 -2
  482. package/dist/effects/lightning.cjs +1 -1
  483. package/dist/effects/lightning.js +2 -2
  484. package/dist/effects/line-draw.cjs +1 -1
  485. package/dist/effects/line-draw.js +2 -2
  486. package/dist/effects/liquid-text.cjs +1 -1
  487. package/dist/effects/liquid-text.js +2 -2
  488. package/dist/effects/liquid-wipe.cjs +1 -1
  489. package/dist/effects/liquid-wipe.js +2 -2
  490. package/dist/effects/lottie-play.cjs +1 -1
  491. package/dist/effects/lottie-play.js +2 -2
  492. package/dist/effects/magnet.cjs +1 -1
  493. package/dist/effects/magnet.js +2 -2
  494. package/dist/effects/marching-ants.cjs +1 -1
  495. package/dist/effects/marching-ants.js +2 -2
  496. package/dist/effects/marker-pulse.cjs +1 -1
  497. package/dist/effects/marker-pulse.js +2 -2
  498. package/dist/effects/mention-glow.cjs +1 -1
  499. package/dist/effects/mention-glow.js +2 -2
  500. package/dist/effects/mesh-drift.cjs +1 -1
  501. package/dist/effects/mesh-drift.js +2 -2
  502. package/dist/effects/message-in.cjs +1 -1
  503. package/dist/effects/message-in.js +2 -2
  504. package/dist/effects/mosaic-flip.cjs +1 -1
  505. package/dist/effects/mosaic-flip.js +2 -2
  506. package/dist/effects/neon-ignite.cjs +1 -1
  507. package/dist/effects/neon-ignite.js +2 -2
  508. package/dist/effects/neon-pulse.cjs +1 -1
  509. package/dist/effects/neon-pulse.js +2 -2
  510. package/dist/effects/neon-write.cjs +1 -1
  511. package/dist/effects/neon-write.js +2 -2
  512. package/dist/effects/neu-press.cjs +1 -1
  513. package/dist/effects/neu-press.js +2 -2
  514. package/dist/effects/noise-reveal.cjs +1 -1
  515. package/dist/effects/noise-reveal.js +2 -2
  516. package/dist/effects/number-roll.cjs +1 -1
  517. package/dist/effects/number-roll.js +2 -2
  518. package/dist/effects/orbit-camera.cjs +1 -1
  519. package/dist/effects/orbit-camera.js +2 -2
  520. package/dist/effects/orbit-in.cjs +1 -1
  521. package/dist/effects/orbit-in.js +2 -2
  522. package/dist/effects/origami.cjs +1 -1
  523. package/dist/effects/origami.js +2 -2
  524. package/dist/effects/page-curl.cjs +1 -1
  525. package/dist/effects/page-curl.js +2 -2
  526. package/dist/effects/pan-reveal.cjs +1 -1
  527. package/dist/effects/pan-reveal.js +2 -2
  528. package/dist/effects/paper-unfold.cjs +1 -1
  529. package/dist/effects/paper-unfold.js +2 -2
  530. package/dist/effects/particle-text.cjs +1 -1
  531. package/dist/effects/particle-text.js +2 -2
  532. package/dist/effects/path-morph.cjs +1 -1
  533. package/dist/effects/path-morph.js +2 -2
  534. package/dist/effects/pearlescent.cjs +1 -1
  535. package/dist/effects/pearlescent.js +2 -2
  536. package/dist/effects/pencil-sketch.cjs +1 -1
  537. package/dist/effects/pencil-sketch.js +2 -2
  538. package/dist/effects/pin-drop.cjs +1 -1
  539. package/dist/effects/pin-drop.js +2 -2
  540. package/dist/effects/pinball.cjs +1 -1
  541. package/dist/effects/pinball.js +2 -2
  542. package/dist/effects/pinch-hint.cjs +1 -1
  543. package/dist/effects/pinch-hint.js +2 -2
  544. package/dist/effects/pixelate-in.cjs +1 -1
  545. package/dist/effects/pixelate-in.js +2 -2
  546. package/dist/effects/pointer-shadow.cjs +1 -1
  547. package/dist/effects/pointer-shadow.js +2 -2
  548. package/dist/effects/portal-open.cjs +1 -1
  549. package/dist/effects/portal-open.js +2 -2
  550. package/dist/effects/price-flip.cjs +1 -1
  551. package/dist/effects/price-flip.js +2 -2
  552. package/dist/effects/product-spin.cjs +1 -1
  553. package/dist/effects/product-spin.js +2 -2
  554. package/dist/effects/rack-focus.cjs +1 -1
  555. package/dist/effects/rack-focus.js +2 -2
  556. package/dist/effects/radial-spectrum.cjs +1 -1
  557. package/dist/effects/radial-spectrum.js +2 -2
  558. package/dist/effects/rain-glass.cjs +1 -1
  559. package/dist/effects/rain-glass.js +2 -2
  560. package/dist/effects/reaction-burst.cjs +1 -1
  561. package/dist/effects/reaction-burst.js +2 -2
  562. package/dist/effects/read-receipt.cjs +1 -1
  563. package/dist/effects/read-receipt.js +2 -2
  564. package/dist/effects/refraction.cjs +1 -1
  565. package/dist/effects/refraction.js +2 -2
  566. package/dist/effects/ring-sweep.cjs +1 -1
  567. package/dist/effects/ring-sweep.js +2 -2
  568. package/dist/effects/ripple-dissolve.cjs +1 -1
  569. package/dist/effects/ripple-dissolve.js +2 -2
  570. package/dist/effects/rope.cjs +1 -1
  571. package/dist/effects/rope.js +2 -2
  572. package/dist/effects/route-draw.cjs +1 -1
  573. package/dist/effects/route-draw.js +2 -2
  574. package/dist/effects/safe-fade.cjs +1 -1
  575. package/dist/effects/safe-fade.js +2 -2
  576. package/dist/effects/sakura.cjs +1 -1
  577. package/dist/effects/sakura.js +3 -3
  578. package/dist/effects/sale-shine.cjs +1 -1
  579. package/dist/effects/sale-shine.js +2 -2
  580. package/dist/effects/sankey-flow.cjs +1 -1
  581. package/dist/effects/sankey-flow.js +2 -2
  582. package/dist/effects/scanline-sweep.cjs +1 -1
  583. package/dist/effects/scanline-sweep.js +2 -2
  584. package/dist/effects/shatter.cjs +1 -1
  585. package/dist/effects/shatter.js +2 -2
  586. package/dist/effects/smoke.cjs +1 -1
  587. package/dist/effects/smoke.js +3 -3
  588. package/dist/effects/snowfall.cjs +1 -1
  589. package/dist/effects/snowfall.js +2 -2
  590. package/dist/effects/soft-body.cjs +1 -1
  591. package/dist/effects/soft-body.js +2 -2
  592. package/dist/effects/sound-particles.cjs +1 -1
  593. package/dist/effects/sound-particles.js +2 -2
  594. package/dist/effects/spatial-float.cjs +1 -1
  595. package/dist/effects/spatial-float.js +2 -2
  596. package/dist/effects/spectrum-mirror.cjs +1 -1
  597. package/dist/effects/spectrum-mirror.js +2 -2
  598. package/dist/effects/splash.cjs +1 -1
  599. package/dist/effects/splash.js +3 -3
  600. package/dist/effects/spooky-float.cjs +1 -1
  601. package/dist/effects/spooky-float.js +2 -2
  602. package/dist/effects/stock-pulse.cjs +1 -1
  603. package/dist/effects/stock-pulse.js +2 -2
  604. package/dist/effects/stream-text.cjs +1 -1
  605. package/dist/effects/stream-text.js +2 -2
  606. package/dist/effects/stroke-draw.cjs +1 -1
  607. package/dist/effects/stroke-draw.js +2 -2
  608. package/dist/effects/success-check.cjs +1 -1
  609. package/dist/effects/success-check.js +2 -2
  610. package/dist/effects/swipe-hint.cjs +1 -1
  611. package/dist/effects/swipe-hint.js +2 -2
  612. package/dist/effects/text-trail.cjs +1 -1
  613. package/dist/effects/text-trail.js +2 -2
  614. package/dist/effects/thinking-glow.cjs +1 -1
  615. package/dist/effects/thinking-glow.js +2 -2
  616. package/dist/effects/tilt-wobble.cjs +1 -1
  617. package/dist/effects/tilt-wobble.js +2 -2
  618. package/dist/effects/typing-dots.cjs +1 -1
  619. package/dist/effects/typing-dots.js +2 -2
  620. package/dist/effects/underline-sweep.cjs +1 -1
  621. package/dist/effects/underline-sweep.js +2 -2
  622. package/dist/effects/vhs-glitch.cjs +1 -1
  623. package/dist/effects/vhs-glitch.js +2 -2
  624. package/dist/effects/vine-grow.cjs +1 -1
  625. package/dist/effects/vine-grow.js +2 -2
  626. package/dist/effects/vinyl-spin.cjs +1 -1
  627. package/dist/effects/vinyl-spin.js +2 -2
  628. package/dist/effects/voice-wave.cjs +1 -1
  629. package/dist/effects/voice-wave.js +2 -2
  630. package/dist/effects/water-drop.cjs +1 -1
  631. package/dist/effects/water-drop.js +2 -2
  632. package/dist/effects/watercolor.cjs +1 -1
  633. package/dist/effects/watercolor.js +2 -2
  634. package/dist/effects/waveform-scope.cjs +1 -1
  635. package/dist/effects/waveform-scope.js +2 -2
  636. package/dist/effects/xmas-snow.cjs +1 -1
  637. package/dist/effects/xmas-snow.js +2 -2
  638. package/dist/effects/xp-gain.cjs +1 -1
  639. package/dist/effects/xp-gain.js +2 -2
  640. package/dist/effects/y2k-shine.cjs +1 -1
  641. package/dist/effects/y2k-shine.js +2 -2
  642. package/dist/element.cjs +1 -1
  643. package/dist/element.js +1 -1
  644. package/dist/element.umd.js +1 -1
  645. package/dist/index.cjs +1 -1
  646. package/dist/index.js +2 -2
  647. package/dist/index.umd.js +1 -1
  648. package/dist/llms-full.txt +1 -1
  649. package/dist/llms.txt +1 -1
  650. package/dist/manifest.json +1 -1
  651. package/dist/presets/extended.cjs +1 -1
  652. package/dist/presets/extended.js +1 -1
  653. package/dist/presets-extended.umd.js +1 -1
  654. package/dist/react.cjs +1 -1
  655. package/dist/react.js +1 -1
  656. package/dist/runtime/drag-snap.cjs +2 -2
  657. package/dist/runtime/drag-snap.iife.js +1 -1
  658. package/dist/runtime/drag-snap.js +2 -2
  659. package/dist/runtime/format-apng.cjs +3 -3
  660. package/dist/runtime/format-apng.iife.js +1 -1
  661. package/dist/runtime/format-apng.js +3 -3
  662. package/dist/runtime/format-css.cjs +3 -3
  663. package/dist/runtime/format-css.iife.js +1 -1
  664. package/dist/runtime/format-css.js +3 -3
  665. package/dist/runtime/format-gif.cjs +3 -3
  666. package/dist/runtime/format-gif.iife.js +1 -1
  667. package/dist/runtime/format-gif.js +3 -3
  668. package/dist/runtime/format-gltf.cjs +2 -2
  669. package/dist/runtime/format-gltf.iife.js +1 -1
  670. package/dist/runtime/format-gltf.js +2 -2
  671. package/dist/runtime/format-motion.cjs +4 -4
  672. package/dist/runtime/format-motion.iife.js +1 -1
  673. package/dist/runtime/format-motion.js +4 -4
  674. package/dist/runtime/format-obj.cjs +2 -2
  675. package/dist/runtime/format-obj.iife.js +1 -1
  676. package/dist/runtime/format-obj.js +2 -2
  677. package/dist/runtime/format-scene.cjs +2 -2
  678. package/dist/runtime/format-scene.iife.js +1 -1
  679. package/dist/runtime/format-scene.js +2 -2
  680. package/dist/runtime/format-sprite.cjs +3 -3
  681. package/dist/runtime/format-sprite.iife.js +1 -1
  682. package/dist/runtime/format-sprite.js +3 -3
  683. package/dist/runtime/format-svg.cjs +3 -3
  684. package/dist/runtime/format-svg.iife.js +1 -1
  685. package/dist/runtime/format-svg.js +3 -3
  686. package/dist/runtime/format-webp.cjs +3 -3
  687. package/dist/runtime/format-webp.iife.js +1 -1
  688. package/dist/runtime/format-webp.js +3 -3
  689. package/dist/runtime/gl.cjs +2 -2
  690. package/dist/runtime/gl.iife.js +1 -1
  691. package/dist/runtime/gl.js +2 -2
  692. package/dist/runtime/gltf-anim.cjs +2 -2
  693. package/dist/runtime/gltf-anim.iife.js +1 -1
  694. package/dist/runtime/gltf-anim.js +2 -2
  695. package/dist/runtime/gltf-decoders.cjs +2 -2
  696. package/dist/runtime/gltf-decoders.iife.js +1 -1
  697. package/dist/runtime/gltf-decoders.js +2 -2
  698. package/dist/runtime/lottie-state.cjs +2 -2
  699. package/dist/runtime/lottie-state.iife.js +1 -1
  700. package/dist/runtime/lottie-state.js +2 -2
  701. package/dist/runtime/physics.cjs +2 -2
  702. package/dist/runtime/physics.iife.js +1 -1
  703. package/dist/runtime/physics.js +2 -2
  704. package/dist/runtime/scroll.cjs +3 -3
  705. package/dist/runtime/scroll.iife.js +1 -1
  706. package/dist/runtime/scroll.js +3 -3
  707. package/dist/runtime/smooth.cjs +2 -2
  708. package/dist/runtime/smooth.iife.js +1 -1
  709. package/dist/runtime/smooth.js +2 -2
  710. package/dist/runtime/text.cjs +2 -2
  711. package/dist/runtime/text.iife.js +1 -1
  712. package/dist/runtime/text.js +2 -2
  713. package/dist/runtime/vector.cjs +3 -3
  714. package/dist/runtime/vector.iife.js +1 -1
  715. package/dist/runtime/vector.js +3 -3
  716. package/dist/runtime.cjs +4 -4
  717. package/dist/runtime.d.cts +1 -1
  718. package/dist/runtime.d.ts +1 -1
  719. package/dist/runtime.iife.js +2 -2
  720. package/dist/runtime.js +6 -6
  721. package/dist/solid.cjs +1 -1
  722. package/dist/solid.js +1 -1
  723. package/dist/svelte.cjs +1 -1
  724. package/dist/svelte.js +1 -1
  725. package/dist/vue.cjs +1 -1
  726. package/dist/vue.js +1 -1
  727. package/dist/widgets/add-to-cart.cjs +1 -1
  728. package/dist/widgets/add-to-cart.js +4 -4
  729. package/dist/widgets/badge-wall.cjs +1 -1
  730. package/dist/widgets/badge-wall.js +2 -2
  731. package/dist/widgets/bar-chart.cjs +1 -1
  732. package/dist/widgets/bar-chart.js +2 -2
  733. package/dist/widgets/bg-generator.cjs +1 -1
  734. package/dist/widgets/bg-generator.js +2 -2
  735. package/dist/widgets/carousel.cjs +1 -1
  736. package/dist/widgets/carousel.js +2 -2
  737. package/dist/widgets/cart-drawer.cjs +1 -1
  738. package/dist/widgets/cart-drawer.js +2 -2
  739. package/dist/widgets/chapter-nav.cjs +1 -1
  740. package/dist/widgets/chapter-nav.js +2 -2
  741. package/dist/widgets/chat-composer.cjs +1 -1
  742. package/dist/widgets/chat-composer.js +2 -2
  743. package/dist/widgets/clock-control.cjs +1 -1
  744. package/dist/widgets/clock-control.js +2 -2
  745. package/dist/widgets/code-export.cjs +1 -1
  746. package/dist/widgets/code-export.js +2 -2
  747. package/dist/widgets/color-picker.cjs +1 -1
  748. package/dist/widgets/color-picker.js +2 -2
  749. package/dist/widgets/command-palette.cjs +1 -1
  750. package/dist/widgets/command-palette.js +2 -2
  751. package/dist/widgets/compare.cjs +1 -1
  752. package/dist/widgets/compare.js +2 -2
  753. package/dist/widgets/countdown.cjs +1 -1
  754. package/dist/widgets/countdown.js +2 -2
  755. package/dist/widgets/cube-gallery.cjs +1 -1
  756. package/dist/widgets/cube-gallery.js +2 -2
  757. package/dist/widgets/date-picker.cjs +1 -1
  758. package/dist/widgets/date-picker.js +2 -2
  759. package/dist/widgets/disclosure.cjs +1 -1
  760. package/dist/widgets/disclosure.js +3 -3
  761. package/dist/widgets/dock.cjs +1 -1
  762. package/dist/widgets/dock.js +2 -2
  763. package/dist/widgets/dotlottie.cjs +1 -1
  764. package/dist/widgets/dotlottie.js +1 -1
  765. package/dist/widgets/equalizer.cjs +1 -1
  766. package/dist/widgets/equalizer.js +2 -2
  767. package/dist/widgets/festival-banner.cjs +1 -1
  768. package/dist/widgets/festival-banner.js +2 -2
  769. package/dist/widgets/field.cjs +1 -1
  770. package/dist/widgets/field.js +2 -2
  771. package/dist/widgets/file-drop.cjs +1 -1
  772. package/dist/widgets/file-drop.js +2 -2
  773. package/dist/widgets/gauge.cjs +1 -1
  774. package/dist/widgets/gauge.js +2 -2
  775. package/dist/widgets/gen-art.cjs +1 -1
  776. package/dist/widgets/gen-art.js +2 -2
  777. package/dist/widgets/gesture-sticker.cjs +1 -1
  778. package/dist/widgets/gesture-sticker.js +2 -2
  779. package/dist/widgets/gl-model.cjs +1 -1
  780. package/dist/widgets/gl-model.js +1 -1
  781. package/dist/widgets/gl-scene.cjs +2 -2
  782. package/dist/widgets/gl-scene.js +2 -2
  783. package/dist/widgets/globe.cjs +1 -1
  784. package/dist/widgets/globe.js +2 -2
  785. package/dist/widgets/gpu-particles.cjs +1 -1
  786. package/dist/widgets/gpu-particles.js +2 -2
  787. package/dist/widgets/gyro-card.cjs +1 -1
  788. package/dist/widgets/gyro-card.js +2 -2
  789. package/dist/widgets/hero-video.cjs +1 -1
  790. package/dist/widgets/hero-video.js +2 -2
  791. package/dist/widgets/hud-panel.cjs +1 -1
  792. package/dist/widgets/hud-panel.js +2 -2
  793. package/dist/widgets/hydrate.cjs +1 -1
  794. package/dist/widgets/hydrate.js +2 -2
  795. package/dist/widgets/install-button.cjs +1 -1
  796. package/dist/widgets/install-button.js +2 -2
  797. package/dist/widgets/kanban.cjs +1 -1
  798. package/dist/widgets/kanban.js +2 -2
  799. package/dist/widgets/keyframe-editor.cjs +1 -1
  800. package/dist/widgets/keyframe-editor.js +3 -3
  801. package/dist/widgets/kpi.cjs +1 -1
  802. package/dist/widgets/kpi.js +2 -2
  803. package/dist/widgets/leaderboard.cjs +1 -1
  804. package/dist/widgets/leaderboard.js +2 -2
  805. package/dist/widgets/liquid-nav.cjs +1 -1
  806. package/dist/widgets/liquid-nav.js +2 -2
  807. package/dist/widgets/location-card.cjs +1 -1
  808. package/dist/widgets/location-card.js +2 -2
  809. package/dist/widgets/lottie-icon.cjs +1 -1
  810. package/dist/widgets/lottie-icon.js +2 -2
  811. package/dist/widgets/lottie-player.cjs +2 -2
  812. package/dist/widgets/lottie-player.js +2 -2
  813. package/dist/widgets/lottie.cjs +1 -1
  814. package/dist/widgets/lottie.js +2 -2
  815. package/dist/widgets/lyrics.cjs +1 -1
  816. package/dist/widgets/lyrics.js +2 -2
  817. package/dist/widgets/masonry-flow.cjs +1 -1
  818. package/dist/widgets/masonry-flow.js +2 -2
  819. package/dist/widgets/menu-toggle.cjs +1 -1
  820. package/dist/widgets/menu-toggle.js +2 -2
  821. package/dist/widgets/menu.cjs +1 -1
  822. package/dist/widgets/menu.js +2 -2
  823. package/dist/widgets/message-list.cjs +1 -1
  824. package/dist/widgets/message-list.js +2 -2
  825. package/dist/widgets/milestones.cjs +1 -1
  826. package/dist/widgets/milestones.js +2 -2
  827. package/dist/widgets/modal.cjs +1 -1
  828. package/dist/widgets/modal.js +2 -2
  829. package/dist/widgets/motion-inspector.cjs +2 -2
  830. package/dist/widgets/motion-inspector.js +3 -3
  831. package/dist/widgets/motion-prefs.cjs +1 -1
  832. package/dist/widgets/motion-prefs.js +2 -2
  833. package/dist/widgets/motion-prompt.cjs +1 -1
  834. package/dist/widgets/motion-prompt.js +2 -2
  835. package/dist/widgets/motion-spec.cjs +1 -1
  836. package/dist/widgets/motion-spec.js +2 -2
  837. package/dist/widgets/motion.cjs +1 -1
  838. package/dist/widgets/motion.js +2 -2
  839. package/dist/widgets/music-player.cjs +1 -1
  840. package/dist/widgets/music-player.js +2 -2
  841. package/dist/widgets/native-preview.cjs +1 -1
  842. package/dist/widgets/native-preview.js +2 -2
  843. package/dist/widgets/nav-morph.cjs +1 -1
  844. package/dist/widgets/nav-morph.js +2 -2
  845. package/dist/widgets/notification-bell.cjs +1 -1
  846. package/dist/widgets/notification-bell.js +2 -2
  847. package/dist/widgets/odometer.cjs +1 -1
  848. package/dist/widgets/odometer.js +2 -2
  849. package/dist/widgets/organic-card.cjs +1 -1
  850. package/dist/widgets/organic-card.js +2 -2
  851. package/dist/widgets/otp.cjs +1 -1
  852. package/dist/widgets/otp.js +2 -2
  853. package/dist/widgets/pagination.cjs +1 -1
  854. package/dist/widgets/pagination.js +2 -2
  855. package/dist/widgets/panorama.cjs +1 -1
  856. package/dist/widgets/panorama.js +2 -2
  857. package/dist/widgets/parallax-layers.cjs +1 -1
  858. package/dist/widgets/parallax-layers.js +2 -2
  859. package/dist/widgets/pause-all.cjs +1 -1
  860. package/dist/widgets/pause-all.js +2 -2
  861. package/dist/widgets/perf-monitor.cjs +1 -1
  862. package/dist/widgets/perf-monitor.js +2 -2
  863. package/dist/widgets/physics-playground.cjs +2 -2
  864. package/dist/widgets/physics-playground.js +2 -2
  865. package/dist/widgets/plugin-card.cjs +3 -3
  866. package/dist/widgets/plugin-card.js +4 -4
  867. package/dist/widgets/plugin-store.cjs +1 -1
  868. package/dist/widgets/plugin-store.js +2 -2
  869. package/dist/widgets/presence.cjs +1 -1
  870. package/dist/widgets/presence.js +2 -2
  871. package/dist/widgets/prize-wheel.cjs +1 -1
  872. package/dist/widgets/prize-wheel.js +2 -2
  873. package/dist/widgets/product-gallery.cjs +1 -1
  874. package/dist/widgets/product-gallery.js +2 -2
  875. package/dist/widgets/progress-ring.cjs +1 -1
  876. package/dist/widgets/progress-ring.js +2 -2
  877. package/dist/widgets/prop-panel.cjs +1 -1
  878. package/dist/widgets/prop-panel.js +2 -2
  879. package/dist/widgets/pull-cord.cjs +1 -1
  880. package/dist/widgets/pull-cord.js +2 -2
  881. package/dist/widgets/radar.cjs +1 -1
  882. package/dist/widgets/radar.js +2 -2
  883. package/dist/widgets/reactions.cjs +1 -1
  884. package/dist/widgets/reactions.js +2 -2
  885. package/dist/widgets/red-envelope.cjs +1 -1
  886. package/dist/widgets/red-envelope.js +2 -2
  887. package/dist/widgets/retro-button.cjs +1 -1
  888. package/dist/widgets/retro-button.js +2 -2
  889. package/dist/widgets/rive.cjs +1 -1
  890. package/dist/widgets/rive.js +2 -2
  891. package/dist/widgets/route-transition.cjs +1 -1
  892. package/dist/widgets/route-transition.js +2 -2
  893. package/dist/widgets/scene.cjs +1 -1
  894. package/dist/widgets/scene.js +2 -2
  895. package/dist/widgets/scroll-ring.cjs +1 -1
  896. package/dist/widgets/scroll-ring.js +2 -2
  897. package/dist/widgets/scroll-scene.cjs +2 -2
  898. package/dist/widgets/scroll-scene.js +2 -2
  899. package/dist/widgets/segmented.cjs +1 -1
  900. package/dist/widgets/segmented.js +2 -2
  901. package/dist/widgets/shader-backdrop.cjs +1 -1
  902. package/dist/widgets/shader-backdrop.js +2 -2
  903. package/dist/widgets/sheet.cjs +1 -1
  904. package/dist/widgets/sheet.js +2 -2
  905. package/dist/widgets/shortcut.cjs +1 -1
  906. package/dist/widgets/shortcut.js +3 -3
  907. package/dist/widgets/skeleton-reveal.cjs +1 -1
  908. package/dist/widgets/skeleton-reveal.js +2 -2
  909. package/dist/widgets/sketch-chart.cjs +1 -1
  910. package/dist/widgets/sketch-chart.js +2 -2
  911. package/dist/widgets/smooth-scroll.cjs +2 -2
  912. package/dist/widgets/smooth-scroll.js +3 -3
  913. package/dist/widgets/snap-carousel.cjs +1 -1
  914. package/dist/widgets/snap-carousel.js +1 -1
  915. package/dist/widgets/sparkline.cjs +1 -1
  916. package/dist/widgets/sparkline.js +2 -2
  917. package/dist/widgets/spatial-card.cjs +1 -1
  918. package/dist/widgets/spatial-card.js +2 -2
  919. package/dist/widgets/star-rating.cjs +1 -1
  920. package/dist/widgets/star-rating.js +2 -2
  921. package/dist/widgets/stepper.cjs +1 -1
  922. package/dist/widgets/stepper.js +2 -2
  923. package/dist/widgets/sticky-wall.cjs +1 -1
  924. package/dist/widgets/sticky-wall.js +2 -2
  925. package/dist/widgets/stories.cjs +1 -1
  926. package/dist/widgets/stories.js +2 -2
  927. package/dist/widgets/suggestion-chips.cjs +1 -1
  928. package/dist/widgets/suggestion-chips.js +2 -2
  929. package/dist/widgets/swipe-deck.cjs +1 -1
  930. package/dist/widgets/swipe-deck.js +2 -2
  931. package/dist/widgets/switch.cjs +1 -1
  932. package/dist/widgets/switch.js +2 -2
  933. package/dist/widgets/tab-bar.cjs +1 -1
  934. package/dist/widgets/tab-bar.js +2 -2
  935. package/dist/widgets/terminal.cjs +1 -1
  936. package/dist/widgets/terminal.js +2 -2
  937. package/dist/widgets/text-splitter.cjs +3 -3
  938. package/dist/widgets/text-splitter.js +4 -4
  939. package/dist/widgets/theme-surface.cjs +1 -1
  940. package/dist/widgets/theme-surface.js +2 -2
  941. package/dist/widgets/theme-switcher.cjs +1 -1
  942. package/dist/widgets/theme-switcher.js +2 -2
  943. package/dist/widgets/tip.cjs +1 -1
  944. package/dist/widgets/tip.js +2 -2
  945. package/dist/widgets/toast-stack.cjs +1 -1
  946. package/dist/widgets/toast-stack.js +2 -2
  947. package/dist/widgets/token-editor.cjs +1 -1
  948. package/dist/widgets/token-editor.js +2 -2
  949. package/dist/widgets/upload-progress.cjs +1 -1
  950. package/dist/widgets/upload-progress.js +2 -2
  951. package/dist/widgets/video-card.cjs +1 -1
  952. package/dist/widgets/video-card.js +2 -2
  953. package/dist/widgets/voice-button.cjs +1 -1
  954. package/dist/widgets/voice-button.js +2 -2
  955. package/dist/widgets/volume-knob.cjs +1 -1
  956. package/dist/widgets/volume-knob.js +2 -2
  957. package/dist/widgets/weather-card.cjs +1 -1
  958. package/dist/widgets/weather-card.js +2 -2
  959. package/dist/widgets/worker-canvas.cjs +1 -1
  960. package/dist/widgets/worker-canvas.js +2 -2
  961. package/dist/widgets/xp-bar.cjs +1 -1
  962. package/dist/widgets/xp-bar.js +2 -2
  963. package/dist/widgets.umd.js +2 -2
  964. package/docs/layout-motion.md +248 -0
  965. package/docs/motion-tokens.md +144 -5
  966. package/docs/versions.md +6 -4
  967. package/package.json +41 -1
@@ -0,0 +1,248 @@
1
+ # Layout Motion 2.0 (14.2)
2
+
3
+ `motionary/motion/layout` (= `motionary/components/motion-layout`) animates **layout changes**: an element moves or
4
+ resizes because the DOM or CSS changed, and instead of jumping it glides from its old box to its new one. It covers
5
+ FLIP with transforms, scale correction, layout groups, interruption, shared elements (`layoutId`) between states and
6
+ routes, and the View Transitions API with an automatic FLIP fallback. It is built on [Motion Engine v2](./motion-engine-v2.md),
7
+ so every layout animation is a standard `MotionControls` (`play` · `pause` · `seek` · `reverse` · `finish` · `cancel` ·
8
+ `finished`).
9
+
10
+ It is its own entry (≈ 6.5 KB gzip, budget 8 KB). It is not part of `motionary/motion` or `motionary/components/lite`,
11
+ and it has no dependencies. The 13.x layout API (`motionary/components/layout`: `autoAnimate`, `sharedTransition`,
12
+ `flipFrames`, `<usa-auto-animate>`) is unchanged.
13
+
14
+ ```ts
15
+ import { flip, layoutGroup, setLayoutId, sharedLayout, layoutTransition } from 'motionary/motion/layout';
16
+ ```
17
+
18
+ ## FLIP: `flip(targets, update, options?)`
19
+
20
+ ```ts
21
+ const controls = flip('.card', () => grid.classList.toggle('dense'), { duration: '{duration.normal}' });
22
+ await controls.finished;
23
+ ```
24
+
25
+ `flip()` measures `targets` (a selector, an element or a list), runs `update()` (a synchronous DOM change), measures
26
+ again, and shows each element at its old box with `translate3d(x, y, 0) scale(sx, sy)` (transform-origin `0 0`). That
27
+ transform then eases to none. Elements that did not move get no animation. When it finishes or is cancelled, the
28
+ element's inline `transform`, `transform-origin`, `border-radius`, `opacity` and `visibility` are put back as they were.
29
+ While a layout animation runs, it owns the element's inline `transform`. Wrap the element if it needs its own transform.
30
+
31
+ | Option | Default | |
32
+ | --- | --- | --- |
33
+ | `duration` | `300` | ms or a duration token (`'{duration.fast}'`, `'fast'`) |
34
+ | `delay` | `0` | ms |
35
+ | `easing` | `cubic-bezier(0.22, 1, 0.36, 1)` | CSS easing, easing token or a function of 0–1 |
36
+ | `scale` | `true` | animate size changes as scale; `false` = position only |
37
+ | `correct` | `true` | counter-scale the direct children of a scaling element; a selector = matching descendants; `false` = none |
38
+ | `radius` | `true` | correct `border-radius` for the current scale |
39
+ | `reducedMotion` | `'instant'` | see [Reduced motion](#reduced-motion) |
40
+ | `autoplay`, `playbackRate`, `onUpdate`, `onComplete` | | as in Motion Engine v2 |
41
+
42
+ ### Scale correction
43
+
44
+ Scaling a box also stretches its contents and its corners. While a parent scales, Layout Motion 2.0 gives each direct
45
+ child the inverse transform, so text and images keep their size and stay put relative to the parent's corner. It also
46
+ rewrites `border-radius` each frame as `rx/sx px / ry/sy px`, so a 12 px corner stays 12 px. When the old and new
47
+ radius differ (for example a shared element going from a round thumbnail to a square card), the radius is interpolated
48
+ too. Pass `correct: '.label, img'` to correct deeper descendants, or `correct: false` to let children scale.
49
+
50
+ **Nested layout elements:** when both a parent and its child are in the same `flip()`, the child is animated in the
51
+ parent's frame, so the transforms are not applied twice.
52
+
53
+ ### Interruptible animations
54
+
55
+ A new `flip()` (or `sharedLayout`, `layoutGroup().flip`, `snapshotLayout`) on an element that is still animating starts
56
+ from where the element is **now**, not from its old layout box. The earlier animation is dropped for that element (its
57
+ `MotionControls` goes `idle` once it has nothing left to animate), so rapid toggles never jump. `isLayoutAnimating(el)`
58
+ tells whether one is running.
59
+
60
+ ### Measure and play separately: `snapshotLayout()`
61
+
62
+ ```ts
63
+ const snap = snapshotLayout(items); // before the change
64
+ render(); // any way you like
65
+ snap.animate({ duration: 250 }); // after it
66
+ ```
67
+
68
+ `measureLayout(el)` returns the scroll-independent box that `flip()` uses.
69
+
70
+ ## Layout groups: `layoutGroup(members, options?)`
71
+
72
+ When one item in an accordion opens, its siblings move too. A group animates all members together:
73
+
74
+ ```ts
75
+ const g = layoutGroup('.accordion > section'); // selector members are re-queried each time
76
+ g.flip(() => item.classList.toggle('open'));
77
+ g.add(extraEl).remove(oldEl);
78
+ const cards = layoutGroup('#grid > .card', { id: 'grid' }); // id = namespace for layoutIds
79
+ setLayoutId(card, 'p1', cards); // data-layout-id="grid/p1"
80
+ await cards.shared(() => openDetail(card)); // shared transition limited to "grid/…"
81
+ ```
82
+
83
+ ## Shared element transitions (`layoutId`)
84
+
85
+ Give "the same thing" in two states the same layoutId: `setLayoutId(el, 'photo-1')`, or `data-layout-id="photo-1"` in
86
+ markup (the 13.x `data-shared` is read too). `getLayoutId(el)` reads it, and `setLayoutId(el, null)` removes it.
87
+
88
+ ```ts
89
+ const controls = await sharedLayout(async () => {
90
+ await router.push('/photo/1'); // sync or async (route changes)
91
+ }, { duration: 400 });
92
+ ```
93
+
94
+ `sharedLayout(update, options?)` records every layoutId's box, runs `update()`, and then:
95
+
96
+ - the element that now has a layoutId flies from the old element's box: position, size and radius, with scale and
97
+ radius correction;
98
+ - if the old element is still in the DOM, it is hidden while the new one flies (`visibility: hidden`). With
99
+ `crossfade: true`, both fly: the old one fades out and the new one fades in;
100
+ - elements whose layoutId exists only after the update fade in (`enter: 'none'` turns that off);
101
+ - `root` limits the search, and `scope` limits it to ids with a prefix (layout groups set it).
102
+
103
+ ## View Transitions: `layoutTransition(update, options?)`
104
+
105
+ ```ts
106
+ const t = await layoutTransition(() => router.go('/photo/1'), { types: ['forward'] });
107
+ t.method; // 'view-transition' | 'flip' | 'instant' | 'crossfade'
108
+ await t.finished;
109
+ ```
110
+
111
+ - **Same-document View Transitions** where `document.startViewTransition` exists. Each layoutId becomes a
112
+ `view-transition-name` (`mo-<id>`, unsafe characters as `_`, see `viewTransitionName()`) on the old elements before
113
+ the snapshot and on the new elements after `update()`. All names are removed afterwards. Duration, delay and easing
114
+ apply to `::view-transition-group(*)`, `-old(*)` and `-new(*)` through a temporary `<style data-motionary-vt>`.
115
+ `types` are passed when the browser supports them, and ignored when it does not.
116
+ - **Automatic FLIP fallback** when the API is missing, when `startViewTransition` throws, or with `method: 'flip'`. It is
117
+ `sharedLayout()` with the same options, and the DOM it ends with is the same (parity is tested in Chromium,
118
+ Firefox and WebKit).
119
+ - **Interruption:** starting a transition skips the one still running (`skipTransition()`), or finishes it on the FLIP
120
+ path.
121
+ - Resolves once the DOM is updated; `finished` never rejects; `skip()` jumps to the end; `controls` is the FLIP
122
+ controller.
123
+
124
+ `supportsViewTransitions()` and `supportsCrossDocumentViewTransitions()` report what the browser can do.
125
+
126
+ ### Cross-document (MPA): `crossDocumentLayout(options?)`
127
+
128
+ Call it on both pages, early (in a render-blocking script, so `pagereveal` is caught):
129
+
130
+ ```ts
131
+ const undo = crossDocumentLayout(); // method: 'auto' | 'view-transition' | 'flip'
132
+ ```
133
+
134
+ - Where cross-document view transitions are supported, it adds `@view-transition { navigation: auto; }` (plus the
135
+ timing) and names layoutIds on `pageswap` (old page) and `pagereveal` (new page). Navigations between same-origin
136
+ pages then animate the shared elements natively.
137
+ - Elsewhere it uses a **FLIP fallback**: on `pagehide` it saves every layoutId's viewport box to `sessionStorage`
138
+ (`saveLayoutSnapshot()`). When the next page loads, it flies the matching elements from those boxes once
139
+ (`playLayoutSnapshot()`). Snapshots older than `maxAge` (5 s) are ignored.
140
+
141
+ ## Reduced motion
142
+
143
+ Under `prefers-reduced-motion: reduce` (or `configureComponents({ reducedMotion: 'reduce' })` / a minimal motion
144
+ sensitivity):
145
+
146
+ | `reducedMotion` | `flip` / `sharedLayout` | `layoutTransition` |
147
+ | --- | --- | --- |
148
+ | `'instant'` (default; `'respect'` is the same) | the change applies at once (`playState: 'finished'`) | `update()` only, no view transition (`method: 'instant'`) |
149
+ | `'crossfade'` | no movement: changed elements fade in | a view transition with no shared names, which is only the root cross-fade; without the API, the FLIP cross-fade (`method: 'crossfade'`) |
150
+ | `'ignore'` | animates anyway | animates anyway |
151
+
152
+ ## Correct under scroll containers, transforms and sticky
153
+
154
+ - **Scroll containers and the window:** boxes are measured as the viewport rect plus the scroll offsets of every
155
+ scrolling ancestor and the window. So an update that scrolls a container, or the page, is not taken for a layout
156
+ change, and a real move inside a scrolled container animates only by the layout delta.
157
+ - **`position: sticky` / `fixed`:** an element that is, or sits inside, a sticky or fixed box is measured in viewport
158
+ space. Scroll offsets above the sticky or fixed ancestor do not count, because scrolling is part of how it looks,
159
+ not a layout change.
160
+ - **Ancestor transforms:** under a scaled ancestor (zoomed canvas, scaled card), translate deltas are converted into
161
+ the element's local px (rendered size ÷ layout size of the parent), so the element still lands exactly on its box.
162
+ - Elements with `display: none` (no box) after the update are skipped.
163
+
164
+ ## Frameworks: `createLayoutTracker(targets, options?)`
165
+
166
+ The adapters (`motionary/components/react`, `vue`, `svelte`, `solid`, `angular`) are unchanged. Layout Motion works
167
+ with each framework's own lifecycle through one framework-neutral helper: `snapshot()` before the framework writes the
168
+ DOM, `animate()` after.
169
+
170
+ ```ts
171
+ const tracker = createLayoutTracker(() => listEl.children, { duration: 250 });
172
+ tracker.snapshot(); // before the update
173
+ // … the framework commits …
174
+ tracker.animate(); // after it → MotionControls | null
175
+ tracker.cancel(); // on unmount
176
+ ```
177
+
178
+ **React**
179
+
180
+ ```tsx
181
+ const ref = useRef<HTMLUListElement>(null);
182
+ const tracker = useMemo(() => createLayoutTracker(() => ref.current!.children), []);
183
+ const sort = () => { tracker.snapshot(); setItems((xs) => [...xs].reverse()); };
184
+ useLayoutEffect(() => { tracker.animate(); }, [items]);
185
+ useEffect(() => () => tracker.cancel(), []);
186
+ ```
187
+
188
+ **Vue**
189
+
190
+ ```ts
191
+ const list = ref<HTMLElement>();
192
+ const tracker = createLayoutTracker(() => list.value!.children);
193
+ onBeforeUpdate(() => tracker.snapshot());
194
+ onUpdated(() => tracker.animate());
195
+ onBeforeUnmount(() => tracker.cancel());
196
+ ```
197
+
198
+ **Svelte** (5)
199
+
200
+ ```svelte
201
+ <script>
202
+ import { createLayoutTracker } from 'motionary/motion/layout';
203
+ let list; let items = $state([1, 2, 3]);
204
+ const tracker = createLayoutTracker(() => list.children);
205
+ $effect.pre(() => { items; tracker.snapshot(); });
206
+ $effect(() => { items; tracker.animate(); });
207
+ </script>
208
+ ```
209
+
210
+ **Solid**
211
+
212
+ ```tsx
213
+ let list!: HTMLUListElement;
214
+ const tracker = createLayoutTracker(() => list.children);
215
+ const reorder = () => { tracker.snapshot(); setItems((xs) => [...xs].reverse()); queueMicrotask(() => tracker.animate()); };
216
+ onCleanup(() => tracker.cancel());
217
+ ```
218
+
219
+ **Angular**
220
+
221
+ ```ts
222
+ private tracker = createLayoutTracker(() => this.list.nativeElement.children);
223
+ private injector = inject(Injector);
224
+ reorder() {
225
+ this.tracker.snapshot();
226
+ this.items.reverse();
227
+ afterNextRender(() => this.tracker.animate(), { injector: this.injector });
228
+ }
229
+ ngOnDestroy() { this.tracker.cancel(); }
230
+ ```
231
+
232
+ For route changes in any framework, wrap the navigation in `layoutTransition(() => router.push(url))`. The layoutIds
233
+ on both routes are paired automatically.
234
+
235
+ ## Pure helpers
236
+
237
+ `layoutDelta(from, to, ancestorScale?)`, `mixBox(a, b, p)`, `solveLayoutTransform(want, to, parent?, ancestorScale?)`,
238
+ `layoutTransform(delta)` and `correctRadius(r, sx, sy)` are the math behind all of the above. They are exported for
239
+ custom renderers (canvas, WebGL) and for tests.
240
+
241
+ ## Tests
242
+
243
+ - `test/layout-motion-2-14-2.test.ts` (jsdom, with a small fake layout engine) covers the math, FLIP, correction,
244
+ interruption, scroll, sticky and transforms, groups, layoutId, View Transitions on and off, reduced motion,
245
+ cross-document and the tracker.
246
+ - `test/browser/layout-motion.spec.mjs` runs in Chromium, Firefox and WebKit. It measures real element rects
247
+ mid-transition, checks scale correction and scroll-container correctness, checks parity between the View
248
+ Transitions and FLIP paths (including the API forced off), and checks reduced motion.
@@ -1,4 +1,143 @@
1
- # Motion design tokens (4.2)
1
+ # Motion design tokens
2
+
3
+ **Motion Tokens 2.0 (14.1)** lives in its own entry, `motionary/tokens` (= `motionary/components/motion-tokens`, own
4
+ size budget, not in lite). It covers durations, easing curves, springs, **spatial distances** and **motion semantics**
5
+ (`enter` / `exit` / `emphasis` / `transition`) in one token set. A set has **modes**: reduced motion is built in,
6
+ `compact` ships by default, and you can add your own. It reads and writes **W3C Design Tokens** (DTCG 2025.10) and
7
+ **CSS custom properties**, plugs into **Motion Engine v2** and **Scene Format v2**, and maps to **Figma Variables**
8
+ (REST API shapes, with a CLI). It has no dependencies and makes no network calls. The 4.2 / 10.6 API
9
+ (`motionary/components/tokens`, [below](#the-42-token-scale-motionarycomponentstokens)) has not changed.
10
+
11
+ ```ts
12
+ import { defineMotionTokens, applyMotionTokenSet, motionOptions, motionKeyframes } from 'motionary/tokens';
13
+ import { animate } from 'motionary/motion';
14
+
15
+ const tokens = defineMotionTokens({ duration: { fast: 120 }, distance: { md: 20 } }); // merged over the defaults
16
+ applyMotionTokenSet(tokens, { mode: 'auto' }); // CSS vars on <html>; '{duration.fast}' refs; reduced motion when the OS asks
17
+ animate('.card', motionKeyframes(tokens, 'enter'), motionOptions(tokens, 'enter'));
18
+ animate('.chip', { opacity: [0, 1] }, { duration: '{duration.fast}', easing: '{easing.standard}' });
19
+ ```
20
+
21
+ ## The token set
22
+
23
+ | Group | Default | Value |
24
+ |---|---|---|
25
+ | `duration` | `instant` 0 · `fast` 150 · `normal` 300 · `slow` 600 · `slower` 900 · `slowest` 1400 | ms |
26
+ | `easing` | `linear` · `standard` · `emphasized` · `decelerate` · `accelerate` · `spring` · `bounce` | CSS easing (`cubic-bezier()`, keywords, `steps()`, `linear()`) |
27
+ | `spring` | `gentle` · `snappy` · `bouncy` · `wobbly` · `stiff` | `{ stiffness, damping, mass }` |
28
+ | `distance` | `none` 0 · `xs` 4 · `sm` 8 · `md` 16 · `lg` 32 · `xl` 64 | px: how far things travel |
29
+ | `semantic.enter.default` | `{duration.normal}` · `{easing.decelerate}` · `{distance.md}` | |
30
+ | `semantic.exit.default` | `{duration.fast}` · `{easing.accelerate}` · `{distance.sm}` | |
31
+ | `semantic.emphasis.default` | `{duration.normal}` · `{easing.emphasized}` · `{distance.xs}` · `{spring.bouncy}` | |
32
+ | `semantic.transition.default` | `{duration.normal}` · `{easing.standard}` | |
33
+
34
+ A semantic token is `{ duration, easing?, delay?, distance?, spring? }`. Each field is a literal or a reference to a
35
+ primitive, written in DTCG alias syntax (`"{duration.fast}"`). That is the same syntax Motion Engine v2 and Scene
36
+ Format v2 accept. Add your own semantic tokens by name (`semantic.enter.hero`); a missing name falls back to `default`.
37
+
38
+ | Function | |
39
+ |---|---|
40
+ | `MOTION_TOKENS_2` · `SEMANTIC_KINDS` · `MOTION_TOKENS_VERSION` (2) | The default set and constants. |
41
+ | `defineMotionTokens(partial, base?)` | Deep-merge a partial set and `modes` over the defaults. Never mutates. |
42
+ | `resolveMotionToken(set, ref, mode?)` | `'{duration.fast}'` → 150, `'{enter.default}'` → `{ duration, delay, easing, distance }`. |
43
+ | `resolveSemantic(set, kind, name?, mode?)` | One semantic motion as literals. |
44
+ | `motionOptions(set, kind, name?, mode?)` | `{ duration, delay, easing }` for `animate()`. |
45
+ | `motionKeyframes(set, kind, name?, { axis, direction, mode })` | Keyframes: enter/exit fade and travel by the token's distance; emphasis nudges out and back. |
46
+ | `validateMotionTokens(set)` | A list of problems (empty = valid); never throws. |
47
+
48
+ ## Modes
49
+
50
+ `withMode(set, mode)` returns the set as seen in one mode, or in several applied in order (`['compact', 'reduced']`).
51
+
52
+ - **`reduced`** is built in, so every set has it, including sets that declare no modes. It is derived from the set:
53
+ every distance becomes 0, durations are capped at 150 ms, overshooting curves (`spring`, `bounce`) become the standard
54
+ curve, springs are critically damped (no overshoot), and literal semantic distances become 0. Anything you put in
55
+ `modes.reduced` is applied on top. `validateMotionTokens` reports a reduced mode that still moves content.
56
+ - **`compact`** ships in the defaults: shorter durations and half distances.
57
+ - **Custom modes** are named overrides: `defineMotionTokens({ modes: { cinematic: { duration: { normal: 500 } } } })`.
58
+
59
+ ## W3C Design Tokens (DTCG 2025.10)
60
+
61
+ `motionTokenSetToDTCG(set, { format?, group?, modes? })` writes:
62
+
63
+ - durations as `$type: duration` (`{ value, unit: "ms" }`, or `"150ms"` with `format: 'draft'`)
64
+ - easings as `$type: cubicBezier`; keywords keep their CSS in `$extensions["org.motionary"].css`, and `steps()` /
65
+ `linear()` become `$type: string`
66
+ - distances as `$type: dimension` (`{ value, unit: "px" }`)
67
+ - springs in `$extensions["org.motionary"].spring`, because spring is not a DTCG type
68
+ - semantic tokens as `$type: transition` with aliases (`"{motion.duration.normal}"`); distance and spring go in the
69
+ token's `$extensions`
70
+ - modes in the root `$extensions["org.motionary"].modes`
71
+
72
+ `motionTokenSetFromDTCG(doc)` reads Motionary exports losslessly (export → import gives an equal set) and any DTCG motion
73
+ group: it finds the group anywhere in the file, inherits `$type`, resolves aliases, and converts seconds and rem
74
+ (16 px). It throws on broken or circular aliases. The 10.6 functions (`importDesignTokens`, `validateDesignTokens`)
75
+ read the 2.0 export too.
76
+
77
+ ## CSS custom properties
78
+
79
+ `motionTokenSetToCss(set, { selector?, prefix?, modes? })` writes:
80
+
81
+ ```css
82
+ :root {
83
+ --usa-duration-fast: 150ms; /* every primitive … */
84
+ --usa-distance-md: 16px;
85
+ --usa-spring-snappy-stiffness: 300;
86
+ --usa-motion-enter-default-duration: var(--usa-duration-normal); /* semantic vars reference primitives */
87
+ --usa-motion-enter-default-distance: var(--usa-distance-md);
88
+ }
89
+ @media (prefers-reduced-motion: reduce) { :root { --usa-distance-md: 0px; /* only what changes */ } }
90
+ :root[data-usa-motion-mode~="reduced"] { --usa-distance-md: 0px; }
91
+ :root[data-usa-motion-mode~="compact"] { --usa-duration-normal: 240ms; /* … */ }
92
+ ```
93
+
94
+ An explicit `data-usa-motion-mode` wins over the OS preference. `motionTokenSetVars(set, { prefix, mode })` returns the
95
+ map.
96
+
97
+ ## Motion Engine v2 and Scene Format v2
98
+
99
+ - `applyMotionTokenSet(set, { mode?, root?, prefix? })` makes the set active. It writes every custom property on
100
+ `root` (default `<html>`), and `{duration.*}` / `{easing.*}` / `{spring.*}` references in `motionary/motion`,
101
+ `motionary/motion/scene` and the token-aware components then resolve to it. `mode: 'auto'` follows
102
+ `prefers-reduced-motion` and its changes. Returns an undo function. Since 14.1, `spring(target, '{spring.x}')` in
103
+ `motionary/motion` reads the active set; it used to read only the defaults.
104
+ - `toSceneTokens(set, mode?)` returns scene-local `tokens` for a Scene Format v2 document. `withSceneTokens(doc, set, mode?)`
105
+ returns a copy of the document carrying them (the document's own tokens win), so `validateSceneV2` and `playScene`
106
+ know your custom token names.
107
+
108
+ ## Figma Variables
109
+
110
+ `motionTokensToFigma(set, { collection?, modes?, prefix?, cssPrefix? })` returns the body of the Figma REST API's
111
+ `POST /v1/files/:file_key/variables`: one collection (default "Motion"), a Default mode, and one mode per token-set mode
112
+ (`reduced` ↔ "Reduced motion", `compact` ↔ "Compact"). Variables are named `motion/<group>/<name>`, the names the 12.3
113
+ Figma plugin reads:
114
+
115
+ - durations and distances: `FLOAT`
116
+ - easings: `STRING`
117
+ - springs: three `FLOAT`s (`motion/spring/<name>/stiffness|damping|mass`)
118
+ - semantic tokens: `motion/<kind>/<name>/<duration|delay|easing|distance>` as `VARIABLE_ALIAS` values of the primitives
119
+
120
+ Each variable carries `codeSyntax.WEB` = its CSS variable.
121
+
122
+ `motionTokensFromFigma(json, { collection?, prefix? })` reads a `GET /v1/files/:file_key/variables/local` response, or
123
+ such a POST body. The default mode becomes the set, and other modes become token-set modes holding only what differs:
124
+ a name containing "reduc" maps to `reduced`, and other names are kebab-cased ("Dense UI" → `dense-ui`). Aliases to
125
+ primitives become references, and non-motion variables are ignored. The library never calls the network: send the body
126
+ with your own Figma token.
127
+
128
+ ```sh
129
+ npx motionary tokens export-figma tokens.json --collection "Brand motion" --modes reduced,compact --out figma.json
130
+ curl -X POST -H "X-Figma-Token: $FIGMA_TOKEN" -H "Content-Type: application/json" \
131
+ --data @figma.json https://api.figma.com/v1/files/$FILE_KEY/variables
132
+ curl -H "X-Figma-Token: $FIGMA_TOKEN" https://api.figma.com/v1/files/$FILE_KEY/variables/local > local.json
133
+ npx motionary tokens import-figma local.json --out tokens.json # or --css --out motion.css
134
+ npx motionary tokens validate tokens.json # exit 1 on problems
135
+ npx motionary tokens css tokens.json --out motion.css
136
+ ```
137
+
138
+ ---
139
+
140
+ ## The 4.2 token scale (`motionary/components/tokens`)
2
141
 
3
142
  `motionary/components/tokens` gives your product one motion scale — durations, easings and springs — as **CSS custom properties**, **W3C Design Tokens JSON**, and **JS values**, and imports the scale your designers keep in **Figma Tokens (Tokens Studio)** or **Style Dictionary**.
4
143
 
@@ -20,7 +159,7 @@ timeline().to('.card', 'fade-up', { duration: 'slow', easing: 'spring' }); // to
20
159
  .button { transition: transform var(--usa-duration-fast) var(--usa-easing-emphasized); }
21
160
  ```
22
161
 
23
- ## Default scale
162
+ ### Default scale
24
163
 
25
164
  | Group | Tokens |
26
165
  |---|---|
@@ -30,7 +169,7 @@ timeline().to('.card', 'fade-up', { duration: 'slow', easing: 'spring' }); // to
30
169
 
31
170
  Prebuilt files: [`docs/motion-tokens.css`](./motion-tokens.css) and [`docs/motion.tokens.json`](./motion.tokens.json) (DTCG; `$type: duration | cubicBezier | spring`).
32
171
 
33
- ## API
172
+ ### API
34
173
 
35
174
  | Function | |
36
175
  |---|---|
@@ -41,10 +180,10 @@ Prebuilt files: [`docs/motion-tokens.css`](./motion-tokens.css) and [`docs/motio
41
180
  | `motionToken(group, name)` · `motionVar(group, name, prop?)` · `getMotionTokens()` | Read. |
42
181
  | `parseDuration()` · `parseEasing()` · `mergeMotionTokens()` · `resolveDurationToken()` · `resolveEasingToken()` | Helpers. |
43
182
 
44
- ## Style Dictionary
183
+ ### Style Dictionary
45
184
 
46
185
  Point Style Dictionary at `docs/motion.tokens.json` as a source, or export your own motion group and import it at runtime with `importMotionTokens()`. Tokens are plain data, so SSR is fine; `applyMotionTokens()` is a no-op without a DOM (it still sets the active scale).
47
186
 
48
- ## From Figma (12.3)
187
+ ### From Figma (12.3)
49
188
 
50
189
  The Figma plugin ([figma-plugin/README.md](../figma-plugin/README.md)) reads variables named `motion/duration/<name>` and `motion/easing/<name>` and exports them in this format (and as CSS), merged over these defaults.
package/docs/versions.md CHANGED
@@ -11,13 +11,15 @@ URLs. Nothing else changes: the `<usa-*>` tags, the `usa-` classes, the globals
11
11
 
12
12
  | Tag | Points to | Install |
13
13
  |---|---|---|
14
- | `latest` | the current major release and its patches (14.0.0 today) | `npm i motionary` |
15
- | `v<major>` | each major line from 14 on, e.g. `v14` → the newest 14.x release published with that tag | `npm i motionary@v14` |
14
+ | `latest` | the newest release of the current major (14.2.0 today) | `npm i motionary` |
15
+ | `v<major>-line` | each major line from 14 on, e.g. `v14-line` → the newest 14.x release (a bare `v14` is not allowed: npm rejects tag names that are valid SemVer ranges) | `npm i motionary@v14-line` |
16
16
  | `v13-lts` | the last 13.x release (13.9.0), for projects that stay on 13 | `npm i motionary@v13-lts` |
17
17
  | `v<major>-<minor>` | each minor release, e.g. `v12-9` → 12.9.0, `v12-5` → 12.5.0 | `npm i motionary@v12-9` or `npm i motionary@12.9.0` |
18
18
 
19
- `latest` moves when a new major ships (x.0.0) and with each patch of it (x.0.y, bug fixes only). Minor releases get their own `v<major>-<minor>` tag, so a plain
20
- `npm i motionary` does not move you to a minor without you asking for it. Exact versions always work. Both package names
19
+ `latest` moves when a new major ships (x.0.0). From 14.1 on, it also moves with each minor and patch release of that major,
20
+ once the release passes its post-publish checks (tarballs, ESM / CJS, main CI). Up to 14.0, minors stayed off `latest`.
21
+ Every minor release also gets its own `v<major>-<minor>` tag, so you can pin a minor, or stay on a major line with
22
+ `v<major>-line`. Exact versions always work. Both package names
21
23
  use the same tags. To see the current tags, run `npm view motionary dist-tags`.
22
24
 
23
25
  ## How a release is gated
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "motionary",
3
- "version": "14.0.0",
3
+ "version": "14.2.0",
4
4
  "description": "Motionary (formerly use-scroll-animate): dependency-free scroll animations + 209 animated Web Components (91 core, 118 widgets) — 214 scroll-reveal presets, physics, page transitions, generative backgrounds, Lottie, WebGL and a motion runtime. React, Vue, Svelte, Solid, Angular or plain HTML.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -550,6 +550,26 @@
550
550
  "default": "./dist/components/motion-scene.cjs"
551
551
  }
552
552
  },
553
+ "./tokens": {
554
+ "import": {
555
+ "types": "./dist/components/motion-tokens.d.ts",
556
+ "default": "./dist/components/motion-tokens.js"
557
+ },
558
+ "require": {
559
+ "types": "./dist/components/motion-tokens.d.cts",
560
+ "default": "./dist/components/motion-tokens.cjs"
561
+ }
562
+ },
563
+ "./motion/layout": {
564
+ "import": {
565
+ "types": "./dist/components/motion-layout.d.ts",
566
+ "default": "./dist/components/motion-layout.js"
567
+ },
568
+ "require": {
569
+ "types": "./dist/components/motion-layout.d.cts",
570
+ "default": "./dist/components/motion-layout.cjs"
571
+ }
572
+ },
553
573
  "./components/reveal": {
554
574
  "import": {
555
575
  "types": "./dist/components/reveal.d.ts",
@@ -760,6 +780,26 @@
760
780
  "default": "./dist/components/motion-scene.cjs"
761
781
  }
762
782
  },
783
+ "./components/motion-layout": {
784
+ "import": {
785
+ "types": "./dist/components/motion-layout.d.ts",
786
+ "default": "./dist/components/motion-layout.js"
787
+ },
788
+ "require": {
789
+ "types": "./dist/components/motion-layout.d.cts",
790
+ "default": "./dist/components/motion-layout.cjs"
791
+ }
792
+ },
793
+ "./components/motion-tokens": {
794
+ "import": {
795
+ "types": "./dist/components/motion-tokens.d.ts",
796
+ "default": "./dist/components/motion-tokens.js"
797
+ },
798
+ "require": {
799
+ "types": "./dist/components/motion-tokens.d.cts",
800
+ "default": "./dist/components/motion-tokens.cjs"
801
+ }
802
+ },
763
803
  "./components/compat-v13": {
764
804
  "import": {
765
805
  "types": "./dist/components/compat-v13.d.ts",