@behindthemusictree/app-kit 26.1.0 → 29.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.
@@ -12,6 +12,7 @@ declare const CriteriaDetailedSchema: z.ZodObject<{
12
12
  uuid: z.core.$ZodBranded<z.ZodString, "GenreUuid", "out">;
13
13
  name: z.ZodString;
14
14
  summary: z.ZodNullable<z.ZodString>;
15
+ wikidataId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
16
  parent: z.ZodNullable<z.ZodObject<{
16
17
  uuid: z.core.$ZodBranded<z.ZodString, "GenreUuid", "out">;
17
18
  name: z.ZodString;
@@ -130,6 +131,356 @@ declare function useListGenres(page: number | undefined, pageSize: number | stri
130
131
  }>, Error>;
131
132
  declare function useFetchGenre(scope: Scope, getBackendBaseUrl: () => string): (id: GenreUuid) => Promise<CriteriaDetailed>;
132
133
  declare function useFetchGenreDetail<D extends CriteriaDetailed = CriteriaDetailed>(id: GenreUuid | null, scope: Scope, getBackendBaseUrl: () => string, schema?: z.ZodType<D, unknown>): _tanstack_react_query.UseQueryResult<NoInfer<D>, Error>;
134
+ /** The genre carrying a Wikidata item id: `undefined` while loading or disabled, `null` when the API has none. */
135
+ declare function useGenreByWikidataId(qid: string | null, scope: Scope, getBackendBaseUrl: () => string): {
136
+ data: {
137
+ uuid: string & z.core.$brand<"GenreUuid">;
138
+ name: string;
139
+ side?: "pop" | "core" | null | undefined;
140
+ wikidataId?: string | null | undefined;
141
+ } | undefined;
142
+ error: Error;
143
+ isError: true;
144
+ isPending: false;
145
+ isLoading: false;
146
+ isLoadingError: false;
147
+ isRefetchError: true;
148
+ isSuccess: false;
149
+ isPlaceholderData: false;
150
+ status: "error";
151
+ dataUpdatedAt: number;
152
+ errorUpdatedAt: number;
153
+ failureCount: number;
154
+ failureReason: Error | null;
155
+ errorUpdateCount: number;
156
+ isFetched: boolean;
157
+ isFetchedAfterMount: boolean;
158
+ isFetching: boolean;
159
+ isInitialLoading: boolean;
160
+ isPaused: boolean;
161
+ isRefetching: boolean;
162
+ isStale: boolean;
163
+ isEnabled: boolean;
164
+ refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<NoInfer<{
165
+ overallTotal: number;
166
+ next: string | null;
167
+ previous: string | null;
168
+ results: {
169
+ uuid: string & z.core.$brand<"GenreUuid">;
170
+ name: string;
171
+ side?: "pop" | "core" | null | undefined;
172
+ wikidataId?: string | null | undefined;
173
+ }[];
174
+ page: number;
175
+ pageSize: number;
176
+ totalPages: number;
177
+ }>, Error>>;
178
+ fetchStatus: _tanstack_react_query.FetchStatus;
179
+ promise: Promise<NoInfer<{
180
+ overallTotal: number;
181
+ next: string | null;
182
+ previous: string | null;
183
+ results: {
184
+ uuid: string & z.core.$brand<"GenreUuid">;
185
+ name: string;
186
+ side?: "pop" | "core" | null | undefined;
187
+ wikidataId?: string | null | undefined;
188
+ }[];
189
+ page: number;
190
+ pageSize: number;
191
+ totalPages: number;
192
+ }>>;
193
+ } | {
194
+ data: {
195
+ uuid: string & z.core.$brand<"GenreUuid">;
196
+ name: string;
197
+ side?: "pop" | "core" | null | undefined;
198
+ wikidataId?: string | null | undefined;
199
+ } | undefined;
200
+ error: null;
201
+ isError: false;
202
+ isPending: false;
203
+ isLoading: false;
204
+ isLoadingError: false;
205
+ isRefetchError: false;
206
+ isSuccess: true;
207
+ isPlaceholderData: false;
208
+ status: "success";
209
+ dataUpdatedAt: number;
210
+ errorUpdatedAt: number;
211
+ failureCount: number;
212
+ failureReason: Error | null;
213
+ errorUpdateCount: number;
214
+ isFetched: boolean;
215
+ isFetchedAfterMount: boolean;
216
+ isFetching: boolean;
217
+ isInitialLoading: boolean;
218
+ isPaused: boolean;
219
+ isRefetching: boolean;
220
+ isStale: boolean;
221
+ isEnabled: boolean;
222
+ refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<NoInfer<{
223
+ overallTotal: number;
224
+ next: string | null;
225
+ previous: string | null;
226
+ results: {
227
+ uuid: string & z.core.$brand<"GenreUuid">;
228
+ name: string;
229
+ side?: "pop" | "core" | null | undefined;
230
+ wikidataId?: string | null | undefined;
231
+ }[];
232
+ page: number;
233
+ pageSize: number;
234
+ totalPages: number;
235
+ }>, Error>>;
236
+ fetchStatus: _tanstack_react_query.FetchStatus;
237
+ promise: Promise<NoInfer<{
238
+ overallTotal: number;
239
+ next: string | null;
240
+ previous: string | null;
241
+ results: {
242
+ uuid: string & z.core.$brand<"GenreUuid">;
243
+ name: string;
244
+ side?: "pop" | "core" | null | undefined;
245
+ wikidataId?: string | null | undefined;
246
+ }[];
247
+ page: number;
248
+ pageSize: number;
249
+ totalPages: number;
250
+ }>>;
251
+ } | {
252
+ data: {
253
+ uuid: string & z.core.$brand<"GenreUuid">;
254
+ name: string;
255
+ side?: "pop" | "core" | null | undefined;
256
+ wikidataId?: string | null | undefined;
257
+ } | undefined;
258
+ error: Error;
259
+ isError: true;
260
+ isPending: false;
261
+ isLoading: false;
262
+ isLoadingError: true;
263
+ isRefetchError: false;
264
+ isSuccess: false;
265
+ isPlaceholderData: false;
266
+ status: "error";
267
+ dataUpdatedAt: number;
268
+ errorUpdatedAt: number;
269
+ failureCount: number;
270
+ failureReason: Error | null;
271
+ errorUpdateCount: number;
272
+ isFetched: boolean;
273
+ isFetchedAfterMount: boolean;
274
+ isFetching: boolean;
275
+ isInitialLoading: boolean;
276
+ isPaused: boolean;
277
+ isRefetching: boolean;
278
+ isStale: boolean;
279
+ isEnabled: boolean;
280
+ refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<NoInfer<{
281
+ overallTotal: number;
282
+ next: string | null;
283
+ previous: string | null;
284
+ results: {
285
+ uuid: string & z.core.$brand<"GenreUuid">;
286
+ name: string;
287
+ side?: "pop" | "core" | null | undefined;
288
+ wikidataId?: string | null | undefined;
289
+ }[];
290
+ page: number;
291
+ pageSize: number;
292
+ totalPages: number;
293
+ }>, Error>>;
294
+ fetchStatus: _tanstack_react_query.FetchStatus;
295
+ promise: Promise<NoInfer<{
296
+ overallTotal: number;
297
+ next: string | null;
298
+ previous: string | null;
299
+ results: {
300
+ uuid: string & z.core.$brand<"GenreUuid">;
301
+ name: string;
302
+ side?: "pop" | "core" | null | undefined;
303
+ wikidataId?: string | null | undefined;
304
+ }[];
305
+ page: number;
306
+ pageSize: number;
307
+ totalPages: number;
308
+ }>>;
309
+ } | {
310
+ data: {
311
+ uuid: string & z.core.$brand<"GenreUuid">;
312
+ name: string;
313
+ side?: "pop" | "core" | null | undefined;
314
+ wikidataId?: string | null | undefined;
315
+ } | undefined;
316
+ error: null;
317
+ isError: false;
318
+ isPending: true;
319
+ isLoading: true;
320
+ isLoadingError: false;
321
+ isRefetchError: false;
322
+ isSuccess: false;
323
+ isPlaceholderData: false;
324
+ status: "pending";
325
+ dataUpdatedAt: number;
326
+ errorUpdatedAt: number;
327
+ failureCount: number;
328
+ failureReason: Error | null;
329
+ errorUpdateCount: number;
330
+ isFetched: boolean;
331
+ isFetchedAfterMount: boolean;
332
+ isFetching: boolean;
333
+ isInitialLoading: boolean;
334
+ isPaused: boolean;
335
+ isRefetching: boolean;
336
+ isStale: boolean;
337
+ isEnabled: boolean;
338
+ refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<NoInfer<{
339
+ overallTotal: number;
340
+ next: string | null;
341
+ previous: string | null;
342
+ results: {
343
+ uuid: string & z.core.$brand<"GenreUuid">;
344
+ name: string;
345
+ side?: "pop" | "core" | null | undefined;
346
+ wikidataId?: string | null | undefined;
347
+ }[];
348
+ page: number;
349
+ pageSize: number;
350
+ totalPages: number;
351
+ }>, Error>>;
352
+ fetchStatus: _tanstack_react_query.FetchStatus;
353
+ promise: Promise<NoInfer<{
354
+ overallTotal: number;
355
+ next: string | null;
356
+ previous: string | null;
357
+ results: {
358
+ uuid: string & z.core.$brand<"GenreUuid">;
359
+ name: string;
360
+ side?: "pop" | "core" | null | undefined;
361
+ wikidataId?: string | null | undefined;
362
+ }[];
363
+ page: number;
364
+ pageSize: number;
365
+ totalPages: number;
366
+ }>>;
367
+ } | {
368
+ data: {
369
+ uuid: string & z.core.$brand<"GenreUuid">;
370
+ name: string;
371
+ side?: "pop" | "core" | null | undefined;
372
+ wikidataId?: string | null | undefined;
373
+ } | undefined;
374
+ error: null;
375
+ isError: false;
376
+ isPending: true;
377
+ isLoadingError: false;
378
+ isRefetchError: false;
379
+ isSuccess: false;
380
+ isPlaceholderData: false;
381
+ status: "pending";
382
+ dataUpdatedAt: number;
383
+ errorUpdatedAt: number;
384
+ failureCount: number;
385
+ failureReason: Error | null;
386
+ errorUpdateCount: number;
387
+ isFetched: boolean;
388
+ isFetchedAfterMount: boolean;
389
+ isFetching: boolean;
390
+ isLoading: boolean;
391
+ isInitialLoading: boolean;
392
+ isPaused: boolean;
393
+ isRefetching: boolean;
394
+ isStale: boolean;
395
+ isEnabled: boolean;
396
+ refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<NoInfer<{
397
+ overallTotal: number;
398
+ next: string | null;
399
+ previous: string | null;
400
+ results: {
401
+ uuid: string & z.core.$brand<"GenreUuid">;
402
+ name: string;
403
+ side?: "pop" | "core" | null | undefined;
404
+ wikidataId?: string | null | undefined;
405
+ }[];
406
+ page: number;
407
+ pageSize: number;
408
+ totalPages: number;
409
+ }>, Error>>;
410
+ fetchStatus: _tanstack_react_query.FetchStatus;
411
+ promise: Promise<NoInfer<{
412
+ overallTotal: number;
413
+ next: string | null;
414
+ previous: string | null;
415
+ results: {
416
+ uuid: string & z.core.$brand<"GenreUuid">;
417
+ name: string;
418
+ side?: "pop" | "core" | null | undefined;
419
+ wikidataId?: string | null | undefined;
420
+ }[];
421
+ page: number;
422
+ pageSize: number;
423
+ totalPages: number;
424
+ }>>;
425
+ } | {
426
+ data: {
427
+ uuid: string & z.core.$brand<"GenreUuid">;
428
+ name: string;
429
+ side?: "pop" | "core" | null | undefined;
430
+ wikidataId?: string | null | undefined;
431
+ } | undefined;
432
+ isError: false;
433
+ error: null;
434
+ isPending: false;
435
+ isLoading: false;
436
+ isLoadingError: false;
437
+ isRefetchError: false;
438
+ isSuccess: true;
439
+ isPlaceholderData: true;
440
+ status: "success";
441
+ dataUpdatedAt: number;
442
+ errorUpdatedAt: number;
443
+ failureCount: number;
444
+ failureReason: Error | null;
445
+ errorUpdateCount: number;
446
+ isFetched: boolean;
447
+ isFetchedAfterMount: boolean;
448
+ isFetching: boolean;
449
+ isInitialLoading: boolean;
450
+ isPaused: boolean;
451
+ isRefetching: boolean;
452
+ isStale: boolean;
453
+ isEnabled: boolean;
454
+ refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<NoInfer<{
455
+ overallTotal: number;
456
+ next: string | null;
457
+ previous: string | null;
458
+ results: {
459
+ uuid: string & z.core.$brand<"GenreUuid">;
460
+ name: string;
461
+ side?: "pop" | "core" | null | undefined;
462
+ wikidataId?: string | null | undefined;
463
+ }[];
464
+ page: number;
465
+ pageSize: number;
466
+ totalPages: number;
467
+ }>, Error>>;
468
+ fetchStatus: _tanstack_react_query.FetchStatus;
469
+ promise: Promise<NoInfer<{
470
+ overallTotal: number;
471
+ next: string | null;
472
+ previous: string | null;
473
+ results: {
474
+ uuid: string & z.core.$brand<"GenreUuid">;
475
+ name: string;
476
+ side?: "pop" | "core" | null | undefined;
477
+ wikidataId?: string | null | undefined;
478
+ }[];
479
+ page: number;
480
+ pageSize: number;
481
+ totalPages: number;
482
+ }>>;
483
+ };
133
484
  declare function useFetchGenreOverview<O extends CriteriaOverview = CriteriaOverview>(id: GenreUuid | null, scope: Scope, getBackendBaseUrl: () => string, schema?: z.ZodType<O, unknown>): _tanstack_react_query.UseQueryResult<NoInfer<O>, Error>;
134
485
  declare function usePrefetchGenreOverview<O extends CriteriaOverview = CriteriaOverview>(scope: Scope, getBackendBaseUrl: () => string, schema?: z.ZodType<O, unknown>): (id: GenreUuid) => Promise<void>;
135
486
  declare function useCreateGenre(scope: Scope, getBackendBaseUrl: () => string): {
@@ -209,6 +560,7 @@ declare function useCreateGenre(scope: Scope, getBackendBaseUrl: () => string):
209
560
  }[];
210
561
  tracksCount: number;
211
562
  updatedOn: string | null;
563
+ wikidataId?: string | null | undefined;
212
564
  }, Error, {
213
565
  name: string;
214
566
  parent?: (string & z.core.$brand<"GenreUuid">) | undefined;
@@ -284,6 +636,7 @@ declare function useCreateGenre(scope: Scope, getBackendBaseUrl: () => string):
284
636
  }[];
285
637
  tracksCount: number;
286
638
  updatedOn: string | null;
639
+ wikidataId?: string | null | undefined;
287
640
  }, Error, {
288
641
  name: string;
289
642
  parent?: (string & z.core.$brand<"GenreUuid">) | undefined;
@@ -370,6 +723,7 @@ declare function useCreateGenre(scope: Scope, getBackendBaseUrl: () => string):
370
723
  }[];
