@skippr/live-agent-sdk 0.46.0 → 0.48.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.
- package/dist/esm/lib-exports.js +1337 -1157
- package/dist/skippr-sdk.css +1 -1
- package/dist/skippr-sdk.js +156 -156
- package/dist/types/components/AdoptionBubble.d.ts +4 -2
- package/dist/types/components/ModulePill.d.ts +13 -0
- package/dist/types/components/SessionControlBar.d.ts +1 -0
- package/dist/types/context/LiveAgentContext.d.ts +10 -1
- package/dist/types/hooks/useAdoptionGoals.d.ts +0 -1
- package/dist/types/hooks/useAvailableModules.d.ts +1 -0
- package/dist/types/hooks/useLauncherDrag.d.ts +7 -0
- package/dist/types/hooks/useMicLevel.d.ts +6 -0
- package/dist/types/hooks/useTextMode.d.ts +5 -0
- package/dist/types/lib/constants.d.ts +1 -0
- package/dist/types/lib/launcher.d.ts +8 -0
- package/package.json +1 -1
- package/dist/types/components/LauncherStatusPill.d.ts +0 -1
- package/dist/types/components/MeetingControls.d.ts +0 -10
- package/dist/types/components/ModuleSelector.d.ts +0 -1
|
@@ -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
|
-
|
|
5
|
+
appearDelayMs?: number;
|
|
6
|
+
exitDelayMs?: number;
|
|
7
|
+
hidden?: boolean;
|
|
6
8
|
}
|
|
7
|
-
export declare function AdoptionBubble({ goal, onAttend,
|
|
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,15 @@ 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;
|
|
114
|
+
launcherBottomPx: number;
|
|
115
|
+
setLauncherBottomPx: (px: number) => void;
|
|
116
|
+
popsDown: boolean;
|
|
117
|
+
panelExpanded: boolean;
|
|
118
|
+
togglePanelExpanded: () => void;
|
|
110
119
|
}
|
|
111
120
|
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;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface LauncherDropTarget {
|
|
2
|
+
side: 'left' | 'right';
|
|
3
|
+
bottomPx: number;
|
|
4
|
+
}
|
|
5
|
+
export declare function useLauncherDrag(containerRef: React.RefObject<HTMLDivElement | null>, onDrop: (target: LauncherDropTarget) => void): {
|
|
6
|
+
wasDraggedRef: React.RefObject<boolean>;
|
|
7
|
+
};
|
|
@@ -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;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const DEFAULT_LAUNCHER_BOTTOM_PX = 48;
|
|
2
|
+
export declare const LAUNCHER_HEIGHT_PX = 50;
|
|
3
|
+
export declare const SESSION_BAR_CLEARANCE_PX = 76;
|
|
4
|
+
export declare const TRIGGER_HEIGHT_PX = 48;
|
|
5
|
+
export declare const IDLE_TRIGGER_CLEARANCE_PX: number;
|
|
6
|
+
export declare function triggerBottomPx(launcherBottomPx: number, popsDown: boolean): number;
|
|
7
|
+
export declare function clampLauncherBottom(px: number): number;
|
|
8
|
+
export declare function launcherPopsDown(bottomPx: number): boolean;
|
package/package.json
CHANGED
|
@@ -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;
|