@weasel-js/ui 1.5.0 → 1.5.1

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 (255) hide show
  1. package/dist/chunks/{ActionBar-DxGp3WuZ.js → ActionBar-GZdcfdQL.js} +1 -2
  2. package/dist/chunks/{ActionBar-DxGp3WuZ.js.map → ActionBar-GZdcfdQL.js.map} +1 -1
  3. package/dist/chunks/{ActionsBar-D1VFreoj.js → ActionsBar-Fhx_40iP.js} +2 -2
  4. package/dist/chunks/{ActionsBar-D1VFreoj.js.map → ActionsBar-Fhx_40iP.js.map} +1 -1
  5. package/dist/chunks/{BandEditor-BeWO56_w.js → BandEditor-D8I5Uun-.js} +93 -98
  6. package/dist/chunks/BandEditor-D8I5Uun-.js.map +1 -0
  7. package/dist/chunks/{Callout-BPIA2is-.js → Callout-cx5_CWcW.js} +1 -1
  8. package/dist/chunks/{Callout-BPIA2is-.js.map → Callout-cx5_CWcW.js.map} +1 -1
  9. package/dist/chunks/{Checkbox-D-pVpobU.js → Checkbox-BZZsPaVF.js} +1 -1
  10. package/dist/chunks/{Checkbox-D-pVpobU.js.map → Checkbox-BZZsPaVF.js.map} +1 -1
  11. package/dist/chunks/{ColorField-C20aRvCg.js → ColorField-YVf8irfr.js} +2 -2
  12. package/dist/chunks/{ColorField-C20aRvCg.js.map → ColorField-YVf8irfr.js.map} +1 -1
  13. package/dist/chunks/{ComboBox-CPES6Y1i.js → ComboBox-D57tNYDD.js} +2 -2
  14. package/dist/chunks/{ComboBox-CPES6Y1i.js.map → ComboBox-D57tNYDD.js.map} +1 -1
  15. package/dist/chunks/{CurveEditor-Cj0lLiyR.js → CurveEditor-BXiMoN9d.js} +175 -175
  16. package/dist/chunks/CurveEditor-BXiMoN9d.js.map +1 -0
  17. package/dist/chunks/DetentSlider-BWNSv07Z.js +72 -0
  18. package/dist/chunks/DetentSlider-BWNSv07Z.js.map +1 -0
  19. package/dist/chunks/{Dialog-CYBLjwbd.js → Dialog-DuOzsR2g.js} +1 -1
  20. package/dist/chunks/{Dialog-CYBLjwbd.js.map → Dialog-DuOzsR2g.js.map} +1 -1
  21. package/dist/chunks/{Disclosure-DiA6UKdM.js → Disclosure-9UgDzc7Z.js} +6 -6
  22. package/dist/chunks/{Disclosure-DiA6UKdM.js.map → Disclosure-9UgDzc7Z.js.map} +1 -1
  23. package/dist/chunks/{Field-dzlxOGxT.js → Field-BNqvUJfg.js} +1 -1
  24. package/dist/chunks/{Field-dzlxOGxT.js.map → Field-BNqvUJfg.js.map} +1 -1
  25. package/dist/chunks/{FontFamilySelect-DIJ4phXz.js → FontFamilySelect-CO19kyOO.js} +2 -2
  26. package/dist/chunks/{FontFamilySelect-DIJ4phXz.js.map → FontFamilySelect-CO19kyOO.js.map} +1 -1
  27. package/dist/chunks/{GradientEditor-dBprHbS0.js → GradientEditor-B_ymIr4Q.js} +74 -51
  28. package/dist/chunks/GradientEditor-B_ymIr4Q.js.map +1 -0
  29. package/dist/chunks/Icon-QhLhaGFe.js +498 -0
  30. package/dist/chunks/Icon-QhLhaGFe.js.map +1 -0
  31. package/dist/chunks/{InlineRange-CcfzY80y.js → InlineRange-DdIlfGqG.js} +2 -2
  32. package/dist/chunks/{InlineRange-CcfzY80y.js.map → InlineRange-DdIlfGqG.js.map} +1 -1
  33. package/dist/chunks/{Input-CoKOtyD0.js → Input-B9Vh7ASP.js} +2 -2
  34. package/dist/chunks/{Input-CoKOtyD0.js.map → Input-B9Vh7ASP.js.map} +1 -1
  35. package/dist/chunks/Jog-BYrxbAQU.js +81 -0
  36. package/dist/chunks/Jog-BYrxbAQU.js.map +1 -0
  37. package/dist/chunks/{Keycaps-DSeq6QWH.js → Keycaps-CGNQV2Pz.js} +5 -5
  38. package/dist/chunks/Keycaps-CGNQV2Pz.js.map +1 -0
  39. package/dist/chunks/{MenuButton-Do8fFUx1.js → MenuButton-DGE-0DP0.js} +1 -1
  40. package/dist/chunks/{MenuButton-Do8fFUx1.js.map → MenuButton-DGE-0DP0.js.map} +1 -1
  41. package/dist/chunks/MeshEditor-CHoGQ9K8.js +123 -0
  42. package/dist/chunks/MeshEditor-CHoGQ9K8.js.map +1 -0
  43. package/dist/chunks/{NumberField-BWzhqS19.js → NumberField-CQzS6TjF.js} +2 -2
  44. package/dist/chunks/{NumberField-BWzhqS19.js.map → NumberField-CQzS6TjF.js.map} +1 -1
  45. package/dist/chunks/{OptionsBar-D_Cd3ZYs.js → OptionsBar-BWaYG_OH.js} +2 -2
  46. package/dist/chunks/{OptionsBar-D_Cd3ZYs.js.map → OptionsBar-BWaYG_OH.js.map} +1 -1
  47. package/dist/chunks/PaintField-BVYMu3OI.js +62 -0
  48. package/dist/chunks/PaintField-BVYMu3OI.js.map +1 -0
  49. package/dist/chunks/PaintInput-BzAHCKro.js +131 -0
  50. package/dist/chunks/PaintInput-BzAHCKro.js.map +1 -0
  51. package/dist/chunks/{PatternPicker-Ba22Bf4L.js → PatternPicker-C4OryrYi.js} +2 -2
  52. package/dist/chunks/{PatternPicker-Ba22Bf4L.js.map → PatternPicker-C4OryrYi.js.map} +1 -1
  53. package/dist/chunks/{Plot2D-CVZwQpWJ.js → Plot2D-Czvyt_vG.js} +1 -1
  54. package/dist/chunks/{Plot2D-CVZwQpWJ.js.map → Plot2D-Czvyt_vG.js.map} +1 -1
  55. package/dist/chunks/{PointPlotter-anTHwz8f.js → PointPlotter-Xvb98GwB.js} +2 -2
  56. package/dist/chunks/{PointPlotter-anTHwz8f.js.map → PointPlotter-Xvb98GwB.js.map} +1 -1
  57. package/dist/chunks/{Powerline-BaHDJlcO.js → Powerline-B_EH-7Z-.js} +1 -1
  58. package/dist/chunks/{Powerline-BaHDJlcO.js.map → Powerline-B_EH-7Z-.js.map} +1 -1
  59. package/dist/chunks/Prefs-FuaJBs3t.js +308 -0
  60. package/dist/chunks/Prefs-FuaJBs3t.js.map +1 -0
  61. package/dist/chunks/Properties-B3KU69NI.js +874 -0
  62. package/dist/chunks/Properties-B3KU69NI.js.map +1 -0
  63. package/dist/chunks/{RadioGroup-B2_LUgDp.js → RadioGroup-C6xpdQNg.js} +2 -2
  64. package/dist/chunks/{RadioGroup-B2_LUgDp.js.map → RadioGroup-C6xpdQNg.js.map} +1 -1
  65. package/dist/chunks/{RangeSlider-S2R3zA8N.js → RangeSlider-CzgeGLVS.js} +1 -1
  66. package/dist/chunks/{RangeSlider-S2R3zA8N.js.map → RangeSlider-CzgeGLVS.js.map} +1 -1
  67. package/dist/chunks/{ResizeHandle-CiExUWP-.js → ResizeHandle-1Ey8AOij.js} +1 -1
  68. package/dist/chunks/{ResizeHandle-CiExUWP-.js.map → ResizeHandle-1Ey8AOij.js.map} +1 -1
  69. package/dist/chunks/{Select-CacMfs4v.js → Select-BMYVh10x.js} +20 -17
  70. package/dist/chunks/Select-BMYVh10x.js.map +1 -0
  71. package/dist/chunks/{SelectionPanel-CbyUT3Dh.js → SelectionPanel-DTpcQidl.js} +12 -12
  72. package/dist/chunks/{SelectionPanel-CbyUT3Dh.js.map → SelectionPanel-DTpcQidl.js.map} +1 -1
  73. package/dist/chunks/{Sidebar-Cqcfx3_s.js → Sidebar-BlUjn8lD.js} +1 -1
  74. package/dist/chunks/{Sidebar-Cqcfx3_s.js.map → Sidebar-BlUjn8lD.js.map} +1 -1
  75. package/dist/chunks/{SidebarPanel-BLzBo0S2.js → SidebarPanel-BqHfz6VK.js} +2 -2
  76. package/dist/chunks/{SidebarPanel-BLzBo0S2.js.map → SidebarPanel-BqHfz6VK.js.map} +1 -1
  77. package/dist/chunks/Slider-B2ywUZH6.js +381 -0
  78. package/dist/chunks/Slider-B2ywUZH6.js.map +1 -0
  79. package/dist/chunks/{StatusBar-B9NQ8atD.js → StatusBar-BFt7Yw5O.js} +1 -1
  80. package/dist/chunks/{StatusBar-B9NQ8atD.js.map → StatusBar-BFt7Yw5O.js.map} +1 -1
  81. package/dist/chunks/{Switch-C4NU-me1.js → Switch-Om3t3ASc.js} +1 -1
  82. package/dist/chunks/{Switch-C4NU-me1.js.map → Switch-Om3t3ASc.js.map} +1 -1
  83. package/dist/chunks/{Tabs-9sODd2Ut.js → Tabs-EAvYywil.js} +1 -1
  84. package/dist/chunks/{Tabs-9sODd2Ut.js.map → Tabs-EAvYywil.js.map} +1 -1
  85. package/dist/chunks/{Timeline-DOZgb1CG.js → Timeline-BEyKaBXl.js} +254 -253
  86. package/dist/chunks/Timeline-BEyKaBXl.js.map +1 -0
  87. package/dist/chunks/{Toast-LpN1WK8E.js → Toast-iqLDD_XZ.js} +1 -1
  88. package/dist/chunks/{Toast-LpN1WK8E.js.map → Toast-iqLDD_XZ.js.map} +1 -1
  89. package/dist/chunks/{ToggleBar-Bxwv6xvj.js → ToggleBar--9As2PWG.js} +8 -8
  90. package/dist/chunks/ToggleBar--9As2PWG.js.map +1 -0
  91. package/dist/chunks/TokenPanel-BL9hlq7x.js +374 -0
  92. package/dist/chunks/TokenPanel-BL9hlq7x.js.map +1 -0
  93. package/dist/chunks/{ToolButton-B81YjdwO.js → ToolButton-Dd-1T5aX.js} +1 -1
  94. package/dist/chunks/{ToolButton-B81YjdwO.js.map → ToolButton-Dd-1T5aX.js.map} +1 -1
  95. package/dist/chunks/{ToolGroup-D7juDOC_.js → ToolGroup-BBI-W-Gm.js} +1 -1
  96. package/dist/chunks/{ToolGroup-D7juDOC_.js.map → ToolGroup-BBI-W-Gm.js.map} +1 -1
  97. package/dist/chunks/{ToolPalette-BSzmRJS7.js → ToolPalette-BmTDDpmz.js} +3 -3
  98. package/dist/chunks/{ToolPalette-BSzmRJS7.js.map → ToolPalette-BmTDDpmz.js.map} +1 -1
  99. package/dist/chunks/{createKeyframeLayer-AL4jP0EX.js → createKeyframeLayer-7j7ukrSx.js} +198 -193
  100. package/dist/chunks/createKeyframeLayer-7j7ukrSx.js.map +1 -0
  101. package/dist/chunks/{icons-BV27dhKB.js → icons-Btrs-JD7.js} +35 -32
  102. package/dist/chunks/icons-Btrs-JD7.js.map +1 -0
  103. package/dist/chunks/range.module-DSsOIq1R.js +8 -0
  104. package/dist/chunks/range.module-DSsOIq1R.js.map +1 -0
  105. package/dist/chunks/{schema-CPdFNeP6.js → schema-MCVT1MLv.js} +1 -1
  106. package/dist/chunks/{schema-CPdFNeP6.js.map → schema-MCVT1MLv.js.map} +1 -1
  107. package/dist/chunks/segmentedControl.module-DmeUMYe3.js +11 -0
  108. package/dist/chunks/segmentedControl.module-DmeUMYe3.js.map +1 -0
  109. package/dist/chunks/snap-B0WQwetQ.js +13 -0
  110. package/dist/chunks/snap-B0WQwetQ.js.map +1 -0
  111. package/dist/components/ActionBar/ActionBar.d.ts.map +1 -1
  112. package/dist/components/ActionBar/index.js +1 -1
  113. package/dist/components/ActionsBar/index.js +1 -1
  114. package/dist/components/BandEditor/BandEditor.d.ts.map +1 -1
  115. package/dist/components/BandEditor/index.js +1 -1
  116. package/dist/components/BandEditor/scale.d.ts +1 -8
  117. package/dist/components/BandEditor/scale.d.ts.map +1 -1
  118. package/dist/components/Callout/index.js +1 -1
  119. package/dist/components/Checkbox/index.js +1 -1
  120. package/dist/components/ColorField/index.js +1 -1
  121. package/dist/components/ComboBox/index.js +1 -1
  122. package/dist/components/CurveEditor/createFunctionLayer.d.ts.map +1 -1
  123. package/dist/components/CurveEditor/createKeyframeLayer.d.ts.map +1 -1
  124. package/dist/components/CurveEditor/index.d.ts +1 -1
  125. package/dist/components/CurveEditor/index.d.ts.map +1 -1
  126. package/dist/components/CurveEditor/index.js +4 -3
  127. package/dist/components/DetentSlider/DetentSlider.d.ts +9 -10
  128. package/dist/components/DetentSlider/DetentSlider.d.ts.map +1 -1
  129. package/dist/components/DetentSlider/index.js +1 -1
  130. package/dist/components/Dialog/index.js +1 -1
  131. package/dist/components/Disclosure/index.js +1 -1
  132. package/dist/components/Field/index.js +1 -1
  133. package/dist/components/FontFamilySelect/index.js +1 -1
  134. package/dist/components/GradientEditor/GradientEditor.d.ts +3 -0
  135. package/dist/components/GradientEditor/GradientEditor.d.ts.map +1 -1
  136. package/dist/components/GradientEditor/index.js +1 -1
  137. package/dist/components/InlineRange/index.js +1 -1
  138. package/dist/components/Input/index.js +1 -1
  139. package/dist/components/Jog/Jog.d.ts +28 -0
  140. package/dist/components/Jog/Jog.d.ts.map +1 -0
  141. package/dist/components/Jog/index.d.ts +3 -0
  142. package/dist/components/Jog/index.d.ts.map +1 -0
  143. package/dist/components/Jog/index.js +2 -0
  144. package/dist/components/Keycaps/index.js +1 -1
  145. package/dist/components/MenuButton/index.js +1 -1
  146. package/dist/components/MeshEditor/MeshEditor.d.ts +30 -0
  147. package/dist/components/MeshEditor/MeshEditor.d.ts.map +1 -0
  148. package/dist/components/MeshEditor/index.d.ts +3 -0
  149. package/dist/components/MeshEditor/index.d.ts.map +1 -0
  150. package/dist/components/MeshEditor/index.js +2 -0
  151. package/dist/components/NumberField/index.js +1 -1
  152. package/dist/components/OptionsBar/index.js +1 -1
  153. package/dist/components/PaintField/PaintField.d.ts +36 -0
  154. package/dist/components/PaintField/PaintField.d.ts.map +1 -0
  155. package/dist/components/PaintField/index.d.ts +3 -0
  156. package/dist/components/PaintField/index.d.ts.map +1 -0
  157. package/dist/components/PaintField/index.js +2 -0
  158. package/dist/components/PaintInput/PaintInput.d.ts.map +1 -1
  159. package/dist/components/PaintInput/index.js +1 -1
  160. package/dist/components/PatternPicker/index.js +1 -1
  161. package/dist/components/Plot2D/index.js +1 -1
  162. package/dist/components/PointPlotter/index.js +1 -1
  163. package/dist/components/Powerline/index.js +1 -1
  164. package/dist/components/Prefs/PrefsForm.d.ts +4 -0
  165. package/dist/components/Prefs/PrefsForm.d.ts.map +1 -1
  166. package/dist/components/Prefs/index.js +2 -2
  167. package/dist/components/Properties/PinDot.d.ts +18 -0
  168. package/dist/components/Properties/PinDot.d.ts.map +1 -0
  169. package/dist/components/Properties/PropertyPanel.d.ts +93 -8
  170. package/dist/components/Properties/PropertyPanel.d.ts.map +1 -1
  171. package/dist/components/Properties/index.d.ts +4 -2
  172. package/dist/components/Properties/index.d.ts.map +1 -1
  173. package/dist/components/Properties/index.js +2 -2
  174. package/dist/components/Properties/storyLayouts.d.ts +1 -1
  175. package/dist/components/RadioGroup/index.js +1 -1
  176. package/dist/components/RangeSlider/index.js +1 -1
  177. package/dist/components/ResizeHandle/index.js +1 -1
  178. package/dist/components/Select/Select.d.ts +8 -0
  179. package/dist/components/Select/Select.d.ts.map +1 -1
  180. package/dist/components/Select/index.js +1 -1
  181. package/dist/components/SelectionPanel/index.js +1 -1
  182. package/dist/components/Sidebar/index.js +1 -1
  183. package/dist/components/SidebarPanel/index.js +1 -1
  184. package/dist/components/Slider/Slider.d.ts +19 -1
  185. package/dist/components/Slider/Slider.d.ts.map +1 -1
  186. package/dist/components/Slider/index.d.ts +1 -1
  187. package/dist/components/Slider/index.d.ts.map +1 -1
  188. package/dist/components/Slider/index.js +1 -1
  189. package/dist/components/StatusBar/index.js +1 -1
  190. package/dist/components/Switch/index.js +1 -1
  191. package/dist/components/Tabs/index.js +1 -1
  192. package/dist/components/Timeline/Lane.d.ts.map +1 -1
  193. package/dist/components/Timeline/index.js +2 -2
  194. package/dist/components/Timeline/keys.d.ts +1 -1
  195. package/dist/components/Timeline/keys.d.ts.map +1 -1
  196. package/dist/components/Toast/index.js +1 -1
  197. package/dist/components/ToggleBar/index.js +1 -1
  198. package/dist/components/TokenPanel/TokenPanel.d.ts +33 -0
  199. package/dist/components/TokenPanel/TokenPanel.d.ts.map +1 -0
  200. package/dist/components/TokenPanel/color.d.ts +7 -0
  201. package/dist/components/TokenPanel/color.d.ts.map +1 -0
  202. package/dist/components/TokenPanel/index.d.ts +5 -0
  203. package/dist/components/TokenPanel/index.d.ts.map +1 -0
  204. package/dist/components/TokenPanel/index.js +2 -0
  205. package/dist/components/TokenPanel/tokenTypes.d.ts +31 -0
  206. package/dist/components/TokenPanel/tokenTypes.d.ts.map +1 -0
  207. package/dist/components/ToolButton/index.js +1 -1
  208. package/dist/components/ToolGroup/index.js +1 -1
  209. package/dist/components/ToolPalette/index.js +1 -1
  210. package/dist/components/paintValue.d.ts +8 -0
  211. package/dist/components/paintValue.d.ts.map +1 -1
  212. package/dist/handles.d.ts +20 -0
  213. package/dist/handles.d.ts.map +1 -0
  214. package/dist/icons/Icon.d.ts +10 -2
  215. package/dist/icons/Icon.d.ts.map +1 -1
  216. package/dist/icons/index.d.ts +6 -3
  217. package/dist/icons/index.d.ts.map +1 -1
  218. package/dist/icons/paths.d.ts +270 -16
  219. package/dist/icons/paths.d.ts.map +1 -1
  220. package/dist/index.d.ts +7 -0
  221. package/dist/index.d.ts.map +1 -1
  222. package/dist/index.js +75 -70
  223. package/dist/index.js.map +1 -1
  224. package/dist/paintPreview.d.ts +13 -0
  225. package/dist/paintPreview.d.ts.map +1 -0
  226. package/dist/{components/CurveEditor/snap.d.ts → snap.d.ts} +2 -0
  227. package/dist/snap.d.ts.map +1 -0
  228. package/dist/style.css +1 -1
  229. package/package.json +8 -7
  230. package/dist/chunks/BandEditor-BeWO56_w.js.map +0 -1
  231. package/dist/chunks/CurveEditor-Cj0lLiyR.js.map +0 -1
  232. package/dist/chunks/DetentSlider-CYicfnKr.js +0 -83
  233. package/dist/chunks/DetentSlider-CYicfnKr.js.map +0 -1
  234. package/dist/chunks/GradientEditor-dBprHbS0.js.map +0 -1
  235. package/dist/chunks/Icon-DBXtBB1f.js +0 -101
  236. package/dist/chunks/Icon-DBXtBB1f.js.map +0 -1
  237. package/dist/chunks/Keycaps-DSeq6QWH.js.map +0 -1
  238. package/dist/chunks/PaintInput-DAevU7fd.js +0 -118
  239. package/dist/chunks/PaintInput-DAevU7fd.js.map +0 -1
  240. package/dist/chunks/Prefs-CzIn-hlq.js +0 -302
  241. package/dist/chunks/Prefs-CzIn-hlq.js.map +0 -1
  242. package/dist/chunks/Properties-DJaDEJkT.js +0 -765
  243. package/dist/chunks/Properties-DJaDEJkT.js.map +0 -1
  244. package/dist/chunks/Select-CacMfs4v.js.map +0 -1
  245. package/dist/chunks/Slider--DFRC_hc.js +0 -303
  246. package/dist/chunks/Slider--DFRC_hc.js.map +0 -1
  247. package/dist/chunks/Timeline-DOZgb1CG.js.map +0 -1
  248. package/dist/chunks/ToggleBar-Bxwv6xvj.js.map +0 -1
  249. package/dist/chunks/createKeyframeLayer-AL4jP0EX.js.map +0 -1
  250. package/dist/chunks/icons-BV27dhKB.js.map +0 -1
  251. package/dist/chunks/range.module-CvSfABmu.js +0 -8
  252. package/dist/chunks/range.module-CvSfABmu.js.map +0 -1
  253. package/dist/chunks/segmentedControl.module-BgvAPkSZ.js +0 -11
  254. package/dist/chunks/segmentedControl.module-BgvAPkSZ.js.map +0 -1
  255. package/dist/components/CurveEditor/snap.d.ts.map +0 -1
