@behindthemusictree/app-kit-ui 33.2.0 → 33.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2358,6 +2358,8 @@ function GenreTreeView({
2358
2358
  onArtistExpandedChange,
2359
2359
  getShareUrl,
2360
2360
  extraSearchGroups = [],
2361
+ onSearchQueryChange,
2362
+ onSearchFocus,
2361
2363
  artistSearch = true,
2362
2364
  onArtistSelect,
2363
2365
  artistSearchBaseUrl,
@@ -2787,7 +2789,11 @@ function GenreTreeView({
2787
2789
  selectedName: selectedGenrePlaylist?.name ?? (typeof builtInPanel?.title === "string" ? builtInPanel.title : null),
2788
2790
  onClear: builtInSongPanel ? () => changeSong(null) : builtInArtistPanel ? () => changeArtist(null) : handleGenreSearchClear,
2789
2791
  onPrevious: handlePrevious,
2790
- onQueryChange: artistSearch || songSearch || extraSearchGroups.length > 0 ? setSearchText : void 0,
2792
+ onQueryChange: (text) => {
2793
+ setSearchText(text);
2794
+ onSearchQueryChange?.(text);
2795
+ },
2796
+ onFocus: onSearchFocus,
2791
2797
  extraGroups
2792
2798
  }
2793
2799
  ),