371
724
  tracksCount: number;
372
725
  updatedOn: string | null;
726
+ wikidataId?: string | null | undefined;
373
727
  }, Error, {
374
728
  name: string;
375
729
  parent?: (string & z.core.$brand<"GenreUuid">) | undefined;
@@ -445,6 +799,7 @@ declare function useCreateGenre(scope: Scope, getBackendBaseUrl: () => string):
445
799
  }[];
446
800
  tracksCount: number;
447
801
  updatedOn: string | null;
802
+ wikidataId?: string | null | undefined;
448
803
  }, Error, {
449
804
  name: string;
450
805
  parent?: (string & z.core.$brand<"GenreUuid">) | undefined;
@@ -531,6 +886,7 @@ declare function useCreateGenre(scope: Scope, getBackendBaseUrl: () => string):
531
886
  }[];
532
887
  tracksCount: number;
533
888
  updatedOn: string | null;
889
+ wikidataId?: string | null | undefined;
534
890
  }, Error, {
535
891
  name: string;
536
892
  parent?: (string & z.core.$brand<"GenreUuid">) | undefined;
@@ -606,6 +962,7 @@ declare function useCreateGenre(scope: Scope, getBackendBaseUrl: () => string):
606
962
  }[];
607
963
  tracksCount: number;
