@behindthemusictree/app-kit 24.0.1 → 28.0.2

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.
@@ -908,6 +908,7 @@ declare function useUpdateGenre(scope: Scope, getBackendBaseUrl: () => string):
908
908
  name?: string | undefined;
909
909
  parent?: (string & z.core.$brand<"GenreUuid">) | null | undefined;
910
910
  essentialSongs?: string[] | undefined;
911
+ side?: "pop" | "core" | undefined;
911
912
  };
912
913
  }, unknown>;
913
914
  renameGenre: (uuid: GenreUuid, name: string) => void;
@@ -1053,7 +1054,9 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
1053
1054
  createdOn: string;
1054
1055
  updatedOn: string | null;
1055
1056
  isUnacceptedRoot: boolean;
1057
+ viewsCount?: number | undefined;
1056
1058
  isUmbrella?: boolean | undefined;
1059
+ scene?: "commercial" | "underground" | null | undefined;
1057
1060
  }[];
1058
1061
  page: number;
1059
1062
  pageSize: number;
@@ -1106,7 +1109,9 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
1106
1109
  createdOn: string;
1107
1110
  updatedOn: string | null;
1108
1111
  isUnacceptedRoot: boolean;
1112
+ viewsCount?: number | undefined;
1109
1113
  isUmbrella?: boolean | undefined;
1114
+ scene?: "commercial" | "underground" | null | undefined;
1110
1115
  }[];
1111
1116
  page: number;
1112
1117
  pageSize: number;
@@ -1138,7 +1143,9 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
1138
1143
  createdOn: string;
1139
1144
  updatedOn: string | null;
1140
1145
  isUnacceptedRoot: boolean;
1146
+ viewsCount?: number | undefined;
1141
1147
  isUmbrella?: boolean | undefined;
1148
+ scene?: "commercial" | "underground" | null | undefined;
1142
1149
  }[];
1143
1150
  page: number;
1144
1151
  pageSize: number;
@@ -1171,7 +1178,9 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
1171
1178
  createdOn: string;
1172
1179
  updatedOn: string | null;
1173
1180
  isUnacceptedRoot: boolean;
1181
+ viewsCount?: number | undefined;
1174
1182
  isUmbrella?: boolean | undefined;
1183
+ scene?: "commercial" | "underground" | null | undefined;
1175
1184
  }[];
1176
1185
  page: number;
1177
1186
  pageSize: number;
@@ -1224,7 +1233,9 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
1224
1233
  createdOn: string;
1225
1234
  updatedOn: string | null;
1226
1235
  isUnacceptedRoot: boolean;
1236
+ viewsCount?: number | undefined;
1227
1237
  isUmbrella?: boolean | undefined;
1238
+ scene?: "commercial" | "underground" | null | undefined;
1228
1239
  }[];
1229
1240
  page: number;
1230
1241
  pageSize: number;
@@ -1256,7 +1267,9 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
1256
1267
  createdOn: string;
1257
1268
  updatedOn: string | null;
1258
1269
  isUnacceptedRoot: boolean;
1270
+ viewsCount?: number | undefined;
1259
1271
  isUmbrella?: boolean | undefined;
1272
+ scene?: "commercial" | "underground" | null | undefined;
1260
1273
  }[];
1261
1274
  page: number;
1262
1275
  pageSize: number;
@@ -1312,7 +1325,9 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
1312
1325
  createdOn: string;
1313
1326
  updatedOn: string | null;
1314
1327
  isUnacceptedRoot: boolean;
1328
+ viewsCount?: number | undefined;
1315
1329
  isUmbrella?: boolean | undefined;
1330
+ scene?: "commercial" | "underground" | null | undefined;
1316
1331
  }[];
1317
1332
  page: number;
1318
1333
  pageSize: number;
@@ -1344,7 +1359,9 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
1344
1359
  createdOn: string;
1345
1360
  updatedOn: string | null;
1346
1361
  isUnacceptedRoot: boolean;
1362
+ viewsCount?: number | undefined;
1347
1363
  isUmbrella?: boolean | undefined;
