@weasel-js/ui 1.7.0 → 1.7.2

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 (416) hide show
  1. package/dist/chunks/ActionBar-xA73vzzF.js +64 -0
  2. package/dist/chunks/ActionBar-xA73vzzF.js.map +1 -0
  3. package/dist/chunks/{Badge-D2aD7xVL.js → Badge-jYQjrTKc.js} +235 -264
  4. package/dist/chunks/{Badge-D2aD7xVL.js.map → Badge-jYQjrTKc.js.map} +1 -1
  5. package/dist/chunks/{BandEditor-Dd0egAgE.js → BandEditor-B4jUAHQ8.js} +13 -13
  6. package/dist/chunks/BandEditor-B4jUAHQ8.js.map +1 -0
  7. package/dist/chunks/{Button-BIdXHQOx.js → Button-XB-T75YL.js} +2 -2
  8. package/dist/chunks/{Button-BIdXHQOx.js.map → Button-XB-T75YL.js.map} +1 -1
  9. package/dist/chunks/{ButtonBar-DIQTe5GQ.js → ButtonBar-CIMKPPRS.js} +7 -9
  10. package/dist/chunks/{ButtonBar-DIQTe5GQ.js.map → ButtonBar-CIMKPPRS.js.map} +1 -1
  11. package/dist/chunks/Callout-BUn0dP_S.js +115 -0
  12. package/dist/chunks/Callout-BUn0dP_S.js.map +1 -0
  13. package/dist/chunks/Checkbox-DFn-x0JO.js +37 -0
  14. package/dist/chunks/Checkbox-DFn-x0JO.js.map +1 -0
  15. package/dist/chunks/{CloseButton-C2J7wVfo.js → CloseButton-BmNmRVtb.js} +3 -3
  16. package/dist/chunks/{CloseButton-C2J7wVfo.js.map → CloseButton-BmNmRVtb.js.map} +1 -1
  17. package/dist/chunks/ColorField-BwlelY26.js +90 -0
  18. package/dist/chunks/ColorField-BwlelY26.js.map +1 -0
  19. package/dist/chunks/{ColorModeControl-BewxA0rX.js → ColorModeControl-DaVJ-SyX.js} +3 -3
  20. package/dist/chunks/{ColorModeControl-BewxA0rX.js.map → ColorModeControl-DaVJ-SyX.js.map} +1 -1
  21. package/dist/chunks/ComboBox-DKln_mOd.js +138 -0
  22. package/dist/chunks/ComboBox-DKln_mOd.js.map +1 -0
  23. package/dist/chunks/{CurveEditor-DUVjd25R.js → CurveEditor-0EE00D6s.js} +90 -87
  24. package/dist/chunks/CurveEditor-0EE00D6s.js.map +1 -0
  25. package/dist/chunks/{DataGrid-LZ2JgY2Y.js → DataGrid-CmHJe57v.js} +23 -18
  26. package/dist/chunks/DataGrid-CmHJe57v.js.map +1 -0
  27. package/dist/chunks/DetailList-BpU50XVe.js +54 -0
  28. package/dist/chunks/DetailList-BpU50XVe.js.map +1 -0
  29. package/dist/chunks/{DetentSlider-5uQPFucv.js → DetentSlider-DNTAk8xP.js} +2 -2
  30. package/dist/chunks/{DetentSlider-5uQPFucv.js.map → DetentSlider-DNTAk8xP.js.map} +1 -1
  31. package/dist/chunks/{Dialog-DGFutQ--.js → Dialog-DKfsk5VN.js} +3 -3
  32. package/dist/chunks/{Dialog-DGFutQ--.js.map → Dialog-DKfsk5VN.js.map} +1 -1
  33. package/dist/chunks/{DragGhost-B5_hb9W9.js → DragGhost-BeYDJyLZ.js} +2 -2
  34. package/dist/chunks/{DragGhost-B5_hb9W9.js.map → DragGhost-BeYDJyLZ.js.map} +1 -1
  35. package/dist/chunks/{FallthroughDiagram-BEHiM5IS.js → FallthroughDiagram-CS1IhQaU.js} +16 -16
  36. package/dist/chunks/FallthroughDiagram-CS1IhQaU.js.map +1 -0
  37. package/dist/chunks/Field-DiX_WByH.js +25 -0
  38. package/dist/chunks/Field-DiX_WByH.js.map +1 -0
  39. package/dist/chunks/FillStrokeSwatch-C4h3rUFM.js +112 -0
  40. package/dist/chunks/FillStrokeSwatch-C4h3rUFM.js.map +1 -0
  41. package/dist/chunks/{FontFamilySelect-DkRgNtag.js → FontFamilySelect-DEvMXyZd.js} +2 -2
  42. package/dist/chunks/FontFamilySelect-DEvMXyZd.js.map +1 -0
  43. package/dist/chunks/FontWeightSelect-BLQ_LMJF.js +49 -0
  44. package/dist/chunks/FontWeightSelect-BLQ_LMJF.js.map +1 -0
  45. package/dist/chunks/{GestureRoute-C_YGl7bJ.js → GestureRoute-BXESrHI0.js} +2 -2
  46. package/dist/chunks/{GestureRoute-C_YGl7bJ.js.map → GestureRoute-BXESrHI0.js.map} +1 -1
  47. package/dist/chunks/GradientEditor-DD2OjQtn.js +325 -0
  48. package/dist/chunks/GradientEditor-DD2OjQtn.js.map +1 -0
  49. package/dist/chunks/{Icon-CcVjdq2C.js → Icon--B1ME-6c.js} +3 -1
  50. package/dist/chunks/Icon--B1ME-6c.js.map +1 -0
  51. package/dist/chunks/{InlineRange-P01ABSzo.js → InlineRange-DPjIsJB3.js} +3 -3
  52. package/dist/chunks/InlineRange-DPjIsJB3.js.map +1 -0
  53. package/dist/chunks/{Input-CHmkfYaD.js → Input-D7SDKbST.js} +10 -15
  54. package/dist/chunks/Input-D7SDKbST.js.map +1 -0
  55. package/dist/chunks/{ItemList-Cm-HUWCi.js → ItemList-CRu9y7hL.js} +2 -2
  56. package/dist/chunks/ItemList-CRu9y7hL.js.map +1 -0
  57. package/dist/chunks/{Jog-DRmfrkCg.js → Jog-BrkzdGV2.js} +8 -8
  58. package/dist/chunks/Jog-BrkzdGV2.js.map +1 -0
  59. package/dist/chunks/{LayerList-wCI1EueM.js → LayerList-Bxj1N6bj.js} +151 -153
  60. package/dist/chunks/LayerList-Bxj1N6bj.js.map +1 -0
  61. package/dist/chunks/ListEditor-OQDzG4A5.js +72 -0
  62. package/dist/chunks/ListEditor-OQDzG4A5.js.map +1 -0
  63. package/dist/chunks/MenuButton-TAFg88Lp.js +75 -0
  64. package/dist/chunks/MenuButton-TAFg88Lp.js.map +1 -0
  65. package/dist/chunks/MeshEditor-DWpvg8H6.js +199 -0
  66. package/dist/chunks/MeshEditor-DWpvg8H6.js.map +1 -0
  67. package/dist/chunks/{NumberField-BnJxcazc.js → NumberField-DS0WSiin.js} +26 -23
  68. package/dist/chunks/NumberField-DS0WSiin.js.map +1 -0
  69. package/dist/chunks/{OptionsBar-ujxYidhj.js → OptionsBar-DeTAjVb7.js} +6 -8
  70. package/dist/chunks/{OptionsBar-ujxYidhj.js.map → OptionsBar-DeTAjVb7.js.map} +1 -1
  71. package/dist/chunks/PaintField-BdmQM53v.js +63 -0
  72. package/dist/chunks/PaintField-BdmQM53v.js.map +1 -0
  73. package/dist/chunks/PaintInput-DaQMeBsI.js +132 -0
  74. package/dist/chunks/PaintInput-DaQMeBsI.js.map +1 -0
  75. package/dist/chunks/PatternPicker-B3HcMZWg.js +135 -0
  76. package/dist/chunks/PatternPicker-B3HcMZWg.js.map +1 -0
  77. package/dist/chunks/{Plot2D-CTXHkL5p.js → Plot2D-BrvQS0dh.js} +7 -7
  78. package/dist/chunks/Plot2D-BrvQS0dh.js.map +1 -0
  79. package/dist/chunks/{PointPlotter-ldI4RrU1.js → PointPlotter-BBXpQ_QD.js} +2 -2
  80. package/dist/chunks/{PointPlotter-ldI4RrU1.js.map → PointPlotter-BBXpQ_QD.js.map} +1 -1
  81. package/dist/chunks/{Powerline-DNyH885r.js → Powerline-6wIFmDik.js} +2 -2
  82. package/dist/chunks/{Powerline-DNyH885r.js.map → Powerline-6wIFmDik.js.map} +1 -1
  83. package/dist/chunks/{Prefs-ByA-x51i.js → Prefs-C4MZ28SX.js} +118 -95
  84. package/dist/chunks/Prefs-C4MZ28SX.js.map +1 -0
  85. package/dist/chunks/{Properties-DmAeQ3mk.js → Properties-DseN56WI.js} +29 -29
  86. package/dist/chunks/{Properties-DmAeQ3mk.js.map → Properties-DseN56WI.js.map} +1 -1
  87. package/dist/chunks/PropertyField-BbNqK8xr.js +743 -0
  88. package/dist/chunks/PropertyField-BbNqK8xr.js.map +1 -0
  89. package/dist/chunks/{RadioGroup-Bh4-12e-.js → RadioGroup-B70_M-gT.js} +2 -2
  90. package/dist/chunks/{RadioGroup-Bh4-12e-.js.map → RadioGroup-B70_M-gT.js.map} +1 -1
  91. package/dist/chunks/{RangeSlider-SEGE-7VF.js → RangeSlider-DO5TZVk7.js} +8 -8
  92. package/dist/chunks/{RangeSlider-SEGE-7VF.js.map → RangeSlider-DO5TZVk7.js.map} +1 -1
  93. package/dist/chunks/RecentColorsProvider-DHcfk25u.js +84 -0
  94. package/dist/chunks/RecentColorsProvider-DHcfk25u.js.map +1 -0
  95. package/dist/chunks/ResizeHandle-CbAgCQOt.js +81 -0
  96. package/dist/chunks/ResizeHandle-CbAgCQOt.js.map +1 -0
  97. package/dist/chunks/Select-ouV8O6cp.js +236 -0
  98. package/dist/chunks/Select-ouV8O6cp.js.map +1 -0
  99. package/dist/chunks/{SelectionPanel-BaQnX4Bs.js → SelectionPanel-C3WzyaZV.js} +14 -13
  100. package/dist/chunks/{SelectionPanel-BaQnX4Bs.js.map → SelectionPanel-C3WzyaZV.js.map} +1 -1
  101. package/dist/chunks/{SidebarPanel-BblDEz4G.js → SidebarPanel-AXQ0jRDx.js} +2 -2
  102. package/dist/chunks/{SidebarPanel-BblDEz4G.js.map → SidebarPanel-AXQ0jRDx.js.map} +1 -1
  103. package/dist/chunks/{Slider-YofwGOI4.js → Slider-DSrlMEq8.js} +19 -19
  104. package/dist/chunks/Slider-DSrlMEq8.js.map +1 -0
  105. package/dist/chunks/{StatusBar-Ca9Dvhhq.js → StatusBar-BEOfOX0D.js} +6 -6
  106. package/dist/chunks/StatusBar-BEOfOX0D.js.map +1 -0
  107. package/dist/chunks/SwatchGrid-9ZPiDmxd.js +78 -0
  108. package/dist/chunks/SwatchGrid-9ZPiDmxd.js.map +1 -0
  109. package/dist/chunks/SwatchStrip-Bi9iPLoh.js +577 -0
  110. package/dist/chunks/SwatchStrip-Bi9iPLoh.js.map +1 -0
  111. package/dist/chunks/{ThemeSwitcher-BlsInAmR.js → ThemeSwitcher-DiBmMh_B.js} +3 -3
  112. package/dist/chunks/{ThemeSwitcher-BlsInAmR.js.map → ThemeSwitcher-DiBmMh_B.js.map} +1 -1
  113. package/dist/chunks/{Timeline-B39cwfMB.js → Timeline-sMCH2fah.js} +293 -280
  114. package/dist/chunks/Timeline-sMCH2fah.js.map +1 -0
  115. package/dist/chunks/Toast-C3ozq11V.js +170 -0
  116. package/dist/chunks/Toast-C3ozq11V.js.map +1 -0
  117. package/dist/chunks/{ToggleBar-BTYkBXU9.js → ToggleBar-Z2jZiguF.js} +6 -8
  118. package/dist/chunks/{ToggleBar-BTYkBXU9.js.map → ToggleBar-Z2jZiguF.js.map} +1 -1
  119. package/dist/chunks/{TokenPanel-CMDAOfYH.js → TokenPanel-WtKGY2Db.js} +32 -32
  120. package/dist/chunks/TokenPanel-WtKGY2Db.js.map +1 -0
  121. package/dist/chunks/{ToolButton-CAHBa08P.js → ToolButton-BURp4YIO.js} +7 -9
  122. package/dist/chunks/ToolButton-BURp4YIO.js.map +1 -0
  123. package/dist/chunks/{ToolOptionsBar-D_GCrBAN.js → ToolOptionsBar-CZTYPoC2.js} +3 -2
  124. package/dist/chunks/{ToolOptionsBar-D_GCrBAN.js.map → ToolOptionsBar-CZTYPoC2.js.map} +1 -1
  125. package/dist/chunks/{ToolPalette-OOWN51Xx.js → ToolPalette-DKDFWOX-.js} +7 -9
  126. package/dist/chunks/{ToolPalette-OOWN51Xx.js.map → ToolPalette-DKDFWOX-.js.map} +1 -1
  127. package/dist/chunks/{Tooltip-Clg2mhSt.js → Tooltip-C6eFCYxw.js} +2 -2
  128. package/dist/chunks/{Tooltip-Clg2mhSt.js.map → Tooltip-C6eFCYxw.js.map} +1 -1
  129. package/dist/chunks/Tree-Cc8lIzgM.js.map +1 -1
  130. package/dist/chunks/checkbox.module-DLQV9tMX.js +5 -0
  131. package/dist/chunks/checkbox.module-DLQV9tMX.js.map +1 -0
  132. package/dist/chunks/{createKeyframeLayer-DVl321_l.js → createKeyframeLayer-DSVf13Su.js} +194 -208
  133. package/dist/chunks/createKeyframeLayer-DSVf13Su.js.map +1 -0
  134. package/dist/chunks/field.module-B27pWv0i.js +15 -0
  135. package/dist/chunks/field.module-B27pWv0i.js.map +1 -0
  136. package/dist/chunks/formatShortcut-DRQrVThu.js.map +1 -1
  137. package/dist/chunks/handles-CqVANLtu.js +17 -0
  138. package/dist/chunks/handles-CqVANLtu.js.map +1 -0
  139. package/dist/chunks/{icons-BhcR1l64.js → icons-Dr2-r30x.js} +2 -2
  140. package/dist/chunks/icons-Dr2-r30x.js.map +1 -0
  141. package/dist/chunks/listbox.module-BcdVJMbm.js +8 -0
  142. package/dist/chunks/listbox.module-BcdVJMbm.js.map +1 -0
  143. package/dist/chunks/model-qsAFK7_0.js +386 -0
  144. package/dist/chunks/model-qsAFK7_0.js.map +1 -0
  145. package/dist/chunks/{portalHost-yTOVuCej.js → portalHost-CE70wLzo.js} +10 -6
  146. package/dist/chunks/portalHost-CE70wLzo.js.map +1 -0
  147. package/dist/chunks/prefField-BE_Ytr2H.js +229 -0
  148. package/dist/chunks/prefField-BE_Ytr2H.js.map +1 -0
  149. package/dist/chunks/{segmentTooltip-CStYHKzd.js → segmentTooltip-CGxCOWNz.js} +2 -2
  150. package/dist/chunks/{segmentTooltip-CStYHKzd.js.map → segmentTooltip-CGxCOWNz.js.map} +1 -1
  151. package/dist/chunks/segmentedControl.module-BzGXUL5G.js +11 -0
  152. package/dist/chunks/segmentedControl.module-BzGXUL5G.js.map +1 -0
  153. package/dist/chunks/useReorderDragList-CStYKjHl.js +133 -0
  154. package/dist/chunks/useReorderDragList-CStYKjHl.js.map +1 -0
  155. package/dist/chunks/useRovingTabIndex-D7u22Ia_.js +91 -0
  156. package/dist/chunks/useRovingTabIndex-D7u22Ia_.js.map +1 -0
  157. package/dist/components/ActionBar/ActionBar.d.ts.map +1 -1
  158. package/dist/components/ActionBar/index.js +1 -1
  159. package/dist/components/Badge/bases/ChamferedRect.d.ts.map +1 -1
  160. package/dist/components/Badge/index.js +1 -1
  161. package/dist/components/BandEditor/BandEditor.d.ts +1 -0
  162. package/dist/components/BandEditor/BandEditor.d.ts.map +1 -1
  163. package/dist/components/BandEditor/index.js +1 -1
  164. package/dist/components/Button/index.js +1 -1
  165. package/dist/components/ButtonBar/ButtonBar.d.ts.map +1 -1
  166. package/dist/components/ButtonBar/index.js +1 -1
  167. package/dist/components/Callout/Callout.d.ts.map +1 -1
  168. package/dist/components/Callout/index.js +1 -1
  169. package/dist/components/Checkbox/Checkbox.d.ts +28 -13
  170. package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
  171. package/dist/components/Checkbox/index.js +1 -1
  172. package/dist/components/CloseButton/index.js +1 -1
  173. package/dist/components/ColorField/ColorField.d.ts.map +1 -1
  174. package/dist/components/ColorField/OpacityRange.d.ts +18 -0
  175. package/dist/components/ColorField/OpacityRange.d.ts.map +1 -0
  176. package/dist/components/ColorField/index.js +1 -1
  177. package/dist/components/ColorModeControl/index.js +1 -1
  178. package/dist/components/ComboBox/ComboBox.d.ts +7 -0
  179. package/dist/components/ComboBox/ComboBox.d.ts.map +1 -1
  180. package/dist/components/ComboBox/index.js +1 -1
  181. package/dist/components/CurveEditor/CurveEditor.d.ts.map +1 -1
  182. package/dist/components/CurveEditor/LayeredCurveEditor.d.ts.map +1 -1
  183. package/dist/components/CurveEditor/index.js +2 -2
  184. package/dist/components/DataGrid/DataGrid.d.ts +3 -0
  185. package/dist/components/DataGrid/DataGrid.d.ts.map +1 -1
  186. package/dist/components/DataGrid/index.js +1 -1
  187. package/dist/components/DetailList/DetailList.d.ts +1 -1
  188. package/dist/components/DetailList/DetailList.d.ts.map +1 -1
  189. package/dist/components/DetailList/index.js +1 -1
  190. package/dist/components/DetentSlider/index.js +1 -1
  191. package/dist/components/Dialog/index.js +1 -1
  192. package/dist/components/DragGhost/index.js +1 -1
  193. package/dist/components/FallthroughDiagram/index.js +1 -1
  194. package/dist/components/Field/index.js +1 -1
  195. package/dist/components/FillStrokeSwatch/FillStrokeSwatch.d.ts +5 -2
  196. package/dist/components/FillStrokeSwatch/FillStrokeSwatch.d.ts.map +1 -1
  197. package/dist/components/FillStrokeSwatch/index.js +1 -1
  198. package/dist/components/FontFamilySelect/FontFamilySelect.d.ts +20 -0
  199. package/dist/components/FontFamilySelect/FontFamilySelect.d.ts.map +1 -1
  200. package/dist/components/FontFamilySelect/index.js +1 -1
  201. package/dist/components/FontWeightSelect/FontWeightSelect.d.ts +26 -0
  202. package/dist/components/FontWeightSelect/FontWeightSelect.d.ts.map +1 -0
  203. package/dist/components/FontWeightSelect/index.d.ts +3 -0
  204. package/dist/components/FontWeightSelect/index.d.ts.map +1 -0
  205. package/dist/components/FontWeightSelect/index.js +2 -0
  206. package/dist/components/GestureRoute/index.js +1 -1
  207. package/dist/components/GradientEditor/GradientHandles.d.ts +1 -8
  208. package/dist/components/GradientEditor/GradientHandles.d.ts.map +1 -1
  209. package/dist/components/GradientEditor/SceneGradientHandles.d.ts +7 -5
  210. package/dist/components/GradientEditor/SceneGradientHandles.d.ts.map +1 -1
  211. package/dist/components/GradientEditor/handleOverlay.d.ts +41 -0
  212. package/dist/components/GradientEditor/handleOverlay.d.ts.map +1 -0
  213. package/dist/components/GradientEditor/index.js +1 -1
  214. package/dist/components/InlineRange/index.js +1 -1
  215. package/dist/components/Input/Input.d.ts +1 -1
  216. package/dist/components/Input/Input.d.ts.map +1 -1
  217. package/dist/components/Input/index.js +1 -1
  218. package/dist/components/ItemList/ItemList.d.ts +32 -31
  219. package/dist/components/ItemList/ItemList.d.ts.map +1 -1
  220. package/dist/components/ItemList/index.js +1 -1
  221. package/dist/components/Jog/index.js +1 -1
  222. package/dist/components/LayerList/LayerList.d.ts.map +1 -1
  223. package/dist/components/LayerList/index.js +1 -1
  224. package/dist/components/ListEditor/ListEditor.d.ts.map +1 -1
  225. package/dist/components/ListEditor/index.js +1 -1
  226. package/dist/components/MenuButton/MenuButton.d.ts.map +1 -1
  227. package/dist/components/MenuButton/index.js +1 -1
  228. package/dist/components/MeshEditor/MeshEditor.d.ts +4 -3
  229. package/dist/components/MeshEditor/MeshEditor.d.ts.map +1 -1
  230. package/dist/components/MeshEditor/MeshHandles.d.ts +38 -0
  231. package/dist/components/MeshEditor/MeshHandles.d.ts.map +1 -0
  232. package/dist/components/MeshEditor/index.d.ts +2 -0
  233. package/dist/components/MeshEditor/index.d.ts.map +1 -1
  234. package/dist/components/MeshEditor/index.js +2 -2
  235. package/dist/components/NumberField/NumberField.d.ts +1 -1
  236. package/dist/components/NumberField/NumberField.d.ts.map +1 -1
  237. package/dist/components/NumberField/index.js +1 -1
  238. package/dist/components/OptionsBar/OptionsBar.d.ts.map +1 -1
  239. package/dist/components/OptionsBar/index.js +1 -1
  240. package/dist/components/PaintField/PaintField.d.ts.map +1 -1
  241. package/dist/components/PaintField/index.js +1 -1
  242. package/dist/components/PaintInput/PaintInput.d.ts.map +1 -1
  243. package/dist/components/PaintInput/index.js +1 -1
  244. package/dist/components/PatternPicker/PatternPicker.d.ts +6 -5
  245. package/dist/components/PatternPicker/PatternPicker.d.ts.map +1 -1
  246. package/dist/components/PatternPicker/index.js +1 -1
  247. package/dist/components/Plot2D/index.js +1 -1
  248. package/dist/components/PointPlotter/index.js +1 -1
  249. package/dist/components/Powerline/index.js +2 -2
  250. package/dist/components/Prefs/PrefsForm.d.ts +22 -0
  251. package/dist/components/Prefs/PrefsForm.d.ts.map +1 -1
  252. package/dist/components/Prefs/PrefsRail.d.ts +3 -2
  253. package/dist/components/Prefs/PrefsRail.d.ts.map +1 -1
  254. package/dist/components/Prefs/PrefsRow.d.ts +4 -0
  255. package/dist/components/Prefs/PrefsRow.d.ts.map +1 -1
  256. package/dist/components/Prefs/index.js +2 -2
  257. package/dist/components/Prefs/prefField.d.ts +13 -0
  258. package/dist/components/Prefs/prefField.d.ts.map +1 -1
  259. package/dist/components/Properties/PropertyField.d.ts +13 -2
  260. package/dist/components/Properties/PropertyField.d.ts.map +1 -1
  261. package/dist/components/Properties/PropertyPanel.d.ts +18 -1
  262. package/dist/components/Properties/PropertyPanel.d.ts.map +1 -1
  263. package/dist/components/Properties/index.d.ts +2 -2
  264. package/dist/components/Properties/index.d.ts.map +1 -1
  265. package/dist/components/Properties/index.js +3 -3
  266. package/dist/components/RadioGroup/index.js +1 -1
  267. package/dist/components/RangeSlider/index.js +1 -1
  268. package/dist/components/RecentColors/RecentColorsProvider.d.ts +24 -0
  269. package/dist/components/RecentColors/RecentColorsProvider.d.ts.map +1 -0
  270. package/dist/components/RecentColors/index.d.ts +5 -0
  271. package/dist/components/RecentColors/index.d.ts.map +1 -0
  272. package/dist/components/RecentColors/index.js +2 -0
  273. package/dist/components/RecentColors/recentColors.d.ts +39 -0
  274. package/dist/components/RecentColors/recentColors.d.ts.map +1 -0
  275. package/dist/components/ResizeHandle/ResizeHandle.d.ts.map +1 -1
  276. package/dist/components/ResizeHandle/index.js +1 -1
  277. package/dist/components/Select/Select.d.ts +6 -2
  278. package/dist/components/Select/Select.d.ts.map +1 -1
  279. package/dist/components/Select/index.js +1 -1
  280. package/dist/components/SelectionPanel/index.js +2 -2
  281. package/dist/components/SelectionPanel/renderLeaf.d.ts +12 -2
  282. package/dist/components/SelectionPanel/renderLeaf.d.ts.map +1 -1
  283. package/dist/components/SidebarPanel/index.js +1 -1
  284. package/dist/components/Slider/index.js +1 -1
  285. package/dist/components/StatusBar/StatusBar.d.ts +1 -1
  286. package/dist/components/StatusBar/index.js +1 -1
  287. package/dist/components/SwatchGrid/SwatchGrid.d.ts.map +1 -1
  288. package/dist/components/SwatchGrid/index.js +1 -1
  289. package/dist/components/SwatchStrip/SwatchStrip.d.ts +44 -0
  290. package/dist/components/SwatchStrip/SwatchStrip.d.ts.map +1 -0
  291. package/dist/components/SwatchStrip/index.d.ts +5 -0
  292. package/dist/components/SwatchStrip/index.d.ts.map +1 -0
  293. package/dist/components/SwatchStrip/index.js +2 -0
  294. package/dist/components/SwatchStrip/palettes.d.ts +21 -0
  295. package/dist/components/SwatchStrip/palettes.d.ts.map +1 -0
  296. package/dist/components/ThemeSwitcher/index.js +1 -1
  297. package/dist/components/Timeline/AnimatedTimeline.d.ts +1 -0
  298. package/dist/components/Timeline/AnimatedTimeline.d.ts.map +1 -1
  299. package/dist/components/Timeline/EasingPicker.d.ts +3 -0
  300. package/dist/components/Timeline/EasingPicker.d.ts.map +1 -1
  301. package/dist/components/Timeline/LaneGraph.d.ts +1 -1
  302. package/dist/components/Timeline/LaneGraph.d.ts.map +1 -1
  303. package/dist/components/Timeline/Timeline.d.ts +10 -1
  304. package/dist/components/Timeline/Timeline.d.ts.map +1 -1
  305. package/dist/components/Timeline/Transport.d.ts +6 -0
  306. package/dist/components/Timeline/Transport.d.ts.map +1 -1
  307. package/dist/components/Timeline/index.js +1 -1
  308. package/dist/components/Timeline/keys.d.ts +1 -0
  309. package/dist/components/Timeline/keys.d.ts.map +1 -1
  310. package/dist/components/Toast/Toast.d.ts +12 -3
  311. package/dist/components/Toast/Toast.d.ts.map +1 -1
  312. package/dist/components/Toast/index.js +1 -1
  313. package/dist/components/ToggleBar/ToggleBar.d.ts.map +1 -1
  314. package/dist/components/ToggleBar/index.js +1 -1
  315. package/dist/components/TokenPanel/index.js +1 -1
  316. package/dist/components/TokenPanel/tokenTypes.d.ts +1 -0
  317. package/dist/components/TokenPanel/tokenTypes.d.ts.map +1 -1
  318. package/dist/components/ToolButton/ToolButton.d.ts +1 -10
  319. package/dist/components/ToolButton/ToolButton.d.ts.map +1 -1
  320. package/dist/components/ToolButton/index.js +1 -1
  321. package/dist/components/ToolOptionsBar/index.js +1 -1
  322. package/dist/components/ToolPalette/ToolPalette.d.ts.map +1 -1
  323. package/dist/components/ToolPalette/formatShortcut.d.ts +2 -0
  324. package/dist/components/ToolPalette/formatShortcut.d.ts.map +1 -1
  325. package/dist/components/ToolPalette/index.js +1 -1
  326. package/dist/components/Tooltip/index.js +1 -1
  327. package/dist/components/Tree/Tree.d.ts +27 -26
  328. package/dist/components/Tree/Tree.d.ts.map +1 -1
  329. package/dist/icons/index.d.ts +51 -0
  330. package/dist/icons/index.d.ts.map +1 -1
  331. package/dist/icons/paths.d.ts +2 -0
  332. package/dist/icons/paths.d.ts.map +1 -1
  333. package/dist/index.d.ts +4 -1
  334. package/dist/index.d.ts.map +1 -1
  335. package/dist/index.js +98 -95
  336. package/dist/index.js.map +1 -1
  337. package/dist/overlays/portalHost.d.ts +6 -0
  338. package/dist/overlays/portalHost.d.ts.map +1 -1
  339. package/dist/style.css +1 -1
  340. package/dist/useAsyncOptions.d.ts.map +1 -1
  341. package/dist/useReorderDragList.d.ts.map +1 -1
  342. package/dist/useRovingTabIndex.d.ts +40 -39
  343. package/dist/useRovingTabIndex.d.ts.map +1 -1
  344. package/package.json +9 -9
  345. package/dist/chunks/ActionBar-DCq16yFA.js +0 -57
  346. package/dist/chunks/ActionBar-DCq16yFA.js.map +0 -1
  347. package/dist/chunks/BandEditor-Dd0egAgE.js.map +0 -1
  348. package/dist/chunks/Callout-ndW5_Bqx.js +0 -116
  349. package/dist/chunks/Callout-ndW5_Bqx.js.map +0 -1
  350. package/dist/chunks/Checkbox-DHXTUHO9.js +0 -47
  351. package/dist/chunks/Checkbox-DHXTUHO9.js.map +0 -1
  352. package/dist/chunks/ColorField-Yz_BkcCT.js +0 -69
  353. package/dist/chunks/ColorField-Yz_BkcCT.js.map +0 -1
  354. package/dist/chunks/ComboBox-B34H76CW.js +0 -138
  355. package/dist/chunks/ComboBox-B34H76CW.js.map +0 -1
  356. package/dist/chunks/CurveEditor-DUVjd25R.js.map +0 -1
  357. package/dist/chunks/DataGrid-LZ2JgY2Y.js.map +0 -1
  358. package/dist/chunks/DetailList-BKomDzg5.js +0 -52
  359. package/dist/chunks/DetailList-BKomDzg5.js.map +0 -1
  360. package/dist/chunks/FallthroughDiagram-BEHiM5IS.js.map +0 -1
  361. package/dist/chunks/Field--onYxXTF.js +0 -32
  362. package/dist/chunks/Field--onYxXTF.js.map +0 -1
  363. package/dist/chunks/FillStrokeSwatch-DNb0KXPk.js +0 -111
  364. package/dist/chunks/FillStrokeSwatch-DNb0KXPk.js.map +0 -1
  365. package/dist/chunks/FontFamilySelect-DkRgNtag.js.map +0 -1
  366. package/dist/chunks/GradientEditor-b7v4Ph3i.js +0 -363
  367. package/dist/chunks/GradientEditor-b7v4Ph3i.js.map +0 -1
  368. package/dist/chunks/Icon-CcVjdq2C.js.map +0 -1
  369. package/dist/chunks/InlineRange-P01ABSzo.js.map +0 -1
  370. package/dist/chunks/Input-CHmkfYaD.js.map +0 -1
  371. package/dist/chunks/ItemList-Cm-HUWCi.js.map +0 -1
  372. package/dist/chunks/Jog-DRmfrkCg.js.map +0 -1
  373. package/dist/chunks/LayerList-wCI1EueM.js.map +0 -1
  374. package/dist/chunks/ListEditor-BeA60TAA.js +0 -71
  375. package/dist/chunks/ListEditor-BeA60TAA.js.map +0 -1
  376. package/dist/chunks/MenuButton-BSqEChJE.js +0 -70
  377. package/dist/chunks/MenuButton-BSqEChJE.js.map +0 -1
  378. package/dist/chunks/MeshEditor-D1HLZcAh.js +0 -87
  379. package/dist/chunks/MeshEditor-D1HLZcAh.js.map +0 -1
  380. package/dist/chunks/NumberField-BnJxcazc.js.map +0 -1
  381. package/dist/chunks/PaintField-DadOELMg.js +0 -62
  382. package/dist/chunks/PaintField-DadOELMg.js.map +0 -1
  383. package/dist/chunks/PaintInput-v8Y7MDbH.js +0 -121
  384. package/dist/chunks/PaintInput-v8Y7MDbH.js.map +0 -1
  385. package/dist/chunks/PatternPicker-R_EQtw2Q.js +0 -93
  386. package/dist/chunks/PatternPicker-R_EQtw2Q.js.map +0 -1
  387. package/dist/chunks/Plot2D-CTXHkL5p.js.map +0 -1
  388. package/dist/chunks/Prefs-ByA-x51i.js.map +0 -1
  389. package/dist/chunks/PropertyField-DfIJJ5GS.js +0 -673
  390. package/dist/chunks/PropertyField-DfIJJ5GS.js.map +0 -1
  391. package/dist/chunks/ResizeHandle-rKVWyeTG.js +0 -79
  392. package/dist/chunks/ResizeHandle-rKVWyeTG.js.map +0 -1
  393. package/dist/chunks/Select-ClmKtyWg.js +0 -229
  394. package/dist/chunks/Select-ClmKtyWg.js.map +0 -1
  395. package/dist/chunks/Slider-YofwGOI4.js.map +0 -1
  396. package/dist/chunks/StatusBar-Ca9Dvhhq.js.map +0 -1
  397. package/dist/chunks/SwatchGrid-BYvA8Bmh.js +0 -73
  398. package/dist/chunks/SwatchGrid-BYvA8Bmh.js.map +0 -1
  399. package/dist/chunks/Timeline-B39cwfMB.js.map +0 -1
  400. package/dist/chunks/Toast-BF9GE0HC.js +0 -126
  401. package/dist/chunks/Toast-BF9GE0HC.js.map +0 -1
  402. package/dist/chunks/TokenPanel-CMDAOfYH.js.map +0 -1
  403. package/dist/chunks/ToolButton-CAHBa08P.js.map +0 -1
  404. package/dist/chunks/createKeyframeLayer-DVl321_l.js.map +0 -1
  405. package/dist/chunks/icons-BhcR1l64.js.map +0 -1
  406. package/dist/chunks/model-BaF65rnX.js +0 -365
  407. package/dist/chunks/model-BaF65rnX.js.map +0 -1
  408. package/dist/chunks/portalHost-yTOVuCej.js.map +0 -1
  409. package/dist/chunks/prefField-BopW9bjx.js +0 -201
  410. package/dist/chunks/prefField-BopW9bjx.js.map +0 -1
  411. package/dist/chunks/segmentedControl.module-D6SzYJD7.js +0 -11
  412. package/dist/chunks/segmentedControl.module-D6SzYJD7.js.map +0 -1
  413. package/dist/chunks/useReorderDragList-FCMoFIzH.js +0 -131
  414. package/dist/chunks/useReorderDragList-FCMoFIzH.js.map +0 -1
  415. package/dist/chunks/useRovingTabIndex-Bp_hYm_h.js +0 -65
  416. package/dist/chunks/useRovingTabIndex-Bp_hYm_h.js.map +0 -1