608
964
  updatedOn: string | null;
965
+ wikidataId?: string | null | undefined;
609
966
  }, Error, {
610
967
  name: string;
611
968
  parent?: (string & z.core.$brand<"GenreUuid">) | undefined;
@@ -680,6 +1037,7 @@ declare function useCreateGenre(scope: Scope, getBackendBaseUrl: () => string):
680
1037
  }[];
681
1038
  tracksCount: number;
682
1039
  updatedOn: string | null;
1040
+ wikidataId?: string | null | undefined;
683
1041
  };
684
1042
  error: null;
685
1043
  variables: {
@@ -756,6 +1114,7 @@ declare function useCreateGenre(scope: Scope, getBackendBaseUrl: () => string):
756
1114
  }[];
757
1115
  tracksCount: number;
758
1116
  updatedOn: string | null;
1117
+ wikidataId?: string | null | undefined;
759
1118
  }, Error, {
760
1119
  name: string;
761
1120
  parent?: (string & z.core.$brand<"GenreUuid">) | undefined;
@@ -831,6 +1190,7 @@ declare function useCreateGenre(scope: Scope, getBackendBaseUrl: () => string):
831
1190
  }[];
832
1191
  tracksCount: number;
833
1192
  updatedOn: string | null;
1193
+ wikidataId?: string | null | undefined;
834
1194
  }, Error, {
835
1195
  name: string;
836
1196
  parent?: (string & z.core.$brand<"GenreUuid">) | undefined;
@@ -902,12 +1262,14 @@ declare function useUpdateGenre(scope: Scope, getBackendBaseUrl: () => string):
902
1262
  }[];
