motionary 14.1.0 → 14.3.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 (971) hide show
  1. package/CHANGELOG.md +111 -0
  2. package/README.md +10 -2
  3. package/README_ja.md +1 -1
  4. package/README_zh.md +1 -1
  5. package/bin/public-paths.mjs +4 -0
  6. package/dist/chunks/{anim-image-CkRXgwIe.js → anim-image-BpRPNkmV.js} +2 -2
  7. package/dist/chunks/{anim-image-Djph3LVk.cjs → anim-image-JXS_UNEm.cjs} +2 -2
  8. package/dist/chunks/audio-D0LwPShE.cjs +1 -1
  9. package/dist/chunks/{audio-CfvQzwt5.js → audio-D7mfQAUI.js} +4 -4
  10. package/dist/chunks/badge-wall-CITexuW7.cjs +1 -1
  11. package/dist/chunks/{badge-wall-Bp5kUwTU.js → badge-wall-TxNk_TTE.js} +2 -2
  12. package/dist/chunks/base-BvH4nAcv.cjs +1 -1
  13. package/dist/chunks/{base-D0sRwVz1.js → base-ByyAdGqz.js} +2 -2
  14. package/dist/chunks/{bg-generator-CbdOCgcF.js → bg-generator-BJ0Obz4R.js} +2 -2
  15. package/dist/chunks/bg-generator-CML8tPN8.cjs +1 -1
  16. package/dist/chunks/bind-B_CTL6Qn.js +1 -1
  17. package/dist/chunks/bind-Ui43-n2d.cjs +1 -1
  18. package/dist/chunks/{builtins-CY1l_hAW.js → builtins-CpH2mTyp.js} +3 -3
  19. package/dist/chunks/builtins-DweCp29Z.cjs +1 -1
  20. package/dist/chunks/{carousel-Drr0G4y7.js → carousel-Bdl2DpWW.js} +2 -2
  21. package/dist/chunks/carousel-DU3rHTq0.cjs +1 -1
  22. package/dist/chunks/cart-drawer-CkFMKMhx.cjs +1 -1
  23. package/dist/chunks/{cart-drawer-BrBfdhOd.js → cart-drawer-S3X_-dcv.js} +2 -2
  24. package/dist/chunks/{code-export-qPPmVqgS.js → code-export-DwrlLHA5.js} +2 -2
  25. package/dist/chunks/code-export-PdGSl9WE.cjs +1 -1
  26. package/dist/chunks/color-picker-B_xWVH8H.cjs +1 -1
  27. package/dist/chunks/{color-picker-D4-raPTo.js → color-picker-C2PH87yD.js} +2 -2
  28. package/dist/chunks/{command-palette-YgbhCzi2.js → command-palette-7lHRJzV1.js} +2 -2
  29. package/dist/chunks/command-palette-ISetAeX1.cjs +1 -1
  30. package/dist/chunks/{core-BSqTp8Bt.js → core-BPPcJVGQ.js} +2 -2
  31. package/dist/chunks/core-BjcOCpJt.cjs +1 -1
  32. package/dist/chunks/{core-LmWkFGlE.js → core-CfuLPjGf.js} +2 -2
  33. package/dist/chunks/core-DbAYRKnS.cjs +1 -1
  34. package/dist/chunks/core-Dj6iomdc.js +1 -1
  35. package/dist/chunks/core-DjjKLmZ6.cjs +1 -1
  36. package/dist/chunks/{countdown-CE26Bi78.js → countdown-C4M4Ymbd.js} +2 -2
  37. package/dist/chunks/countdown-RQViryt7.cjs +1 -1
  38. package/dist/chunks/date-picker-BgApzPNn.cjs +1 -1
  39. package/dist/chunks/{date-picker-a677RmYE.js → date-picker-D1FhYimW.js} +2 -2
  40. package/dist/chunks/ease-HwYZnZat.cjs +1 -1
  41. package/dist/chunks/ease-XN8_0sXu.js +1 -1
  42. package/dist/chunks/{equalizer-2GzcV-8j.js → equalizer-Dxl2dMWN.js} +2 -2
  43. package/dist/chunks/equalizer-_eD_ZdCl.cjs +1 -1
  44. package/dist/chunks/festival-banner-Bs18K0MJ.cjs +1 -1
  45. package/dist/chunks/{festival-banner-Cfbi5oks.js → festival-banner-RkIBAUue.js} +2 -2
  46. package/dist/chunks/{field-B3_pZbPt.js → field-B_JKBZ66.js} +2 -2
  47. package/dist/chunks/field-Dwq8-CLN.cjs +1 -1
  48. package/dist/chunks/{format-B2XGhlqH.js → format-B6BO-aZk.js} +3 -3
  49. package/dist/chunks/format-DrRrPbjl.cjs +1 -1
  50. package/dist/chunks/fx-DaVuB89C.cjs +1 -1
  51. package/dist/chunks/{fx-szWxgCx0.js → fx-lkOk6ZLK.js} +2 -2
  52. package/dist/chunks/generative-BKoxWOSP.cjs +1 -1
  53. package/dist/chunks/{generative-D1QtbFNP.js → generative-CbMIaqxn.js} +2 -2
  54. package/dist/chunks/{gl-scene-BzhaujZ6.js → gl-scene-BuJBkdH5.js} +3 -3
  55. package/dist/chunks/{gl-scene-DN4qAmSW.cjs → gl-scene-DFUFzZCt.cjs} +2 -2
  56. package/dist/chunks/globe-DA0jyb6s.cjs +1 -1
  57. package/dist/chunks/{globe-C2UzKQJI.js → globe-ejBBHY6v.js} +2 -2
  58. package/dist/chunks/{gpu-D7wkP6SZ.js → gpu-C0vrwBcn.js} +4 -4
  59. package/dist/chunks/gpu-C2C6iBQC.cjs +1 -1
  60. package/dist/chunks/{gpu-particles-Dw2HV4Me.js → gpu-particles-BvUfEndq.js} +2 -2
  61. package/dist/chunks/gpu-particles-wEO_rds1.cjs +1 -1
  62. package/dist/chunks/history-CA8zJNZa.js +449 -0
  63. package/dist/chunks/history-CLzpNgGy.cjs +470 -0
  64. package/dist/chunks/index-C9_FEsfz.cjs +1 -1
  65. package/dist/chunks/{index-B1LSv5Uo.js → index-gwb-TO6r.js} +5 -5
  66. package/dist/chunks/index-tags-B-JBecYg.js +1 -1
  67. package/dist/chunks/index-tags-hLIF2Clq.cjs +1 -1
  68. package/dist/chunks/key-click-BLm3BI8_.js +1 -1
  69. package/dist/chunks/key-click-v7I4K5Sr.cjs +1 -1
  70. package/dist/chunks/{keyframes-DN-QDf45.js → keyframes-Cn-wjwoX.js} +2 -2
  71. package/dist/chunks/{keyframes-BKy1Mz7O.cjs → keyframes-DXtGsA1C.cjs} +2 -2
  72. package/dist/chunks/{leaderboard-odMGN-i2.js → leaderboard-BmACkMks.js} +2 -2
  73. package/dist/chunks/leaderboard-DvSSQ8o3.cjs +1 -1
  74. package/dist/chunks/{location-card-B7LwfBVv.js → location-card-9SyNFFc7.js} +2 -2
  75. package/dist/chunks/location-card-DSPTApUe.cjs +1 -1
  76. package/dist/chunks/lottie-icon-BoxkukMd.cjs +1 -1
  77. package/dist/chunks/{lottie-icon-BsW6EvKG.js → lottie-icon-CGG_tfjT.js} +2 -2
  78. package/dist/chunks/{lottie-player-DmNP6QsW.js → lottie-player-CgrK6Ts9.js} +3 -3
  79. package/dist/chunks/{lottie-player-BU-bItCy.cjs → lottie-player-XRLTbXIF.cjs} +2 -2
  80. package/dist/chunks/lyrics-CRB7dA1j.cjs +1 -1
  81. package/dist/chunks/{lyrics-CfAOpxkR.js → lyrics-D7iF9I0S.js} +2 -2
  82. package/dist/chunks/{manifest-mzYIR0fB.js → manifest-i1lnR0qJ.js} +2 -2
  83. package/dist/chunks/manifest-xr3WET80.cjs +1 -1
  84. package/dist/chunks/menu-CZ1zHTT9.cjs +1 -1
  85. package/dist/chunks/{menu-Bwy7HGGu.js → menu-DrQfp6bJ.js} +2 -2
  86. package/dist/chunks/menu-toggle-DGXN4VsN.cjs +1 -1
  87. package/dist/chunks/{menu-toggle-9o38aUlM.js → menu-toggle-DI8fAtZ0.js} +2 -2
  88. package/dist/chunks/nav-morph-C4rD3wrU.cjs +1 -1
  89. package/dist/chunks/{nav-morph-CmqTSjWr.js → nav-morph-CBZ5HXQo.js} +2 -2
  90. package/dist/chunks/{otp-DlwGTaHQ.js → otp-C1l7yq3_.js} +2 -2
  91. package/dist/chunks/otp-DUyEWYMi.cjs +1 -1
  92. package/dist/chunks/pagination-DHmYZZU9.cjs +1 -1
  93. package/dist/chunks/{pagination-9Kv3ngXX.js → pagination-JG7Hw-q-.js} +2 -2
  94. package/dist/chunks/{physics-playground-cODUFbJL.cjs → physics-playground-BpLfSK9h.cjs} +2 -2
  95. package/dist/chunks/{physics-playground-B6xWX0aK.js → physics-playground-yEzQQvoN.js} +3 -3
  96. package/dist/chunks/{play-BdevnnRU.js → play-BqJz64kQ.js} +2 -2
  97. package/dist/chunks/play-DCeKlDqE.cjs +1 -1
  98. package/dist/chunks/player-BJPVdtzo.cjs +1 -1
  99. package/dist/chunks/{player-D18aHq0n.js → player-Wvcmll-1.js} +4 -4
  100. package/dist/chunks/{player-core-DR1WR-41.js → player-core-BGIt5Gzl.js} +4 -4
  101. package/dist/chunks/player-core-BTFa6_IO.cjs +1 -1
  102. package/dist/chunks/{presence-DQsKeMSf.js → presence-BQ2mRjpt.js} +2 -2
  103. package/dist/chunks/presence-DAthlALi.cjs +1 -1
  104. package/dist/chunks/presets-BYBVJVeP.js +1 -1
  105. package/dist/chunks/presets-CUHys3sK.cjs +1 -1
  106. package/dist/chunks/{prize-wheel-D2MlXZz3.js → prize-wheel-B5YpUMgr.js} +2 -2
  107. package/dist/chunks/prize-wheel-emDopI5c.cjs +1 -1
  108. package/dist/chunks/{product-gallery-BznJaf2u.js → product-gallery-BpJEGKIw.js} +2 -2
  109. package/dist/chunks/product-gallery-CKtSVhZk.cjs +1 -1
  110. package/dist/chunks/progress-ring-C75O4MUi.cjs +1 -1
  111. package/dist/chunks/{progress-ring-DTbpqpsJ.js → progress-ring-CRSbrt2I.js} +2 -2
  112. package/dist/chunks/{prop-panel-DTDO4kVW.js → prop-panel-D4DEkdXL.js} +2 -2
  113. package/dist/chunks/prop-panel-DFqga6H5.cjs +1 -1
  114. package/dist/chunks/radar-D-bZRrgs.cjs +1 -1
  115. package/dist/chunks/{radar-lUFsshFe.js → radar-DE_QcCUX.js} +2 -2
  116. package/dist/chunks/reactions-BL2iO8iy.cjs +1 -1
  117. package/dist/chunks/{reactions-zFqABIRz.js → reactions-BV57Pw0R.js} +2 -2
  118. package/dist/chunks/registry-CibnX7Ui.cjs +1 -1
  119. package/dist/chunks/{registry-DKOhN0IC.cjs → registry-CtDSn-Sd.cjs} +2 -2
  120. package/dist/chunks/{registry-CE5_Mo_p.js → registry-RLD_spxR.js} +2 -2
  121. package/dist/chunks/{registry-BsVrFoLd.js → registry-oGbx6EUV.js} +2 -2
  122. package/dist/chunks/{retro-button-CS_yN0sA.js → retro-button-CrbkhjHv.js} +2 -2
  123. package/dist/chunks/retro-button-DrrBZ6w8.cjs +1 -1
  124. package/dist/chunks/{rive-BTqu1owb.js → rive-Bt5R5BjT.js} +2 -2
  125. package/dist/chunks/rive-D6X4J0Mi.cjs +1 -1
  126. package/dist/chunks/{runtime-link-Cf4bL3SI.cjs → runtime-link-B2K35RDs.cjs} +2 -2
  127. package/dist/chunks/{runtime-link-CnRLQlW3.js → runtime-link-CpmLxBJJ.js} +2 -2
  128. package/dist/chunks/{scene-DWNb4Lb1.js → scene-BdBNovdS.js} +2 -2
  129. package/dist/chunks/scene-C4h75wjo.cjs +1 -1
  130. package/dist/chunks/scroll-driven-CQbwzCdn.cjs +1 -1
  131. package/dist/chunks/scroll-driven-LghshrWq.js +1 -1
  132. package/dist/chunks/{scroll-scene-D3FOlUYX.cjs → scroll-scene-AgZC0qvi.cjs} +3 -3
  133. package/dist/chunks/{scroll-scene-B7ILdTi5.js → scroll-scene-DpMQxPIT.js} +4 -4
  134. package/dist/chunks/{segmented-Dn8MH47H.js → segmented-Bqxe4qRo.js} +2 -2
  135. package/dist/chunks/segmented-CpB4mKIn.cjs +1 -1
  136. package/dist/chunks/shader-backdrop-BodjXMhw.cjs +1 -1
  137. package/dist/chunks/{shader-backdrop-Cnq8-zUi.js → shader-backdrop-C49tKiU1.js} +2 -2
  138. package/dist/chunks/shared-Bf72wLyt.cjs +1 -1
  139. package/dist/chunks/shared-CkKHWrtJ.js +1 -1
  140. package/dist/chunks/shared-jkgRH-Hx.cjs +1 -1
  141. package/dist/chunks/shared-o9CtwHmi.js +1 -1
  142. package/dist/chunks/sheet-B38ylIEW.cjs +1 -1
  143. package/dist/chunks/{sheet-CeSuvE2R.js → sheet-DZXot7SV.js} +2 -2
  144. package/dist/chunks/sign-DvZ1jHxE.js +1 -1
  145. package/dist/chunks/sign-RAkQIWrM.cjs +1 -1
  146. package/dist/chunks/{skeleton-reveal-WR9NVMyM.js → skeleton-reveal-CMqfJYM2.js} +2 -2
  147. package/dist/chunks/skeleton-reveal-Dsd3Wp0n.cjs +1 -1
  148. package/dist/chunks/{sparkline-4vqobz_N.js → sparkline-3fxOzufX.js} +2 -2
  149. package/dist/chunks/sparkline-DeKhZpVo.cjs +1 -1
  150. package/dist/chunks/{spring-CpnuPym2.js → spring-CLwlIQHm.js} +2 -2
  151. package/dist/chunks/spring-XEl_diDJ.cjs +1 -1
  152. package/dist/chunks/stagger-B9sKPwQB.js +1 -1
  153. package/dist/chunks/stagger-DFKwqOQG.cjs +1 -1
  154. package/dist/chunks/{suggestion-chips-CuuKEDNG.js → suggestion-chips-BwKPsDra.js} +2 -2
  155. package/dist/chunks/suggestion-chips-CAcbFTr4.cjs +1 -1
  156. package/dist/chunks/{switch-WErIYZJD.js → switch-CMtM5gqP.js} +2 -2
  157. package/dist/chunks/switch-DiTlApGd.cjs +1 -1
  158. package/dist/chunks/tab-bar-BBlVAqbq.cjs +1 -1
  159. package/dist/chunks/{tab-bar-D01Yx5Qz.js → tab-bar-COPkxGY6.js} +2 -2
  160. package/dist/chunks/{ticker-Cv_Ex_sv.cjs → ticker-BW30s-pl.cjs} +2 -2
  161. package/dist/chunks/{ticker-B-UUbU4I.js → ticker-DXzmybPg.js} +2 -2
  162. package/dist/chunks/{tip-BsX2--FP.js → tip-D4DdDz83.js} +2 -2
  163. package/dist/chunks/tip-VGS3qAUm.cjs +1 -1
  164. package/dist/chunks/{toast-stack-Cdu0GOkt.js → toast-stack-Cx1aTwf5.js} +3 -3
  165. package/dist/chunks/toast-stack-DprisNp_.cjs +1 -1
  166. package/dist/chunks/{tween-BehYElBX.js → tween-D3lrIjNV.js} +2 -2
  167. package/dist/chunks/{tween-DDFjS4XP.cjs → tween-DbkRekG1.cjs} +2 -2
  168. package/dist/chunks/upload-progress-CEAWkP-p.cjs +1 -1
  169. package/dist/chunks/{upload-progress-DguzIPm0.js → upload-progress-Px_Zdd9c.js} +2 -2
  170. package/dist/chunks/{variants-Dvcgx0pd.js → variants-BV9wFxiP.js} +2 -2
  171. package/dist/chunks/variants-BtqEJuki.cjs +1 -1
  172. package/dist/chunks/viewport-BAXHhZLV.js +1 -1
  173. package/dist/chunks/viewport-EFYGqMNa.cjs +1 -1
  174. package/dist/chunks/voice-button-9UauxvT9.cjs +1 -1
  175. package/dist/chunks/{voice-button-DBAXRVMZ.js → voice-button-CmbZldLT.js} +2 -2
  176. package/dist/chunks/weather-card-4Eg6e43D.cjs +1 -1
  177. package/dist/chunks/{weather-card-DQ9HUFd4.js → weather-card-BdvgvAxQ.js} +2 -2
  178. package/dist/chunks/{worker-canvas-BZKnSNtg.js → worker-canvas-BLXaLvtq.js} +2 -2
  179. package/dist/chunks/worker-canvas-BMBXAFWp.cjs +1 -1
  180. package/dist/chunks/{xp-bar-CxjWJQFS.js → xp-bar-CjOalkPm.js} +2 -2
  181. package/dist/chunks/xp-bar-DkWfCTfB.cjs +1 -1
  182. package/dist/components/a11y.cjs +1 -1
  183. package/dist/components/a11y.js +3 -3
  184. package/dist/components/ai.cjs +1 -1
  185. package/dist/components/ai.js +1 -1
  186. package/dist/components/angular.cjs +1 -1
  187. package/dist/components/angular.js +1 -1
  188. package/dist/components/background.cjs +1 -1
  189. package/dist/components/background.js +3 -3
  190. package/dist/components/bridge.cjs +1 -1
  191. package/dist/components/bridge.js +2 -2
  192. package/dist/components/cards.cjs +1 -1
  193. package/dist/components/cards.js +3 -3
  194. package/dist/components/click.cjs +1 -1
  195. package/dist/components/click.js +4 -4
  196. package/dist/components/compat-v13.cjs +1 -1
  197. package/dist/components/compat-v13.js +3 -3
  198. package/dist/components/core.cjs +1 -1
  199. package/dist/components/core.js +1 -1
  200. package/dist/components/depth.cjs +1 -1
  201. package/dist/components/depth.js +4 -4
  202. package/dist/components/design.cjs +1 -1
  203. package/dist/components/design.js +2 -2
  204. package/dist/components/dotlottie.cjs +3 -3
  205. package/dist/components/dotlottie.js +4 -4
  206. package/dist/components/dsl.cjs +1 -1
  207. package/dist/components/dsl.js +2 -2
  208. package/dist/components/effects.cjs +1 -1
  209. package/dist/components/effects.js +10 -10
  210. package/dist/components/engine.cjs +1 -1
  211. package/dist/components/engine.js +3 -3
  212. package/dist/components/feedback.cjs +1 -1
  213. package/dist/components/feedback.js +2 -2
  214. package/dist/components/fx-3d.cjs +1 -1
  215. package/dist/components/fx-3d.js +3 -3
  216. package/dist/components/fx-ai.cjs +1 -1
  217. package/dist/components/fx-ai.js +2 -2
  218. package/dist/components/fx-chart.cjs +1 -1
  219. package/dist/components/fx-chart.js +2 -2
  220. package/dist/components/fx-cinema.cjs +1 -1
  221. package/dist/components/fx-cinema.js +2 -2
  222. package/dist/components/fx-cyber.cjs +1 -1
  223. package/dist/components/fx-cyber.js +2 -2
  224. package/dist/components/fx-festival.cjs +1 -1
  225. package/dist/components/fx-festival.js +2 -2
  226. package/dist/components/fx-focus.cjs +1 -1
  227. package/dist/components/fx-focus.js +2 -2
  228. package/dist/components/fx-form.cjs +1 -1
  229. package/dist/components/fx-form.js +2 -2
  230. package/dist/components/fx-game.cjs +1 -1
  231. package/dist/components/fx-game.js +2 -2
  232. package/dist/components/fx-genart.cjs +1 -1
  233. package/dist/components/fx-genart.js +2 -2
  234. package/dist/components/fx-geo.cjs +1 -1
  235. package/dist/components/fx-geo.js +2 -2
  236. package/dist/components/fx-gesture.cjs +1 -1
  237. package/dist/components/fx-gesture.js +2 -2
  238. package/dist/components/fx-gpu.cjs +1 -1
  239. package/dist/components/fx-gpu.js +4 -4
  240. package/dist/components/fx-light.cjs +1 -1
  241. package/dist/components/fx-light.js +4 -4
  242. package/dist/components/fx-lottie.cjs +1 -1
  243. package/dist/components/fx-lottie.js +2 -2
  244. package/dist/components/fx-morph.cjs +1 -1
  245. package/dist/components/fx-morph.js +2 -2
  246. package/dist/components/fx-music.cjs +1 -1
  247. package/dist/components/fx-music.js +5 -5
  248. package/dist/components/fx-organic.cjs +1 -1
  249. package/dist/components/fx-organic.js +2 -2
  250. package/dist/components/fx-paper.cjs +1 -1
  251. package/dist/components/fx-paper.js +2 -2
  252. package/dist/components/fx-perf.cjs +1 -1
  253. package/dist/components/fx-perf.js +3 -3
  254. package/dist/components/fx-physics.cjs +1 -1
  255. package/dist/components/fx-physics.js +4 -4
  256. package/dist/components/fx-retro.cjs +1 -1
  257. package/dist/components/fx-retro.js +2 -2
  258. package/dist/components/fx-safe.cjs +1 -1
  259. package/dist/components/fx-safe.js +3 -3
  260. package/dist/components/fx-shop.cjs +1 -1
  261. package/dist/components/fx-shop.js +2 -2
  262. package/dist/components/fx-social.cjs +1 -1
  263. package/dist/components/fx-social.js +2 -2
  264. package/dist/components/fx-spatial.cjs +1 -1
  265. package/dist/components/fx-spatial.js +2 -2
  266. package/dist/components/fx-surface.cjs +1 -1
  267. package/dist/components/fx-surface.js +2 -2
  268. package/dist/components/fx-text.cjs +1 -1
  269. package/dist/components/fx-text.js +3 -3
  270. package/dist/components/fx-transitions.cjs +1 -1
  271. package/dist/components/fx-transitions.js +4 -4
  272. package/dist/components/fx-video.cjs +1 -1
  273. package/dist/components/fx-video.js +3 -3
  274. package/dist/components/fx-weather.cjs +1 -1
  275. package/dist/components/fx-weather.js +3 -3
  276. package/dist/components/fx.cjs +1 -1
  277. package/dist/components/fx.js +5 -5
  278. package/dist/components/fx2.cjs +1 -1
  279. package/dist/components/fx2.js +5 -5
  280. package/dist/components/gesture.cjs +1 -1
  281. package/dist/components/gesture.js +5 -5
  282. package/dist/components/gl-model.cjs +3 -3
  283. package/dist/components/gl-model.js +4 -4
  284. package/dist/components/gl-pool.cjs +1 -1
  285. package/dist/components/gl-pool.js +1 -1
  286. package/dist/components/interaction.cjs +1 -1
  287. package/dist/components/interaction.js +2 -2
  288. package/dist/components/jsx.cjs +1 -1
  289. package/dist/components/jsx.js +1 -1
  290. package/dist/components/layout.cjs +1 -1
  291. package/dist/components/layout.js +2 -2
  292. package/dist/components/lazy.cjs +1 -1
  293. package/dist/components/lazy.js +1 -1
  294. package/dist/components/lite.cjs +1 -1
  295. package/dist/components/lite.js +1 -1
  296. package/dist/components/marketplace.cjs +1 -1
  297. package/dist/components/marketplace.js +3 -3
  298. package/dist/components/motion-layout.cjs +566 -0
  299. package/dist/components/motion-layout.d.cts +209 -0
  300. package/dist/components/motion-layout.d.ts +209 -0
  301. package/dist/components/motion-layout.js +543 -0
  302. package/dist/components/motion-scene.cjs +1 -1
  303. package/dist/components/motion-scene.js +3 -3
  304. package/dist/components/motion-tokens.cjs +1 -1
  305. package/dist/components/motion-tokens.js +1 -1
  306. package/dist/components/motion.cjs +1 -1
  307. package/dist/components/motion.js +5 -5
  308. package/dist/components/native.cjs +1 -1
  309. package/dist/components/native.js +1 -1
  310. package/dist/components/offscreen.cjs +1 -1
  311. package/dist/components/offscreen.js +3 -3
  312. package/dist/components/packs.cjs +1 -1
  313. package/dist/components/packs.js +2 -2
  314. package/dist/components/page.cjs +1 -1
  315. package/dist/components/page.js +4 -4
  316. package/dist/components/perf-tasks.cjs +1 -1
  317. package/dist/components/perf-tasks.js +2 -2
  318. package/dist/components/perf.cjs +1 -1
  319. package/dist/components/perf.js +3 -3
  320. package/dist/components/physics.cjs +1 -1
  321. package/dist/components/physics.js +4 -4
  322. package/dist/components/plugins.cjs +1 -1
  323. package/dist/components/plugins.js +2 -2
  324. package/dist/components/react.cjs +1 -1
  325. package/dist/components/react.js +1 -1
  326. package/dist/components/reveal.cjs +1 -1
  327. package/dist/components/reveal.js +2 -2
  328. package/dist/components/scene-v2.cjs +1 -1
  329. package/dist/components/scene-v2.js +3 -3
  330. package/dist/components/snap-carousel.cjs +2 -2
  331. package/dist/components/snap-carousel.js +3 -3
  332. package/dist/components/solid.cjs +1 -1
  333. package/dist/components/solid.js +1 -1
  334. package/dist/components/studio-canvas.cjs +998 -0
  335. package/dist/components/studio-canvas.d.cts +377 -0
  336. package/dist/components/studio-canvas.d.ts +377 -0
  337. package/dist/components/studio-canvas.js +978 -0
  338. package/dist/components/svelte.cjs +1 -1
  339. package/dist/components/svelte.js +1 -1
  340. package/dist/components/svg.cjs +1 -1
  341. package/dist/components/svg.js +2 -2
  342. package/dist/components/text.cjs +1 -1
  343. package/dist/components/text.js +3 -3
  344. package/dist/components/timeline-editor.cjs +22 -466
  345. package/dist/components/timeline-editor.js +7 -451
  346. package/dist/components/timeline.cjs +1 -1
  347. package/dist/components/timeline.js +4 -4
  348. package/dist/components/tokens.cjs +1 -1
  349. package/dist/components/tokens.js +1 -1
  350. package/dist/components/transitions.cjs +1 -1
  351. package/dist/components/transitions.js +2 -2
  352. package/dist/components/ui.cjs +1 -1
  353. package/dist/components/ui.js +5 -5
  354. package/dist/components/vue.cjs +1 -1
  355. package/dist/components/vue.js +1 -1
  356. package/dist/components/webgl.cjs +1 -1
  357. package/dist/components/webgl.js +2 -2
  358. package/dist/components/widgets.cjs +5 -5
  359. package/dist/components/widgets.js +101 -101
  360. package/dist/components.cjs +1 -1
  361. package/dist/components.js +11 -11
  362. package/dist/components.umd.js +1 -1
  363. package/dist/effects/achievement-unlock.cjs +1 -1
  364. package/dist/effects/achievement-unlock.js +2 -2
  365. package/dist/effects/aurora-veil.cjs +1 -1
  366. package/dist/effects/aurora-veil.js +2 -2
  367. package/dist/effects/badge-pop.cjs +1 -1
  368. package/dist/effects/badge-pop.js +2 -2
  369. package/dist/effects/bars-grow.cjs +1 -1
  370. package/dist/effects/bars-grow.js +2 -2
  371. package/dist/effects/beat-bounce.cjs +1 -1
  372. package/dist/effects/beat-bounce.js +2 -2
  373. package/dist/effects/blob-button.cjs +1 -1
  374. package/dist/effects/blob-button.js +2 -2
  375. package/dist/effects/bloom.cjs +1 -1
  376. package/dist/effects/bloom.js +2 -2
  377. package/dist/effects/breathe.cjs +1 -1
  378. package/dist/effects/breathe.js +2 -2
  379. package/dist/effects/brushed-metal.cjs +1 -1
  380. package/dist/effects/brushed-metal.js +2 -2
  381. package/dist/effects/camera-dolly.cjs +1 -1
  382. package/dist/effects/camera-dolly.js +2 -2
  383. package/dist/effects/card-flip-3d.cjs +1 -1
  384. package/dist/effects/card-flip-3d.js +2 -2
  385. package/dist/effects/chest-open.cjs +1 -1
  386. package/dist/effects/chest-open.js +2 -2
  387. package/dist/effects/cloth.cjs +1 -1
  388. package/dist/effects/cloth.js +2 -2
  389. package/dist/effects/coin-burst.cjs +1 -1
  390. package/dist/effects/coin-burst.js +2 -2
  391. package/dist/effects/color-pulse.cjs +1 -1
  392. package/dist/effects/color-pulse.js +2 -2
  393. package/dist/effects/crt-power.cjs +1 -1
  394. package/dist/effects/crt-power.js +2 -2
  395. package/dist/effects/crumple.cjs +1 -1
  396. package/dist/effects/crumple.js +2 -2
  397. package/dist/effects/data-decode.cjs +1 -1
  398. package/dist/effects/data-decode.js +2 -2
  399. package/dist/effects/day-cycle.cjs +1 -1
  400. package/dist/effects/day-cycle.js +2 -2
  401. package/dist/effects/depth-in.cjs +1 -1
  402. package/dist/effects/depth-in.js +2 -2
  403. package/dist/effects/depth-pop.cjs +1 -1
  404. package/dist/effects/depth-pop.js +2 -2
  405. package/dist/effects/depth-stack.cjs +1 -1
  406. package/dist/effects/depth-stack.js +2 -2
  407. package/dist/effects/dolly-in.cjs +1 -1
  408. package/dist/effects/dolly-in.js +2 -2
  409. package/dist/effects/dots-pop.cjs +1 -1
  410. package/dist/effects/dots-pop.js +2 -2
  411. package/dist/effects/field-shake.cjs +1 -1
  412. package/dist/effects/field-shake.js +2 -2
  413. package/dist/effects/field-success.cjs +1 -1
  414. package/dist/effects/field-success.js +2 -2
  415. package/dist/effects/film-burn.cjs +1 -1
  416. package/dist/effects/film-burn.js +2 -2
  417. package/dist/effects/fire.cjs +1 -1
  418. package/dist/effects/fire.js +3 -3
  419. package/dist/effects/fireflies.cjs +1 -1
  420. package/dist/effects/fireflies.js +3 -3
  421. package/dist/effects/firework-burst.cjs +1 -1
  422. package/dist/effects/firework-burst.js +2 -2
  423. package/dist/effects/flip-chars.cjs +1 -1
  424. package/dist/effects/flip-chars.js +2 -2
  425. package/dist/effects/fluid.cjs +1 -1
  426. package/dist/effects/fluid.js +3 -3
  427. package/dist/effects/fly-to-cart.cjs +1 -1
  428. package/dist/effects/fly-to-cart.js +2 -2
  429. package/dist/effects/focus-draw.cjs +1 -1
  430. package/dist/effects/focus-draw.js +2 -2
  431. package/dist/effects/focus-glow.cjs +1 -1
  432. package/dist/effects/focus-glow.js +2 -2
  433. package/dist/effects/fog.cjs +1 -1
  434. package/dist/effects/fog.js +2 -2
  435. package/dist/effects/font-breathe.cjs +1 -1
  436. package/dist/effects/font-breathe.js +2 -2
  437. package/dist/effects/form-cascade.cjs +1 -1
  438. package/dist/effects/form-cascade.js +2 -2
  439. package/dist/effects/gen-skeleton.cjs +1 -1
  440. package/dist/effects/gen-skeleton.js +2 -2
  441. package/dist/effects/glass-frost.cjs +1 -1
  442. package/dist/effects/glass-frost.js +2 -2
  443. package/dist/effects/glitch-text.cjs +1 -1
  444. package/dist/effects/glitch-text.js +2 -2
  445. package/dist/effects/globe-spin.cjs +1 -1
  446. package/dist/effects/globe-spin.js +2 -2
  447. package/dist/effects/god-rays.cjs +1 -1
  448. package/dist/effects/god-rays.js +2 -2
  449. package/dist/effects/gpu-lift.cjs +1 -1
  450. package/dist/effects/gpu-lift.js +2 -2
  451. package/dist/effects/grain-flicker.cjs +1 -1
  452. package/dist/effects/grain-flicker.js +2 -2
  453. package/dist/effects/halftone-in.cjs +1 -1
  454. package/dist/effects/halftone-in.js +2 -2
  455. package/dist/effects/highlight-sweep.cjs +1 -1
  456. package/dist/effects/highlight-sweep.js +2 -2
  457. package/dist/effects/hologram.cjs +1 -1
  458. package/dist/effects/hologram.js +2 -2
  459. package/dist/effects/hud-frame.cjs +1 -1
  460. package/dist/effects/hud-frame.js +2 -2
  461. package/dist/effects/icon-pop.cjs +1 -1
  462. package/dist/effects/icon-pop.js +2 -2
  463. package/dist/effects/icon-swap.cjs +1 -1
  464. package/dist/effects/icon-swap.js +2 -2
  465. package/dist/effects/idle-reveal.cjs +1 -1
  466. package/dist/effects/idle-reveal.js +2 -2
  467. package/dist/effects/ink.cjs +1 -1
  468. package/dist/effects/ink.js +3 -3
  469. package/dist/effects/jump-cut.cjs +1 -1
  470. package/dist/effects/jump-cut.js +2 -2
  471. package/dist/effects/kaleido.cjs +1 -1
  472. package/dist/effects/kaleido.js +2 -2
  473. package/dist/effects/label-float.cjs +1 -1
  474. package/dist/effects/label-float.js +2 -2
  475. package/dist/effects/lantern-rise.cjs +1 -1
  476. package/dist/effects/lantern-rise.js +2 -2
  477. package/dist/effects/leaves.cjs +1 -1
  478. package/dist/effects/leaves.js +3 -3
  479. package/dist/effects/letterbox.cjs +1 -1
  480. package/dist/effects/letterbox.js +2 -2
  481. package/dist/effects/level-up.cjs +1 -1
  482. package/dist/effects/level-up.js +2 -2
  483. package/dist/effects/light-follow.cjs +1 -1
  484. package/dist/effects/light-follow.js +2 -2
  485. package/dist/effects/lightning.cjs +1 -1
  486. package/dist/effects/lightning.js +2 -2
  487. package/dist/effects/line-draw.cjs +1 -1
  488. package/dist/effects/line-draw.js +2 -2
  489. package/dist/effects/liquid-text.cjs +1 -1
  490. package/dist/effects/liquid-text.js +2 -2
  491. package/dist/effects/liquid-wipe.cjs +1 -1
  492. package/dist/effects/liquid-wipe.js +2 -2
  493. package/dist/effects/lottie-play.cjs +1 -1
  494. package/dist/effects/lottie-play.js +2 -2
  495. package/dist/effects/magnet.cjs +1 -1
  496. package/dist/effects/magnet.js +2 -2
  497. package/dist/effects/marching-ants.cjs +1 -1
  498. package/dist/effects/marching-ants.js +2 -2
  499. package/dist/effects/marker-pulse.cjs +1 -1
  500. package/dist/effects/marker-pulse.js +2 -2
  501. package/dist/effects/mention-glow.cjs +1 -1
  502. package/dist/effects/mention-glow.js +2 -2
  503. package/dist/effects/mesh-drift.cjs +1 -1
  504. package/dist/effects/mesh-drift.js +2 -2
  505. package/dist/effects/message-in.cjs +1 -1
  506. package/dist/effects/message-in.js +2 -2
  507. package/dist/effects/mosaic-flip.cjs +1 -1
  508. package/dist/effects/mosaic-flip.js +2 -2
  509. package/dist/effects/neon-ignite.cjs +1 -1
  510. package/dist/effects/neon-ignite.js +2 -2
  511. package/dist/effects/neon-pulse.cjs +1 -1
  512. package/dist/effects/neon-pulse.js +2 -2
  513. package/dist/effects/neon-write.cjs +1 -1
  514. package/dist/effects/neon-write.js +2 -2
  515. package/dist/effects/neu-press.cjs +1 -1
  516. package/dist/effects/neu-press.js +2 -2
  517. package/dist/effects/noise-reveal.cjs +1 -1
  518. package/dist/effects/noise-reveal.js +2 -2
  519. package/dist/effects/number-roll.cjs +1 -1
  520. package/dist/effects/number-roll.js +2 -2
  521. package/dist/effects/orbit-camera.cjs +1 -1
  522. package/dist/effects/orbit-camera.js +2 -2
  523. package/dist/effects/orbit-in.cjs +1 -1
  524. package/dist/effects/orbit-in.js +2 -2
  525. package/dist/effects/origami.cjs +1 -1
  526. package/dist/effects/origami.js +2 -2
  527. package/dist/effects/page-curl.cjs +1 -1
  528. package/dist/effects/page-curl.js +2 -2
  529. package/dist/effects/pan-reveal.cjs +1 -1
  530. package/dist/effects/pan-reveal.js +2 -2
  531. package/dist/effects/paper-unfold.cjs +1 -1
  532. package/dist/effects/paper-unfold.js +2 -2
  533. package/dist/effects/particle-text.cjs +1 -1
  534. package/dist/effects/particle-text.js +2 -2
  535. package/dist/effects/path-morph.cjs +1 -1
  536. package/dist/effects/path-morph.js +2 -2
  537. package/dist/effects/pearlescent.cjs +1 -1
  538. package/dist/effects/pearlescent.js +2 -2
  539. package/dist/effects/pencil-sketch.cjs +1 -1
  540. package/dist/effects/pencil-sketch.js +2 -2
  541. package/dist/effects/pin-drop.cjs +1 -1
  542. package/dist/effects/pin-drop.js +2 -2
  543. package/dist/effects/pinball.cjs +1 -1
  544. package/dist/effects/pinball.js +2 -2
  545. package/dist/effects/pinch-hint.cjs +1 -1
  546. package/dist/effects/pinch-hint.js +2 -2
  547. package/dist/effects/pixelate-in.cjs +1 -1
  548. package/dist/effects/pixelate-in.js +2 -2
  549. package/dist/effects/pointer-shadow.cjs +1 -1
  550. package/dist/effects/pointer-shadow.js +2 -2
  551. package/dist/effects/portal-open.cjs +1 -1
  552. package/dist/effects/portal-open.js +2 -2
  553. package/dist/effects/price-flip.cjs +1 -1
  554. package/dist/effects/price-flip.js +2 -2
  555. package/dist/effects/product-spin.cjs +1 -1
  556. package/dist/effects/product-spin.js +2 -2
  557. package/dist/effects/rack-focus.cjs +1 -1
  558. package/dist/effects/rack-focus.js +2 -2
  559. package/dist/effects/radial-spectrum.cjs +1 -1
  560. package/dist/effects/radial-spectrum.js +2 -2
  561. package/dist/effects/rain-glass.cjs +1 -1
  562. package/dist/effects/rain-glass.js +2 -2
  563. package/dist/effects/reaction-burst.cjs +1 -1
  564. package/dist/effects/reaction-burst.js +2 -2
  565. package/dist/effects/read-receipt.cjs +1 -1
  566. package/dist/effects/read-receipt.js +2 -2
  567. package/dist/effects/refraction.cjs +1 -1
  568. package/dist/effects/refraction.js +2 -2
  569. package/dist/effects/ring-sweep.cjs +1 -1
  570. package/dist/effects/ring-sweep.js +2 -2
  571. package/dist/effects/ripple-dissolve.cjs +1 -1
  572. package/dist/effects/ripple-dissolve.js +2 -2
  573. package/dist/effects/rope.cjs +1 -1
  574. package/dist/effects/rope.js +2 -2
  575. package/dist/effects/route-draw.cjs +1 -1
  576. package/dist/effects/route-draw.js +2 -2
  577. package/dist/effects/safe-fade.cjs +1 -1
  578. package/dist/effects/safe-fade.js +2 -2
  579. package/dist/effects/sakura.cjs +1 -1
  580. package/dist/effects/sakura.js +3 -3
  581. package/dist/effects/sale-shine.cjs +1 -1
  582. package/dist/effects/sale-shine.js +2 -2
  583. package/dist/effects/sankey-flow.cjs +1 -1
  584. package/dist/effects/sankey-flow.js +2 -2
  585. package/dist/effects/scanline-sweep.cjs +1 -1
  586. package/dist/effects/scanline-sweep.js +2 -2
  587. package/dist/effects/shatter.cjs +1 -1
  588. package/dist/effects/shatter.js +2 -2
  589. package/dist/effects/smoke.cjs +1 -1
  590. package/dist/effects/smoke.js +3 -3
  591. package/dist/effects/snowfall.cjs +1 -1
  592. package/dist/effects/snowfall.js +2 -2
  593. package/dist/effects/soft-body.cjs +1 -1
  594. package/dist/effects/soft-body.js +2 -2
  595. package/dist/effects/sound-particles.cjs +1 -1
  596. package/dist/effects/sound-particles.js +2 -2
  597. package/dist/effects/spatial-float.cjs +1 -1
  598. package/dist/effects/spatial-float.js +2 -2
  599. package/dist/effects/spectrum-mirror.cjs +1 -1
  600. package/dist/effects/spectrum-mirror.js +2 -2
  601. package/dist/effects/splash.cjs +1 -1
  602. package/dist/effects/splash.js +3 -3
  603. package/dist/effects/spooky-float.cjs +1 -1
  604. package/dist/effects/spooky-float.js +2 -2
  605. package/dist/effects/stock-pulse.cjs +1 -1
  606. package/dist/effects/stock-pulse.js +2 -2
  607. package/dist/effects/stream-text.cjs +1 -1
  608. package/dist/effects/stream-text.js +2 -2
  609. package/dist/effects/stroke-draw.cjs +1 -1
  610. package/dist/effects/stroke-draw.js +2 -2
  611. package/dist/effects/success-check.cjs +1 -1
  612. package/dist/effects/success-check.js +2 -2
  613. package/dist/effects/swipe-hint.cjs +1 -1
  614. package/dist/effects/swipe-hint.js +2 -2
  615. package/dist/effects/text-trail.cjs +1 -1
  616. package/dist/effects/text-trail.js +2 -2
  617. package/dist/effects/thinking-glow.cjs +1 -1
  618. package/dist/effects/thinking-glow.js +2 -2
  619. package/dist/effects/tilt-wobble.cjs +1 -1
  620. package/dist/effects/tilt-wobble.js +2 -2
  621. package/dist/effects/typing-dots.cjs +1 -1
  622. package/dist/effects/typing-dots.js +2 -2
  623. package/dist/effects/underline-sweep.cjs +1 -1
  624. package/dist/effects/underline-sweep.js +2 -2
  625. package/dist/effects/vhs-glitch.cjs +1 -1
  626. package/dist/effects/vhs-glitch.js +2 -2
  627. package/dist/effects/vine-grow.cjs +1 -1
  628. package/dist/effects/vine-grow.js +2 -2
  629. package/dist/effects/vinyl-spin.cjs +1 -1
  630. package/dist/effects/vinyl-spin.js +2 -2
  631. package/dist/effects/voice-wave.cjs +1 -1
  632. package/dist/effects/voice-wave.js +2 -2
  633. package/dist/effects/water-drop.cjs +1 -1
  634. package/dist/effects/water-drop.js +2 -2
  635. package/dist/effects/watercolor.cjs +1 -1
  636. package/dist/effects/watercolor.js +2 -2
  637. package/dist/effects/waveform-scope.cjs +1 -1
  638. package/dist/effects/waveform-scope.js +2 -2
  639. package/dist/effects/xmas-snow.cjs +1 -1
  640. package/dist/effects/xmas-snow.js +2 -2
  641. package/dist/effects/xp-gain.cjs +1 -1
  642. package/dist/effects/xp-gain.js +2 -2
  643. package/dist/effects/y2k-shine.cjs +1 -1
  644. package/dist/effects/y2k-shine.js +2 -2
  645. package/dist/element.cjs +1 -1
  646. package/dist/element.js +1 -1
  647. package/dist/element.umd.js +1 -1
  648. package/dist/index.cjs +1 -1
  649. package/dist/index.js +2 -2
  650. package/dist/index.umd.js +1 -1
  651. package/dist/llms-full.txt +1 -1
  652. package/dist/llms.txt +1 -1
  653. package/dist/manifest.json +1 -1
  654. package/dist/presets/extended.cjs +1 -1
  655. package/dist/presets/extended.js +1 -1
  656. package/dist/presets-extended.umd.js +1 -1
  657. package/dist/react.cjs +1 -1
  658. package/dist/react.js +1 -1
  659. package/dist/runtime/drag-snap.cjs +2 -2
  660. package/dist/runtime/drag-snap.iife.js +1 -1
  661. package/dist/runtime/drag-snap.js +2 -2
  662. package/dist/runtime/format-apng.cjs +3 -3
  663. package/dist/runtime/format-apng.iife.js +1 -1
  664. package/dist/runtime/format-apng.js +3 -3
  665. package/dist/runtime/format-css.cjs +3 -3
  666. package/dist/runtime/format-css.iife.js +1 -1
  667. package/dist/runtime/format-css.js +3 -3
  668. package/dist/runtime/format-gif.cjs +3 -3
  669. package/dist/runtime/format-gif.iife.js +1 -1
  670. package/dist/runtime/format-gif.js +3 -3
  671. package/dist/runtime/format-gltf.cjs +2 -2
  672. package/dist/runtime/format-gltf.iife.js +1 -1
  673. package/dist/runtime/format-gltf.js +2 -2
  674. package/dist/runtime/format-motion.cjs +4 -4
  675. package/dist/runtime/format-motion.iife.js +1 -1
  676. package/dist/runtime/format-motion.js +4 -4
  677. package/dist/runtime/format-obj.cjs +2 -2
  678. package/dist/runtime/format-obj.iife.js +1 -1
  679. package/dist/runtime/format-obj.js +2 -2
  680. package/dist/runtime/format-scene.cjs +2 -2
  681. package/dist/runtime/format-scene.iife.js +1 -1
  682. package/dist/runtime/format-scene.js +2 -2
  683. package/dist/runtime/format-sprite.cjs +3 -3
  684. package/dist/runtime/format-sprite.iife.js +1 -1
  685. package/dist/runtime/format-sprite.js +3 -3
  686. package/dist/runtime/format-svg.cjs +3 -3
  687. package/dist/runtime/format-svg.iife.js +1 -1
  688. package/dist/runtime/format-svg.js +3 -3
  689. package/dist/runtime/format-webp.cjs +3 -3
  690. package/dist/runtime/format-webp.iife.js +1 -1
  691. package/dist/runtime/format-webp.js +3 -3
  692. package/dist/runtime/gl.cjs +2 -2
  693. package/dist/runtime/gl.iife.js +1 -1
  694. package/dist/runtime/gl.js +2 -2
  695. package/dist/runtime/gltf-anim.cjs +2 -2
  696. package/dist/runtime/gltf-anim.iife.js +1 -1
  697. package/dist/runtime/gltf-anim.js +2 -2
  698. package/dist/runtime/gltf-decoders.cjs +2 -2
  699. package/dist/runtime/gltf-decoders.iife.js +1 -1
  700. package/dist/runtime/gltf-decoders.js +2 -2
  701. package/dist/runtime/lottie-state.cjs +2 -2
  702. package/dist/runtime/lottie-state.iife.js +1 -1
  703. package/dist/runtime/lottie-state.js +2 -2
  704. package/dist/runtime/physics.cjs +2 -2
  705. package/dist/runtime/physics.iife.js +1 -1
  706. package/dist/runtime/physics.js +2 -2
  707. package/dist/runtime/scroll.cjs +3 -3
  708. package/dist/runtime/scroll.iife.js +1 -1
  709. package/dist/runtime/scroll.js +3 -3
  710. package/dist/runtime/smooth.cjs +2 -2
  711. package/dist/runtime/smooth.iife.js +1 -1
  712. package/dist/runtime/smooth.js +2 -2
  713. package/dist/runtime/text.cjs +2 -2
  714. package/dist/runtime/text.iife.js +1 -1
  715. package/dist/runtime/text.js +2 -2
  716. package/dist/runtime/vector.cjs +3 -3
  717. package/dist/runtime/vector.iife.js +1 -1
  718. package/dist/runtime/vector.js +3 -3
  719. package/dist/runtime.cjs +4 -4
  720. package/dist/runtime.d.cts +1 -1
  721. package/dist/runtime.d.ts +1 -1
  722. package/dist/runtime.iife.js +2 -2
  723. package/dist/runtime.js +6 -6
  724. package/dist/solid.cjs +1 -1
  725. package/dist/solid.js +1 -1
  726. package/dist/svelte.cjs +1 -1
  727. package/dist/svelte.js +1 -1
  728. package/dist/vue.cjs +1 -1
  729. package/dist/vue.js +1 -1
  730. package/dist/widgets/add-to-cart.cjs +1 -1
  731. package/dist/widgets/add-to-cart.js +4 -4
  732. package/dist/widgets/badge-wall.cjs +1 -1
  733. package/dist/widgets/badge-wall.js +2 -2
  734. package/dist/widgets/bar-chart.cjs +1 -1
  735. package/dist/widgets/bar-chart.js +2 -2
  736. package/dist/widgets/bg-generator.cjs +1 -1
  737. package/dist/widgets/bg-generator.js +2 -2
  738. package/dist/widgets/carousel.cjs +1 -1
  739. package/dist/widgets/carousel.js +2 -2
  740. package/dist/widgets/cart-drawer.cjs +1 -1
  741. package/dist/widgets/cart-drawer.js +2 -2
  742. package/dist/widgets/chapter-nav.cjs +1 -1
  743. package/dist/widgets/chapter-nav.js +2 -2
  744. package/dist/widgets/chat-composer.cjs +1 -1
  745. package/dist/widgets/chat-composer.js +2 -2
  746. package/dist/widgets/clock-control.cjs +1 -1
  747. package/dist/widgets/clock-control.js +2 -2
  748. package/dist/widgets/code-export.cjs +1 -1
  749. package/dist/widgets/code-export.js +2 -2
  750. package/dist/widgets/color-picker.cjs +1 -1
  751. package/dist/widgets/color-picker.js +2 -2
  752. package/dist/widgets/command-palette.cjs +1 -1
  753. package/dist/widgets/command-palette.js +2 -2
  754. package/dist/widgets/compare.cjs +1 -1
  755. package/dist/widgets/compare.js +2 -2
  756. package/dist/widgets/countdown.cjs +1 -1
  757. package/dist/widgets/countdown.js +2 -2
  758. package/dist/widgets/cube-gallery.cjs +1 -1
  759. package/dist/widgets/cube-gallery.js +2 -2
  760. package/dist/widgets/date-picker.cjs +1 -1
  761. package/dist/widgets/date-picker.js +2 -2
  762. package/dist/widgets/disclosure.cjs +1 -1
  763. package/dist/widgets/disclosure.js +3 -3
  764. package/dist/widgets/dock.cjs +1 -1
  765. package/dist/widgets/dock.js +2 -2
  766. package/dist/widgets/dotlottie.cjs +1 -1
  767. package/dist/widgets/dotlottie.js +1 -1
  768. package/dist/widgets/equalizer.cjs +1 -1
  769. package/dist/widgets/equalizer.js +2 -2
  770. package/dist/widgets/festival-banner.cjs +1 -1
  771. package/dist/widgets/festival-banner.js +2 -2
  772. package/dist/widgets/field.cjs +1 -1
  773. package/dist/widgets/field.js +2 -2
  774. package/dist/widgets/file-drop.cjs +1 -1
  775. package/dist/widgets/file-drop.js +2 -2
  776. package/dist/widgets/gauge.cjs +1 -1
  777. package/dist/widgets/gauge.js +2 -2
  778. package/dist/widgets/gen-art.cjs +1 -1
  779. package/dist/widgets/gen-art.js +2 -2
  780. package/dist/widgets/gesture-sticker.cjs +1 -1
  781. package/dist/widgets/gesture-sticker.js +2 -2
  782. package/dist/widgets/gl-model.cjs +1 -1
  783. package/dist/widgets/gl-model.js +1 -1
  784. package/dist/widgets/gl-scene.cjs +2 -2
  785. package/dist/widgets/gl-scene.js +2 -2
  786. package/dist/widgets/globe.cjs +1 -1
  787. package/dist/widgets/globe.js +2 -2
  788. package/dist/widgets/gpu-particles.cjs +1 -1
  789. package/dist/widgets/gpu-particles.js +2 -2
  790. package/dist/widgets/gyro-card.cjs +1 -1
  791. package/dist/widgets/gyro-card.js +2 -2
  792. package/dist/widgets/hero-video.cjs +1 -1
  793. package/dist/widgets/hero-video.js +2 -2
  794. package/dist/widgets/hud-panel.cjs +1 -1
  795. package/dist/widgets/hud-panel.js +2 -2
  796. package/dist/widgets/hydrate.cjs +1 -1
  797. package/dist/widgets/hydrate.js +2 -2
  798. package/dist/widgets/install-button.cjs +1 -1
  799. package/dist/widgets/install-button.js +2 -2
  800. package/dist/widgets/kanban.cjs +1 -1
  801. package/dist/widgets/kanban.js +2 -2
  802. package/dist/widgets/keyframe-editor.cjs +1 -1
  803. package/dist/widgets/keyframe-editor.js +3 -3
  804. package/dist/widgets/kpi.cjs +1 -1
  805. package/dist/widgets/kpi.js +2 -2
  806. package/dist/widgets/leaderboard.cjs +1 -1
  807. package/dist/widgets/leaderboard.js +2 -2
  808. package/dist/widgets/liquid-nav.cjs +1 -1
  809. package/dist/widgets/liquid-nav.js +2 -2
  810. package/dist/widgets/location-card.cjs +1 -1
  811. package/dist/widgets/location-card.js +2 -2
  812. package/dist/widgets/lottie-icon.cjs +1 -1
  813. package/dist/widgets/lottie-icon.js +2 -2
  814. package/dist/widgets/lottie-player.cjs +2 -2
  815. package/dist/widgets/lottie-player.js +2 -2
  816. package/dist/widgets/lottie.cjs +1 -1
  817. package/dist/widgets/lottie.js +2 -2
  818. package/dist/widgets/lyrics.cjs +1 -1
  819. package/dist/widgets/lyrics.js +2 -2
  820. package/dist/widgets/masonry-flow.cjs +1 -1
  821. package/dist/widgets/masonry-flow.js +2 -2
  822. package/dist/widgets/menu-toggle.cjs +1 -1
  823. package/dist/widgets/menu-toggle.js +2 -2
  824. package/dist/widgets/menu.cjs +1 -1
  825. package/dist/widgets/menu.js +2 -2
  826. package/dist/widgets/message-list.cjs +1 -1
  827. package/dist/widgets/message-list.js +2 -2
  828. package/dist/widgets/milestones.cjs +1 -1
  829. package/dist/widgets/milestones.js +2 -2
  830. package/dist/widgets/modal.cjs +1 -1
  831. package/dist/widgets/modal.js +2 -2
  832. package/dist/widgets/motion-inspector.cjs +2 -2
  833. package/dist/widgets/motion-inspector.js +3 -3
  834. package/dist/widgets/motion-prefs.cjs +1 -1
  835. package/dist/widgets/motion-prefs.js +2 -2
  836. package/dist/widgets/motion-prompt.cjs +1 -1
  837. package/dist/widgets/motion-prompt.js +2 -2
  838. package/dist/widgets/motion-spec.cjs +1 -1
  839. package/dist/widgets/motion-spec.js +2 -2
  840. package/dist/widgets/motion.cjs +1 -1
  841. package/dist/widgets/motion.js +2 -2
  842. package/dist/widgets/music-player.cjs +1 -1
  843. package/dist/widgets/music-player.js +2 -2
  844. package/dist/widgets/native-preview.cjs +1 -1
  845. package/dist/widgets/native-preview.js +2 -2
  846. package/dist/widgets/nav-morph.cjs +1 -1
  847. package/dist/widgets/nav-morph.js +2 -2
  848. package/dist/widgets/notification-bell.cjs +1 -1
  849. package/dist/widgets/notification-bell.js +2 -2
  850. package/dist/widgets/odometer.cjs +1 -1
  851. package/dist/widgets/odometer.js +2 -2
  852. package/dist/widgets/organic-card.cjs +1 -1
  853. package/dist/widgets/organic-card.js +2 -2
  854. package/dist/widgets/otp.cjs +1 -1
  855. package/dist/widgets/otp.js +2 -2
  856. package/dist/widgets/pagination.cjs +1 -1
  857. package/dist/widgets/pagination.js +2 -2
  858. package/dist/widgets/panorama.cjs +1 -1
  859. package/dist/widgets/panorama.js +2 -2
  860. package/dist/widgets/parallax-layers.cjs +1 -1
  861. package/dist/widgets/parallax-layers.js +2 -2
  862. package/dist/widgets/pause-all.cjs +1 -1
  863. package/dist/widgets/pause-all.js +2 -2
  864. package/dist/widgets/perf-monitor.cjs +1 -1
  865. package/dist/widgets/perf-monitor.js +2 -2
  866. package/dist/widgets/physics-playground.cjs +2 -2
  867. package/dist/widgets/physics-playground.js +2 -2
  868. package/dist/widgets/plugin-card.cjs +3 -3
  869. package/dist/widgets/plugin-card.js +4 -4
  870. package/dist/widgets/plugin-store.cjs +1 -1
  871. package/dist/widgets/plugin-store.js +2 -2
  872. package/dist/widgets/presence.cjs +1 -1
  873. package/dist/widgets/presence.js +2 -2
  874. package/dist/widgets/prize-wheel.cjs +1 -1
  875. package/dist/widgets/prize-wheel.js +2 -2
  876. package/dist/widgets/product-gallery.cjs +1 -1
  877. package/dist/widgets/product-gallery.js +2 -2
  878. package/dist/widgets/progress-ring.cjs +1 -1
  879. package/dist/widgets/progress-ring.js +2 -2
  880. package/dist/widgets/prop-panel.cjs +1 -1
  881. package/dist/widgets/prop-panel.js +2 -2
  882. package/dist/widgets/pull-cord.cjs +1 -1
  883. package/dist/widgets/pull-cord.js +2 -2
  884. package/dist/widgets/radar.cjs +1 -1
  885. package/dist/widgets/radar.js +2 -2
  886. package/dist/widgets/reactions.cjs +1 -1
  887. package/dist/widgets/reactions.js +2 -2
  888. package/dist/widgets/red-envelope.cjs +1 -1
  889. package/dist/widgets/red-envelope.js +2 -2
  890. package/dist/widgets/retro-button.cjs +1 -1
  891. package/dist/widgets/retro-button.js +2 -2
  892. package/dist/widgets/rive.cjs +1 -1
  893. package/dist/widgets/rive.js +2 -2
  894. package/dist/widgets/route-transition.cjs +1 -1
  895. package/dist/widgets/route-transition.js +2 -2
  896. package/dist/widgets/scene.cjs +1 -1
  897. package/dist/widgets/scene.js +2 -2
  898. package/dist/widgets/scroll-ring.cjs +1 -1
  899. package/dist/widgets/scroll-ring.js +2 -2
  900. package/dist/widgets/scroll-scene.cjs +2 -2
  901. package/dist/widgets/scroll-scene.js +2 -2
  902. package/dist/widgets/segmented.cjs +1 -1
  903. package/dist/widgets/segmented.js +2 -2
  904. package/dist/widgets/shader-backdrop.cjs +1 -1
  905. package/dist/widgets/shader-backdrop.js +2 -2
  906. package/dist/widgets/sheet.cjs +1 -1
  907. package/dist/widgets/sheet.js +2 -2
  908. package/dist/widgets/shortcut.cjs +1 -1
  909. package/dist/widgets/shortcut.js +3 -3
  910. package/dist/widgets/skeleton-reveal.cjs +1 -1
  911. package/dist/widgets/skeleton-reveal.js +2 -2
  912. package/dist/widgets/sketch-chart.cjs +1 -1
  913. package/dist/widgets/sketch-chart.js +2 -2
  914. package/dist/widgets/smooth-scroll.cjs +2 -2
  915. package/dist/widgets/smooth-scroll.js +3 -3
  916. package/dist/widgets/snap-carousel.cjs +1 -1
  917. package/dist/widgets/snap-carousel.js +1 -1
  918. package/dist/widgets/sparkline.cjs +1 -1
  919. package/dist/widgets/sparkline.js +2 -2
  920. package/dist/widgets/spatial-card.cjs +1 -1
  921. package/dist/widgets/spatial-card.js +2 -2
  922. package/dist/widgets/star-rating.cjs +1 -1
  923. package/dist/widgets/star-rating.js +2 -2
  924. package/dist/widgets/stepper.cjs +1 -1
  925. package/dist/widgets/stepper.js +2 -2
  926. package/dist/widgets/sticky-wall.cjs +1 -1
  927. package/dist/widgets/sticky-wall.js +2 -2
  928. package/dist/widgets/stories.cjs +1 -1
  929. package/dist/widgets/stories.js +2 -2
  930. package/dist/widgets/suggestion-chips.cjs +1 -1
  931. package/dist/widgets/suggestion-chips.js +2 -2
  932. package/dist/widgets/swipe-deck.cjs +1 -1
  933. package/dist/widgets/swipe-deck.js +2 -2
  934. package/dist/widgets/switch.cjs +1 -1
  935. package/dist/widgets/switch.js +2 -2
  936. package/dist/widgets/tab-bar.cjs +1 -1
  937. package/dist/widgets/tab-bar.js +2 -2
  938. package/dist/widgets/terminal.cjs +1 -1
  939. package/dist/widgets/terminal.js +2 -2
  940. package/dist/widgets/text-splitter.cjs +3 -3
  941. package/dist/widgets/text-splitter.js +4 -4
  942. package/dist/widgets/theme-surface.cjs +1 -1
  943. package/dist/widgets/theme-surface.js +2 -2
  944. package/dist/widgets/theme-switcher.cjs +1 -1
  945. package/dist/widgets/theme-switcher.js +2 -2
  946. package/dist/widgets/tip.cjs +1 -1
  947. package/dist/widgets/tip.js +2 -2
  948. package/dist/widgets/toast-stack.cjs +1 -1
  949. package/dist/widgets/toast-stack.js +2 -2
  950. package/dist/widgets/token-editor.cjs +1 -1
  951. package/dist/widgets/token-editor.js +2 -2
  952. package/dist/widgets/upload-progress.cjs +1 -1
  953. package/dist/widgets/upload-progress.js +2 -2
  954. package/dist/widgets/video-card.cjs +1 -1
  955. package/dist/widgets/video-card.js +2 -2
  956. package/dist/widgets/voice-button.cjs +1 -1
  957. package/dist/widgets/voice-button.js +2 -2
  958. package/dist/widgets/volume-knob.cjs +1 -1
  959. package/dist/widgets/volume-knob.js +2 -2
  960. package/dist/widgets/weather-card.cjs +1 -1
  961. package/dist/widgets/weather-card.js +2 -2
  962. package/dist/widgets/worker-canvas.cjs +1 -1
  963. package/dist/widgets/worker-canvas.js +2 -2
  964. package/dist/widgets/xp-bar.cjs +1 -1
  965. package/dist/widgets/xp-bar.js +2 -2
  966. package/dist/widgets.umd.js +2 -2
  967. package/docs/ROADMAP.md +46 -1
  968. package/docs/layout-motion.md +248 -0
  969. package/docs/studio-canvas.md +233 -0
  970. package/docs/versions.md +1 -1
  971. package/package.json +41 -1
