motionary 13.2.0 → 13.4.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 +82 -0
  2. package/README.md +1 -1
  3. package/dist/chunks/{anim-image-CkPZi9xy.js → anim-image-Czp1v-zv.js} +2 -2
  4. package/dist/chunks/{anim-image-DYAMy6Ro.cjs → anim-image-DnpOI25h.cjs} +2 -2
  5. package/dist/chunks/{audio-DhgfWYZ_.cjs → audio-D7Dk2gUF.cjs} +27 -6
  6. package/dist/chunks/{audio-5FOqrAxu.js → audio-DJkvNk0A.js} +27 -6
  7. package/dist/chunks/{badge-wall-Q7x5HSe_.cjs → badge-wall-BkqFzeUf.cjs} +2 -2
  8. package/dist/chunks/{badge-wall-Bd2dP3J7.js → badge-wall-C6St1WyC.js} +2 -2
  9. package/dist/chunks/{base-nzeN_ux7.js → base-Be98yNyq.js} +131 -99
  10. package/dist/chunks/{base-vu_KhBiv.cjs → base-Do-R_9gU.cjs} +132 -98
  11. package/dist/chunks/{bg-generator-Dncd000D.cjs → bg-generator-C9ee__nJ.cjs} +2 -2
  12. package/dist/chunks/{bg-generator-Dxx3s2zQ.js → bg-generator-YTB0quZa.js} +2 -2
  13. package/dist/chunks/bind-B_CTL6Qn.js +1 -1
  14. package/dist/chunks/bind-Ui43-n2d.cjs +1 -1
  15. package/dist/chunks/{builtins-hBOeCPXL.js → builtins-BQZ7idez.js} +3 -3
  16. package/dist/chunks/{builtins-A9ihuDwy.cjs → builtins-DGP3jBW1.cjs} +3 -3
  17. package/dist/chunks/{carousel-Blko8aKV.cjs → carousel-9IQYg8lJ.cjs} +2 -2
  18. package/dist/chunks/{carousel-DkQKWBK3.js → carousel-BQb8S9_i.js} +2 -2
  19. package/dist/chunks/{cart-drawer-kyj9TlQC.cjs → cart-drawer-DSRylorb.cjs} +4 -4
  20. package/dist/chunks/{cart-drawer-CtX6EQRa.js → cart-drawer-DsCXMYO2.js} +4 -4
  21. package/dist/chunks/{code-export-B6b27ZiI.js → code-export-BAM59KC-.js} +2 -2
  22. package/dist/chunks/{code-export-DOioRmM9.cjs → code-export-CTdTKJWS.cjs} +2 -2
  23. package/dist/chunks/{color-picker-B6YXJdur.cjs → color-picker-Cgj4F5G-.cjs} +2 -2
  24. package/dist/chunks/{color-picker-DNTzNylo.js → color-picker-zYIs1UU8.js} +2 -2
  25. package/dist/chunks/{command-palette-DAQQ_bkg.cjs → command-palette-Oiq7KY7o.cjs} +2 -2
  26. package/dist/chunks/{command-palette-C6XV1glX.js → command-palette-WCKbmW2N.js} +2 -2
  27. package/dist/chunks/{core-E18xla6s.cjs → core-6FhnH_Kv.cjs} +2 -2
  28. package/dist/chunks/{core-DfkeC4s-.cjs → core-B2156q7g.cjs} +2 -2
  29. package/dist/chunks/core-BjcOCpJt.cjs +1 -1
  30. package/dist/chunks/core-Dj6iomdc.js +1 -1
  31. package/dist/chunks/{core-DVGtPabi.js → core-FB2gL64M.js} +2 -2
  32. package/dist/chunks/{core-Bar7NFx7.js → core-RZkPEx8i.js} +2 -2
  33. package/dist/chunks/{countdown-Dhp9G96N.js → countdown-BKcrUeQ5.js} +2 -2
  34. package/dist/chunks/{countdown-Cvef0Kb1.cjs → countdown-oB1KGHQe.cjs} +2 -2
  35. package/dist/chunks/{date-picker-C9iVZUP3.cjs → date-picker-Bcez28ox.cjs} +2 -2
  36. package/dist/chunks/{date-picker-M7n1jZw9.js → date-picker-Dx4vGYze.js} +2 -2
  37. package/dist/chunks/ease-HwYZnZat.cjs +1 -1
  38. package/dist/chunks/ease-XN8_0sXu.js +1 -1
  39. package/dist/chunks/{equalizer-CN6AkBtT.js → equalizer-D8SG0IDP.js} +2 -2
  40. package/dist/chunks/{equalizer-6uhO-yfZ.cjs → equalizer-XIVScpXr.cjs} +2 -2
  41. package/dist/chunks/{festival-banner-Dsu53in5.js → festival-banner-C6y_nEAX.js} +2 -2
  42. package/dist/chunks/{festival-banner-ByYX1Oy6.cjs → festival-banner-TmiGZdmC.cjs} +2 -2
  43. package/dist/chunks/{field-DcC_zJBH.cjs → field-Bg6pHLD3.cjs} +2 -2
  44. package/dist/chunks/{field-DeTgNf7K.js → field-Do9yU2oB.js} +2 -2
  45. package/dist/chunks/{fx-lszndeFU.cjs → fx-O90ZgYwV.cjs} +2 -2
  46. package/dist/chunks/{fx-qAVpKs8e.js → fx-Wd1GKAzZ.js} +2 -2
  47. package/dist/chunks/{generative-BHIj-NU0.cjs → generative-BTya0iHP.cjs} +16 -4
  48. package/dist/chunks/{generative-2LhxG5BJ.js → generative-DkX6SvrL.js} +20 -8
  49. package/dist/chunks/{gl-scene-D3RfVD2b.js → gl-scene-CZEQJPar.js} +10 -10
  50. package/dist/chunks/{gl-scene-DOjhIgPM.cjs → gl-scene-SRaGcmCA.cjs} +7 -7
  51. package/dist/chunks/{globe-Dms25CB5.cjs → globe-BOS1Kb8J.cjs} +10 -9
  52. package/dist/chunks/{globe-CzQ6nQ-o.js → globe-D_S-FB8k.js} +10 -9
  53. package/dist/chunks/{gpu-BREsvJpT.cjs → gpu--UifKXUA.cjs} +30 -9
  54. package/dist/chunks/{gpu-DdiOOXTP.js → gpu-B8vgh4lW.js} +37 -16
  55. package/dist/chunks/{gpu-particles-DrjYuSVR.cjs → gpu-particles-DICAeqwO.cjs} +6 -6
  56. package/dist/chunks/{gpu-particles-CbBJ_tIZ.js → gpu-particles-DaRztimn.js} +6 -6
  57. package/dist/chunks/index-tags-B-JBecYg.js +1 -1
  58. package/dist/chunks/index-tags-hLIF2Clq.cjs +1 -1
  59. package/dist/chunks/key-click-BLm3BI8_.js +1 -1
  60. package/dist/chunks/key-click-v7I4K5Sr.cjs +1 -1
  61. package/dist/chunks/{keyframes-d3LAxJoj.js → keyframes-DE4F_oWc.js} +2 -2
  62. package/dist/chunks/{keyframes-ziUR42cM.cjs → keyframes-DWmt9GdV.cjs} +2 -2
  63. package/dist/chunks/{leaderboard-wF-UnLbY.cjs → leaderboard-BKmKMStS.cjs} +4 -4
  64. package/dist/chunks/{leaderboard-D2Xb0lqP.js → leaderboard-CdMYDeaT.js} +4 -4
  65. package/dist/chunks/{location-card-BJsN6s34.cjs → location-card-Bxemk6MJ.cjs} +2 -2
  66. package/dist/chunks/{location-card-GrQnXfwp.js → location-card-C_3CQ3u-.js} +2 -2
  67. package/dist/chunks/{lottie-icon-DMkTeHCL.cjs → lottie-icon-Dyz8XJm5.cjs} +2 -2
  68. package/dist/chunks/{lottie-icon-D3fdgfNU.js → lottie-icon-oGP5LQ4G.js} +2 -2
  69. package/dist/chunks/{lottie-player-6OJJcioR.js → lottie-player-Dr6ZGZZ9.js} +3 -3
  70. package/dist/chunks/{lottie-player-ByAeF8wJ.cjs → lottie-player-m8yiMFGM.cjs} +3 -3
  71. package/dist/chunks/{lyrics-CBRdLBDw.cjs → lyrics-BuVT1PyD.cjs} +6 -5
  72. package/dist/chunks/{lyrics-jTQwzX9m.js → lyrics-DlNbqyV3.js} +6 -5
  73. package/dist/chunks/{manifest-pVzW6oyg.js → manifest-C6nei25r.js} +2 -2
  74. package/dist/chunks/{manifest-Rxf1Mumb.cjs → manifest-DcyvsF07.cjs} +2 -2
  75. package/dist/chunks/{menu-Bc2M8HMJ.cjs → menu-CZj0BChd.cjs} +2 -2
  76. package/dist/chunks/{menu-Ydg47TQx.js → menu-hmi07frR.js} +2 -2
  77. package/dist/chunks/{menu-toggle-C-_dv_TN.js → menu-toggle--mqC1pWc.js} +2 -2
  78. package/dist/chunks/{menu-toggle-B1YBlbdJ.cjs → menu-toggle-Bef1YqbK.cjs} +2 -2
  79. package/dist/chunks/{nav-morph-kKmG_ocG.cjs → nav-morph-C7nb0-oA.cjs} +2 -2
  80. package/dist/chunks/{nav-morph-DA-Q4xec.js → nav-morph-k7sIJdS3.js} +2 -2
  81. package/dist/chunks/{otp-CVUw78Mr.js → otp-B9ctuDQG.js} +2 -2
  82. package/dist/chunks/{otp-Cxz5uFb_.cjs → otp-VBvUiZhb.cjs} +2 -2
  83. package/dist/chunks/{pagination-CFAzm6M7.js → pagination-BiVi2UVo.js} +5 -2
  84. package/dist/chunks/{pagination-6RdXWwsW.cjs → pagination-DLTCrJwy.cjs} +5 -2
  85. package/dist/chunks/{physics-playground-CYNyKgTK.cjs → physics-playground-CJMHlyVL.cjs} +5 -5
  86. package/dist/chunks/{physics-playground-d4CtxSoi.js → physics-playground-DwL_sPea.js} +5 -5
  87. package/dist/chunks/{player-DqUZJ0d_.js → player-BdKLax0N.js} +14 -13
  88. package/dist/chunks/{player-DIwSjUFR.cjs → player-CbCdaCgu.cjs} +14 -13
  89. package/dist/chunks/{presence-CRfWmNWz.cjs → presence-5lrgeDaX.cjs} +2 -2
  90. package/dist/chunks/{presence-DfTxVIEf.js → presence-DnBQPaaY.js} +2 -2
  91. package/dist/chunks/presets-BYBVJVeP.js +1 -1
  92. package/dist/chunks/presets-CUHys3sK.cjs +1 -1
  93. package/dist/chunks/{prize-wheel-MOZOrI-p.cjs → prize-wheel-BA1q90gH.cjs} +2 -2
  94. package/dist/chunks/{prize-wheel-tgpOsdDA.js → prize-wheel-CYH2ZPIu.js} +2 -2
  95. package/dist/chunks/{product-gallery-BcGA35Ie.js → product-gallery-7iuP6mwb.js} +2 -2
  96. package/dist/chunks/{product-gallery-Bi6I6x1o.cjs → product-gallery-Dc7JVl8a.cjs} +2 -2
  97. package/dist/chunks/{progress-ring-6kTzB49S.js → progress-ring-Ba9YULbX.js} +7 -6
  98. package/dist/chunks/{progress-ring-BO9a3Q24.cjs → progress-ring-DDqq7gdF.cjs} +7 -6
  99. package/dist/chunks/{prop-panel-DGm8VM4Z.js → prop-panel-CS-i1ddG.js} +2 -2
  100. package/dist/chunks/{prop-panel-_kA6mvB9.cjs → prop-panel-Dzx20-yH.cjs} +2 -2
  101. package/dist/chunks/{radar-DT93Se3Y.cjs → radar-BQo33pqi.cjs} +2 -2
  102. package/dist/chunks/{radar-sKiciNsS.js → radar-DJ-g9iCt.js} +2 -2
  103. package/dist/chunks/{reactions-BASnlqck.cjs → reactions-B64fCmEB.cjs} +2 -2
  104. package/dist/chunks/{reactions-B4xogsDd.js → reactions-CLwwZmwU.js} +2 -2
  105. package/dist/chunks/{registry-PxXkPc1Q.js → registry-BEIhIRTY.js} +2 -2
  106. package/dist/chunks/{registry-B8v7uubl.js → registry-BUmmzmpq.js} +2 -2
  107. package/dist/chunks/{registry-EziiQiWO.cjs → registry-CyVCJneg.cjs} +2 -2
  108. package/dist/chunks/{registry-IdH145NL.cjs → registry-c80No5j_.cjs} +2 -2
  109. package/dist/chunks/{retro-button-BxCv-ybi.js → retro-button-BFF6rtya.js} +2 -2
  110. package/dist/chunks/{retro-button-DfuSdfWj.cjs → retro-button-BQNrjtEi.cjs} +2 -2
  111. package/dist/chunks/{rive-BHdln8XJ.js → rive-C9ySVu0Q.js} +2 -2
  112. package/dist/chunks/{rive-cR-Q9Quh.cjs → rive-Dr8J-ESq.cjs} +2 -2
  113. package/dist/chunks/{runtime-link-Bq9F9pt8.cjs → runtime-link-D3-QlIsO.cjs} +2 -2
  114. package/dist/chunks/{runtime-link-cMIs3Y7z.js → runtime-link-mepflyss.js} +2 -2
  115. package/dist/chunks/scroll-driven-CQbwzCdn.cjs +1 -1
  116. package/dist/chunks/scroll-driven-LghshrWq.js +1 -1
  117. package/dist/chunks/{scroll-scene-UcJFID_0.js → scroll-scene-BWY-mgkQ.js} +4 -4
  118. package/dist/chunks/{scroll-scene-DTCM6lnJ.cjs → scroll-scene-YLwbThAg.cjs} +4 -4
  119. package/dist/chunks/{segmented-DHBqMcAF.js → segmented-B-Fafr8-.js} +2 -2
  120. package/dist/chunks/{segmented-CbZtwChW.cjs → segmented-C1wgQyHN.cjs} +2 -2
  121. package/dist/chunks/{shader-backdrop-DT1h5Zoc.cjs → shader-backdrop-BXGpaRMH.cjs} +5 -5
  122. package/dist/chunks/{shader-backdrop-rrssjdMI.js → shader-backdrop-DnT3eoNa.js} +8 -8
  123. package/dist/chunks/shared-Bf72wLyt.cjs +1 -1
  124. package/dist/chunks/shared-CkKHWrtJ.js +1 -1
  125. package/dist/chunks/shared-jkgRH-Hx.cjs +1 -1
  126. package/dist/chunks/shared-o9CtwHmi.js +1 -1
  127. package/dist/chunks/{sheet-YRq-IOIr.js → sheet-CtmrBo6Z.js} +10 -3
  128. package/dist/chunks/{sheet-NsPexafP.cjs → sheet-V2M4Hqeg.cjs} +10 -3
  129. package/dist/chunks/sign-DvZ1jHxE.js +1 -1
  130. package/dist/chunks/sign-RAkQIWrM.cjs +1 -1
  131. package/dist/chunks/{skeleton-reveal-yj2lioib.js → skeleton-reveal-CVrbqy61.js} +2 -2
  132. package/dist/chunks/{skeleton-reveal-DfH6IiUG.cjs → skeleton-reveal-qCjodjPN.cjs} +2 -2
  133. package/dist/chunks/{sparkline-kl8sJ7cP.js → sparkline-B07Pc0F5.js} +7 -6
  134. package/dist/chunks/{sparkline-CCV_wZ9j.cjs → sparkline-BUBWK0k8.cjs} +7 -6
  135. package/dist/chunks/{spring-Q3Y-pHuP.cjs → spring-B0v7o7dG.cjs} +2 -2
  136. package/dist/chunks/{spring-BX7EJst7.js → spring-p9RY-4VF.js} +2 -2
  137. package/dist/chunks/stagger-B9sKPwQB.js +1 -1
  138. package/dist/chunks/stagger-DFKwqOQG.cjs +1 -1
  139. package/dist/chunks/{suggestion-chips-fmrwI2Da.js → suggestion-chips-C5jM-6sb.js} +2 -2
  140. package/dist/chunks/{suggestion-chips-D9i2FGGX.cjs → suggestion-chips-CnCb3mOH.cjs} +2 -2
  141. package/dist/chunks/{switch-DnwGGeZj.js → switch-Ch0OQ9TC.js} +2 -2
  142. package/dist/chunks/{switch-Db4uTUcj.cjs → switch-mpVeEIno.cjs} +2 -2
  143. package/dist/chunks/{tab-bar-CSx4fTC9.js → tab-bar-DUCZzsih.js} +2 -2
  144. package/dist/chunks/{tab-bar-DqzNvlDc.cjs → tab-bar-sXS1oYQ3.cjs} +2 -2
  145. package/dist/chunks/{ticker-Cytp8Fl8.cjs → ticker-BFq0AxP5.cjs} +2 -2
  146. package/dist/chunks/{ticker-CHi3Hcrt.js → ticker-DtCFsNm7.js} +2 -2
  147. package/dist/chunks/{tip-C8T1SdOJ.js → tip-B-mmUYra.js} +2 -2
  148. package/dist/chunks/{tip-CIh4O-DZ.cjs → tip-ICi0K5SV.cjs} +2 -2
  149. package/dist/chunks/{toast-stack-Cs42sjr6.cjs → toast-stack-BK0eWurx.cjs} +6 -4
  150. package/dist/chunks/{toast-stack-BIdkYWob.js → toast-stack-DBGrj6zP.js} +6 -4
  151. package/dist/chunks/{tween-DZiAFyyF.cjs → tween-DUYiyPH_.cjs} +2 -2
  152. package/dist/chunks/{tween-Hh34tRXR.js → tween-DehPKIbN.js} +2 -2
  153. package/dist/chunks/{upload-progress-CXfoNUhm.js → upload-progress-Bup8Iw7N.js} +2 -2
  154. package/dist/chunks/{upload-progress-BhyFjwb6.cjs → upload-progress-fBjRmlqD.cjs} +2 -2
  155. package/dist/chunks/{variants-Dk-FItCT.cjs → variants-BbO5akAC.cjs} +2 -2
  156. package/dist/chunks/{variants-DY08myqK.js → variants-D7tUTCVW.js} +2 -2
  157. package/dist/chunks/viewport-BAXHhZLV.js +61 -0
  158. package/dist/chunks/viewport-EFYGqMNa.cjs +65 -0
  159. package/dist/chunks/{voice-button-DudPeVqK.cjs → voice-button-A-NPMqJG.cjs} +2 -2
  160. package/dist/chunks/{voice-button-DdKxtavP.js → voice-button-Bxh_839h.js} +2 -2
  161. package/dist/chunks/{weather-card-DfXFesfY.cjs → weather-card-CtqBfWnZ.cjs} +5 -5
  162. package/dist/chunks/{weather-card-Ecgk-JQd.js → weather-card-D2D8kYxm.js} +6 -6
  163. package/dist/chunks/{worker-canvas-BIuesniy.js → worker-canvas-C0lQZbKy.js} +2 -2
  164. package/dist/chunks/{worker-canvas-CEbqBgK5.cjs → worker-canvas-DGSgO2ci.cjs} +2 -2
  165. package/dist/chunks/{xp-bar-BC8UnCHG.cjs → xp-bar-5PeQeB1Y.cjs} +2 -2
  166. package/dist/chunks/{xp-bar-Cx-dMEMT.js → xp-bar-BGJrZYex.js} +2 -2
  167. package/dist/components/a11y.cjs +2 -2
  168. package/dist/components/a11y.js +3 -3
  169. package/dist/components/ai.cjs +1 -1
  170. package/dist/components/ai.js +1 -1
  171. package/dist/components/angular.cjs +10 -9
  172. package/dist/components/angular.js +10 -9
  173. package/dist/components/background.cjs +3 -3
  174. package/dist/components/background.js +3 -3
  175. package/dist/components/bridge.cjs +24 -5
  176. package/dist/components/bridge.d.cts +19 -1
  177. package/dist/components/bridge.d.ts +19 -1
  178. package/dist/components/bridge.js +24 -6
  179. package/dist/components/cards.cjs +3 -3
  180. package/dist/components/cards.js +3 -3
  181. package/dist/components/click.cjs +4 -4
  182. package/dist/components/click.js +4 -4
  183. package/dist/components/core.cjs +1 -1
  184. package/dist/components/core.js +1 -1
  185. package/dist/components/depth.cjs +4 -4
  186. package/dist/components/depth.js +4 -4
  187. package/dist/components/design.cjs +4 -4
  188. package/dist/components/design.js +4 -4
  189. package/dist/components/dotlottie.cjs +5 -5
  190. package/dist/components/dotlottie.js +5 -5
  191. package/dist/components/dsl.cjs +3 -3
  192. package/dist/components/dsl.js +3 -3
  193. package/dist/components/effects.cjs +64 -30
  194. package/dist/components/effects.d.cts +0 -88
  195. package/dist/components/effects.d.ts +0 -88
  196. package/dist/components/effects.js +72 -38
  197. package/dist/components/engine.cjs +2 -2
  198. package/dist/components/engine.js +3 -3
  199. package/dist/components/feedback.cjs +2 -2
  200. package/dist/components/feedback.js +2 -2
  201. package/dist/components/fx-3d.cjs +24 -6
  202. package/dist/components/fx-3d.d.cts +0 -19
  203. package/dist/components/fx-3d.d.ts +0 -19
  204. package/dist/components/fx-3d.js +24 -6
  205. package/dist/components/fx-ai.cjs +3 -3
  206. package/dist/components/fx-ai.js +3 -3
  207. package/dist/components/fx-chart.cjs +3 -3
  208. package/dist/components/fx-chart.js +3 -3
  209. package/dist/components/fx-cinema.cjs +3 -3
  210. package/dist/components/fx-cinema.js +3 -3
  211. package/dist/components/fx-cyber.cjs +3 -3
  212. package/dist/components/fx-cyber.js +3 -3
  213. package/dist/components/fx-festival.cjs +3 -3
  214. package/dist/components/fx-festival.js +3 -3
  215. package/dist/components/fx-focus.cjs +3 -3
  216. package/dist/components/fx-focus.js +3 -3
  217. package/dist/components/fx-form.cjs +3 -3
  218. package/dist/components/fx-form.js +3 -3
  219. package/dist/components/fx-game.cjs +3 -3
  220. package/dist/components/fx-game.js +3 -3
  221. package/dist/components/fx-genart.cjs +3 -3
  222. package/dist/components/fx-genart.js +3 -3
  223. package/dist/components/fx-geo.cjs +3 -3
  224. package/dist/components/fx-geo.js +3 -3
  225. package/dist/components/fx-gesture.cjs +3 -3
  226. package/dist/components/fx-gesture.js +3 -3
  227. package/dist/components/fx-gpu.cjs +5 -5
  228. package/dist/components/fx-gpu.js +5 -5
  229. package/dist/components/fx-light.cjs +27 -6
  230. package/dist/components/fx-light.d.cts +0 -22
  231. package/dist/components/fx-light.d.ts +0 -22
  232. package/dist/components/fx-light.js +31 -10
  233. package/dist/components/fx-lottie.cjs +3 -3
  234. package/dist/components/fx-lottie.js +3 -3
  235. package/dist/components/fx-morph.cjs +3 -3
  236. package/dist/components/fx-morph.js +3 -3
  237. package/dist/components/fx-music.cjs +24 -8
  238. package/dist/components/fx-music.d.cts +0 -39
  239. package/dist/components/fx-music.d.ts +0 -39
  240. package/dist/components/fx-music.js +25 -9
  241. package/dist/components/fx-organic.cjs +3 -3
  242. package/dist/components/fx-organic.js +3 -3
  243. package/dist/components/fx-paper.cjs +3 -3
  244. package/dist/components/fx-paper.js +3 -3
  245. package/dist/components/fx-perf.cjs +3 -3
  246. package/dist/components/fx-perf.js +3 -3
  247. package/dist/components/fx-physics.cjs +25 -7
  248. package/dist/components/fx-physics.d.cts +0 -19
  249. package/dist/components/fx-physics.d.ts +0 -19
  250. package/dist/components/fx-physics.js +29 -11
  251. package/dist/components/fx-retro.cjs +3 -3
  252. package/dist/components/fx-retro.js +3 -3
  253. package/dist/components/fx-safe.cjs +3 -3
  254. package/dist/components/fx-safe.js +3 -3
  255. package/dist/components/fx-shop.cjs +3 -3
  256. package/dist/components/fx-shop.js +3 -3
  257. package/dist/components/fx-social.cjs +3 -3
  258. package/dist/components/fx-social.js +3 -3
  259. package/dist/components/fx-spatial.cjs +3 -3
  260. package/dist/components/fx-spatial.js +3 -3
  261. package/dist/components/fx-surface.cjs +3 -3
  262. package/dist/components/fx-surface.js +3 -3
  263. package/dist/components/fx-text.cjs +3 -3
  264. package/dist/components/fx-text.js +3 -3
  265. package/dist/components/fx-transitions.cjs +4 -4
  266. package/dist/components/fx-transitions.js +4 -4
  267. package/dist/components/fx-video.cjs +3 -3
  268. package/dist/components/fx-video.js +3 -3
  269. package/dist/components/fx-weather.cjs +4 -4
  270. package/dist/components/fx-weather.js +4 -4
  271. package/dist/components/fx.cjs +6 -6
  272. package/dist/components/fx.js +7 -7
  273. package/dist/components/fx2.cjs +7 -7
  274. package/dist/components/fx2.d.cts +0 -133
  275. package/dist/components/fx2.d.ts +0 -133
  276. package/dist/components/fx2.js +8 -8
  277. package/dist/components/gesture.cjs +4 -4
  278. package/dist/components/gesture.js +5 -5
  279. package/dist/components/gl-model.cjs +5 -5
  280. package/dist/components/gl-model.js +5 -5
  281. package/dist/components/interaction.cjs +2 -2
  282. package/dist/components/interaction.js +2 -2
  283. package/dist/components/jsx.cjs +1 -1
  284. package/dist/components/jsx.js +1 -1
  285. package/dist/components/layout.cjs +3 -3
  286. package/dist/components/layout.js +3 -3
  287. package/dist/components/lazy.cjs +1 -1
  288. package/dist/components/lazy.js +1 -1
  289. package/dist/components/lite.cjs +214 -104
  290. package/dist/components/lite.js +213 -105
  291. package/dist/components/marketplace.cjs +4 -4
  292. package/dist/components/marketplace.js +5 -5
  293. package/dist/components/native.cjs +4 -4
  294. package/dist/components/native.js +4 -4
  295. package/dist/components/offscreen.cjs +69 -0
  296. package/dist/components/offscreen.d.cts +10 -0
  297. package/dist/components/offscreen.d.ts +10 -0
  298. package/dist/components/offscreen.js +65 -0
  299. package/dist/components/packs.cjs +2 -2
  300. package/dist/components/packs.js +2 -2
  301. package/dist/components/page.cjs +3 -3
  302. package/dist/components/page.js +4 -4
  303. package/dist/components/perf-tasks.cjs +69 -0
  304. package/dist/components/perf-tasks.d.cts +23 -0
  305. package/dist/components/perf-tasks.d.ts +23 -0
  306. package/dist/components/perf-tasks.js +65 -0
  307. package/dist/components/perf.cjs +3 -2
  308. package/dist/components/perf.d.cts +12 -4
  309. package/dist/components/perf.d.ts +12 -4
  310. package/dist/components/perf.js +3 -3
  311. package/dist/components/physics.cjs +3 -3
  312. package/dist/components/physics.js +4 -4
  313. package/dist/components/plugins.cjs +6 -6
  314. package/dist/components/plugins.js +6 -6
  315. package/dist/components/react.cjs +1 -1
  316. package/dist/components/react.js +1 -1
  317. package/dist/components/reveal.cjs +2 -2
  318. package/dist/components/reveal.js +2 -2
  319. package/dist/components/snap-carousel.cjs +4 -4
  320. package/dist/components/snap-carousel.js +4 -4
  321. package/dist/components/solid.cjs +10 -9
  322. package/dist/components/solid.js +10 -9
  323. package/dist/components/svelte.cjs +10 -9
  324. package/dist/components/svelte.js +10 -9
  325. package/dist/components/svg.cjs +2 -2
  326. package/dist/components/svg.js +2 -2
  327. package/dist/components/text.cjs +3 -3
  328. package/dist/components/text.js +3 -3
  329. package/dist/components/timeline.cjs +3 -3
  330. package/dist/components/timeline.js +4 -4
  331. package/dist/components/tokens.cjs +1 -1
  332. package/dist/components/tokens.js +1 -1
  333. package/dist/components/transitions.cjs +2 -2
  334. package/dist/components/transitions.js +2 -2
  335. package/dist/components/ui.cjs +27 -11
  336. package/dist/components/ui.css +1 -1
  337. package/dist/components/ui.js +28 -12
  338. package/dist/components/vue.cjs +10 -9
  339. package/dist/components/vue.js +10 -9
  340. package/dist/components/webgl.cjs +2 -2
  341. package/dist/components/webgl.js +2 -2
  342. package/dist/components/widgets.cjs +66 -62
  343. package/dist/components/widgets.d.cts +18 -1
  344. package/dist/components/widgets.d.ts +18 -1
  345. package/dist/components/widgets.js +113 -111
  346. package/dist/components.cjs +14 -11
  347. package/dist/components.css +1 -1
  348. package/dist/components.d.cts +31 -5
  349. package/dist/components.d.ts +31 -5
  350. package/dist/components.js +15 -14
  351. package/dist/components.umd.js +4 -23
  352. package/dist/effects/achievement-unlock.cjs +3 -3
  353. package/dist/effects/achievement-unlock.js +3 -3
  354. package/dist/effects/aurora-veil.cjs +4 -4
  355. package/dist/effects/aurora-veil.js +4 -4
  356. package/dist/effects/badge-pop.cjs +3 -3
  357. package/dist/effects/badge-pop.js +3 -3
  358. package/dist/effects/bars-grow.cjs +3 -3
  359. package/dist/effects/bars-grow.js +3 -3
  360. package/dist/effects/beat-bounce.cjs +5 -5
  361. package/dist/effects/beat-bounce.js +5 -5
  362. package/dist/effects/blob-button.cjs +3 -3
  363. package/dist/effects/blob-button.js +3 -3
  364. package/dist/effects/bloom.cjs +3 -3
  365. package/dist/effects/bloom.js +3 -3
  366. package/dist/effects/breathe.cjs +3 -3
  367. package/dist/effects/breathe.js +3 -3
  368. package/dist/effects/brushed-metal.cjs +4 -4
  369. package/dist/effects/brushed-metal.js +4 -4
  370. package/dist/effects/camera-dolly.cjs +3 -3
  371. package/dist/effects/camera-dolly.js +3 -3
  372. package/dist/effects/card-flip-3d.cjs +4 -4
  373. package/dist/effects/card-flip-3d.js +4 -4
  374. package/dist/effects/chest-open.cjs +3 -3
  375. package/dist/effects/chest-open.js +3 -3
  376. package/dist/effects/cloth.cjs +4 -4
  377. package/dist/effects/cloth.js +4 -4
  378. package/dist/effects/coin-burst.cjs +3 -3
  379. package/dist/effects/coin-burst.js +3 -3
  380. package/dist/effects/color-pulse.cjs +3 -3
  381. package/dist/effects/color-pulse.js +3 -3
  382. package/dist/effects/crt-power.cjs +3 -3
  383. package/dist/effects/crt-power.js +3 -3
  384. package/dist/effects/crumple.cjs +3 -3
  385. package/dist/effects/crumple.js +3 -3
  386. package/dist/effects/data-decode.cjs +3 -3
  387. package/dist/effects/data-decode.js +3 -3
  388. package/dist/effects/day-cycle.cjs +4 -4
  389. package/dist/effects/day-cycle.js +4 -4
  390. package/dist/effects/depth-in.cjs +3 -3
  391. package/dist/effects/depth-in.js +3 -3
  392. package/dist/effects/depth-pop.cjs +3 -3
  393. package/dist/effects/depth-pop.js +3 -3
  394. package/dist/effects/depth-stack.cjs +4 -4
  395. package/dist/effects/depth-stack.js +4 -4
  396. package/dist/effects/dolly-in.cjs +3 -3
  397. package/dist/effects/dolly-in.js +3 -3
  398. package/dist/effects/dots-pop.cjs +3 -3
  399. package/dist/effects/dots-pop.js +3 -3
  400. package/dist/effects/field-shake.cjs +3 -3
  401. package/dist/effects/field-shake.js +3 -3
  402. package/dist/effects/field-success.cjs +3 -3
  403. package/dist/effects/field-success.js +3 -3
  404. package/dist/effects/film-burn.cjs +3 -3
  405. package/dist/effects/film-burn.js +3 -3
  406. package/dist/effects/fire.cjs +5 -5
  407. package/dist/effects/fire.js +5 -5
  408. package/dist/effects/fireflies.cjs +5 -5
  409. package/dist/effects/fireflies.js +5 -5
  410. package/dist/effects/firework-burst.cjs +3 -3
  411. package/dist/effects/firework-burst.js +3 -3
  412. package/dist/effects/flip-chars.cjs +3 -3
  413. package/dist/effects/flip-chars.js +3 -3
  414. package/dist/effects/fluid.cjs +5 -5
  415. package/dist/effects/fluid.js +5 -5
  416. package/dist/effects/fly-to-cart.cjs +3 -3
  417. package/dist/effects/fly-to-cart.js +3 -3
  418. package/dist/effects/focus-draw.cjs +3 -3
  419. package/dist/effects/focus-draw.js +3 -3
  420. package/dist/effects/focus-glow.cjs +3 -3
  421. package/dist/effects/focus-glow.js +3 -3
  422. package/dist/effects/fog.cjs +4 -4
  423. package/dist/effects/fog.js +4 -4
  424. package/dist/effects/font-breathe.cjs +3 -3
  425. package/dist/effects/font-breathe.js +3 -3
  426. package/dist/effects/form-cascade.cjs +3 -3
  427. package/dist/effects/form-cascade.js +3 -3
  428. package/dist/effects/gen-skeleton.cjs +3 -3
  429. package/dist/effects/gen-skeleton.js +3 -3
  430. package/dist/effects/glass-frost.cjs +3 -3
  431. package/dist/effects/glass-frost.js +3 -3
  432. package/dist/effects/glitch-text.cjs +3 -3
  433. package/dist/effects/glitch-text.js +3 -3
  434. package/dist/effects/globe-spin.cjs +3 -3
  435. package/dist/effects/globe-spin.js +3 -3
  436. package/dist/effects/god-rays.cjs +4 -4
  437. package/dist/effects/god-rays.js +4 -4
  438. package/dist/effects/gpu-lift.cjs +3 -3
  439. package/dist/effects/gpu-lift.js +3 -3
  440. package/dist/effects/grain-flicker.cjs +3 -3
  441. package/dist/effects/grain-flicker.js +3 -3
  442. package/dist/effects/halftone-in.cjs +3 -3
  443. package/dist/effects/halftone-in.js +3 -3
  444. package/dist/effects/highlight-sweep.cjs +3 -3
  445. package/dist/effects/highlight-sweep.js +3 -3
  446. package/dist/effects/hologram.cjs +3 -3
  447. package/dist/effects/hologram.js +3 -3
  448. package/dist/effects/hud-frame.cjs +3 -3
  449. package/dist/effects/hud-frame.js +3 -3
  450. package/dist/effects/icon-pop.cjs +3 -3
  451. package/dist/effects/icon-pop.js +3 -3
  452. package/dist/effects/icon-swap.cjs +3 -3
  453. package/dist/effects/icon-swap.js +3 -3
  454. package/dist/effects/idle-reveal.cjs +3 -3
  455. package/dist/effects/idle-reveal.js +3 -3
  456. package/dist/effects/ink.cjs +5 -5
  457. package/dist/effects/ink.js +5 -5
  458. package/dist/effects/jump-cut.cjs +3 -3
  459. package/dist/effects/jump-cut.js +3 -3
  460. package/dist/effects/kaleido.cjs +3 -3
  461. package/dist/effects/kaleido.js +3 -3
  462. package/dist/effects/label-float.cjs +3 -3
  463. package/dist/effects/label-float.js +3 -3
  464. package/dist/effects/lantern-rise.cjs +3 -3
  465. package/dist/effects/lantern-rise.js +3 -3
  466. package/dist/effects/leaves.cjs +5 -5
  467. package/dist/effects/leaves.js +5 -5
  468. package/dist/effects/letterbox.cjs +3 -3
  469. package/dist/effects/letterbox.js +3 -3
  470. package/dist/effects/level-up.cjs +3 -3
  471. package/dist/effects/level-up.js +3 -3
  472. package/dist/effects/light-follow.cjs +4 -4
  473. package/dist/effects/light-follow.js +4 -4
  474. package/dist/effects/lightning.cjs +4 -4
  475. package/dist/effects/lightning.js +4 -4
  476. package/dist/effects/line-draw.cjs +3 -3
  477. package/dist/effects/line-draw.js +3 -3
  478. package/dist/effects/liquid-text.cjs +3 -3
  479. package/dist/effects/liquid-text.js +3 -3
  480. package/dist/effects/liquid-wipe.cjs +3 -3
  481. package/dist/effects/liquid-wipe.js +3 -3
  482. package/dist/effects/lottie-play.cjs +3 -3
  483. package/dist/effects/lottie-play.js +3 -3
  484. package/dist/effects/magnet.cjs +4 -4
  485. package/dist/effects/magnet.js +4 -4
  486. package/dist/effects/marching-ants.cjs +3 -3
  487. package/dist/effects/marching-ants.js +3 -3
  488. package/dist/effects/marker-pulse.cjs +3 -3
  489. package/dist/effects/marker-pulse.js +3 -3
  490. package/dist/effects/mention-glow.cjs +3 -3
  491. package/dist/effects/mention-glow.js +3 -3
  492. package/dist/effects/mesh-drift.cjs +3 -3
  493. package/dist/effects/mesh-drift.js +3 -3
  494. package/dist/effects/message-in.cjs +3 -3
  495. package/dist/effects/message-in.js +3 -3
  496. package/dist/effects/mosaic-flip.cjs +3 -3
  497. package/dist/effects/mosaic-flip.js +3 -3
  498. package/dist/effects/neon-ignite.cjs +3 -3
  499. package/dist/effects/neon-ignite.js +3 -3
  500. package/dist/effects/neon-pulse.cjs +3 -3
  501. package/dist/effects/neon-pulse.js +3 -3
  502. package/dist/effects/neon-write.cjs +3 -3
  503. package/dist/effects/neon-write.js +3 -3
  504. package/dist/effects/neu-press.cjs +3 -3
  505. package/dist/effects/neu-press.js +3 -3
  506. package/dist/effects/noise-reveal.cjs +3 -3
  507. package/dist/effects/noise-reveal.js +3 -3
  508. package/dist/effects/number-roll.cjs +3 -3
  509. package/dist/effects/number-roll.js +3 -3
  510. package/dist/effects/orbit-camera.cjs +4 -4
  511. package/dist/effects/orbit-camera.js +4 -4
  512. package/dist/effects/orbit-in.cjs +3 -3
  513. package/dist/effects/orbit-in.js +3 -3
  514. package/dist/effects/origami.cjs +4 -4
  515. package/dist/effects/origami.js +4 -4
  516. package/dist/effects/page-curl.cjs +3 -3
  517. package/dist/effects/page-curl.js +3 -3
  518. package/dist/effects/pan-reveal.cjs +3 -3
  519. package/dist/effects/pan-reveal.js +3 -3
  520. package/dist/effects/paper-unfold.cjs +3 -3
  521. package/dist/effects/paper-unfold.js +3 -3
  522. package/dist/effects/particle-text.cjs +3 -3
  523. package/dist/effects/particle-text.js +3 -3
  524. package/dist/effects/path-morph.cjs +3 -3
  525. package/dist/effects/path-morph.js +3 -3
  526. package/dist/effects/pearlescent.cjs +4 -4
  527. package/dist/effects/pearlescent.js +4 -4
  528. package/dist/effects/pencil-sketch.cjs +3 -3
  529. package/dist/effects/pencil-sketch.js +3 -3
  530. package/dist/effects/pin-drop.cjs +3 -3
  531. package/dist/effects/pin-drop.js +3 -3
  532. package/dist/effects/pinball.cjs +4 -4
  533. package/dist/effects/pinball.js +4 -4
  534. package/dist/effects/pinch-hint.cjs +3 -3
  535. package/dist/effects/pinch-hint.js +3 -3
  536. package/dist/effects/pixelate-in.cjs +3 -3
  537. package/dist/effects/pixelate-in.js +3 -3
  538. package/dist/effects/pointer-shadow.cjs +4 -4
  539. package/dist/effects/pointer-shadow.js +4 -4
  540. package/dist/effects/portal-open.cjs +3 -3
  541. package/dist/effects/portal-open.js +3 -3
  542. package/dist/effects/price-flip.cjs +3 -3
  543. package/dist/effects/price-flip.js +3 -3
  544. package/dist/effects/product-spin.cjs +4 -4
  545. package/dist/effects/product-spin.js +4 -4
  546. package/dist/effects/rack-focus.cjs +3 -3
  547. package/dist/effects/rack-focus.js +3 -3
  548. package/dist/effects/radial-spectrum.cjs +5 -5
  549. package/dist/effects/radial-spectrum.js +5 -5
  550. package/dist/effects/rain-glass.cjs +4 -4
  551. package/dist/effects/rain-glass.js +4 -4
  552. package/dist/effects/reaction-burst.cjs +3 -3
  553. package/dist/effects/reaction-burst.js +3 -3
  554. package/dist/effects/read-receipt.cjs +3 -3
  555. package/dist/effects/read-receipt.js +3 -3
  556. package/dist/effects/refraction.cjs +4 -4
  557. package/dist/effects/refraction.js +4 -4
  558. package/dist/effects/ring-sweep.cjs +3 -3
  559. package/dist/effects/ring-sweep.js +3 -3
  560. package/dist/effects/ripple-dissolve.cjs +3 -3
  561. package/dist/effects/ripple-dissolve.js +3 -3
  562. package/dist/effects/rope.cjs +4 -4
  563. package/dist/effects/rope.js +4 -4
  564. package/dist/effects/route-draw.cjs +3 -3
  565. package/dist/effects/route-draw.js +3 -3
  566. package/dist/effects/safe-fade.cjs +3 -3
  567. package/dist/effects/safe-fade.js +3 -3
  568. package/dist/effects/sakura.cjs +5 -5
  569. package/dist/effects/sakura.js +5 -5
  570. package/dist/effects/sale-shine.cjs +3 -3
  571. package/dist/effects/sale-shine.js +3 -3
  572. package/dist/effects/sankey-flow.cjs +3 -3
  573. package/dist/effects/sankey-flow.js +3 -3
  574. package/dist/effects/scanline-sweep.cjs +3 -3
  575. package/dist/effects/scanline-sweep.js +3 -3
  576. package/dist/effects/shatter.cjs +3 -3
  577. package/dist/effects/shatter.js +3 -3
  578. package/dist/effects/smoke.cjs +5 -5
  579. package/dist/effects/smoke.js +5 -5
  580. package/dist/effects/snowfall.cjs +4 -4
  581. package/dist/effects/snowfall.js +4 -4
  582. package/dist/effects/soft-body.cjs +4 -4
  583. package/dist/effects/soft-body.js +4 -4
  584. package/dist/effects/sound-particles.cjs +5 -5
  585. package/dist/effects/sound-particles.js +5 -5
  586. package/dist/effects/spatial-float.cjs +3 -3
  587. package/dist/effects/spatial-float.js +3 -3
  588. package/dist/effects/spectrum-mirror.cjs +5 -5
  589. package/dist/effects/spectrum-mirror.js +5 -5
  590. package/dist/effects/splash.cjs +5 -5
  591. package/dist/effects/splash.js +5 -5
  592. package/dist/effects/spooky-float.cjs +3 -3
  593. package/dist/effects/spooky-float.js +3 -3
  594. package/dist/effects/stock-pulse.cjs +3 -3
  595. package/dist/effects/stock-pulse.js +3 -3
  596. package/dist/effects/stream-text.cjs +3 -3
  597. package/dist/effects/stream-text.js +3 -3
  598. package/dist/effects/stroke-draw.cjs +3 -3
  599. package/dist/effects/stroke-draw.js +3 -3
  600. package/dist/effects/success-check.cjs +3 -3
  601. package/dist/effects/success-check.js +3 -3
  602. package/dist/effects/swipe-hint.cjs +3 -3
  603. package/dist/effects/swipe-hint.js +3 -3
  604. package/dist/effects/text-trail.cjs +3 -3
  605. package/dist/effects/text-trail.js +3 -3
  606. package/dist/effects/thinking-glow.cjs +3 -3
  607. package/dist/effects/thinking-glow.js +3 -3
  608. package/dist/effects/tilt-wobble.cjs +3 -3
  609. package/dist/effects/tilt-wobble.js +3 -3
  610. package/dist/effects/typing-dots.cjs +3 -3
  611. package/dist/effects/typing-dots.js +3 -3
  612. package/dist/effects/underline-sweep.cjs +3 -3
  613. package/dist/effects/underline-sweep.js +3 -3
  614. package/dist/effects/vhs-glitch.cjs +3 -3
  615. package/dist/effects/vhs-glitch.js +3 -3
  616. package/dist/effects/vine-grow.cjs +3 -3
  617. package/dist/effects/vine-grow.js +3 -3
  618. package/dist/effects/vinyl-spin.cjs +5 -5
  619. package/dist/effects/vinyl-spin.js +5 -5
  620. package/dist/effects/voice-wave.cjs +3 -3
  621. package/dist/effects/voice-wave.js +3 -3
  622. package/dist/effects/water-drop.cjs +3 -3
  623. package/dist/effects/water-drop.js +3 -3
  624. package/dist/effects/watercolor.cjs +3 -3
  625. package/dist/effects/watercolor.js +3 -3
  626. package/dist/effects/waveform-scope.cjs +5 -5
  627. package/dist/effects/waveform-scope.js +5 -5
  628. package/dist/effects/xmas-snow.cjs +3 -3
  629. package/dist/effects/xmas-snow.js +3 -3
  630. package/dist/effects/xp-gain.cjs +3 -3
  631. package/dist/effects/xp-gain.js +3 -3
  632. package/dist/effects/y2k-shine.cjs +3 -3
  633. package/dist/effects/y2k-shine.js +3 -3
  634. package/dist/element.cjs +1 -1
  635. package/dist/element.js +1 -1
  636. package/dist/element.umd.js +1 -1
  637. package/dist/index.cjs +3 -3
  638. package/dist/index.js +3 -3
  639. package/dist/index.umd.js +3 -3
  640. package/dist/llms-full.txt +1 -1
  641. package/dist/llms.txt +1 -1
  642. package/dist/manifest.json +24 -11
  643. package/dist/presets/extended.cjs +1 -1
  644. package/dist/presets/extended.js +1 -1
  645. package/dist/presets-extended.umd.js +1 -1
  646. package/dist/react.cjs +1 -1
  647. package/dist/react.js +1 -1
  648. package/dist/runtime/drag-snap.cjs +2 -2
  649. package/dist/runtime/drag-snap.iife.js +1 -1
  650. package/dist/runtime/drag-snap.js +2 -2
  651. package/dist/runtime/format-apng.cjs +5 -5
  652. package/dist/runtime/format-apng.iife.js +1 -1
  653. package/dist/runtime/format-apng.js +5 -5
  654. package/dist/runtime/format-css.cjs +5 -5
  655. package/dist/runtime/format-css.iife.js +1 -1
  656. package/dist/runtime/format-css.js +5 -5
  657. package/dist/runtime/format-gif.cjs +5 -5
  658. package/dist/runtime/format-gif.iife.js +1 -1
  659. package/dist/runtime/format-gif.js +5 -5
  660. package/dist/runtime/format-gltf.cjs +2 -2
  661. package/dist/runtime/format-gltf.iife.js +1 -1
  662. package/dist/runtime/format-gltf.js +2 -2
  663. package/dist/runtime/format-motion.cjs +5 -5
  664. package/dist/runtime/format-motion.iife.js +1 -1
  665. package/dist/runtime/format-motion.js +5 -5
  666. package/dist/runtime/format-obj.cjs +2 -2
  667. package/dist/runtime/format-obj.iife.js +1 -1
  668. package/dist/runtime/format-obj.js +2 -2
  669. package/dist/runtime/format-scene.cjs +2 -2
  670. package/dist/runtime/format-scene.iife.js +1 -1
  671. package/dist/runtime/format-scene.js +2 -2
  672. package/dist/runtime/format-sprite.cjs +4 -4
  673. package/dist/runtime/format-sprite.iife.js +1 -1
  674. package/dist/runtime/format-sprite.js +4 -4
  675. package/dist/runtime/format-svg.cjs +4 -4
  676. package/dist/runtime/format-svg.iife.js +1 -1
  677. package/dist/runtime/format-svg.js +4 -4
  678. package/dist/runtime/format-webp.cjs +5 -5
  679. package/dist/runtime/format-webp.iife.js +1 -1
  680. package/dist/runtime/format-webp.js +5 -5
  681. package/dist/runtime/gl.cjs +2 -2
  682. package/dist/runtime/gl.iife.js +1 -1
  683. package/dist/runtime/gl.js +2 -2
  684. package/dist/runtime/gltf-anim.cjs +2 -2
  685. package/dist/runtime/gltf-anim.iife.js +1 -1
  686. package/dist/runtime/gltf-anim.js +2 -2
  687. package/dist/runtime/gltf-decoders.cjs +2 -2
  688. package/dist/runtime/gltf-decoders.iife.js +1 -1
  689. package/dist/runtime/gltf-decoders.js +2 -2
  690. package/dist/runtime/lottie-state.cjs +2 -2
  691. package/dist/runtime/lottie-state.iife.js +1 -1
  692. package/dist/runtime/lottie-state.js +2 -2
  693. package/dist/runtime/physics.cjs +2 -2
  694. package/dist/runtime/physics.iife.js +1 -1
  695. package/dist/runtime/physics.js +2 -2
  696. package/dist/runtime/scroll.cjs +3 -3
  697. package/dist/runtime/scroll.iife.js +1 -1
  698. package/dist/runtime/scroll.js +3 -3
  699. package/dist/runtime/smooth.cjs +2 -2
  700. package/dist/runtime/smooth.iife.js +1 -1
  701. package/dist/runtime/smooth.js +2 -2
  702. package/dist/runtime/text.cjs +2 -2
  703. package/dist/runtime/text.iife.js +1 -1
  704. package/dist/runtime/text.js +2 -2
  705. package/dist/runtime/vector.cjs +4 -4
  706. package/dist/runtime/vector.iife.js +1 -1
  707. package/dist/runtime/vector.js +4 -4
  708. package/dist/runtime.cjs +4 -4
  709. package/dist/runtime.d.cts +1 -1
  710. package/dist/runtime.d.ts +1 -1
  711. package/dist/runtime.iife.js +2 -2
  712. package/dist/runtime.js +6 -6
  713. package/dist/solid.cjs +1 -1
  714. package/dist/solid.js +1 -1
  715. package/dist/svelte.cjs +1 -1
  716. package/dist/svelte.js +1 -1
  717. package/dist/vue.cjs +1 -1
  718. package/dist/vue.js +1 -1
  719. package/dist/widgets/add-to-cart.cjs +6 -6
  720. package/dist/widgets/add-to-cart.js +6 -6
  721. package/dist/widgets/badge-wall.cjs +3 -3
  722. package/dist/widgets/badge-wall.js +3 -3
  723. package/dist/widgets/bar-chart.cjs +2 -2
  724. package/dist/widgets/bar-chart.js +2 -2
  725. package/dist/widgets/bg-generator.cjs +4 -4
  726. package/dist/widgets/bg-generator.js +4 -4
  727. package/dist/widgets/carousel.cjs +3 -3
  728. package/dist/widgets/carousel.js +3 -3
  729. package/dist/widgets/cart-drawer.cjs +3 -3
  730. package/dist/widgets/cart-drawer.js +3 -3
  731. package/dist/widgets/chapter-nav.cjs +2 -2
  732. package/dist/widgets/chapter-nav.js +2 -2
  733. package/dist/widgets/chat-composer.cjs +2 -2
  734. package/dist/widgets/chat-composer.js +2 -2
  735. package/dist/widgets/clock-control.cjs +2 -2
  736. package/dist/widgets/clock-control.js +2 -2
  737. package/dist/widgets/code-export.cjs +3 -3
  738. package/dist/widgets/code-export.js +3 -3
  739. package/dist/widgets/color-picker.cjs +3 -3
  740. package/dist/widgets/color-picker.js +3 -3
  741. package/dist/widgets/command-palette.cjs +3 -3
  742. package/dist/widgets/command-palette.js +3 -3
  743. package/dist/widgets/compare.cjs +5 -5
  744. package/dist/widgets/compare.js +5 -5
  745. package/dist/widgets/countdown.cjs +3 -3
  746. package/dist/widgets/countdown.js +3 -3
  747. package/dist/widgets/cube-gallery.cjs +2 -2
  748. package/dist/widgets/cube-gallery.js +2 -2
  749. package/dist/widgets/date-picker.cjs +3 -3
  750. package/dist/widgets/date-picker.js +3 -3
  751. package/dist/widgets/disclosure.cjs +3 -3
  752. package/dist/widgets/disclosure.js +3 -3
  753. package/dist/widgets/dock.cjs +4 -4
  754. package/dist/widgets/dock.js +4 -4
  755. package/dist/widgets/dotlottie.cjs +5 -5
  756. package/dist/widgets/dotlottie.js +5 -5
  757. package/dist/widgets/equalizer.cjs +3 -3
  758. package/dist/widgets/equalizer.js +3 -3
  759. package/dist/widgets/festival-banner.cjs +3 -3
  760. package/dist/widgets/festival-banner.js +3 -3
  761. package/dist/widgets/field.cjs +3 -3
  762. package/dist/widgets/field.js +3 -3
  763. package/dist/widgets/file-drop.cjs +2 -2
  764. package/dist/widgets/file-drop.js +2 -2
  765. package/dist/widgets/gauge.cjs +6 -5
  766. package/dist/widgets/gauge.js +6 -5
  767. package/dist/widgets/gen-art.cjs +7 -6
  768. package/dist/widgets/gen-art.js +7 -6
  769. package/dist/widgets/gesture-sticker.cjs +3 -3
  770. package/dist/widgets/gesture-sticker.js +3 -3
  771. package/dist/widgets/gl-model.cjs +5 -5
  772. package/dist/widgets/gl-model.js +5 -5
  773. package/dist/widgets/gl-scene.cjs +5 -5
  774. package/dist/widgets/gl-scene.js +5 -5
  775. package/dist/widgets/globe.cjs +3 -3
  776. package/dist/widgets/globe.js +3 -3
  777. package/dist/widgets/gpu-particles.cjs +3 -3
  778. package/dist/widgets/gpu-particles.js +3 -3
  779. package/dist/widgets/gyro-card.cjs +3 -3
  780. package/dist/widgets/gyro-card.js +3 -3
  781. package/dist/widgets/hero-video.cjs +3 -3
  782. package/dist/widgets/hero-video.js +3 -3
  783. package/dist/widgets/hud-panel.cjs +2 -2
  784. package/dist/widgets/hud-panel.js +2 -2
  785. package/dist/widgets/hydrate.cjs +2 -2
  786. package/dist/widgets/hydrate.js +2 -2
  787. package/dist/widgets/install-button.cjs +2 -2
  788. package/dist/widgets/install-button.js +2 -2
  789. package/dist/widgets/kanban.cjs +2 -2
  790. package/dist/widgets/kanban.js +2 -2
  791. package/dist/widgets/keyframe-editor.cjs +8 -7
  792. package/dist/widgets/keyframe-editor.js +8 -7
  793. package/dist/widgets/kpi.cjs +7 -6
  794. package/dist/widgets/kpi.js +7 -6
  795. package/dist/widgets/leaderboard.cjs +3 -3
  796. package/dist/widgets/leaderboard.js +3 -3
  797. package/dist/widgets/liquid-nav.cjs +3 -3
  798. package/dist/widgets/liquid-nav.js +3 -3
  799. package/dist/widgets/location-card.cjs +3 -3
  800. package/dist/widgets/location-card.js +3 -3
  801. package/dist/widgets/lottie-icon.cjs +4 -4
  802. package/dist/widgets/lottie-icon.js +4 -4
  803. package/dist/widgets/lottie-player.cjs +5 -5
  804. package/dist/widgets/lottie-player.js +5 -5
  805. package/dist/widgets/lottie.cjs +3 -3
  806. package/dist/widgets/lottie.js +3 -3
  807. package/dist/widgets/lyrics.cjs +3 -3
  808. package/dist/widgets/lyrics.js +3 -3
  809. package/dist/widgets/masonry-flow.cjs +2 -2
  810. package/dist/widgets/masonry-flow.js +2 -2
  811. package/dist/widgets/menu-toggle.cjs +3 -3
  812. package/dist/widgets/menu-toggle.js +3 -3
  813. package/dist/widgets/menu.cjs +3 -3
  814. package/dist/widgets/menu.js +3 -3
  815. package/dist/widgets/message-list.cjs +2 -2
  816. package/dist/widgets/message-list.js +2 -2
  817. package/dist/widgets/milestones.cjs +4 -4
  818. package/dist/widgets/milestones.js +4 -4
  819. package/dist/widgets/modal.cjs +4 -3
  820. package/dist/widgets/modal.js +4 -3
  821. package/dist/widgets/motion-inspector.cjs +3 -3
  822. package/dist/widgets/motion-inspector.js +3 -3
  823. package/dist/widgets/motion-prefs.cjs +3 -3
  824. package/dist/widgets/motion-prefs.js +3 -3
  825. package/dist/widgets/motion-prompt.cjs +2 -2
  826. package/dist/widgets/motion-prompt.js +2 -2
  827. package/dist/widgets/motion-spec.cjs +4 -4
  828. package/dist/widgets/motion-spec.js +4 -4
  829. package/dist/widgets/motion.cjs +3 -3
  830. package/dist/widgets/motion.js +3 -3
  831. package/dist/widgets/music-player.cjs +7 -6
  832. package/dist/widgets/music-player.js +7 -6
  833. package/dist/widgets/native-preview.cjs +4 -4
  834. package/dist/widgets/native-preview.js +4 -4
  835. package/dist/widgets/nav-morph.cjs +3 -3
  836. package/dist/widgets/nav-morph.js +3 -3
  837. package/dist/widgets/notification-bell.cjs +2 -2
  838. package/dist/widgets/notification-bell.js +2 -2
  839. package/dist/widgets/odometer.cjs +4 -3
  840. package/dist/widgets/odometer.js +4 -3
  841. package/dist/widgets/organic-card.cjs +3 -3
  842. package/dist/widgets/organic-card.js +3 -3
  843. package/dist/widgets/otp.cjs +3 -3
  844. package/dist/widgets/otp.js +3 -3
  845. package/dist/widgets/pagination.cjs +4 -3
  846. package/dist/widgets/pagination.js +4 -3
  847. package/dist/widgets/panorama.cjs +8 -7
  848. package/dist/widgets/panorama.js +8 -7
  849. package/dist/widgets/parallax-layers.cjs +4 -4
  850. package/dist/widgets/parallax-layers.js +7 -7
  851. package/dist/widgets/pause-all.cjs +2 -2
  852. package/dist/widgets/pause-all.js +2 -2
  853. package/dist/widgets/perf-monitor.cjs +3 -3
  854. package/dist/widgets/perf-monitor.js +3 -3
  855. package/dist/widgets/physics-playground.cjs +5 -5
  856. package/dist/widgets/physics-playground.js +5 -5
  857. package/dist/widgets/plugin-card.cjs +4 -4
  858. package/dist/widgets/plugin-card.js +4 -4
  859. package/dist/widgets/plugin-store.cjs +4 -4
  860. package/dist/widgets/plugin-store.js +4 -4
  861. package/dist/widgets/presence.cjs +3 -3
  862. package/dist/widgets/presence.js +3 -3
  863. package/dist/widgets/prize-wheel.cjs +3 -3
  864. package/dist/widgets/prize-wheel.js +3 -3
  865. package/dist/widgets/product-gallery.cjs +3 -3
  866. package/dist/widgets/product-gallery.js +3 -3
  867. package/dist/widgets/progress-ring.cjs +4 -3
  868. package/dist/widgets/progress-ring.js +4 -3
  869. package/dist/widgets/prop-panel.cjs +3 -3
  870. package/dist/widgets/prop-panel.js +3 -3
  871. package/dist/widgets/pull-cord.cjs +7 -6
  872. package/dist/widgets/pull-cord.js +7 -6
  873. package/dist/widgets/radar.cjs +3 -3
  874. package/dist/widgets/radar.js +3 -3
  875. package/dist/widgets/reactions.cjs +3 -3
  876. package/dist/widgets/reactions.js +3 -3
  877. package/dist/widgets/red-envelope.cjs +4 -4
  878. package/dist/widgets/red-envelope.js +4 -4
  879. package/dist/widgets/retro-button.cjs +3 -3
  880. package/dist/widgets/retro-button.js +3 -3
  881. package/dist/widgets/rive.cjs +3 -3
  882. package/dist/widgets/rive.js +3 -3
  883. package/dist/widgets/route-transition.cjs +2 -2
  884. package/dist/widgets/route-transition.js +2 -2
  885. package/dist/widgets/scene.cjs +3 -3
  886. package/dist/widgets/scene.js +3 -3
  887. package/dist/widgets/scroll-ring.cjs +4 -4
  888. package/dist/widgets/scroll-ring.js +7 -7
  889. package/dist/widgets/scroll-scene.cjs +5 -5
  890. package/dist/widgets/scroll-scene.js +5 -5
  891. package/dist/widgets/segmented.cjs +3 -3
  892. package/dist/widgets/segmented.js +3 -3
  893. package/dist/widgets/shader-backdrop.cjs +3 -3
  894. package/dist/widgets/shader-backdrop.js +3 -3
  895. package/dist/widgets/sheet.cjs +4 -3
  896. package/dist/widgets/sheet.js +4 -3
  897. package/dist/widgets/shortcut.cjs +3 -3
  898. package/dist/widgets/shortcut.js +3 -3
  899. package/dist/widgets/skeleton-reveal.cjs +3 -3
  900. package/dist/widgets/skeleton-reveal.js +3 -3
  901. package/dist/widgets/sketch-chart.cjs +3 -3
  902. package/dist/widgets/sketch-chart.js +3 -3
  903. package/dist/widgets/smooth-scroll.cjs +4 -4
  904. package/dist/widgets/smooth-scroll.js +4 -4
  905. package/dist/widgets/snap-carousel.cjs +4 -4
  906. package/dist/widgets/snap-carousel.js +4 -4
  907. package/dist/widgets/sparkline.cjs +4 -3
  908. package/dist/widgets/sparkline.js +4 -3
  909. package/dist/widgets/spatial-card.cjs +2 -2
  910. package/dist/widgets/spatial-card.js +2 -2
  911. package/dist/widgets/star-rating.cjs +2 -2
  912. package/dist/widgets/star-rating.js +2 -2
  913. package/dist/widgets/stepper.cjs +2 -2
  914. package/dist/widgets/stepper.js +2 -2
  915. package/dist/widgets/sticky-wall.cjs +3 -3
  916. package/dist/widgets/sticky-wall.js +3 -3
  917. package/dist/widgets/stories.cjs +2 -2
  918. package/dist/widgets/stories.js +2 -2
  919. package/dist/widgets/suggestion-chips.cjs +3 -3
  920. package/dist/widgets/suggestion-chips.js +3 -3
  921. package/dist/widgets/swipe-deck.cjs +2 -2
  922. package/dist/widgets/swipe-deck.js +2 -2
  923. package/dist/widgets/switch.cjs +3 -3
  924. package/dist/widgets/switch.js +3 -3
  925. package/dist/widgets/tab-bar.cjs +3 -3
  926. package/dist/widgets/tab-bar.js +3 -3
  927. package/dist/widgets/terminal.cjs +2 -2
  928. package/dist/widgets/terminal.js +2 -2
  929. package/dist/widgets/text-splitter.cjs +4 -4
  930. package/dist/widgets/text-splitter.js +4 -4
  931. package/dist/widgets/theme-surface.cjs +3 -3
  932. package/dist/widgets/theme-surface.js +3 -3
  933. package/dist/widgets/theme-switcher.cjs +3 -3
  934. package/dist/widgets/theme-switcher.js +3 -3
  935. package/dist/widgets/tip.cjs +3 -3
  936. package/dist/widgets/tip.js +3 -3
  937. package/dist/widgets/toast-stack.cjs +5 -4
  938. package/dist/widgets/toast-stack.js +5 -4
  939. package/dist/widgets/token-editor.cjs +2 -2
  940. package/dist/widgets/token-editor.js +2 -2
  941. package/dist/widgets/upload-progress.cjs +3 -3
  942. package/dist/widgets/upload-progress.js +3 -3
  943. package/dist/widgets/video-card.cjs +2 -2
  944. package/dist/widgets/video-card.js +2 -2
  945. package/dist/widgets/voice-button.cjs +3 -3
  946. package/dist/widgets/voice-button.js +3 -3
  947. package/dist/widgets/volume-knob.cjs +2 -2
  948. package/dist/widgets/volume-knob.js +2 -2
  949. package/dist/widgets/weather-card.cjs +3 -3
  950. package/dist/widgets/weather-card.js +3 -3
  951. package/dist/widgets/worker-canvas.cjs +4 -4
  952. package/dist/widgets/worker-canvas.js +4 -4
  953. package/dist/widgets/xp-bar.cjs +3 -3
  954. package/dist/widgets/xp-bar.js +3 -3
  955. package/dist/widgets.umd.js +2 -2
  956. package/docs/browser-matrix.md +1 -0
  957. package/docs/components/usa-aurora.md +1 -1
  958. package/docs/components/usa-bottom-sheet.md +1 -1
  959. package/docs/components/usa-drawer.md +1 -1
  960. package/docs/components/usa-gl-model.md +1 -1
  961. package/docs/components/usa-gl-scene.md +1 -1
  962. package/docs/components/usa-modal.md +1 -1
  963. package/docs/components/usa-pagination.md +1 -1
  964. package/docs/components/usa-sheet.md +1 -1
  965. package/docs/components/usa-story.md +1 -1
  966. package/docs/components/usa-toast-stack.md +1 -1
  967. package/docs/hybrid-apps.md +3 -0
  968. package/docs/mobile.md +134 -0
  969. package/docs/scheduling.md +58 -0
  970. package/figma-plugin/ui.html +5 -2
  971. package/package.json +21 -1