903
1263
  tracksCount: number;
904
1264
  updatedOn: string | null;
1265
+ wikidataId?: string | null | undefined;
905
1266
  }, Error, {
906
1267
  uuid: string & z.core.$brand<"GenreUuid">;
907
1268
  data: {
908
1269
  name?: string | undefined;
909
1270
  parent?: (string & z.core.$brand<"GenreUuid">) | null | undefined;
910
1271
  essentialSongs?: string[] | undefined;
1272
+ side?: "pop" | "core" | undefined;
911
1273
  };
912
1274
  }, unknown>;
913
1275
  renameGenre: (uuid: GenreUuid, name: string) => void;
@@ -1040,7 +1402,6 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
1040
1402
  name: string;
1041
1403
  };
1042
1404
  tracksCount: number;
1043
- viewsCount: number;
1044
1405
  criteria: {
1045
1406
  uuid: string & z.core.$brand<"GenreUuid">;
1046
1407
  name: string;
@@ -1054,6 +1415,7 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
1054
1415
  createdOn: string;
1055
1416
  updatedOn: string | null;
1056
1417
  isUnacceptedRoot: boolean;
1418
+ viewsCount?: number | undefined;
1057
1419
  isUmbrella?: boolean | undefined;
1058
1420
  scene?: "commercial" | "underground" | null | undefined;
1059
1421
  }[];
@@ -1095,7 +1457,6 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
1095
1457
  name: string;
1096
1458
  };
1097
1459
  tracksCount: number;
1098
- viewsCount: number;
1099
1460
  criteria: {
1100
1461
  uuid: string & z.core.$brand<"GenreUuid">;
1101
1462
  name: string;
@@ -1109,6 +1470,7 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
1109
1470
  createdOn: string;
1110
1471
  updatedOn: string | null;
1111
1472
  isUnacceptedRoot: boolean;
1473
+ viewsCount?: number | undefined;
1112
1474
  isUmbrella?: boolean | undefined;
1113
1475
  scene?: "commercial" | "underground" | null | undefined;
1114
1476
  }[];
@@ -1129,7 +1491,6 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
1129
1491
  name: string;
1130
1492
  };
1131
1493
  tracksCount: number;
1132
- viewsCount: number;
1133
1494
  criteria: {
1134
1495
  uuid: string & z.core.$brand<"GenreUuid">;
1135
1496
  name: string;
@@ -1143,6 +1504,7 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
1143
1504
  createdOn: string;
1144
1505
  updatedOn: string | null;
1145
1506
  isUnacceptedRoot: boolean;
1507
+ viewsCount?: number | undefined;
1146
1508
  isUmbrella?: boolean | undefined;
1147
1509
  scene?: "commercial" | "underground" | null | undefined;
1148
1510
  }[];
@@ -1164,7 +1526,6 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
1164
1526
  name: string;
1165
1527
  };
1166
1528
  tracksCount: number;
1167
- viewsCount: number;
1168
1529
  criteria: {
1169
1530
  uuid: string & z.core.$brand<"GenreUuid">;
1170
1531
  name: string;
@@ -1178,6 +1539,7 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
1178
1539
  createdOn: string;
1179
1540
  updatedOn: string | null;
1180
1541
  isUnacceptedRoot: boolean;
1542
+ viewsCount?: number | undefined;
1181
1543
  isUmbrella?: boolean | undefined;
1182
1544
  scene?: "commercial" | "underground" | null | undefined;
1183
1545
  }[];
@@ -1219,7 +1581,6 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
1219
1581
  name: string;
1220
1582
  };
1221
1583
  tracksCount: number;
1222
- viewsCount: number;
1223
1584
  criteria: {
1224
1585
  uuid: string & z.core.$brand<"GenreUuid">;
1225
1586
  name: string;
@@ -1233,6 +1594,7 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
1233
1594
  createdOn: string;
1234
1595
  updatedOn: string | null;
1235
1596
  isUnacceptedRoot: boolean;
1597
+ viewsCount?: number | undefined;
1236
1598
  isUmbrella?: boolean | undefined;
1237
1599
  scene?: "commercial" | "underground" | null | undefined;
1238
1600
  }[];
@@ -1253,7 +1615,6 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
1253
1615
  name: string;
1254
1616
  };
1255
1617
  tracksCount: number;
1256
- viewsCount: number;
1257
1618
  criteria: {
1258
1619
  uuid: string & z.core.$brand<"GenreUuid">;
1259
1620
  name: string;
@@ -1267,6 +1628,7 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
1267
1628
  createdOn: string;
1268
1629
  updatedOn: string | null;
1269
1630
  isUnacceptedRoot: boolean;
1631
+ viewsCount?: number | undefined;
1270
1632
  isUmbrella?: boolean | undefined;
1271
1633
  scene?: "commercial" | "underground" | null | undefined;
1272
1634
  }[];
@@ -1311,7 +1673,6 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
1311
1673
  name: string;
1312
1674
  };
1313
1675
  tracksCount: number;
1314
- viewsCount: number;
1315
1676
  criteria: {
1316
1677
  uuid: string & z.core.$brand<"GenreUuid">;
1317
1678
  name: string;
@@ -1325,6 +1686,7 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
1325
1686
  createdOn: string;
1326
1687
  updatedOn: string | null;
1327
1688
  isUnacceptedRoot: boolean;
1689
+ viewsCount?: number | undefined;
1328
1690
  isUmbrella?: boolean | undefined;
1329
1691
  scene?: "commercial" | "underground" | null | undefined;
1330
1692
  }[];
@@ -1345,7 +1707,6 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
1345
1707
  name: string;
1346
1708
  };
1347
1709
  tracksCount: number;
1348
- viewsCount: number;
1349
1710
  criteria: {
1350
1711
  uuid: string & z.core.$brand<"GenreUuid">;
1351
1712
  name: string;
@@ -1359,6 +1720,7 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
1359
1720
  createdOn: string;
1360
1721
  updatedOn: string | null;
1361
1722
  isUnacceptedRoot: boolean;
1723
+ viewsCount?: number | undefined;
1362
1724
  isUmbrella?: boolean | undefined;
1363
1725
  scene?: "commercial" | "underground" | null | undefined;
1364
1726
  }[];
