@skippr/live-agent-sdk 0.46.0 → 0.47.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.
@@ -2,7 +2,9 @@ import type { AdoptionGoalMatch } from '../context/LiveAgentContext';
2
2
  interface AdoptionBubbleProps {
3
3
  goal: AdoptionGoalMatch;
4
4
  onAttend: (goal: AdoptionGoalMatch) => void;
5
- onDismiss: (goalId: string) => void;
5
+ appearDelayMs?: number;
6
+ exitDelayMs?: number;
7
+ hidden?: boolean;
6
8
  }
7
- export declare function AdoptionBubble({ goal, onAttend, onDismiss }: AdoptionBubbleProps): import("react/jsx-runtime").JSX.Element;
9
+ export declare function AdoptionBubble({ goal, onAttend, appearDelayMs, exitDelayMs, hidden, }: AdoptionBubbleProps): import("react/jsx-runtime").JSX.Element;
8
10
  export {};
@@ -0,0 +1,13 @@
1
+ import type { Module } from '../context/LiveAgentContext';
2
+ interface ModulePillProps {
3
+ module: Module;
4
+ onSelect: (id: string) => void;
5
+ progress?: {
6
+ completed: number;
7
+ total: number;
8
+ };
9
+ isLive?: boolean;
10
+ label?: string;
11
+ }
12
+ export declare function ModulePill({ module, onSelect, progress, isLive, label }: ModulePillProps): import("react/jsx-runtime").JSX.Element;
13
+ export {};
@@ -0,0 +1 @@
1
+ export declare function SessionControlBar(): import("react/jsx-runtime").JSX.Element;
@@ -11,6 +11,7 @@ export type { AgentMode, SessionStatus };
11
11
  export interface ModuleCurrentSession {
12
12
  id: string;
13
13
  status: SessionStatus;
14
+ currentPhaseIndex: number;
14
15
  }
15
16
  export interface Module {
16
17
  id: string;
@@ -20,6 +21,7 @@ export interface Module {
20
21
  mode: AgentMode;
21
22
  priority: number;
22
23
  controls: AgentControls;
24
+ totalPhases: number;
23
25
  currentSession: ModuleCurrentSession | null;
24
26
  }
25
27
  export interface ResumableSession {
@@ -104,8 +106,10 @@ export interface LiveAgentContextValue extends LiveAgentPublicValue {
104
106
  historyMessages: Message[];
105
107
  phasesSnapshot: unknown[];
106
108
  setPhasesSnapshot: (phases: unknown[]) => void;
109
+ hasResolvedModules: boolean;
107
110
  adoptionGoals: AdoptionGoalMatch[];
108
- dismissAdoptionGoal: (goalId: string) => void;
109
111
  startAdoptionSession: (goal: AdoptionGoalMatch) => void;
112
+ textMode: boolean;
113
+ setTextModeState: (enabled: boolean) => void;
110
114
  }
111
115
  export declare const LiveAgentContext: import("react").Context<LiveAgentContextValue | null>;
@@ -7,7 +7,6 @@ interface UseAdoptionGoalsParams {
7
7
  }
8
8
  interface UseAdoptionGoalsResult {
9
9
  goals: AdoptionGoalMatch[];
10
- dismissGoal: (goalId: string) => void;
11
10
  attendGoal: (goalId: string) => void;
12
11
  }
13
12
  export declare function useAdoptionGoals({ enabled, bearerToken, authedFetch, }: UseAdoptionGoalsParams): UseAdoptionGoalsResult;
@@ -8,6 +8,7 @@ interface UseAvailableModulesParams {
8
8
  interface UseAvailableModulesResult {
9
9
  modules: Module[];
10
10
  isLoading: boolean;
11
+ hasResolved: boolean;
11
12
  error: string | null;
12
13
  refetch: () => Promise<void>;
13
14
  }
@@ -0,0 +1,6 @@
1
+ export declare const MIC_BARS = 5;
2
+ export interface UseMicLevelValue {
3
+ barRefs: React.MutableRefObject<(HTMLSpanElement | null)[]>;
4
+ isTalking: boolean;
5
+ }
6
+ export declare function useMicLevel(enabled: boolean): UseMicLevelValue;
@@ -0,0 +1,5 @@
1
+ export interface UseTextModeValue {
2
+ textMode: boolean;
3
+ toggleTextMode: () => Promise<void>;
4
+ }
5
+ export declare function useTextMode(): UseTextModeValue;
@@ -6,4 +6,5 @@ export declare const DOM_SNAPSHOT_TOPIC = "skippr.dom-snapshot";
6
6
  export declare const DOM_EVENTS_TOPIC = "skippr.dom-events";
7
7
  export declare const HIGHLIGHT_TOPIC = "skippr.highlight";
8
8
  export declare const PAGE_ACTIONS_TOPIC = "skippr.page-actions";
9
+ export declare const TEXT_MODE_TOPIC = "skippr.text-mode";
9
10
  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.46.0",
3
+ "version": "0.47.0",
4
4
  "type": "module",
5
5
  "main": "dist/esm/lib-exports.js",
6
6
  "module": "dist/esm/lib-exports.js",
@@ -1 +0,0 @@
1
- export declare function LauncherStatusPill(): import("react/jsx-runtime").JSX.Element | null;
@@ -1,10 +0,0 @@
1
- interface MeetingControlsProps {
2
- onHangUp: () => void;
3
- onPause?: () => void;
4
- onResume?: () => void;
5
- isPaused?: boolean;
6
- isPausing?: boolean;
7
- showScreenShareToggle?: boolean;
8
- }
9
- export declare function MeetingControls({ onHangUp, onPause, onResume, isPaused, isPausing, showScreenShareToggle, }: MeetingControlsProps): import("react/jsx-runtime").JSX.Element;
10
- export {};
@@ -1 +0,0 @@
1
- export declare function ModuleSelector(): import("react/jsx-runtime").JSX.Element;