@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.
@@ -127,11 +127,11 @@ import {
127
127
  useTrackListSidebarVisibility,
128
128
  useUpdateGenre,
129
129
  useVisibleGenrePlaylists
130
- } from "../chunk-ZAS53EAW.js";
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-MAKY4YBN.js";
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)("div", { ref: videoContainerRef, className });
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();