@@ -1403,7 +1765,6 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
1403
1765
  name: string;
1404
1766
  };
1405
1767
  tracksCount: number;
1406
- viewsCount: number;
1407
1768
  criteria: {
1408
1769
  uuid: string & z.core.$brand<"GenreUuid">;
1409
1770
  name: string;
@@ -1417,6 +1778,7 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
1417
1778
  createdOn: string;
1418
1779
  updatedOn: string | null;
1419
1780
  isUnacceptedRoot: boolean;
1781
+ viewsCount?: number | undefined;
1420
1782
  isUmbrella?: boolean | undefined;
1421
1783
  scene?: "commercial" | "underground" | null | undefined;
1422
1784
  }[];
@@ -1437,7 +1799,6 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
1437
1799
  name: string;
1438
1800
  };
1439
1801
  tracksCount: number;
1440
- viewsCount: number;
1441
1802
  criteria: {
1442
1803
  uuid: string & z.core.$brand<"GenreUuid">;
1443
1804
  name: string;
@@ -1451,6 +1812,7 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
1451
1812
  createdOn: string;
1452
1813
  updatedOn: string | null;
1453
1814
  isUnacceptedRoot: boolean;
1815
+ viewsCount?: number | undefined;
1454
1816
  isUmbrella?: boolean | undefined;
1455
1817
  scene?: "commercial" | "underground" | null | undefined;
1456
1818
  }[];
@@ -1495,7 +1857,6 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
1495
1857
  name: string;
1496
1858
  };
1497
1859
  tracksCount: number;
1498
- viewsCount: number;
1499
1860
  criteria: {
1500
1861
  uuid: string & z.core.$brand<"GenreUuid">;
1501
1862
  name: string;
@@ -1509,6 +1870,7 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
1509
1870
  createdOn: string;
1510
1871
  updatedOn: string | null;
1511
1872
  isUnacceptedRoot: boolean;
1873
+ viewsCount?: number | undefined;
1512
1874
  isUmbrella?: boolean | undefined;
1513
1875
  scene?: "commercial" | "underground" | null | undefined;
1514
1876
  }[];
@@ -1529,7 +1891,6 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
1529
1891
  name: string;
1530
1892
  };
1531
1893
  tracksCount: number;
1532
- viewsCount: number;
1533
1894
  criteria: {
1534
1895
  uuid: string & z.core.$brand<"GenreUuid">;
1535
1896
  name: string;
@@ -1543,6 +1904,7 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
1543
1904
  createdOn: string;
1544
1905
  updatedOn: string | null;
1545
1906
  isUnacceptedRoot: boolean;
1907
+ viewsCount?: number | undefined;
1546
1908
  isUmbrella?: boolean | undefined;
1547
1909
  scene?: "commercial" | "underground" | null | undefined;
1548
1910
  }[];
@@ -1564,7 +1926,6 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
1564
1926
  name: string;
1565
1927
  };
1566
1928
  tracksCount: number;
1567
- viewsCount: number;
1568
1929
  criteria: {
1569
1930
  uuid: string & z.core.$brand<"GenreUuid">;
1570
1931
  name: string;
@@ -1578,6 +1939,7 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
1578
1939
  createdOn: string;
1579
1940
  updatedOn: string | null;
1580
1941
  isUnacceptedRoot: boolean;
1942
+ viewsCount?: number | undefined;
1581
1943
  isUmbrella?: boolean | undefined;
1582
1944
  scene?: "commercial" | "underground" | null | undefined;
1583
1945
  }[];
@@ -1619,7 +1981,6 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
1619
1981
  name: string;
1620
1982
  };
1621
1983
  tracksCount: number;
1622
- viewsCount: number;
1623
1984
  criteria: {
1624
1985
  uuid: string & z.core.$brand<"GenreUuid">;
1625
1986
  name: string;
@@ -1633,6 +1994,7 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
1633
1994
  createdOn: string;
1634
1995
  updatedOn: string | null;
1635
1996
  isUnacceptedRoot: boolean;
1997
+ viewsCount?: number | undefined;
1636
1998
  isUmbrella?: boolean | undefined;
1637
1999
  scene?: "commercial" | "underground" | null | undefined;
1638
2000
  }[];
@@ -1653,7 +2015,6 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
1653
2015
  name: string;
1654
2016
  };
1655
2017
  tracksCount: number;
1656
- viewsCount: number;
1657
2018
  criteria: {
1658
2019
  uuid: string & z.core.$brand<"GenreUuid">;
1659
2020
  name: string;
@@ -1667,6 +2028,7 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
1667
2028
  createdOn: string;
1668
2029
  updatedOn: string | null;
1669
2030
  isUnacceptedRoot: boolean;
2031
+ viewsCount?: number | undefined;
1670
2032
  isUmbrella?: boolean | undefined;
1671
2033
  scene?: "commercial" | "underground" | null | undefined;
1672
2034
  }[];
@@ -1685,7 +2047,6 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
1685
2047
  name: string;
1686
2048
  };
1687
2049
  tracksCount: number;
1688
- viewsCount: number;
1689
2050
  criteria: {
1690
2051
  uuid: string & z.core.$brand<"GenreUuid">;
1691
2052
  name: string;
@@ -1699,6 +2060,7 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
1699
2060
  createdOn: string;
1700
2061
  updatedOn: string | null;
1701
2062
  isUnacceptedRoot: boolean;
2063
+ viewsCount?: number | undefined;
1702
2064
  isUmbrella?: boolean | undefined;
1703
2065
  scene?: "commercial" | "underground" | null | undefined;
1704
2066
  }[]>;
@@ -1732,7 +2094,6 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
1732
2094
  name: string;
1733
2095
  };
1734
2096
  tracksCount: number;