@@ -1,45 +1,46 @@
1
- import { H as e, R as t, i as n } from "./icons-BV27dhKB.js";
2
- import { r } from "./Plot2D-CVZwQpWJ.js";
3
- import { a as i, i as a, n as o, t as s } from "./createKeyframeLayer-AL4jP0EX.js";
4
- import { t as c } from "./DetentSlider-CYicfnKr.js";
1
+ import { H as e, R as t, i as n } from "./icons-Btrs-JD7.js";
2
+ import { r } from "./Plot2D-Czvyt_vG.js";
3
+ import { i, n as a, t as o } from "./createKeyframeLayer-7j7ukrSx.js";
4
+ import { t as s } from "./snap-B0WQwetQ.js";
5
+ import { t as c } from "./DetentSlider-BWNSv07Z.js";
5
6
  import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
6
7
  import { EASINGS as f, openPointerSession as p, resolveEasing as m, sampleTrack as h, useVisibleRaf as g } from "@weasel-js/core";
7
8
  import { useCallback as _, useEffect as v, useLayoutEffect as y, useMemo as b, useReducer as x, useRef as S, useState as C } from "react";
8
9
  var w = {
9
- ruler: "_ruler_1s0c6_1",
10
- tick: "_tick_1s0c6_11",
11
- playhead: "_playhead_1s0c6_29",
12
- lane: "_lane_1s0c6_38",
13
- laneLabel: "_laneLabel_1s0c6_45",
14
- disclosure: "_disclosure_1s0c6_65",
15
- disclosureIcon: "_disclosureIcon_1s0c6_66",
16
- disclosureCollapsed: "_disclosureCollapsed_1s0c6_67",
17
- laneTrack: "_laneTrack_1s0c6_69",
18
- key: "_key_1s0c6_76",
19
- eventMark: "_eventMark_1s0c6_76",
20
- keyGhost: "_keyGhost_1s0c6_96",
21
- eventGhost: "_eventGhost_1s0c6_96",
22
- graphHost: "_graphHost_1s0c6_113",
23
- graph: "_graph_1s0c6_113",
24
- nestedBar: "_nestedBar_1s0c6_132",
25
- transport: "_transport_1s0c6_141",
26
- transportButton: "_transportButton_1s0c6_150",
27
- transportRow: "_transportRow_1s0c6_176",
28
- time: "_time_1s0c6_191",
29
- rate: "_rate_1s0c6_192",
30
- rateSlider: "_rateSlider_1s0c6_193",
31
- rateReadout: "_rateReadout_1s0c6_197",
32
- root: "_root_1s0c6_203",
33
- label: "_label_1s0c6_218",
34
- body: "_body_1s0c6_220",
35
- gutter: "_gutter_1s0c6_46",
36
- rulerWrap: "_rulerWrap_1s0c6_222",
37
- lanes: "_lanes_1s0c6_224",
38
- inspector: "_inspector_1s0c6_231",
39
- segment: "_segment_1s0c6_240",
40
- easingPicker: "_easingPicker_1s0c6_250",
41
- easingLabel: "_easingLabel_1s0c6_251",
42
- easingPreview: "_easingPreview_1s0c6_253"
10
+ ruler: "_ruler_v2h5a_1",
11
+ tick: "_tick_v2h5a_11",
12
+ playhead: "_playhead_v2h5a_29",
13
+ lane: "_lane_v2h5a_38",
14
+ laneLabel: "_laneLabel_v2h5a_45",
15
+ disclosure: "_disclosure_v2h5a_65",
16
+ disclosureIcon: "_disclosureIcon_v2h5a_66",
17
+ disclosureCollapsed: "_disclosureCollapsed_v2h5a_67",
18
+ laneTrack: "_laneTrack_v2h5a_69",
19
+ key: "_key_v2h5a_76",
20
+ eventMark: "_eventMark_v2h5a_76",
21
+ keyGhost: "_keyGhost_v2h5a_96",
22
+ eventGhost: "_eventGhost_v2h5a_96",
23
+ graphHost: "_graphHost_v2h5a_113",
24
+ graph: "_graph_v2h5a_113",
25
+ nestedBar: "_nestedBar_v2h5a_132",
26
+ transport: "_transport_v2h5a_141",
27
+ transportButton: "_transportButton_v2h5a_150",
28
+ transportRow: "_transportRow_v2h5a_176",
29
+ time: "_time_v2h5a_194",
30
+ rate: "_rate_v2h5a_200",
31
+ rateSlider: "_rateSlider_v2h5a_201",
32
+ rateReadout: "_rateReadout_v2h5a_205",
33
+ root: "_root_v2h5a_211",
34
+ label: "_label_v2h5a_226",
35
+ body: "_body_v2h5a_228",
36
+ gutter: "_gutter_v2h5a_46",
37
+ rulerWrap: "_rulerWrap_v2h5a_230",
38
+ lanes: "_lanes_v2h5a_232",
39
+ inspector: "_inspector_v2h5a_239",
40
+ segment: "_segment_v2h5a_248",
41
+ easingPicker: "_easingPicker_v2h5a_258",
42
+ easingLabel: "_easingLabel_v2h5a_259",
43
+ easingPreview: "_easingPreview_v2h5a_261"
43
44
  };