1364
+ scene?: "commercial" | "underground" | null | undefined;
1348
1365
  }[];
1349
1366
  page: number;
1350
1367
  pageSize: number;
@@ -1400,7 +1417,9 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
1400
1417
  createdOn: string;
1401
1418
  updatedOn: string | null;
1402
1419
  isUnacceptedRoot: boolean;
1420
+ viewsCount?: number | undefined;
1403
1421
  isUmbrella?: boolean | undefined;
1422
+ scene?: "commercial" | "underground" | null | undefined;
1404
1423
  }[];
1405
1424
  page: number;
1406
1425
  pageSize: number;
@@ -1432,7 +1451,9 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
1432
1451
  createdOn: string;
1433
1452
  updatedOn: string | null;
1434
1453
  isUnacceptedRoot: boolean;
1454
+ viewsCount?: number | undefined;
1435
1455
  isUmbrella?: boolean | undefined;
1456
+ scene?: "commercial" | "underground" | null | undefined;
1436
1457
  }[];
1437
1458
  page: number;
1438
1459
  pageSize: number;
@@ -1488,7 +1509,9 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
1488
1509
  createdOn: string;
1489
1510
  updatedOn: string | null;
1490
1511
  isUnacceptedRoot: boolean;
1512
+ viewsCount?: number | undefined;
1491
1513
  isUmbrella?: boolean | undefined;
1514
+ scene?: "commercial" | "underground" | null | undefined;
1492
1515
  }[];
1493
1516
  page: number;
1494
1517
  pageSize: number;
@@ -1520,7 +1543,9 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
1520
1543
  createdOn: string;
1521
1544
  updatedOn: string | null;
1522
1545
  isUnacceptedRoot: boolean;
1546
+ viewsCount?: number | undefined;
1523
1547
  isUmbrella?: boolean | undefined;
1548
+ scene?: "commercial" | "underground" | null | undefined;
1524
1549
  }[];
1525
1550
  page: number;
1526
1551
  pageSize: number;
@@ -1553,7 +1578,9 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
1553
1578
  createdOn: string;
1554
1579
  updatedOn: string | null;
1555
1580
  isUnacceptedRoot: boolean;
1581
+ viewsCount?: number | undefined;
1556
1582
  isUmbrella?: boolean | undefined;
1583
+ scene?: "commercial" | "underground" | null | undefined;
1557
1584
  }[];
1558
1585
  page: number;
1559
1586
  pageSize: number;
@@ -1606,7 +1633,9 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
1606
1633
  createdOn: string;
1607
1634
  updatedOn: string | null;
1608
1635
  isUnacceptedRoot: boolean;
1636
+ viewsCount?: number | undefined;
1609
1637
  isUmbrella?: boolean | undefined;
1638
+ scene?: "commercial" | "underground" | null | undefined;
1610
1639
  }[];
1611
1640
  page: number;
1612
1641
  pageSize: number;
@@ -1638,7 +1667,9 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
1638
1667
  createdOn: string;
1639
1668
  updatedOn: string | null;
1640
1669
  isUnacceptedRoot: boolean;
1670
+ viewsCount?: number | undefined;
1641
1671
  isUmbrella?: boolean | undefined;
1672
+ scene?: "commercial" | "underground" | null | undefined;
1642
1673
  }[];
1643
1674
  page: number;
1644
1675
  pageSize: number;
@@ -1668,7 +1699,9 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
1668
1699
  createdOn: string;
1669
1700
  updatedOn: string | null;
1670
1701
  isUnacceptedRoot: boolean;
1702
+ viewsCount?: number | undefined;
1671
1703
  isUmbrella?: boolean | undefined;
1704
+ scene?: "commercial" | "underground" | null | undefined;
1672
1705
  }[]>;
1673
1706
  error: Error;
1674
1707
  isError: true;
@@ -1713,7 +1746,9 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
1713
1746
  createdOn: string;
1714
1747
  updatedOn: string | null;
1715
1748
  isUnacceptedRoot: boolean;
1749
+ viewsCount?: number | undefined;
1716
1750
  isUmbrella?: boolean | undefined;