1735
- viewsCount: number;
1736
2097
  criteria: {
1737
2098
  uuid: string & z.core.$brand<"GenreUuid">;
1738
2099
  name: string;
@@ -1746,6 +2107,7 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
1746
2107
  createdOn: string;
1747
2108
  updatedOn: string | null;
1748
2109
  isUnacceptedRoot: boolean;
2110
+ viewsCount?: number | undefined;
1749
2111
  isUmbrella?: boolean | undefined;
1750
2112
  scene?: "commercial" | "underground" | null | undefined;
1751
2113
  }[]>, Error>>;
@@ -1758,7 +2120,6 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
1758
2120
  name: string;
1759
2121
  };
1760
2122
  tracksCount: number;
1761
- viewsCount: number;
1762
2123
  criteria: {
1763
2124
  uuid: string & z.core.$brand<"GenreUuid">;
1764
2125
  name: string;
@@ -1772,6 +2133,7 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
1772
2133
  createdOn: string;
1773
2134
  updatedOn: string | null;
1774
2135
  isUnacceptedRoot: boolean;
2136
+ viewsCount?: number | undefined;
1775
2137
  isUmbrella?: boolean | undefined;
1776
2138
  scene?: "commercial" | "underground" | null | undefined;
1777
2139
  }[]>>;
@@ -1785,7 +2147,6 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
1785
2147
  name: string;
1786
2148
  };
1787
2149
  tracksCount: number;
1788
- viewsCount: number;
1789
2150
  criteria: {
1790
2151
  uuid: string & z.core.$brand<"GenreUuid">;
1791
2152
  name: string;
@@ -1799,6 +2160,7 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
1799
2160
  createdOn: string;
1800
2161
  updatedOn: string | null;
1801
2162
  isUnacceptedRoot: boolean;
2163
+ viewsCount?: number | undefined;
1802
2164
  isUmbrella?: boolean | undefined;
1803
2165
  scene?: "commercial" | "underground" | null | undefined;
1804
2166
  }[]>;
@@ -1832,7 +2194,6 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
1832
2194
  name: string;
1833
2195
  };
1834
2196
  tracksCount: number;
1835
- viewsCount: number;
1836
2197
  criteria: {
1837
2198
  uuid: string & z.core.$brand<"GenreUuid">;
1838
2199
  name: string;
@@ -1846,6 +2207,7 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
1846
2207
  createdOn: string;
1847
2208
  updatedOn: string | null;
1848
2209
  isUnacceptedRoot: boolean;
2210
+ viewsCount?: number | undefined;
1849
2211
  isUmbrella?: boolean | undefined;
1850
2212
  scene?: "commercial" | "underground" | null | undefined;
1851
2213
  }[]>, Error>>;
@@ -1858,7 +2220,6 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
1858
2220
  name: string;
1859
2221
  };
1860
2222
  tracksCount: number;
1861
- viewsCount: number;
1862
2223
  criteria: {
1863
2224
  uuid: string & z.core.$brand<"GenreUuid">;
1864
2225
  name: string;
@@ -1872,6 +2233,7 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
1872
2233
  createdOn: string;
1873
2234
  updatedOn: string | null;
1874
2235
  isUnacceptedRoot: boolean;
2236
+ viewsCount?: number | undefined;
1875
2237
  isUmbrella?: boolean | undefined;
1876
2238
  scene?: "commercial" | "underground" | null | undefined;
1877
2239
  }[]>>;
@@ -1908,7 +2270,6 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
1908
2270
  name: string;
1909
2271
  };
1910
2272
  tracksCount: number;
1911
- viewsCount: number;
1912
2273
  criteria: {
1913
2274
  uuid: string & z.core.$brand<"GenreUuid">;
1914
2275
  name: string;
@@ -1922,6 +2283,7 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
1922
2283
  createdOn: string;
1923
2284
  updatedOn: string | null;
1924
2285
  isUnacceptedRoot: boolean;
2286
+ viewsCount?: number | undefined;
1925
2287
  isUmbrella?: boolean | undefined;
1926
2288
  scene?: "commercial" | "underground" | null | undefined;
1927
2289
  }[]>, Error>>;
@@ -1934,7 +2296,6 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
1934
2296
  name: string;
1935
2297
  };
1936
2298
  tracksCount: number;
1937
- viewsCount: number;
1938
2299
  criteria: {
1939
2300
  uuid: string & z.core.$brand<"GenreUuid">;
1940
2301
  name: string;
@@ -1948,6 +2309,7 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
1948
2309
  createdOn: string;
1949
2310
  updatedOn: string | null;
1950
2311
  isUnacceptedRoot: boolean;
2312
+ viewsCount?: number | undefined;
1951
2313
  isUmbrella?: boolean | undefined;
1952
2314
  scene?: "commercial" | "underground" | null | undefined;
1953
2315
  }[]>>;
@@ -1984,7 +2346,6 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
1984
2346
  name: string;
1985
2347
  };
1986
2348
  tracksCount: number;
1987
- viewsCount: number;
1988
2349
  criteria: {
1989
2350
  uuid: string & z.core.$brand<"GenreUuid">;
1990
2351
  name: string;
@@ -1998,6 +2359,7 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
1998
2359
  createdOn: string;
1999
2360
  updatedOn: string | null;
2000
2361
  isUnacceptedRoot: boolean;
2362
+ viewsCount?: number | undefined;
2001
2363
  isUmbrella?: boolean | undefined;
2002
2364
  scene?: "commercial" | "underground" | null | undefined;
2003
2365
  }[]>, Error>>;
@@ -2010,7 +2372,6 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
2010
2372
  name: string;
2011
2373
  };
2012
2374
  tracksCount: number;
2013
- viewsCount: number;
2014
2375
  criteria: {
2015
2376
  uuid: string & z.core.$brand<"GenreUuid">;
2016
2377
  name: string;
@@ -2024,6 +2385,7 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
2024
2385
  createdOn: string;
2025
2386
  updatedOn: string | null;
2026
2387
  isUnacceptedRoot: boolean;
2388
+ viewsCount?: number | undefined;
2027
2389
  isUmbrella?: boolean | undefined;
2028
2390
  scene?: "commercial" | "underground" | null | undefined;
2029
2391
  }[]>>;
@@ -2060,7 +2422,6 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
2060
2422
  name: string;
2061
2423
  };
2062
2424
  tracksCount: number;
