sestek-component 0.0.11 → 0.0.13
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/index.cjs.js +53 -26
- package/dist/index.es.d.ts +60 -12
- package/dist/index.es.js +6669 -3674
- package/dist/style.css +1 -1
- package/package.json +2 -1
package/dist/index.es.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ import { SVGAttributes } from 'react';
|
|
|
13
13
|
import { SVGProps } from 'react';
|
|
14
14
|
import { VariantProps } from 'class-variance-authority';
|
|
15
15
|
|
|
16
|
-
export declare const AIChat: ({ suggestion, messages, input, onInputChange, onSend, onSuggestionClick, }: AIChatProps) => JSX.Element;
|
|
16
|
+
export declare const AIChat: ({ suggestion, messages, input, showInput, onInputChange, onSend, onSuggestionClick, }: AIChatProps) => JSX.Element;
|
|
17
17
|
|
|
18
18
|
export declare interface AIChatProps {
|
|
19
19
|
input: string;
|
|
@@ -23,6 +23,7 @@ export declare interface AIChatProps {
|
|
|
23
23
|
messages?: MessageBubbleProps[];
|
|
24
24
|
};
|
|
25
25
|
messages?: MessageBubbleProps[];
|
|
26
|
+
showInput?: boolean;
|
|
26
27
|
onSend: (message: string) => void;
|
|
27
28
|
onSuggestionClick?: (message: string) => void;
|
|
28
29
|
}
|
|
@@ -36,17 +37,18 @@ export declare interface AsistantItemProps {
|
|
|
36
37
|
onClick: (id: string) => void;
|
|
37
38
|
}
|
|
38
39
|
|
|
39
|
-
export declare const AskManager: ({ suggestion, messages, input, onInputChange, onSend, }: AskManagerProps) => JSX.Element;
|
|
40
|
+
export declare const AskManager: ({ suggestion, messages, input, showInput, onInputChange, onSend, }: AskManagerProps) => JSX.Element;
|
|
40
41
|
|
|
41
42
|
export declare interface AskManagerProps {
|
|
42
43
|
input: string;
|
|
43
|
-
onInputChange: (value: string) => void;
|
|
44
|
-
onSend: (message: string) => void;
|
|
45
44
|
messages?: MessageBubbleProps[];
|
|
45
|
+
showInput?: boolean;
|
|
46
46
|
suggestion?: {
|
|
47
47
|
items: string[];
|
|
48
48
|
messages?: MessageBubbleProps[];
|
|
49
49
|
};
|
|
50
|
+
onInputChange: (value: string) => void;
|
|
51
|
+
onSend: (message: string) => void;
|
|
50
52
|
}
|
|
51
53
|
|
|
52
54
|
export declare const Assistant: ({ title, steps, isStandalone, isOpen, onOpenChange, onToggleStep, }: AssistantProps) => JSX.Element;
|
|
@@ -98,6 +100,22 @@ export declare interface ChatListProps {
|
|
|
98
100
|
onClick: (id: string) => void;
|
|
99
101
|
}
|
|
100
102
|
|
|
103
|
+
declare interface ConversationSummaryProps {
|
|
104
|
+
icon?: ReactNode;
|
|
105
|
+
title?: string;
|
|
106
|
+
summary: string;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export declare const DefaultMoment: ({ id, title, message, timestamp, icon, }: DefaultMomentProps) => JSX.Element;
|
|
110
|
+
|
|
111
|
+
export declare interface DefaultMomentProps {
|
|
112
|
+
id: string;
|
|
113
|
+
title: string;
|
|
114
|
+
message: string;
|
|
115
|
+
timestamp: string;
|
|
116
|
+
icon?: React.ReactNode;
|
|
117
|
+
}
|
|
118
|
+
|
|
101
119
|
export declare const GenAISupportMoment: ({ id, message, timestamp, }: GenAISupportMomentProps) => JSX.Element;
|
|
102
120
|
|
|
103
121
|
export declare interface GenAISupportMomentProps {
|
|
@@ -152,6 +170,8 @@ declare const icons: {
|
|
|
152
170
|
Logo: FunctionComponent<SVGAttributes<SVGElement>>;
|
|
153
171
|
Cog8Tooth: FunctionComponent<SVGAttributes<SVGElement>>;
|
|
154
172
|
Bell: FunctionComponent<SVGAttributes<SVGElement>>;
|
|
173
|
+
Star: FunctionComponent<SVGAttributes<SVGElement>>;
|
|
174
|
+
Chat: FunctionComponent<SVGAttributes<SVGElement>>;
|
|
155
175
|
};
|
|
156
176
|
|
|
157
177
|
declare interface IIcon extends SVGProps<SVGSVGElement> {
|
|
@@ -209,6 +229,15 @@ export declare interface MessageSendBoxProps extends ComponentProps<"textarea">
|
|
|
209
229
|
onSendClick: () => void;
|
|
210
230
|
}
|
|
211
231
|
|
|
232
|
+
export declare const MobileChat: ({ isOpen, onOpenChange, supportProps, buttonClassName, }: MobileChatProps) => JSX.Element;
|
|
233
|
+
|
|
234
|
+
export declare interface MobileChatProps {
|
|
235
|
+
isOpen: boolean;
|
|
236
|
+
onOpenChange: (value: boolean) => void;
|
|
237
|
+
supportProps: SupportProps;
|
|
238
|
+
buttonClassName?: string;
|
|
239
|
+
}
|
|
240
|
+
|
|
212
241
|
export declare const Modal: ({ content, isOpen, onOpenChange }: ModalProps) => JSX.Element;
|
|
213
242
|
|
|
214
243
|
export declare interface ModalProps {
|
|
@@ -217,7 +246,7 @@ export declare interface ModalProps {
|
|
|
217
246
|
content: ReactNode;
|
|
218
247
|
}
|
|
219
248
|
|
|
220
|
-
export declare const Moment: ({ items, isDefaultOpen }: MomentProps) => JSX.Element;
|
|
249
|
+
export declare const Moment: ({ items, isDefaultOpen, isStandalone, resizableContent, }: MomentProps) => JSX.Element;
|
|
221
250
|
|
|
222
251
|
export declare const MomentItem: ForwardRefExoticComponent<MomentItemProps & RefAttributes<HTMLDivElement>>;
|
|
223
252
|
|
|
@@ -226,7 +255,7 @@ export declare interface MomentItemProps {
|
|
|
226
255
|
title: string;
|
|
227
256
|
message: string;
|
|
228
257
|
timestamp: string;
|
|
229
|
-
icon:
|
|
258
|
+
icon: ReactNode;
|
|
230
259
|
tag?: ReactNode;
|
|
231
260
|
showHelperButtons?: boolean;
|
|
232
261
|
onClickAskGenAI?: () => void;
|
|
@@ -245,14 +274,18 @@ export declare interface MomentItemType {
|
|
|
245
274
|
showHelperButtons?: boolean;
|
|
246
275
|
onClickAskGenAI?: () => void;
|
|
247
276
|
onClickAskManager?: () => void;
|
|
277
|
+
title?: string;
|
|
278
|
+
icon?: React.ReactNode;
|
|
248
279
|
}
|
|
249
280
|
|
|
250
281
|
export declare interface MomentProps {
|
|
251
282
|
items: MomentItemType[];
|
|
252
283
|
isDefaultOpen?: boolean;
|
|
284
|
+
isStandalone?: boolean;
|
|
285
|
+
resizableContent?: React.ReactNode;
|
|
253
286
|
}
|
|
254
287
|
|
|
255
|
-
declare type MomentType = "task-done" | "good-job" | "legal-thread" | "unhappy-customer" | "genai-support";
|
|
288
|
+
declare type MomentType = "task-done" | "good-job" | "legal-thread" | "unhappy-customer" | "genai-support" | "default";
|
|
256
289
|
|
|
257
290
|
export declare interface PersonListProps {
|
|
258
291
|
fullName: string;
|
|
@@ -279,6 +312,17 @@ export declare interface SentimentMeterProps {
|
|
|
279
312
|
rate: number;
|
|
280
313
|
}
|
|
281
314
|
|
|
315
|
+
export declare const Sestek: ({ leftPanel, rightPanel, isOpen, onOpenChange, supportProps, buttonClassName }: SestekProps) => JSX.Element;
|
|
316
|
+
|
|
317
|
+
export declare interface SestekProps {
|
|
318
|
+
leftPanel: ReactNode;
|
|
319
|
+
rightPanel: ReactNode;
|
|
320
|
+
isOpen?: boolean;
|
|
321
|
+
onOpenChange?: (value: boolean) => void;
|
|
322
|
+
supportProps?: SupportProps;
|
|
323
|
+
buttonClassName?: string;
|
|
324
|
+
}
|
|
325
|
+
|
|
282
326
|
declare type SettingItem = {
|
|
283
327
|
type: "switch";
|
|
284
328
|
label: string;
|
|
@@ -323,11 +367,11 @@ export declare interface SidebarProps {
|
|
|
323
367
|
onClickItem: (id: string) => void;
|
|
324
368
|
}
|
|
325
369
|
|
|
326
|
-
export declare const Support: ({ title,
|
|
370
|
+
export declare const Support: ({ title, className, tabs, onClickClose, }: SupportProps) => JSX.Element;
|
|
327
371
|
|
|
328
372
|
export declare interface SupportProps {
|
|
329
|
-
title
|
|
330
|
-
|
|
373
|
+
title?: string;
|
|
374
|
+
tabs: TabProps;
|
|
331
375
|
className?: string;
|
|
332
376
|
onClickClose?: () => void;
|
|
333
377
|
}
|
|
@@ -338,7 +382,7 @@ declare type SwitchProps = {
|
|
|
338
382
|
onCheckedChange?: (checked: boolean) => void;
|
|
339
383
|
};
|
|
340
384
|
|
|
341
|
-
export declare const Tab: ({ items }: TabProps) => JSX.Element;
|
|
385
|
+
export declare const Tab: ({ items, defaultActiveTab, onTabChange }: TabProps) => JSX.Element;
|
|
342
386
|
|
|
343
387
|
declare interface TabItem {
|
|
344
388
|
label: string;
|
|
@@ -346,7 +390,9 @@ declare interface TabItem {
|
|
|
346
390
|
}
|
|
347
391
|
|
|
348
392
|
export declare interface TabProps {
|
|
393
|
+
defaultActiveTab?: string;
|
|
349
394
|
items: TabItem[];
|
|
395
|
+
onTabChange?: (tab: string) => void;
|
|
350
396
|
}
|
|
351
397
|
|
|
352
398
|
export declare const TaskDoneMoment: ({ message, timestamp, id, taskCount, completedTaskCount, }: TaskDoneMomentProps) => JSX.Element;
|
|
@@ -359,12 +405,14 @@ export declare interface TaskDoneMomentProps {
|
|
|
359
405
|
completedTaskCount: number;
|
|
360
406
|
}
|
|
361
407
|
|
|
362
|
-
export declare const Transcript: ({ isStandalone, messages, onClickTranslation, }: TranscriptProps) => JSX.Element;
|
|
408
|
+
export declare const Transcript: ({ isStandalone, messages, onClickTranslation, conversationSummary, isTranslationShown, }: TranscriptProps) => JSX.Element;
|
|
363
409
|
|
|
364
410
|
export declare interface TranscriptProps {
|
|
365
411
|
isStandalone?: boolean;
|
|
366
412
|
messages: MessageBubbleProps[];
|
|
367
413
|
onClickTranslation: () => void;
|
|
414
|
+
conversationSummary?: ConversationSummaryProps;
|
|
415
|
+
isTranslationShown?: boolean;
|
|
368
416
|
}
|
|
369
417
|
|
|
370
418
|
export declare const UnhappyCustomerMoment: ({ id, message, timestamp, }: UnhappyCustomerMomentProps) => JSX.Element;
|