@behindthemusictree/app-kit 33.1.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.
- package/dist/{chunk-PY3Y4E27.js → chunk-HHE6VK67.js} +251 -118
- package/dist/chunk-HHE6VK67.js.map +1 -0
- package/dist/genre-tree/index.cjs +309 -160
- package/dist/genre-tree/index.cjs.map +1 -1
- package/dist/genre-tree/index.d.ts +160 -4
- package/dist/genre-tree/index.js +33 -1
- package/dist/index.cjs +306 -157
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +33 -1
- package/package.json +1 -1
- package/dist/chunk-PY3Y4E27.js.map +0 -1
|
@@ -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,147 @@ 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
|
+
wikidataId: z.ZodNullable<z.ZodString>;
|
|
3021
|
+
treeName: z.ZodString;
|
|
3022
|
+
genrePlaylistUuid: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "GenrePlaylistUuid", "out">>;
|
|
3023
|
+
root: z.ZodObject<{
|
|
3024
|
+
uuid: z.core.$ZodBranded<z.ZodString, "GenreUuid", "out">;
|
|
3025
|
+
name: z.ZodString;
|
|
3026
|
+
}, z.core.$strip>;
|
|
3027
|
+
isUmbrella: z.ZodBoolean;
|
|
3028
|
+
viewsCount: z.ZodNumber;
|
|
3029
|
+
}, z.core.$strip>;
|
|
3030
|
+
declare const GenreSearchResultsSchema: z.ZodArray<z.ZodObject<{
|
|
3031
|
+
uuid: z.core.$ZodBranded<z.ZodString, "GenreUuid", "out">;
|
|
3032
|
+
name: z.ZodString;
|
|
3033
|
+
wikidataId: z.ZodNullable<z.ZodString>;
|
|
3034
|
+
treeName: z.ZodString;
|
|
3035
|
+
genrePlaylistUuid: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "GenrePlaylistUuid", "out">>;
|
|
3036
|
+
root: z.ZodObject<{
|
|
3037
|
+
uuid: z.core.$ZodBranded<z.ZodString, "GenreUuid", "out">;
|
|
3038
|
+
name: z.ZodString;
|
|
3039
|
+
}, z.core.$strip>;
|
|
3040
|
+
isUmbrella: z.ZodBoolean;
|
|
3041
|
+
viewsCount: z.ZodNumber;
|
|
3042
|
+
}, z.core.$strip>>;
|
|
3043
|
+
type GenreSearchResult = z.infer<typeof GenreSearchResultSchema>;
|
|
3044
|
+
interface GenreSearchParams {
|
|
3045
|
+
q: string;
|
|
3046
|
+
limit?: number;
|
|
3047
|
+
treeName?: GenreSearchTreeName;
|
|
3048
|
+
}
|
|
3049
|
+
/** One entry of `regions/map/genres/`: a genre the region map index references, keyed by Wikidata id. */
|
|
3050
|
+
declare const RegionGenreLexiconEntrySchema: z.ZodObject<{
|
|
3051
|
+
wikidataId: z.ZodString;
|
|
3052
|
+
uuid: z.core.$ZodBranded<z.ZodString, "GenreUuid", "out">;
|
|
3053
|
+
name: z.ZodString;
|
|
3054
|
+
treeName: z.ZodString;
|
|
3055
|
+
genrePlaylistUuid: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "GenrePlaylistUuid", "out">>;
|
|
3056
|
+
isUmbrella: z.ZodBoolean;
|
|
3057
|
+
viewsCount: z.ZodNumber;
|
|
3058
|
+
}, z.core.$strip>;
|
|
3059
|
+
declare const RegionGenreLexiconSchema: z.ZodArray<z.ZodObject<{
|
|
3060
|
+
wikidataId: z.ZodString;
|
|
3061
|
+
uuid: z.core.$ZodBranded<z.ZodString, "GenreUuid", "out">;
|
|
3062
|
+
name: z.ZodString;
|
|
3063
|
+
treeName: z.ZodString;
|
|
3064
|
+
genrePlaylistUuid: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "GenrePlaylistUuid", "out">>;
|
|
3065
|
+
isUmbrella: z.ZodBoolean;
|
|
3066
|
+
viewsCount: z.ZodNumber;
|
|
3067
|
+
}, z.core.$strip>>;
|
|
3068
|
+
type RegionGenreLexiconEntry = z.infer<typeof RegionGenreLexiconEntrySchema>;
|
|
3069
|
+
|
|
3070
|
+
interface UseGenreRemoteSearchOptions {
|
|
3071
|
+
treeName?: GenreSearchTreeName;
|
|
3072
|
+
limit?: number;
|
|
3073
|
+
enabled?: boolean;
|
|
3074
|
+
}
|
|
3075
|
+
interface UseGenreRemoteSearchResult {
|
|
3076
|
+
genres: GenreSearchResult[];
|
|
3077
|
+
isError: boolean;
|
|
3078
|
+
settled: boolean;
|
|
3079
|
+
pending: boolean;
|
|
3080
|
+
}
|
|
3081
|
+
/** Ranked server-side genre search (`genres/search/`) across the canonical and regional trees. */
|
|
3082
|
+
declare function useGenreRemoteSearch(getBackendBaseUrl: () => string, text: string, { treeName, limit, enabled }?: UseGenreRemoteSearchOptions): UseGenreRemoteSearchResult;
|
|
3083
|
+
|
|
3084
|
+
declare const SEARCH_DEBOUNCE_MS = 250;
|
|
3085
|
+
/** Mirrors the API's `SEARCH_QUERY_LEN_MIN`. */
|
|
3086
|
+
declare const SEARCH_QUERY_MIN_LENGTH = 2;
|
|
3087
|
+
interface UseRemoteSearchOptions<TSchema extends z.ZodTypeAny> {
|
|
3088
|
+
/** Builds the cache key from the debounced, trimmed query. */
|
|
3089
|
+
queryKey: (query: string) => QueryKey;
|
|
3090
|
+
endpoint: string;
|
|
3091
|
+
/** Builds the request params from the debounced, trimmed query. */
|
|
3092
|
+
params: (query: string) => Record<string, string | number | boolean>;
|
|
3093
|
+
schema: TSchema;
|
|
3094
|
+
context: string;
|
|
3095
|
+
text: string;
|
|
3096
|
+
/** Extra gate besides the minimum length, e.g. playback readiness. */
|
|
3097
|
+
enabled?: boolean;
|
|
3098
|
+
/**
|
|
3099
|
+
* Previous results stay visible while the next query loads, but only while this scope is unchanged. Pass what
|
|
3100
|
+
* makes old results wrong for the new query (e.g. the playback key); omit it to always keep them.
|
|
3101
|
+
*/
|
|
3102
|
+
scope?: string;
|
|
3103
|
+
}
|
|
3104
|
+
interface UseRemoteSearchResult<T> {
|
|
3105
|
+
results: T[];
|
|
3106
|
+
isError: boolean;
|
|
3107
|
+
/** True once the debounced query has caught up with the typed one and its fetch has finished. */
|
|
3108
|
+
settled: boolean;
|
|
3109
|
+
/** True from the first typed character past the minimum until results arrive or the search fails; covers the debounce. */
|
|
3110
|
+
pending: boolean;
|
|
3111
|
+
}
|
|
3112
|
+
/** Debounced typeahead against a search endpoint; the shared core of the artist, song and genre searches. */
|
|
3113
|
+
declare function useRemoteSearch<TSchema extends z.ZodType<unknown[]>>(getBackendBaseUrl: () => string, { queryKey, endpoint, params, schema, context, text, enabled: extraEnabled, scope }: UseRemoteSearchOptions<TSchema>): UseRemoteSearchResult<z.infer<TSchema>[number]>;
|
|
3114
|
+
|
|
3115
|
+
interface UseSearchQueryStateOptions {
|
|
3116
|
+
/** Name of the currently selected item; fills the query whenever it changes. */
|
|
3117
|
+
selectedName?: string | null;
|
|
3118
|
+
/** Called by `clear`, after it empties the query. */
|
|
3119
|
+
onClear?: () => void;
|
|
3120
|
+
}
|
|
3121
|
+
interface UseSearchQueryStateResult {
|
|
3122
|
+
query: string;
|
|
3123
|
+
setQuery: (query: string) => void;
|
|
3124
|
+
/** True when the query is a typed one, not the refill from the selection. */
|
|
3125
|
+
isTyping: boolean;
|
|
3126
|
+
/** Whether there is anything to clear (a typed query or a selected item). */
|
|
3127
|
+
canClear: boolean;
|
|
3128
|
+
clear: () => void;
|
|
3129
|
+
/** Call when an item is picked; refills the query via `selectedName` once the selection changes. */
|
|
3130
|
+
notifyPick: (pickedName: string) => void;
|
|
3131
|
+
}
|
|
3132
|
+
/** Query text of a search box and its link to the selected item; independent of where results come from. */
|
|
3133
|
+
declare function useSearchQueryState({ selectedName, onClear }?: UseSearchQueryStateOptions): UseSearchQueryStateResult;
|
|
3134
|
+
|
|
3135
|
+
/** Every genre the region map index references, loaded once on demand (`regions/map/genres/`). */
|
|
3136
|
+
declare function useRegionGenreLexicon(getBackendBaseUrl: () => string, enabled: boolean): {
|
|
3137
|
+
entries: {
|
|
3138
|
+
wikidataId: string;
|
|
3139
|
+
uuid: string & zod.$brand<"GenreUuid">;
|
|
3140
|
+
name: string;
|
|
3141
|
+
treeName: string;
|
|
3142
|
+
genrePlaylistUuid: (string & zod.$brand<"GenrePlaylistUuid">) | null;
|
|
3143
|
+
isUmbrella: boolean;
|
|
3144
|
+
viewsCount: number;
|
|
3145
|
+
}[];
|
|
3146
|
+
isError: boolean;
|
|
3147
|
+
isPending: boolean;
|
|
3148
|
+
};
|
|
3149
|
+
|
|
3011
3150
|
type GenreViewMode = "stacked" | "wheel" | "pop-core" | "outline";
|
|
3012
3151
|
interface UseGenreTreeViewStateOptions<O extends CriteriaOverview = CriteriaOverview> {
|
|
3013
3152
|
scope: Scope;
|
|
@@ -3477,6 +3616,10 @@ declare const genreQueryKeys: {
|
|
|
3477
3616
|
overview: (id: GenreUuid) => readonly ["referenceGenres", "overview", string & zod.$brand<"GenreUuid">];
|
|
3478
3617
|
};
|
|
3479
3618
|
};
|
|
3619
|
+
declare const genreSearchQueryKeys: {
|
|
3620
|
+
search: (params: GenreSearchParams) => readonly ["genreSearch", GenreSearchParams];
|
|
3621
|
+
regionLexicon: () => readonly ["regionGenreLexicon"];
|
|
3622
|
+
};
|
|
3480
3623
|
declare const genreUpdateMutationKey: readonly ["genres", "update"];
|
|
3481
3624
|
|
|
3482
3625
|
declare const genreEndpoints: {
|
|
@@ -3496,6 +3639,8 @@ declare const genreEndpoints: {
|
|
|
3496
3639
|
update: (id: GenreUuid) => string;
|
|
3497
3640
|
delete: (id: GenreUuid) => string;
|
|
3498
3641
|
};
|
|
3642
|
+
search: () => string;
|
|
3643
|
+
regionLexicon: () => string;
|
|
3499
3644
|
};
|
|
3500
3645
|
|
|
3501
3646
|
declare const artistQueryKeys: {
|
|
@@ -3625,9 +3770,20 @@ declare const hasMainstreamPopRoot: (nodes: {
|
|
|
3625
3770
|
*/
|
|
3626
3771
|
declare const pruneGenrePlaylistsForArtist: (playlists: CriteriaPlaylistSimple[], counts: ArtistGenreCount[]) => CriteriaPlaylistSimple[];
|
|
3627
3772
|
|
|
3628
|
-
/**
|
|
3773
|
+
/** Ranked, accent-insensitive name match (exact, prefix, substring, fuzzy). An empty/whitespace query matches nothing. */
|
|
3629
3774
|
declare const searchGenrePlaylistsByName: <T extends CriteriaPlaylistSimple>(genrePlaylists: T[], query: string) => T[];
|
|
3630
3775
|
|
|
3776
|
+
/** NFD-decompose, strip diacritics and casefold, so "Bossa Nová" and "bossa nova" compare equal. */
|
|
3777
|
+
declare const foldSearchText: (text: string) => string;
|
|
3778
|
+
/** Jaccard similarity of the accent-folded trigram sets, 0..1. */
|
|
3779
|
+
declare const trigramSimilarity: (a: string, b: string) => number;
|
|
3780
|
+
declare const FUZZY_MIN_SIMILARITY = 0.3;
|
|
3781
|
+
/**
|
|
3782
|
+
* Ranks `items` against `query` like the API's typeahead does: exact name, then prefix, then substring,
|
|
3783
|
+
* then accent-folded trigram similarity; ties break on `getViews` (descending) then name. An empty query matches nothing.
|
|
3784
|
+
*/
|
|
3785
|
+
declare function rankByName<T>(items: readonly T[], query: string, getName: (item: T) => string, getViews?: (item: T) => number): T[];
|
|
3786
|
+
|
|
3631
3787
|
type ReparentCandidate = CriteriaPlaylistSimple & {
|
|
3632
3788
|
criteria: CriteriaMinimum;
|
|
3633
3789
|
};
|
|
@@ -3649,4 +3805,4 @@ type SongsPage = {
|
|
|
3649
3805
|
*/
|
|
3650
3806
|
declare function editGenreSongPages<P extends SongsPage>(data: InfiniteData<P> | undefined, edit: (tracks: P["tracks"]) => P["tracks"]): InfiniteData<P> | undefined;
|
|
3651
3807
|
|
|
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 };
|
|
3808
|
+
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 };
|
package/dist/genre-tree/index.js
CHANGED
|
@@ -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-
|
|
111
|
+
} from "../chunk-HHE6VK67.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,
|