2063
- viewsCount: number;
2064
2425
  criteria: {
2065
2426
  uuid: string & z.core.$brand<"GenreUuid">;
2066
2427
  name: string;
@@ -2074,6 +2435,7 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
2074
2435
  createdOn: string;
2075
2436
  updatedOn: string | null;
2076
2437
  isUnacceptedRoot: boolean;
2438
+ viewsCount?: number | undefined;
2077
2439
  isUmbrella?: boolean | undefined;
2078
2440
  scene?: "commercial" | "underground" | null | undefined;
2079
2441
  }[]>, Error>>;
@@ -2086,7 +2448,6 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
2086
2448
  name: string;
2087
2449
  };
2088
2450
  tracksCount: number;
2089
- viewsCount: number;
2090
2451
  criteria: {
2091
2452
  uuid: string & z.core.$brand<"GenreUuid">;
2092
2453
  name: string;
@@ -2100,6 +2461,7 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
2100
2461
  createdOn: string;
2101
2462
  updatedOn: string | null;
2102
2463
  isUnacceptedRoot: boolean;
2464
+ viewsCount?: number | undefined;
2103
2465
  isUmbrella?: boolean | undefined;
2104
2466
  scene?: "commercial" | "underground" | null | undefined;
2105
2467
  }[]>>;
@@ -2113,7 +2475,6 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
2113
2475
  name: string;
2114
2476
  };
2115
2477
  tracksCount: number;
2116
- viewsCount: number;
2117
2478
  criteria: {
2118
2479
  uuid: string & z.core.$brand<"GenreUuid">;
2119
2480
  name: string;
@@ -2127,6 +2488,7 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
2127
2488
  createdOn: string;
2128
2489
  updatedOn: string | null;
2129
2490
  isUnacceptedRoot: boolean;
2491
+ viewsCount?: number | undefined;
2130
2492
  isUmbrella?: boolean | undefined;
2131
2493
  scene?: "commercial" | "underground" | null | undefined;
2132
2494
  }[]>;
@@ -2160,7 +2522,6 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
2160
2522
  name: string;
2161
2523
  };
2162
2524
  tracksCount: number;
2163
- viewsCount: number;
2164
2525
  criteria: {
2165
2526
  uuid: string & z.core.$brand<"GenreUuid">;
2166
2527
  name: string;
@@ -2174,6 +2535,7 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
2174
2535
  createdOn: string;
2175
2536
  updatedOn: string | null;
2176
2537
  isUnacceptedRoot: boolean;
2538
+ viewsCount?: number | undefined;
2177
2539
  isUmbrella?: boolean | undefined;
2178
2540
  scene?: "commercial" | "underground" | null | undefined;
2179
2541
  }[]>, Error>>;
@@ -2186,7 +2548,6 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
2186
2548
  name: string;
2187
2549
  };
2188
2550
  tracksCount: number;
2189
- viewsCount: number;
2190
2551
  criteria: {
2191
2552
  uuid: string & z.core.$brand<"GenreUuid">;
2192
2553
  name: string;
@@ -2200,6 +2561,7 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
2200
2561
  createdOn: string;
2201
2562
  updatedOn: string | null;
2202
2563
  isUnacceptedRoot: boolean;
2564
+ viewsCount?: number | undefined;
2203
2565
  isUmbrella?: boolean | undefined;
2204
2566
  scene?: "commercial" | "underground" | null | undefined;
2205
2567
  }[]>>;
@@ -2366,7 +2728,7 @@ declare const CriteriaPlaylistSimpleSchema: z.ZodObject<{
2366
2728
  name: z.ZodString;
2367
2729
  }, z.core.$strip>;
2368
2730
  tracksCount: z.ZodNumber;
2369
- viewsCount: z.ZodNumber;
2731
+ viewsCount: z.ZodOptional<z.ZodNumber>;
2370
2732
  criteria: z.ZodNullable<z.ZodObject<{
2371
2733
  uuid: z.core.$ZodBranded<z.ZodString, "GenreUuid", "out">;
2372
2734
  name: z.ZodString;
@@ -2418,9 +2780,11 @@ interface UseGenreTreeViewStateOptions<O extends CriteriaOverview = CriteriaOver
2418
2780
  viewMode?: GenreViewMode;
2419
2781
  /** Narrows the tree to this artist's footprint (see `useVisibleGenrePlaylists`). */
2420
2782
  artistUuid?: string | null;
2421
- /** Controlled selection (a genre playlist uuid, i.e. the tree node id). */
2783
+ /** Controlled selection (a genre playlist UUID, i.e. the tree node ID).
2784
+ * Legacy criteria UUIDs are resolved on load.
2785
+ */
2422
2786
  selectedNodeId?: string | null;
2423
- /** Called on every user-driven selection change (node click, search pick, search clear). */
2787
+ /** Called when selection changes, including normalizing a legacy criteria UUID to its playlist UUID. */
2424
2788
  onSelectedNodeIdChange?: (nodeId: string | null) => void;
2425
2789
  criteriaOverviewSchema?: z.ZodType<O, unknown>;
2426
2790
  }
