@behindthemusictree/app-kit 42.0.0 → 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.
@@ -3374,7 +3374,7 @@ declare const ArtistImageSchema: z.ZodObject<{
3374
3374
  }, z.core.$strip>;
3375
3375
  declare const ArtistOriginSchema: z.ZodObject<{
3376
3376
  name: z.ZodString;
3377
- kind: z.ZodString;
3377
+ kind: z.ZodNullable<z.ZodString>;
3378
3378
  source: z.ZodEnum<{
3379
3379
  area: "area";
3380
3380
  begin_area: "begin_area";
@@ -3454,7 +3454,7 @@ declare const ArtistDetailedSchema: z.ZodObject<{
3454
3454
  }, z.core.$strip>>;
3455
3455
  origin: z.ZodNullable<z.ZodObject<{
3456
3456
  name: z.ZodString;
3457
- kind: z.ZodString;
3457
+ kind: z.ZodNullable<z.ZodString>;
3458
3458
  source: z.ZodEnum<{
3459
3459
  area: "area";
3460
3460
  begin_area: "begin_area";
@@ -127,11 +127,11 @@ import {
127
127
  useTrackListSidebarVisibility,
128
128
  useUpdateGenre,
129
129
  useVisibleGenrePlaylists
130
- } from "../chunk-QNBZQZEL.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();
@@ -2765,7 +2775,7 @@ var ARTIST_LINK_KINDS = [
2765
2775
  var ArtistImageSchema = CommonsImageSchema;
2766
2776
  var ArtistOriginSchema = import_zod26.z.object({
2767
2777
  name: import_zod26.z.string(),
2768
- kind: import_zod26.z.string(),
2778
+ kind: import_zod26.z.string().nullable(),
2769
2779
  source: import_zod26.z.enum(["begin_area", "area"]),
2770
2780
  wikidataId: import_zod26.z.string().nullable(),
2771
2781
  longitude: import_zod26.z.number().nullable(),