package/docs/ROADMAP.md CHANGED
@@ -1,4 +1,49 @@
1
- # Motionary 路线图(10.0 之后)
1
+ # Motionary 路线图
2
+
3
+ ## 14.x → 15.0 版本追踪(2026-10-11 起采用)
4
+
5
+ 从 14.2 起,路线图按 **版本 / 状态 / 优先级 / 验收标准** 追踪。每个版本在发布前,都要以最新的 main、正式 Release 和必需 CI 的结果重新核对;表中的“建议”不是发布承诺。
6
+
7
+ **状态:** `[已发布]` 已进入正式 Release,不再加新功能 · `[在研]` 已有代码或 PR,但未达到合并门槛 · `[建议]` 建议按此方向安排 · `[条件]` 是否需要取决于前一阶段的测试结果,不为凑版本号而发布。
8
+ **优先级:** P0 = 发布阻断 / 安全 / 数据正确性;P1 = 核心产品能力;P2 = 体验与生态增强。
9
+
10
+ | 版本 | 状态 | 优先级 | 核心内容 | 发布验收标准 |
11
+ | --- | --- | --- | --- | --- |
12
+ | v14.0.0 | [已发布] | P0 | Motion Engine v2(`motionary/motion`),Scene Format v2 成为正式格式,`motionary/compat-v13` | 已发布(PR #144)。 |
13
+ | v14.1.0 | [已发布] | P1 | Motion Tokens 2.0(`motionary/tokens`:语义、距离、模式、DTCG、CSS、Figma Variables) | 已发布(PR #146)。 |
14
+ | v14.2.0 | [已发布] | P0 | Layout Motion 2.0(`motionary/motion/layout`):FLIP 与缩放 / 圆角校正、布局组、可中断动画、共享 `layoutId` 元素、View Transitions(同文档 / 跨文档)及 FLIP 回退、reduced motion([docs/layout-motion.md](./layout-motion.md)) | 已发布(PR #147)。验收:Node 20/22/24、Chromium/Firefox/WebKit 和体积检查全绿后才合并;lite ≤ 70 KB,现有预算均未提高,新入口有独立的 8 KB 预算。 |
15
+ | v14.3.0 | [已发布] | P1 | 创作画布基础(`motionary/studio/canvas`):可视化选中、框选、多选、层级 / 锁定 / 隐藏、参考线与吸附(参考线、兄弟元素边缘 / 中心、网格)、指针与触控的拖拽 / 缩放 / 旋转及画布双指缩放、键盘导航与微移、无障碍选择模型([docs/studio-canvas.md](./studio-canvas.md)) | 已发布(14.3.0)。验收:每次编辑都是可在 Scene Format v2 上无损重放的操作,并经由时间轴编辑器的撤销 / 重做;不使用 window / document 全局监听(测试断言监听数回到基线);Chromium / Firefox / WebKit 用鼠标与触控指针模拟(手机视口)测试;lite ≤ 70 KB,现有预算均未提高,新入口独立 12 KB 预算。**真机清单(iOS Safari、Android Chrome、触控笔、触控板、读屏)尚待在真实设备上执行**,见 docs/studio-canvas.md。 |
16
+ | v14.4.0 | [建议] | P0 | Motion Studio 1.0:时间轴 UI、关键帧拖动 / 框选、曲线编辑、轨道分组、属性检查器、逐帧预览、撤销重做 | 不改 JSON 也能建立多轨动画;保存、重新打开后效果等价;导出 / 导入回归测试通过。 |
17
+ | v14.5.0 | [建议] | P1 | 工程与资源工作流:图片、SVG、字体、视频片段等资源引用;相对路径解析;离线工程包;缺失依赖提示 | 工程迁移到另一台设备后能找到资源,或列出缺失项;资源路径限制在允许的工程目录内;不自动执行导入脚本。 |
18
+ | v14.6.0 | [建议] | P1 | AI 创作助手 2.0:提示词 → Scene v2;局部修改现有场景;组件与版本匹配;修复建议;经 MCP 校验后预览 | 每次 AI 编辑都生成可撤销、可拒绝的结构化 diff;通过 Schema、兼容性和浏览器检查;失败不破坏用户工程。 |
19
+ | v14.7.0 | [建议] | P1 | 输出与预览可靠性:HTML/CSS/JS 独立导出、资源打包、可复现渲染;可选的动图 / 视频导出适配器(独立模块) | 独立导出的作品无需编辑器即可运行;同一 Scene 在同一时间点产生稳定的关键帧;视频生成失败可恢复,且不阻塞基础导出。 |
20
+ | v14.8.0 | [建议] | P2 | 模板与扩展生态:模板包、设计令牌主题、可信组件与插件清单、模板版权与依赖说明 | 模板可安装、预览、卸载;组件的前置模块清楚列出;导入内容受沙箱和尺寸限制。 |
21
+ | v14.9.0 | [建议] | P0 | v15 兼容准备:清理 compat-v13 的使用,正式迁移检查,Scene v2 回归,Studio 工程恢复测试,冻结发布候选 | doctor / codemod 能找到旧 API;从 v13 / v14 迁移工程时给出明确的损失报告和备份;六大框架测试与浏览器矩阵通过。 |
22
+ | v15.0.0 | [建议] | P0 | Motion Studio 2.0 稳定主线:可视化动效创作、Scene v2 统一工程格式、稳定导出、AI 辅助编辑、强版本兼容 | 从零创建 → 编辑 → 预览 → 保存 → 重开 → 导出的完整闭环通过;升级不丢工程;源码和运行时继续按需加载,并遵守体积预算。 |
23
+
24
+ ### 每个版本都必须满足的发布约束
25
+
26
+ 1. `motionary/core`、`motionary/motion`、`components/lite`、WebGL 和编辑器工具彼此独立;Studio 不进入 lite。
27
+ 2. lite 约 70 KB gzip 的固定预算不因新功能提高;新增的大功能使用单独入口和独立预算。
28
+ 3. 浏览器覆盖 Chromium、Firefox、WebKit;继续验证 SSR / Hydration 和移动端操作。
29
+ 4. 工程格式、导出器和可视化时间轴必须支持确定性测试、回滚、恶意输入限制和迁移损失报告。
30
+ 5. 必需 CI(Node 20/22/24、三种浏览器、体积 / Tree Shaking / 打包检查)为红灯时,一律不合并。
31
+
32
+ ### 与 MCP Gateway 的联动
33
+
34
+ | 阶段 | 适用版本 | 优先级 | 目标 | 验收 |
35
+ | --- | --- | --- | --- | --- |
36
+ | I. 基础互通 | MCP 14.9 + Motionary 14.1+ | P1 | 保留 Gateway interop 测试,使用 Motionary MCP 的 check_compatibility、suggest_fix、validate_snippet | 工具调用统一授权;身份和租户可追溯;输出符合已公布的 Schema。 |
37
+ | II. 安全 AI 生成 | MCP 15.0 + Motionary 14.6 | P1 | 由 Gateway 管理 AI 的访问权限、预算和审计;Motionary 生成 / 修改 Scene v2 | 未授权的工具无法执行;生成的文档经过 Schema 和代码校验;提示注入拿不到额外权限。 |
38
+ | III. 编辑器协同 | MCP 15.x + Motionary 14.4–14.7 | P1 | AI 产生结构化 diff,Studio 展示差异,由用户批准、预览或撤销 | 人工确认前不修改工程;回滚稳定;每处改动都能关联到生成者和时间。 |
39
+ | IV. 资产与团队 | MCP 15.x + Motionary 14.8–15.0 | P2 | 多租户工程资源、版本管理、共享模板、审计与配额 | 不同租户的资源、密钥和缓存相互隔离;共享需要授权;导入资源不执行任意脚本。 |
40
+ | V. 产品闭环 | MCP 15.x + Motionary 15.0 | P1 | 自然语言 → Scene → Studio 编辑 → 浏览器测试 → 输出 HTML/CSS/JS | 示例工程端到端测试可重复;出错时报告具体步骤并给出修复方向。 |
41
+
42
+ ---
43
+
44
+ ## 历史计划(10.0 → 13.x,归档)
45
+
46
+ 以下是 10.0 之后的原始计划,保留作记录。其中的版本均已发布,最新状态见上表与 [CHANGELOG](../CHANGELOG.md)。
2
47
 
3
48
  10.0 已发布:全新架构 —— 零依赖核心 `motionary/core`(gzip 后不到 10 KB,实测约 2 KB:`createMotion()`、入场预设、`play` / `bind` / `reveal`、统一暂停与倍速)、所有特效插件化(`motionary/plugins`,按需 `createMotion().use(retro, cinema)`)、GPU 特效默认使用 WebGPU(不支持时回退 WebGL2 → Canvas);移除 9.9 弃用的 `registerEffectPacks()`;`motionary` 与 `use-scroll-animate` 同时成为 npm `latest`。
4
49
 
@@ -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.
@@ -0,0 +1,233 @@
1
+ # Studio canvas (14.3)
2
+
3
+ `motionary/studio/canvas` (= `motionary/components/studio-canvas`) is the foundation of the Motion Studio canvas: you
4
+ point at elements to select them, drag a marquee, move, resize and rotate with a mouse, pen or finger, pinch to zoom,
5
+ snap to guides, to the other layers and to a grid, and nudge with the keyboard. It is an opt-in entry with its own
6
+ 12 KB budget. It is not part of `components/lite`, `motionary/core` or `motionary/motion`, and it has no runtime
7
+ dependencies.
8
+
9
+ The canvas adds **no new document format**. It edits the [timeline editor](./timeline-editor.md) model, the
10
+ `motionary-timeline` subset of **Scene Format v2**, through the editor's own operations and its undo history:
11
+
12
+ | On the canvas | In the document |
13
+ | --- | --- |
14
+ | Position | the `translate` prop (`"Xpx Ypx"`) of the keyframe at the edit time |
15
+ | Size | the `width` / `height` props (`"Npx"`) of that keyframe |
16
+ | Rotation | the `rotate` prop (`"Ddeg"`) of that keyframe |
17
+ | Lock | the layer's `locked` flag (a locked group locks its children) |
18
+ | Hide | the layer's `muted` flag (hidden on the canvas, left out of preview and export) |
19
+ | Order | the layer order: the first layer of a group is in front |
20
+
21
+ `translate`, `rotate`, `width` and `height` are plain CSS properties, so `<usa-player>` and `playScene` animate what
22
+ the canvas writes without a conversion step.
23
+
24
+ ## Quick start
25
+
26
+ ```html
27
+ <div id="viewport" style="position: relative; width: 800px; height: 500px; overflow: hidden">
28
+ <div id="stage" style="position: relative; width: 800px; height: 500px">
29
+ <h2 id="title" style="position: absolute; left: 40px; top: 40px">Hello</h2>
30
+ <img id="hero" src="hero.png" style="position: absolute; left: 300px; top: 120px; width: 240px">
31
+ </div>
32
+ </div>
33
+ ```
34
+
35
+ ```js
36
+ import { createTimelineDoc, createTimelineHistory, timelineDocToScene } from 'motionary/components/timeline-editor';
37
+ import { createStudioCanvas } from 'motionary/studio/canvas';
38
+
39
+ const history = createTimelineHistory(createTimelineDoc({
40
+ layers: [
41
+ { id: 'title', type: 'track', name: 'Title', target: '#title', keyframes: [] },
42
+ { id: 'hero', type: 'track', name: 'Hero image', target: '#hero', keyframes: [] },
43
+ ],
44
+ }));
45
+
46
+ const canvas = createStudioCanvas(document.getElementById('viewport'), {
47
+ history,
48
+ stage: document.getElementById('stage'), // zoom / pan transform this element
49
+ time: 0, // the edit time in ms (the playhead)
50
+ grid: 8,
51
+ guides: { x: [400], y: [250] },
52
+ onEdit: ({ label, ops }) => console.log(label, ops),
53
+ });
54
+
55
+ // save: the document is Scene Format v2
56
+ const scene = timelineDocToScene(history.doc);
57
+ ```
58
+
59
+ Every layer whose `target` matches an element inside the stage becomes a canvas layer. Groups and layers whose
60
+ target is missing are skipped. Layer elements are usually absolutely positioned. The canvas measures each element's
61
+ untransformed layout box once (`offsetLeft` / `offsetTop` / `offsetWidth` / `offsetHeight` up to the stage, or your
62
+ own `measure(el)`), so call `canvas.refresh()` after a layout change.
63
+
64
+ ## Options
65
+
66
+ | Option | Default | |
67
+ | --- | --- | --- |
68
+ | `history` | required | A `createTimelineHistory()`; every edit goes through it, and undo / redo re-render the canvas. |
69
+ | `time` | `0` | The edit time in ms. Geometry is read and written at this time (`setTime(ms)` changes it). |
70
+ | `stage` | the root | The element that holds the layer elements; zoom and pan transform it. |
71
+ | `grid` | `0` (off) | Grid size in canvas px (`setGrid(px)`). |
72
+ | `snap` | on | `false`, or `{ threshold: 6, guides: true, siblings: true, grid: true }`. The threshold is in screen px. |
73
+ | `guides` | none | `{ x: [...], y: [...] }` guide lines in canvas px (`setGuides()`). |
74
+ | `zoom`, `minZoom`, `maxZoom` | `1`, `0.1`, `8` | Initial zoom and its limits. |
75
+ | `measure` | offsets | `(el) => ({ x, y, width, height })`, the untransformed layout box in canvas px. |
76
+ | `label` | `"Canvas"` | The accessible name of the canvas (an existing `aria-label` / `aria-labelledby` wins). |
77
+ | `onSelect(ids)` | | Called when the selection changes. |
78
+ | `onEdit({ label, ops })` | | Called with each committed edit and its ops. |
79
+ | `onZoom(zoom)` | | Called when the zoom changes. |
80
+
81
+ The controller returns `selection`, `focused`, `zoom`, `layers()` (front first), `getBox(id)`, `select(ids, { add,
82
+ toggle })`, `selectAll()`, `clearSelection()`, `focus(id)`, `move(dx, dy, ids?)`, `setBox(id, box)`,
83
+ `reorder(id, 'forward' | 'backward' | 'front' | 'back')`, `lock(ids?, locked?)`, `hide(ids?, hidden?)`, `setTime()`,
84
+ `setZoom(zoom, origin?)`, `setGrid()`, `setGuides()`, `refresh()` and `destroy()`. The edit methods return the ops
85
+ they applied (an empty array when nothing changed).
86
+
87
+ ## Editing
88
+
89
+ - **Select:** click or tap a layer. Shift, Ctrl or ⌘ adds it to the selection, or removes it if it is already
90
+ selected.
91
+ - **Marquee:** drag from empty space. Every visible layer the marquee touches is selected (rotated layers by their
92
+ bounds). Shift adds to the current selection. A click on empty space clears the selection.
93
+ - **Move:** drag a selected layer. The whole selection moves, except locked layers and layers in a locked group.
94
+ - **Resize:** with one layer selected, drag one of its eight handles. The opposite edge stays where it is, also when
95
+ the layer is rotated. Shift keeps the aspect ratio.
96
+ - **Rotate:** drag the round handle above the layer. Shift snaps to 15° steps.
97
+ - **One gesture = one undo step.** A drag runs inside `history.begin()` … `commit()`, so ⌘Z / Ctrl+Z undoes the whole
98
+ move. Escape or a `pointercancel` cancels a running gesture and restores the document. A click is not an edit.
99
+
100
+ ### Snapping
101
+
102
+ While you drag, the selection's left / centre / right edges (and top / middle / bottom) snap to the nearest line
103
+ within the threshold:
104
+
105
+ - **guides** from the `guides` option,
106
+ - **siblings:** the edges and centres of the other visible layers,
107
+ - the **grid**, on an axis where no line is in reach.
108
+
109
+ The line that was hit is drawn while you drag. Hold **Alt** to move freely. Resizing snaps the moving edges in the
110
+ same way (unrotated layers only). Keyboard nudges never snap. The threshold is in screen pixels, so it stays the same
111
+ at every zoom.
112
+
113
+ ### Pointer and touch
114
+
115
+ The canvas uses Pointer Events only. It sets `touch-action: none` on the root while it is active, so the browser does
116
+ not scroll or zoom the page under a finger; `destroy()` restores the original value.
117
+
118
+ - One finger moves, resizes, rotates or draws a marquee, exactly like a mouse.
119
+ - **Two fingers pinch-zoom the canvas** around their midpoint and pan with it. A move that the first finger had
120
+ started is cancelled (no undo step) when the second finger lands.
121
+ - Ctrl / ⌘ + wheel (a trackpad pinch) zooms around the pointer. A plain wheel scrolls the page as usual.
122
+ - Handles are 22 px on coarse pointers and 12 px on fine ones, at any zoom.
123
+
124
+ ### Keyboard
125
+
126
+ The canvas is a `listbox` with `aria-multiselectable="true"`. Each layer element is an `option` with
127
+ `aria-selected`, and focus moves with a roving `tabindex`, so Tab enters and leaves the canvas in one stop.
128
+
129
+ | Keys | Action |
130
+ | --- | --- |
131
+ | Arrow keys | Nudge the selection by 1 px; **Shift** + arrow: 10 px. A burst of nudges is one undo step. |
132
+ | Arrow keys with nothing selected | Move focus to the previous / next layer. |
133
+ | Alt + arrow keys | Move focus and select that layer (Alt + Shift: add it). |
134
+ | Home / End | Focus and select the first / last layer. |
135
+ | Space | Toggle the focused layer in the selection. |
136
+ | Enter | Select only the focused layer. |
137
+ | Escape | Cancel the running gesture, or clear the selection. |
138
+ | Ctrl / ⌘ + A | Select every visible layer. |
139
+ | Ctrl / ⌘ + ] / [ | Bring forward / send backward; with Shift: to the front / back. |
140
+ | Ctrl / ⌘ + Shift + L | Lock / unlock the selection. |
141
+ | Ctrl / ⌘ + Shift + H | Hide / show the selection. |
142
+ | Ctrl / ⌘ + Z, Ctrl / ⌘ + Shift + Z, Ctrl + Y | Undo / redo (`bindHistoryKeys`). |
143
+
144
+ Keys typed into inputs, text areas and contenteditable elements inside the canvas are left alone.
145
+
146
+ ### Accessibility
147
+
148
+ - A layer's `name` becomes its `aria-label` when the element has no accessible label of its own.
149
+ - Locked and hidden layers say so in `aria-description`.
150
+ - A polite live region (`role="status"`) announces selections and edits, for example "Title moved to 48, 40".
151
+ - Selection outlines and handles are `aria-hidden` decorations. Everything they do is also available from the
152
+ keyboard.
153
+
154
+ ## Ops: every edit as lossless Scene v2 operations
155
+
156
+ Each edit is returned (from the edit methods and in `onEdit`) as a list of ops:
157
+
158
+ ```ts
159
+ type CanvasOp =
160
+ | { op: 'add-keyframe'; layer: string; keyframe: { id: string; time: number; props: Record<string, string> } }
161
+ | { op: 'set-props'; layer: string; keyframe: string; props: Record<string, string> }
162
+ | { op: 'update-layers'; ids: string[]; patch: { locked?: boolean; muted?: boolean } }
163
+ | { op: 'move-layer'; layer: string; index: number };
164
+ ```
165
+
166
+ `applyCanvasOps(scene, ops)` replays them on any Scene v2 document. Replaying an edit's ops on the scene of the
167
+ document before it gives exactly the scene of the document after it, and the tests check this for every kind of edit.
168
+ Unlike opening a full scene in the timeline editor, replaying keeps everything the ops do not name: preset, effect
169
+ and component layers, `tokens`, `loop` and keyframe `composite`. An op that does not apply (an unknown layer or
170
+ keyframe, a locked layer, a non-string value, a forbidden key such as `__proto__`) throws a `TimelineDocError`
171
+ instead of being guessed. This is the structured diff that the AI assistant (14.6) and collaborative editing will
172
+ build on.
173
+
174
+ The pure helpers are exported too:
175
+
176
+ - `readCanvasGeometry(doc, id, time)` reads a layer's translate, size and rotation at a time. The value is held from
177
+ the last keyframe at or before that time. It returns `null` for values the canvas cannot represent (such as `10%`
178
+ or `calc()`); those layers stay read-only rather than being rewritten.
179
+ - `canvasBox`, `canvasBounds`, `rectsIntersect`, `marqueeHits`.
180
+ - `snapLines`, `snapValue`, `snapRect`, `snapToGrid`.
181
+ - `resizeBox`, `rotationFromPointer`.
182
+ - The document operations `canvasSetBox`, `canvasMove`, `canvasSetLocked`, `canvasSetHidden` and `canvasReorder`.
183
+ They return `{ doc, ops }`, and the same `doc` with no ops when nothing changed.
184
+
185
+ Between keyframes, the canvas shows and edits the held value; curve preview comes with the Studio timeline UI (14.4).
186
+ An edit at a time with no keyframe adds one there.
187
+
188
+ ## Listeners and cleanup
189
+
190
+ The canvas never listens on `window` or `document`. On its root it keeps `pointerdown`, `keydown` and `wheel` (plus
191
+ the history keys) while it lives. `pointermove`, `pointerup` and `pointercancel` are added when a gesture starts, with
192
+ pointer capture on the root, and removed when it ends. `destroy()` ends any running gesture, removes every listener,
193
+ releases the history subscription, removes the overlay and live region, and restores every attribute and inline style
194
+ it changed. A test asserts that the listener counts return to their baseline after each gesture and after `destroy()`.
195
+
196
+ ## Tests
197
+
198
+ - `test/studio-canvas-14-3.test.ts`: op mapping and lossless Scene v2 replay; snapping, hit-testing, resize and
199
+ rotation math; and the controller (selection, marquee, drag / resize / rotate through the history, pinch, keyboard,
200
+ listener counts, full DOM restore) in jsdom.
201
+ - `test/browser/studio-canvas.spec.mjs`, run in Chromium, Firefox and WebKit: real mouse drags, marquee, resize and
202
+ rotate handles, snapping to a sibling, keyboard nudge, and touch pointer emulation in a 390 × 844 phone viewport
203
+ (finger drag, pinch-zoom, `touch-action: none`), plus listener counts in a real engine.
204
+
205
+ ## Real-device checklist
206
+
207
+ The automated suites emulate touch with pointer events. They do not drive real fingers on real screens, so check these
208
+ by hand on real devices before calling a release done. No real devices were available when 14.3.0 was built, so the
209
+ first person with the hardware should run through this list.
210
+
211
+ Devices: **iOS Safari** (an iPhone, plus an iPad with and without a trackpad), **Android Chrome** (a phone), a Windows
212
+ or ChromeOS touch laptop with a pen, and a Mac with a trackpad.
213
+
214
+ 1. Open a page with a canvas and five absolutely positioned layers, `grid: 8`, and one guide.
215
+ 2. **Tap** a layer: it is selected and its outline and handles appear. Tap empty space: the selection clears.
216
+ 3. **Drag** a layer with one finger: it follows the finger without lag or offset, and the page does not scroll or
217
+ bounce (`touch-action`). It snaps to the guide and to a sibling's edge, and the snap line shows.
218
+ 4. **Marquee** with one finger from empty space across two layers: both are selected.
219
+ 5. **Resize** from a corner handle with one finger: the handle is easy to hit, and the opposite corner stays put. On a
220
+ rotated layer it behaves the same.
221
+ 6. **Rotate** with the round handle. On a hardware keyboard, hold Shift: it steps by 15°.
222
+ 7. **Pinch** with two fingers: the canvas zooms around the fingers and the page itself does not zoom. Start a drag
223
+ with one finger, then add a second: the drag is cancelled and the layer jumps back, with no undo step.
224
+ 8. **Undo / redo** (toolbar or keyboard): each gesture is exactly one step.
225
+ 9. **Pen** (Windows / ChromeOS, Apple Pencil on iPad): it behaves like a mouse, and palm rejection does not start a
226
+ marquee.
227
+ 10. **Trackpad pinch** on a Mac (Ctrl + wheel): it zooms around the pointer. Two-finger scroll scrolls the page.
228
+ 11. **Rotate the phone** during a drag: the gesture ends cleanly with `pointercancel`, and nothing is half-applied.
229
+ 12. **Screen readers:** VoiceOver (iOS / macOS) and TalkBack (Android) announce the canvas as a list box, each layer
230
+ by name and selected state, and the live region reads "… moved to x, y" after a nudge from a hardware keyboard.
231
+ 13. Call `destroy()`: the page scrolls by touch again, and no outline, handle or attribute is left behind.
232
+
233
+ Record the device, OS, browser version and the result of each step in the release notes.
package/docs/versions.md CHANGED
@@ -11,7 +11,7 @@ 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 newest release of the current major (14.1.0 today) | `npm i motionary` |
14
+ | `latest` | the newest release of the current major (14.3.0 today) | `npm i motionary` |
15
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` |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "motionary",
3
- "version": "14.1.0",
3
+ "version": "14.3.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",
@@ -560,6 +560,26 @@
560
560
  "default": "./dist/components/motion-tokens.cjs"
561
561
  }
562
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
+ },
573
+ "./studio/canvas": {
574
+ "import": {
575
+ "types": "./dist/components/studio-canvas.d.ts",
576
+ "default": "./dist/components/studio-canvas.js"
577
+ },
578
+ "require": {
579
+ "types": "./dist/components/studio-canvas.d.cts",
580
+ "default": "./dist/components/studio-canvas.cjs"
581
+ }
582
+ },
563
583
  "./components/reveal": {
564
584
  "import": {
565
585
  "types": "./dist/components/reveal.d.ts",
@@ -770,6 +790,26 @@
770
790
  "default": "./dist/components/motion-scene.cjs"
771
791
  }
772
792
  },
793
+ "./components/motion-layout": {
794
+ "import": {
795
+ "types": "./dist/components/motion-layout.d.ts",
796
+ "default": "./dist/components/motion-layout.js"
797
+ },
798
+ "require": {
799
+ "types": "./dist/components/motion-layout.d.cts",
800
+ "default": "./dist/components/motion-layout.cjs"
801
+ }
802
+ },
803
+ "./components/studio-canvas": {
804
+ "import": {
805
+ "types": "./dist/components/studio-canvas.d.ts",
806
+ "default": "./dist/components/studio-canvas.js"
807
+ },
808
+ "require": {
809
+ "types": "./dist/components/studio-canvas.d.cts",
810
+ "default": "./dist/components/studio-canvas.cjs"
811
+ }
812
+ },
773
813
  "./components/motion-tokens": {
774
814
  "import": {
775
815
  "types": "./dist/components/motion-tokens.d.ts",