@skippr/live-agent-sdk 0.66.0 → 0.68.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,4 @@
1
+ export interface PausedCountdownProps {
2
+ secondsRemaining: number;
3
+ }
4
+ export declare function PausedCountdown({ secondsRemaining }: PausedCountdownProps): import("react/jsx-runtime").JSX.Element;
@@ -92,8 +92,7 @@ export interface LiveAgentPublicValue {
92
92
  autoFocusChat: boolean;
93
93
  captureMode: CaptureMode;
94
94
  agentControls?: AgentControls | undefined;
95
- hasModuleSelector: boolean;
96
- availableModules: Module[];
95
+ displayModules: Module[];
97
96
  activeModule: Module | null;
98
97
  isLoadingModules: boolean;
99
98
  modulesError: string | null;
@@ -101,6 +100,7 @@ export interface LiveAgentPublicValue {
101
100
  selectModule: (id: string) => void;
102
101
  }
103
102
  export interface LiveAgentContextValue extends LiveAgentPublicValue {
103
+ pauseTimeoutSeconds: number | null;
104
104
  usesHostAuth: boolean;
105
105
  authFailed: boolean;
106
106
  connection: {
@@ -33,6 +33,7 @@ export declare function useSession({ captureMode, authToken, appKey, getUserToke
33
33
  disconnect: () => Promise<void>;
34
34
  isPaused: boolean;
35
35
  isPausing: boolean;
36
+ pauseTimeoutSeconds: number | null;
36
37
  historyMessages: Message[];
37
38
  pendingScreenStream: MediaStream | null;
38
39
  bearerToken: string | null;
@@ -0,0 +1,13 @@
1
+ export declare const FALLBACK_PAUSE_TIMEOUT_SECONDS = 120;
2
+ export interface UseSessionHoldOptions {
3
+ pauseSession: () => Promise<void>;
4
+ pauseTimeoutSeconds: number | null;
5
+ }
6
+ export interface UseSessionHoldValue {
7
+ isHeld: boolean;
8
+ countdown: number;
9
+ toggle: () => void;
10
+ }
11
+ /** Owns the user's in-session pause/resume: mutes the mic, signals the worker to stop listening,
12
+ * and ends the session if the hold outlasts the countdown. */
13
+ export declare function useSessionHold({ pauseSession, pauseTimeoutSeconds, }: UseSessionHoldOptions): UseSessionHoldValue;
@@ -8,5 +8,6 @@ export declare const HIGHLIGHT_TOPIC = "skippr.highlight";
8
8
  export declare const PAGE_ACTIONS_TOPIC = "skippr.page-actions";
9
9
  export declare const TEXT_MODE_TOPIC = "skippr.text-mode";
10
10
  export declare const ACTION_CONTROL_TOPIC = "skippr.action-control";
11
+ export declare const SESSION_HOLD_TOPIC = "skippr.session-hold";
11
12
  export declare const PLAN_ATTR = "skippr.action-plan";
12
13
  export declare const NAME_MAX_CHARS = 80;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skippr/live-agent-sdk",
3
- "version": "0.66.0",
3
+ "version": "0.68.0",
4
4
  "type": "module",
5
5
  "main": "dist/esm/lib-exports.js",
6
6
  "module": "dist/esm/lib-exports.js",