1751
+ scene?: "commercial" | "underground" | null | undefined;
1717
1752
  }[]>, Error>>;
1718
1753
  fetchStatus: _tanstack_react_query.FetchStatus;
1719
1754
  promise: Promise<NoInfer<{
@@ -1737,7 +1772,9 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
1737
1772
  createdOn: string;
1738
1773
  updatedOn: string | null;
1739
1774
  isUnacceptedRoot: boolean;
1775
+ viewsCount?: number | undefined;
1740
1776
  isUmbrella?: boolean | undefined;
1777
+ scene?: "commercial" | "underground" | null | undefined;
1741
1778
  }[]>>;
1742
1779
  } | {
1743
1780
  invalidateFullGenrePlaylists: () => void;
@@ -1762,7 +1799,9 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
1762
1799
  createdOn: string;
1763
1800
  updatedOn: string | null;
1764
1801
  isUnacceptedRoot: boolean;
1802
+ viewsCount?: number | undefined;
1765
1803
  isUmbrella?: boolean | undefined;
1804
+ scene?: "commercial" | "underground" | null | undefined;
1766
1805
  }[]>;
1767
1806
  error: null;
1768
1807
  isError: false;
@@ -1807,7 +1846,9 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
1807
1846
  createdOn: string;
1808
1847
  updatedOn: string | null;
1809
1848
  isUnacceptedRoot: boolean;
1849
+ viewsCount?: number | undefined;
1810
1850
  isUmbrella?: boolean | undefined;
1851
+ scene?: "commercial" | "underground" | null | undefined;
1811
1852
  }[]>, Error>>;
1812
1853
  fetchStatus: _tanstack_react_query.FetchStatus;
1813
1854
  promise: Promise<NoInfer<{
@@ -1831,7 +1872,9 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
1831
1872
  createdOn: string;
1832
1873
  updatedOn: string | null;
1833
1874
  isUnacceptedRoot: boolean;
1875
+ viewsCount?: number | undefined;
1834
1876
  isUmbrella?: boolean | undefined;
1877
+ scene?: "commercial" | "underground" | null | undefined;
1835
1878
  }[]>>;
1836
1879
  } | {
1837
1880
  invalidateFullGenrePlaylists: () => void;
@@ -1879,7 +1922,9 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
1879
1922
  createdOn: string;
1880
1923
  updatedOn: string | null;
1881
1924
  isUnacceptedRoot: boolean;
1925
+ viewsCount?: number | undefined;
1882
1926
  isUmbrella?: boolean | undefined;
1927
+ scene?: "commercial" | "underground" | null | undefined;
1883
1928
  }[]>, Error>>;
1884
1929
  fetchStatus: _tanstack_react_query.FetchStatus;
1885
1930
  promise: Promise<NoInfer<{
@@ -1903,7 +1948,9 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
1903
1948
  createdOn: string;
1904
1949
  updatedOn: string | null;
1905
1950
  isUnacceptedRoot: boolean;
1951
+ viewsCount?: number | undefined;
1906
1952
  isUmbrella?: boolean | undefined;
1953
+ scene?: "commercial" | "underground" | null | undefined;
1907
1954
  }[]>>;
1908
1955
  } | {
1909
1956
  invalidateFullGenrePlaylists: () => void;
@@ -1951,7 +1998,9 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
1951
1998
  createdOn: string;
1952
1999
  updatedOn: string | null;
1953
2000
  isUnacceptedRoot: boolean;
2001
+ viewsCount?: number | undefined;
1954
2002
  isUmbrella?: boolean | undefined;
2003
+ scene?: "commercial" | "underground" | null | undefined;
1955
2004
  }[]>, Error>>;
1956
2005
  fetchStatus: _tanstack_react_query.FetchStatus;
1957
2006
  promise: Promise<NoInfer<{
@@ -1975,7 +2024,9 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
1975
2024
  createdOn: string;
1976
2025
  updatedOn: string | null;
1977
2026
  isUnacceptedRoot: boolean;
2027
+ viewsCount?: number | undefined;
1978
2028
  isUmbrella?: boolean | undefined;
2029
+ scene?: "commercial" | "underground" | null | undefined;
1979
2030
  }[]>>;
