@behindthemusictree/app-kit 33.1.0 → 33.2.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.
@@ -1,5 +1,5 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
- import { InfiniteData } from '@tanstack/react-query';
2
+ import { QueryKey, InfiniteData } from '@tanstack/react-query';
3
3
  import * as zod from 'zod';
4
4
  import { z } from 'zod';
5
5
  import { S as Scope } from '../scope-BoMVOHmz.js';
@@ -2947,7 +2947,7 @@ interface UseSongSearchResult {
2947
2947
  /** True from the first typed character past the minimum until results arrive or the search fails; covers the debounce. */
2948
2948
  pending: boolean;
2949
2949
  }
2950
- declare function useSongSearch(getBackendBaseUrl: () => string, text: string): UseSongSearchResult;
2950
+ declare function useSongSearch(getBackendBaseUrl: () => string, text: string, options?: Omit<SongSearchParams, "q">): UseSongSearchResult;
2951
2951
 
2952
2952
  /** The artist's footprint on the canonical tree (sparse: non-zero genre playlists only). Idle while `artistUuid` is null. */
2953
2953
  declare function useArtistGenreCounts(artistUuid: string | null, getBackendBaseUrl: () => string): _tanstack_react_query.UseQueryResult<NoInfer<{
@@ -3006,8 +3006,142 @@ interface UseGenreSearchResult<T extends CriteriaPlaylistSimple = CriteriaPlayli
3006
3006
  clear: () => void;
3007
3007
  select: (genrePlaylist: T) => void;
3008
3008
  }
3009
+ /** In-memory genre search over already-loaded genre playlists. */
3009
3010
  declare function useGenreSearch<T extends CriteriaPlaylistSimple = CriteriaPlaylistSimple>({ genrePlaylists, onSelect, selectedName, onClear, }: UseGenreSearchOptions<T>): UseGenreSearchResult<T>;
3010
3011
 
