@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.
@@ -2121,6 +2121,8 @@ function GenreTreeView({
2121
2121
  onArtistExpandedChange,
2122
2122
  getShareUrl,
2123
2123
  extraSearchGroups = [],
2124
+ onSearchQueryChange,
2125
+ onSearchFocus,
2124
2126
  artistSearch = true,
2125
2127
  onArtistSelect,
2126
2128
  artistSearchBaseUrl,
@@ -2550,7 +2552,11 @@ function GenreTreeView({
2550
2552
  selectedName: selectedGenrePlaylist?.name ?? (typeof builtInPanel?.title === "string" ? builtInPanel.title : null),
2551
2553
  onClear: builtInSongPanel ? () => changeSong(null) : builtInArtistPanel ? () => changeArtist(null) : handleGenreSearchClear,
2552
2554
  onPrevious: handlePrevious,
2553
- onQueryChange: artistSearch || songSearch || extraSearchGroups.length > 0 ? setSearchText : void 0,
2555
+ onQueryChange: (text) => {
2556
+ setSearchText(text);
2557
+ onSearchQueryChange?.(text);
2558
+ },
2559
+ onFocus: onSearchFocus,
2554
2560
  extraGroups
2555
2561
  }
2556
2562
  ),
@@ -3361,4 +3367,4 @@ export {
3361
3367
  GenreTreeViewSkeleton2 as GenreTreeViewSkeleton,
3362
3368
  GenreTreeOutlineSkeleton
3363
3369
  };
3364
- //# sourceMappingURL=chunk-FHGQGTCN.js.map
3370
+ //# sourceMappingURL=chunk-QMELESFB.js.map