sestek-component 0.0.3 → 0.0.5
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 +1 -1
- package/dist/index.es.d.ts +12 -7
- package/dist/index.es.js +877 -877
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export declare interface AvatarProps {
|
|
|
18
18
|
|
|
19
19
|
export declare const Button: (props: ButtonProps) => JSX.Element;
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
declare interface ButtonProps extends ButtonProps_2 {
|
|
22
22
|
children: ReactNode;
|
|
23
23
|
}
|
|
24
24
|
|
|
@@ -42,18 +42,23 @@ declare const icons: {
|
|
|
42
42
|
Square2Stack: FunctionComponent<SVGAttributes<SVGElement>>;
|
|
43
43
|
Language: FunctionComponent<SVGAttributes<SVGElement>>;
|
|
44
44
|
HandRaised: FunctionComponent<SVGAttributes<SVGElement>>;
|
|
45
|
+
PountingFace: FunctionComponent<SVGAttributes<SVGElement>>;
|
|
46
|
+
SkullAndCrossbones: FunctionComponent<SVGAttributes<SVGElement>>;
|
|
47
|
+
Done: FunctionComponent<SVGAttributes<SVGElement>>;
|
|
48
|
+
ClappingHands: FunctionComponent<SVGAttributes<SVGElement>>;
|
|
49
|
+
Smiling: FunctionComponent<SVGAttributes<SVGElement>>;
|
|
45
50
|
};
|
|
46
51
|
|
|
47
52
|
declare interface IIcon extends SVGProps<SVGSVGElement> {
|
|
48
53
|
name: keyof typeof icons;
|
|
49
54
|
}
|
|
50
55
|
|
|
51
|
-
export declare const MessageBubble: ({ sender, message, timestamp, icon, type, onClickAskAI, onClickAskManager, managerReplyTitle,
|
|
56
|
+
export declare const MessageBubble: ({ sender, message, timestamp, icon, type, onClickAskAI, onClickAskManager, managerReplyTitle, showAskManagerButton, showAskAIButton, managerReplyMessage, }: MessageBubbleProps) => ReactNode;
|
|
52
57
|
|
|
53
58
|
export declare enum MessageBubbleEnum {
|
|
54
59
|
MESSAGE = "message",
|
|
55
60
|
REPLY = "reply",
|
|
56
|
-
|
|
61
|
+
MANAGER_REPLY = "manager-reply",
|
|
57
62
|
AI_REPLY = "ai-reply"
|
|
58
63
|
}
|
|
59
64
|
|
|
@@ -63,11 +68,12 @@ export declare interface MessageBubbleProps {
|
|
|
63
68
|
message: ReactNode | string;
|
|
64
69
|
timestamp: string;
|
|
65
70
|
icon?: ReactNode;
|
|
66
|
-
type: MessageBubbleEnum;
|
|
71
|
+
type: keyof typeof MessageBubbleEnum;
|
|
67
72
|
onClickAskAI?: () => void;
|
|
68
73
|
onClickAskManager?: () => void;
|
|
69
74
|
managerReplyTitle?: ReactNode;
|
|
70
|
-
|
|
75
|
+
showAskAIButton?: boolean;
|
|
76
|
+
showAskManagerButton?: boolean;
|
|
71
77
|
managerReplyMessage?: ReactNode;
|
|
72
78
|
}
|
|
73
79
|
|
|
@@ -86,12 +92,11 @@ export declare interface MomentItemProps {
|
|
|
86
92
|
|
|
87
93
|
export declare const Tab: () => JSX.Element;
|
|
88
94
|
|
|
89
|
-
export declare const Transcript: ({ isStandalone, messages,
|
|
95
|
+
export declare const Transcript: ({ isStandalone, messages, onClickTranslation, }: TranscriptProps) => JSX.Element;
|
|
90
96
|
|
|
91
97
|
export declare interface TranscriptProps {
|
|
92
98
|
isStandalone?: boolean;
|
|
93
99
|
messages: MessageBubbleProps[];
|
|
94
|
-
transcriptInfo?: string;
|
|
95
100
|
onClickTranslation: () => void;
|
|
96
101
|
}
|
|
97
102
|
|