@skippr/live-agent-sdk 0.73.0 → 0.74.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 +26 -11
- package/dist/skippr-sdk.js +113 -113
- package/dist/types/components/LiveAgent.d.ts +2 -0
- package/dist/types/lib/launcher.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
import { type AgentControls } from '../context/LiveAgentContext';
|
|
3
3
|
import { CAPTURE_MODE } from '../lib/constants';
|
|
4
|
+
import { type VerticalAlign } from '../lib/launcher';
|
|
4
5
|
interface LiveAgentBaseProps {
|
|
5
6
|
agentId?: string | undefined;
|
|
6
7
|
authToken?: string | undefined;
|
|
@@ -8,6 +9,7 @@ interface LiveAgentBaseProps {
|
|
|
8
9
|
getUserToken?: (() => Promise<string>) | undefined;
|
|
9
10
|
userToken?: string | undefined;
|
|
10
11
|
position?: 'left' | 'right' | undefined;
|
|
12
|
+
verticalAlign?: VerticalAlign | undefined;
|
|
11
13
|
variant?: 'floating' | 'sidebar' | undefined;
|
|
12
14
|
minimizable?: boolean | undefined;
|
|
13
15
|
defaultOpen?: boolean;
|
|
@@ -6,4 +6,6 @@ export declare const TRIGGER_HEIGHT_PX = 48;
|
|
|
6
6
|
export declare const IDLE_TRIGGER_CLEARANCE_PX: number;
|
|
7
7
|
export declare function triggerBottomPx(launcherBottomPx: number, popsDown: boolean): number;
|
|
8
8
|
export declare function clampLauncherBottom(px: number): number;
|
|
9
|
+
export type VerticalAlign = 'top' | 'middle' | 'bottom';
|
|
10
|
+
export declare function verticalAlignToBottomPx(align: VerticalAlign): number;
|
|
9
11
|
export declare function launcherPopsDown(bottomPx: number): boolean;
|