motionary 10.9.0 → 11.0.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 (406) hide show
  1. package/AGENTS.md +1 -1
  2. package/CHANGELOG.md +32 -0
  3. package/README.md +119 -74
  4. package/README_ja.md +4 -4
  5. package/README_zh.md +4 -4
  6. package/dist/chunks/{anim-image-CnZDYmtv.js → anim-image-Btw3j5Qb.js} +2 -2
  7. package/dist/chunks/{anim-image-CnZDYmtv.js.map → anim-image-Btw3j5Qb.js.map} +1 -1
  8. package/dist/chunks/{anim-image-D1JZ7wOU.cjs → anim-image-DVv_vtbG.cjs} +2 -2
  9. package/dist/chunks/{anim-image-D1JZ7wOU.cjs.map → anim-image-DVv_vtbG.cjs.map} +1 -1
  10. package/dist/chunks/{three-scene-DibsZUID.js → gl-scene-BDA6FlGQ.js} +5 -11
  11. package/dist/chunks/gl-scene-BDA6FlGQ.js.map +1 -0
  12. package/dist/chunks/{three-scene-BFZnZuqp.cjs → gl-scene-SO5UU93S.cjs} +3 -10
  13. package/dist/chunks/gl-scene-SO5UU93S.cjs.map +1 -0
  14. package/dist/chunks/{keyframes-uYSI-do7.cjs → keyframes-4rb2WShh.cjs} +2 -2
  15. package/dist/chunks/{keyframes-uYSI-do7.cjs.map → keyframes-4rb2WShh.cjs.map} +1 -1
  16. package/dist/chunks/{keyframes-CLoYRGjR.js → keyframes-C9poRyzF.js} +2 -2
  17. package/dist/chunks/{keyframes-CLoYRGjR.js.map → keyframes-C9poRyzF.js.map} +1 -1
  18. package/dist/chunks/{lottie-player-UJHOl-8L.js → lottie-player-CPdwHhqe.js} +2 -2
  19. package/dist/chunks/{lottie-player-UJHOl-8L.js.map → lottie-player-CPdwHhqe.js.map} +1 -1
  20. package/dist/chunks/{lottie-player-Mcpt1H5w.cjs → lottie-player-DD1pnLN2.cjs} +2 -2
  21. package/dist/chunks/{lottie-player-Mcpt1H5w.cjs.map → lottie-player-DD1pnLN2.cjs.map} +1 -1
  22. package/dist/chunks/{physics-playground-BxnQyZ_V.cjs → physics-playground-B00t13Nz.cjs} +2 -2
  23. package/dist/chunks/{physics-playground-BxnQyZ_V.cjs.map → physics-playground-B00t13Nz.cjs.map} +1 -1
  24. package/dist/chunks/{physics-playground-B19qANJs.js → physics-playground-CluT_Nj9.js} +2 -2
  25. package/dist/chunks/{physics-playground-B19qANJs.js.map → physics-playground-CluT_Nj9.js.map} +1 -1
  26. package/dist/chunks/{registry-RJYrdUTF.js → registry-W7pXOwju.js} +3 -3
  27. package/dist/chunks/{registry-RJYrdUTF.js.map → registry-W7pXOwju.js.map} +1 -1
  28. package/dist/chunks/{registry-xGDPpmX2.cjs → registry-uaO8pDKn.cjs} +3 -3
  29. package/dist/chunks/{registry-xGDPpmX2.cjs.map → registry-uaO8pDKn.cjs.map} +1 -1
  30. package/dist/chunks/{runtime-link-GD9ayzxH.cjs → runtime-link-Bz3rGMsh.cjs} +2 -2
  31. package/dist/chunks/{runtime-link-GD9ayzxH.cjs.map → runtime-link-Bz3rGMsh.cjs.map} +1 -1
  32. package/dist/chunks/{runtime-link-CQyKFwE1.js → runtime-link-CP3qaRja.js} +2 -2
  33. package/dist/chunks/{runtime-link-CQyKFwE1.js.map → runtime-link-CP3qaRja.js.map} +1 -1
  34. package/dist/chunks/{scroll-scene-C-6sdMtR.cjs → scroll-scene-CeIosbEs.cjs} +3 -3
  35. package/dist/chunks/{scroll-scene-C-6sdMtR.cjs.map → scroll-scene-CeIosbEs.cjs.map} +1 -1
  36. package/dist/chunks/{scroll-scene-DtAaP0Aa.js → scroll-scene-eHhGcoDQ.js} +3 -3
  37. package/dist/chunks/{scroll-scene-DtAaP0Aa.js.map → scroll-scene-eHhGcoDQ.js.map} +1 -1
  38. package/dist/chunks/{ticker-C4VkAL4Y.js → ticker-D0qF_rV_.js} +2 -2
  39. package/dist/chunks/{ticker-C4VkAL4Y.js.map → ticker-D0qF_rV_.js.map} +1 -1
  40. package/dist/chunks/{ticker-DJuzcy1_.cjs → ticker-nshSbZ-Q.cjs} +2 -2
  41. package/dist/chunks/{ticker-DJuzcy1_.cjs.map → ticker-nshSbZ-Q.cjs.map} +1 -1
  42. package/dist/chunks/{tween-BHbiOBWO.cjs → tween-Df87h-1G.cjs} +2 -2
  43. package/dist/chunks/{tween-BHbiOBWO.cjs.map → tween-Df87h-1G.cjs.map} +1 -1
  44. package/dist/chunks/{tween-CrnzMeOU.js → tween-WepVA7id.js} +2 -2
  45. package/dist/chunks/{tween-CrnzMeOU.js.map → tween-WepVA7id.js.map} +1 -1
  46. package/dist/chunks/{worker-canvas-Bkwd1euX.js → worker-canvas-BZNHRLcu.js} +50 -3
  47. package/dist/chunks/worker-canvas-BZNHRLcu.js.map +1 -0
  48. package/dist/chunks/{worker-canvas-Ckc3R2Ye.cjs → worker-canvas-DW3VgtxO.cjs} +50 -2
  49. package/dist/chunks/worker-canvas-DW3VgtxO.cjs.map +1 -0
  50. package/dist/components/dotlottie.cjs +3 -3
  51. package/dist/components/dotlottie.d.cts +2 -1
  52. package/dist/components/dotlottie.d.ts +2 -1
  53. package/dist/components/dotlottie.js +3 -3
  54. package/dist/components/fx-perf.cjs +10 -5
  55. package/dist/components/fx-perf.cjs.map +1 -1
  56. package/dist/components/fx-perf.d.cts +6 -1
  57. package/dist/components/fx-perf.d.ts +6 -1
  58. package/dist/components/fx-perf.js +11 -6
  59. package/dist/components/fx-perf.js.map +1 -1
  60. package/dist/components/fx2.d.cts +6 -1
  61. package/dist/components/fx2.d.ts +6 -1
  62. package/dist/components/gl-model.cjs +3 -3
  63. package/dist/components/gl-model.d.cts +1 -1
  64. package/dist/components/gl-model.d.ts +1 -1
  65. package/dist/components/gl-model.js +3 -3
  66. package/dist/components/snap-carousel.cjs +2 -2
  67. package/dist/components/snap-carousel.js +2 -2
  68. package/dist/components/widgets.cjs +9 -9
  69. package/dist/components/widgets.cjs.map +1 -1
  70. package/dist/components/widgets.d.cts +10 -9
  71. package/dist/components/widgets.d.ts +10 -9
  72. package/dist/components/widgets.js +12 -12
  73. package/dist/components/widgets.js.map +1 -1
  74. package/dist/llms-full.txt +301 -312
  75. package/dist/llms.txt +3 -4
  76. package/dist/manifest.json +271 -299
  77. package/dist/runtime/drag-snap.cjs +1 -1
  78. package/dist/runtime/drag-snap.js +1 -1
  79. package/dist/runtime/format-apng.cjs +4 -4
  80. package/dist/runtime/format-apng.js +4 -4
  81. package/dist/runtime/format-css.cjs +4 -4
  82. package/dist/runtime/format-css.js +4 -4
  83. package/dist/runtime/format-gif.cjs +4 -4
  84. package/dist/runtime/format-gif.js +4 -4
  85. package/dist/runtime/format-gltf.cjs +1 -1
  86. package/dist/runtime/format-gltf.js +1 -1
  87. package/dist/runtime/format-motion.cjs +4 -4
  88. package/dist/runtime/format-motion.js +4 -4
  89. package/dist/runtime/format-obj.cjs +1 -1
  90. package/dist/runtime/format-obj.js +1 -1
  91. package/dist/runtime/format-scene.cjs +1 -1
  92. package/dist/runtime/format-scene.js +1 -1
  93. package/dist/runtime/format-sprite.cjs +3 -3
  94. package/dist/runtime/format-sprite.js +3 -3
  95. package/dist/runtime/format-svg.cjs +3 -3
  96. package/dist/runtime/format-svg.js +3 -3
  97. package/dist/runtime/format-webp.cjs +4 -4
  98. package/dist/runtime/format-webp.js +4 -4
  99. package/dist/runtime/gl.cjs +1 -1
  100. package/dist/runtime/gl.js +1 -1
  101. package/dist/runtime/gltf-anim.cjs +1 -1
  102. package/dist/runtime/gltf-anim.js +1 -1
  103. package/dist/runtime/gltf-decoders.cjs +1 -1
  104. package/dist/runtime/gltf-decoders.js +1 -1
  105. package/dist/runtime/lottie-state.cjs +1 -1
  106. package/dist/runtime/lottie-state.js +1 -1
  107. package/dist/runtime/physics.cjs +1 -1
  108. package/dist/runtime/physics.js +1 -1
  109. package/dist/runtime/scroll.cjs +2 -2
  110. package/dist/runtime/scroll.js +2 -2
  111. package/dist/runtime/smooth.cjs +1 -1
  112. package/dist/runtime/smooth.js +1 -1
  113. package/dist/runtime/text.cjs +1 -1
  114. package/dist/runtime/text.js +1 -1
  115. package/dist/runtime/vector.cjs +66 -17
  116. package/dist/runtime/vector.cjs.map +1 -1
  117. package/dist/runtime/vector.d.cts +30 -6
  118. package/dist/runtime/vector.d.ts +30 -6
  119. package/dist/runtime/vector.iife.js +1 -1
  120. package/dist/runtime/vector.iife.js.map +1 -1
  121. package/dist/runtime/vector.js +65 -18
  122. package/dist/runtime/vector.js.map +1 -1
  123. package/dist/runtime.cjs +3 -3
  124. package/dist/runtime.d.cts +2 -2
  125. package/dist/runtime.d.ts +2 -2
  126. package/dist/runtime.iife.js +1 -1
  127. package/dist/runtime.iife.js.map +1 -1
  128. package/dist/runtime.js +5 -5
  129. package/dist/widgets/dotlottie.cjs +3 -3
  130. package/dist/widgets/dotlottie.js +3 -3
  131. package/dist/widgets/gl-model.cjs +3 -3
  132. package/dist/widgets/gl-model.js +3 -3
  133. package/dist/widgets/gl-scene.cjs +3 -3
  134. package/dist/widgets/gl-scene.js +3 -3
  135. package/dist/widgets/install-button.cjs.map +1 -1
  136. package/dist/widgets/install-button.js.map +1 -1
  137. package/dist/widgets/lottie-player.cjs +3 -3
  138. package/dist/widgets/lottie-player.js +3 -3
  139. package/dist/widgets/motion-inspector.cjs +1 -1
  140. package/dist/widgets/motion-inspector.js +1 -1
  141. package/dist/widgets/physics-playground.cjs +3 -3
  142. package/dist/widgets/physics-playground.js +3 -3
  143. package/dist/widgets/plugin-card.cjs +2 -2
  144. package/dist/widgets/plugin-card.js +2 -2
  145. package/dist/widgets/scroll-scene.cjs +3 -3
  146. package/dist/widgets/scroll-scene.js +3 -3
  147. package/dist/widgets/smooth-scroll.cjs +2 -2
  148. package/dist/widgets/smooth-scroll.js +2 -2
  149. package/dist/widgets/snap-carousel.cjs +2 -2
  150. package/dist/widgets/snap-carousel.js +2 -2
  151. package/dist/widgets/text-splitter.cjs +2 -2
  152. package/dist/widgets/text-splitter.js +2 -2
  153. package/dist/widgets/worker-canvas.cjs +1 -1
  154. package/dist/widgets/worker-canvas.js +1 -1
  155. package/dist/widgets.umd.js +1 -1
  156. package/dist/widgets.umd.js.map +1 -1
  157. package/docs/ROADMAP.md +44 -4
  158. package/docs/architecture.md +78 -0
  159. package/docs/compat-matrix.md +340 -0
  160. package/docs/components/README.md +1 -5
  161. package/docs/components/usa-accordion.md +1 -1
  162. package/docs/components/usa-acrylic.md +1 -1
  163. package/docs/components/usa-add-to-cart.md +1 -1
  164. package/docs/components/usa-ambient.md +1 -1
  165. package/docs/components/usa-anim-icon.md +1 -1
  166. package/docs/components/usa-audio.md +1 -1
  167. package/docs/components/usa-aurora.md +1 -1
  168. package/docs/components/usa-auto-animate.md +1 -1
  169. package/docs/components/usa-auto-skeleton.md +1 -1
  170. package/docs/components/usa-avatar-stack.md +1 -1
  171. package/docs/components/usa-back-to-top.md +1 -1
  172. package/docs/components/usa-badge-wall.md +1 -1
  173. package/docs/components/usa-badge.md +1 -1
  174. package/docs/components/usa-bar-chart.md +1 -1
  175. package/docs/components/usa-bg-generator.md +1 -1
  176. package/docs/components/usa-blobs.md +1 -1
  177. package/docs/components/usa-bottom-sheet.md +1 -1
  178. package/docs/components/usa-button.md +1 -1
  179. package/docs/components/usa-card-stack.md +1 -1
  180. package/docs/components/usa-card.md +1 -1
  181. package/docs/components/usa-carousel-3d.md +1 -1
  182. package/docs/components/usa-carousel.md +1 -1
  183. package/docs/components/usa-cart-drawer.md +1 -1
  184. package/docs/components/usa-chapter-nav.md +1 -1
  185. package/docs/components/usa-chat-composer.md +1 -1
  186. package/docs/components/usa-check.md +1 -1
  187. package/docs/components/usa-checkbox.md +1 -1
  188. package/docs/components/usa-click.md +1 -1
  189. package/docs/components/usa-clock-control.md +1 -1
  190. package/docs/components/usa-code-export.md +1 -1
  191. package/docs/components/usa-color-picker.md +1 -1
  192. package/docs/components/usa-command-palette.md +1 -1
  193. package/docs/components/usa-compare.md +1 -1
  194. package/docs/components/usa-countdown.md +1 -1
  195. package/docs/components/usa-counter.md +1 -1
  196. package/docs/components/usa-cube-gallery.md +1 -1
  197. package/docs/components/usa-cube.md +1 -1
  198. package/docs/components/usa-cursor.md +1 -1
  199. package/docs/components/usa-date-picker.md +1 -1
  200. package/docs/components/usa-depth.md +1 -1
  201. package/docs/components/usa-dialog.md +1 -1
  202. package/docs/components/usa-disclosure.md +1 -1
  203. package/docs/components/usa-distort.md +1 -1
  204. package/docs/components/usa-dock.md +1 -1
  205. package/docs/components/usa-dot-network.md +1 -1
  206. package/docs/components/usa-dotlottie.md +6 -6
  207. package/docs/components/usa-double-tap.md +1 -1
  208. package/docs/components/usa-draggable.md +1 -1
  209. package/docs/components/usa-draw.md +1 -1
  210. package/docs/components/usa-drawer.md +1 -1
  211. package/docs/components/usa-equalizer.md +1 -1
  212. package/docs/components/usa-fab.md +1 -1
  213. package/docs/components/usa-festival-banner.md +1 -1
  214. package/docs/components/usa-field.md +1 -1
  215. package/docs/components/usa-file-drop.md +1 -1
  216. package/docs/components/usa-fullpage.md +1 -1
  217. package/docs/components/usa-fx.md +1 -1
  218. package/docs/components/usa-gauge.md +1 -1
  219. package/docs/components/usa-gen-art.md +1 -1
  220. package/docs/components/usa-gesture-fx.md +1 -1
  221. package/docs/components/usa-gesture-sticker.md +1 -1
  222. package/docs/components/usa-gl-model.md +7 -7
  223. package/docs/components/usa-gl-scene.md +10 -10
  224. package/docs/components/usa-glitch.md +1 -1
  225. package/docs/components/usa-globe.md +1 -1
  226. package/docs/components/usa-gpu-particles.md +1 -1
  227. package/docs/components/usa-gradient-text.md +1 -1
  228. package/docs/components/usa-grain.md +1 -1
  229. package/docs/components/usa-grid-glow.md +1 -1
  230. package/docs/components/usa-gyro-card.md +1 -1
  231. package/docs/components/usa-handwriting.md +1 -1
  232. package/docs/components/usa-hero-video.md +1 -1
  233. package/docs/components/usa-hold.md +1 -1
  234. package/docs/components/usa-hud-panel.md +1 -1
  235. package/docs/components/usa-hydrate.md +1 -1
  236. package/docs/components/usa-icon-morph.md +1 -1
  237. package/docs/components/usa-install-button.md +3 -3
  238. package/docs/components/usa-kanban.md +1 -1
  239. package/docs/components/usa-keyframe-editor.md +1 -1
  240. package/docs/components/usa-kpi.md +1 -1
  241. package/docs/components/usa-leaderboard.md +1 -1
  242. package/docs/components/usa-like.md +1 -1
  243. package/docs/components/usa-liquid-nav.md +1 -1
  244. package/docs/components/usa-liquid.md +1 -1
  245. package/docs/components/usa-loading-bar.md +1 -1
  246. package/docs/components/usa-location-card.md +1 -1
  247. package/docs/components/usa-lottie-icon.md +1 -1
  248. package/docs/components/usa-lottie-player.md +5 -5
  249. package/docs/components/usa-lottie.md +1 -1
  250. package/docs/components/usa-lyrics.md +1 -1
  251. package/docs/components/usa-magnetic.md +1 -1
  252. package/docs/components/usa-marquee.md +1 -1
  253. package/docs/components/usa-mask-reveal.md +1 -1
  254. package/docs/components/usa-masonry-flow.md +1 -1
  255. package/docs/components/usa-masonry.md +1 -1
  256. package/docs/components/usa-menu-toggle.md +1 -1
  257. package/docs/components/usa-menu.md +1 -1
  258. package/docs/components/usa-message-list.md +1 -1
  259. package/docs/components/usa-milestones.md +1 -1
  260. package/docs/components/usa-modal.md +1 -1
  261. package/docs/components/usa-morph.md +1 -1
  262. package/docs/components/usa-motion-inspector.md +1 -1
  263. package/docs/components/usa-motion-prefs.md +1 -1
  264. package/docs/components/usa-motion-prompt.md +1 -1
  265. package/docs/components/usa-motion-spec.md +1 -1
  266. package/docs/components/usa-motion-switch.md +1 -1
  267. package/docs/components/usa-motion-theme.md +1 -1
  268. package/docs/components/usa-motion.md +1 -1
  269. package/docs/components/usa-music-player.md +1 -1
  270. package/docs/components/usa-native-preview.md +1 -1
  271. package/docs/components/usa-nav-morph.md +1 -1
  272. package/docs/components/usa-navbar.md +1 -1
  273. package/docs/components/usa-notification-bell.md +1 -1
  274. package/docs/components/usa-odometer.md +1 -1
  275. package/docs/components/usa-organic-card.md +1 -1
  276. package/docs/components/usa-otp.md +1 -1
  277. package/docs/components/usa-overscroll.md +1 -1
  278. package/docs/components/usa-pack.md +1 -1
  279. package/docs/components/usa-pagination.md +1 -1
  280. package/docs/components/usa-panorama.md +1 -1
  281. package/docs/components/usa-parallax-layers.md +1 -1
  282. package/docs/components/usa-particles.md +1 -1
  283. package/docs/components/usa-pause-all.md +1 -1
  284. package/docs/components/usa-perf-monitor.md +1 -1
  285. package/docs/components/usa-physics-playground.md +6 -6
  286. package/docs/components/usa-pinch-zoom.md +1 -1
  287. package/docs/components/usa-player.md +1 -1
  288. package/docs/components/usa-plugin-card.md +4 -4
  289. package/docs/components/usa-plugin-store.md +1 -1
  290. package/docs/components/usa-popover.md +1 -1
  291. package/docs/components/usa-post-fx.md +1 -1
  292. package/docs/components/usa-presence.md +1 -1
  293. package/docs/components/usa-press.md +1 -1
  294. package/docs/components/usa-prize-wheel.md +1 -1
  295. package/docs/components/usa-product-gallery.md +1 -1
  296. package/docs/components/usa-progress-ring.md +1 -1
  297. package/docs/components/usa-progress.md +1 -1
  298. package/docs/components/usa-prop-panel.md +1 -1
  299. package/docs/components/usa-pull-cord.md +1 -1
  300. package/docs/components/usa-pull-refresh.md +1 -1
  301. package/docs/components/usa-radar.md +1 -1
  302. package/docs/components/usa-reactions.md +1 -1
  303. package/docs/components/usa-red-envelope.md +1 -1
  304. package/docs/components/usa-retro-button.md +1 -1
  305. package/docs/components/usa-reveal.md +1 -1
  306. package/docs/components/usa-ripple.md +1 -1
  307. package/docs/components/usa-rive.md +3 -3
  308. package/docs/components/usa-route-transition.md +1 -1
  309. package/docs/components/usa-scene.md +1 -1
  310. package/docs/components/usa-scramble.md +1 -1
  311. package/docs/components/usa-scroll-highlight.md +1 -1
  312. package/docs/components/usa-scroll-progress.md +1 -1
  313. package/docs/components/usa-scroll-ring.md +1 -1
  314. package/docs/components/usa-scroll-scene.md +5 -5
  315. package/docs/components/usa-scrolly.md +1 -1
  316. package/docs/components/usa-segmented.md +1 -1
  317. package/docs/components/usa-shader-backdrop.md +1 -1
  318. package/docs/components/usa-shader.md +1 -1
  319. package/docs/components/usa-sheet.md +1 -1
  320. package/docs/components/usa-shimmer-text.md +1 -1
  321. package/docs/components/usa-shortcut.md +1 -1
  322. package/docs/components/usa-skeleton-reveal.md +1 -1
  323. package/docs/components/usa-skeleton.md +1 -1
  324. package/docs/components/usa-sketch-chart.md +1 -1
  325. package/docs/components/usa-slider.md +1 -1
  326. package/docs/components/usa-smooth-scroll.md +5 -5
  327. package/docs/components/usa-snap-carousel.md +5 -5
  328. package/docs/components/usa-sparkline.md +1 -1
  329. package/docs/components/usa-spatial-card.md +1 -1
  330. package/docs/components/usa-spinner.md +1 -1
  331. package/docs/components/usa-splash.md +1 -1
  332. package/docs/components/usa-split-text.md +1 -1
  333. package/docs/components/usa-spotlight.md +1 -1
  334. package/docs/components/usa-spring.md +1 -1
  335. package/docs/components/usa-stagger.md +1 -1
  336. package/docs/components/usa-star-rating.md +1 -1
  337. package/docs/components/usa-stepper.md +1 -1
  338. package/docs/components/usa-sticky-stack.md +1 -1
  339. package/docs/components/usa-sticky-wall.md +1 -1
  340. package/docs/components/usa-stories.md +1 -1
  341. package/docs/components/usa-story.md +1 -1
  342. package/docs/components/usa-suggestion-chips.md +1 -1
  343. package/docs/components/usa-swipe-deck.md +1 -1
  344. package/docs/components/usa-swipeable.md +1 -1
  345. package/docs/components/usa-switch.md +1 -1
  346. package/docs/components/usa-tab-bar.md +1 -1
  347. package/docs/components/usa-tabs.md +1 -1
  348. package/docs/components/usa-terminal.md +1 -1
  349. package/docs/components/usa-text-rotate.md +1 -1
  350. package/docs/components/usa-text-splitter.md +5 -5
  351. package/docs/components/usa-theme-surface.md +1 -1
  352. package/docs/components/usa-theme-switcher.md +1 -1
  353. package/docs/components/usa-tilt.md +1 -1
  354. package/docs/components/usa-timeline.md +1 -1
  355. package/docs/components/usa-tip.md +1 -1
  356. package/docs/components/usa-toast-stack.md +1 -1
  357. package/docs/components/usa-toaster.md +1 -1
  358. package/docs/components/usa-token-editor.md +1 -1
  359. package/docs/components/usa-typewriter.md +1 -1
  360. package/docs/components/usa-upload-progress.md +1 -1
  361. package/docs/components/usa-video-card.md +1 -1
  362. package/docs/components/usa-view-switch.md +1 -1
  363. package/docs/components/usa-voice-button.md +1 -1
  364. package/docs/components/usa-volume-knob.md +1 -1
  365. package/docs/components/usa-water-ripple.md +1 -1
  366. package/docs/components/usa-wave-text.md +1 -1
  367. package/docs/components/usa-weather-card.md +1 -1
  368. package/docs/components/usa-worker-canvas.md +1 -1
  369. package/docs/components/usa-xp-bar.md +1 -1
  370. package/docs/components.md +49 -49
  371. package/docs/deprecations.md +2 -0
  372. package/docs/entry-points.md +1 -2
  373. package/docs/runtime/core.md +2 -2
  374. package/docs/runtime/drag-snap.md +3 -3
  375. package/docs/runtime/format-apng.md +3 -3
  376. package/docs/runtime/format-css.md +3 -3
  377. package/docs/runtime/format-gif.md +3 -3
  378. package/docs/runtime/format-gltf.md +3 -3
  379. package/docs/runtime/format-motion.md +3 -3
  380. package/docs/runtime/format-obj.md +3 -3
  381. package/docs/runtime/format-scene.md +3 -3
  382. package/docs/runtime/format-sprite.md +3 -3
  383. package/docs/runtime/format-svg.md +3 -3
  384. package/docs/runtime/format-webp.md +3 -3
  385. package/docs/runtime/gl.md +3 -3
  386. package/docs/runtime/gltf-anim.md +3 -3
  387. package/docs/runtime/gltf-decoders.md +3 -3
  388. package/docs/runtime/lottie-state.md +3 -3
  389. package/docs/runtime/physics.md +3 -3
  390. package/docs/runtime/scroll.md +3 -3
  391. package/docs/runtime/smooth.md +3 -3
  392. package/docs/runtime/text.md +3 -3
  393. package/docs/runtime/vector.md +3 -3
  394. package/docs/upgrading-11.md +2 -2
  395. package/package.json +1 -11
  396. package/dist/chunks/three-scene-BFZnZuqp.cjs.map +0 -1
  397. package/dist/chunks/three-scene-DibsZUID.js.map +0 -1
  398. package/dist/chunks/worker-canvas-Bkwd1euX.js.map +0 -1
  399. package/dist/chunks/worker-canvas-Ckc3R2Ye.cjs.map +0 -1
  400. package/dist/widgets/three-scene.cjs +0 -11
  401. package/dist/widgets/three-scene.cjs.map +0 -1
  402. package/dist/widgets/three-scene.d.cts +0 -2
  403. package/dist/widgets/three-scene.d.ts +0 -2
  404. package/dist/widgets/three-scene.js +0 -5
  405. package/dist/widgets/three-scene.js.map +0 -1
  406. package/docs/components/usa-three-scene.md +0 -20
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var registry = require('../chunks/registry-xGDPpmX2.cjs');
3
+ var registry = require('../chunks/registry-uaO8pDKn.cjs');
4
4
 
