@skippr/live-agent-sdk 0.47.0 → 0.49.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 +1,2 @@
1
+ export declare const HIGHLIGHT_AUTO_CLEAR_MS = 10000;
1
2
  export declare function HighlightOverlay(): import("react/jsx-runtime").JSX.Element | null;
@@ -111,5 +111,10 @@ export interface LiveAgentContextValue extends LiveAgentPublicValue {
111
111
  startAdoptionSession: (goal: AdoptionGoalMatch) => void;
112
112
  textMode: boolean;
113
113
  setTextModeState: (enabled: boolean) => void;
114
+ launcherBottomPx: number;
115
+ setLauncherBottomPx: (px: number) => void;
116
+ popsDown: boolean;
117
+ panelExpanded: boolean;
118
+ togglePanelExpanded: () => void;
114
119
  }
115
120
  export declare const LiveAgentContext: import("react").Context<LiveAgentContextValue | null>;
@@ -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
+ };
@@ -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,6 +1,6 @@
1
1
  {
2
2
  "name": "@skippr/live-agent-sdk",
3
- "version": "0.47.0",
3
+ "version": "0.49.0",
4
4
  "type": "module",
5
5
  "main": "dist/esm/lib-exports.js",
6
6
  "module": "dist/esm/lib-exports.js",