3012
+ declare const GenreSearchTreeNameSchema: z.ZodEnum<{
3013
+ canonical: "canonical";
3014
+ regional: "regional";
3015
+ }>;
3016
+ type GenreSearchTreeName = z.infer<typeof GenreSearchTreeNameSchema>;
3017
+ declare const GenreSearchResultSchema: z.ZodObject<{
3018
+ uuid: z.core.$ZodBranded<z.ZodString, "GenreUuid", "out">;
3019
+ name: z.ZodString;
3020
+ treeName: z.ZodString;
3021
+ genrePlaylistUuid: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "GenrePlaylistUuid", "out">>;
3022
+ root: z.ZodObject<{
3023
+ uuid: z.core.$ZodBranded<z.ZodString, "GenreUuid", "out">;
3024
+ name: z.ZodString;
3025
+ }, z.core.$strip>;
3026
+ isUmbrella: z.ZodBoolean;
3027
+ viewsCount: z.ZodNumber;
3028
+ }, z.core.$strip>;
3029
+ declare const GenreSearchResultsSchema: z.ZodArray<z.ZodObject<{
3030
+ uuid: z.core.$ZodBranded<z.ZodString, "GenreUuid", "out">;
3031
+ name: z.ZodString;
3032
+ treeName: z.ZodString;
3033
+ genrePlaylistUuid: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "GenrePlaylistUuid", "out">>;
3034
+ root: z.ZodObject<{
3035
+ uuid: z.core.$ZodBranded<z.ZodString, "GenreUuid", "out">;
3036
+ name: z.ZodString;
3037
+ }, z.core.$strip>;
3038
+ isUmbrella: z.ZodBoolean;
3039
+ viewsCount: z.ZodNumber;
3040
+ }, z.core.$strip>>;
3041
+ type GenreSearchResult = z.infer<typeof GenreSearchResultSchema>;
3042
+ interface GenreSearchParams {
3043
+ q: string;
3044
+ limit?: number;
3045
+ treeName?: GenreSearchTreeName;
3046
+ }
3047
+ /** One entry of `regions/map/genres/`: a genre the region map index references, keyed by Wikidata id. */
3048
+ declare const RegionGenreLexiconEntrySchema: z.ZodObject<{
3049
+ wikidataId: z.ZodString;
3050
+ uuid: z.core.$ZodBranded<z.ZodString, "GenreUuid", "out">;
3051
+ name: z.ZodString;
3052
+ treeName: z.ZodString;
3053
+ genrePlaylistUuid: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "GenrePlaylistUuid", "out">>;
3054
+ isUmbrella: z.ZodBoolean;
3055
+ viewsCount: z.ZodNumber;
3056
+ }, z.core.$strip>;
3057
+ declare const RegionGenreLexiconSchema: z.ZodArray<z.ZodObject<{
3058
+ wikidataId: z.ZodString;
3059
+ uuid: z.core.$ZodBranded<z.ZodString, "GenreUuid", "out">;
3060
+ name: z.ZodString;
3061
+ treeName: z.ZodString;
3062
+ genrePlaylistUuid: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "GenrePlaylistUuid", "out">>;
3063
+ isUmbrella: z.ZodBoolean;
3064
+ viewsCount: z.ZodNumber;
3065
+ }, z.core.$strip>>;
3066
+ type RegionGenreLexiconEntry = z.infer<typeof RegionGenreLexiconEntrySchema>;
3067
+
3068
+ interface UseGenreRemoteSearchOptions {
3069
+ treeName?: GenreSearchTreeName;
3070
+ limit?: number;
3071
+ enabled?: boolean;
3072
+ }
3073
+ interface UseGenreRemoteSearchResult {
3074
+ genres: GenreSearchResult[];
3075
+ isError: boolean;
3076
+ settled: boolean;
3077
+ pending: boolean;
3078
+ }
3079
+ /** Ranked server-side genre search (`genres/search/`) across the canonical and regional trees. */
3080
+ declare function useGenreRemoteSearch(getBackendBaseUrl: () => string, text: string, { treeName, limit, enabled }?: UseGenreRemoteSearchOptions): UseGenreRemoteSearchResult;
3081
+
3082
+ declare const SEARCH_DEBOUNCE_MS = 250;
3083
+ /** Mirrors the API's `SEARCH_QUERY_LEN_MIN`. */
3084
+ declare const SEARCH_QUERY_MIN_LENGTH = 2;
3085
+ interface UseRemoteSearchOptions<TSchema extends z.ZodTypeAny> {
3086
+ /** Builds the cache key from the debounced, trimmed query. */
3087
+ queryKey: (query: string) => QueryKey;
3088
+ endpoint: string;
3089
+ /** Builds the request params from the debounced, trimmed query. */
3090
+ params: (query: string) => Record<string, string | number | boolean>;
3091
+ schema: TSchema;
3092
+ context: string;
3093
+ text: string;
3094
+ /** Extra gate besides the minimum length, e.g. playback readiness. */
3095
+ enabled?: boolean;
3096
+ /** Keep the previous results while the next query loads. */
3097
+ keepPrevious?: boolean;
3098
+ }
3099
+ interface UseRemoteSearchResult<T> {
3100
+ results: T[];
3101
+ isError: boolean;
3102
+ /** True once the debounced query has caught up with the typed one and its fetch has finished. */
3103
+ settled: boolean;
3104
+ /** True from the first typed character past the minimum until results arrive or the search fails; covers the debounce. */
3105
+ pending: boolean;
3106
+ }
3107
+ /** Debounced typeahead against a search endpoint; the shared core of the artist, song and genre searches. */
3108
+ declare function useRemoteSearch<TSchema extends z.ZodType<unknown[]>>(getBackendBaseUrl: () => string, { queryKey, endpoint, params, schema, context, text, enabled: extraEnabled, keepPrevious }: UseRemoteSearchOptions<TSchema>): UseRemoteSearchResult<z.infer<TSchema>[number]>;
3109
+
3110
+ interface UseSearchQueryStateOptions {
3111
+ /** Name of the currently selected item; fills the query whenever it changes. */
3112
+ selectedName?: string | null;
3113
+ /** Called by `clear`, after it empties the query. */
3114
+ onClear?: () => void;
3115
+ }
3116
+ interface UseSearchQueryStateResult {
3117
+ query: string;
3118
+ setQuery: (query: string) => void;
3119
+ /** True when the query is a typed one, not the refill from the selection. */
3120
+ isTyping: boolean;
3121
+ /** Whether there is anything to clear (a typed query or a selected item). */
3122
+ canClear: boolean;
3123
+ clear: () => void;
3124
+ /** Call when an item is picked; refills the query via `selectedName` once the selection changes. */
3125
+ notifyPick: (pickedName: string) => void;
3126
+ }
3127
+ /** Query text of a search box and its link to the selected item; independent of where results come from. */
3128
+ declare function useSearchQueryState({ selectedName, onClear }?: UseSearchQueryStateOptions): UseSearchQueryStateResult;
3129
+
3130
+ /** Every genre the region map index references, loaded once on demand (`regions/map/genres/`). */
3131
+ declare function useRegionGenreLexicon(getBackendBaseUrl: () => string, enabled: boolean): {
3132
+ entries: {
3133
+ wikidataId: string;
3134
+ uuid: string & zod.$brand<"GenreUuid">;
3135
+ name: string;
3136
+ treeName: string;
3137
+ genrePlaylistUuid: (string & zod.$brand<"GenrePlaylistUuid">) | null;
3138
+ isUmbrella: boolean;
3139
+ viewsCount: number;
3140
+ }[];
3141
+ isError: boolean;
3142
+ isPending: boolean;
3143
+ };
3144
+
3011
3145
  type GenreViewMode = "stacked" | "wheel" | "pop-core" | "outline";
