@skippr/live-agent-sdk 0.65.0 → 0.67.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/README.md +1 -2
- package/dist/esm/lib-exports.js +118 -87
- package/dist/skippr-sdk.css +1 -1
- package/dist/skippr-sdk.js +121 -121
- package/dist/types/context/LiveAgentContext.d.ts +4 -2
- package/dist/types/hooks/useLauncherDrag.d.ts +3 -1
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { LauncherDropTarget } from '../hooks/useLauncherDrag';
|
|
1
2
|
import type { AgentMode } from '../lib/agentMode';
|
|
2
3
|
import type { SessionStatus } from '../lib/sessionStatus';
|
|
3
4
|
import type { Message } from '../types';
|
|
@@ -91,8 +92,7 @@ export interface LiveAgentPublicValue {
|
|
|
91
92
|
autoFocusChat: boolean;
|
|
92
93
|
captureMode: CaptureMode;
|
|
93
94
|
agentControls?: AgentControls | undefined;
|
|
94
|
-
|
|
95
|
-
availableModules: Module[];
|
|
95
|
+
displayModules: Module[];
|
|
96
96
|
activeModule: Module | null;
|
|
97
97
|
isLoadingModules: boolean;
|
|
98
98
|
modulesError: string | null;
|
|
@@ -117,9 +117,11 @@ export interface LiveAgentContextValue extends LiveAgentPublicValue {
|
|
|
117
117
|
setTextModeState: (enabled: boolean) => void;
|
|
118
118
|
launcherBottomPx: number;
|
|
119
119
|
setLauncherBottomPx: (px: number) => void;
|
|
120
|
+
commitLauncherDrop: (target: LauncherDropTarget) => void;
|
|
120
121
|
popsDown: boolean;
|
|
121
122
|
panelExpanded: boolean;
|
|
122
123
|
togglePanelExpanded: () => void;
|
|
123
124
|
panelRef: React.RefObject<HTMLDivElement | null>;
|
|
125
|
+
controlBarRef: React.RefObject<HTMLDivElement | null>;
|
|
124
126
|
}
|
|
125
127
|
export declare const LiveAgentContext: import("react").Context<LiveAgentContextValue | null>;
|
|
@@ -2,6 +2,8 @@ export interface LauncherDropTarget {
|
|
|
2
2
|
side: 'left' | 'right';
|
|
3
3
|
bottomPx: number;
|
|
4
4
|
}
|
|
5
|
-
|
|
5
|
+
type FollowerRef = React.RefObject<HTMLElement | null>;
|
|
6
|
+
export declare function useLauncherDrag(containerRef: React.RefObject<HTMLElement | null>, onDrop: (target: LauncherDropTarget) => void, followRefs?: FollowerRef[] | null): {
|
|
6
7
|
wasDraggedRef: React.RefObject<boolean>;
|
|
7
8
|
};
|
|
9
|
+
export {};
|