@behindthemusictree/app-kit 26.1.0 → 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.
- package/dist/{chunk-OIZPAN6I.js → chunk-XCOAWKF6.js} +58 -11
- package/dist/chunk-XCOAWKF6.js.map +1 -0
- package/dist/{chunk-T4IDICOJ.js → chunk-XIKMW7U4.js} +254 -97
- package/dist/chunk-XIKMW7U4.js.map +1 -0
- package/dist/genre-tree/index.cjs +246 -89
- package/dist/genre-tree/index.cjs.map +1 -1
- package/dist/genre-tree/index.d.ts +58 -39
- package/dist/genre-tree/index.js +2 -2
- package/dist/index.cjs +303 -99
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/player/index.cjs +57 -10
- package/dist/player/index.cjs.map +1 -1
- package/dist/player/index.d.ts +14 -3
- package/dist/player/index.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-OIZPAN6I.js.map +0 -1
- package/dist/chunk-T4IDICOJ.js.map +0 -1
|
@@ -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;
|
|
@@ -1040,7 +1041,6 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
|
|
|
1040
1041
|
name: string;
|
|
1041
1042
|
};
|
|
1042
1043
|
tracksCount: number;
|
|
1043
|
-
viewsCount: number;
|
|
1044
1044
|
criteria: {
|
|
1045
1045
|
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1046
1046
|
name: string;
|
|
@@ -1054,6 +1054,7 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
|
|
|
1054
1054
|
createdOn: string;
|
|
1055
1055
|
updatedOn: string | null;
|
|
1056
1056
|
isUnacceptedRoot: boolean;
|
|
1057
|
+
viewsCount?: number | undefined;
|
|
1057
1058
|
isUmbrella?: boolean | undefined;
|
|
1058
1059
|
scene?: "commercial" | "underground" | null | undefined;
|
|
1059
1060
|
}[];
|
|
@@ -1095,7 +1096,6 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
|
|
|
1095
1096
|
name: string;
|
|
1096
1097
|
};
|
|
1097
1098
|
tracksCount: number;
|
|
1098
|
-
viewsCount: number;
|
|
1099
1099
|
criteria: {
|
|
1100
1100
|
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1101
1101
|
name: string;
|
|
@@ -1109,6 +1109,7 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
|
|
|
1109
1109
|
createdOn: string;
|
|
1110
1110
|
updatedOn: string | null;
|
|
1111
1111
|
isUnacceptedRoot: boolean;
|
|
1112
|
+
viewsCount?: number | undefined;
|
|
1112
1113
|
isUmbrella?: boolean | undefined;
|
|
1113
1114
|
scene?: "commercial" | "underground" | null | undefined;
|
|
1114
1115
|
}[];
|
|
@@ -1129,7 +1130,6 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
|
|
|
1129
1130
|
name: string;
|
|
1130
1131
|
};
|
|
1131
1132
|
tracksCount: number;
|
|
1132
|
-
viewsCount: number;
|
|
1133
1133
|
criteria: {
|
|
1134
1134
|
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1135
1135
|
name: string;
|
|
@@ -1143,6 +1143,7 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
|
|
|
1143
1143
|
createdOn: string;
|
|
1144
1144
|
updatedOn: string | null;
|
|
1145
1145
|
isUnacceptedRoot: boolean;
|
|
1146
|
+
viewsCount?: number | undefined;
|
|
1146
1147
|
isUmbrella?: boolean | undefined;
|
|
1147
1148
|
scene?: "commercial" | "underground" | null | undefined;
|
|
1148
1149
|
}[];
|
|
@@ -1164,7 +1165,6 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
|
|
|
1164
1165
|
name: string;
|
|
1165
1166
|
};
|
|
1166
1167
|
tracksCount: number;
|
|
1167
|
-
viewsCount: number;
|
|
1168
1168
|
criteria: {
|
|
1169
1169
|
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1170
1170
|
name: string;
|
|
@@ -1178,6 +1178,7 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
|
|
|
1178
1178
|
createdOn: string;
|
|
1179
1179
|
updatedOn: string | null;
|
|
1180
1180
|
isUnacceptedRoot: boolean;
|
|
1181
|
+
viewsCount?: number | undefined;
|
|
1181
1182
|
isUmbrella?: boolean | undefined;
|
|
1182
1183
|
scene?: "commercial" | "underground" | null | undefined;
|
|
1183
1184
|
}[];
|
|
@@ -1219,7 +1220,6 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
|
|
|
1219
1220
|
name: string;
|
|
1220
1221
|
};
|
|
1221
1222
|
tracksCount: number;
|
|
1222
|
-
viewsCount: number;
|
|
1223
1223
|
criteria: {
|
|
1224
1224
|
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1225
1225
|
name: string;
|
|
@@ -1233,6 +1233,7 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
|
|
|
1233
1233
|
createdOn: string;
|
|
1234
1234
|
updatedOn: string | null;
|
|
1235
1235
|
isUnacceptedRoot: boolean;
|
|
1236
|
+
viewsCount?: number | undefined;
|
|
1236
1237
|
isUmbrella?: boolean | undefined;
|
|
1237
1238
|
scene?: "commercial" | "underground" | null | undefined;
|
|
1238
1239
|
}[];
|
|
@@ -1253,7 +1254,6 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
|
|
|
1253
1254
|
name: string;
|
|
1254
1255
|
};
|
|
1255
1256
|
tracksCount: number;
|
|
1256
|
-
viewsCount: number;
|
|
1257
1257
|
criteria: {
|
|
1258
1258
|
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1259
1259
|
name: string;
|
|
@@ -1267,6 +1267,7 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
|
|
|
1267
1267
|
createdOn: string;
|
|
1268
1268
|
updatedOn: string | null;
|
|
1269
1269
|
isUnacceptedRoot: boolean;
|
|
1270
|
+
viewsCount?: number | undefined;
|
|
1270
1271
|
isUmbrella?: boolean | undefined;
|
|
1271
1272
|
scene?: "commercial" | "underground" | null | undefined;
|
|
1272
1273
|
}[];
|
|
@@ -1311,7 +1312,6 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
|
|
|
1311
1312
|
name: string;
|
|
1312
1313
|
};
|
|
1313
1314
|
tracksCount: number;
|
|
1314
|
-
viewsCount: number;
|
|
1315
1315
|
criteria: {
|
|
1316
1316
|
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1317
1317
|
name: string;
|
|
@@ -1325,6 +1325,7 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
|
|
|
1325
1325
|
createdOn: string;
|
|
1326
1326
|
updatedOn: string | null;
|
|
1327
1327
|
isUnacceptedRoot: boolean;
|
|
1328
|
+
viewsCount?: number | undefined;
|
|
1328
1329
|
isUmbrella?: boolean | undefined;
|
|
1329
1330
|
scene?: "commercial" | "underground" | null | undefined;
|
|
1330
1331
|
}[];
|
|
@@ -1345,7 +1346,6 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
|
|
|
1345
1346
|
name: string;
|
|
1346
1347
|
};
|
|
1347
1348
|
tracksCount: number;
|
|
1348
|
-
viewsCount: number;
|
|
1349
1349
|
criteria: {
|
|
1350
1350
|
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1351
1351
|
name: string;
|
|
@@ -1359,6 +1359,7 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
|
|
|
1359
1359
|
createdOn: string;
|
|
1360
1360
|
updatedOn: string | null;
|
|
1361
1361
|
isUnacceptedRoot: boolean;
|
|
1362
|
+
viewsCount?: number | undefined;
|
|
1362
1363
|
isUmbrella?: boolean | undefined;
|
|
1363
1364
|
scene?: "commercial" | "underground" | null | undefined;
|
|
1364
1365
|
}[];
|
|
@@ -1403,7 +1404,6 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
|
|
|
1403
1404
|
name: string;
|
|
1404
1405
|
};
|
|
1405
1406
|
tracksCount: number;
|
|
1406
|
-
viewsCount: number;
|
|
1407
1407
|
criteria: {
|
|
1408
1408
|
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1409
1409
|
name: string;
|
|
@@ -1417,6 +1417,7 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
|
|
|
1417
1417
|
createdOn: string;
|
|
1418
1418
|
updatedOn: string | null;
|
|
1419
1419
|
isUnacceptedRoot: boolean;
|
|
1420
|
+
viewsCount?: number | undefined;
|
|
1420
1421
|
isUmbrella?: boolean | undefined;
|
|
1421
1422
|
scene?: "commercial" | "underground" | null | undefined;
|
|
1422
1423
|
}[];
|
|
@@ -1437,7 +1438,6 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
|
|
|
1437
1438
|
name: string;
|
|
1438
1439
|
};
|
|
1439
1440
|
tracksCount: number;
|
|
1440
|
-
viewsCount: number;
|
|
1441
1441
|
criteria: {
|
|
1442
1442
|
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1443
1443
|
name: string;
|
|
@@ -1451,6 +1451,7 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
|
|
|
1451
1451
|
createdOn: string;
|
|
1452
1452
|
updatedOn: string | null;
|
|
1453
1453
|
isUnacceptedRoot: boolean;
|
|
1454
|
+
viewsCount?: number | undefined;
|
|
1454
1455
|
isUmbrella?: boolean | undefined;
|
|
1455
1456
|
scene?: "commercial" | "underground" | null | undefined;
|
|
1456
1457
|
}[];
|
|
@@ -1495,7 +1496,6 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
|
|
|
1495
1496
|
name: string;
|
|
1496
1497
|
};
|
|
1497
1498
|
tracksCount: number;
|
|
1498
|
-
viewsCount: number;
|
|
1499
1499
|
criteria: {
|
|
1500
1500
|
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1501
1501
|
name: string;
|
|
@@ -1509,6 +1509,7 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
|
|
|
1509
1509
|
createdOn: string;
|
|
1510
1510
|
updatedOn: string | null;
|
|
1511
1511
|
isUnacceptedRoot: boolean;
|
|
1512
|
+
viewsCount?: number | undefined;
|
|
1512
1513
|
isUmbrella?: boolean | undefined;
|
|
1513
1514
|
scene?: "commercial" | "underground" | null | undefined;
|
|
1514
1515
|
}[];
|
|
@@ -1529,7 +1530,6 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
|
|
|
1529
1530
|
name: string;
|
|
1530
1531
|
};
|
|
1531
1532
|
tracksCount: number;
|
|
1532
|
-
viewsCount: number;
|
|
1533
1533
|
criteria: {
|
|
1534
1534
|
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1535
1535
|
name: string;
|
|
@@ -1543,6 +1543,7 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
|
|
|
1543
1543
|
createdOn: string;
|
|
1544
1544
|
updatedOn: string | null;
|
|
1545
1545
|
isUnacceptedRoot: boolean;
|
|
1546
|
+
viewsCount?: number | undefined;
|
|
1546
1547
|
isUmbrella?: boolean | undefined;
|
|
1547
1548
|
scene?: "commercial" | "underground" | null | undefined;
|
|
1548
1549
|
}[];
|
|
@@ -1564,7 +1565,6 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
|
|
|
1564
1565
|
name: string;
|
|
1565
1566
|
};
|
|
1566
1567
|
tracksCount: number;
|
|
1567
|
-
viewsCount: number;
|
|
1568
1568
|
criteria: {
|
|
1569
1569
|
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1570
1570
|
name: string;
|
|
@@ -1578,6 +1578,7 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
|
|
|
1578
1578
|
createdOn: string;
|
|
1579
1579
|
updatedOn: string | null;
|
|
1580
1580
|
isUnacceptedRoot: boolean;
|
|
1581
|
+
viewsCount?: number | undefined;
|
|
1581
1582
|
isUmbrella?: boolean | undefined;
|
|
1582
1583
|
scene?: "commercial" | "underground" | null | undefined;
|
|
1583
1584
|
}[];
|
|
@@ -1619,7 +1620,6 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
|
|
|
1619
1620
|
name: string;
|
|
1620
1621
|
};
|
|
1621
1622
|
tracksCount: number;
|
|
1622
|
-
viewsCount: number;
|
|
1623
1623
|
criteria: {
|
|
1624
1624
|
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1625
1625
|
name: string;
|
|
@@ -1633,6 +1633,7 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
|
|
|
1633
1633
|
createdOn: string;
|
|
1634
1634
|
updatedOn: string | null;
|
|
1635
1635
|
isUnacceptedRoot: boolean;
|
|
1636
|
+
viewsCount?: number | undefined;
|
|
1636
1637
|
isUmbrella?: boolean | undefined;
|
|
1637
1638
|
scene?: "commercial" | "underground" | null | undefined;
|
|
1638
1639
|
}[];
|
|
@@ -1653,7 +1654,6 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
|
|
|
1653
1654
|
name: string;
|
|
1654
1655
|
};
|
|
1655
1656
|
tracksCount: number;
|
|
1656
|
-
viewsCount: number;
|
|
1657
1657
|
criteria: {
|
|
1658
1658
|
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1659
1659
|
name: string;
|
|
@@ -1667,6 +1667,7 @@ declare const useListGenrePlaylists: (page: number | undefined, pageSize: number
|
|
|
1667
1667
|
createdOn: string;
|
|
1668
1668
|
updatedOn: string | null;
|
|
1669
1669
|
isUnacceptedRoot: boolean;
|
|
1670
|
+
viewsCount?: number | undefined;
|
|
1670
1671
|
isUmbrella?: boolean | undefined;
|
|
1671
1672
|
scene?: "commercial" | "underground" | null | undefined;
|
|
1672
1673
|
}[];
|
|
@@ -1685,7 +1686,6 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
|
|
|
1685
1686
|
name: string;
|
|
1686
1687
|
};
|
|
1687
1688
|
tracksCount: number;
|
|
1688
|
-
viewsCount: number;
|
|
1689
1689
|
criteria: {
|
|
1690
1690
|
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1691
1691
|
name: string;
|
|
@@ -1699,6 +1699,7 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
|
|
|
1699
1699
|
createdOn: string;
|
|
1700
1700
|
updatedOn: string | null;
|
|
1701
1701
|
isUnacceptedRoot: boolean;
|
|
1702
|
+
viewsCount?: number | undefined;
|
|
1702
1703
|
isUmbrella?: boolean | undefined;
|
|
1703
1704
|
scene?: "commercial" | "underground" | null | undefined;
|
|
1704
1705
|
}[]>;
|
|
@@ -1732,7 +1733,6 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
|
|
|
1732
1733
|
name: string;
|
|
1733
1734
|
};
|
|
1734
1735
|
tracksCount: number;
|
|
1735
|
-
viewsCount: number;
|
|
1736
1736
|
criteria: {
|
|
1737
1737
|
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1738
1738
|
name: string;
|
|
@@ -1746,6 +1746,7 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
|
|
|
1746
1746
|
createdOn: string;
|
|
1747
1747
|
updatedOn: string | null;
|
|
1748
1748
|
isUnacceptedRoot: boolean;
|
|
1749
|
+
viewsCount?: number | undefined;
|
|
1749
1750
|
isUmbrella?: boolean | undefined;
|
|
1750
1751
|
scene?: "commercial" | "underground" | null | undefined;
|
|
1751
1752
|
}[]>, Error>>;
|
|
@@ -1758,7 +1759,6 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
|
|
|
1758
1759
|
name: string;
|
|
1759
1760
|
};
|
|
1760
1761
|
tracksCount: number;
|
|
1761
|
-
viewsCount: number;
|
|
1762
1762
|
criteria: {
|
|
1763
1763
|
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1764
1764
|
name: string;
|
|
@@ -1772,6 +1772,7 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
|
|
|
1772
1772
|
createdOn: string;
|
|
1773
1773
|
updatedOn: string | null;
|
|
1774
1774
|
isUnacceptedRoot: boolean;
|
|
1775
|
+
viewsCount?: number | undefined;
|
|
1775
1776
|
isUmbrella?: boolean | undefined;
|
|
1776
1777
|
scene?: "commercial" | "underground" | null | undefined;
|
|
1777
1778
|
}[]>>;
|
|
@@ -1785,7 +1786,6 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
|
|
|
1785
1786
|
name: string;
|
|
1786
1787
|
};
|
|
1787
1788
|
tracksCount: number;
|
|
1788
|
-
viewsCount: number;
|
|
1789
1789
|
criteria: {
|
|
1790
1790
|
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1791
1791
|
name: string;
|
|
@@ -1799,6 +1799,7 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
|
|
|
1799
1799
|
createdOn: string;
|
|
1800
1800
|
updatedOn: string | null;
|
|
1801
1801
|
isUnacceptedRoot: boolean;
|
|
1802
|
+
viewsCount?: number | undefined;
|
|
1802
1803
|
isUmbrella?: boolean | undefined;
|
|
1803
1804
|
scene?: "commercial" | "underground" | null | undefined;
|
|
1804
1805
|
}[]>;
|
|
@@ -1832,7 +1833,6 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
|
|
|
1832
1833
|
name: string;
|
|
1833
1834
|
};
|
|
1834
1835
|
tracksCount: number;
|
|
1835
|
-
viewsCount: number;
|
|
1836
1836
|
criteria: {
|
|
1837
1837
|
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1838
1838
|
name: string;
|
|
@@ -1846,6 +1846,7 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
|
|
|
1846
1846
|
createdOn: string;
|
|
1847
1847
|
updatedOn: string | null;
|
|
1848
1848
|
isUnacceptedRoot: boolean;
|
|
1849
|
+
viewsCount?: number | undefined;
|
|
1849
1850
|
isUmbrella?: boolean | undefined;
|
|
1850
1851
|
scene?: "commercial" | "underground" | null | undefined;
|
|
1851
1852
|
}[]>, Error>>;
|
|
@@ -1858,7 +1859,6 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
|
|
|
1858
1859
|
name: string;
|
|
1859
1860
|
};
|
|
1860
1861
|
tracksCount: number;
|
|
1861
|
-
viewsCount: number;
|
|
1862
1862
|
criteria: {
|
|
1863
1863
|
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1864
1864
|
name: string;
|
|
@@ -1872,6 +1872,7 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
|
|
|
1872
1872
|
createdOn: string;
|
|
1873
1873
|
updatedOn: string | null;
|
|
1874
1874
|
isUnacceptedRoot: boolean;
|
|
1875
|
+
viewsCount?: number | undefined;
|
|
1875
1876
|
isUmbrella?: boolean | undefined;
|
|
1876
1877
|
scene?: "commercial" | "underground" | null | undefined;
|
|
1877
1878
|
}[]>>;
|
|
@@ -1908,7 +1909,6 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
|
|
|
1908
1909
|
name: string;
|
|
1909
1910
|
};
|
|
1910
1911
|
tracksCount: number;
|
|
1911
|
-
viewsCount: number;
|
|
1912
1912
|
criteria: {
|
|
1913
1913
|
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1914
1914
|
name: string;
|
|
@@ -1922,6 +1922,7 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
|
|
|
1922
1922
|
createdOn: string;
|
|
1923
1923
|
updatedOn: string | null;
|
|
1924
1924
|
isUnacceptedRoot: boolean;
|
|
1925
|
+
viewsCount?: number | undefined;
|
|
1925
1926
|
isUmbrella?: boolean | undefined;
|
|
1926
1927
|
scene?: "commercial" | "underground" | null | undefined;
|
|
1927
1928
|
}[]>, Error>>;
|
|
@@ -1934,7 +1935,6 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
|
|
|
1934
1935
|
name: string;
|
|
1935
1936
|
};
|
|
1936
1937
|
tracksCount: number;
|
|
1937
|
-
viewsCount: number;
|
|
1938
1938
|
criteria: {
|
|
1939
1939
|
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1940
1940
|
name: string;
|
|
@@ -1948,6 +1948,7 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
|
|
|
1948
1948
|
createdOn: string;
|
|
1949
1949
|
updatedOn: string | null;
|
|
1950
1950
|
isUnacceptedRoot: boolean;
|
|
1951
|
+
viewsCount?: number | undefined;
|
|
1951
1952
|
isUmbrella?: boolean | undefined;
|
|
1952
1953
|
scene?: "commercial" | "underground" | null | undefined;
|
|
1953
1954
|
}[]>>;
|
|
@@ -1984,7 +1985,6 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
|
|
|
1984
1985
|
name: string;
|
|
1985
1986
|
};
|
|
1986
1987
|
tracksCount: number;
|
|
1987
|
-
viewsCount: number;
|
|
1988
1988
|
criteria: {
|
|
1989
1989
|
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1990
1990
|
name: string;
|
|
@@ -1998,6 +1998,7 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
|
|
|
1998
1998
|
createdOn: string;
|
|
1999
1999
|
updatedOn: string | null;
|
|
2000
2000
|
isUnacceptedRoot: boolean;
|
|
2001
|
+
viewsCount?: number | undefined;
|
|
2001
2002
|
isUmbrella?: boolean | undefined;
|
|
2002
2003
|
scene?: "commercial" | "underground" | null | undefined;
|
|
2003
2004
|
}[]>, Error>>;
|
|
@@ -2010,7 +2011,6 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
|
|
|
2010
2011
|
name: string;
|
|
2011
2012
|
};
|
|
2012
2013
|
tracksCount: number;
|
|
2013
|
-
viewsCount: number;
|
|
2014
2014
|
criteria: {
|
|
2015
2015
|
uuid: string & z.core.$brand<"GenreUuid">;
|
|
2016
2016
|
name: string;
|
|
@@ -2024,6 +2024,7 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
|
|
|
2024
2024
|
createdOn: string;
|
|
2025
2025
|
updatedOn: string | null;
|
|
2026
2026
|
isUnacceptedRoot: boolean;
|
|
2027
|
+
viewsCount?: number | undefined;
|
|
2027
2028
|
isUmbrella?: boolean | undefined;
|
|
2028
2029
|
scene?: "commercial" | "underground" | null | undefined;
|
|
2029
2030
|
}[]>>;
|
|
@@ -2060,7 +2061,6 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
|
|
|
2060
2061
|
name: string;
|
|
2061
2062
|
};
|
|
2062
2063
|
tracksCount: number;
|
|
2063
|
-
viewsCount: number;
|
|
2064
2064
|
criteria: {
|
|
2065
2065
|
uuid: string & z.core.$brand<"GenreUuid">;
|
|
2066
2066
|
name: string;
|
|
@@ -2074,6 +2074,7 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
|
|
|
2074
2074
|
createdOn: string;
|
|
2075
2075
|
updatedOn: string | null;
|
|
2076
2076
|
isUnacceptedRoot: boolean;
|
|
2077
|
+
viewsCount?: number | undefined;
|
|
2077
2078
|
isUmbrella?: boolean | undefined;
|
|
2078
2079
|
scene?: "commercial" | "underground" | null | undefined;
|
|
2079
2080
|
}[]>, Error>>;
|
|
@@ -2086,7 +2087,6 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
|
|
|
2086
2087
|
name: string;
|
|
2087
2088
|
};
|
|
2088
2089
|
tracksCount: number;
|
|
2089
|
-
viewsCount: number;
|
|
2090
2090
|
criteria: {
|
|
2091
2091
|
uuid: string & z.core.$brand<"GenreUuid">;
|
|
2092
2092
|
name: string;
|
|
@@ -2100,6 +2100,7 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
|
|
|
2100
2100
|
createdOn: string;
|
|
2101
2101
|
updatedOn: string | null;
|
|
2102
2102
|
isUnacceptedRoot: boolean;
|
|
2103
|
+
viewsCount?: number | undefined;
|
|
2103
2104
|
isUmbrella?: boolean | undefined;
|
|
2104
2105
|
scene?: "commercial" | "underground" | null | undefined;
|
|
2105
2106
|
}[]>>;
|
|
@@ -2113,7 +2114,6 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
|
|
|
2113
2114
|
name: string;
|
|
2114
2115
|
};
|
|
2115
2116
|
tracksCount: number;
|
|
2116
|
-
viewsCount: number;
|
|
2117
2117
|
criteria: {
|
|
2118
2118
|
uuid: string & z.core.$brand<"GenreUuid">;
|
|
2119
2119
|
name: string;
|
|
@@ -2127,6 +2127,7 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
|
|
|
2127
2127
|
createdOn: string;
|
|
2128
2128
|
updatedOn: string | null;
|
|
2129
2129
|
isUnacceptedRoot: boolean;
|
|
2130
|
+
viewsCount?: number | undefined;
|
|
2130
2131
|
isUmbrella?: boolean | undefined;
|
|
2131
2132
|
scene?: "commercial" | "underground" | null | undefined;
|
|
2132
2133
|
}[]>;
|
|
@@ -2160,7 +2161,6 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
|
|
|
2160
2161
|
name: string;
|
|
2161
2162
|
};
|
|
2162
2163
|
tracksCount: number;
|
|
2163
|
-
viewsCount: number;
|
|
2164
2164
|
criteria: {
|
|
2165
2165
|
uuid: string & z.core.$brand<"GenreUuid">;
|
|
2166
2166
|
name: string;
|
|
@@ -2174,6 +2174,7 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
|
|
|
2174
2174
|
createdOn: string;
|
|
2175
2175
|
updatedOn: string | null;
|
|
2176
2176
|
isUnacceptedRoot: boolean;
|
|
2177
|
+
viewsCount?: number | undefined;
|
|
2177
2178
|
isUmbrella?: boolean | undefined;
|
|
2178
2179
|
scene?: "commercial" | "underground" | null | undefined;
|
|
2179
2180
|
}[]>, Error>>;
|
|
@@ -2186,7 +2187,6 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
|
|
|
2186
2187
|
name: string;
|
|
2187
2188
|
};
|
|
2188
2189
|
tracksCount: number;
|
|
2189
|
-
viewsCount: number;
|
|
2190
2190
|
criteria: {
|
|
2191
2191
|
uuid: string & z.core.$brand<"GenreUuid">;
|
|
2192
2192
|
name: string;
|
|
@@ -2200,6 +2200,7 @@ declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () =>
|
|
|
2200
2200
|
createdOn: string;
|
|
2201
2201
|
updatedOn: string | null;
|
|
2202
2202
|
isUnacceptedRoot: boolean;
|
|
2203
|
+
viewsCount?: number | undefined;
|
|
2203
2204
|
isUmbrella?: boolean | undefined;
|
|
2204
2205
|
scene?: "commercial" | "underground" | null | undefined;
|
|
2205
2206
|
}[]>>;
|
|
@@ -2366,7 +2367,7 @@ declare const CriteriaPlaylistSimpleSchema: z.ZodObject<{
|
|
|
2366
2367
|
name: z.ZodString;
|
|
2367
2368
|
}, z.core.$strip>;
|
|
2368
2369
|
tracksCount: z.ZodNumber;
|
|
2369
|
-
viewsCount: z.ZodNumber
|
|
2370
|
+
viewsCount: z.ZodOptional<z.ZodNumber>;
|
|
2370
2371
|
criteria: z.ZodNullable<z.ZodObject<{
|
|
2371
2372
|
uuid: z.core.$ZodBranded<z.ZodString, "GenreUuid", "out">;
|
|
2372
2373
|
name: z.ZodString;
|
|
@@ -2418,9 +2419,11 @@ interface UseGenreTreeViewStateOptions<O extends CriteriaOverview = CriteriaOver
|
|
|
2418
2419
|
viewMode?: GenreViewMode;
|
|
2419
2420
|
/** Narrows the tree to this artist's footprint (see `useVisibleGenrePlaylists`). */
|
|
2420
2421
|
artistUuid?: string | null;
|
|
2421
|
-
/** Controlled selection (a genre playlist
|
|
2422
|
+
/** Controlled selection (a genre playlist UUID, i.e. the tree node ID).
|
|
2423
|
+
* Legacy criteria UUIDs are resolved on load.
|
|
2424
|
+
*/
|
|
2422
2425
|
selectedNodeId?: string | null;
|
|
2423
|
-
/** Called
|
|
2426
|
+
/** Called when selection changes, including normalizing a legacy criteria UUID to its playlist UUID. */
|
|
2424
2427
|
onSelectedNodeIdChange?: (nodeId: string | null) => void;
|
|
2425
2428
|
criteriaOverviewSchema?: z.ZodType<O, unknown>;
|
|
2426
2429
|
}
|
|
@@ -2480,7 +2483,6 @@ declare function useVisibleGenrePlaylists({ scope, getBackendBaseUrl, artistUuid
|
|
|
2480
2483
|
name: string;
|
|
2481
2484
|
};
|
|
2482
2485
|
tracksCount: number;
|
|
2483
|
-
viewsCount: number;
|
|
2484
2486
|
criteria: {
|
|
2485
2487
|
uuid: string & zod.$brand<"GenreUuid">;
|
|
2486
2488
|
name: string;
|
|
@@ -2494,6 +2496,7 @@ declare function useVisibleGenrePlaylists({ scope, getBackendBaseUrl, artistUuid
|
|
|
2494
2496
|
createdOn: string;
|
|
2495
2497
|
updatedOn: string | null;
|
|
2496
2498
|
isUnacceptedRoot: boolean;
|
|
2499
|
+
viewsCount?: number | undefined;
|
|
2497
2500
|
isUmbrella?: boolean | undefined;
|
|
2498
2501
|
scene?: "commercial" | "underground" | null | undefined;
|
|
2499
2502
|
}[];
|
|
@@ -2643,6 +2646,15 @@ interface TrackListContextType<T extends TrackBase> {
|
|
|
2643
2646
|
trackList: TrackList<T> | null;
|
|
2644
2647
|
selectedTrack: T | null;
|
|
2645
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;
|
|
2646
2658
|
toTrackAtPosition: (position: number) => void;
|
|
2647
2659
|
playNewTrackListFromTrackUuid: (track: T, scope: Scope) => void;
|
|
2648
2660
|
/**
|
|
@@ -2662,15 +2674,18 @@ interface TrackListContextType<T extends TrackBase> {
|
|
|
2662
2674
|
fetchGenrePlaylistTracksPage: (uuid: GenrePlaylistUuid, scope: Scope, page: number, from?: string) => Promise<GenrePlaylistTracksPage<T>>;
|
|
2663
2675
|
/** Appends the next tracks page of the current genre-playlist or artist list; no-op when fully loaded or already loading. */
|
|
2664
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;
|
|
2665
2682
|
}
|
|
2666
2683
|
interface TrackListProviderProps<T extends TrackBase> {
|
|
2667
2684
|
children: ReactNode;
|
|
2668
2685
|
getBackendBaseUrl: () => string;
|
|
2669
2686
|
schema: z.ZodType<T, unknown>;
|
|
2670
|
-
listEndpoint: (page: number) => string;
|
|
2671
|
-
listQueryKey: (page: number) => readonly unknown[];
|
|
2672
2687
|
}
|
|
2673
|
-
declare function TrackListProvider<T extends TrackBase>({ children, getBackendBaseUrl, schema,
|
|
2688
|
+
declare function TrackListProvider<T extends TrackBase>({ children, getBackendBaseUrl, schema, }: TrackListProviderProps<T>): react.JSX.Element;
|
|
2674
2689
|
declare function useTrackList<T extends TrackBase = TrackBase>(): TrackListContextType<T>;
|
|
2675
2690
|
|
|
2676
2691
|
interface TrackListSidebarVisibilityContextType {
|
|
@@ -2785,6 +2800,10 @@ declare const CriteriaUpdateSchema: z.ZodObject<{
|
|
|
2785
2800
|
name: z.ZodOptional<z.ZodString>;
|
|
2786
2801
|
parent: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "GenreUuid", "out">>>;
|
|
2787
2802
|
essentialSongs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2803
|
+
side: z.ZodOptional<z.ZodEnum<{
|
|
2804
|
+
pop: "pop";
|
|
2805
|
+
core: "core";
|
|
2806
|
+
}>>;
|
|
2788
2807
|
}, z.core.$strip>;
|
|
2789
2808
|
type CriteriaUpdateValues = z.infer<typeof CriteriaUpdateSchema>;
|
|
2790
2809
|
|
|
@@ -2820,7 +2839,7 @@ declare const CriteriaPlaylistDetailedSchema: z.ZodObject<{
|
|
|
2820
2839
|
uuid: z.core.$ZodBranded<z.ZodString, "GenrePlaylistUuid", "out">;
|
|
2821
2840
|
name: z.ZodString;
|
|
2822
2841
|
tracksCount: z.ZodNumber;
|
|
2823
|
-
viewsCount: z.ZodNumber
|
|
2842
|
+
viewsCount: z.ZodOptional<z.ZodNumber>;
|
|
2824
2843
|
durationInSec: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2825
2844
|
durationStrInHourMinSec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2826
2845
|
criteria: z.ZodNullable<z.ZodObject<{
|
|
@@ -3050,7 +3069,6 @@ declare const getGenrePlaylistsGroupedByRoot: (genrePlaylists: CriteriaPlaylistS
|
|
|
3050
3069
|
name: string;
|
|
3051
3070
|
};
|
|
3052
3071
|
tracksCount: number;
|
|
3053
|
-
viewsCount: number;
|
|
3054
3072
|
criteria: {
|
|
3055
3073
|
uuid: string & zod.$brand<"GenreUuid">;
|
|
3056
3074
|
name: string;
|
|
@@ -3064,6 +3082,7 @@ declare const getGenrePlaylistsGroupedByRoot: (genrePlaylists: CriteriaPlaylistS
|
|
|
3064
3082
|
createdOn: string;
|
|
3065
3083
|
updatedOn: string | null;
|
|
3066
3084
|
isUnacceptedRoot: boolean;
|
|
3085
|
+
viewsCount?: number | undefined;
|
|
3067
3086
|
isUmbrella?: boolean | undefined;
|
|
3068
3087
|
scene?: "commercial" | "underground" | null | undefined;
|
|
3069
3088
|
}[]>;
|
package/dist/genre-tree/index.js
CHANGED
|
@@ -82,11 +82,11 @@ import {
|
|
|
82
82
|
useTrackListSidebarVisibility,
|
|
83
83
|
useUpdateGenre,
|
|
84
84
|
useVisibleGenrePlaylists
|
|
85
|
-
} from "../chunk-
|
|
85
|
+
} from "../chunk-XIKMW7U4.js";
|
|
86
86
|
import "../chunk-7EOS2K24.js";
|
|
87
87
|
import "../chunk-T5D5T52J.js";
|
|
88
88
|
import "../chunk-4MEK3CNF.js";
|
|
89
|
-
import "../chunk-
|
|
89
|
+
import "../chunk-XCOAWKF6.js";
|
|
90
90
|
import {
|
|
91
91
|
GenrePlaylistUuidSchema,
|
|
92
92
|
GenreUuidSchema
|