package/CHANGELOG.md CHANGED
@@ -7,6 +7,88 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [13.4.0] - 2026-10-10
11
+
12
+ Animation scheduling. One shared rAF loop now has a frame budget, drops the work of detached elements, and — with the
13
+ new offscreen plug-in — pauses loops that are off screen or in a hidden tab. New long-task helpers keep big setups
14
+ from blocking input. No breaking changes; zero runtime dependencies; size budgets unchanged
15
+ (`motionary/components/lite` stays within 70 KB — the offscreen pause is a separate plug-in and not part of lite).
16
+ [docs/scheduling.md](docs/scheduling.md)
17
+
18
+ ### Added
19
+
20
+ - `setFrameBudget(ms)` (`motionary/components/perf`): queued callbacks that do not fit a frame's budget (default 8 ms)
21
+ run next frame, oldest first. `schedulerStats()` also reports `deferred`, `parked` and `budget`.
22
+ - `onFrame(fn, el?)`: optional owner element; a one-shot scheduler callback with an owner is dropped once the owner
23
+ is detached.
24
+ - `motionary/components/offscreen`: `installOffscreenPause()`, `raf`, `caf`, `onFrame` — pause while the tab is hidden
25
+ and while the owner element is off screen (shared IntersectionObserver). Installed on first use by `<usa-story>`,
26
+ `<usa-aurora>`, the marketplace and the sparkline / meter / music-player widgets. Gauge, KPI, pull-cord, lyrics, globe,
27
+ panorama and gen-art pass their owner element but do not install it themselves (fixed per-entry size budgets); they
28
+ pause once it is installed. **Not included in `motionary/components/lite`.**
29
+ Leak-free: an owner that is detached is unobserved, and once no owner is left the plug-in removes its
30
+ `visibilitychange` listener and disconnects its IntersectionObserver (re-installed lazily on the next `raf` /
31
+ `onFrame`).
32
+ - `motionary/components/perf-tasks`: `yieldToMain()`, `shouldYield()`, `runChunked()`.
33
+ - Connect / disconnect cycle test (no leaked loops or queued callbacks).
34
+
35
+ ### Changed
36
+
37
+ - 39 components moved from their own `requestAnimationFrame` calls to the shared scheduler; a test keeps it that way,
38
+ with a documented exemption list: the short-lived `fx-text`, `fx-morph` and `fx-chart` effects stay on native rAF
39
+ (their size budgets are unchanged).
40
+ - Deferred to 13.4.1: CPU-throttled scheduler baseline harness in CI (`perf/scheduler.html`, 4× throttling) — the
41
+ existing perf budgets still gate this release.
42
+ - `withoutDeprecations(fn)` simply runs `fn` (its counter was never read); `now()` uses `performance.now()`.
43
+
44
+ ## [13.3.0] - 2026-10-10
45
+
46
+ Mobile compatibility and security. Components now handle the soft keyboard (`visualViewport`), screen rotation and touch
47
+ on phones, the native bridge only accepts messages from trusted senders, and the browser suite runs on mobile Chrome and
48
+ mobile Safari (WebKit) device emulation. No breaking changes; zero runtime dependencies; size budgets unchanged
49
+ (`motionary/components/lite` stays within 70 KB: minified bundles now keep only a one-line licence comment
50
+ instead of the 700-byte `motionary/components` module doc).
51
+ [docs/mobile.md](docs/mobile.md)
52
+
53
+ ### Added
54
+
55
+ - `watchViewport(fn?)` and `viewportHeight()` (`motionary/components/widgets`): one shared, reference-counted watcher for the
56
+ soft keyboard (`visualViewport` resize / scroll), window resize and `orientationchange`; while active, `<html>` has
57
+ `--usa-kb` (height the keyboard covers; `0px` while pinch-zoomed) and `--usa-vvh` (visible height).
58
+ - `connectNativeShell({ allowedOrigins })` and `isTrustedMessage(event, allowedOrigins?)` (`motionary/components/bridge`).
59
+ - Playwright projects `mobile-chrome` (Pixel 7 on Chromium) and `mobile-safari` (iPhone 14 on WebKit) running
60
+ `test/browser/mobile.spec.mjs`; CI runs them in the `Browser (chromium)` and `Browser (webkit)` jobs.
61
+ - docs/mobile.md: what components do on phones, how it is tested, and what is not verified (no real devices).
62
+ - Mobile Safari emulation (WebKit, CI): `navigator.maxTouchPoints` reads 0 and a rotation of every component at once reports
63
+ the benign "ResizeObserver loop completed" notice; both are noted in docs/mobile.md (Not verified).
64
+
65
+ ### Security
66
+
67
+ - `connectNativeShell()` dropped no `window` messages: any frame that could post to the page (a cross-origin iframe,
68
+ the opener, an embedding parent) could change reduced motion, theme and accent. `window` messages are now accepted only
69
+ from the page itself (host-injected script) or with no source window (native code), or from an exact origin listed in
70
+ `allowedOrigins`; opaque `"null"` origins never match. WebView2 (`chrome.webview`) and `window.usaNative.apply()` — the
71
+ documented host paths — are unchanged. String payloads over 8 KB are rejected before parsing.
72
+ - Figma plugin UI: accepts plugin messages only from its parent (Figma) and escapes layer names and tags.
73
+ - A test scans shipped code (src, showcase, figma-plugin, examples) so that every `window` `message` listener checks the
74
+ sender.
75
+
76
+ ### Fixed
77
+
78
+ - `<usa-bottom-sheet>` / `<usa-drawer>`: sat behind the soft keyboard; the sheet's height and snap points came from
79
+ `innerHeight` once, so after rotating the phone an open sheet was taller than the screen and off its snap point. Both now
80
+ follow the visible viewport while open.
81
+ - `<usa-bottom-sheet>` and `<usa-sheet side="bottom">` set `touch-action: none` on the whole body: long content could not be
82
+ scrolled with a finger. Only the grab handles capture the gesture now (a bottom sheet whose content fits keeps
83
+ drag-anywhere).
84
+ - `<usa-bottom-sheet>` / `<usa-drawer>`: a cancelled touch (`pointercancel`, the browser taking the gesture over for scrolling
85
+ or zoom) was treated like a release and could fling the sheet to another snap point or close it; it now springs back to
86
+ the snap point the drag started at.
87
+ - `<usa-sheet side="bottom">`, `<usa-modal>` and bottom `<usa-toast-stack>` sat (partly) behind the soft keyboard.
88
+ - `<usa-pagination>`: the ink stayed at its old position and width after rotation (buttons change size at 420 px).
89
+ - `<usa-gl-model>` had none of the `<usa-gl-scene>` box styles: on a device with `devicePixelRatio` > 1 its canvas (and the
90
+ element) grew on every resize — 19 200 px wide at DPR 2.625 in the mobile emulation.
91
+
10
92
  ## [13.2.0] - 2026-10-10