44
45
  //#endregion
45
46
  //#region src/components/Timeline/easingSpec.ts
@@ -228,166 +229,14 @@ function V(e, t, n) {
228
229
  return o;
229
230
  }
230
231
  //#endregion
231
- //#region src/components/Timeline/lanes.ts
232
- function ne(e) {
233
- if (e.kind !== "sampled") return !1;
234
- let t = e.keys;
235
- return t.length > 0 && t.every((e) => typeof e.value == "number");
236
- }
237
- function re(e, t) {
238
- let n = [], r = (e, i, a, o) => {
239
- e.forEach((e, s) => {
240
- let c = [...i, s], l = c.join(".");
241
- n.push({
242
- key: l,
243
- path: c,
244
- track: e,
245
- label: e.label ?? `${e.kind} ${s}`,
246
- depth: a,
247
- offset: o,
248
- kind: e.kind,
249
- numeric: ne(e)
250
- }), e.kind === "timeline" && t.has(l) && r(e.timeline.tracks, c, a + 1, o + e.at);
251
- });
252
- };
253
- return r(e, [], 0, 0), n;
254
- }
255
- function H(e, t) {
256
- let n = e, r;
257
- for (let e of t) {
258
- if (r = n[e], !r) return;
259
- n = r.kind === "timeline" ? r.timeline.tracks : [];
260
- }
261
- return r;
262
- }
263
- //#endregion
264
- //#region src/components/Timeline/keys.ts
265
- function U(e, t) {
266
- return e.length === t.length && e.every((e, n) => e === t[n]);
267
- }
268
- function W(e, t) {
269
- return {
270
- ...e,
271
- keys: t
272
- };
273
- }
274
- function ie(e, t) {
275
- return {
276
- ...e,
277
- events: t
278
- };
279
- }
280
- function G(e, t, n) {
281
- let r = e.slice(), [i, ...a] = t;
282
- if (a.length === 0) return r[i] = n, r;
283
- let o = r[i];
284
- if (o?.kind !== "timeline") return r;
285
- let s = o;
286
- return r[i] = {
287
- ...s,
288
- timeline: {
289
- ...s.timeline,
290
- tracks: G(s.timeline.tracks, a, n)
291
- }
292
- }, r;
293
- }
294
- function K(e, t, n) {
295
- let r = H(e, t.trackPath), i = Math.max(0, n);
296
- if (r?.kind === "sampled") {
297
- let n = r, a = {
298
- ...n.keys[t.keyIndex],
299
- t: i
300
- }, o = n.keys.filter((e, n) => n !== t.keyIndex), s = o.findIndex((e) => e.t > i), c = s === -1 ? o.length : s;
301
- return o.splice(c, 0, a), {
302
- tracks: G(e, t.trackPath, W(r, o)),
303
- selection: {
304
- trackPath: t.trackPath,
305
- keyIndex: c
306
- }
307
- };
308
- }
309
- if (r?.kind === "event") {
310
- let n = r, a = {
311
- ...n.events[t.keyIndex],
312
- t: i
313
- }, o = n.events.filter((e, n) => n !== t.keyIndex), s = o.findIndex((e) => e.t > i), c = s === -1 ? o.length : s;
314
- return o.splice(c, 0, a), {
315
- tracks: G(e, t.trackPath, ie(r, o)),
316
- selection: {
317
- trackPath: t.trackPath,
318
- keyIndex: c
319
- }
320
- };
321
- }
322
- return {
323
- tracks: e.slice(),
324
- selection: t
325
- };
326
- }
327
- function ae(e, t, n) {
328
- let r = H(e, t);
329
- if (r?.kind !== "sampled") return {
330
- tracks: e.slice(),
331
- selection: null
332
- };
333
- let i = r, a = Math.max(0, n), o = i.keys.length === 0 ? 0 : h(i, a), s = i.keys.slice(), c = s.findIndex((e) => e.t > a), l = c === -1 ? s.length : c;
334
- return s.splice(l, 0, {
335
- t: a,
336
- value: o
337
- }), {
338
- tracks: G(e, t, W(r, s)),
339
- selection: {
340
- trackPath: t,
341
- keyIndex: l
342
- }
343
- };
344
- }
345
- function oe(e, t) {
346
- let n = H(e, t.trackPath);
347
- if (n?.kind !== "sampled") return {
348
- tracks: e.slice(),
349
- selection: t
350
- };
351
- let r = n.keys.filter((e, n) => n !== t.keyIndex);
352
- return {
353
- tracks: G(e, t.trackPath, W(n, r)),
354
- selection: r.length === 0 ? null : {
355
- trackPath: t.trackPath,
356
- keyIndex: Math.max(0, t.keyIndex - 1)
357
- }
358
- };
359
- }
360
- function q(e, t, n) {
361
- let r = H(e, t.trackPath);
362
- if (r?.kind !== "sampled") return e.slice();
363
- let i = r.keys.slice(), { easing: a, ...o } = i[t.keyIndex];
364
- return i[t.keyIndex] = n === void 0 ? o : {
365
- ...o,
366
- easing: n
367
- }, G(e, t.trackPath, W(r, i));
368
- }
369
- function J(e, t, n) {
370
- let r = H(e, t);
371
- return r?.kind === "sampled" ? G(e, t, W(r, n.slice())) : e.slice();
372
- }
373
- function se(e, t, n) {
374
- let r = H(e, t.trackPath);
375
- if (r?.kind !== "sampled") return e.slice();
376
- let i = r.keys.slice();
377
- return i[t.keyIndex] = {
378
- ...i[t.keyIndex],
379
- value: n
380
- }, G(e, t.trackPath, W(r, i));
381
- }
382
- //#endregion
383
232
  //#region src/components/Timeline/LaneGraph.tsx
