@touchcastllc/napster-companion-api-dev 1.0.0-alpha.66 → 1.0.0-alpha.67

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.
@@ -42,6 +42,7 @@ export declare class InactiveOverlayManager {
42
42
  private currentTrigger;
43
43
  private isVisible;
44
44
  private readonly mountElement;
45
+ private pipTarget;
45
46
  private readonly callbacks;
46
47
  constructor(mountElement: HTMLElement, callbacks?: InactiveOverlayCallbacks);
47
48
  /**
@@ -62,6 +63,17 @@ export declare class InactiveOverlayManager {
62
63
  * Get the current trigger type if overlay is visible
63
64
  */
64
65
  getCurrentTrigger(): InactiveOverlayTrigger | null;
66
+ /**
67
+ * Set the PiP window body as the overlay target (or null when PiP closes).
68
+ * Relocates a visible overlay so it stays in front of the user.
69
+ */
70
+ setPipTarget(target: HTMLElement | null): void;
71
+ private getMountTarget;
72
+ /**
73
+ * Move a visible overlay into the current target document. The countdown
74
+ * keeps running since the same DOM node (and its timer) is preserved.
75
+ */
76
+ private relocate;
65
77
  /**
66
78
  * Handle continue button click
67
79
  */
@@ -17,4 +17,8 @@ export declare function createPiPManager(handlers: {
17
17
  onScreenShareToggle: () => void;
18
18
  isScreenShareSupported: () => boolean;
19
19
  onInteraction?: () => void;
20
+ /** PiP window opened — receives its body so callers can render into it. */
21
+ onOpen?: (pipBody: HTMLElement) => void;
22
+ /** PiP window closed (by user or programmatically). */
23
+ onClose?: () => void;
20
24
  }): PiPController;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@touchcastllc/napster-companion-api-dev",
3
- "version": "1.0.0-alpha.66",
3
+ "version": "1.0.0-alpha.67",
4
4
  "keywords": [
5
5
  "napster",
6
6
  "companion-api",