11
93
 
12
94
  Docs and contract consistency. The numbers, tables and version descriptions in the READMEs, docs, site and package metadata
package/README.md CHANGED
@@ -390,7 +390,7 @@ Coming from another library: [AOS](./docs/migration-from-aos.md) · [GSAP Scroll
390
390
  | Runtime | [Runtime tiers](./docs/runtime-tiers.md) · [Modules](./docs/runtime/) · [Compatibility matrix](./docs/compat-matrix.md) |
391
391
  | Platforms | [Frameworks & SSR](./docs/frameworks-ssr.md) · [Windows apps](./docs/windows-apps.md) · [Hybrid apps (MAUI, Flutter, Electron, Tauri)](./docs/hybrid-apps.md) · [Cross-platform export](./docs/cross-platform.md) · [Examples](./examples/) |
392
392
  | Design & AI | [Motion tokens](./docs/motion-tokens.md) · [Figma plugin](./figma-plugin/README.md) · [MCP server](./docs/mcp.md) · [AI provider](./docs/ai-provider.md) · [Prompt guide](./docs/ai-prompt-guide.md) |
393
- | Quality | [Accessibility](./docs/accessibility.md) · [Component contract](./docs/component-contract.md) · [Performance](./docs/performance.md) · [Perf CI](./docs/perf-ci.md) · [Tree-shaking](./docs/tree-shaking.md) · [Source maps](./docs/source-maps.md) |
393
+ | Quality | [Accessibility](./docs/accessibility.md) · [Component contract](./docs/component-contract.md) · [Performance](./docs/performance.md) · [Perf CI](./docs/perf-ci.md) · [Scheduling](./docs/scheduling.md) · [Tree-shaking](./docs/tree-shaking.md) · [Source maps](./docs/source-maps.md) |
394
394
  | Project | [Architecture](./docs/architecture.md) · [Roadmap](./docs/ROADMAP.md) · [Versions](./docs/versions.md) · [Changelog](./CHANGELOG.md) |
395
395
 
396
396
  The architecture has four layers: Motion Core, Runtime, Components, and Tooling, with the framework entries on top.
@@ -1,4 +1,4 @@
1
- import { P as Playable } from './tween-Hh34tRXR.js';
1
+ import { P as Playable } from './tween-DehPKIbN.js';
2
2
 
3
3
  /**
4
4
  * Shared internals of the animated-image loaders (`format-gif`, `format-apng`,
@@ -163,4 +163,4 @@ function crc32(bytes, start = 0, end = bytes.length) {
163
163
  }
164
164
 
165
165
  export { animatedImagePlayer as a, browserDecode as b, composeFrames as c, bytesOf as d, crc32 as e, fixDelay as f, u8 as u };
166
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.2.0/dist/chunks/anim-image-CkPZi9xy.js.map
166
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.4.0/dist/chunks/anim-image-Czp1v-zv.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var tween = require('./tween-DZiAFyyF.cjs');
3
+ var tween = require('./tween-DUYiyPH_.cjs');
4
4
 
5
5
  /**
6
6
  * Shared internals of the animated-image loaders (`format-gif`, `format-apng`,
@@ -171,4 +171,4 @@ exports.composeFrames = composeFrames;
171
171
  exports.crc32 = crc32;
172
172
  exports.fixDelay = fixDelay;
173
173
  exports.u8 = u8;
174
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.2.0/dist/chunks/anim-image-DYAMy6Ro.cjs.map
174
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.4.0/dist/chunks/anim-image-DnpOI25h.cjs.map
@@ -1,10 +1,31 @@
1
1
  'use strict';
2
2
 
3
- var registry = require('./registry-EziiQiWO.cjs');
4
- var base = require('./base-vu_KhBiv.cjs');
5
- var generative = require('./generative-BHIj-NU0.cjs');
3
+ var base = require('./base-Do-R_9gU.cjs');
4
+ var registry = require('./registry-CyVCJneg.cjs');
5
+ var generative = require('./generative-BTya0iHP.cjs');
6
6
  var shared = require('./shared-jkgRH-Hx.cjs');
7
7
 
8
+ /**
9
+ * 5.6 — sound-reactive effects (Web Audio).
10
+ *
11
+ * - `enableAudio(input)` — start analysing the microphone (`'mic'`), an
12
+ * `<audio>` / `<video>` element (or a selector for one) or a `MediaStream`.
13
+ * Browsers only allow an `AudioContext` to start inside a user gesture, so
14
+ * call it from a click handler (or use `<usa-audio>`, which renders the
15
+ * toggle button for you).
16
+ * - Background effects (kind `background`, Canvas 2D through
17
+ * `canvasBackground()`): `spectrum-bars`, `pulse-ring`, `wave-ring`. Before
18
+ * audio is enabled they idle gently.
19
+ * - Beat detection: `createBeatDetector()` (pure: energy → beat?), `onBeat(cb)`
20
+ * and `bindBeat(el, effect, options)`, which plays any registered effect on
21
+ * every beat. `<usa-audio>` does the same for `[data-usa-beat="effect"]`
22
+ * children and emits `usa:beat`.
23
+ * - While audio runs, `--usa-audio-level` and `--usa-audio-bass` (0–1) are set
24
+ * on `<html>` for CSS-driven reactions.
25
+ *
26
+ * Reduced motion: the visual effects are skipped, beats play no effects and
27
+ * the CSS variables stay at 0 — audio itself keeps playing.
28
+ */
8
29
  let actx = null;
9
30
  let current = null;
10
31
  const mediaSources = /*#__PURE__*/ new WeakMap();
@@ -92,7 +113,7 @@ async function enableAudio(input = 'mic', opts = {}) {
92
113
  if (current === self) {
93
114
  current = null;
94
115
  if (raf && typeof cancelAnimationFrame === 'function')
95
- cancelAnimationFrame(raf);
116
+ base.caf(raf);
96
117
  raf = 0;
97
118
  }
98
119
  try {
@@ -155,7 +176,7 @@ function loop(now) {
155
176
  }
156
177
  function kick() {
157
178
  if (!raf && current && typeof requestAnimationFrame === 'function')
158
- raf = requestAnimationFrame(loop);
179
+ raf = base.raf(loop);
159
180
  }
160
181
  /** Call `cb` on every detected beat of the current audio source. Returns an unsubscribe. */
161
182
  function onBeat(cb, o = {}) {
@@ -339,4 +360,4 @@ exports.disableAudio = disableAudio;
339
360
  exports.enableAudio = enableAudio;
340
361
  exports.getAudio = getAudio;
341
362
  exports.onBeat = onBeat;
342
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.2.0/dist/chunks/audio-DhgfWYZ_.cjs.map
363
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.4.0/dist/chunks/audio-D7Dk2gUF.cjs.map
@@ -1,8 +1,29 @@
1
- import { playEffect } from './registry-PxXkPc1Q.js';
2
- import { f as defineElement, p as prefersReducedMotion } from './base-nzeN_ux7.js';
3
- import { c as canvasBackground, h as hexRgb } from './generative-2LhxG5BJ.js';
1
+ import { f as defineElement, b as caf, r as raf$1, p as prefersReducedMotion } from './base-Be98yNyq.js';
2
+ import { playEffect } from './registry-BEIhIRTY.js';
3
+ import { c as canvasBackground, h as hexRgb } from './generative-DkX6SvrL.js';
4
4
  import { P as PALETTE } from './shared-CkKHWrtJ.js';
5
5
 
6
+ /**
7
+ * 5.6 — sound-reactive effects (Web Audio).
8
+ *
9
+ * - `enableAudio(input)` — start analysing the microphone (`'mic'`), an
10
+ * `<audio>` / `<video>` element (or a selector for one) or a `MediaStream`.
11
+ * Browsers only allow an `AudioContext` to start inside a user gesture, so
12
+ * call it from a click handler (or use `<usa-audio>`, which renders the
13
+ * toggle button for you).
14
+ * - Background effects (kind `background`, Canvas 2D through
15
+ * `canvasBackground()`): `spectrum-bars`, `pulse-ring`, `wave-ring`. Before
16
+ * audio is enabled they idle gently.
17
+ * - Beat detection: `createBeatDetector()` (pure: energy → beat?), `onBeat(cb)`
18
+ * and `bindBeat(el, effect, options)`, which plays any registered effect on
19
+ * every beat. `<usa-audio>` does the same for `[data-usa-beat="effect"]`
20
+ * children and emits `usa:beat`.
21
+ * - While audio runs, `--usa-audio-level` and `--usa-audio-bass` (0–1) are set
22
+ * on `<html>` for CSS-driven reactions.
23
+ *
24
+ * Reduced motion: the visual effects are skipped, beats play no effects and
25
+ * the CSS variables stay at 0 — audio itself keeps playing.
26
+ */
6
27
  let actx = null;
7
28
  let current = null;
8
29
  const mediaSources = /*#__PURE__*/ new WeakMap();
@@ -90,7 +111,7 @@ async function enableAudio(input = 'mic', opts = {}) {
90
111
  if (current === self) {
91
112
  current = null;
92
113
  if (raf && typeof cancelAnimationFrame === 'function')
93
- cancelAnimationFrame(raf);
114
+ caf(raf);
94
115
  raf = 0;
95
116
  }
96
117
  try {
@@ -153,7 +174,7 @@ function loop(now) {
153
174
  }
154
175
  function kick() {
155
176
  if (!raf && current && typeof requestAnimationFrame === 'function')
156
- raf = requestAnimationFrame(loop);
177
+ raf = raf$1(loop);
157
178
  }
158
179
  /** Call `cb` on every detected beat of the current audio source. Returns an unsubscribe. */
159
180
  function onBeat(cb, o = {}) {
@@ -330,4 +351,4 @@ function defineAudio(tag = 'usa-audio') {
330
351
  }
331
352
 
332
353
  export { AUDIO_FX as A, disableAudio as a, bindBeat as b, createBeatDetector as c, defineAudio as d, enableAudio as e, getAudio as g, onBeat as o };
333
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.2.0/dist/chunks/audio-5FOqrAxu.js.map
354
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.4.0/dist/chunks/audio-DJkvNk0A.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var base = require('./base-vu_KhBiv.cjs');
3
+ var base = require('./base-Do-R_9gU.cjs');
4
4
 
5
5
  var css = "usa-badge-wall{display:block;width:var(--usa-bw-w,320px);max-width:100%;font:600 12px/1.2 system-ui,sans-serif}.usa-bw-count{margin:0 0 8px;font-size:13px;opacity:.75;font-variant-numeric:tabular-nums}.usa-bw-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(70px,1fr));gap:8px;margin:0;padding:0;list-style:none}.usa-bw-badge{position:relative;display:grid;justify-items:center;gap:4px;padding:8px 4px;border-radius:12px;background:linear-gradient(160deg,#fde68a,#f59e0b);color:#422006;text-align:center;overflow:hidden}.usa-bw-icon{font-size:24px;line-height:1}.usa-bw-name{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.usa-bw-badge[data-locked]{background:var(--usa-bw-locked,#e2e8f0);color:#64748b}.usa-bw-badge[data-locked] .usa-bw-icon{filter:grayscale(1);opacity:.45}.usa-bw-badge[data-locked]::after{content:\"🔒\";position:absolute;top:3px;right:4px;font-size:11px}.usa-bw-badge[data-shine]::before{content:\"\";position:absolute;inset:0;background:linear-gradient(110deg,transparent 35%,rgba(255,255,255,.75) 50%,transparent 65%) 120% 0/250% 100%;animation:usa-bw-shine 1s ease-in-out .3s both;pointer-events:none}@keyframes usa-bw-shine{to{background-position:-20% 0}}.usa-bw-live{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}@media (prefers-reduced-motion:reduce){.usa-bw-badge[data-shine]::before{animation:none;display:none}}";
6
6
 
@@ -77,4 +77,4 @@ function defineBadgeWall(tag = 'usa-badge-wall') {
77
77
 
78
78
  exports.badgeProgress = badgeProgress;
79
79
  exports.defineBadgeWall = defineBadgeWall;
80
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.2.0/dist/chunks/badge-wall-Q7x5HSe_.cjs.map
80
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.4.0/dist/chunks/badge-wall-BkqFzeUf.cjs.map
@@ -1,4 +1,4 @@
1
- import { f as defineElement } from './base-nzeN_ux7.js';
1
+ import { f as defineElement } from './base-Be98yNyq.js';
2
2
 
3
3
  var css = "usa-badge-wall{display:block;width:var(--usa-bw-w,320px);max-width:100%;font:600 12px/1.2 system-ui,sans-serif}.usa-bw-count{margin:0 0 8px;font-size:13px;opacity:.75;font-variant-numeric:tabular-nums}.usa-bw-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(70px,1fr));gap:8px;margin:0;padding:0;list-style:none}.usa-bw-badge{position:relative;display:grid;justify-items:center;gap:4px;padding:8px 4px;border-radius:12px;background:linear-gradient(160deg,#fde68a,#f59e0b);color:#422006;text-align:center;overflow:hidden}.usa-bw-icon{font-size:24px;line-height:1}.usa-bw-name{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.usa-bw-badge[data-locked]{background:var(--usa-bw-locked,#e2e8f0);color:#64748b}.usa-bw-badge[data-locked] .usa-bw-icon{filter:grayscale(1);opacity:.45}.usa-bw-badge[data-locked]::after{content:\"🔒\";position:absolute;top:3px;right:4px;font-size:11px}.usa-bw-badge[data-shine]::before{content:\"\";position:absolute;inset:0;background:linear-gradient(110deg,transparent 35%,rgba(255,255,255,.75) 50%,transparent 65%) 120% 0/250% 100%;animation:usa-bw-shine 1s ease-in-out .3s both;pointer-events:none}@keyframes usa-bw-shine{to{background-position:-20% 0}}.usa-bw-live{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}@media (prefers-reduced-motion:reduce){.usa-bw-badge[data-shine]::before{animation:none;display:none}}";
4
4
 
@@ -74,4 +74,4 @@ function defineBadgeWall(tag = 'usa-badge-wall') {
74
74
  }
75
75
 
76
76
  export { badgeProgress as b, defineBadgeWall as d };
77
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.2.0/dist/chunks/badge-wall-Bd2dP3J7.js.map
77
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.4.0/dist/chunks/badge-wall-C6St1WyC.js.map
@@ -18,16 +18,16 @@ function configureComponents(options) {
18
18
  if (options.reducedMotion && options.reducedMotion !== 'reduce')
19
19
  options.reducedMotion = 'user';
20
20
  Object.assign(config, options);
21
- if (options.motionIntensity && typeof document !== 'undefined') {
22
- document.documentElement.style.setProperty('--usa-motion', String(MOTION_SCALE[options.motionIntensity] ?? 1));
23
- document.documentElement.setAttribute('data-usa-motion', options.motionIntensity);
24
- }
25
- if (options.motionSensitivity && typeof document !== 'undefined') {
26
- if (options.motionSensitivity === 'full')
27
- document.documentElement.removeAttribute('data-usa-sensitivity');
28
- else
29
- document.documentElement.setAttribute('data-usa-sensitivity', options.motionSensitivity);
21
+ const { motionIntensity: mi, motionSensitivity: ms } = options;
22
+ if (typeof document == 'undefined')
23
+ return;
24
+ const de = document.documentElement;
25
+ if (mi) {
26
+ de.style.setProperty('--usa-motion', String(MOTION_SCALE[mi] ?? 1));
27
+ de.setAttribute('data-usa-motion', mi);
30
28
  }
29
+ if (ms)
30
+ ms == 'full' ? de.removeAttribute('data-usa-sensitivity') : de.setAttribute('data-usa-sensitivity', ms);
31
31
  }
32
32
  /** The current motion-sensitivity level (v4.4). */
33
33
  function getMotionSensitivity() {
@@ -61,13 +61,9 @@ function adaptKeyframes(frames, level = config.motionSensitivity) {
61
61
  return out;
62
62
  });
63
63
  }
64
- /** Run `fn` without 4.9 deprecation warnings (library-internal calls). */
64
+ /** Run `fn` without 4.9 deprecation warnings (library-internal calls). The suppression counter was never read, so this simply runs `fn` (counter removed in 13.4). */
65
65
  function withoutDeprecations(fn) {
66
- try {
67
- return fn();
68
- }
69
- finally {
70
- }
66
+ return fn();
71
67
  }
72
68
  /** The current global motion intensity. */
73
69
  function getMotionIntensity() {
@@ -106,38 +102,34 @@ function adoptStyles(id, css) {
106
102
  if (!config.injectStyles || !css || injected.has(id) || typeof document === 'undefined')
107
103
  return;
108
104
  injected.add(id);
105
+ if (!adopt(document, css, true))
106
+ (document.head || document.documentElement).appendChild(styleEl(css)).setAttribute('data-usa', id);
107
+ }
108
+ /** Constructable stylesheet onto `root` (appended for a document, replacing for a shadow root); false without support. */
109
+ function adopt(root, css, add) {
109
110
  try {
110
- if (typeof CSSStyleSheet === 'function' && 'adoptedStyleSheets' in document) {
111
+ // no CSSStyleSheet constructor → ReferenceError → caught → <style>
112
+ if ('adoptedStyleSheets' in root) {
111
113
  const sheet = new CSSStyleSheet();
112
114
  sheet.replaceSync(css);
113
- document.adoptedStyleSheets = [...document.adoptedStyleSheets, sheet];
114
- return;
115
+ root.adoptedStyleSheets = add ? [...root.adoptedStyleSheets, sheet] : [sheet];
116
+ return true;
115
117
  }
116
118
  }
117
119
  catch {
118
120
  /* fall through to <style> */
119
121
  }
122
+ return false;
123
+ }
124
+ const styleEl = (css) => {
120
125
  const style = document.createElement('style');
121
- style.setAttribute('data-usa', id);
122
126
  style.textContent = css;
123
- (document.head || document.documentElement).appendChild(style);
124
- }
127
+ return style;
128
+ };
125
129
  /** Attach `css` to a shadow root (constructable sheet where supported, else `<style>`). */
126
130
  function shadowStyles(root, css) {
127
- try {
128
- if (typeof CSSStyleSheet === 'function' && 'adoptedStyleSheets' in root) {
129
- const sheet = new CSSStyleSheet();
130
- sheet.replaceSync(css);
131
- root.adoptedStyleSheets = [sheet];
132
- return;
133
- }
134
- }
135
- catch {
136
- /* fall through */
137
- }
138
- const style = document.createElement('style');
139
- style.textContent = css;
140
- root.prepend(style);
131
+ if (!adopt(root, css))
132
+ root.prepend(styleEl(css));
141
133
  }
142
134
  let baseClass = null;
143
135
  /** The lazily created base class (needs `HTMLElement`). */
@@ -160,7 +152,7 @@ function getBase() {
160
152
  styleLoader?.(this.localName);
161
153
  // Upgraded while the parser is still inside us (a <script> in <head>
162
154
  // defined the element): children/text are not there yet, so wait.
163
- if (typeof document !== 'undefined' && document.readyState === 'loading' && !this.nextSibling && !this.childNodes.length) {
155
+ if (document.readyState === 'loading' && !this.nextSibling && !this.childNodes.length) {
164
156
  const go = () => {
165
157
  if (this._connected && this.isConnected)
166
158
  this.mount();
@@ -192,12 +184,11 @@ function getBase() {
192
184
  mount() { }
193
185
  unmount() { }
194
186
  str(name, fallback = '') {
195
- const v = this.getAttribute(name);
196
- return v === null ? fallback : v;
187
+ return this.getAttribute(name) ?? fallback;
197
188
  }
198
189
  num(name, fallback) {
199
190
  const v = this.getAttribute(name);
200
- const n = v === null || v.trim() === '' ? NaN : Number(v);
191
+ const n = v?.trim() ? Number(v) : NaN;
201
192
  return Number.isFinite(n) ? n : fallback;
202
193
  }
203
194
  /** Boolean attribute: present and not `"false"`. */
@@ -206,10 +197,7 @@ function getBase() {
206
197
  return v !== null && v !== 'false';
207
198
  }
208
199
  setFlag(name, on) {
209
- if (on)
210
- this.setAttribute(name, '');
211
- else
212
- this.removeAttribute(name);
200
+ this.toggleAttribute(name, !!on);
213
201
  }
214
202
  onCleanup(fn) {
215
203
  this._cleanups.push(fn);
@@ -257,12 +245,8 @@ function getBase() {
257
245
  * `null` (final frame applied) when nothing should animate.
258
246
  */
259
247
  function animateWithMotion(el, keyframes, options) {
260
- if (typeof el.animate !== 'function' || config.motionSensitivity === 'static') {
261
- applyFrame(el, keyframes[keyframes.length - 1]);
262
- return null;
263
- }
264
- keyframes = adaptKeyframes(keyframes);
265
- if (active >= maxActive) {
248
+ // no WAAPI / `static` → the unadapted final frame; over the animation budget → the adapted one
249
+ if (typeof el.animate !== 'function' || config.motionSensitivity === 'static' || ((keyframes = adaptKeyframes(keyframes)), active >= maxActive)) {
266
250
  applyFrame(el, keyframes[keyframes.length - 1]);
267
251
  return null;
268
252
  }
@@ -320,41 +304,64 @@ function srText(text) {
320
304
  return s;
321
305
  }
322
306
  // --- shared rAF scheduler (4.5) ----------------------------------------------
323
- // Every component loop goes through one requestAnimationFrame per frame
324
- // instead of one per element: callbacks are batched, run in order, and a
325
- // throwing callback no longer starves the others (the first error is rethrown).
307
+ // One requestAnimationFrame per frame for every component loop; a throwing
308
+ // callback no longer starves the others (the first error is rethrown).
309
+ // 13.4: frame budget (over-budget callbacks wait for the next frame, oldest
310
+ // first); a callback / loop given an owner element is dropped once the owner
311
+ // is detached. Offscreen / hidden-tab pause is a plug-in (setPauseHook,
312
+ // installed by motionary/components/offscreen — not part of lite).
326
313
  const frameQueue = /*#__PURE__*/ new Map();
327
314
  let frameSeq = 1;
328
315
  let frameHandle = 0;
329
316
  let frameVia = null;
330
- const frameStats = { frames: 0, callbacks: 0, peak: 0, last: 0 };
331
- const frameListeners = new Set();
317
+ const frameStats = { frames: 0, callbacks: 0, peak: 0, last: 0, deferred: 0, parked: 0, budget: 8 };
318
+ /** loop → owner element */
319
+ const frameListeners = /*#__PURE__*/ new Map();
320
+ let pauseHook;
321
+ let watchHook;
322
+ /** 0 run, 1 park (detached owner / pause hook), 2 drop (raf callback of a detached owner). */
323
+ const gate = (el) => (el && !el.isConnected ? 2 : pauseHook?.(el) ? 1 : 0);
332
324
  function flushFrame(t) {
325
+ const st = frameStats;
333
326
  frameHandle = 0;
334
- const dt = frameStats.last && t > frameStats.last ? t - frameStats.last : 16.7;
335
- frameStats.last = t;
336
- frameStats.frames++;
337
- const cbs = Array.from(frameQueue.values());
338
- frameQueue.clear();
339
- frameStats.callbacks += cbs.length;
340
- frameStats.peak = Math.max(frameStats.peak, cbs.length);
327
+ const dt = st.last && t > st.last ? t - st.last : 16.7;
328
+ st.last = t;
329
+ st.frames++;
330
+ const start = now();
331
+ let n = 0;
332
+ let p = 0;
333
+ let live = 0;
341
334
  let error = null;
342
- for (const cb of cbs) {
343
- try {
344
- cb(t);
345
- }
346
- catch (e) {
347
- error ?? (error = e);
335
+ for (const [id, [cb, el]] of [...frameQueue]) {
336
+ if (n && now() - start > st.budget) {
337
+ st.deferred++;
338
+ break;
348
339
  }
340
+ const g = gate(el);
341
+ if (g & 1)
342
+ p++;
343
+ else if ((frameQueue.delete(id), !g))
344
+ try {
345
+ n++;
346
+ cb(t);
347
+ }
348
+ catch (e) {
349
+ error ?? (error = e);
350
+ }
349
351
  }
352
+ st.callbacks += n;
353
+ st.peak = Math.max(st.peak, n);
350
354
  // 8.0: loops run on the unified motion clock — dt scaled by its rate, frozen while paused
351
- if (!clk().paused) {
352
- const cdt = dt * clk().rate;
353
- clk().time += cdt;
354
- frameListeners.forEach((fn) => fn(t, cdt));
355
- if (frameListeners.size)
356
- requestFlush();
355
+ const c = clk();
356
+ if (!c.paused) {
357
+ const cdt = dt * c.rate;
358
+ c.time += cdt;
359
+ frameListeners.forEach((el, fn) => (gate(el) ? p++ : (live++, fn(t, cdt))));
357
360
  }
361
+ st.parked += p;
362
+ // everything parked: the pause hook's wake() restarts the loop
363
+ if (live || frameQueue.size > p)
364
+ requestFlush();
358
365
  if (error)
359
366
  throw error;
360
367
  }
@@ -366,43 +373,67 @@ function requestFlush() {
366
373
  frameVia = native;
367
374
  frameHandle = native ? native(flushFrame) : setTimeout(() => flushFrame(now()), 16);
368
375
  }
369
- /** requestAnimationFrame through the shared scheduler (timeout fallback in jsdom / hidden documents). */
370
- const raf = (cb) => {
376
+ /**
377
+ * requestAnimationFrame through the shared scheduler (timeout fallback in jsdom / hidden documents).
378
+ * 13.4: with an owner `el` the callback is dropped once `el` is detached (and paused off screen when the offscreen plug-in is installed).
379
+ */
380
+ const raf = (cb, el) => {
371
381
  const id = frameSeq++;
372
- frameQueue.set(id, cb);
382
+ frameQueue.set(id, [cb, el]);
383
+ el && watchHook?.(el);
373
384
  requestFlush();
374
385
  return id;
375
386
  };
376
- /** Monotonic time in ms (rAF callback timestamps differ between environments, so loops use this). */
377
- const now = () => (typeof performance !== 'undefined' ? performance.now() : Date.now());
387
+ /** High-resolution time (13.4: `performance` is global in every supported browser and Node ≥ 16). */
388
+ const now = () => performance.now();
378
389
  const caf = (id) => {
379
390
  frameQueue.delete(id);
380
391
  };
381
- /** Run `fn(time, dt)` every frame on the shared scheduler until the returned function is called. */
382
- function onFrame(fn) {
383
- frameListeners.add(fn);
392
+ /**
393
+ * Run `fn(time, dt)` every frame on the shared scheduler until the returned function is called.
394
+ * 13.4: with an owner `el` the loop stops running once `el` is detached (and pauses off screen with the offscreen plug-in).
395
+ */
396
+ function onFrame(fn, el) {
397
+ frameListeners.set(fn, el);
398
+ el && watchHook?.(el);
384
399
  if (!clk().paused)
385
400
  requestFlush();
386
401
  return () => frameListeners.delete(fn);
387
402
  }
388
- /** Scheduler counters: frames flushed, callbacks run, peak callbacks in one frame, pending now. */
403
+ /** Scheduler counters: frames flushed, callbacks run, peak per frame, pending now, loops, frames split by the budget, callbacks / loops parked, budget ms. */
389
404
  function schedulerStats() {
390
- return { frames: frameStats.frames, callbacks: frameStats.callbacks, peak: frameStats.peak, pending: frameQueue.size, loops: frameListeners.size };
405
+ const { last, ...rest } = frameStats;
406
+ return { ...rest, pending: frameQueue.size, loops: frameListeners.size };
407
+ }
408
+ /** 13.4: per-frame time budget in ms for queued callbacks (default 8; `Infinity` = never split a frame). */
409
+ function setFrameBudget(ms) {
410
+ frameStats.budget = ms > 0 ? ms : 8;
411
+ }
412
+ /**
413
+ * 13.4: plug a pause predicate into the scheduler. `park(el)` returning truthy holds an owned
414
+ * callback / loop (el is undefined for unowned ones); `watch(el)` is told about every new owner.
415
+ * Returns `wake()`, to call when the predicate may have flipped back.
416
+ */
417
+ function setPauseHook(park, watch) {
418
+ pauseHook = park;
419
+ watchHook = watch;
420
+ return requestFlush;
391
421
  }
392
422
  const CLOCK_KEY = /*#__PURE__*/ Symbol.for('motionary.clock');
393
423
  // 11.1: created on first use, so importing this module writes nothing to globalThis.
394
424
  const clk = () => { var _a; return ((_a = globalThis)[CLOCK_KEY] || (_a[CLOCK_KEY] = { rate: 1, paused: false, time: 0, anims: new Set(), subs: new Set() })); };
395
425
  function applyClock(a) {
426
+ const { rate, paused } = clk();
396
427
  try {
397
428
  if (typeof a.updatePlaybackRate === 'function')
398
- a.updatePlaybackRate(clk().rate);
399
- else if (clk().rate !== 1 || a.playbackRate !== undefined)
400
- a.playbackRate = clk().rate;
401
- if (clk().paused)
429
+ a.updatePlaybackRate(rate);
430
+ else if (rate !== 1 || a.playbackRate !== undefined)
431
+ a.playbackRate = rate;
432
+ if (paused)
402
433
  a.pause?.();
403
434
  else if (a.playState === 'paused' && a._usaClockPaused)
404
435
  a.play?.();
405
- a._usaClockPaused = clk().paused;
436
+ a._usaClockPaused = paused;
406
437
  }
407
438
  catch {
408
439
  /* finished / detached animation */
@@ -420,19 +451,21 @@ function trackAnimation(a) {
420
451
  }
421
452
  /** The motion clock's state: `rate` (1 = normal), `paused`, `time` (clock ms elapsed, scaled by rate). */
422
453
  function getClock() {
423
- return { rate: clk().rate, paused: clk().paused, time: clk().time, tracked: clk().anims.size };
454
+ const { rate, paused, time, anims } = clk();
455
+ return { rate, paused, time, tracked: anims.size };
424
456
  }
425
457
  /** Change the shared clock: `{ rate }` (0.05–8) and / or `{ paused }`. Applies to running animations and loops. */
426
458
  function setClock(next) {
427
- const wasPaused = clk().paused;
459
+ const c = clk();
460
+ const wasPaused = c.paused;
428
461
  if (typeof next.rate === 'number' && Number.isFinite(next.rate))
429
- clk().rate = Math.min(8, Math.max(0.05, next.rate));
462
+ c.rate = clamp(next.rate, 0.05, 8);
430
463
  if (typeof next.paused === 'boolean')
431
- clk().paused = next.paused;
432
- clk().anims.forEach(applyClock);
433
- if (wasPaused && !clk().paused && frameListeners.size)
464
+ c.paused = next.paused;
465
+ c.anims.forEach(applyClock);
466
+ if (wasPaused && !c.paused && frameListeners.size)
434
467
  requestFlush();
435
- clk().subs.forEach((fn) => fn());
468
+ c.subs.forEach((fn) => fn());
436
469
  }
437
470
  /** Subscribe to clock changes; returns an unsubscribe. */
438
471
  function onClockChange(fn) {
@@ -466,8 +499,7 @@ function deprecate(key, message) {
466
499
  if (warned.has(key))
467
500
  return;
468
501
  warned.add(key);
469
- if (typeof console !== 'undefined')
470
- console.warn(`[motionary] ${message}`);
502
+ console.warn(`[motionary] ${message}`);
471
503
  }
472
504
  /**
473
505
  * The `kind` attribute of `<usa-spinner>`, `<usa-check>`, `<usa-dialog>` and
@@ -479,5 +511,5 @@ function kindOf(el, valid, fallback) {
479
511
  }
480
512
  const clamp = (v, min, max) => Math.min(max, Math.max(min, v));
481
513
 
482
- export { srText as A, deprecate as B, adoptStyles as C, EASE_OUT as D, EASE_SPRING as E, FOCUSABLE as F, queryAttr as G, kindOf as H, shadowStyles as I, FLUENT_DECELERATE as J, MOTION_SENSITIVITY_LEVELS as M, applyFrame as a, caf as b, configureComponents as c, clamp as d, animateWithMotion as e, defineElement as f, getMotionSensitivity as g, getClock as h, canDefine as i, MOTION_SCALE as j, activeAnimations as k, adaptKeyframes as l, motionScale as m, now as n, onClockChange as o, prefersReducedMotion as p, animationBudget as q, raf as r, setClock as s, trackAnimation as t, getMotionIntensity as u, onFrame as v, schedulerStats as w, setAnimationBudget as x, withoutDeprecations as y, setStyleLoader as z };
483
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.2.0/dist/chunks/base-nzeN_ux7.js.map
514
+ export { withoutDeprecations as A, setStyleLoader as B, srText as C, deprecate as D, EASE_SPRING as E, FOCUSABLE as F, adoptStyles as G, EASE_OUT as H, queryAttr as I, kindOf as J, shadowStyles as K, FLUENT_DECELERATE as L, MOTION_SENSITIVITY_LEVELS as M, applyFrame as a, caf as b, configureComponents as c, clamp as d, animateWithMotion as e, defineElement as f, getMotionSensitivity as g, onClockChange as h, setClock as i, getClock as j, canDefine as k, MOTION_SCALE as l, motionScale as m, now as n, onFrame as o, prefersReducedMotion as p, activeAnimations as q, raf as r, setPauseHook as s, trackAnimation as t, adaptKeyframes as u, animationBudget as v, getMotionIntensity as w, schedulerStats as x, setAnimationBudget as y, setFrameBudget as z };
515
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.4.0/dist/chunks/base-Be98yNyq.js.map