1980
2031
  } | {
1981
2032
  invalidateFullGenrePlaylists: () => void;
@@ -2023,7 +2074,9 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
2023
2074
  createdOn: string;
2024
2075
  updatedOn: string | null;
2025
2076
  isUnacceptedRoot: boolean;
2077
+ viewsCount?: number | undefined;
2026
2078
  isUmbrella?: boolean | undefined;
2079
+ scene?: "commercial" | "underground" | null | undefined;
2027
2080
  }[]>, Error>>;
2028
2081
  fetchStatus: _tanstack_react_query.FetchStatus;
2029
2082
  promise: Promise<NoInfer<{
@@ -2047,7 +2100,9 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
2047
2100
  createdOn: string;
2048
2101
  updatedOn: string | null;
2049
2102
  isUnacceptedRoot: boolean;
2103
+ viewsCount?: number | undefined;
2050
2104
  isUmbrella?: boolean | undefined;
2105
+ scene?: "commercial" | "underground" | null | undefined;
2051
2106
  }[]>>;
2052
2107
  } | {
2053
2108
  invalidateFullGenrePlaylists: () => void;
@@ -2072,7 +2127,9 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
2072
2127
  createdOn: string;
2073
2128
  updatedOn: string | null;
2074
2129
  isUnacceptedRoot: boolean;
2130
+ viewsCount?: number | undefined;
2075
2131
  isUmbrella?: boolean | undefined;
2132
+ scene?: "commercial" | "underground" | null | undefined;
2076
2133
  }[]>;
2077
2134
  isError: false;
2078
2135
  error: null;
@@ -2117,7 +2174,9 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
2117
2174
  createdOn: string;
2118
2175
  updatedOn: string | null;
2119
2176
  isUnacceptedRoot: boolean;
2177
+ viewsCount?: number | undefined;
2120
2178
  isUmbrella?: boolean | undefined;
2179
+ scene?: "commercial" | "underground" | null | undefined;
2121
2180
  }[]>, Error>>;
2122
2181
  fetchStatus: _tanstack_react_query.FetchStatus;
2123
2182
  promise: Promise<NoInfer<{
@@ -2141,7 +2200,9 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
2141
2200
  createdOn: string;
2142
2201
  updatedOn: string | null;
2143
2202
  isUnacceptedRoot: boolean;
2203
+ viewsCount?: number | undefined;
2144
2204
  isUmbrella?: boolean | undefined;
2205
+ scene?: "commercial" | "underground" | null | undefined;
2145
2206
  }[]>>;
2146
2207
  };
2147
2208
  declare const useFetchGenrePlaylist: <T>(uuid: GenrePlaylistUuid, getBackendBaseUrl: () => string, criteriaPlaylistDetailedSchema: z.ZodType<T, unknown>) => _tanstack_react_query.UseQueryResult<NoInfer<T>, Error>;
@@ -2286,6 +2347,8 @@ interface UseArtistSearchResult {
2286
2347
  isError: boolean;
2287
2348
  /** True once the debounced query has caught up with the typed one and its fetch has finished. */
2288
2349
  settled: boolean;
2350
+ /** True from the first typed character past the minimum until results arrive or the search fails; covers the debounce. */
2351
+ pending: boolean;
2289
2352
  }
2290
2353
  declare function useArtistSearch(getBackendBaseUrl: () => string, text: string): UseArtistSearchResult;
2291
2354
 
@@ -2304,6 +2367,7 @@ declare const CriteriaPlaylistSimpleSchema: z.ZodObject<{
2304
2367
  name: z.ZodString;
2305
2368
  }, z.core.$strip>;
2306
2369
  tracksCount: z.ZodNumber;