@@ -1,69 +1,70 @@
1
- import { rt as e, st as t } from "./icons-BhcR1l64.js";
1
+ import { rt as e, st as t } from "./icons-Dr2-r30x.js";
2
2
  import { n } from "./Disclosure-Ch2KxYuB.js";
3
- import { r } from "./Plot2D-CTXHkL5p.js";
4
- import { i, n as a, t as o } from "./createKeyframeLayer-DVl321_l.js";
3
+ import { r } from "./Plot2D-BrvQS0dh.js";
4
+ import { i, n as a, t as o } from "./createKeyframeLayer-DSVf13Su.js";
5
5
  import { t as s } from "./snap-DRjbOiG9.js";
6
- import { t as c } from "./DetentSlider-5uQPFucv.js";
7
- import { EASINGS as l, openPointerSession as u, resolveEasing as d, sampleTrack as f, useVisibleRaf as p } from "@weasel-js/core";
8
- import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
9
- import { useCallback as _, useEffect as v, useLayoutEffect as y, useMemo as b, useReducer as x, useRef as S, useState as C } from "react";
10
- import { multiplier as w, qty as T } from "@weasel-js/quantity";
11
- var E = {
12
- ruler: "_ruler_65nbe_1",
13
- tick: "_tick_65nbe_11",
14
- playhead: "_playhead_65nbe_29",
15
- lane: "_lane_65nbe_38",
16
- laneLabel: "_laneLabel_65nbe_45",
17
- disclosure: "_disclosure_65nbe_65",
18
- laneTrack: "_laneTrack_65nbe_67",
19
- key: "_key_65nbe_74",
20
- eventMark: "_eventMark_65nbe_74",
21
- keyGhost: "_keyGhost_65nbe_94",
22
- eventGhost: "_eventGhost_65nbe_94",
23
- graphHost: "_graphHost_65nbe_111",
24
- graph: "_graph_65nbe_111",
25
- nestedBar: "_nestedBar_65nbe_130",
26
- transport: "_transport_65nbe_139",
27
- transportButton: "_transportButton_65nbe_148",
28
- transportRow: "_transportRow_65nbe_175",
29
- time: "_time_65nbe_193",
30
- rate: "_rate_65nbe_199",
31
- rateSlider: "_rateSlider_65nbe_200",
32
- rateReadout: "_rateReadout_65nbe_204",
33
- root: "_root_65nbe_210",
34
- label: "_label_65nbe_225",
35
- body: "_body_65nbe_227",
36
- gutter: "_gutter_65nbe_46",
37
- rulerWrap: "_rulerWrap_65nbe_229",
38
- lanes: "_lanes_65nbe_231",
39
- inspector: "_inspector_65nbe_238",
40
- segment: "_segment_65nbe_247",
41
- easingPicker: "_easingPicker_65nbe_257",
42
- easingLabel: "_easingLabel_65nbe_258",
43
- easingPreview: "_easingPreview_65nbe_260"
6
+ import { t as c } from "./DetentSlider-DNTAk8xP.js";
7
+ import { EASINGS as l, openPointerSession as u, resolveEasing as d, sampleTrack as f, useLatest as p, useVisibleRaf as m } from "@weasel-js/core";
8
+ import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
9
+ import { useCallback as v, useEffect as y, useLayoutEffect as b, useMemo as x, useReducer as S, useRef as C, useState as w } from "react";
10
+ import { multiplier as T, qty as E } from "@weasel-js/quantity";
11
+ var D = {
12
+ ruler: "_ruler_c5e84_1",
13
+ tick: "_tick_c5e84_11 _numeric_zns9n_4",
14
+ playhead: "_playhead_c5e84_30",
15
+ lane: "_lane_c5e84_39",
16
+ laneLabel: "_laneLabel_c5e84_46",
17
+ disclosure: "_disclosure_c5e84_66",
18
+ laneTrack: "_laneTrack_c5e84_68",
19
+ key: "_key_c5e84_75",
20
+ eventMark: "_eventMark_c5e84_75",
21
+ keyGhost: "_keyGhost_c5e84_95",
22
+ eventGhost: "_eventGhost_c5e84_95",
23
+ graphHost: "_graphHost_c5e84_112",
24
+ graph: "_graph_c5e84_112",
25
+ nestedBar: "_nestedBar_c5e84_131",
26
+ transport: "_transport_c5e84_140",
27
+ transportButton: "_transportButton_c5e84_149",
28
+ transportRow: "_transportRow_c5e84_176",
29
+ time: "_time_c5e84_194 _numeric_zns9n_4",
30
+ rate: "_rate_c5e84_201",
31
+ rateSlider: "_rateSlider_c5e84_202",
32
+ rateReadout: "_rateReadout_c5e84_206 _numeric_zns9n_4",
33
+ sizer: "_sizer_c5e84_218 _sizer_18u60_4",
34
+ root: "_root_c5e84_222",
35
+ label: "_label_c5e84_237",
36
+ body: "_body_c5e84_239",
37
+ gutter: "_gutter_c5e84_47",
38
+ rulerWrap: "_rulerWrap_c5e84_241",
39
+ lanes: "_lanes_c5e84_243",
40
+ inspector: "_inspector_c5e84_250",
41
+ segment: "_segment_c5e84_259",
42
+ easingPicker: "_easingPicker_c5e84_269",
43
+ easingLabel: "_easingLabel_c5e84_270 _numeric_zns9n_4",
44
+ easingPreview: "_easingPreview_c5e84_272"
44
45
  };
45
46
  //#endregion
46
47
  //#region src/components/Timeline/easingSpec.ts
47
- function D(e) {
48
- return typeof e == "object" && e && "bezier" in e ? e.bezier : null;
49
- }
50
48
  function O(e) {
51
- return e === void 0 ? null : D(e);
49
+ return typeof e == "object" && e && "bezier" in e ? e.bezier : null;
52
50
  }
53
51
  function k(e) {
52
+ return e === void 0 ? null : O(e);
53
+ }
54
+ function A(e) {
54
55
  if (e === void 0) return "linear";
55
56
  if (typeof e == "string") return e;
56
- let t = D(e);
57
+ let t = O(e);
57
58
  if (t) return `cubic-bezier(${t.join(", ")})`;
58
59
  for (let [t, n] of Object.entries(l)) if (n === e) return t;
59
60
  return "custom";
60
61
  }
61
- function A(e, t) {
62
+ function j(e, t) {
62
63
  let n = d(e), r = Array(t), i = t - 1;
63
64
  for (let e = 0; e < t; e++) r[e] = n(i === 0 ? 0 : e / i);
64
65
  return r;
65
66
  }
66
- var j = Object.keys(l), M = 24, N = {
67
+ var M = Object.keys(l), N = 24, P = {
67
68
  linear: [
68
69
  0,
69
70
  0,
@@ -124,50 +125,50 @@ var j = Object.keys(l), M = 24, N = {
124
125
  .63,
125
126
  1
126
127
  ]
127
- }, P = [
128
+ }, F = [
128
129
  .25,
129
130
  .1,
130
131
  .25,
131
132
  1
132
133
  ];
133
- function F(e) {
134
- let { value: t, onChange: n } = e, r = O(t), i = k(t), a = r === null && j.includes(i), o = r === null ? a ? i : "linear" : "custom", s = A(t, M).map((e, t) => `${t / 23 * 100},${100 - e * 100}`).join(" ");
135
- return /* @__PURE__ */ g("div", {
136
- className: E.easingPicker,
134
+ function I(e) {
135
+ let { value: t, onChange: n } = e, r = k(t), i = A(t), a = r === null && M.includes(i), o = r === null ? a ? i : "linear" : "custom", s = j(t, N).map((e, t) => `${t / 23 * 100},${100 - e * 100}`).join(" ");
136
+ return /* @__PURE__ */ _("div", {
137
+ className: D.easingPicker,
137
138
  children: [
138
- /* @__PURE__ */ g("label", { children: ["Easing", /* @__PURE__ */ g("select", {
139
+ /* @__PURE__ */ _("label", { children: ["Easing", /* @__PURE__ */ _("select", {
139
140
  value: o,
140
141
  onChange: (e) => n(e.target.value === "linear" ? void 0 : e.target.value),
141
142
  children: [
142
- /* @__PURE__ */ h("option", {
143
+ /* @__PURE__ */ g("option", {
143
144
  value: "linear",
144
145
  children: "linear"
145
146
  }),
146
- j.filter((e) => e !== "linear").map((e) => /* @__PURE__ */ h("option", {
147
+ M.filter((e) => e !== "linear").map((e) => /* @__PURE__ */ g("option", {
147
148
  value: e,
148
149
  children: e
149
150
  }, e)),
150
- r === null ? null : /* @__PURE__ */ h("option", {
151
+ r === null ? null : /* @__PURE__ */ g("option", {
151
152
  value: "custom",
152
153
  children: "custom"
153
154
  })
154
155
  ]
155
156
  })] }),
156
- r === null ? /* @__PURE__ */ h("button", {
157
+ r === null ? /* @__PURE__ */ g("button", {
157
158
  type: "button",
158
- className: E.transportButton,
159
- onClick: () => n({ bezier: N[o] ?? P }),
159
+ className: D.transportButton,
160
+ onClick: () => n({ bezier: P[o] ?? F }),
160
161
  children: "Convert to bezier"
161
- }) : /* @__PURE__ */ h("span", {
162
- className: E.easingLabel,
162
+ }) : /* @__PURE__ */ g("span", {
163
+ className: D.easingLabel,
163
164
  children: i
164
165
  }),
165
- /* @__PURE__ */ h("svg", {
166
- className: E.easingPreview,
166
+ /* @__PURE__ */ g("svg", {
167
+ className: D.easingPreview,
167
168
  "data-testid": "easing-preview",
168
169
  viewBox: "0 0 100 100",
169
170
  preserveAspectRatio: "none",
170
- children: /* @__PURE__ */ h("polyline", {
171
+ children: /* @__PURE__ */ g("polyline", {
171
172
  points: s,
172
173
  vectorEffect: "non-scaling-stroke"
173
174
  })
@@ -177,8 +178,8 @@ function F(e) {
177
178
  }
178
179
  //#endregion
179
180
  //#region src/components/Timeline/timeScale.ts
180
- var I = 1;
181
- function L(e, t) {
181
+ var L = 1;
182
+ function R(e, t) {
182
183
  let n = e.to - e.from, r = n === 0 ? 0 : t / n, i = t === 0 ? 0 : n / t;
183
184
  return {
184
185
  window: e,
@@ -187,19 +188,19 @@ function L(e, t) {
187
188
  toMs: (t) => e.from + t * i
188
189
  };
189
190
  }
190
- function R(e, t) {
191
+ function ee(e, t) {
191
192
  let n = e.to - e.from;
192
193
  return n === 0 ? 0 : (t - e.from) / n;
193
194
  }
194
195
  function z(e, t) {
195
- return `${R(e, t) * 100}%`;
196
+ return `${ee(e, t) * 100}%`;
196
197
  }
197
- function ee(e, t) {
198
+ function te(e, t) {
198
199
  let n = e.to - e.from;
199
200
  return n === 0 ? 0 : t / n;
200
201
  }
201
202
  function B(e, t) {
202
- return `${ee(e, t) * 100}%`;
203
+ return `${te(e, t) * 100}%`;
203
204
  }
204
205
  function V(e, t) {
205
206
  let n = Math.min(e.to - e.from, t.to - t.from), r = e.from;
@@ -208,14 +209,14 @@ function V(e, t) {
208
209
  to: r + n
209
210
  };
210
211
  }
211
- function te(e, t, n, r) {
212
- let i = e.to - e.from, a = r.to - r.from, o = Math.min(a, Math.max(I, i * n)), s = i === 0 ? .5 : (t - e.from) / i;
212
+ function ne(e, t, n, r) {
213
+ let i = e.to - e.from, a = r.to - r.from, o = Math.min(a, Math.max(L, i * n)), s = i === 0 ? .5 : (t - e.from) / i;
213
214
  return V({
214
215
  from: t - s * o,
215
216
  to: t + (1 - s) * o
216
217
  }, r);
217
218
  }
218
- function ne(e, t, n) {
219
+ function re(e, t, n) {
219
220
  return V({
220
221
  from: e.from + t,
221
222
  to: e.to + t
@@ -230,22 +231,22 @@ function H(e, t, n) {
230
231
  }
231
232
  //#endregion
232
233
  //#region src/components/Timeline/LaneGraph.tsx
233
- var re = 8, ie = 10;
234
- function ae(e) {
235
- let t = e.map((e) => e.value), n = Math.min(...t), r = Math.max(...t) - n || 1, i = r * re / 84;
234
+ var ie = 8, ae = 10;
235
+ function oe(e) {
236
+ let t = e.map((e) => e.value), n = Math.min(...t), r = Math.max(...t) - n || 1, i = r * ie / 84;
236
237
  return [n - i, n + r + i];
237
238
  }
238
- function oe(e) {
239
- let { keys: t, label: n, window: r, offset: s, snapTimes: c, selection: l, selectedSegment: u, onSelect: d, onSelectSegment: f, onKeysInput: p, onKeysCommit: m } = e, g = S(null), [_, v] = C({
239
+ function se(e) {
240
+ let { keys: t, label: n, window: r, offset: s, snapTimes: c, selection: l, selectedSegment: u, onSelect: d, onSelectSegment: f, onKeysInput: m, onKeysCommit: h } = e, _ = C(null), [v, y] = w({
240
241
  width: 0,
241
242
  height: 0
242
243
  });
243
- y(() => {
244
- let e = g.current;
244
+ b(() => {
245
+ let e = _.current;
245
246
  if (!e) return;
246
247
  let t = () => {
247
248
  let t = e.getBoundingClientRect();
248
- v((e) => e.width === t.width && e.height === t.height ? e : {
249
+ y((e) => e.width === t.width && e.height === t.height ? e : {
249
250
  width: t.width,
250
251
  height: t.height
251
252
  });
@@ -254,18 +255,18 @@ function oe(e) {
254
255
  let n = new ResizeObserver(t);
255
256
  return n.observe(e), () => n.disconnect();
256
257
  }, []);
257
- let x = b(() => a({
258
+ let S = x(() => a({
258
259
  id: "keys",
259
260
  label: n,
260
261
  formatX: (e) => `${Math.round(e)} ms`,
261
262
  snapX: c.map((e) => e - s),
262
263
  xClamp: [0, Infinity],
263
- step: { x: ie }
264
+ step: { x: ae }
264
265
  }), [
265
266
  n,
266
267
  c,
267
268
  s
268
- ]), w = b(() => ({
269
+ ]), T = x(() => ({
269
270
  keys: t,
270
271
  selectedKey: l,
271
272
  selectedSegment: u,
@@ -274,42 +275,40 @@ function oe(e) {
274
275
  t,
275
276
  l,
276
277
  u
277
- ]), [T, D] = C(null), O = T ?? w, k = S(O);
278
- k.current = O;
279
- let A = b(() => [{
280
- layer: x,
281
- state: O
282
- }], [x, O]), j = (e, t) => {
283
- let n = t, r = k.current;
278
+ ]), [E, O] = w(null), k = E ?? T, A = p(k), j = x(() => [{
279
+ layer: S,
280
+ state: k
281
+ }], [S, k]), M = (e, t) => {
282
+ let n = t, r = A.current;
284
283
  if (n.selectedKey !== null && n.selectedKey !== r.selectedKey && d(n.selectedKey), n.selectedSegment !== null && n.selectedSegment !== r.selectedSegment && f?.(n.selectedSegment), !n.drag) {
285
- D(null);
284
+ O(null);
286
285
  return;
287
286
  }
288
- if (D(n), n.drag.kind !== "key") return;
287
+ if (O(n), n.drag.kind !== "key") return;
289
288
  let i = o(n).keys;
290
- i !== n.keys && p?.(i);
291
- }, M = (e, t, n) => {
292
- D(null);
289
+ i !== n.keys && m?.(i);
290
+ }, N = (e, t, n) => {
291
+ O(null);
293
292
  let r = t;
294
- r.keys !== n.keys && m(r.keys);
295
- }, [N, P] = ae(O.keys), F = _.width > 0 ? H(r, _.width, 64) : [];
296
- return /* @__PURE__ */ h("div", {
297
- ref: g,
298
- className: E.graphHost,
299
- children: _.width > 0 && _.height > 0 ? /* @__PURE__ */ h(i, {
300
- className: E.graph,
293
+ r.keys !== n.keys && h(r.keys);
294
+ }, [P, F] = oe(k.keys), I = v.width > 0 ? H(r, v.width, 64) : [];
295
+ return /* @__PURE__ */ g("div", {
296
+ ref: _,
297
+ className: D.graphHost,
298
+ children: v.width > 0 && v.height > 0 ? /* @__PURE__ */ g(i, {
299
+ className: D.graph,
301
300
  "aria-label": `${n} graph`,
302
- layers: A,
303
- onLayerChange: j,
304
- onLayerCommit: M,
305
- width: _.width,
306
- height: _.height,
301
+ layers: j,
302
+ onLayerChange: M,
303
+ onLayerCommit: N,
304
+ width: v.width,
305
+ height: v.height,
307
306
  xRange: [r.from - s, r.to - s],
308
- yRange: [N, P],
307
+ yRange: [P, F],
309
308
  grid: !1,
310
309
  axes: !1,
311
310
  xTicks: {
312
- values: F.map((e) => e - s),
311
+ values: I.map((e) => e - s),
313
312
  labels: !1
314
313
  },
315
314
  yTicks: {
@@ -322,36 +321,36 @@ function oe(e) {
322
321
  }
323
322
  //#endregion
324
323
  //#region src/components/Timeline/Lane.tsx
325
- var se = 10;
326
- function ce(e) {
324
+ var ce = 10;
325
+ function le(e) {
327
326
  return e.kind === "sampled" ? e.track.keys.map((e) => e.t) : e.kind === "event" ? e.track.events.map((e) => e.t) : [];
328
327
  }
329
- function le(e) {
330
- let { row: t, window: r, mode: i, selection: a, onSelect: o, onKeyInput: c, onKeyCommit: l, onInsert: d, onToggleExpand: f, expanded: p, snapTimes: _, selectedSegment: y = null, onSelectSegment: b, onKeysInput: x, onKeysCommit: w } = e, T = S(null), D = S(null);
331
- v(() => () => {
332
- D.current?.cancel();
328
+ function ue(e) {
329
+ let { row: t, window: r, mode: i, selection: a, onSelect: o, onKeyInput: c, onKeyCommit: l, onInsert: d, onToggleExpand: f, expanded: p, snapTimes: m, selectedSegment: v = null, onSelectSegment: b, onKeysInput: x, onKeysCommit: S } = e, T = C(null), E = C(null);
330
+ y(() => () => {
331
+ E.current?.cancel();
333
332
  }, []);
334
- let [O, k] = C(null), A = (e) => z(r, e + t.offset), j = (e) => {
333
+ let [O, k] = w(null), A = (e) => z(r, e + t.offset), j = (e) => {
335
334
  let n = T.current?.getBoundingClientRect();
336
- return n ? L(r, n.width).toMs(e - n.left) - t.offset : r.from;
335
+ return n ? R(r, n.width).toMs(e - n.left) - t.offset : r.from;
337
336
  }, M = () => {
338
- let e = T.current?.getBoundingClientRect().width ?? 0, t = L(r, e);
337
+ let e = T.current?.getBoundingClientRect().width ?? 0, t = R(r, e);
339
338
  return t.toMs(6) - t.toMs(0);
340
339
  }, N = i === "graph" && t.numeric, P = t.kind === "sampled" ? t.track.keys : [], F = (e) => (n) => {
341
340
  if (n.button !== 0) return;
342
341
  n.stopPropagation(), o(e);
343
342
  let r = (e) => {
344
343
  let n = Math.max(0, j(e.clientX));
345
- return e.altKey ? n : s(n + t.offset, _, M()) - t.offset;
344
+ return e.altKey ? n : s(n + t.offset, m, M()) - t.offset;
346
345
  };
347
346
  k({
348
347
  keyIndex: e,
349
- t: R[e]
348
+ t: L[e]
350
349
  });
351
350
  let i = () => {
352
- k(null), D.current = null;
351
+ k(null), E.current = null;
353
352
  };
354
- D.current?.cancel(), D.current = u(n.currentTarget, n, {
353
+ E.current?.cancel(), E.current = u(n.currentTarget, n, {
355
354
  onMove: (t) => {
356
355
  k({
357
356
  keyIndex: e,
@@ -364,50 +363,50 @@ function le(e) {
364
363
  onCancel: i
365
364
  }, { capture: !1 });
366
365
  }, I = (e, t) => (n) => {
367
- let r = se * (n.shiftKey ? 10 : 1);
366
+ let r = ce * (n.shiftKey ? 10 : 1);
368
367
  n.key === "ArrowRight" && (n.preventDefault(), l(e, t + r)), n.key === "ArrowLeft" && (n.preventDefault(), l(e, Math.max(0, t - r)));
369
- }, R = ce(t);
370
- return /* @__PURE__ */ g("div", {
371
- className: E.lane,
368
+ }, L = le(t);
369
+ return /* @__PURE__ */ _("div", {
370
+ className: D.lane,
372
371
  "data-depth": t.depth,
373
372
  "data-mode": i,
374
373
  "data-graph": N ? "true" : void 0,
375
- children: [/* @__PURE__ */ g("div", {
376
- className: E.laneLabel,
377
- children: [t.kind === "timeline" ? /* @__PURE__ */ h("span", {
374
+ children: [/* @__PURE__ */ _("div", {
375
+ className: D.laneLabel,
376
+ children: [t.kind === "timeline" ? /* @__PURE__ */ g("span", {
378
377
  role: "button",
379
378
  tabIndex: 0,
380
379
  "aria-expanded": p,
381
380
  "data-testid": "timeline-disclosure",
382
- className: E.disclosure,
381
+ className: D.disclosure,
383
382
  onClick: f,
384
383
  onKeyDown: (e) => {
385
384
  (e.key === "Enter" || e.key === " ") && (e.preventDefault(), f());
386
385
  },
387
- children: /* @__PURE__ */ h(n, { open: p })
386
+ children: /* @__PURE__ */ g(n, { open: p })
388
387
  }) : null, t.label]
389
- }), /* @__PURE__ */ h("div", {
390
- className: E.laneTrack,
388
+ }), /* @__PURE__ */ g("div", {
389
+ className: D.laneTrack,
391
390
  ref: T,
392
391
  "data-testid": "timeline-lane-track",
393
392
  onDoubleClick: (e) => {
394
393
  t.kind === "sampled" && d(Math.max(0, j(e.clientX)));
395
394
  },
396
- children: N ? /* @__PURE__ */ h(oe, {
395
+ children: N ? /* @__PURE__ */ g(se, {
397
396
  keys: P,
398
397
  label: t.label,
399
398
  window: r,
400
399
  offset: t.offset,
401
- snapTimes: _,
400
+ snapTimes: m,
402
401
  selection: a,
403
- selectedSegment: y,
402
+ selectedSegment: v,
404
403
  onSelect: o,
405
404
  onSelectSegment: b,
406
405
  onKeysInput: x,
407
- onKeysCommit: (e) => w?.(e)
408
- }) : /* @__PURE__ */ g(m, { children: [
409
- t.kind === "timeline" ? /* @__PURE__ */ h("div", {
410
- className: E.nestedBar,
406
+ onKeysCommit: (e) => S?.(e)
407
+ }) : /* @__PURE__ */ _(h, { children: [
408
+ t.kind === "timeline" ? /* @__PURE__ */ g("div", {
409
+ className: D.nestedBar,
411
410
  "data-testid": "timeline-nested",
412
411
  style: {
413
412
  left: A(0),
@@ -416,13 +415,13 @@ function le(e) {
416
415
  }) : null,
417
416
  t.kind === "sampled" ? P.slice(1).map((e, n) => {
418
417
  let i = n + 1;
419
- return /* @__PURE__ */ h("div", {
418
+ return /* @__PURE__ */ g("div", {
420
419
  role: "button",
421
420
  tabIndex: 0,
422
421
  "aria-label": `${t.label} segment into ${Math.round(e.t)} ms`,
423
- "aria-current": y === i ? "true" : void 0,
422
+ "aria-current": v === i ? "true" : void 0,
424
423
  "data-testid": "timeline-segment",
425
- className: E.segment,
424
+ className: D.segment,
426
425
  style: {
427
426
  left: A(P[i - 1].t),
428
427
  width: B(r, e.t - P[i - 1].t)
@@ -433,22 +432,22 @@ function le(e) {
433
432
  }
434
433
  }, `seg-${i}`);
435
434
  }) : null,
436
- R.map((e, n) => /* @__PURE__ */ h("div", {
435
+ L.map((e, n) => /* @__PURE__ */ g("div", {
437
436
  role: "button",
438
437
  tabIndex: 0,
439
438
  "aria-label": `${t.label} key at ${Math.round(e)} ms`,
440
439
  "aria-current": a === n ? "true" : void 0,
441
440
  "data-testid": t.kind === "event" ? "timeline-event" : "timeline-key",
442
441
  "data-dragging": O?.keyIndex === n ? "true" : void 0,
443
- className: t.kind === "event" ? E.eventMark : E.key,
442
+ className: t.kind === "event" ? D.eventMark : D.key,
444
443
  style: { left: A(e) },
445
444
  onPointerDown: F(n),
446
445
  onKeyDown: I(n, e)
447
446
  }, n)),
448
- O ? /* @__PURE__ */ h("div", {
447
+ O ? /* @__PURE__ */ g("div", {
449
448
  "aria-hidden": "true",
450
449
  "data-testid": "timeline-key-ghost",
451
- className: t.kind === "event" ? E.eventGhost : E.keyGhost,
450
+ className: t.kind === "event" ? D.eventGhost : D.keyGhost,
452
451
  style: { left: A(O.t) }
453
452
  }) : null
454
453
  ] })
@@ -457,17 +456,17 @@ function le(e) {
457
456
  }
458
457
  //#endregion
459
458
  //#region src/components/Timeline/Ruler.tsx
460
- var ue = .0015;
461
- function de(e) {
459
+ var de = .0015;
460
+ function fe(e) {
462
461
  return e >= 1e3 ? `${(e / 1e3).toFixed(e % 1e3 == 0 ? 0 : 2)}s` : `${Math.round(e)}ms`;
463
462
  }
464
- function fe(e) {
465
- let { window: t, bounds: n, playhead: r, onScrub: i, onWindowChange: a } = e, o = S(null), s = S(null);
466
- v(() => () => {
463
+ function pe(e) {
464
+ let { window: t, bounds: n, playhead: r, onScrub: i, onWindowChange: a } = e, o = C(null), s = C(null);
465
+ y(() => () => {
467
466
  s.current?.cancel();
468
467
  }, []);
469
- let [c, l] = C(0);
470
- y(() => {
468
+ let [c, l] = w(0);
469
+ b(() => {
471
470
  let e = o.current;
472
471
  if (!e) return;
473
472
  let t = () => l(e.getBoundingClientRect().width);
@@ -478,7 +477,7 @@ function fe(e) {
478
477
  let d = () => o.current?.getBoundingClientRect().width ?? 0, f = (e) => {
479
478
  let n = o.current?.getBoundingClientRect();
480
479
  if (!n) return t.from;
481
- let r = L(t, n.width).toMs(e - n.left);
480
+ let r = R(t, n.width).toMs(e - n.left);
482
481
  return Math.min(t.to, Math.max(t.from, r));
483
482
  }, p = (e) => {
484
483
  if (e.button !== 0) return;
@@ -494,102 +493,116 @@ function fe(e) {
494
493
  onCancel: t
495
494
  }, { capture: !1 });
496
495
  }, m = (e) => {
497
- if (e.ctrlKey) a(te(t, f(e.clientX), Math.exp(e.deltaY * ue), n));
496
+ if (e.ctrlKey) a(ne(t, f(e.clientX), Math.exp(e.deltaY * de), n));
498
497
  else {
499
498
  let r = d(), i = r === 0 ? 0 : (t.to - t.from) / r;
500
- a(ne(t, e.deltaY * i, n));
499
+ a(re(t, e.deltaY * i, n));
501
500
  }
502
- }, _ = H(t, c, 64), b = (e) => z(t, e);
503
- return /* @__PURE__ */ g("div", {
504
- className: E.ruler,
501
+ }, h = H(t, c, 64), v = (e) => z(t, e);
502
+ return /* @__PURE__ */ _("div", {
503
+ className: D.ruler,
505
504
  ref: o,
506
505
  "data-testid": "timeline-ruler",
507
506
  onPointerDown: p,
508
507
  onWheel: m,
509
- children: [_.map((e) => /* @__PURE__ */ h("span", {
510
- className: E.tick,
508
+ children: [h.map((e) => /* @__PURE__ */ g("span", {
509
+ className: D.tick,
511
510
  "data-testid": "timeline-tick",
512
- style: { left: b(e) },
513
- children: de(e)
514
- }, e)), /* @__PURE__ */ h("div", {
515
- className: E.playhead,
511
+ style: { left: v(e) },
512
+ children: fe(e)
513
+ }, e)), /* @__PURE__ */ g("div", {
514
+ className: D.playhead,
516
515
  "data-testid": "timeline-playhead",
517
- style: { left: b(r) }
516
+ style: { left: v(r) }
518
517
  })]
519
518
  });
520
519
  }
521
520
  //#endregion
522
521
  //#region src/components/Timeline/Transport.tsx
523
- var U = w({ symbol: "x" }), W = [
522
+ var U = T({ symbol: "x" }), W = [
524
523
  .25,
525
524
  .5,
526
525
  1,
527
526
  2,
528
527
  4
529
- ], G = (e) => `${(e / 1e3).toFixed(2)}s`;
530
- function K(n) {
528
+ ], G = (e) => `${(e / 1e3).toFixed(2)}s`, K = (e) => E(e, U).text;
529
+ function q(n) {
531
530
  let { paused: r, loop: i, rate: a, playhead: o, duration: s, onPlay: l, onPause: u, onLoopChange: d, onRateChange: f } = n, p = i !== !1 && i !== 0, m = W.includes(a) ? W : [...W, a].sort((e, t) => e - t);
532
- return /* @__PURE__ */ g("div", {
533
- className: E.transport,
531
+ return /* @__PURE__ */ _("div", {
532
+ className: D.transport,
534
533
  children: [
535
- /* @__PURE__ */ h("button", {
534
+ /* @__PURE__ */ g("button", {
536
535
  type: "button",
537
- className: E.transportButton,
536
+ className: D.transportButton,
538
537
  "aria-label": r ? "Play" : "Pause",
539
538
  onClick: r ? l : u,
540
- children: h(r ? t : e, { size: 14 })
539
+ children: g(r ? t : e, { size: 14 })
541
540
  }),
542
- /* @__PURE__ */ h("button", {
541
+ /* @__PURE__ */ g("button", {
543
542
  type: "button",
544
543
  role: "switch",
545
544
  "aria-checked": p,
546
545
  "aria-label": "Loop",
547
- className: E.transportButton,
546
+ className: D.transportButton,
548
547
  onClick: () => d(!p),
549
548
  children: "⟲"
550
549
  }),
551
- /* @__PURE__ */ g("div", {
552
- className: E.rate,
550
+ /* @__PURE__ */ _("div", {
551
+ className: D.rate,
553
552
  children: [
554
553
  "Rate",
555
- /* @__PURE__ */ h(c, {
554
+ /* @__PURE__ */ g(c, {
556
555
  ariaLabel: "Rate",
557
556
  items: m.map((e) => ({
558
557
  value: e,
559
- ariaLabel: T(e, U).spoken
558
+ ariaLabel: E(e, U).spoken
560
559
  })),
561
560
  value: a,
562
561
  onChange: f,
563
- formatLabel: (e) => T(e, U).text,
562
+ formatLabel: K,
564
563
  labels: "none",
565
- className: E.rateSlider
564
+ className: D.rateSlider
566
565
  }),
567
- /* @__PURE__ */ h("span", {
568
- className: E.rateReadout,
569
- children: T(a, U).text
566
+ /* @__PURE__ */ _("span", {
567
+ className: D.rateReadout,
568
+ children: [/* @__PURE__ */ g("span", { children: K(a) }), /* @__PURE__ */ g("span", {
569
+ className: D.sizer,
570
+ "aria-hidden": "true",
571
+ children: m.map((e) => /* @__PURE__ */ g("span", { children: K(e) }, e))
572
+ })]
570
573
  })
571
574
  ]
572
575
  }),
573
- /* @__PURE__ */ g("span", {
574
- className: E.time,
575
- "data-testid": "timeline-time",
576
- children: [
577
- G(o),
578
- " / ",
579
- G(s)
580
- ]
576
+ /* @__PURE__ */ _("span", {
577
+ className: D.time,
578
+ children: [/* @__PURE__ */ _("span", {
579
+ "data-testid": "timeline-time",
580
+ children: [
581
+ G(Math.min(Math.max(o, 0), s)),
582
+ " / ",
583
+ G(s)
584
+ ]
585
+ }), /* @__PURE__ */ g("span", {
586
+ className: D.sizer,
587
+ "aria-hidden": "true",
588
+ children: /* @__PURE__ */ _("span", { children: [
589
+ G(s),
590
+ " / ",
591
+ G(s)
592
+ ] })
593
+ })]
581
594
  })
582
595
  ]
583
596
  });
584
597
  }
585
598
  //#endregion
586
599
  //#region src/components/Timeline/lanes.ts
587
- function pe(e) {
600
+ function me(e) {
588
601
  if (e.kind !== "sampled") return !1;
589
602
  let t = e.keys;
590
603
  return t.length > 0 && t.every((e) => typeof e.value == "number");
591
604
  }
592
- function me(e, t) {
605
+ function he(e, t) {
593
606
  let n = [], r = (e, i, a, o) => {
594
607
  e.forEach((e, s) => {
595
608
  let c = [...i, s], l = c.join(".");
@@ -601,13 +614,13 @@ function me(e, t) {
601
614
  depth: a,
602
615
  offset: o,
603
616
  kind: e.kind,
604
- numeric: pe(e)
617
+ numeric: me(e)
605
618
  }), e.kind === "timeline" && t.has(l) && r(e.timeline.tracks, c, a + 1, o + e.at);
606
619
  });
607
620
  };
608
621
  return r(e, [], 0, 0), n;
609
622
  }
610
- function q(e, t) {
623
+ function J(e, t) {
611
624
  let n = e, r;
612
625
  for (let e of t) {
613
626
  if (r = n[e], !r) return;
@@ -617,22 +630,22 @@ function q(e, t) {
617
630
  }
618
631
  //#endregion
619
632
  //#region src/components/Timeline/keys.ts
620
- function J(e, t) {
633
+ function Y(e, t) {
621
634
  return e.length === t.length && e.every((e, n) => e === t[n]);
622
635
  }
623
- function Y(e, t) {
636
+ function X(e, t) {
624
637
  return {
625
638
  ...e,
626
639
  keys: t
627
640
  };
628
641
  }
629
- function he(e, t) {
642
+ function ge(e, t) {
630
643
  return {
631
644
  ...e,
632
645
  events: t
633
646
  };
634
647
  }
635
- function X(e, t, n) {
648
+ function Z(e, t, n) {
636
649
  let r = e.slice(), [i, ...a] = t;
637
650
  if (a.length === 0) return r[i] = n, r;
638
651
  let o = r[i];
@@ -642,19 +655,19 @@ function X(e, t, n) {
642
655
  ...s,
643
656
  timeline: {
644
657
  ...s.timeline,
645
- tracks: X(s.timeline.tracks, a, n)
658
+ tracks: Z(s.timeline.tracks, a, n)
646
659
  }
647
660
  }, r;
648
661
  }
649
- function Z(e, t, n) {
650
- let r = q(e, t.trackPath), i = Math.max(0, n);
662
+ function Q(e, t, n) {
663
+ let r = J(e, t.trackPath), i = Math.max(0, n);
651
664
  if (r?.kind === "sampled") {
652
665
  let n = r, a = {
653
666
  ...n.keys[t.keyIndex],
654
667
  t: i
655
668
  }, o = n.keys.filter((e, n) => n !== t.keyIndex), s = o.findIndex((e) => e.t > i), c = s === -1 ? o.length : s;
656
669
  return o.splice(c, 0, a), {
657
- tracks: X(e, t.trackPath, Y(r, o)),
670
+ tracks: Z(e, t.trackPath, X(r, o)),
658
671
  selection: {
659
672
  trackPath: t.trackPath,
660
673
  keyIndex: c
@@ -667,7 +680,7 @@ function Z(e, t, n) {
667
680
  t: i
668
681
  }, o = n.events.filter((e, n) => n !== t.keyIndex), s = o.findIndex((e) => e.t > i), c = s === -1 ? o.length : s;
669
682
  return o.splice(c, 0, a), {
670
- tracks: X(e, t.trackPath, he(r, o)),
683
+ tracks: Z(e, t.trackPath, ge(r, o)),
671
684
  selection: {
672
685
  trackPath: t.trackPath,
673
686
  keyIndex: c
@@ -679,8 +692,8 @@ function Z(e, t, n) {
679
692
  selection: t
680
693
  };
681
694
  }
682
- function ge(e, t, n) {
683
- let r = q(e, t);
695
+ function _e(e, t, n) {
696
+ let r = J(e, t);
684
697
  if (r?.kind !== "sampled") return {
685
698
  tracks: e.slice(),
686
699
  selection: null
@@ -690,60 +703,60 @@ function ge(e, t, n) {
690
703
  t: a,
691
704
  value: o
692
705
  }), {
693
- tracks: X(e, t, Y(r, s)),
706
+ tracks: Z(e, t, X(r, s)),
694
707
  selection: {
695
708
  trackPath: t,
696
709
  keyIndex: l
697
710
  }
698
711
  };
699
712
  }
700
- function _e(e, t) {
701
- let n = q(e, t.trackPath);
713
+ function ve(e, t) {
714
+ let n = J(e, t.trackPath);
702
715
  if (n?.kind !== "sampled") return {
703
716
  tracks: e.slice(),
704
717
  selection: t
705
718
  };
706
719
  let r = n.keys.filter((e, n) => n !== t.keyIndex);
707
720
  return {
708
- tracks: X(e, t.trackPath, Y(n, r)),
721
+ tracks: Z(e, t.trackPath, X(n, r)),
709
722
  selection: r.length === 0 ? null : {
710
723
  trackPath: t.trackPath,
711
724
  keyIndex: Math.max(0, t.keyIndex - 1)
712
725
  }
713
726
  };
714
727
  }
715
- function Q(e, t, n) {
716
- let r = q(e, t.trackPath);
728
+ function $(e, t, n) {
729
+ let r = J(e, t.trackPath);
717
730
  if (r?.kind !== "sampled") return e.slice();
718
731
  let i = r.keys.slice(), { easing: a, ...o } = i[t.keyIndex];
719
732
  return i[t.keyIndex] = n === void 0 ? o : {
720
733
  ...o,
721
734
  easing: n
722
- }, X(e, t.trackPath, Y(r, i));
735
+ }, Z(e, t.trackPath, X(r, i));
723
736
  }
724
- function $(e, t, n) {
725
- let r = q(e, t);
726
- return r?.kind === "sampled" ? X(e, t, Y(r, n.slice())) : e.slice();
737
+ function ye(e, t, n) {
738
+ let r = J(e, t);
739
+ return r?.kind === "sampled" ? Z(e, t, X(r, n.slice())) : e.slice();
727
740
  }
728
- function ve(e, t, n) {
729
- let r = q(e, t.trackPath);
741
+ function be(e, t, n) {
742
+ let r = J(e, t.trackPath);
730
743
  if (r?.kind !== "sampled") return e.slice();
731
744
  let i = r.keys.slice();
732
745
  return i[t.keyIndex] = {
733
746
  ...i[t.keyIndex],
734
747
  value: n
735
- }, X(e, t.trackPath, Y(r, i));
748
+ }, Z(e, t.trackPath, X(r, i));
736
749
  }
737
750
  //#endregion
738
751
  //#region src/components/Timeline/Timeline.tsx
739
- function ye(e) {
740
- let { tracks: t, duration: n, playhead: r, onInput: i, onChange: a, onScrub: o, renderKeyEditor: s, label: c, className: l } = e, [u, d] = C(() => /* @__PURE__ */ new Set()), [f, p] = C({
752
+ function xe(e) {
753
+ let { tracks: t, duration: n, playhead: r, onInput: i, onChange: a, onScrub: o, renderKeyEditor: s, label: c, className: l } = e, [u, d] = w(() => /* @__PURE__ */ new Set()), [f, p] = w({
741
754
  from: 0,
742
755
  to: n
743
- }), [m, _] = C(null), [v, y] = C(null), x = e.window ?? f, S = e.onWindowChange ?? p, w = e.selection === void 0 ? m : e.selection, T = e.onSelect ?? _, D = {
756
+ }), [m, h] = w(null), [v, y] = w(null), b = e.window ?? f, S = e.onWindowChange ?? p, C = e.selection === void 0 ? m : e.selection, T = e.onSelect ?? h, E = {
744
757
  from: 0,
745
758
  to: n
746
- }, O = b(() => me(t, u), [t, u]), k = b(() => {
759
+ }, O = x(() => he(t, u), [t, u]), k = x(() => {
747
760
  let e = /* @__PURE__ */ new Set([0, n]);
748
761
  for (let t of O) if (t.kind === "sampled") for (let n of t.track.keys) e.add(n.t + t.offset);
749
762
  return [...e];
@@ -753,25 +766,25 @@ function ye(e) {
753
766
  return n.has(e) ? n.delete(e) : n.add(e), n;
754
767
  });
755
768
  }, j = (e) => {
756
- if ((e.key === "Delete" || e.key === "Backspace") && w) {
769
+ if ((e.key === "Delete" || e.key === "Backspace") && C) {
757
770
  e.preventDefault();
758
- let n = _e(t, w);
771
+ let n = ve(t, C);
759
772
  a(n.tracks), T(n.selection);
760
773
  }
761
- }, M = w ? q(t, w.trackPath) : void 0, N = M?.kind === "sampled" ? M.keys[w.keyIndex] : void 0, P = v ? q(t, v.trackPath) : void 0, I = P?.kind === "sampled" ? P.keys[v.keyIndex] : void 0;
762
- return /* @__PURE__ */ g("div", {
763
- className: [E.root, l].filter(Boolean).join(" "),
774
+ }, M = C ? J(t, C.trackPath) : void 0, N = M?.kind === "sampled" ? M.keys[C.keyIndex] : void 0, P = v ? J(t, v.trackPath) : void 0, F = P?.kind === "sampled" ? P.keys[v.keyIndex] : void 0;
775
+ return /* @__PURE__ */ _("div", {
776
+ className: [D.root, l].filter(Boolean).join(" "),
764
777
  "data-testid": "timeline-root",
765
778
  tabIndex: -1,
766
779
  onKeyDown: j,
767
780
  children: [
768
- c ? /* @__PURE__ */ h("div", {
769
- className: E.label,
781
+ c ? /* @__PURE__ */ g("div", {
782
+ className: D.label,
770
783
  children: c
771
784
  }) : null,
772
- e.transport === !1 ? null : /* @__PURE__ */ g("div", {
773
- className: E.transportRow,
774
- children: [/* @__PURE__ */ h(K, {
785
+ e.transport === !1 ? null : /* @__PURE__ */ _("div", {
786
+ className: D.transportRow,
787
+ children: [/* @__PURE__ */ g(q, {
775
788
  ...e.transport ?? {
776
789
  paused: !0,
777
790
  loop: !1,
@@ -783,38 +796,38 @@ function ye(e) {
783
796
  },
784
797
  playhead: r,
785
798
  duration: n
786
- }), /* @__PURE__ */ h("button", {
799
+ }), /* @__PURE__ */ g("button", {
787
800
  type: "button",
788
801
  role: "switch",
789
802
  "aria-checked": (e.mode ?? "dope") === "graph",
790
803
  "aria-label": "Graph mode",
791
- className: E.transportButton,
804
+ className: D.transportButton,
792
805
  onClick: () => e.onModeChange?.((e.mode ?? "dope") === "graph" ? "dope" : "graph"),
793
806
  children: "Graph"
794
807
  })]
795
808
  }),
796
- /* @__PURE__ */ g("div", {
797
- className: E.body,
798
- children: [/* @__PURE__ */ h("div", { className: E.gutter }), /* @__PURE__ */ h("div", {
799
- className: E.rulerWrap,
800
- children: /* @__PURE__ */ h(fe, {
801
- window: x,
802
- bounds: D,
809
+ /* @__PURE__ */ _("div", {
810
+ className: D.body,
811
+ children: [/* @__PURE__ */ g("div", { className: D.gutter }), /* @__PURE__ */ g("div", {
812
+ className: D.rulerWrap,
813
+ children: /* @__PURE__ */ g(pe, {
814
+ window: b,
815
+ bounds: E,
803
816
  playhead: r,
804
817
  onScrub: o,
805
818
  onWindowChange: S
806
819
  })
807
820
  })]
808
821
  }),
809
- /* @__PURE__ */ h("div", {
810
- className: E.lanes,
822
+ /* @__PURE__ */ g("div", {
823
+ className: D.lanes,
811
824
  children: O.map((n) => {
812
825
  let r = n.path;
813
- return /* @__PURE__ */ h(le, {
826
+ return /* @__PURE__ */ g(ue, {
814
827
  row: n,
815
- window: x,
828
+ window: b,
816
829
  mode: e.mode ?? "dope",
817
- selection: w && J(w.trackPath, r) ? w.keyIndex : null,
830
+ selection: C && Y(C.trackPath, r) ? C.keyIndex : null,
818
831
  expanded: u.has(n.key),
819
832
  snapTimes: k,
820
833
  onToggleExpand: () => A(n.key),
@@ -823,25 +836,25 @@ function ye(e) {
823
836
  keyIndex: e
824
837
  }),
825
838
  onKeyInput: (e, n) => {
826
- i?.(Z(t, {
839
+ i?.(Q(t, {
827
840
  trackPath: r,
828
841
  keyIndex: e
829
842
  }, n).tracks);
830
843
  },
831
844
  onKeyCommit: (e, n) => {
832
- let i = Z(t, {
845
+ let i = Q(t, {
833
846
  trackPath: r,
834
847
  keyIndex: e
835
848
  }, n);
836
849
  a(i.tracks), T(i.selection);
837
850
  },
838
- onKeysInput: (e) => i?.($(t, r, e)),
839
- onKeysCommit: (e) => a($(t, r, e)),
851
+ onKeysInput: (e) => i?.(ye(t, r, e)),
852
+ onKeysCommit: (e) => a(ye(t, r, e)),
840
853
  onInsert: (e) => {
841
- let n = ge(t, r, e);
854
+ let n = _e(t, r, e);
842
855
  a(n.tracks), T(n.selection);
843
856
  },
844
- selectedSegment: v && J(v.trackPath, r) ? v.keyIndex : null,
857
+ selectedSegment: v && Y(v.trackPath, r) ? v.keyIndex : null,
845
858
  onSelectSegment: (e) => y({
846
859
  trackPath: r,
847
860
  keyIndex: e
@@ -849,21 +862,21 @@ function ye(e) {
849
862
  }, n.key);
850
863
  })
851
864
  }),
852
- s && w && N && M?.kind === "sampled" ? /* @__PURE__ */ h("div", {
853
- className: E.inspector,
865
+ s && C && N && M?.kind === "sampled" ? /* @__PURE__ */ g("div", {
866
+ className: D.inspector,
854
867
  children: s({
855
868
  key: N,
856
869
  track: M,
857
- selection: w,
858
- commit: (e) => a(ve(t, w, e.value)),
859
- setEasing: (e) => a(Q(t, w, e))
870
+ selection: C,
871
+ commit: (e) => a(be(t, C, e.value)),
872
+ setEasing: (e) => a($(t, C, e))
860
873
  })
861
874
  }) : null,
862
- v && I ? /* @__PURE__ */ h("div", {
863
- className: E.inspector,
864
- children: /* @__PURE__ */ h(F, {
865
- value: I.easing,
866
- onChange: (e) => a(Q(t, v, e))
875
+ v && F ? /* @__PURE__ */ g("div", {
876
+ className: D.inspector,
877
+ children: /* @__PURE__ */ g(I, {
878
+ value: F.easing,
879
+ onChange: (e) => a($(t, v, e))
867
880
  })
868
881
  }) : null
869
882
  ]
@@ -871,20 +884,20 @@ function ye(e) {
871
884
  }
872
885
  //#endregion
873
886
  //#region src/components/Timeline/AnimatedTimeline.tsx
874
- function be(e) {
875
- let { handle: t, ...n } = e, [, r] = x((e) => e + 1, 0);
876
- v(() => t.subscribe(r), [t]);
877
- let i = S(null), a = p(() => {
878
- r(), t.isPaused() || i.current?.request();
879
- });
880
- i.current = a, v(() => (t.isPaused() || a.request(), () => a.cancel()), [t, a]);
881
- let o = _((e) => {
887
+ function Se(e) {
888
+ let { handle: t, ...n } = e, [, r] = S((e) => e + 1, 0);
889
+ y(() => t.subscribe(r), [t]);
890
+ let i = m(() => {
891
+ r(), t.isPaused() || a.current.request();
892
+ }), a = p(i);
893
+ y(() => (t.isPaused() || i.request(), () => i.cancel()), [t, i]);
894
+ let o = v((e) => {
882
895
  t.edit(() => {
883
896
  let n = t.tracks();
884
897
  n.splice(0, n.length, ...e);
885
898
  });
886
899
  }, [t]), s = t.time(), c = t.duration();
887
- return /* @__PURE__ */ h(ye, {
900
+ return /* @__PURE__ */ g(xe, {
888
901
  ...n,
889
902
  tracks: t.tracks(),
890
903
  duration: c,
@@ -896,7 +909,7 @@ function be(e) {
896
909
  loop: t.loop(),
897
910
  rate: t.timeScale(),
898
911
  onPlay: () => {
899
- t.time() >= c && t.seek(0), t.resume(), a.request(), r();
912
+ t.time() >= c && t.seek(0), t.resume(), i.request(), r();
900
913
  },
901
914
  onPause: () => {
902
915
  t.pause(), r();
@@ -911,6 +924,6 @@ function be(e) {
911
924
  });
912
925
  }
913
926
  //#endregion
914
- export { F as a, k as c, K as i, A as l, ye as n, j as o, J as r, O as s, be as t };
927
+ export { I as a, A as c, q as i, j as l, xe as n, M as o, Y as r, k as s, Se as t };
915
928
 
916
- //# sourceMappingURL=Timeline-B39cwfMB.js.map
929
+ //# sourceMappingURL=Timeline-sMCH2fah.js.map