@behindthemusictree/app-kit 33.0.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.
- package/dist/{chunk-A6GKSUJA.js → chunk-4TE4OSOM.js} +54 -16
- package/dist/chunk-4TE4OSOM.js.map +1 -0
- package/dist/{chunk-JRUPUUYV.js → chunk-727PIKKR.js} +333 -124
- package/dist/chunk-727PIKKR.js.map +1 -0
- package/dist/{chunk-5NTNMBJP.js → chunk-HLAKW2YJ.js} +1 -1
- package/dist/{chunk-XCOAWKF6.js → chunk-MAKY4YBN.js} +118 -24
- package/dist/chunk-MAKY4YBN.js.map +1 -0
- package/dist/chunk-W4QTTNNA.js +94 -0
- package/dist/chunk-W4QTTNNA.js.map +1 -0
- package/dist/genre-tree/index.cjs +606 -327
- package/dist/genre-tree/index.cjs.map +1 -1
- package/dist/genre-tree/index.d.ts +173 -4
- package/dist/genre-tree/index.js +38 -3
- package/dist/index.cjs +880 -439
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +46 -4
- package/dist/player/index.cjs +167 -60
- package/dist/player/index.cjs.map +1 -1
- package/dist/player/index.d.ts +8 -0
- package/dist/player/index.js +2 -1
- package/dist/transport/index.cjs +176 -47
- package/dist/transport/index.cjs.map +1 -1
- package/dist/transport/index.d.ts +23 -3
- package/dist/transport/index.js +10 -2
- package/package.json +1 -1
- package/dist/chunk-A6GKSUJA.js.map +0 -1
- package/dist/chunk-JRUPUUYV.js.map +0 -1
- package/dist/chunk-XCOAWKF6.js.map +0 -1
- /package/dist/{chunk-5NTNMBJP.js.map → chunk-HLAKW2YJ.js.map} +0 -0
|
@@ -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';
|
|
@@ -2756,6 +2756,15 @@ declare const YOUTUBE_UNPLAYABLE_REASON_LABELS: {
|
|
|
2756
2756
|
readonly region_whitelisted: "Region restricted";
|
|
2757
2757
|
};
|
|
2758
2758
|
type YoutubeUnplayableReason = keyof typeof YOUTUBE_UNPLAYABLE_REASON_LABELS;
|
|
2759
|
+
declare const YoutubeAvailabilitySchema: z.ZodObject<{
|
|
2760
|
+
status: z.ZodEnum<{
|
|
2761
|
+
unknown: "unknown";
|
|
2762
|
+
eligible: "eligible";
|
|
2763
|
+
blocked: "blocked";
|
|
2764
|
+
}>;
|
|
2765
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
2766
|
+
country: z.ZodNullable<z.ZodString>;
|
|
2767
|
+
}, z.core.$strip>;
|
|
2759
2768
|
declare const SongDetailedSchema: z.ZodObject<{
|
|
2760
2769
|
uuid: z.ZodString;
|
|
2761
2770
|
title: z.ZodString;
|
|
@@ -2790,6 +2799,15 @@ declare const SongDetailedSchema: z.ZodObject<{
|
|
|
2790
2799
|
updatedOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2791
2800
|
youtubeVideo: z.ZodNullable<z.ZodObject<{
|
|
2792
2801
|
id: z.ZodString;
|
|
2802
|
+
availability: z.ZodOptional<z.ZodObject<{
|
|
2803
|
+
status: z.ZodEnum<{
|
|
2804
|
+
unknown: "unknown";
|
|
2805
|
+
eligible: "eligible";
|
|
2806
|
+
blocked: "blocked";
|
|
2807
|
+
}>;
|
|
2808
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
2809
|
+
country: z.ZodNullable<z.ZodString>;
|
|
2810
|
+
}, z.core.$strip>>;
|
|
2793
2811
|
unplayableReason: z.ZodNullable<z.ZodEnum<{
|
|
2794
2812
|
not_found: "not_found";
|
|
2795
2813
|
not_embeddable: "not_embeddable";
|
|
@@ -2929,7 +2947,7 @@ interface UseSongSearchResult {
|
|
|
2929
2947
|
/** True from the first typed character past the minimum until results arrive or the search fails; covers the debounce. */
|
|
2930
2948
|
pending: boolean;
|
|
2931
2949
|
}
|
|
2932
|
-
declare function useSongSearch(getBackendBaseUrl: () => string, text: string): UseSongSearchResult;
|
|
2950
|
+
declare function useSongSearch(getBackendBaseUrl: () => string, text: string, options?: Omit<SongSearchParams, "q">): UseSongSearchResult;
|
|
2933
2951
|
|
|
2934
2952
|
/** The artist's footprint on the canonical tree (sparse: non-zero genre playlists only). Idle while `artistUuid` is null. */
|
|
2935
2953
|
declare function useArtistGenreCounts(artistUuid: string | null, getBackendBaseUrl: () => string): _tanstack_react_query.UseQueryResult<NoInfer<{
|
|
@@ -2988,8 +3006,142 @@ interface UseGenreSearchResult<T extends CriteriaPlaylistSimple = CriteriaPlayli
|
|
|
2988
3006
|
clear: () => void;
|
|
2989
3007
|
select: (genrePlaylist: T) => void;
|
|
2990
3008
|
}
|
|
3009
|
+
/** In-memory genre search over already-loaded genre playlists. */
|
|
2991
3010
|
declare function useGenreSearch<T extends CriteriaPlaylistSimple = CriteriaPlaylistSimple>({ genrePlaylists, onSelect, selectedName, onClear, }: UseGenreSearchOptions<T>): UseGenreSearchResult<T>;
|
|
2992
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
|
+
|
|
2993
3145
|
type GenreViewMode = "stacked" | "wheel" | "pop-core" | "outline";
|
|
2994
3146
|
interface UseGenreTreeViewStateOptions<O extends CriteriaOverview = CriteriaOverview> {
|
|
2995
3147
|
scope: Scope;
|
|
@@ -3459,6 +3611,10 @@ declare const genreQueryKeys: {
|
|
|
3459
3611
|
overview: (id: GenreUuid) => readonly ["referenceGenres", "overview", string & zod.$brand<"GenreUuid">];
|
|
3460
3612
|
};
|
|
3461
3613
|
};
|
|
3614
|
+
declare const genreSearchQueryKeys: {
|
|
3615
|
+
search: (params: GenreSearchParams) => readonly ["genreSearch", GenreSearchParams];
|
|
3616
|
+
regionLexicon: () => readonly ["regionGenreLexicon"];
|
|
3617
|
+
};
|
|
3462
3618
|
declare const genreUpdateMutationKey: readonly ["genres", "update"];
|
|
3463
3619
|
|
|
3464
3620
|
declare const genreEndpoints: {
|
|
@@ -3478,6 +3634,8 @@ declare const genreEndpoints: {
|
|
|
3478
3634
|
update: (id: GenreUuid) => string;
|
|
3479
3635
|
delete: (id: GenreUuid) => string;
|
|
3480
3636
|
};
|
|
3637
|
+
search: () => string;
|
|
3638
|
+
regionLexicon: () => string;
|
|
3481
3639
|
};
|
|
3482
3640
|
|
|
3483
3641
|
declare const artistQueryKeys: {
|
|
@@ -3607,9 +3765,20 @@ declare const hasMainstreamPopRoot: (nodes: {
|
|
|
3607
3765
|
*/
|
|
3608
3766
|
declare const pruneGenrePlaylistsForArtist: (playlists: CriteriaPlaylistSimple[], counts: ArtistGenreCount[]) => CriteriaPlaylistSimple[];
|
|
3609
3767
|
|
|
3610
|
-
/**
|
|
3768
|
+
/** Ranked, accent-insensitive name match (exact, prefix, substring, fuzzy). An empty/whitespace query matches nothing. */
|
|
3611
3769
|
declare const searchGenrePlaylistsByName: <T extends CriteriaPlaylistSimple>(genrePlaylists: T[], query: string) => T[];
|
|
3612
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
|
+
|
|
3613
3782
|
type ReparentCandidate = CriteriaPlaylistSimple & {
|
|
3614
3783
|
criteria: CriteriaMinimum;
|
|
3615
3784
|
};
|
|
@@ -3631,4 +3800,4 @@ type SongsPage = {
|
|
|
3631
3800
|
*/
|
|
3632
3801
|
declare function editGenreSongPages<P extends SongsPage>(data: InfiniteData<P> | undefined, edit: (tracks: P["tracks"]) => P["tracks"]): InfiniteData<P> | undefined;
|
|
3633
3802
|
|
|
3634
|
-
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, 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 };
|
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,
|
|
@@ -43,15 +51,18 @@ import {
|
|
|
43
51
|
TrackMinimumSchema,
|
|
44
52
|
UuidResourceSchema,
|
|
45
53
|
YOUTUBE_UNPLAYABLE_REASON_LABELS,
|
|
54
|
+
YoutubeAvailabilitySchema,
|
|
46
55
|
artistEndpoints,
|
|
47
56
|
artistQueryKeys,
|
|
48
57
|
capitalizeFirstLetter,
|
|
49
58
|
editGenreSongPages,
|
|
59
|
+
foldSearchText,
|
|
50
60
|
formatTime,
|
|
51
61
|
genreEndpoints,
|
|
52
62
|
genrePlaylistEndpoints,
|
|
53
63
|
genrePlaylistQueryKeys,
|
|
54
64
|
genreQueryKeys,
|
|
65
|
+
genreSearchQueryKeys,
|
|
55
66
|
genreUpdateMutationKey,
|
|
56
67
|
getGenrePlaylistsGroupedByRoot,
|
|
57
68
|
getReparentCandidates,
|
|
@@ -64,8 +75,10 @@ import {
|
|
|
64
75
|
makeTrackPlaylistRelSchema,
|
|
65
76
|
musicBrainzRecordingUrl,
|
|
66
77
|
pruneGenrePlaylistsForArtist,
|
|
78
|
+
rankByName,
|
|
67
79
|
searchGenrePlaylistsByName,
|
|
68
80
|
songUnplayableReason,
|
|
81
|
+
trigramSimilarity,
|
|
69
82
|
useArtist,
|
|
70
83
|
useArtistGenreCounts,
|
|
71
84
|
useArtistSearch,
|
|
@@ -76,6 +89,7 @@ import {
|
|
|
76
89
|
useFetchGenreOverview,
|
|
77
90
|
useFetchGenrePlaylist,
|
|
78
91
|
useGenreByWikidataId,
|
|
92
|
+
useGenreRemoteSearch,
|
|
79
93
|
useGenreSearch,
|
|
80
94
|
useGenreTreeViewState,
|
|
81
95
|
useInvalidateAllGenrePlaylistQueries,
|
|
@@ -84,6 +98,9 @@ import {
|
|
|
84
98
|
useListGenres,
|
|
85
99
|
useListTracks,
|
|
86
100
|
usePrefetchGenreOverview,
|
|
101
|
+
useRegionGenreLexicon,
|
|
102
|
+
useRemoteSearch,
|
|
103
|
+
useSearchQueryState,
|
|
87
104
|
useSong,
|
|
88
105
|
useSongHistory,
|
|
89
106
|
useSongSearch,
|
|
@@ -91,11 +108,12 @@ import {
|
|
|
91
108
|
useTrackListSidebarVisibility,
|
|
92
109
|
useUpdateGenre,
|
|
93
110
|
useVisibleGenrePlaylists
|
|
94
|
-
} from "../chunk-
|
|
95
|
-
import "../chunk-
|
|
111
|
+
} from "../chunk-727PIKKR.js";
|
|
112
|
+
import "../chunk-4TE4OSOM.js";
|
|
96
113
|
import "../chunk-T5D5T52J.js";
|
|
97
114
|
import "../chunk-4MEK3CNF.js";
|
|
98
|
-
import "../chunk-
|
|
115
|
+
import "../chunk-MAKY4YBN.js";
|
|
116
|
+
import "../chunk-W4QTTNNA.js";
|
|
99
117
|
import {
|
|
100
118
|
GenrePlaylistUuidSchema,
|
|
101
119
|
GenreUuidSchema
|
|
@@ -122,11 +140,19 @@ export {
|
|
|
122
140
|
CriteriaSimpleSchema,
|
|
123
141
|
CriteriaUpdateSchema,
|
|
124
142
|
FORM_RATING_NULL_VALUE,
|
|
143
|
+
FUZZY_MIN_SIMILARITY,
|
|
125
144
|
GenrePlaylistUuidSchema,
|
|
145
|
+
GenreSearchResultSchema,
|
|
146
|
+
GenreSearchResultsSchema,
|
|
147
|
+
GenreSearchTreeNameSchema,
|
|
126
148
|
GenreUuidSchema,
|
|
127
149
|
MbArtistDetailedSchema,
|
|
128
150
|
MbRecordingDetailedSchema,
|
|
129
151
|
NO_VIDEO_LABEL,
|
|
152
|
+
RegionGenreLexiconEntrySchema,
|
|
153
|
+
RegionGenreLexiconSchema,
|
|
154
|
+
SEARCH_DEBOUNCE_MS,
|
|
155
|
+
SEARCH_QUERY_MIN_LENGTH,
|
|
130
156
|
SongDetailedSchema,
|
|
131
157
|
SongHistoryEntrySchema,
|
|
132
158
|
SongHistorySchema,
|
|
@@ -147,15 +173,18 @@ export {
|
|
|
147
173
|
TrackMinimumSchema,
|
|
148
174
|
UuidResourceSchema,
|
|
149
175
|
YOUTUBE_UNPLAYABLE_REASON_LABELS,
|
|
176
|
+
YoutubeAvailabilitySchema,
|
|
150
177
|
artistEndpoints,
|
|
151
178
|
artistQueryKeys,
|
|
152
179
|
capitalizeFirstLetter,
|
|
153
180
|
editGenreSongPages,
|
|
181
|
+
foldSearchText,
|
|
154
182
|
formatTime,
|
|
155
183
|
genreEndpoints,
|
|
156
184
|
genrePlaylistEndpoints,
|
|
157
185
|
genrePlaylistQueryKeys,
|
|
158
186
|
genreQueryKeys,
|
|
187
|
+
genreSearchQueryKeys,
|
|
159
188
|
genreUpdateMutationKey,
|
|
160
189
|
getGenrePlaylistsGroupedByRoot,
|
|
161
190
|
getReparentCandidates,
|
|
@@ -168,8 +197,10 @@ export {
|
|
|
168
197
|
makeTrackPlaylistRelSchema,
|
|
169
198
|
musicBrainzRecordingUrl,
|
|
170
199
|
pruneGenrePlaylistsForArtist,
|
|
200
|
+
rankByName,
|
|
171
201
|
searchGenrePlaylistsByName,
|
|
172
202
|
songUnplayableReason,
|
|
203
|
+
trigramSimilarity,
|
|
173
204
|
useArtist,
|
|
174
205
|
useArtistGenreCounts,
|
|
175
206
|
useArtistSearch,
|
|
@@ -180,6 +211,7 @@ export {
|
|
|
180
211
|
useFetchGenreOverview,
|
|
181
212
|
useFetchGenrePlaylist,
|
|
182
213
|
useGenreByWikidataId,
|
|
214
|
+
useGenreRemoteSearch,
|
|
183
215
|
useGenreSearch,
|
|
184
216
|
useGenreTreeViewState,
|
|
185
217
|
useInvalidateAllGenrePlaylistQueries,
|
|
@@ -188,6 +220,9 @@ export {
|
|
|
188
220
|
useListGenres,
|
|
189
221
|
useListTracks,
|
|
190
222
|
usePrefetchGenreOverview,
|
|
223
|
+
useRegionGenreLexicon,
|
|
224
|
+
useRemoteSearch,
|
|
225
|
+
useSearchQueryState,
|
|
191
226
|
useSong,
|
|
192
227
|
useSongHistory,
|
|
193
228
|
useSongSearch,
|