@skippr/live-agent-sdk 0.64.0 → 0.66.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';
|
|
@@ -117,9 +118,11 @@ export interface LiveAgentContextValue extends LiveAgentPublicValue {
|
|
|
117
118
|
setTextModeState: (enabled: boolean) => void;
|
|
118
119
|
launcherBottomPx: number;
|
|
119
120
|
setLauncherBottomPx: (px: number) => void;
|
|
121
|
+
commitLauncherDrop: (target: LauncherDropTarget) => void;
|
|
120
122
|
popsDown: boolean;
|
|
121
123
|
panelExpanded: boolean;
|
|
122
124
|
togglePanelExpanded: () => void;
|
|
123
125
|
panelRef: React.RefObject<HTMLDivElement | null>;
|
|
126
|
+
controlBarRef: React.RefObject<HTMLDivElement | null>;
|
|
124
127
|
}
|
|
125
128
|
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 {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skippr/live-agent-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.66.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/esm/lib-exports.js",
|
|
6
6
|
"module": "dist/esm/lib-exports.js",
|
|
@@ -8,7 +8,9 @@
|
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
10
|
"types": "./dist/types/lib-exports.d.ts",
|
|
11
|
-
"import": "./dist/esm/lib-exports.js"
|
|
11
|
+
"import": "./dist/esm/lib-exports.js",
|
|
12
|
+
"require": "./dist/esm/lib-exports.js",
|
|
13
|
+
"default": "./dist/esm/lib-exports.js"
|
|
12
14
|
},
|
|
13
15
|
"./styles": "./dist/skippr-sdk.css",
|
|
14
16
|
"./widget": "./dist/skippr-sdk.js"
|