5
5
  /**
6
6
  * `motionary/runtime/drag-snap` (10.8) — pointer drag with inertia and snap
@@ -1,4 +1,4 @@
1
- import { R as RUNTIME_VERSION, r as requireModule } from '../chunks/registry-RJYrdUTF.js';
1
+ import { R as RUNTIME_VERSION, r as requireModule } from '../chunks/registry-W7pXOwju.js';
2
2
 
3
3
  /**
4
4
  * `motionary/runtime/drag-snap` (10.8) — pointer drag with inertia and snap
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var registry = require('../chunks/registry-xGDPpmX2.cjs');
4
- var animImage = require('../chunks/anim-image-D1JZ7wOU.cjs');
5
- require('../chunks/tween-BHbiOBWO.cjs');
6
- require('../chunks/ticker-DJuzcy1_.cjs');
3
+ var registry = require('../chunks/registry-uaO8pDKn.cjs');
4
+ var animImage = require('../chunks/anim-image-DVv_vtbG.cjs');
5
+ require('../chunks/tween-Df87h-1G.cjs');
6
+ require('../chunks/ticker-nshSbZ-Q.cjs');
7
7
  require('../chunks/ease-HwYZnZat.cjs');
8
8
 
9
9
  /**
@@ -1,7 +1,7 @@
1
- import { R as RUNTIME_VERSION } from '../chunks/registry-RJYrdUTF.js';
2
- import { a as animatedImagePlayer, b as browserDecode, c as composeFrames, d as bytesOf, u as u8, f as fixDelay, e as crc32 } from '../chunks/anim-image-CnZDYmtv.js';
3
- import '../chunks/tween-CrnzMeOU.js';
4
- import '../chunks/ticker-C4VkAL4Y.js';
1
+ import { R as RUNTIME_VERSION } from '../chunks/registry-W7pXOwju.js';
2
+ import { a as animatedImagePlayer, b as browserDecode, c as composeFrames, d as bytesOf, u as u8, f as fixDelay, e as crc32 } from '../chunks/anim-image-Btw3j5Qb.js';
3
+ import '../chunks/tween-WepVA7id.js';
4
+ import '../chunks/ticker-D0qF_rV_.js';
5
5
  import '../chunks/ease-XN8_0sXu.js';
6
6
 
7
7
  /**
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var registry = require('../chunks/registry-xGDPpmX2.cjs');
4
- var keyframes = require('../chunks/keyframes-uYSI-do7.cjs');
5
- require('../chunks/tween-BHbiOBWO.cjs');
6
- require('../chunks/ticker-DJuzcy1_.cjs');
3
+ var registry = require('../chunks/registry-uaO8pDKn.cjs');
4
+ var keyframes = require('../chunks/keyframes-4rb2WShh.cjs');
5
+ require('../chunks/tween-Df87h-1G.cjs');
6
+ require('../chunks/ticker-nshSbZ-Q.cjs');
7
7
  require('../chunks/ease-HwYZnZat.cjs');
8
8
 
9
9
  /**
@@ -1,7 +1,7 @@
1
- import { R as RUNTIME_VERSION } from '../chunks/registry-RJYrdUTF.js';
2
- import { f as framesToTimeline, d as distributeOffsets, c as camelProp } from '../chunks/keyframes-CLoYRGjR.js';
3
- import '../chunks/tween-CrnzMeOU.js';
4
- import '../chunks/ticker-C4VkAL4Y.js';
1
+ import { R as RUNTIME_VERSION } from '../chunks/registry-W7pXOwju.js';
2
+ import { f as framesToTimeline, d as distributeOffsets, c as camelProp } from '../chunks/keyframes-C9poRyzF.js';
3
+ import '../chunks/tween-WepVA7id.js';
4
+ import '../chunks/ticker-D0qF_rV_.js';
5
5
  import '../chunks/ease-XN8_0sXu.js';
6
6
 
7
7
  /**
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var registry = require('../chunks/registry-xGDPpmX2.cjs');
4
- var animImage = require('../chunks/anim-image-D1JZ7wOU.cjs');
5
- require('../chunks/tween-BHbiOBWO.cjs');
6
- require('../chunks/ticker-DJuzcy1_.cjs');
3
+ var registry = require('../chunks/registry-uaO8pDKn.cjs');
4
+ var animImage = require('../chunks/anim-image-DVv_vtbG.cjs');
5
+ require('../chunks/tween-Df87h-1G.cjs');
6
+ require('../chunks/ticker-nshSbZ-Q.cjs');
7
7
  require('../chunks/ease-HwYZnZat.cjs');
8
8
 
9
9
  /**
@@ -1,7 +1,7 @@
1
- import { R as RUNTIME_VERSION } from '../chunks/registry-RJYrdUTF.js';
2
- import { a as animatedImagePlayer, u as u8, c as composeFrames, d as bytesOf, f as fixDelay } from '../chunks/anim-image-CnZDYmtv.js';
3
- import '../chunks/tween-CrnzMeOU.js';
4
- import '../chunks/ticker-C4VkAL4Y.js';
1
+ import { R as RUNTIME_VERSION } from '../chunks/registry-W7pXOwju.js';
2
+ import { a as animatedImagePlayer, u as u8, c as composeFrames, d as bytesOf, f as fixDelay } from '../chunks/anim-image-Btw3j5Qb.js';
3
+ import '../chunks/tween-WepVA7id.js';
4
+ import '../chunks/ticker-D0qF_rV_.js';
5
5
  import '../chunks/ease-XN8_0sXu.js';
6
6
 
7
7
  /**
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var registry = require('../chunks/registry-xGDPpmX2.cjs');
3
+ var registry = require('../chunks/registry-uaO8pDKn.cjs');
4
4
  var runtime_gl = require('./gl.cjs');
5
5
 
6
6
  /**
@@ -1,4 +1,4 @@
1
- import { R as RUNTIME_VERSION } from '../chunks/registry-RJYrdUTF.js';
1
+ import { R as RUNTIME_VERSION } from '../chunks/registry-W7pXOwju.js';
2
2
  import { standardMaterial, texture, computeNormals, GlNode } from './gl.js';
3
3
 
4
4
  /**
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var registry = require('../chunks/registry-xGDPpmX2.cjs');
4
- var tween = require('../chunks/tween-BHbiOBWO.cjs');
3
+ var registry = require('../chunks/registry-uaO8pDKn.cjs');
4
+ var tween = require('../chunks/tween-Df87h-1G.cjs');
5
5
  var ease = require('../chunks/ease-HwYZnZat.cjs');
6
- var keyframes = require('../chunks/keyframes-uYSI-do7.cjs');
7
- require('../chunks/ticker-DJuzcy1_.cjs');
6
+ var keyframes = require('../chunks/keyframes-4rb2WShh.cjs');
7
+ require('../chunks/ticker-nshSbZ-Q.cjs');
8
8
 
9
9
  /**
10
10
  * `motionary/runtime/format-motion` (10.1) — play Motion / Framer-style
@@ -1,8 +1,8 @@
1
- import { R as RUNTIME_VERSION } from '../chunks/registry-RJYrdUTF.js';
2
- import { T as Timeline } from '../chunks/tween-CrnzMeOU.js';
1
+ import { R as RUNTIME_VERSION } from '../chunks/registry-W7pXOwju.js';
2
+ import { T as Timeline } from '../chunks/tween-WepVA7id.js';
3
3
  import { c as cubicBezier, E as EASES } from '../chunks/ease-XN8_0sXu.js';
4
- import { f as framesToTimeline } from '../chunks/keyframes-CLoYRGjR.js';
5
- import '../chunks/ticker-C4VkAL4Y.js';
4
+ import { f as framesToTimeline } from '../chunks/keyframes-C9poRyzF.js';
5
+ import '../chunks/ticker-D0qF_rV_.js';
6
6
 
7
7
  /**
8
8
  * `motionary/runtime/format-motion` (10.1) — play Motion / Framer-style
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var registry = require('../chunks/registry-xGDPpmX2.cjs');
3
+ var registry = require('../chunks/registry-uaO8pDKn.cjs');
4
4
  var runtime_gl = require('./gl.cjs');
5
5
 
6
6
  /**
@@ -1,4 +1,4 @@
1
- import { R as RUNTIME_VERSION } from '../chunks/registry-RJYrdUTF.js';
1
+ import { R as RUNTIME_VERSION } from '../chunks/registry-W7pXOwju.js';
2
2
  import { GlNode, texture, standardMaterial, computeNormals } from './gl.js';
3
3
 
4
4
  /**
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var registry = require('../chunks/registry-xGDPpmX2.cjs');
3
+ var registry = require('../chunks/registry-uaO8pDKn.cjs');
4
4
 
5
5
  /**
6
6
  * `motionary/runtime/format-scene` (10.7) — the versioned scene format
@@ -1,4 +1,4 @@
1
- import { R as RUNTIME_VERSION, r as requireModule } from '../chunks/registry-RJYrdUTF.js';
1
+ import { R as RUNTIME_VERSION, r as requireModule } from '../chunks/registry-W7pXOwju.js';
2
2
 
3
3
  /**
4
4
  * `motionary/runtime/format-scene` (10.7) — the versioned scene format
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var registry = require('../chunks/registry-xGDPpmX2.cjs');
4
- var tween = require('../chunks/tween-BHbiOBWO.cjs');
5
- require('../chunks/ticker-DJuzcy1_.cjs');
3
+ var registry = require('../chunks/registry-uaO8pDKn.cjs');
4
+ var tween = require('../chunks/tween-Df87h-1G.cjs');
5
+ require('../chunks/ticker-nshSbZ-Q.cjs');
6
6
  require('../chunks/ease-HwYZnZat.cjs');
7
7
 
8
8
  /**
@@ -1,6 +1,6 @@
1
- import { R as RUNTIME_VERSION } from '../chunks/registry-RJYrdUTF.js';
2
- import { P as Playable } from '../chunks/tween-CrnzMeOU.js';
3
- import '../chunks/ticker-C4VkAL4Y.js';
1
+ import { R as RUNTIME_VERSION } from '../chunks/registry-W7pXOwju.js';
2
+ import { P as Playable } from '../chunks/tween-WepVA7id.js';
3
+ import '../chunks/ticker-D0qF_rV_.js';
4
4
  import '../chunks/ease-XN8_0sXu.js';
5
5
 
6
6
  /**
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var registry = require('../chunks/registry-xGDPpmX2.cjs');
4
- var tween = require('../chunks/tween-BHbiOBWO.cjs');
3
+ var registry = require('../chunks/registry-uaO8pDKn.cjs');
4
+ var tween = require('../chunks/tween-Df87h-1G.cjs');
5
5
  var ease = require('../chunks/ease-HwYZnZat.cjs');
6
- require('../chunks/ticker-DJuzcy1_.cjs');
6
+ require('../chunks/ticker-nshSbZ-Q.cjs');
7
7
 
8
8
  /**
9
9
  * `motionary/runtime/format-svg` (10.2) — SVG animation with the runtime
@@ -1,7 +1,7 @@
1
- import { R as RUNTIME_VERSION } from '../chunks/registry-RJYrdUTF.js';
2
- import { T as Timeline, P as Playable, p as parseValue } from '../chunks/tween-CrnzMeOU.js';
1
+ import { R as RUNTIME_VERSION } from '../chunks/registry-W7pXOwju.js';
2
+ import { T as Timeline, P as Playable, p as parseValue } from '../chunks/tween-WepVA7id.js';
3
3
  import { c as cubicBezier } from '../chunks/ease-XN8_0sXu.js';
4
- import '../chunks/ticker-C4VkAL4Y.js';
4
+ import '../chunks/ticker-D0qF_rV_.js';
5
5
 
6
6
  /**
7
7
  * `motionary/runtime/format-svg` (10.2) — SVG animation with the runtime
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var registry = require('../chunks/registry-xGDPpmX2.cjs');
4
- var animImage = require('../chunks/anim-image-D1JZ7wOU.cjs');
5
- require('../chunks/tween-BHbiOBWO.cjs');
6
- require('../chunks/ticker-DJuzcy1_.cjs');
3
+ var registry = require('../chunks/registry-uaO8pDKn.cjs');
4
+ var animImage = require('../chunks/anim-image-DVv_vtbG.cjs');
5
+ require('../chunks/tween-Df87h-1G.cjs');
6
+ require('../chunks/ticker-nshSbZ-Q.cjs');
7
7
  require('../chunks/ease-HwYZnZat.cjs');
8
8
 
9
9
  /**
@@ -1,7 +1,7 @@
1
- import { R as RUNTIME_VERSION } from '../chunks/registry-RJYrdUTF.js';
2
- import { a as animatedImagePlayer, b as browserDecode, c as composeFrames, d as bytesOf, u as u8, f as fixDelay } from '../chunks/anim-image-CnZDYmtv.js';
3
- import '../chunks/tween-CrnzMeOU.js';
4
- import '../chunks/ticker-C4VkAL4Y.js';
1
+ import { R as RUNTIME_VERSION } from '../chunks/registry-W7pXOwju.js';
2
+ import { a as animatedImagePlayer, b as browserDecode, c as composeFrames, d as bytesOf, u as u8, f as fixDelay } from '../chunks/anim-image-Btw3j5Qb.js';
3
+ import '../chunks/tween-WepVA7id.js';
4
+ import '../chunks/ticker-D0qF_rV_.js';
5
5
  import '../chunks/ease-XN8_0sXu.js';
6
6
 
7
7
  /**
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var registry = require('../chunks/registry-xGDPpmX2.cjs');
3
+ var registry = require('../chunks/registry-uaO8pDKn.cjs');
4
4
 
5
5
  /**
6
6
  * `motionary/runtime/gl` (10.5) — a small WebGL2 scene renderer written for
@@ -1,4 +1,4 @@
1
- import { R as RUNTIME_VERSION } from '../chunks/registry-RJYrdUTF.js';
1
+ import { R as RUNTIME_VERSION } from '../chunks/registry-W7pXOwju.js';
2
2
 
3
3
  /**
4
4
  * `motionary/runtime/gl` (10.5) — a small WebGL2 scene renderer written for
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var registry = require('../chunks/registry-xGDPpmX2.cjs');
3
+ var registry = require('../chunks/registry-uaO8pDKn.cjs');
4
4
  var runtime_gl = require('./gl.cjs');
5
5
 
6
6
  /**
@@ -1,4 +1,4 @@
1
- import { R as RUNTIME_VERSION, r as requireModule } from '../chunks/registry-RJYrdUTF.js';
1
+ import { R as RUNTIME_VERSION, r as requireModule } from '../chunks/registry-W7pXOwju.js';
2
2
  import { mat4, quatSlerp } from './gl.js';
3
3
 
4
4
  /**
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var registry = require('../chunks/registry-xGDPpmX2.cjs');
3
+ var registry = require('../chunks/registry-uaO8pDKn.cjs');
4
4
 
5
5
  /**
6
6
  * `motionary/runtime/gltf-decoders` (10.9) — hooks that let
@@ -1,4 +1,4 @@
1
- import { R as RUNTIME_VERSION } from '../chunks/registry-RJYrdUTF.js';
1
+ import { R as RUNTIME_VERSION } from '../chunks/registry-W7pXOwju.js';
2
2
 
3
3
  /**
4
4
  * `motionary/runtime/gltf-decoders` (10.9) — hooks that let
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var registry = require('../chunks/registry-xGDPpmX2.cjs');
3
+ var registry = require('../chunks/registry-uaO8pDKn.cjs');
4
4
 
5
5
  /**
6
6
  * `motionary/runtime/lottie-state` (10.9) — dotLottie **themes** (slots) and a
@@ -1,4 +1,4 @@
1
- import { R as RUNTIME_VERSION } from '../chunks/registry-RJYrdUTF.js';
1
+ import { R as RUNTIME_VERSION } from '../chunks/registry-W7pXOwju.js';
2
2
 
3
3
  /**
4
4
  * `motionary/runtime/lottie-state` (10.9) — dotLottie **themes** (slots) and a
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var registry = require('../chunks/registry-xGDPpmX2.cjs');
3
+ var registry = require('../chunks/registry-uaO8pDKn.cjs');
4
4
 
5
5
  /**
6
6
  * `motionary/runtime/physics` (10.7) — a small 2D rigid-body engine written
@@ -1,4 +1,4 @@
1
- import { R as RUNTIME_VERSION, r as requireModule } from '../chunks/registry-RJYrdUTF.js';
1
+ import { R as RUNTIME_VERSION, r as requireModule } from '../chunks/registry-W7pXOwju.js';
2
2
 
3
3
  /**
4
4
  * `motionary/runtime/physics` (10.7) — a small 2D rigid-body engine written
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var registry = require('../chunks/registry-xGDPpmX2.cjs');
4
- var ticker = require('../chunks/ticker-DJuzcy1_.cjs');
3
+ var registry = require('../chunks/registry-uaO8pDKn.cjs');
4
+ var ticker = require('../chunks/ticker-nshSbZ-Q.cjs');
5
5
 
6
6
  /**
7
7
  * `motionary/runtime/scroll` (10.2) — scroll-linked scenes, an original
@@ -1,5 +1,5 @@
1
- import { R as RUNTIME_VERSION } from '../chunks/registry-RJYrdUTF.js';
2
- import { g as getTicker } from '../chunks/ticker-C4VkAL4Y.js';
1
+ import { R as RUNTIME_VERSION } from '../chunks/registry-W7pXOwju.js';
2
+ import { g as getTicker } from '../chunks/ticker-D0qF_rV_.js';
3
3
 
4
4
  /**
5
5
  * `motionary/runtime/scroll` (10.2) — scroll-linked scenes, an original
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var registry = require('../chunks/registry-xGDPpmX2.cjs');
3
+ var registry = require('../chunks/registry-uaO8pDKn.cjs');
4
4
  var ease = require('../chunks/ease-HwYZnZat.cjs');
5
5
 
6
6
  /**
@@ -1,4 +1,4 @@
1
- import { R as RUNTIME_VERSION, r as requireModule } from '../chunks/registry-RJYrdUTF.js';
1
+ import { R as RUNTIME_VERSION, r as requireModule } from '../chunks/registry-W7pXOwju.js';
2
2
  import { p as parseEase } from '../chunks/ease-XN8_0sXu.js';
3
3
 
4
4
  /**
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var registry = require('../chunks/registry-xGDPpmX2.cjs');
3
+ var registry = require('../chunks/registry-uaO8pDKn.cjs');
4
4
 
5
5
  /**
6
6
  * `motionary/runtime/text` (10.3) — split text into characters, words and
@@ -1,4 +1,4 @@
1
- import { R as RUNTIME_VERSION } from '../chunks/registry-RJYrdUTF.js';
1
+ import { R as RUNTIME_VERSION } from '../chunks/registry-W7pXOwju.js';
2
2
 
3
3
  /**
4
4
  * `motionary/runtime/text` (10.3) — split text into characters, words and
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var registry = require('../chunks/registry-xGDPpmX2.cjs');
4
- var tween = require('../chunks/tween-BHbiOBWO.cjs');
5
- require('../chunks/ticker-DJuzcy1_.cjs');
3
+ var registry = require('../chunks/registry-uaO8pDKn.cjs');
4
+ var tween = require('../chunks/tween-Df87h-1G.cjs');
5
+ require('../chunks/ticker-nshSbZ-Q.cjs');
6
6
  require('../chunks/ease-HwYZnZat.cjs');
7
7
 
8
8
  const ALLOWED = new Set(['time', 'value', 'thisComp', 'thisLayer', 'thisProperty', 'Math', 'wiggle', 'loopOut', 'loopIn', 'loopOutDuration', 'loopInDuration', 'linear', 'ease', 'easeIn', 'easeOut', 'clamp', 'valueAtTime', 'framesToTime', 'timeToFrames', 'degreesToRadians', 'radiansToDegrees', 'add', 'sub', 'mul', 'div', 'length', 'true', 'false', '$bm_rt', 'index']);
@@ -335,7 +335,8 @@ function expression(src) {
335
335
  * - keyframes: bezier easing per dimension, hold keyframes, v4 (`e`) and v5+
336
336
  * (`s` only) files;
337
337
  * - **dotLottie** (`.lottie`): zip (stored + deflate via the native
338
- * `DecompressionStream`), `manifest.json` v1 / v2, several animations,
338
+ * `DecompressionStream`; 11.0: entry-count / size / ratio limits enforced
339
+ * while inflating — `ZipLimits`, `ZIP_LIMITS`), `manifest.json` v1 / v2, several animations,
339
340
  * embedded images.
340
341
  *
341
342
  * 10.8: **text layers** (system / web fonts by family + style, justification,
@@ -938,8 +939,11 @@ function inspectLottie(anim) {
938
939
  u.add('glyph outlines (chars): drawn with system fonts');
939
940
  return { layers: anim.layers.length, unsupported: [...u] };
940
941
  }
942
+ const ZIP_LIMITS = { maxEntries: 1000, maxEntryBytes: 32 << 20, maxTotalBytes: 64 << 20, maxRatio: 100 };
943
+ const zipErr = (m) => new Error(`[motionary] vector: zip limit exceeded — ${m} (see ZipLimits)`);
941
944
  /** Read a zip archive's entries (central directory; stored + deflate). Pure; inflating uses `DecompressionStream`. */
