@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.
@@ -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
- hasModuleSelector: boolean;
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
- export declare function useLauncherDrag(containerRef: React.RefObject<HTMLDivElement | null>, onDrop: (target: LauncherDropTarget) => void, followRef?: React.RefObject<HTMLElement | null> | null): {
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 {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skippr/live-agent-sdk",
3
- "version": "0.65.0",
3
+ "version": "0.67.0",
4
4
  "type": "module",
5
5
  "main": "dist/esm/lib-exports.js",
6
6
  "module": "dist/esm/lib-exports.js",