@behindthemusictree/app-kit 29.0.1 → 30.0.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.
@@ -2713,6 +2713,224 @@ interface UseArtistSearchResult {
2713
2713
  }
2714
2714
  declare function useArtistSearch(getBackendBaseUrl: () => string, text: string): UseArtistSearchResult;
2715
2715
 
2716
+ declare const TrackBaseSchema: z.ZodObject<{
2717
+ uuid: z.ZodString;
2718
+ title: z.ZodString;
2719
+ artists: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2720
+ uuid: z.ZodString;
2721
+ name: z.ZodString;
2722
+ isSpecialPurpose: z.ZodOptional<z.ZodBoolean>;
2723
+ }, z.core.$strip>>>>;
2724
+ album: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2725
+ uuid: z.ZodString;
2726
+ name: z.ZodString;
2727
+ albumArtists: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2728
+ uuid: z.ZodString;
2729
+ name: z.ZodString;
2730
+ isSpecialPurpose: z.ZodOptional<z.ZodBoolean>;
2731
+ }, z.core.$strip>>>>;
2732
+ }, z.core.$strip>>>;
2733
+ trackNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2734
+ genre: z.ZodNullable<z.ZodObject<{
2735
+ uuid: z.core.$ZodBranded<z.ZodString, "GenreUuid", "out">;
2736
+ name: z.ZodString;
2737
+ side: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2738
+ pop: "pop";
2739
+ core: "core";
2740
+ }>>>;
2741
+ wikidataId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2742
+ }, z.core.$strip>>;
2743
+ rating: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2744
+ language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2745
+ playCount: z.ZodNumber;
2746
+ createdOn: z.ZodString;
2747
+ updatedOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2748
+ }, z.core.$strip>;
2749
+ type TrackBase = z.infer<typeof TrackBaseSchema>;
2750
+
2751
+ declare const YOUTUBE_UNPLAYABLE_REASON_LABELS: {
2752
+ readonly not_found: "Video unavailable";
2753
+ readonly not_embeddable: "Embedding disabled";
2754
+ readonly private: "Private video";
2755
+ readonly not_processed: "Video still processing";
2756
+ readonly region_whitelisted: "Region restricted";
2757
+ };
2758
+ type YoutubeUnplayableReason = keyof typeof YOUTUBE_UNPLAYABLE_REASON_LABELS;
2759
+ declare const SongDetailedSchema: z.ZodObject<{
2760
+ uuid: z.ZodString;
2761
+ title: z.ZodString;
2762
+ artists: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2763
+ uuid: z.ZodString;
2764
+ name: z.ZodString;
2765
+ isSpecialPurpose: z.ZodOptional<z.ZodBoolean>;
2766
+ }, z.core.$strip>>>>;
2767
+ album: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2768
+ uuid: z.ZodString;
2769
+ name: z.ZodString;
2770
+ albumArtists: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2771
+ uuid: z.ZodString;
2772
+ name: z.ZodString;
2773
+ isSpecialPurpose: z.ZodOptional<z.ZodBoolean>;
2774
+ }, z.core.$strip>>>>;
2775
+ }, z.core.$strip>>>;
2776
+ trackNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2777
+ genre: z.ZodNullable<z.ZodObject<{
2778
+ uuid: z.core.$ZodBranded<z.ZodString, "GenreUuid", "out">;
2779
+ name: z.ZodString;
2780
+ side: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2781
+ pop: "pop";
2782
+ core: "core";
2783
+ }>>>;
2784
+ wikidataId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2785
+ }, z.core.$strip>>;
2786
+ rating: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2787
+ language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2788
+ playCount: z.ZodNumber;
2789
+ createdOn: z.ZodString;
2790
+ updatedOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2791
+ youtubeVideo: z.ZodNullable<z.ZodObject<{
2792
+ id: z.ZodString;
2793
+ unplayableReason: z.ZodNullable<z.ZodEnum<{
2794
+ not_found: "not_found";
2795
+ not_embeddable: "not_embeddable";
2796
+ private: "private";
2797
+ not_processed: "not_processed";
2798
+ region_whitelisted: "region_whitelisted";
2799
+ }>>;
2800
+ viewCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2801
+ }, z.core.$strip>>;
2802
+ musicbrainzRecordingId: z.ZodNullable<z.ZodString>;
2803
+ firstReleaseYear: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2804
+ essentialGenres: z.ZodOptional<z.ZodArray<z.ZodObject<{
2805
+ uuid: z.core.$ZodBranded<z.ZodString, "GenreUuid", "out">;
2806
+ name: z.ZodString;
2807
+ side: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2808
+ pop: "pop";
2809
+ core: "core";
2810
+ }>>>;
2811
+ wikidataId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2812
+ }, z.core.$strip>>>;
2813
+ }, z.core.$strip>;
2814
+ type SongDetailed = z.infer<typeof SongDetailedSchema>;
2815
+ declare const NO_VIDEO_LABEL = "No video available";
2816
+ declare function isSong(track: TrackBase): track is SongDetailed;
2817
+ /** Human-readable reason a song can't be played, or null when it's playable. */
2818
+ declare function songUnplayableReason(song: SongDetailed): string | null;
2819
+ /** MusicBrainz recording page URL, or null when the song has no MBID. */
2820
+ declare function musicBrainzRecordingUrl(song: SongDetailed): string | null;
2821
+
2822
+ type UseSongResult = {
2823
+ status: "idle";
2824
+ } | {
2825
+ status: "not-found";
2826
+ } | {
2827
+ status: "error";
2828
+ } | {
2829
+ status: "loading";
2830
+ } | {
2831
+ status: "success";
2832
+ song: SongDetailed;
2833
+ };
2834
+ declare function useSong(uuid: string | null, getBackendBaseUrl: () => string): UseSongResult;
2835
+
2836
+ declare const SongHistoryEntrySchema: z.ZodObject<{
2837
+ uuid: z.ZodString;
2838
+ action: z.ZodString;
2839
+ actorPseudo: z.ZodNullable<z.ZodString>;
2840
+ oldValue: z.ZodNullable<z.ZodString>;
2841
+ newValue: z.ZodNullable<z.ZodString>;
2842
+ createdOn: z.ZodString;
2843
+ }, z.core.$strip>;
2844
+ declare const SongHistorySchema: z.ZodArray<z.ZodObject<{
2845
+ uuid: z.ZodString;
2846
+ action: z.ZodString;
2847
+ actorPseudo: z.ZodNullable<z.ZodString>;
2848
+ oldValue: z.ZodNullable<z.ZodString>;
2849
+ newValue: z.ZodNullable<z.ZodString>;
2850
+ createdOn: z.ZodString;
2851
+ }, z.core.$strip>>;
2852
+ type SongHistoryEntry = z.infer<typeof SongHistoryEntrySchema>;
2853
+
2854
+ type UseSongHistoryResult = {
2855
+ status: "idle";
2856
+ } | {
2857
+ status: "loading";
2858
+ } | {
2859
+ status: "error";
2860
+ } | {
2861
+ status: "success";
2862
+ entries: SongHistoryEntry[];
2863
+ };
2864
+ /** Lazy: nothing is fetched until `enabled`, e.g. while the panel's History section is open. */
2865
+ declare function useSongHistory(uuid: string | null, getBackendBaseUrl: () => string, enabled: boolean): UseSongHistoryResult;
2866
+
2867
+ declare const SongSearchResultSchema: z.ZodObject<{
2868
+ uuid: z.ZodString;
2869
+ title: z.ZodString;
2870
+ artists: z.ZodArray<z.ZodObject<{
2871
+ uuid: z.ZodString;
2872
+ name: z.ZodString;
2873
+ isSpecialPurpose: z.ZodOptional<z.ZodBoolean>;
2874
+ }, z.core.$strip>>;
2875
+ genre: z.ZodNullable<z.ZodObject<{
2876
+ uuid: z.core.$ZodBranded<z.ZodString, "GenreUuid", "out">;
2877
+ name: z.ZodString;
2878
+ side: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2879
+ pop: "pop";
2880
+ core: "core";
2881
+ }>>>;
2882
+ wikidataId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2883
+ }, z.core.$strip>>;
2884
+ youtubeVideo: z.ZodNullable<z.ZodObject<{
2885
+ id: z.ZodString;
2886
+ unplayableReason: z.ZodNullable<z.ZodString>;
2887
+ }, z.core.$strip>>;
2888
+ firstReleaseYear: z.ZodNullable<z.ZodNumber>;
2889
+ }, z.core.$strip>;
2890
+ declare const SongSearchResultsSchema: z.ZodArray<z.ZodObject<{
2891
+ uuid: z.ZodString;
2892
+ title: z.ZodString;
2893
+ artists: z.ZodArray<z.ZodObject<{
2894
+ uuid: z.ZodString;
2895
+ name: z.ZodString;
2896
+ isSpecialPurpose: z.ZodOptional<z.ZodBoolean>;
2897
+ }, z.core.$strip>>;
2898
+ genre: z.ZodNullable<z.ZodObject<{
2899
+ uuid: z.core.$ZodBranded<z.ZodString, "GenreUuid", "out">;
2900
+ name: z.ZodString;
2901
+ side: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2902
+ pop: "pop";
2903
+ core: "core";
2904
+ }>>>;
2905
+ wikidataId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2906
+ }, z.core.$strip>>;
2907
+ youtubeVideo: z.ZodNullable<z.ZodObject<{
2908
+ id: z.ZodString;
2909
+ unplayableReason: z.ZodNullable<z.ZodString>;
2910
+ }, z.core.$strip>>;
2911
+ firstReleaseYear: z.ZodNullable<z.ZodNumber>;
2912
+ }, z.core.$strip>>;
2913
+ type SongSearchResult = z.infer<typeof SongSearchResultSchema>;
2914
+ type SongSearchGenreFilter = "any" | "with" | "without";
2915
+ interface SongSearchParams {
2916
+ q: string;
2917
+ limit?: number;
2918
+ genre?: SongSearchGenreFilter;
2919
+ playable?: boolean;
2920
+ }
2921
+ /** A song is playable when it has a video with no unplayable reason. */
2922
+ declare function isSongSearchResultPlayable(result: SongSearchResult): boolean;
2923
+
2924
+ interface UseSongSearchResult {
2925
+ songs: SongSearchResult[];
2926
+ isError: boolean;
2927
+ /** True once the debounced query has caught up with the typed one and its fetch has finished. */
2928
+ settled: boolean;
2929
+ /** True from the first typed character past the minimum until results arrive or the search fails; covers the debounce. */
2930
+ pending: boolean;
2931
+ }
2932
+ declare function useSongSearch(getBackendBaseUrl: () => string, text: string): UseSongSearchResult;
2933
+
2716
2934
  /** The artist's footprint on the canonical tree (sparse: non-zero genre playlists only). Idle while `artistUuid` is null. */
