@behindthemusictree/app-kit-ui 32.0.2 → 33.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.
- package/dist/{chunk-QGGVPIXY.js → chunk-GHFKICEB.js} +16 -10
- package/dist/chunk-GHFKICEB.js.map +1 -0
- package/dist/{chunk-XUC4UJDQ.js → chunk-K4WMHUNM.js} +7 -4
- package/dist/chunk-K4WMHUNM.js.map +1 -0
- package/dist/genre-tree/index.cjs +14 -8
- package/dist/genre-tree/index.cjs.map +1 -1
- package/dist/genre-tree/index.js +1 -1
- package/dist/index.cjs +36 -27
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/popup/index.cjs +8 -5
- package/dist/popup/index.cjs.map +1 -1
- package/dist/popup/index.d.ts +4 -2
- package/dist/popup/index.js +1 -1
- package/package.json +4 -4
- package/dist/chunk-QGGVPIXY.js.map +0 -1
- package/dist/chunk-XUC4UJDQ.js.map +0 -1
|
@@ -2341,7 +2341,10 @@ function GenreTreeView({
|
|
|
2341
2341
|
const ancestors = /* @__PURE__ */ jsx29(GenreNodeAncestors, { ancestorNodes: relation.ancestorNodes, onSelectNode: selectGenreFromPanel });
|
|
2342
2342
|
const genrePlaylist = genrePlaylistByNodeId.get(node.id);
|
|
2343
2343
|
const criteria = genrePlaylist?.criteria;
|
|
2344
|
-
if (!genrePlaylist || !criteria) return { primary:
|
|
2344
|
+
if (!genrePlaylist || !criteria) return { primary: /* @__PURE__ */ jsxs22(Fragment11, { children: [
|
|
2345
|
+
family,
|
|
2346
|
+
ancestors
|
|
2347
|
+
] }) };
|
|
2345
2348
|
const genreUuid = criteria.uuid;
|
|
2346
2349
|
const parentPlaylist = visibleGenrePlaylists.find(({ uuid }) => uuid === genrePlaylist.parent?.uuid);
|
|
2347
2350
|
const canToggleSide = !readOnly && parentPlaylist !== void 0 && parentPlaylist.parent === null;
|
|
@@ -2362,7 +2365,10 @@ function GenreTreeView({
|
|
|
2362
2365
|
/* @__PURE__ */ jsx29(
|
|
2363
2366
|
GenreInfoPanelBody,
|
|
2364
2367
|
{
|
|
2365
|
-
family,
|
|
2368
|
+
family: /* @__PURE__ */ jsxs22(Fragment11, { children: [
|
|
2369
|
+
family,
|
|
2370
|
+
ancestors
|
|
2371
|
+
] }),
|
|
2366
2372
|
genreUuid,
|
|
2367
2373
|
genrePlaylist,
|
|
2368
2374
|
wikidataId: criteria.wikidataId,
|
|
@@ -2409,8 +2415,7 @@ function GenreTreeView({
|
|
|
2409
2415
|
}
|
|
2410
2416
|
),
|
|
2411
2417
|
renderDangerZone?.(node)
|
|
2412
|
-
] })
|
|
2413
|
-
aside: ancestors
|
|
2418
|
+
] })
|
|
2414
2419
|
};
|
|
2415
2420
|
};
|
|
2416
2421
|
const isRotationControlled = controlledAllowWheelRotation !== void 0;
|
|
@@ -2427,11 +2432,10 @@ function GenreTreeView({
|
|
|
2427
2432
|
compact: false
|
|
2428
2433
|
};
|
|
2429
2434
|
} else if (relations) {
|
|
2430
|
-
const { primary
|
|
2435
|
+
const { primary } = renderGenreBody(relations);
|
|
2431
2436
|
activePanel = {
|
|
2432
2437
|
title: relations.node.name,
|
|
2433
2438
|
content: primary,
|
|
2434
|
-
aside,
|
|
2435
2439
|
expanded: isExpanded,
|
|
2436
2440
|
onExpandedChange: changeExpanded,
|
|
2437
2441
|
onClose: clearSelection,
|
|
@@ -2720,7 +2724,7 @@ import { Maximize2 as Maximize22, Minimize2 as Minimize22 } from "lucide-react";
|
|
|
2720
2724
|
import {
|
|
2721
2725
|
useFetchGenreDetail
|
|
2722
2726
|
} from "@behindthemusictree/app-kit/genre-tree";
|
|
2723
|
-
import { jsx as jsx30, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
2727
|
+
import { Fragment as Fragment12, jsx as jsx30, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
2724
2728
|
var RELATIVE_ITEM_COUNT = 1;
|
|
2725
2729
|
function toNode(genre, parentId) {
|
|
2726
2730
|
return {
|
|
@@ -2817,12 +2821,14 @@ function GenreDetailPanel({
|
|
|
2817
2821
|
expanded,
|
|
2818
2822
|
onExpandedChange,
|
|
2819
2823
|
edgeTab,
|
|
2820
|
-
aside: ancestors,
|
|
2821
2824
|
children: [
|
|
2822
2825
|
/* @__PURE__ */ jsx30(
|
|
2823
2826
|
GenreInfoPanelBody,
|
|
2824
2827
|
{
|
|
2825
|
-
family,
|
|
2828
|
+
family: /* @__PURE__ */ jsxs23(Fragment12, { children: [
|
|
2829
|
+
family,
|
|
2830
|
+
ancestors
|
|
2831
|
+
] }),
|
|
2826
2832
|
genreUuid: detail.uuid,
|
|
2827
2833
|
genrePlaylist: { ...detail.criteriaPlaylist, tracksCount: detail.tracksCount },
|
|
2828
2834
|
wikidataId: detail.wikidataId,
|
|
@@ -3297,4 +3303,4 @@ export {
|
|
|
3297
3303
|
GenreTreeViewSkeleton2 as GenreTreeViewSkeleton,
|
|
3298
3304
|
GenreTreeOutlineSkeleton
|
|
3299
3305
|
};
|
|
3300
|
-
//# sourceMappingURL=chunk-
|
|
3306
|
+
//# sourceMappingURL=chunk-GHFKICEB.js.map
|