@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.
- package/dist/{chunk-S7GWIIHJ.js → chunk-SQNB3IJ2.js} +4 -9
- package/dist/chunk-SQNB3IJ2.js.map +1 -0
- package/dist/genre-tree/index.cjs +3 -8
- package/dist/genre-tree/index.cjs.map +1 -1
- package/dist/genre-tree/index.d.ts +444 -434
- package/dist/genre-tree/index.js +1 -1
- package/dist/index.cjs +3 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +3 -3
- package/dist/chunk-S7GWIIHJ.js.map +0 -1
package/dist/genre-tree/index.js
CHANGED
|
@@ -116,7 +116,7 @@ import {
|
|
|
116
116
|
useTrackListSidebarVisibility,
|
|
117
117
|
useUpdateGenre,
|
|
118
118
|
useVisibleGenrePlaylists
|
|
119
|
-
} from "../chunk-
|
|
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.
|
|
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
|
|
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
|