@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.
- package/dist/esm/lib-exports.js +357 -109
- package/dist/skippr-sdk.css +1 -1
- package/dist/skippr-sdk.js +152 -152
- package/dist/types/components/HighlightOverlay.d.ts +1 -0
- package/dist/types/context/LiveAgentContext.d.ts +5 -0
- package/dist/types/hooks/useLauncherDrag.d.ts +7 -0
- package/dist/types/lib/launcher.d.ts +8 -0
- package/package.json +1 -1
|
@@ -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;
|