@skippr/live-agent-sdk 0.82.0 → 0.83.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.
@@ -0,0 +1,2 @@
1
+ export declare function drawPausedOverlay(canvas: HTMLCanvasElement, ctx: CanvasRenderingContext2D): void;
2
+ export declare function createPausedScreenTrack(sourceTrack: MediaStreamTrack): Promise<MediaStreamTrack | null>;
@@ -1 +1 @@
1
- export declare function useElapsedSeconds(isRunning: boolean): number;
1
+ export declare function useElapsedSeconds(isRunning: boolean, resetSignal?: unknown): number;
@@ -0,0 +1 @@
1
+ export declare function useIsSessionHeld(): boolean;
@@ -1,7 +1,9 @@
1
+ import { type CaptureMode } from '../lib/constants';
1
2
  export declare const FALLBACK_PAUSE_TIMEOUT_SECONDS = 120;
2
3
  export interface UseSessionHoldOptions {
3
4
  pauseSession: () => Promise<void>;
4
5
  pauseTimeoutSeconds: number | null;
6
+ captureMode: CaptureMode;
5
7
  }
6
8
  export interface UseSessionHoldValue {
7
9
  isHeld: boolean;
@@ -10,4 +12,4 @@ export interface UseSessionHoldValue {
10
12
  }
11
13
  /** Owns the user's in-session pause/resume: mutes the mic, signals the worker to stop listening,
12
14
  * and ends the session if the hold outlasts the countdown. */
13
- export declare function useSessionHold({ pauseSession, pauseTimeoutSeconds, }: UseSessionHoldOptions): UseSessionHoldValue;
15
+ export declare function useSessionHold({ pauseSession, pauseTimeoutSeconds, captureMode, }: UseSessionHoldOptions): UseSessionHoldValue;
@@ -3,6 +3,7 @@ export type { Module } from './context/LiveAgentContext';
3
3
  export * from './hooks/useAgentVoiceState';
4
4
  export * from './hooks/useElapsedSeconds';
5
5
  export * from './hooks/useIsLocalSpeaking';
6
+ export * from './hooks/useIsSessionHeld';
6
7
  export * from './hooks/useLiveAgent';
7
8
  export * from './hooks/useMediaControls';
8
9
  export * from './lib/agentMode';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skippr/live-agent-sdk",
3
- "version": "0.82.0",
3
+ "version": "0.83.0",
4
4
  "type": "module",
5
5
  "main": "dist/esm/lib-exports.js",
6
6
  "module": "dist/esm/lib-exports.js",