384
- var Y = 8, ce = 10;
385
- function le(e) {
386
- let t = e.map((e) => e.value), n = Math.min(...t), r = Math.max(...t) - n || 1, i = r * Y / (100 - 2 * Y);
233
+ var H = 8, ne = 10;
234
+ function re(e) {
235
+ let t = e.map((e) => e.value), n = Math.min(...t), r = Math.max(...t) - n || 1, i = r * H / (100 - 2 * H);
387
236
  return [n - i, n + r + i];
388
237
  }
389
- function ue(e) {
390
- let { keys: t, label: n, window: r, offset: a, snapTimes: c, selection: l, selectedSegment: d, onSelect: f, onSelectSegment: p, onKeysInput: m, onKeysCommit: h } = e, g = S(null), [_, v] = C({
238
+ function ie(e) {
239
+ let { keys: t, label: n, window: r, offset: s, snapTimes: c, selection: l, selectedSegment: d, onSelect: f, onSelectSegment: p, onKeysInput: m, onKeysCommit: h } = e, g = S(null), [_, v] = C({
391
240
  width: 0,
392
241
  height: 0
393
242
  });
@@ -405,17 +254,17 @@ function ue(e) {
405
254
  let n = new ResizeObserver(t);
406
255
  return n.observe(e), () => n.disconnect();
407
256
  }, []);
408
- let x = b(() => o({
257
+ let x = b(() => a({
409
258
  id: "keys",
410
259
  label: n,
411
260
  formatX: (e) => `${Math.round(e)} ms`,
412
- snapX: c.map((e) => e - a),
261
+ snapX: c.map((e) => e - s),
413
262
  xClamp: [0, Infinity],
414
- step: { x: ce }
263
+ step: { x: ne }
415
264
  }), [
416
265
  n,
417
266
  c,
418
- a
267
+ s
419
268
  ]), T = b(() => ({
420
269
  keys: t,
421
270
  selectedKey: l,
@@ -437,13 +286,13 @@ function ue(e) {
437
286
  return;
438
287
  }
439
288
  if (D(n), n.drag.kind !== "key") return;
440
- let i = s(n).keys;
289
+ let i = o(n).keys;
441
290
  i !== n.keys && m?.(i);
442
291
  }, M = (e, t, n) => {
443
292
  D(null);
444
293
  let r = t;
445
294
  r.keys !== n.keys && h(r.keys);
446
- }, [N, P] = le(O.keys), F = _.width > 0 ? V(r, _.width, 64) : [];
295
+ }, [N, P] = re(O.keys), F = _.width > 0 ? V(r, _.width, 64) : [];
447
296
  return /* @__PURE__ */ u("div", {
448
297
  ref: g,
449
298
  className: w.graphHost,
@@ -455,12 +304,12 @@ function ue(e) {
455
304
  onLayerCommit: M,
456
305
  width: _.width,
457
306
  height: _.height,
458
- xRange: [r.from - a, r.to - a],
307
+ xRange: [r.from - s, r.to - s],
459
308
  yRange: [N, P],
460
309
  grid: !1,
461
310
  axes: !1,
462
311
  xTicks: {
463
- values: F.map((e) => e - a),
312
+ values: F.map((e) => e - s),
464
313
  labels: !1
465
314
  },
466
315
  yTicks: {
@@ -473,12 +322,12 @@ function ue(e) {
473
322
  }
474
323
  //#endregion
475
324
  //#region src/components/Timeline/Lane.tsx
476
- var de = 6, fe = 10;
477
- function pe(e) {
325
+ var ae = 10;
326
+ function oe(e) {
478
327
  return e.kind === "sampled" ? e.track.keys.map((e) => e.t) : e.kind === "event" ? e.track.events.map((e) => e.t) : [];
479
328
  }
480
- function me(e) {
481
- let { row: t, window: r, mode: i, selection: o, onSelect: s, onKeyInput: c, onKeyCommit: f, onInsert: m, onToggleExpand: h, expanded: g, snapTimes: _, selectedSegment: y = null, onSelectSegment: b, onKeysInput: x, onKeysCommit: T } = e, E = S(null), D = S(null);
329
+ function se(e) {
330
+ let { row: t, window: r, mode: i, selection: a, onSelect: o, onKeyInput: c, onKeyCommit: f, onInsert: m, onToggleExpand: h, expanded: g, snapTimes: _, selectedSegment: y = null, onSelectSegment: b, onKeysInput: x, onKeysCommit: T } = e, E = S(null), D = S(null);
482
331
  v(() => () => {
483
332
  D.current?.cancel();
484
333
  }, []);
@@ -487,13 +336,13 @@ function me(e) {
487
336
  return n ? F(r, n.width).toMs(e - n.left) - t.offset : r.from;
488
337
  }, M = () => {
489
338
  let e = F(r, E.current?.getBoundingClientRect().width ?? 0);
490
- return e.toMs(de) - e.toMs(0);
339
+ return e.toMs(6) - e.toMs(0);
491
340
  }, N = i === "graph" && t.numeric, P = t.kind === "sampled" ? t.track.keys : [], I = (e) => (n) => {
492
341
  if (n.button !== 0) return;
493
- n.stopPropagation(), s(e);
342
+ n.stopPropagation(), o(e);
494
343
  let r = (e) => {
495
344
  let n = Math.max(0, j(e.clientX));
496
- return e.altKey ? n : a(n + t.offset, _, M()) - t.offset;
345
+ return e.altKey ? n : s(n + t.offset, _, M()) - t.offset;
497
346
  };
498
347
  k({
499
348
  keyIndex: e,
@@ -515,9 +364,9 @@ function me(e) {
515
364
  onCancel: i
516
365
  }, { capture: !1 });
517
366
  }, R = (e, t) => (n) => {
518
- let r = fe * (n.shiftKey ? 10 : 1);
367
+ let r = ae * (n.shiftKey ? 10 : 1);
519
368
  n.key === "ArrowRight" && (n.preventDefault(), f(e, t + r)), n.key === "ArrowLeft" && (n.preventDefault(), f(e, Math.max(0, t - r)));
520
- }, B = pe(t);
369
+ }, B = oe(t);
521
370
  return /* @__PURE__ */ d("div", {
522
371
  className: w.lane,
523
372
  "data-depth": t.depth,
@@ -547,15 +396,15 @@ function me(e) {
547
396
  onDoubleClick: (e) => {
548
397
  t.kind === "sampled" && m(Math.max(0, j(e.clientX)));
549
398
  },
550
- children: N ? /* @__PURE__ */ u(ue, {
399
+ children: N ? /* @__PURE__ */ u(ie, {
551
400
  keys: P,
552
401
  label: t.label,
553
402
  window: r,
554
403
  offset: t.offset,
555
404
  snapTimes: _,
556
- selection: o,
405
+ selection: a,
557
406
  selectedSegment: y,
558
- onSelect: s,
407
+ onSelect: o,
559
408
  onSelectSegment: b,
560
409
  onKeysInput: x,
561
410
  onKeysCommit: (e) => T?.(e)
@@ -591,7 +440,7 @@ function me(e) {
591
440
  role: "button",
592
441
  tabIndex: 0,
593
442
  "aria-label": `${t.label} key at ${Math.round(e)} ms`,
594
- "aria-current": o === n ? "true" : void 0,
443
+ "aria-current": a === n ? "true" : void 0,
595
444
  "data-testid": t.kind === "event" ? "timeline-event" : "timeline-key",
596
445
  "data-dragging": O?.keyIndex === n ? "true" : void 0,
597
446
  className: t.kind === "event" ? w.eventMark : w.key,
@@ -611,11 +460,11 @@ function me(e) {
611
460
  }
612
461
  //#endregion
613
462
  //#region src/components/Timeline/Ruler.tsx
614
- var he = .0015;
615
- function ge(e) {
463
+ var ce = .0015;
464
+ function le(e) {
616
465
  return e >= 1e3 ? `${(e / 1e3).toFixed(e % 1e3 == 0 ? 0 : 2)}s` : `${Math.round(e)}ms`;
617
466
  }
618
- function _e(e) {
467
+ function ue(e) {
619
468
  let { window: t, bounds: n, playhead: r, onScrub: i, onWindowChange: a } = e, o = S(null), s = S(null);
620
469
  v(() => () => {
621
470
  s.current?.cancel();
@@ -648,7 +497,7 @@ function _e(e) {
648
497
  onCancel: t
649
498
  }, { capture: !1 });
650
499
  }, g = (e) => {
651
- if (e.ctrlKey) a(ee(t, m(e.clientX), Math.exp(e.deltaY * he), n));
500
+ if (e.ctrlKey) a(ee(t, m(e.clientX), Math.exp(e.deltaY * ce), n));
652
501
  else {
653
502
  let r = f(), i = r === 0 ? 0 : (t.to - t.from) / r;
654
503
  a(te(t, e.deltaY * i, n));
@@ -664,7 +513,7 @@ function _e(e) {
664
513
  className: w.tick,
665
514
  "data-testid": "timeline-tick",
666
515
  style: { left: b(e) },
667
- children: ge(e)
516
+ children: le(e)
668
517
  }, e)), /* @__PURE__ */ u("div", {
669
518
  className: w.playhead,
670
519
  "data-testid": "timeline-playhead",
@@ -674,15 +523,15 @@ function _e(e) {
674
523
  }
675
524
  //#endregion
676
525
  //#region src/components/Timeline/Transport.tsx
677
- var X = [
526
+ var U = [
678
527
  .25,
679
528
  .5,
680
529
  1,
681
530
  2,
682
531
  4
683
- ], Z = (e) => `${(e / 1e3).toFixed(2)}s`;
684
- function Q(n) {
685
- let { paused: r, loop: i, rate: a, playhead: o, duration: s, onPlay: l, onPause: f, onLoopChange: p, onRateChange: m } = n, h = i !== !1 && i !== 0, g = X.includes(a) ? X : [...X, a].sort((e, t) => e - t);
532
+ ], W = (e) => `${(e / 1e3).toFixed(2)}s`;
533
+ function G(n) {
534
+ let { paused: r, loop: i, rate: a, playhead: o, duration: s, onPlay: l, onPause: f, onLoopChange: p, onRateChange: m } = n, h = i !== !1 && i !== 0, g = U.includes(a) ? U : [...U, a].sort((e, t) => e - t);
686
535
  return /* @__PURE__ */ d("div", {
687
536
  className: w.transport,
688
537
  children: [
@@ -693,15 +542,6 @@ function Q(n) {
693
542
  onClick: r ? l : f,
694
543
  children: u(r ? e : t, { size: 14 })
695
544
  }),
696
- /* @__PURE__ */ d("span", {
697
- className: w.time,
698
- "data-testid": "timeline-time",
699
- children: [
700
- Z(o),
701
- " / ",
702
- Z(s)
703
- ]
704
- }),
705
545
  /* @__PURE__ */ u("button", {
706
546
  type: "button",
707
547
  role: "switch",
@@ -729,11 +569,172 @@ function Q(n) {
729
569
  children: [a, "x"]
730
570
  })
731
571
  ]
572
+ }),
573
+ /* @__PURE__ */ d("span", {
574
+ className: w.time,
575
+ "data-testid": "timeline-time",
576
+ children: [
577
+ W(o),
578
+ " / ",
579
+ W(s)
580
+ ]
732
581
  })
733
582
  ]
734
583
  });
735
584
  }
736
585
  //#endregion
586
+ //#region src/components/Timeline/lanes.ts
587
+ function de(e) {
588
+ if (e.kind !== "sampled") return !1;
589
+ let t = e.keys;
590
+ return t.length > 0 && t.every((e) => typeof e.value == "number");
591
+ }
592
+ function fe(e, t) {
593
+ let n = [], r = (e, i, a, o) => {
594
+ e.forEach((e, s) => {
595
+ let c = [...i, s], l = c.join(".");
596
+ n.push({
597
+ key: l,
598
+ path: c,
599
+ track: e,
600
+ label: e.label ?? `${e.kind} ${s}`,
601
+ depth: a,
602
+ offset: o,
603
+ kind: e.kind,
604
+ numeric: de(e)
605
+ }), e.kind === "timeline" && t.has(l) && r(e.timeline.tracks, c, a + 1, o + e.at);
606
+ });
607
+ };
608
+ return r(e, [], 0, 0), n;
609
+ }
610
+ function K(e, t) {
611
+ let n = e, r;
612
+ for (let e of t) {
613
+ if (r = n[e], !r) return;
614
+ n = r.kind === "timeline" ? r.timeline.tracks : [];
615
+ }
616
+ return r;
617
+ }
618
+ //#endregion
619
+ //#region src/components/Timeline/keys.ts
620
+ function q(e, t) {
621
+ return e.length === t.length && e.every((e, n) => e === t[n]);
622
+ }
623
+ function J(e, t) {
624
+ return {
625
+ ...e,
626
+ keys: t
627
+ };
628
+ }
629
+ function pe(e, t) {
630
+ return {
631
+ ...e,
632
+ events: t
633
+ };
634
+ }
635
+ function Y(e, t, n) {
636
+ let r = e.slice(), [i, ...a] = t;
637
+ if (a.length === 0) return r[i] = n, r;
638
+ let o = r[i];
639
+ if (o?.kind !== "timeline") return r;
640
+ let s = o;
641
+ return r[i] = {
642
+ ...s,
643
+ timeline: {
644
+ ...s.timeline,
645
+ tracks: Y(s.timeline.tracks, a, n)
646
+ }
647
+ }, r;
648
+ }
649
+ function X(e, t, n) {
650
+ let r = K(e, t.trackPath), i = Math.max(0, n);
651
+ if (r?.kind === "sampled") {
652
+ let n = r, a = {
653
+ ...n.keys[t.keyIndex],
654
+ t: i
655
+ }, o = n.keys.filter((e, n) => n !== t.keyIndex), s = o.findIndex((e) => e.t > i), c = s === -1 ? o.length : s;
656
+ return o.splice(c, 0, a), {
657
+ tracks: Y(e, t.trackPath, J(r, o)),
658
+ selection: {
659
+ trackPath: t.trackPath,
660
+ keyIndex: c
661
+ }
662
+ };
663
+ }
664
+ if (r?.kind === "event") {
665
+ let n = r, a = {
666
+ ...n.events[t.keyIndex],
667
+ t: i
668
+ }, o = n.events.filter((e, n) => n !== t.keyIndex), s = o.findIndex((e) => e.t > i), c = s === -1 ? o.length : s;
669
+ return o.splice(c, 0, a), {
670
+ tracks: Y(e, t.trackPath, pe(r, o)),
671
+ selection: {
672
+ trackPath: t.trackPath,
673
+ keyIndex: c
674
+ }
675
+ };
676
+ }
677
+ return {
678
+ tracks: e.slice(),
679
+ selection: t
680
+ };
681
+ }
682
+ function me(e, t, n) {
683
+ let r = K(e, t);
684
+ if (r?.kind !== "sampled") return {
685
+ tracks: e.slice(),
686
+ selection: null
687
+ };
688
+ let i = r, a = Math.max(0, n), o = i.keys.length === 0 ? 0 : h(i, a), s = i.keys.slice(), c = s.findIndex((e) => e.t > a), l = c === -1 ? s.length : c;
689
+ return s.splice(l, 0, {
690
+ t: a,
691
+ value: o
692
+ }), {
693
+ tracks: Y(e, t, J(r, s)),
694
+ selection: {
695
+ trackPath: t,
696
+ keyIndex: l
697
+ }
698
+ };
699
+ }
700
+ function he(e, t) {
701
+ let n = K(e, t.trackPath);
702
+ if (n?.kind !== "sampled") return {
703
+ tracks: e.slice(),
704
+ selection: t
705
+ };
706
+ let r = n.keys.filter((e, n) => n !== t.keyIndex);
707
+ return {
708
+ tracks: Y(e, t.trackPath, J(n, r)),
709
+ selection: r.length === 0 ? null : {
710
+ trackPath: t.trackPath,
711
+ keyIndex: Math.max(0, t.keyIndex - 1)
712
+ }
713
+ };
714
+ }
715
+ function Z(e, t, n) {
716
+ let r = K(e, t.trackPath);
717
+ if (r?.kind !== "sampled") return e.slice();
718
+ let i = r.keys.slice(), { easing: a, ...o } = i[t.keyIndex];
719
+ return i[t.keyIndex] = n === void 0 ? o : {
720
+ ...o,
721
+ easing: n
722
+ }, Y(e, t.trackPath, J(r, i));
723
+ }
724
+ function Q(e, t, n) {
725
+ let r = K(e, t);
726
+ return r?.kind === "sampled" ? Y(e, t, J(r, n.slice())) : e.slice();
727
+ }
728
+ function ge(e, t, n) {
729
+ let r = K(e, t.trackPath);
730
+ if (r?.kind !== "sampled") return e.slice();
731
+ let i = r.keys.slice();
732
+ return i[t.keyIndex] = {
733
+ ...i[t.keyIndex],
734
+ value: n
735
+ }, Y(e, t.trackPath, J(r, i));
736
+ }
737
+ //#endregion
737
738
  //#region src/components/Timeline/Timeline.tsx
738
739
  function $(e) {
739
740
  let { tracks: t, duration: n, playhead: r, onInput: i, onChange: a, onScrub: o, renderKeyEditor: s, label: c, className: l } = e, [f, p] = C(() => /* @__PURE__ */ new Set()), [m, h] = C({
@@ -742,7 +743,7 @@ function $(e) {
742
743
  }), [g, _] = C(null), [v, y] = C(null), x = e.window ?? m, S = e.onWindowChange ?? h, T = e.selection === void 0 ? g : e.selection, E = e.onSelect ?? _, D = {
743
744
  from: 0,
744
745
  to: n
745
- }, O = b(() => re(t, f), [t, f]), k = b(() => {
746
+ }, O = b(() => fe(t, f), [t, f]), k = b(() => {
746
747
  let e = new Set([0, n]);
747
748
  for (let t of O) if (t.kind === "sampled") for (let n of t.track.keys) e.add(n.t + t.offset);
748
749
  return [...e];
@@ -754,10 +755,10 @@ function $(e) {
754
755
  }, j = (e) => {
755
756
  if ((e.key === "Delete" || e.key === "Backspace") && T) {
756
757
  e.preventDefault();
757
- let n = oe(t, T);
758
+ let n = he(t, T);
758
759
  a(n.tracks), E(n.selection);
759
760
  }
760
- }, M = T ? H(t, T.trackPath) : void 0, P = M?.kind === "sampled" ? M.keys[T.keyIndex] : void 0, F = v ? H(t, v.trackPath) : void 0, I = F?.kind === "sampled" ? F.keys[v.keyIndex] : void 0;
761
+ }, M = T ? K(t, T.trackPath) : void 0, P = M?.kind === "sampled" ? M.keys[T.keyIndex] : void 0, F = v ? K(t, v.trackPath) : void 0, I = F?.kind === "sampled" ? F.keys[v.keyIndex] : void 0;
761
762
  return /* @__PURE__ */ d("div", {
762
763
  className: [w.root, l].filter(Boolean).join(" "),
763
764
  "data-testid": "timeline-root",
@@ -770,7 +771,7 @@ function $(e) {
770
771
  }) : null,
771
772
  e.transport === !1 ? null : /* @__PURE__ */ d("div", {
772
773
  className: w.transportRow,
773
- children: [/* @__PURE__ */ u(Q, {
774
+ children: [/* @__PURE__ */ u(G, {
774
775
  ...e.transport ?? {
775
776
  paused: !0,
776
777
  loop: !1,
@@ -796,7 +797,7 @@ function $(e) {
796
797
  className: w.body,
797
798
  children: [/* @__PURE__ */ u("div", { className: w.gutter }), /* @__PURE__ */ u("div", {
798
799
  className: w.rulerWrap,
799
- children: /* @__PURE__ */ u(_e, {
800
+ children: /* @__PURE__ */ u(ue, {
800
801
  window: x,
801
802
  bounds: D,
802
803
  playhead: r,
@@ -809,11 +810,11 @@ function $(e) {
809
810
  className: w.lanes,
810
811
  children: O.map((n) => {
811
812
  let r = n.path;
812
- return /* @__PURE__ */ u(me, {
813
+ return /* @__PURE__ */ u(se, {
813
814
  row: n,
814
815
  window: x,
815
816
  mode: e.mode ?? "dope",
816
- selection: T && U(T.trackPath, r) ? T.keyIndex : null,
817
+ selection: T && q(T.trackPath, r) ? T.keyIndex : null,
817
818
  expanded: f.has(n.key),
818
819
  snapTimes: k,
819
820
  onToggleExpand: () => A(n.key),
@@ -822,25 +823,25 @@ function $(e) {
822
823
  keyIndex: e
823
824
  }),
824
825
  onKeyInput: (e, n) => {
825
- i?.(K(t, {
826
+ i?.(X(t, {
826
827
  trackPath: r,
827
828
  keyIndex: e
828
829
  }, n).tracks);
829
830
  },
830
831
  onKeyCommit: (e, n) => {
831
- let i = K(t, {
832
+ let i = X(t, {
832
833
  trackPath: r,
833
834
  keyIndex: e
834
835
  }, n);
835
836
  a(i.tracks), E(i.selection);
836
837
  },
837
- onKeysInput: (e) => i?.(J(t, r, e)),
838
- onKeysCommit: (e) => a(J(t, r, e)),
838
+ onKeysInput: (e) => i?.(Q(t, r, e)),
839
+ onKeysCommit: (e) => a(Q(t, r, e)),
839
840
  onInsert: (e) => {
840
- let n = ae(t, r, e);
841
+ let n = me(t, r, e);
841
842
  a(n.tracks), E(n.selection);
842
843
  },
843
- selectedSegment: v && U(v.trackPath, r) ? v.keyIndex : null,
844
+ selectedSegment: v && q(v.trackPath, r) ? v.keyIndex : null,
844
845
  onSelectSegment: (e) => y({
845
846
  trackPath: r,
846
847
  keyIndex: e
@@ -854,15 +855,15 @@ function $(e) {
854
855
  key: P,
855
856
  track: M,
856
857
  selection: T,
857
- commit: (e) => a(se(t, T, e.value)),
858
- setEasing: (e) => a(q(t, T, e))
858
+ commit: (e) => a(ge(t, T, e.value)),
859
+ setEasing: (e) => a(Z(t, T, e))
859
860
  })
860
861
  }) : null,
861
862
  v && I ? /* @__PURE__ */ u("div", {
862
863
  className: w.inspector,
863
864
  children: /* @__PURE__ */ u(N, {
864
865
  value: I.easing,
865
- onChange: (e) => a(q(t, v, e))
866
+ onChange: (e) => a(Z(t, v, e))
866
867
  })
867
868
  }) : null
868
869
  ]
@@ -870,7 +871,7 @@ function $(e) {
870
871
  }
871
872
  //#endregion
872
873
  //#region src/components/Timeline/AnimatedTimeline.tsx
873
- function ve(e) {
874
+ function _e(e) {
874
875
  let { handle: t, ...n } = e, [, r] = x((e) => e + 1, 0);
875
876
  v(() => t.subscribe(r), [t]);
876
877
  let i = S(null), a = g(() => {
@@ -910,6 +911,6 @@ function ve(e) {
910
911
  });
911
912
  }
912
913
  //#endregion
913
- export { N as a, D as c, U as i, O as l, $ as n, k as o, Q as r, E as s, ve as t };
914
+ export { N as a, D as c, G as i, O as l, $ as n, k as o, q as r, E as s, _e as t };
914
915
 
915
- //# sourceMappingURL=Timeline-DOZgb1CG.js.map
916
+ //# sourceMappingURL=Timeline-BEyKaBXl.js.map