@@ -2480,7 +2844,6 @@ declare function useVisibleGenrePlaylists({ scope, getBackendBaseUrl, artistUuid
2480
2844
  name: string;
2481
2845
  };
2482
2846
  tracksCount: number;
2483
- viewsCount: number;
2484
2847
  criteria: {
2485
2848
  uuid: string & zod.$brand<"GenreUuid">;
2486
2849
  name: string;
@@ -2494,6 +2857,7 @@ declare function useVisibleGenrePlaylists({ scope, getBackendBaseUrl, artistUuid
2494
2857
  createdOn: string;
2495
2858
  updatedOn: string | null;
2496
2859
  isUnacceptedRoot: boolean;
2860
+ viewsCount?: number | undefined;
2497
2861
  isUmbrella?: boolean | undefined;
2498
2862
  scene?: "commercial" | "underground" | null | undefined;
2499
2863
  }[];
@@ -2643,6 +3007,15 @@ interface TrackListContextType<T extends TrackBase> {
2643
3007
  trackList: TrackList<T> | null;
2644
3008
  selectedTrack: T | null;
2645
3009
  setSelectedTrack: (track: T | null) => void;
3010
+ autoAdvanceScrollRequest: {
3011
+ id: number;
3012
+ trackUuid: string;
3013
+ } | null;
3014
+ runtimeUnplayableTrackIds: ReadonlySet<string>;
3015
+ hasNextTrack: boolean;
3016
+ hasPreviousTrack: boolean;
3017
+ playNextTrack: () => void;
3018
+ playPreviousTrack: () => void;
2646
3019
  toTrackAtPosition: (position: number) => void;
2647
3020
  playNewTrackListFromTrackUuid: (track: T, scope: Scope) => void;
2648
3021
  /**
@@ -2662,15 +3035,18 @@ interface TrackListContextType<T extends TrackBase> {
2662
3035
  fetchGenrePlaylistTracksPage: (uuid: GenrePlaylistUuid, scope: Scope, page: number, from?: string) => Promise<GenrePlaylistTracksPage<T>>;
2663
3036
  /** Appends the next tracks page of the current genre-playlist or artist list; no-op when fully loaded or already loading. */
2664
3037
  loadMore: () => Promise<void>;
3038
+ /**
3039
+ * Swaps in a fresh copy of a listed track (matched by `uuid`), and the selected track if it is
3040
+ * that one; no-op when the track isn't listed. Call it from a track mutation's `onSuccess`.
3041
+ */
3042
+ updateTrack: (track: T) => void;
2665
3043
  }
2666
3044
  interface TrackListProviderProps<T extends TrackBase> {
2667
3045
  children: ReactNode;
2668
3046
  getBackendBaseUrl: () => string;
2669
3047
  schema: z.ZodType<T, unknown>;
2670
- listEndpoint: (page: number) => string;
2671
- listQueryKey: (page: number) => readonly unknown[];
2672
3048
  }
2673
- declare function TrackListProvider<T extends TrackBase>({ children, getBackendBaseUrl, schema, listEndpoint, listQueryKey, }: TrackListProviderProps<T>): react.JSX.Element;
3049
+ declare function TrackListProvider<T extends TrackBase>({ children, getBackendBaseUrl, schema, }: TrackListProviderProps<T>): react.JSX.Element;
2674
3050
  declare function useTrackList<T extends TrackBase = TrackBase>(): TrackListContextType<T>;
2675
3051
 
2676
3052
  interface TrackListSidebarVisibilityContextType {
@@ -2785,6 +3161,10 @@ declare const CriteriaUpdateSchema: z.ZodObject<{
2785
3161
  name: z.ZodOptional<z.ZodString>;
2786
3162
  parent: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "GenreUuid", "out">>>;
2787
3163
  essentialSongs: z.ZodOptional<z.ZodArray<z.ZodString>>;
3164
+ side: z.ZodOptional<z.ZodEnum<{
3165
+ pop: "pop";
3166
+ core: "core";
3167
+ }>>;
2788
3168
  }, z.core.$strip>;
2789
3169
  type CriteriaUpdateValues = z.infer<typeof CriteriaUpdateSchema>;
2790
3170
 
@@ -2820,7 +3200,7 @@ declare const CriteriaPlaylistDetailedSchema: z.ZodObject<{
2820
3200
  uuid: z.core.$ZodBranded<z.ZodString, "GenrePlaylistUuid", "out">;
2821
3201
  name: z.ZodString;
2822
3202
  tracksCount: z.ZodNumber;
2823
- viewsCount: z.ZodNumber;
3203
+ viewsCount: z.ZodOptional<z.ZodNumber>;
2824
3204
  durationInSec: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2825
3205
  durationStrInHourMinSec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2826
3206
  criteria: z.ZodNullable<z.ZodObject<{
@@ -2939,12 +3319,14 @@ declare const genreQueryKeys: {
2939
3319
  all: readonly ["genres"];
2940
3320
  list: (page: number) => readonly ["genres", "list", number];
2941
3321
  detail: (id: GenreUuid) => readonly ["genres", "detail", string & zod.$brand<"GenreUuid">];
3322
+ byWikidataId: (qid: string) => readonly ["genres", "byWikidataId", string];
2942
3323
  overview: (id: GenreUuid) => readonly ["genres", "overview", string & zod.$brand<"GenreUuid">];
2943
3324
  };
2944
3325
  reference: {
2945
3326
  all: readonly ["referenceGenres"];
2946
3327
  list: (page: number) => readonly ["referenceGenres", "list", number];
2947
3328
  detail: (id: GenreUuid) => readonly ["referenceGenres", "detail", string & zod.$brand<"GenreUuid">];
3329
+ byWikidataId: (qid: string) => readonly ["referenceGenres", "byWikidataId", string];
2948
3330
  overview: (id: GenreUuid) => readonly ["referenceGenres", "overview", string & zod.$brand<"GenreUuid">];
2949
3331
  };
2950
3332
  };
@@ -3050,7 +3432,6 @@ declare const getGenrePlaylistsGroupedByRoot: (genrePlaylists: CriteriaPlaylistS
3050
3432
  name: string;
3051
3433
  };
3052
3434
  tracksCount: number;
3053
- viewsCount: number;
3054
3435
  criteria: {
3055
3436
  uuid: string & zod.$brand<"GenreUuid">;
3056
3437
  name: string;
@@ -3064,6 +3445,7 @@ declare const getGenrePlaylistsGroupedByRoot: (genrePlaylists: CriteriaPlaylistS
3064
3445
  createdOn: string;
3065
3446
  updatedOn: string | null;
3066
3447
  isUnacceptedRoot: boolean;
3448
+ viewsCount?: number | undefined;
3067
3449
  isUmbrella?: boolean | undefined;
3068
3450
  scene?: "commercial" | "underground" | null | undefined;
3069
3451
  }[]>;
@@ -3106,4 +3488,4 @@ type SongsPage = {
3106
3488
  */
3107
3489
  declare function editGenreSongPages<P extends SongsPage>(data: InfiniteData<P> | undefined, edit: (tracks: P["tracks"]) => P["tracks"]): InfiniteData<P> | undefined;
3108
3490
 
3109
- 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 };
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 };