@skippr/live-agent-sdk 0.16.0 → 0.18.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 +809 -459
- package/dist/skippr-sdk.css +1 -1
- package/dist/skippr-sdk.js +119 -119
- package/dist/types/components/ChatHeader.d.ts +2 -2
- package/dist/types/components/LiveAgent.d.ts +4 -1
- package/dist/types/components/MinimizedBubble.d.ts +1 -0
- package/dist/types/components/SettingsView.d.ts +5 -0
- package/dist/types/components/SidebarTrigger.d.ts +1 -1
- package/dist/types/context/LiveAgentContext.d.ts +7 -0
- package/dist/types/lib/constants.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
interface ChatHeaderProps {
|
|
2
|
-
|
|
2
|
+
onOpenSettings: () => void;
|
|
3
3
|
}
|
|
4
|
-
export declare function ChatHeader({
|
|
4
|
+
export declare function ChatHeader({ onOpenSettings }: ChatHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -4,8 +4,11 @@ interface LiveAgentProps {
|
|
|
4
4
|
authToken?: string | undefined;
|
|
5
5
|
appKey?: string | undefined;
|
|
6
6
|
userToken?: string | undefined;
|
|
7
|
+
position?: 'left' | 'right' | undefined;
|
|
8
|
+
variant?: 'floating' | 'sidebar' | undefined;
|
|
9
|
+
minimizable?: boolean | undefined;
|
|
7
10
|
defaultOpen?: boolean;
|
|
8
11
|
children?: ReactNode;
|
|
9
12
|
}
|
|
10
|
-
export declare function LiveAgent({ agentId, authToken: authTokenProp, appKey, userToken, defaultOpen, children, }: LiveAgentProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare function LiveAgent({ agentId, authToken: authTokenProp, appKey, userToken, position, variant, minimizable, defaultOpen, children, }: LiveAgentProps): import("react/jsx-runtime").JSX.Element;
|
|
11
14
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function MinimizedBubble(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function SidebarTrigger(): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export declare function SidebarTrigger(): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -8,6 +8,13 @@ export interface LiveAgentPublicValue {
|
|
|
8
8
|
openPanel: () => void;
|
|
9
9
|
closePanel: () => void;
|
|
10
10
|
togglePanel: () => void;
|
|
11
|
+
variant: 'floating' | 'sidebar';
|
|
12
|
+
position: 'left' | 'right';
|
|
13
|
+
setPosition: (position: 'left' | 'right') => void;
|
|
14
|
+
minimizable: boolean;
|
|
15
|
+
isMinimized: boolean;
|
|
16
|
+
expandPanel: () => void;
|
|
17
|
+
minimizePanel: () => void;
|
|
11
18
|
isAuthenticated: boolean;
|
|
12
19
|
isValidating: boolean;
|
|
13
20
|
authError: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SIDEBAR_WIDTH =
|
|
1
|
+
export declare const SIDEBAR_WIDTH = 480;
|