2370
+ viewsCount: z.ZodOptional<z.ZodNumber>;
2307
2371
  criteria: z.ZodNullable<z.ZodObject<{
2308
2372
  uuid: z.core.$ZodBranded<z.ZodString, "GenreUuid", "out">;
2309
2373
  name: z.ZodString;
@@ -2321,6 +2385,10 @@ declare const CriteriaPlaylistSimpleSchema: z.ZodObject<{
2321
2385
  updatedOn: z.ZodNullable<z.ZodString>;
2322
2386
  isUnacceptedRoot: z.ZodBoolean;
2323
2387
  isUmbrella: z.ZodOptional<z.ZodBoolean>;
2388
+ scene: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2389
+ commercial: "commercial";
2390
+ underground: "underground";
2391
+ }>>>;
2324
2392
  }, z.core.$strip>;
2325
2393
  type CriteriaPlaylistSimple = z.infer<typeof CriteriaPlaylistSimpleSchema>;
2326
2394
 
@@ -2351,14 +2419,18 @@ interface UseGenreTreeViewStateOptions<O extends CriteriaOverview = CriteriaOver
2351
2419
  viewMode?: GenreViewMode;
2352
2420
  /** Narrows the tree to this artist's footprint (see `useVisibleGenrePlaylists`). */
2353
2421
  artistUuid?: string | null;
2354
- /** Controlled selection (a genre playlist uuid, i.e. the tree node id). */
2422
+ /** Controlled selection (a genre playlist UUID, i.e. the tree node ID).
2423
+ * Legacy criteria UUIDs are resolved on load.
2424
+ */
2355
2425
  selectedNodeId?: string | null;
2356
- /** Called on every user-driven selection change (node click, search pick, search clear). */
2426
+ /** Called when selection changes, including normalizing a legacy criteria UUID to its playlist UUID. */
2357
2427
  onSelectedNodeIdChange?: (nodeId: string | null) => void;
2358
2428
  criteriaOverviewSchema?: z.ZodType<O, unknown>;
2359
2429
  }
