@behindthemusictree/app-kit 44.0.1 → 44.0.3

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.
@@ -116,7 +116,7 @@ import {
116
116
  useTrackListSidebarVisibility,
117
117
  useUpdateGenre,
118
118
  useVisibleGenrePlaylists
119
- } from "../chunk-S7GWIIHJ.js";
119
+ } from "../chunk-SQNB3IJ2.js";
120
120
  import "../chunk-BYXCG7SI.js";
121
121
  import "../chunk-FRL266U2.js";
122
122
  import "../chunk-B6RTYACQ.js";
package/dist/index.cjs CHANGED
@@ -2248,16 +2248,11 @@ function checkGenreCounts(counts, path, ctx) {
2248
2248
  issue("The combined count must include both scoped selections");
2249
2249
  }
2250
2250
  }
2251
- var ReferenceGenreDetailedSchema = import_grow_api.zV1GenresRetrieveResponse.extend({ criteriaPlaylist: import_grow_api.zV1GenresRetrieveResponse.shape.criteriaPlaylist.nullable() }).superRefine((genre, ctx) => {
2251
+ var ReferenceGenreDetailedSchema = import_grow_api.zV1GenresRetrieveResponse.superRefine((genre, ctx) => {
2252
2252
  checkGenreCounts(genre.catalogue, ["catalogue"], ctx);
2253
2253
  if (genre.criteriaPlaylist) checkGenreCounts(genre.criteriaPlaylist, ["criteriaPlaylist"], ctx);
2254
2254
  });
2255
- var generatedTreeRow = import_grow_api.zV1GenrePlaylistsTreeListResponse.element;
2256
- var ReferenceGenrePlaylistRowSchema = generatedTreeRow.extend({
2257
- ...GenreCountsSchema.shape,
2258
- criteria: generatedTreeRow.shape.criteria.extend({ parent: generatedTreeRow.shape.criteria.shape.parent.nullable() }).nullable(),
2259
- parent: generatedTreeRow.shape.parent.nullable()
2260
- });
2255
+ var ReferenceGenrePlaylistRowSchema = import_grow_api.zV1GenrePlaylistsTreeListResponse.element;
2261
2256
  var ReferenceGenrePlaylistSchema = import_zod11.z.array(ReferenceGenrePlaylistRowSchema).superRefine((playlists, ctx) => {
2262
2257
  playlists.forEach((playlist, index) => {
2263
2258
  checkGenreCounts(playlist, [index], ctx);
@@ -4136,7 +4131,7 @@ function ArtistNames({
4136
4131
 
4137
4132
  // src/genre-tree/schemas/reference.ts
4138
4133
  function isSongSearchResultPlayable(result) {
4139
- return result.youtubeVideo.unplayableReason === null;
4134
+ return result.youtubeVideo !== null && result.youtubeVideo.unplayableReason === null;
4140
4135
  }
4141
4136
 
4142
4137
  // src/genre-tree/schemas/mb-artist.ts