3012
3146
  interface UseGenreTreeViewStateOptions<O extends CriteriaOverview = CriteriaOverview> {
3013
3147
  scope: Scope;
@@ -3477,6 +3611,10 @@ declare const genreQueryKeys: {
3477
3611
  overview: (id: GenreUuid) => readonly ["referenceGenres", "overview", string & zod.$brand<"GenreUuid">];
3478
3612
  };
3479
3613
  };
3614
+ declare const genreSearchQueryKeys: {
3615
+ search: (params: GenreSearchParams) => readonly ["genreSearch", GenreSearchParams];
3616
+ regionLexicon: () => readonly ["regionGenreLexicon"];
3617
+ };
3480
3618
  declare const genreUpdateMutationKey: readonly ["genres", "update"];
3481
3619
 
3482
3620
  declare const genreEndpoints: {
@@ -3496,6 +3634,8 @@ declare const genreEndpoints: {
3496
3634
  update: (id: GenreUuid) => string;
3497
3635
  delete: (id: GenreUuid) => string;
3498
3636
  };
3637
+ search: () => string;
3638
+ regionLexicon: () => string;
3499
3639
  };
3500
3640
 
3501
3641
  declare const artistQueryKeys: {
@@ -3625,9 +3765,20 @@ declare const hasMainstreamPopRoot: (nodes: {
3625
3765
  */
3626
3766
  declare const pruneGenrePlaylistsForArtist: (playlists: CriteriaPlaylistSimple[], counts: ArtistGenreCount[]) => CriteriaPlaylistSimple[];
3627
3767
 
3628
- /** Case-insensitive substring match on genre name. An empty/whitespace query matches nothing. */
3768
+ /** Ranked, accent-insensitive name match (exact, prefix, substring, fuzzy). An empty/whitespace query matches nothing. */
3629
3769
  declare const searchGenrePlaylistsByName: <T extends CriteriaPlaylistSimple>(genrePlaylists: T[], query: string) => T[];
3630
3770
 
3771
+ /** NFD-decompose, strip diacritics and casefold, so "Bossa Nová" and "bossa nova" compare equal. */
3772
+ declare const foldSearchText: (text: string) => string;
3773
+ /** Jaccard similarity of the accent-folded trigram sets, 0..1. */
3774
+ declare const trigramSimilarity: (a: string, b: string) => number;
3775
+ declare const FUZZY_MIN_SIMILARITY = 0.3;
3776
+ /**
3777
+ * Ranks `items` against `query` like the API's typeahead does: exact name, then prefix, then substring,
3778
+ * then accent-folded trigram similarity; ties break on `getViews` (descending) then name. An empty query matches nothing.
3779
+ */
3780
+ declare function rankByName<T>(items: readonly T[], query: string, getName: (item: T) => string, getViews?: (item: T) => number): T[];
3781
+
3631
3782
  type ReparentCandidate = CriteriaPlaylistSimple & {
3632
3783
  criteria: CriteriaMinimum;
3633
3784
  };
@@ -3649,4 +3800,4 @@ type SongsPage = {
3649
3800
  */
3650
3801
  declare function editGenreSongPages<P extends SongsPage>(data: InfiniteData<P> | undefined, edit: (tracks: P["tracks"]) => P["tracks"]): InfiniteData<P> | undefined;
3651
3802
 
3652
- export { ARTIST_LINK_KINDS, type AlbumMinimum, AlbumMinimumSchema, type ArtistAlbum, type ArtistDetailed, ArtistDetailedSchema, type ArtistGenreCount, ArtistGenreCountSchema, type ArtistImage, ArtistImageSchema, type ArtistLink, type ArtistMembership, type ArtistMinimum, ArtistMinimumSchema, ArtistNames, type ArtistSearchResult, ArtistSearchResultSchema, ArtistSearchResultsSchema, type ArtistSongsOrdering, type ArtistTrackListOriginInput, CriteriaCreationSchema, type CriteriaCreationValues, type CriteriaDetailed, CriteriaDetailedSchema, type CriteriaLineageRelWithoutAscendant, CriteriaLineageRelWithoutAscendantSchema, type CriteriaLineageRelWithoutDescendant, CriteriaLineageRelWithoutDescendantSchema, type CriteriaMinimum, CriteriaMinimumSchema, type CriteriaOverview, CriteriaOverviewSchema, type CriteriaPlaylistDetailed, CriteriaPlaylistDetailedSchema, type CriteriaPlaylistMinimum, CriteriaPlaylistMinimumSchema, type CriteriaPlaylistSimple, CriteriaPlaylistSimpleSchema, type CriteriaSimple, CriteriaSimpleSchema, CriteriaUpdateSchema, type CriteriaUpdateValues, FORM_RATING_NULL_VALUE, type GenrePlaylistTracksPage, GenrePlaylistUuid, GenreUuid, type GenreViewMode, MbArtistDetailedSchema, MbRecordingDetailedSchema, type MusicbrainzArtistDetailed, type MusicbrainzRecordingDetailed, NO_VIDEO_LABEL, type PlayArtistOptions, type PlayGenrePlaylistOptions, type RenderArtistLink, type RenderSongLink, type ReparentCandidate, type SongDetailed, SongDetailedSchema, type SongHistoryEntry, SongHistoryEntrySchema, SongHistorySchema, type SongSearchGenreFilter, type SongSearchParams, type SongSearchResult, SongSearchResultSchema, SongSearchResultsSchema, type TrackBase, TrackBaseSchema, TrackList, TrackListFromArtist, TrackListFromCriteriaPlaylist, TrackListFromTrack, TrackListOrigin, TrackListOriginFromArtist, TrackListOriginFromCriteriaPlaylist, TrackListOriginFromTrack, TrackListOriginType, TrackListProvider, TrackListSidebarVisibilityProvider, type TrackMinimum, TrackMinimumSchema, type TrackPlaylistRel, type UseArtistResult, type UseArtistSearchResult, type UseGenreSearchOptions, type UseGenreSearchResult, type UseGenreTreeViewStateOptions, type UseGenreTreeViewStateResult, type UseSongHistoryResult, type UseSongResult, type UseSongSearchResult, type UseVisibleGenrePlaylistsOptions, type UuidResource, UuidResourceSchema, YOUTUBE_UNPLAYABLE_REASON_LABELS, YoutubeAvailabilitySchema, type YoutubeUnplayableReason, artistEndpoints, artistQueryKeys, capitalizeFirstLetter, editGenreSongPages, formatTime, genreEndpoints, genrePlaylistEndpoints, genrePlaylistQueryKeys, genreQueryKeys, genreUpdateMutationKey, getGenrePlaylistsGroupedByRoot, getReparentCandidates, hasMainstreamPopRoot, isSong, isSongSearchResultPlayable, libraryEndpoints, libraryQueryKeys, makeTrackPlaylistRelPageSchema, makeTrackPlaylistRelSchema, musicBrainzRecordingUrl, pruneGenrePlaylistsForArtist, searchGenrePlaylistsByName, songUnplayableReason, useArtist, useArtistGenreCounts, useArtistSearch, useCreateGenre, useDeleteGenre, useFetchGenre, useFetchGenreDetail, useFetchGenreOverview, useFetchGenrePlaylist, useGenreByWikidataId, useGenreSearch, useGenreTreeViewState, useInvalidateAllGenrePlaylistQueries, useListFullGenrePlaylists, useListGenrePlaylists, useListGenres, useListTracks, usePrefetchGenreOverview, useSong, useSongHistory, useSongSearch, useTrackList, useTrackListSidebarVisibility, useUpdateGenre, useVisibleGenrePlaylists };
3803
+ export { ARTIST_LINK_KINDS, type AlbumMinimum, AlbumMinimumSchema, type ArtistAlbum, type ArtistDetailed, ArtistDetailedSchema, type ArtistGenreCount, ArtistGenreCountSchema, type ArtistImage, ArtistImageSchema, type ArtistLink, type ArtistMembership, type ArtistMinimum, ArtistMinimumSchema, ArtistNames, type ArtistSearchResult, ArtistSearchResultSchema, ArtistSearchResultsSchema, type ArtistSongsOrdering, type ArtistTrackListOriginInput, CriteriaCreationSchema, type CriteriaCreationValues, type CriteriaDetailed, CriteriaDetailedSchema, type CriteriaLineageRelWithoutAscendant, CriteriaLineageRelWithoutAscendantSchema, type CriteriaLineageRelWithoutDescendant, CriteriaLineageRelWithoutDescendantSchema, type CriteriaMinimum, CriteriaMinimumSchema, type CriteriaOverview, CriteriaOverviewSchema, type CriteriaPlaylistDetailed, CriteriaPlaylistDetailedSchema, type CriteriaPlaylistMinimum, CriteriaPlaylistMinimumSchema, type CriteriaPlaylistSimple, CriteriaPlaylistSimpleSchema, type CriteriaSimple, CriteriaSimpleSchema, CriteriaUpdateSchema, type CriteriaUpdateValues, FORM_RATING_NULL_VALUE, FUZZY_MIN_SIMILARITY, type GenrePlaylistTracksPage, GenrePlaylistUuid, type GenreSearchParams, type GenreSearchResult, GenreSearchResultSchema, GenreSearchResultsSchema, type GenreSearchTreeName, GenreSearchTreeNameSchema, GenreUuid, type GenreViewMode, MbArtistDetailedSchema, MbRecordingDetailedSchema, type MusicbrainzArtistDetailed, type MusicbrainzRecordingDetailed, NO_VIDEO_LABEL, type PlayArtistOptions, type PlayGenrePlaylistOptions, type RegionGenreLexiconEntry, RegionGenreLexiconEntrySchema, RegionGenreLexiconSchema, type RenderArtistLink, type RenderSongLink, type ReparentCandidate, SEARCH_DEBOUNCE_MS, SEARCH_QUERY_MIN_LENGTH, type SongDetailed, SongDetailedSchema, type SongHistoryEntry, SongHistoryEntrySchema, SongHistorySchema, type SongSearchGenreFilter, type SongSearchParams, type SongSearchResult, SongSearchResultSchema, SongSearchResultsSchema, type TrackBase, TrackBaseSchema, TrackList, TrackListFromArtist, TrackListFromCriteriaPlaylist, TrackListFromTrack, TrackListOrigin, TrackListOriginFromArtist, TrackListOriginFromCriteriaPlaylist, TrackListOriginFromTrack, TrackListOriginType, TrackListProvider, TrackListSidebarVisibilityProvider, type TrackMinimum, TrackMinimumSchema, type TrackPlaylistRel, type UseArtistResult, type UseArtistSearchResult, type UseGenreRemoteSearchOptions, type UseGenreRemoteSearchResult, type UseGenreSearchOptions, type UseGenreSearchResult, type UseGenreTreeViewStateOptions, type UseGenreTreeViewStateResult, type UseRemoteSearchOptions, type UseRemoteSearchResult, type UseSearchQueryStateOptions, type UseSearchQueryStateResult, type UseSongHistoryResult, type UseSongResult, type UseSongSearchResult, type UseVisibleGenrePlaylistsOptions, type UuidResource, UuidResourceSchema, YOUTUBE_UNPLAYABLE_REASON_LABELS, YoutubeAvailabilitySchema, type YoutubeUnplayableReason, artistEndpoints, artistQueryKeys, capitalizeFirstLetter, editGenreSongPages, foldSearchText, formatTime, genreEndpoints, genrePlaylistEndpoints, genrePlaylistQueryKeys, genreQueryKeys, genreSearchQueryKeys, genreUpdateMutationKey, getGenrePlaylistsGroupedByRoot, getReparentCandidates, hasMainstreamPopRoot, isSong, isSongSearchResultPlayable, libraryEndpoints, libraryQueryKeys, makeTrackPlaylistRelPageSchema, makeTrackPlaylistRelSchema, musicBrainzRecordingUrl, pruneGenrePlaylistsForArtist, rankByName, searchGenrePlaylistsByName, songUnplayableReason, trigramSimilarity, useArtist, useArtistGenreCounts, useArtistSearch, useCreateGenre, useDeleteGenre, useFetchGenre, useFetchGenreDetail, useFetchGenreOverview, useFetchGenrePlaylist, useGenreByWikidataId, useGenreRemoteSearch, useGenreSearch, useGenreTreeViewState, useInvalidateAllGenrePlaylistQueries, useListFullGenrePlaylists, useListGenrePlaylists, useListGenres, useListTracks, usePrefetchGenreOverview, useRegionGenreLexicon, useRemoteSearch, useSearchQueryState, useSong, useSongHistory, useSongSearch, useTrackList, useTrackListSidebarVisibility, useUpdateGenre, useVisibleGenrePlaylists };
@@ -20,9 +20,17 @@ import {
20
20
  CriteriaSimpleSchema,
21
21
  CriteriaUpdateSchema,
22
22
  FORM_RATING_NULL_VALUE,
23
+ FUZZY_MIN_SIMILARITY,
24
+ GenreSearchResultSchema,
25
+ GenreSearchResultsSchema,
26
+ GenreSearchTreeNameSchema,
23
27
  MbArtistDetailedSchema,
24
28
  MbRecordingDetailedSchema,
25
29
  NO_VIDEO_LABEL,
30
+ RegionGenreLexiconEntrySchema,
31
+ RegionGenreLexiconSchema,
32
+ SEARCH_DEBOUNCE_MS,
33
+ SEARCH_QUERY_MIN_LENGTH,
26
34
  SongDetailedSchema,
27
35
  SongHistoryEntrySchema,
28
36
  SongHistorySchema,
@@ -48,11 +56,13 @@ import {
48
56
  artistQueryKeys,
49
57
  capitalizeFirstLetter,
50
58
  editGenreSongPages,
59
+ foldSearchText,
51
60
  formatTime,
52
61
  genreEndpoints,
53
62
  genrePlaylistEndpoints,
54
63
  genrePlaylistQueryKeys,
55
64
  genreQueryKeys,
65
+ genreSearchQueryKeys,
56
66
  genreUpdateMutationKey,
57
67
  getGenrePlaylistsGroupedByRoot,
58
68
  getReparentCandidates,
@@ -65,8 +75,10 @@ import {
65
75
  makeTrackPlaylistRelSchema,
66
76
  musicBrainzRecordingUrl,
67
77
  pruneGenrePlaylistsForArtist,
78
+ rankByName,
68
79
  searchGenrePlaylistsByName,
69
80
  songUnplayableReason,
81
+ trigramSimilarity,
70
82
  useArtist,
71
83
  useArtistGenreCounts,
72
84
  useArtistSearch,
@@ -77,6 +89,7 @@ import {
77
89
  useFetchGenreOverview,
78
90
  useFetchGenrePlaylist,
79
91
  useGenreByWikidataId,
92
+ useGenreRemoteSearch,
80
93
  useGenreSearch,
81
94
  useGenreTreeViewState,
82
95
  useInvalidateAllGenrePlaylistQueries,
@@ -85,6 +98,9 @@ import {
85
98
  useListGenres,
86
99
  useListTracks,
87
100
  usePrefetchGenreOverview,
101
+ useRegionGenreLexicon,
102
+ useRemoteSearch,
103
+ useSearchQueryState,
88
104
  useSong,
89
105
  useSongHistory,
90
106
  useSongSearch,
@@ -92,7 +108,7 @@ import {
92
108
  useTrackListSidebarVisibility,
93
109
  useUpdateGenre,
94
110
  useVisibleGenrePlaylists
95
- } from "../chunk-PY3Y4E27.js";
111
+ } from "../chunk-727PIKKR.js";
96
112
  import "../chunk-4TE4OSOM.js";
97
113
  import "../chunk-T5D5T52J.js";
98
114
  import "../chunk-4MEK3CNF.js";
@@ -124,11 +140,19 @@ export {
124
140
  CriteriaSimpleSchema,
125
141
  CriteriaUpdateSchema,
126
142
  FORM_RATING_NULL_VALUE,
143
+ FUZZY_MIN_SIMILARITY,
127
144
  GenrePlaylistUuidSchema,
145
+ GenreSearchResultSchema,
146
+ GenreSearchResultsSchema,
147
+ GenreSearchTreeNameSchema,
128
148
  GenreUuidSchema,
129
149
  MbArtistDetailedSchema,
130
150
  MbRecordingDetailedSchema,
131
151
  NO_VIDEO_LABEL,
152
+ RegionGenreLexiconEntrySchema,
153
+ RegionGenreLexiconSchema,
154
+ SEARCH_DEBOUNCE_MS,
155
+ SEARCH_QUERY_MIN_LENGTH,
132
156
  SongDetailedSchema,
133
157
  SongHistoryEntrySchema,
134
158
  SongHistorySchema,
@@ -154,11 +178,13 @@ export {
154
178
  artistQueryKeys,
155
179
  capitalizeFirstLetter,
156
180
  editGenreSongPages,
181
+ foldSearchText,
157
182
  formatTime,
158
183
  genreEndpoints,
159
184
  genrePlaylistEndpoints,
160
185
  genrePlaylistQueryKeys,
161
186
  genreQueryKeys,
187
+ genreSearchQueryKeys,
162
188
  genreUpdateMutationKey,
163
189
  getGenrePlaylistsGroupedByRoot,
164
190
  getReparentCandidates,
@@ -171,8 +197,10 @@ export {
171
197
  makeTrackPlaylistRelSchema,
172
198
  musicBrainzRecordingUrl,
173
199
  pruneGenrePlaylistsForArtist,
200
+ rankByName,
174
201
  searchGenrePlaylistsByName,
175
202
  songUnplayableReason,
203
+ trigramSimilarity,
176
204
  useArtist,
177
205
  useArtistGenreCounts,
178
206
  useArtistSearch,
@@ -183,6 +211,7 @@ export {
183
211
  useFetchGenreOverview,
184
212
  useFetchGenrePlaylist,
185
213
  useGenreByWikidataId,
214
+ useGenreRemoteSearch,
186
215
  useGenreSearch,
187
216
  useGenreTreeViewState,
188
217
  useInvalidateAllGenrePlaylistQueries,
@@ -191,6 +220,9 @@ export {
191
220
  useListGenres,
192
221
  useListTracks,
193
222
  usePrefetchGenreOverview,
223
+ useRegionGenreLexicon,
224
+ useRemoteSearch,
225
+ useSearchQueryState,
194
226
  useSong,
195
227
  useSongHistory,
196
228
  useSongSearch,