@livechat/design-system-react-components 2.0.0 → 2.1.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.
@@ -0,0 +1,3 @@
1
+ import { InviteAgentsProps } from './types';
2
+
3
+ export declare const InviteAgents: import('react').NamedExoticComponent<InviteAgentsProps>;
@@ -0,0 +1,4 @@
1
+ import { Agent } from './types';
2
+
3
+ export declare const getSortedAgents: (agents: Agent[]) => Agent[];
4
+ export declare const getAvailableAgentsTooltipText: (availableAgentsNumber: number) => string;
@@ -0,0 +1,2 @@
1
+ export { InviteAgents } from './InviteAgents';
2
+ export { type InviteAgentsProps, type Agent } from './types';
@@ -0,0 +1,30 @@
1
+ import { ComponentCoreProps } from '../../utils/types';
2
+
3
+ export interface Agent {
4
+ name: string;
5
+ email: string;
6
+ status: 'available' | 'unavailable' | 'unknown';
7
+ avatar: string;
8
+ }
9
+ export interface InviteAgentsProps extends ComponentCoreProps {
10
+ /**
11
+ * The list of invited agents
12
+ */
13
+ agents: Agent[];
14
+ /**
15
+ * The function to call when the "Set up Chatbot" button is clicked
16
+ */
17
+ onSetUpChatbotClick: () => void;
18
+ /**
19
+ * The function to call when the "Invite Teammate" button is clicked
20
+ */
21
+ onAddTeammateClick: () => void;
22
+ /**
23
+ * Whether the invite button should be animated
24
+ */
25
+ animatedInviteButton?: boolean;
26
+ /**
27
+ * Offset for the tooltip arrow
28
+ */
29
+ tooltipArrowOffset?: number;
30
+ }