942
- function unzipEntries(input) {
945
+ function unzipEntries(input, limits = {}) {
946
+ const L = { ...ZIP_LIMITS, ...limits };
943
947
  const b = input instanceof Uint8Array ? input : new Uint8Array(input);
944
948
  const v = new DataView(b.buffer, b.byteOffset, b.byteLength);
945
949
  let e = b.length - 22;
@@ -948,36 +952,79 @@ function unzipEntries(input) {
948
952
  if (e < 0)
949
953
  throw new Error('[motionary] vector: not a zip / .lottie file');
950
954
  const count = v.getUint16(e + 10, true);
955
+ if (count > L.maxEntries)
956
+ throw zipErr(`${count} entries > maxEntries ${L.maxEntries}`);
951
957
  let p = v.getUint32(e + 16, true);
952
958
  const out = [];
953
- for (let i = 0; i < count; i++) {
959
+ for (let i = 0; i < count && p + 46 <= b.length; i++) {
954
960
  if (v.getUint32(p, true) !== 0x02014b50)
955
961
  break;
956
- const method = v.getUint16(p + 10, true), csize = v.getUint32(p + 20, true), nlen = v.getUint16(p + 28, true), xlen = v.getUint16(p + 30, true), clen = v.getUint16(p + 32, true), lho = v.getUint32(p + 42, true);
962
+ const method = v.getUint16(p + 10, true), csize = v.getUint32(p + 20, true), size = v.getUint32(p + 24, true), nlen = v.getUint16(p + 28, true), xlen = v.getUint16(p + 30, true), clen = v.getUint16(p + 32, true), lho = v.getUint32(p + 42, true);
957
963
  const name = new TextDecoder().decode(b.subarray(p + 46, p + 46 + nlen));
964
+ if (size > L.maxEntryBytes)
965
+ throw zipErr(`${name}: ${size} bytes > maxEntryBytes ${L.maxEntryBytes}`);
966
+ if (lho + 30 > b.length)
967
+ throw new Error('[motionary] vector: corrupt zip (' + name + ')');
958
968
  const lnl = v.getUint16(lho + 26, true), lxl = v.getUint16(lho + 28, true);
959
969
  const start = lho + 30 + lnl + lxl;
960
- out.push({ name, method, data: b.subarray(start, start + csize) });
970
+ out.push({ name, method, size, data: b.subarray(start, start + csize) });
961
971
  p += 46 + nlen + xlen + clen;
962
972
  }
963
973
  return out;
964
974
  }
965
- async function inflate(e) {
966
- if (e.method === 0)
975
+ /** Inflate one entry, counting the real output against `limits`; `used` is shared across one archive. */
976
+ async function inflateEntry(e, limits = {}, used = { total: 0 }) {
977
+ const L = { ...ZIP_LIMITS, ...limits };
978
+ const check = (n) => {
979
+ if (n > L.maxEntryBytes)
980
+ throw zipErr(`${e.name}: > maxEntryBytes ${L.maxEntryBytes}`);
981
+ if (used.total + n > L.maxTotalBytes)
982
+ throw zipErr(`archive > maxTotalBytes ${L.maxTotalBytes}`);
983
+ if (n > 1 << 20 && n > Math.max(1, e.data.length) * L.maxRatio)
984
+ throw zipErr(`${e.name}: compression ratio > maxRatio ${L.maxRatio}`);
985
+ };
986
+ if (e.method === 0) {
987
+ check(e.data.length);
988
+ used.total += e.data.length;
967
989
  return e.data;
990
+ }
968
991
  if (e.method !== 8)
969
992
  throw new Error(`[motionary] vector: zip method ${e.method} unsupported (${e.name})`);
970
993
  const DS = globalThis.DecompressionStream;
971
994
  if (!DS)
972
995
  throw new Error('[motionary] vector: DecompressionStream is missing — cannot inflate .lottie entries here');
973
- const s = new Response(e.data).body.pipeThrough(new DS('deflate-raw'));
974
- return new Uint8Array(await new Response(s).arrayBuffer());
996
+ const r = new Response(e.data).body.pipeThrough(new DS('deflate-raw')).getReader();
997
+ const parts = [];
998
+ let n = 0;
999
+ for (;;) {
1000
+ const { done, value } = await r.read();
1001
+ if (done)
1002
+ break;
1003
+ n += value.length;
1004
+ try {
1005
+ check(n);
1006
+ }
1007
+ catch (err) {
1008
+ r.cancel().catch(() => undefined);
1009
+ throw err;
1010
+ }
1011
+ parts.push(value);
1012
+ }
1013
+ used.total += n;
1014
+ const out = new Uint8Array(n);
1015
+ let o = 0;
1016
+ for (const x of parts)
1017
+ out.set(x, (o += x.length) - x.length);
1018
+ return out;
975
1019
  }
976
- /** Unpack a `.lottie` (dotLottie v1 or v2). */
977
- async function parseDotLottie(input) {
978
- const entries = unzipEntries(input);
1020
+ /** Unpack a `.lottie` (dotLottie v1 or v2). 11.0: `limits` (zip-bomb protection, safe defaults in `ZIP_LIMITS`). */
1021
+ async function parseDotLottie(input, o = {}) {
1022
+ const entries = unzipEntries(input, o.limits);
979
1023
  const files = {};
980
- await Promise.all(entries.filter((e) => !e.name.endsWith('/')).map(async (e) => (files[e.name.replace(/^\.?\//, '')] = await inflate(e))));
1024
+ const used = { total: 0 };
1025
+ for (const e of entries)
1026
+ if (!e.name.endsWith('/'))
1027
+ files[e.name.replace(/^\.?\//, '')] = await inflateEntry(e, o.limits, used);
981
1028
  const td = new TextDecoder();
982
1029
  const json = (n) => JSON.parse(td.decode(files[n]));
983
1030
  const manifest = files['manifest.json'] ? json('manifest.json') : { animations: [] };
@@ -1027,7 +1074,7 @@ async function loadLottie(src, o = {}) {
1027
1074
  else
1028
1075
  bytes = src instanceof Uint8Array ? src : new Uint8Array(src);
1029
1076
  if (bytes[0] === 0x50 && bytes[1] === 0x4b) {
1030
- const dl = await parseDotLottie(bytes);
1077
+ const dl = await parseDotLottie(bytes, { limits: o.limits });
1031
1078
  const ids = Object.keys(dl.animations);
1032
1079
  const want = o.animation || dl.manifest.activeAnimationId || dl.manifest.animations?.[0]?.id || ids[0];
1033
1080
  const animation = dl.animations[want] || dl.animations[ids[0]];
@@ -1099,7 +1146,9 @@ function evalExpression(src, value, time = 0, fr = 30) {
1099
1146
  /** The module object for `use(vector)`. */
1100
1147
  const vector = { id: 'vector', version: registry.RUNTIME_VERSION, requires: ['core'], api: { evalExpression, loadLottie, parseDotLottie, unzipEntries, lottiePlayer, renderLottieFrame, inspectLottie, propValue, transformAt, trimContours, loadLottieImages } };
1101
1148
 
1149
+ exports.ZIP_LIMITS = ZIP_LIMITS;
1102
1150
  exports.evalExpression = evalExpression;
1151
+ exports.inflateEntry = inflateEntry;
1103
1152
  exports.inspectLottie = inspectLottie;
1104
1153
  exports.loadLottie = loadLottie;
1105
1154
  exports.loadLottieImages = loadLottieImages;