sestek-component 0.0.4 → 0.0.6

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,9 +1,12 @@
1
1
  import { ClassProp } from 'class-variance-authority/types';
2
+ import { ForwardRefExoticComponent } from 'react';
2
3
  import { FunctionComponent } from 'react';
3
4
  import { JSX } from 'react/jsx-runtime';
4
5
  import { MemoExoticComponent } from 'react';
5
6
  import * as React_2 from 'react';
7
+ import { ReactElement } from 'react';
6
8
  import { ReactNode } from 'react';
9
+ import { RefAttributes } from 'react';
7
10
  import { SVGAttributes } from 'react';
8
11
  import { SVGProps } from 'react';
9
12
  import { VariantProps } from 'class-variance-authority';
@@ -31,6 +34,22 @@ export declare const buttonVariants: (props?: ({
31
34
  size?: "default" | "sm" | "lg" | "icon" | null | undefined;
32
35
  } & ClassProp) | undefined) => string;
33
36
 
37
+ export declare const GenAISupportMoment: ({ id, message, timestamp, }: GenAISupportMomentProps) => JSX.Element;
38
+
39
+ export declare interface GenAISupportMomentProps {
40
+ id: string;
41
+ message: string;
42
+ timestamp: string;
43
+ }
44
+
45
+ export declare const GoodJobMoment: ({ id, message, timestamp, }: GoodJobMomentProps) => JSX.Element;
46
+
47
+ export declare interface GoodJobMomentProps {
48
+ id: string;
49
+ message: string;
50
+ timestamp: string;
51
+ }
52
+
34
53
  export declare const Icon: MemoExoticComponent<typeof IconComponent>;
35
54
 
36
55
  declare function IconComponent({ name, ...props }: IIcon): JSX.Element | null;
@@ -42,18 +61,36 @@ declare const icons: {
42
61
  Square2Stack: FunctionComponent<SVGAttributes<SVGElement>>;
43
62
  Language: FunctionComponent<SVGAttributes<SVGElement>>;
44
63
  HandRaised: FunctionComponent<SVGAttributes<SVGElement>>;
64
+ ChevronDown: FunctionComponent<SVGAttributes<SVGElement>>;
65
+ Robot: FunctionComponent<SVGAttributes<SVGElement>>;
66
+ Done: FunctionComponent<SVGAttributes<SVGElement>>;
67
+ ClappingHands: FunctionComponent<SVGAttributes<SVGElement>>;
68
+ SkullAndCrossbones: FunctionComponent<SVGAttributes<SVGElement>>;
69
+ PoutingFace: FunctionComponent<SVGAttributes<SVGElement>>;
70
+ PountingFace: FunctionComponent<SVGAttributes<SVGElement>>;
71
+ Smiling: FunctionComponent<SVGAttributes<SVGElement>>;
45
72
  };
46
73
 
47
74
  declare interface IIcon extends SVGProps<SVGSVGElement> {
48
75
  name: keyof typeof icons;
49
76
  }
50
77
 
51
- export declare const MessageBubble: ({ sender, message, timestamp, icon, type, onClickAskAI, onClickAskManager, managerReplyTitle, showHelperButton, managerReplyMessage, }: MessageBubbleProps) => ReactNode;
78
+ export declare const LegalThreadMoment: ({ id, message, timestamp, onClickAskGenAI, onClickAskManager, }: LegalThreadMomentProps) => JSX.Element;
79
+
80
+ export declare interface LegalThreadMomentProps {
81
+ id: string;
82
+ message: string;
83
+ timestamp: string;
84
+ onClickAskGenAI: () => void;
85
+ onClickAskManager: () => void;
86
+ }
87
+
88
+ export declare const MessageBubble: ({ sender, message, timestamp, icon, type, onClickAskAI, onClickAskManager, managerReplyTitle, showAskManagerButton, showAskAIButton, managerReplyMessage, }: MessageBubbleProps) => ReactNode;
52
89
 
53
90
  export declare enum MessageBubbleEnum {
54
91
  MESSAGE = "message",
55
92
  REPLY = "reply",
56
- MENAGER_REPLY = "manager-reply",
93
+ MANAGER_REPLY = "manager-reply",
57
94
  AI_REPLY = "ai-reply"
58
95
  }
59
96
 
@@ -67,32 +104,62 @@ export declare interface MessageBubbleProps {
67
104
  onClickAskAI?: () => void;
68
105
  onClickAskManager?: () => void;
69
106
  managerReplyTitle?: ReactNode;
70
- showHelperButton?: boolean;
107
+ showAskAIButton?: boolean;
108
+ showAskManagerButton?: boolean;
71
109
  managerReplyMessage?: ReactNode;
72
110
  }
73
111
 
74
- export declare const MomentItem: ({ title, message, timestamps, icon, tag, showHelperButtons, onClickAskGenAI, onClickAskManager, }: MomentItemProps) => JSX.Element;
112
+ export declare const Moment: ({ items, isDefaultOpen }: MomentProps) => JSX.Element;
113
+
114
+ export declare const MomentItem: ForwardRefExoticComponent<MomentItemProps & RefAttributes<HTMLDivElement>>;
75
115
 
76
116
  export declare interface MomentItemProps {
117
+ id: string;
77
118
  title: string;
78
119
  message: string;
79
- timestamps: string;
120
+ timestamp: string;
80
121
  icon: keyof typeof icons;
81
122
  tag?: ReactNode;
82
123
  showHelperButtons?: boolean;
83
124
  onClickAskGenAI?: () => void;
84
125
  onClickAskManager?: () => void;
126
+ isStacked?: boolean;
127
+ className?: string;
128
+ }
129
+
130
+ export declare type MomentItemType = ReactElement<TaskDoneMomentProps> | ReactElement<GoodJobMomentProps> | ReactElement<LegalThreadMomentProps> | ReactElement<UnhappyCustomerMomentProps> | ReactElement<GenAISupportMomentProps>;
131
+
132
+ export declare interface MomentProps {
133
+ items: ReactElement[];
134
+ isDefaultOpen?: boolean;
85
135
  }
86
136
 
87
137
  export declare const Tab: () => JSX.Element;
88
138
 
89
- export declare const Transcript: ({ isStandalone, messages, transcriptInfo, onClickTranslation, }: TranscriptProps) => JSX.Element;
139
+ export declare const TaskDoneMoment: ({ message, timestamp, id, taskCount, completedTaskCount, }: TaskDoneMomentProps) => JSX.Element;
140
+
141
+ export declare interface TaskDoneMomentProps {
142
+ message: string;
143
+ timestamp: string;
144
+ id: string;
145
+ taskCount: number;
146
+ completedTaskCount: number;
147
+ }
148
+
149
+ export declare const Transcript: ({ isStandalone, messages, onClickTranslation, }: TranscriptProps) => JSX.Element;
90
150
 
91
151
  export declare interface TranscriptProps {
92
152
  isStandalone?: boolean;
93
153
  messages: MessageBubbleProps[];
94
- transcriptInfo?: string;
95
154
  onClickTranslation: () => void;
96
155
  }
97
156
 
157
+ export declare const UnhappyCustomerMoment: ({ id, message, timestamp, }: UnhappyCustomerMomentProps) => JSX.Element;
158
+
159
+ export declare interface UnhappyCustomerMomentProps {
160
+ id: string;
161
+ message: string;
162
+ timestamp: string;
163
+ }
164
+
98
165
  export { }