@behindthemusictree/app-kit 42.0.1 → 42.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-MAKY4YBN.js → chunk-DNWBMIB5.js} +12 -2
- package/dist/chunk-DNWBMIB5.js.map +1 -0
- package/dist/{chunk-ZAS53EAW.js → chunk-R4KKLORV.js} +2 -2
- package/dist/genre-tree/index.cjs.map +1 -1
- package/dist/genre-tree/index.js +2 -2
- package/dist/index.cjs +11 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/player/index.cjs +11 -1
- package/dist/player/index.cjs.map +1 -1
- package/dist/player/index.d.ts +4 -1
- package/dist/player/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-MAKY4YBN.js.map +0 -1
- /package/dist/{chunk-ZAS53EAW.js.map → chunk-R4KKLORV.js.map} +0 -0
package/dist/genre-tree/index.js
CHANGED
|
@@ -127,11 +127,11 @@ import {
|
|
|
127
127
|
useTrackListSidebarVisibility,
|
|
128
128
|
useUpdateGenre,
|
|
129
129
|
useVisibleGenrePlaylists
|
|
130
|
-
} from "../chunk-
|
|
130
|
+
} from "../chunk-R4KKLORV.js";
|
|
131
131
|
import "../chunk-WHJNRJRZ.js";
|
|
132
132
|
import "../chunk-3Y7RT7QF.js";
|
|
133
133
|
import "../chunk-MPTID5ZR.js";
|
|
134
|
-
import "../chunk-
|
|
134
|
+
import "../chunk-DNWBMIB5.js";
|
|
135
135
|
import "../chunk-W4QTTNNA.js";
|
|
136
136
|
import {
|
|
137
137
|
ArtistUuidSchema,
|
package/dist/index.cjs
CHANGED
|
@@ -1862,6 +1862,9 @@ function PlayerProvider({ children, loadTrack }) {
|
|
|
1862
1862
|
await new Promise((resolve) => {
|
|
1863
1863
|
const player = new YT.Player(mount, {
|
|
1864
1864
|
videoId: track.youtubeVideoId,
|
|
1865
|
+
// Without these the API defaults to a 640x390 iframe that overflows the surface.
|
|
1866
|
+
width: "100%",
|
|
1867
|
+
height: "100%",
|
|
1865
1868
|
playerVars: { autoplay: 1, controls: 0 },
|
|
1866
1869
|
events: {
|
|
1867
1870
|
onReady: () => {
|
|
@@ -2078,9 +2081,16 @@ function usePlayer() {
|
|
|
2078
2081
|
}
|
|
2079
2082
|
return context;
|
|
2080
2083
|
}
|
|
2084
|
+
var VIDEO_SURFACE_FILL_CLASSES = "relative overflow-hidden [&>iframe]:absolute [&>iframe]:inset-0 [&>iframe]:size-full";
|
|
2081
2085
|
function PlayerVideoSurface({ className }) {
|
|
2082
2086
|
const { videoContainerRef } = usePlayer();
|
|
2083
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
2087
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
2088
|
+
"div",
|
|
2089
|
+
{
|
|
2090
|
+
ref: videoContainerRef,
|
|
2091
|
+
className: className ? `${VIDEO_SURFACE_FILL_CLASSES} ${className}` : VIDEO_SURFACE_FILL_CLASSES
|
|
2092
|
+
}
|
|
2093
|
+
);
|
|
2084
2094
|
}
|
|
2085
2095
|
function useCurrentTime() {
|
|
2086
2096
|
const { currentTimeRef } = usePlayer();
|