2717
2935
  declare function useArtistGenreCounts(artistUuid: string | null, getBackendBaseUrl: () => string): _tanstack_react_query.UseQueryResult<NoInfer<{
2718
2936
  genrePlaylist: string & z.core.$brand<"GenrePlaylistUuid">;
@@ -2863,41 +3081,6 @@ declare function useVisibleGenrePlaylists({ scope, getBackendBaseUrl, artistUuid
2863
3081
  }[];
2864
3082
  };
2865
3083
 
2866
- declare const TrackBaseSchema: z.ZodObject<{
2867
- uuid: z.ZodString;
2868
- title: z.ZodString;
2869
- artists: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2870
- uuid: z.ZodString;
2871
- name: z.ZodString;
2872
- isSpecialPurpose: z.ZodOptional<z.ZodBoolean>;
2873
- }, z.core.$strip>>>>;
2874
- album: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2875
- uuid: z.ZodString;
2876
- name: z.ZodString;
2877
- albumArtists: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2878
- uuid: z.ZodString;
2879
- name: z.ZodString;
2880
- isSpecialPurpose: z.ZodOptional<z.ZodBoolean>;
2881
- }, z.core.$strip>>>>;
2882
- }, z.core.$strip>>>;
2883
- trackNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2884
- genre: z.ZodObject<{
2885
- uuid: z.core.$ZodBranded<z.ZodString, "GenreUuid", "out">;
2886
- name: z.ZodString;
2887
- side: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2888
- pop: "pop";
2889
- core: "core";
2890
- }>>>;
2891
- wikidataId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2892
- }, z.core.$strip>;
2893
- rating: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2894
- language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2895
- playCount: z.ZodNumber;
2896
- createdOn: z.ZodString;
2897
- updatedOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2898
- }, z.core.$strip>;
2899
- type TrackBase = z.infer<typeof TrackBaseSchema>;
2900
-
2901
3084
  declare const CriteriaPlaylistMinimumSchema: z.ZodObject<{
2902
3085
  uuid: z.core.$ZodBranded<z.ZodString, "GenrePlaylistUuid", "out">;
2903
3086
  name: z.ZodString;
@@ -3075,6 +3258,12 @@ declare function ArtistNames({ artists, renderArtistLink, }: {
3075
3258
  renderArtistLink?: RenderArtistLink;
3076
3259
  }): react.JSX.Element;
3077
3260
 
3261
+ /** Renders a song title as a link to the song's panel — typically the consumer's router `Link`. */
3262
+ type RenderSongLink = (song: {
3263
+ uuid: string;
3264
+ title: string;
3265
+ }) => ReactNode;
3266
+
3078
3267
  declare const UuidResourceSchema: z.ZodObject<{
3079
3268
  uuid: z.ZodString;
3080
3269
  }, z.core.$strip>;
@@ -3225,66 +3414,6 @@ declare const CriteriaPlaylistDetailedSchema: z.ZodObject<{
3225
3414
  }, z.core.$strip>;
3226
3415
  type CriteriaPlaylistDetailed = z.infer<typeof CriteriaPlaylistDetailedSchema>;
3227
3416
 
3228
- declare const YOUTUBE_UNPLAYABLE_REASON_LABELS: {
3229
- readonly not_found: "Video unavailable";
3230
- readonly not_embeddable: "Embedding disabled";
3231
- readonly private: "Private video";
3232
- readonly not_processed: "Video still processing";
3233
- readonly region_whitelisted: "Region restricted";
3234
- };
3235
- type YoutubeUnplayableReason = keyof typeof YOUTUBE_UNPLAYABLE_REASON_LABELS;
3236
- declare const SongDetailedSchema: z.ZodObject<{
3237
- uuid: z.ZodString;
3238
- title: z.ZodString;
3239
- artists: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
3240
- uuid: z.ZodString;
3241
- name: z.ZodString;
3242
- isSpecialPurpose: z.ZodOptional<z.ZodBoolean>;
3243
- }, z.core.$strip>>>>;
3244
- album: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3245
- uuid: z.ZodString;
3246
- name: z.ZodString;
3247
- albumArtists: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
3248
- uuid: z.ZodString;
3249
- name: z.ZodString;
3250
- isSpecialPurpose: z.ZodOptional<z.ZodBoolean>;
3251
- }, z.core.$strip>>>>;
3252
- }, z.core.$strip>>>;
3253
- trackNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3254
- genre: z.ZodObject<{
3255
- uuid: z.core.$ZodBranded<z.ZodString, "GenreUuid", "out">;
3256
- name: z.ZodString;
3257
- side: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
3258
- pop: "pop";
3259
- core: "core";
3260
- }>>>;
3261
- wikidataId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3262
- }, z.core.$strip>;
3263
- rating: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3264
- language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3265
- playCount: z.ZodNumber;
3266
- createdOn: z.ZodString;
3267
- updatedOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3268
- youtubeVideo: z.ZodNullable<z.ZodObject<{
3269
- id: z.ZodString;
3270
- unplayableReason: z.ZodNullable<z.ZodEnum<{
3271
- not_found: "not_found";
3272
- not_embeddable: "not_embeddable";
3273
- private: "private";
3274
- not_processed: "not_processed";
3275
- region_whitelisted: "region_whitelisted";
3276
- }>>;
3277
- }, z.core.$strip>>;
3278
- musicbrainzRecordingId: z.ZodNullable<z.ZodString>;
3279
- }, z.core.$strip>;
3280
- type SongDetailed = z.infer<typeof SongDetailedSchema>;
3281
- declare const NO_VIDEO_LABEL = "No video available";
3282
- declare function isSong(track: TrackBase): track is SongDetailed;
3283
- /** Human-readable reason a song can't be played, or null when it's playable. */
3284
- declare function songUnplayableReason(song: SongDetailed): string | null;
3285
- /** MusicBrainz recording page URL, or null when the song has no MBID. */
3286
- declare function musicBrainzRecordingUrl(song: SongDetailed): string | null;
3287
-
3288
3417
  declare const TrackMinimumSchema: z.ZodObject<{
3289
3418
  title: z.ZodString;
3290
3419
  uuid: z.ZodString;
@@ -3404,7 +3533,19 @@ declare const libraryQueryKeys: {
3404
3533
  songs: {
3405
3534
  all: readonly [`${string}Songs`];
3406
3535
  list: (page: number) => readonly [`${string}Songs`, "list", number];
3407
- detail: (uuid: string) => readonly [`${string}Songs`, "detail", string];
3536
+ detail: (uuid: string | null) => readonly [`${string}Songs`, "detail", string | null];
3537
+ history: (uuid: string | null) => readonly [`${string}Songs`, "history", string | null];
3538
+ search: (params: {
3539
+ q: string;
3540
+ limit?: number;
3541
+ genre?: string;
3542
+ playable?: boolean;
3543
+ }) => readonly [`${string}Songs`, "search", {
3544
+ q: string;
3545
+ limit?: number;
3546
+ genre?: string;
3547
+ playable?: boolean;
3548
+ }];
3408
3549
  byGenre: (baseUrl: string, genreUuid: GenreUuid) => readonly [`${string}Songs`, string, "genre", string & zod.$brand<"GenreUuid">];
3409
3550
  };
3410
3551
  };
@@ -3413,6 +3554,8 @@ declare const libraryEndpoints: {
3413
3554
  reference: {
3414
3555
  songs: {
3415
3556
  list: () => string;
3557
+ search: () => string;
3558
+ history: (uuid: string) => string;
3416
3559
  detail: (uuid: string) => string;
3417
3560
  delete: (uuid: string) => string;
3418
3561
  };
@@ -3488,4 +3631,4 @@ type SongsPage = {
3488
3631
  */
3489
3632
  declare function editGenreSongPages<P extends SongsPage>(data: InfiniteData<P> | undefined, edit: (tracks: P["tracks"]) => P["tracks"]): InfiniteData<P> | undefined;
3490
3633
 
3491
- 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 ReparentCandidate, type SongDetailed, SongDetailedSchema, 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 UseVisibleGenrePlaylistsOptions, type UuidResource, UuidResourceSchema, YOUTUBE_UNPLAYABLE_REASON_LABELS, type YoutubeUnplayableReason, artistEndpoints, artistQueryKeys, capitalizeFirstLetter, editGenreSongPages, formatTime, genreEndpoints, genrePlaylistEndpoints, genrePlaylistQueryKeys, genreQueryKeys, genreUpdateMutationKey, getGenrePlaylistsGroupedByRoot, getReparentCandidates, hasMainstreamPopRoot, isSong, 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, useTrackList, useTrackListSidebarVisibility, useUpdateGenre, useVisibleGenrePlaylists };
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 };
@@ -24,6 +24,10 @@ import {
24
24
  MbRecordingDetailedSchema,
25
25
  NO_VIDEO_LABEL,
26
26
  SongDetailedSchema,
27
+ SongHistoryEntrySchema,
28
+ SongHistorySchema,
29
+ SongSearchResultSchema,
30
+ SongSearchResultsSchema,
27
31
  TrackBaseSchema,
28
32
  TrackList,
29
33
  TrackListFromArtist,
@@ -53,6 +57,7 @@ import {
53
57
  getReparentCandidates,
54
58
  hasMainstreamPopRoot,
55
59
  isSong,
60
+ isSongSearchResultPlayable,
56
61
  libraryEndpoints,
57
62
  libraryQueryKeys,
58
63
  makeTrackPlaylistRelPageSchema,
@@ -79,12 +84,15 @@ import {
79
84
  useListGenres,
80
85
  useListTracks,
81
86
  usePrefetchGenreOverview,
87
+ useSong,
88
+ useSongHistory,
89
+ useSongSearch,
82
90
  useTrackList,
83
91
  useTrackListSidebarVisibility,
84
92
  useUpdateGenre,
85
93
  useVisibleGenrePlaylists
86
- } from "../chunk-WI4455RN.js";
87
- import "../chunk-7EOS2K24.js";
94
+ } from "../chunk-4EBHHVZI.js";
95
+ import "../chunk-BVWRP6IK.js";
88
96
  import "../chunk-T5D5T52J.js";
89
97
  import "../chunk-4MEK3CNF.js";
90
98
  import "../chunk-XCOAWKF6.js";
@@ -120,6 +128,10 @@ export {
120
128
  MbRecordingDetailedSchema,
121
129
  NO_VIDEO_LABEL,
122
130
  SongDetailedSchema,
131
+ SongHistoryEntrySchema,
132
+ SongHistorySchema,
133
+ SongSearchResultSchema,
134
+ SongSearchResultsSchema,
123
135
  TrackBaseSchema,
124
136
  TrackList,
125
137
  TrackListFromArtist,
@@ -149,6 +161,7 @@ export {
149
161
  getReparentCandidates,
150
162
  hasMainstreamPopRoot,
151
163
  isSong,
164
+ isSongSearchResultPlayable,
152
165
  libraryEndpoints,
153
166
  libraryQueryKeys,
154
167
  makeTrackPlaylistRelPageSchema,
@@ -175,6 +188,9 @@ export {
175
188
  useListGenres,
176
189
  useListTracks,
177
190
  usePrefetchGenreOverview,
191
+ useSong,
192
+ useSongHistory,
193
+ useSongSearch,
178
194
  useTrackList,
179
195
  useTrackListSidebarVisibility,
180
196
  useUpdateGenre,