2360
2430
  interface UseGenreTreeViewStateResult {
2361
2431
  isLoading: boolean;
2432
+ /** True while the visible tree is being refreshed or re-pruned; the previous tree stays in `genrePlaylists`. */
2433
+ isFetching: boolean;
2362
2434
  genrePlaylists: CriteriaPlaylistSimple[];
2363
2435
  genrePlaylistByNodeId: Map<string, CriteriaPlaylistSimple>;
2364
2436
  /** Playlists the current view mode may show: unaccepted roots and, outside stacked/outline, criteria-less playlists are hidden. */
@@ -2395,11 +2467,14 @@ interface UseVisibleGenrePlaylistsOptions {
2395
2467
  /**
2396
2468
  * The tree the user can navigate: the whole canonical tree, or the artist's footprint when
2397
2469
  * `artistUuid` is set. Hosts validate URL state (selected genre, focus) against this list. While the
2398
- * artist's counts load it is empty and `isLoading` is true; if they fail (unknown artist, backend
2399
- * error) the whole tree is served, the artist panel being where that failure is shown.
2470
+ * artist's counts load the current tree stays (full, or the previous artist's footprint) and
2471
+ * `isFetching` is true; `isLoading` is true only until the first tree arrives. If the counts fail
2472
+ * (unknown artist, backend error) the whole tree is served, the artist panel being where that failure
2473
+ * is shown.
2400
2474
  */
2401
2475
  declare function useVisibleGenrePlaylists({ scope, getBackendBaseUrl, artistUuid }: UseVisibleGenrePlaylistsOptions): {
2402
2476
  isLoading: boolean;
2477
+ isFetching: boolean;
2403
2478
  genrePlaylists: {
2404
2479
  uuid: string & zod.$brand<"GenrePlaylistUuid">;
2405
2480
  name: string;
@@ -2421,7 +2496,9 @@ declare function useVisibleGenrePlaylists({ scope, getBackendBaseUrl, artistUuid
2421
2496
  createdOn: string;
2422
2497
  updatedOn: string | null;
2423
2498
  isUnacceptedRoot: boolean;
2499
+ viewsCount?: number | undefined;
2424
2500
  isUmbrella?: boolean | undefined;
2501
+ scene?: "commercial" | "underground" | null | undefined;
2425
2502
  }[];
2426
2503
  };
2427
2504
 
@@ -2569,6 +2646,15 @@ interface TrackListContextType<T extends TrackBase> {
2569
2646
  trackList: TrackList<T> | null;
2570
2647
  selectedTrack: T | null;
2571
2648
  setSelectedTrack: (track: T | null) => void;
2649
+ autoAdvanceScrollRequest: {
2650
+ id: number;
2651
+ trackUuid: string;
2652
+ } | null;
2653
+ runtimeUnplayableTrackIds: ReadonlySet<string>;
2654
+ hasNextTrack: boolean;
2655
+ hasPreviousTrack: boolean;
2656
+ playNextTrack: () => void;
2657
+ playPreviousTrack: () => void;
2572
2658
  toTrackAtPosition: (position: number) => void;
2573
2659
  playNewTrackListFromTrackUuid: (track: T, scope: Scope) => void;
2574
2660
  /**
@@ -2588,15 +2674,18 @@ interface TrackListContextType<T extends TrackBase> {
2588
2674
  fetchGenrePlaylistTracksPage: (uuid: GenrePlaylistUuid, scope: Scope, page: number, from?: string) => Promise<GenrePlaylistTracksPage<T>>;
2589
2675
  /** Appends the next tracks page of the current genre-playlist or artist list; no-op when fully loaded or already loading. */
2590
2676
  loadMore: () => Promise<void>;
2677
+ /**
2678
+ * Swaps in a fresh copy of a listed track (matched by `uuid`), and the selected track if it is
2679
+ * that one; no-op when the track isn't listed. Call it from a track mutation's `onSuccess`.
2680
+ */
2681
+ updateTrack: (track: T) => void;
2591
2682
  }
2592
2683
  interface TrackListProviderProps<T extends TrackBase> {
2593
2684
  children: ReactNode;
2594
2685
  getBackendBaseUrl: () => string;
2595
2686
  schema: z.ZodType<T, unknown>;
2596
- listEndpoint: (page: number) => string;
2597
- listQueryKey: (page: number) => readonly unknown[];
2598
2687
  }
2599
- declare function TrackListProvider<T extends TrackBase>({ children, getBackendBaseUrl, schema, listEndpoint, listQueryKey, }: TrackListProviderProps<T>): react.JSX.Element;
2688
+ declare function TrackListProvider<T extends TrackBase>({ children, getBackendBaseUrl, schema, }: TrackListProviderProps<T>): react.JSX.Element;
2600
2689
  declare function useTrackList<T extends TrackBase = TrackBase>(): TrackListContextType<T>;
2601
2690
 
2602
2691
  interface TrackListSidebarVisibilityContextType {
@@ -2711,6 +2800,10 @@ declare const CriteriaUpdateSchema: z.ZodObject<{
2711
2800
  name: z.ZodOptional<z.ZodString>;
2712
2801
  parent: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "GenreUuid", "out">>>;
2713
2802
  essentialSongs: z.ZodOptional<z.ZodArray<z.ZodString>>;
2803
+ side: z.ZodOptional<z.ZodEnum<{
2804
+ pop: "pop";
2805
+ core: "core";
2806
+ }>>;
2714
2807
  }, z.core.$strip>;
2715
2808
  type CriteriaUpdateValues = z.infer<typeof CriteriaUpdateSchema>;
2716
2809
 
@@ -2746,6 +2839,7 @@ declare const CriteriaPlaylistDetailedSchema: z.ZodObject<{
2746
2839
  uuid: z.core.$ZodBranded<z.ZodString, "GenrePlaylistUuid", "out">;
2747
2840
  name: z.ZodString;
2748
2841
  tracksCount: z.ZodNumber;
2842
+ viewsCount: z.ZodOptional<z.ZodNumber>;
2749
2843
  durationInSec: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2750
2844
  durationStrInHourMinSec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2751
2845
  criteria: z.ZodNullable<z.ZodObject<{
@@ -2873,6 +2967,7 @@ declare const genreQueryKeys: {
2873
2967
  overview: (id: GenreUuid) => readonly ["referenceGenres", "overview", string & zod.$brand<"GenreUuid">];
2874
2968
  };
2875
2969
  };
2970
+ declare const genreUpdateMutationKey: readonly ["genres", "update"];
2876
2971
 
2877
2972
  declare const genreEndpoints: {
2878
2973
  me: {
@@ -2987,7 +3082,9 @@ declare const getGenrePlaylistsGroupedByRoot: (genrePlaylists: CriteriaPlaylistS
2987
3082
  createdOn: string;
2988
3083
  updatedOn: string | null;
2989
3084
  isUnacceptedRoot: boolean;
3085
+ viewsCount?: number | undefined;
2990
3086
  isUmbrella?: boolean | undefined;
3087
+ scene?: "commercial" | "underground" | null | undefined;
2991
3088
  }[]>;
2992
3089
  /** Whether `nodes` contains a root node (`parentId === null`) named exactly "Mainstream Pop" —
2993
3090
  * the precondition `GenreTreeWheelRadialPopCore` requires before rendering. */
@@ -3028,4 +3125,4 @@ type SongsPage = {
3028
3125
  */
3029
3126
  declare function editGenreSongPages<P extends SongsPage>(data: InfiniteData<P> | undefined, edit: (tracks: P["tracks"]) => P["tracks"]): InfiniteData<P> | undefined;
3030
3127
 
3031
- 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, getGenrePlaylistsGroupedByRoot, getReparentCandidates, hasMainstreamPopRoot, isSong, libraryEndpoints, libraryQueryKeys, makeTrackPlaylistRelPageSchema, makeTrackPlaylistRelSchema, musicBrainzRecordingUrl, pruneGenrePlaylistsForArtist, searchGenrePlaylistsByName, songUnplayableReason, useArtist, useArtistGenreCounts, useArtistSearch, useCreateGenre, useDeleteGenre, useFetchGenre, useFetchGenreDetail, useFetchGenreOverview, useFetchGenrePlaylist, useGenreSearch, useGenreTreeViewState, useInvalidateAllGenrePlaylistQueries, useListFullGenrePlaylists, useListGenrePlaylists, useListGenres, useListTracks, usePrefetchGenreOverview, useTrackList, useTrackListSidebarVisibility, useUpdateGenre, useVisibleGenrePlaylists };
3128
+ 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, useGenreSearch, useGenreTreeViewState, useInvalidateAllGenrePlaylistQueries, useListFullGenrePlaylists, useListGenrePlaylists, useListGenres, useListTracks, usePrefetchGenreOverview, useTrackList, useTrackListSidebarVisibility, useUpdateGenre, useVisibleGenrePlaylists };
@@ -48,6 +48,7 @@ import {
48
48
  genrePlaylistEndpoints,
49
49
  genrePlaylistQueryKeys,
50
50
  genreQueryKeys,
51
+ genreUpdateMutationKey,
51
52
  getGenrePlaylistsGroupedByRoot,
52
53
  getReparentCandidates,
53
54
  hasMainstreamPopRoot,
@@ -81,11 +82,11 @@ import {
81
82
  useTrackListSidebarVisibility,
82
83
  useUpdateGenre,
83
84
  useVisibleGenrePlaylists
84
- } from "../chunk-Y52MKNHR.js";
85
+ } from "../chunk-XIKMW7U4.js";
85
86
  import "../chunk-7EOS2K24.js";
86
87
  import "../chunk-T5D5T52J.js";
87
88
  import "../chunk-4MEK3CNF.js";
88
- import "../chunk-OIZPAN6I.js";
89
+ import "../chunk-XCOAWKF6.js";
89
90
  import {
90
91
  GenrePlaylistUuidSchema,
91
92
  GenreUuidSchema
@@ -142,6 +143,7 @@ export {
142
143
  genrePlaylistEndpoints,
143
144
  genrePlaylistQueryKeys,
144
145
  genreQueryKeys,
146
+ genreUpdateMutationKey,
145
147
  getGenrePlaylistsGroupedByRoot,
146
148
  getReparentCandidates,
147
149
  hasMainstreamPopRoot,