@zohoim/chat-components 0.0.8 → 0.0.11
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/es/ArticleBubble/ArticleBubble.js +19 -11
- package/es/ArticleBubble/css/ArticleBubble.module.css +39 -0
- package/es/AttachmentBubble/AttachmentBubble.js +12 -11
- package/es/AttachmentBubble/css/AttachmentBubble.module.css +12 -5
- package/es/AttachmentBubbleInfo/css/AttachmentBubbleInfo.module.css +9 -2
- package/es/Audio/css/Audio.module.css +4 -0
- package/es/AudioBubble/css/AudioBubble.module.css +1 -1
- package/es/Fonts/puviFont.module.css +61 -0
- package/es/LocationBubble/LocationBubble.js +17 -12
- package/es/LocationBubble/css/LocationBubble.module.css +33 -0
- package/es/Message/Message.js +3 -3
- package/es/MessageActionsMore/css/MessageActionsMore.module.css +1 -0
- package/es/MessageAvatar/css/MessageAvatar.module.css +3 -3
- package/es/MessageBox/css/MessageBox.module.css +5 -2
- package/es/MoreActionItem/MoreActionItem.js +1 -0
- package/es/MoreActionItem/css/MoreActionItem.module.css +4 -0
- package/es/ReplyBubble/ReplyBubble.js +18 -2
- package/es/ReplyBubble/props/defaultProps.js +4 -1
- package/es/ReplyBubble/props/propTypes.js +9 -1
- package/es/ReplyBubbleContent/ReplyBubbleContent.js +56 -0
- package/es/ReplyBubbleContent/css/ReplyBubbleContent.module.css +50 -0
- package/es/ReplyBubbleContent/css/cssJSLogic.js +22 -0
- package/es/ReplyBubbleContent/index.js +1 -0
- package/es/ReplyBubbleContent/props/defaultProps.js +6 -0
- package/es/ReplyBubbleContent/props/propTypes.js +9 -0
- package/es/ReplyBubbleHeader/ReplyBubbleHeader.js +6 -2
- package/es/ReplyBubbleHeader/css/ReplyBubbleHeader.module.css +4 -0
- package/es/ReplyBubbleHeader/props/defaultProps.js +1 -1
- package/es/TextBubble/TextBubble.js +10 -10
- package/es/TextBubble/css/TextBubble.module.css +5 -1
- package/es/Theme/ThemeWrapper.js +25 -19
- package/es/Theme/desk/commonDeskColorVariable.js +3 -1
- package/es/Theme/desk/dark/blueTheme.js +23 -11
- package/es/Theme/desk/dark/commonColorVariable.js +5 -5
- package/es/Theme/desk/dark/greenTheme.js +22 -11
- package/es/Theme/desk/dark/orangeTheme.js +13 -2
- package/es/Theme/desk/dark/redTheme.js +22 -11
- package/es/Theme/desk/dark/yellowTheme.js +22 -11
- package/es/Theme/desk/light/blueTheme.js +25 -12
- package/es/Theme/desk/light/commonColorVariable.js +2 -1
- package/es/Theme/desk/light/greenTheme.js +9 -2
- package/es/Theme/desk/light/orangeTheme.js +17 -10
- package/es/Theme/desk/light/redTheme.js +17 -10
- package/es/Theme/desk/light/yellowTheme.js +17 -10
- package/es/Theme/desk/pureDark/blueTheme.js +21 -10
- package/es/Theme/desk/pureDark/commonColorVariable.js +2 -1
- package/es/Theme/desk/pureDark/greenTheme.js +21 -10
- package/es/Theme/desk/pureDark/orangeTheme.js +21 -10
- package/es/Theme/desk/pureDark/redTheme.js +21 -10
- package/es/Theme/desk/pureDark/yellowTheme.js +21 -10
- package/es/VideoBubble/css/VideoBubble.module.css +1 -1
- package/es/icons/factory/common/article.svg +4 -0
- package/es/icons/factory/common/quote.svg +1 -0
- package/es/icons/iconSrc/common/Article.js +17 -0
- package/es/icons/iconSrc/common/Quote.js +16 -0
- package/es/icons/iconSrc/common/index.js +2 -0
- package/es/{IMArticleBubble → im/IMArticleBubble}/IMArticleBubble.js +2 -2
- package/es/{IMAttachmentBubble → im/IMAttachmentBubble}/IMAttachmentBubble.js +2 -2
- package/es/{IMAttachmentIcon → im/IMAttachmentIcon}/IMAttachmentIcon.js +17 -17
- package/es/{IMAudioBubble → im/IMAudioBubble}/IMAudioBubble.js +2 -2
- package/es/im/IMAudioBubble/css/IMAudioBubble.module.css +8 -0
- package/es/{IMAutoMessageInfo → im/IMAutoMessageInfo}/IMAutoMessageInfo.js +1 -1
- package/es/{IMDateTime → im/IMDateTime}/IMDateTime.js +1 -1
- package/es/im/IMDateTime/css/IMDateTime.module.css +5 -0
- package/es/{IMImageBubble → im/IMImageBubble}/IMImageBubble.js +2 -2
- package/es/{IMIntegrationIcon → im/IMIntegrationIcon}/IMIntegrationIcon.js +7 -7
- package/es/{IMLocationBubble → im/IMLocationBubble}/IMLocationBubble.js +2 -2
- package/es/{IMMessage → im/IMMessage}/IMMessage.js +18 -12
- package/es/{IMMessage → im/IMMessage}/props/propTypes.js +9 -6
- package/es/{IMMessageActions → im/IMMessageActions}/IMMessageActions.js +5 -5
- package/es/{IMMessageActions → im/IMMessageActions}/css/IMMessageActions.module.css +8 -0
- package/es/{IMMessageAvatar → im/IMMessageAvatar}/IMMessageAvatar.js +1 -1
- package/es/{IMMessageContent → im/IMMessageContent}/IMMessageContent.js +27 -22
- package/es/{IMMessageContent → im/IMMessageContent}/props/propTypes.js +3 -1
- package/es/{IMMessageStatus → im/IMMessageStatus}/IMMessageStatus.js +4 -4
- package/es/im/IMReplyBubble/IMReplyBubble.js +87 -0
- package/es/im/IMReplyBubble/css/IMReplyBubble.module.css +24 -0
- package/es/im/IMReplyBubble/props/defaultProps.js +9 -0
- package/es/im/IMReplyBubble/props/propTypes.js +22 -0
- package/es/{IMTextBubble → im/IMTextBubble}/IMTextBubble.js +4 -3
- package/es/{IMTicketLink → im/IMTicketLink}/IMTicketLink.js +1 -1
- package/es/{IMTicketLink → im/IMTicketLink}/css/IMTicketLink.module.css +4 -1
- package/es/{IMVideoBubble → im/IMVideoBubble}/IMVideoBubble.js +2 -2
- package/es/im/index.js +20 -0
- package/es/index.js +31 -49
- package/package.json +4 -4
- package/es/IMAudioBubble/css/IMAudioBubble.module.css +0 -8
- package/es/IMDateTime/css/IMDateTime.module.css +0 -5
- package/es/IMReplyBubble/IMReplyBubble.js +0 -37
- package/es/IMReplyBubble/css/IMReplyBubble.module.css +0 -0
- package/es/IMReplyBubble/props/defaultProps.js +0 -6
- package/es/IMReplyBubble/props/propTypes.js +0 -6
- /package/es/{IMArticleBubble → im/IMArticleBubble}/css/IMArticleBubble.module.css +0 -0
- /package/es/{IMArticleBubble → im/IMArticleBubble}/css/cssJSLogic.js +0 -0
- /package/es/{IMArticleBubble → im/IMArticleBubble}/index.js +0 -0
- /package/es/{IMArticleBubble → im/IMArticleBubble}/props/defaultProps.js +0 -0
- /package/es/{IMArticleBubble → im/IMArticleBubble}/props/propTypes.js +0 -0
- /package/es/{IMAttachmentBubble → im/IMAttachmentBubble}/css/IMAttachmentBubble.module.css +0 -0
- /package/es/{IMAttachmentBubble → im/IMAttachmentBubble}/css/cssJSLogic.js +0 -0
- /package/es/{IMAttachmentBubble → im/IMAttachmentBubble}/index.js +0 -0
- /package/es/{IMAttachmentBubble → im/IMAttachmentBubble}/props/defaultProps.js +0 -0
- /package/es/{IMAttachmentBubble → im/IMAttachmentBubble}/props/propTypes.js +0 -0
- /package/es/{IMAttachmentIcon → im/IMAttachmentIcon}/css/IMAttachmentIcon.module.css +0 -0
- /package/es/{IMAttachmentIcon → im/IMAttachmentIcon}/css/cssJSLogic.js +0 -0
- /package/es/{IMAttachmentIcon → im/IMAttachmentIcon}/index.js +0 -0
- /package/es/{IMAttachmentIcon → im/IMAttachmentIcon}/props/defaultProps.js +0 -0
- /package/es/{IMAttachmentIcon → im/IMAttachmentIcon}/props/propTypes.js +0 -0
- /package/es/{IMAudioBubble → im/IMAudioBubble}/css/cssJSLogic.js +0 -0
- /package/es/{IMAudioBubble → im/IMAudioBubble}/index.js +0 -0
- /package/es/{IMAudioBubble → im/IMAudioBubble}/props/defaultProps.js +0 -0
- /package/es/{IMAudioBubble → im/IMAudioBubble}/props/propTypes.js +0 -0
- /package/es/{IMAutoMessageInfo → im/IMAutoMessageInfo}/css/IMAutoMessageInfo.module.css +0 -0
- /package/es/{IMAutoMessageInfo → im/IMAutoMessageInfo}/css/cssJSLogic.js +0 -0
- /package/es/{IMAutoMessageInfo → im/IMAutoMessageInfo}/index.js +0 -0
- /package/es/{IMAutoMessageInfo → im/IMAutoMessageInfo}/props/defaultProps.js +0 -0
- /package/es/{IMAutoMessageInfo → im/IMAutoMessageInfo}/props/propTypes.js +0 -0
- /package/es/{IMDateTime → im/IMDateTime}/css/cssJSLogic.js +0 -0
- /package/es/{IMDateTime → im/IMDateTime}/index.js +0 -0
- /package/es/{IMDateTime → im/IMDateTime}/props/defaultProps.js +0 -0
- /package/es/{IMDateTime → im/IMDateTime}/props/propTypes.js +0 -0
- /package/es/{IMImageBubble → im/IMImageBubble}/css/IMImageBubble.module.css +0 -0
- /package/es/{IMImageBubble → im/IMImageBubble}/css/cssJSLogic.js +0 -0
- /package/es/{IMImageBubble → im/IMImageBubble}/index.js +0 -0
- /package/es/{IMImageBubble → im/IMImageBubble}/props/defaultProps.js +0 -0
- /package/es/{IMImageBubble → im/IMImageBubble}/props/propTypes.js +0 -0
- /package/es/{IMInfoBubble → im/IMInfoBubble}/IMInfoBubble.js +0 -0
- /package/es/{IMInfoBubble → im/IMInfoBubble}/css/IMInfoBubble.module.css +0 -0
- /package/es/{IMInfoBubble → im/IMInfoBubble}/css/cssJSLogic.js +0 -0
- /package/es/{IMInfoBubble → im/IMInfoBubble}/index.js +0 -0
- /package/es/{IMInfoBubble → im/IMInfoBubble}/props/defaultProps.js +0 -0
- /package/es/{IMInfoBubble → im/IMInfoBubble}/props/propTypes.js +0 -0
- /package/es/{IMIntegrationIcon → im/IMIntegrationIcon}/css/IMIntegrationIcon.module.css +0 -0
- /package/es/{IMIntegrationIcon → im/IMIntegrationIcon}/css/cssJSLogic.js +0 -0
- /package/es/{IMIntegrationIcon → im/IMIntegrationIcon}/index.js +0 -0
- /package/es/{IMIntegrationIcon → im/IMIntegrationIcon}/props/defaultProps.js +0 -0
- /package/es/{IMIntegrationIcon → im/IMIntegrationIcon}/props/propConstants.js +0 -0
- /package/es/{IMIntegrationIcon → im/IMIntegrationIcon}/props/propTypes.js +0 -0
- /package/es/{IMLocationBubble → im/IMLocationBubble}/css/IMLocationBubble.module.css +0 -0
- /package/es/{IMLocationBubble → im/IMLocationBubble}/css/cssJSLogic.js +0 -0
- /package/es/{IMLocationBubble → im/IMLocationBubble}/index.js +0 -0
- /package/es/{IMLocationBubble → im/IMLocationBubble}/props/defaultProps.js +0 -0
- /package/es/{IMLocationBubble → im/IMLocationBubble}/props/propTypes.js +0 -0
- /package/es/{IMMessage → im/IMMessage}/css/IMMessage.module.css +0 -0
- /package/es/{IMMessage → im/IMMessage}/css/cssJSLogic.js +0 -0
- /package/es/{IMMessage → im/IMMessage}/index.js +0 -0
- /package/es/{IMMessage → im/IMMessage}/props/defaultProps.js +0 -0
- /package/es/{IMMessage → im/IMMessage}/renderChild/renderMessage.js +0 -0
- /package/es/{IMMessage → im/IMMessage}/renderChild/renderMessageActions.js +0 -0
- /package/es/{IMMessage → im/IMMessage}/renderChild/renderMessageBox.js +0 -0
- /package/es/{IMMessage → im/IMMessage}/renderChild/renderMessageBoxFooter.js +0 -0
- /package/es/{IMMessage → im/IMMessage}/renderChild/renderMessageFooter.js +0 -0
- /package/es/{IMMessage → im/IMMessage}/renderChild/renderMessageHeader.js +0 -0
- /package/es/{IMMessage → im/IMMessage}/renderChild/renderMessageOwner.js +0 -0
- /package/es/{IMMessage → im/IMMessage}/renderChild/renderMessageStatus.js +0 -0
- /package/es/{IMMessageActions → im/IMMessageActions}/css/cssJSLogic.js +0 -0
- /package/es/{IMMessageActions → im/IMMessageActions}/index.js +0 -0
- /package/es/{IMMessageActions → im/IMMessageActions}/props/defaultProps.js +0 -0
- /package/es/{IMMessageActions → im/IMMessageActions}/props/propTypes.js +0 -0
- /package/es/{IMMessageAvatar → im/IMMessageAvatar}/css/IMMessageAvatar.module.css +0 -0
- /package/es/{IMMessageAvatar → im/IMMessageAvatar}/css/cssJSLogic.js +0 -0
- /package/es/{IMMessageAvatar → im/IMMessageAvatar}/index.js +0 -0
- /package/es/{IMMessageAvatar → im/IMMessageAvatar}/props/defaultProps.js +0 -0
- /package/es/{IMMessageAvatar → im/IMMessageAvatar}/props/propTypes.js +0 -0
- /package/es/{IMMessageContent → im/IMMessageContent}/css/IMMessageContent.module.css +0 -0
- /package/es/{IMMessageContent → im/IMMessageContent}/css/cssJSLogic.js +0 -0
- /package/es/{IMMessageContent → im/IMMessageContent}/index.js +0 -0
- /package/es/{IMMessageContent → im/IMMessageContent}/props/defaultProps.js +0 -0
- /package/es/{IMMessageMeta → im/IMMessageMeta}/IMMessageMeta.js +0 -0
- /package/es/{IMMessageMeta → im/IMMessageMeta}/css/IMMessageMeta.module.css +0 -0
- /package/es/{IMMessageMeta → im/IMMessageMeta}/css/cssJSLogic.js +0 -0
- /package/es/{IMMessageMeta → im/IMMessageMeta}/index.js +0 -0
- /package/es/{IMMessageMeta → im/IMMessageMeta}/props/defaultProps.js +0 -0
- /package/es/{IMMessageMeta → im/IMMessageMeta}/props/propTypes.js +0 -0
- /package/es/{IMMessageStatus → im/IMMessageStatus}/css/IMMessageStatus.module.css +0 -0
- /package/es/{IMMessageStatus → im/IMMessageStatus}/css/cssJSLogic.js +0 -0
- /package/es/{IMMessageStatus → im/IMMessageStatus}/index.js +0 -0
- /package/es/{IMMessageStatus → im/IMMessageStatus}/props/defaultProps.js +0 -0
- /package/es/{IMMessageStatus → im/IMMessageStatus}/props/propTypes.js +0 -0
- /package/es/{IMReplyBubble → im/IMReplyBubble}/css/cssJSLogic.js +0 -0
- /package/es/{IMReplyBubble → im/IMReplyBubble}/index.js +0 -0
- /package/es/{IMTextBubble → im/IMTextBubble}/css/IMTextBubble.module.css +0 -0
- /package/es/{IMTextBubble → im/IMTextBubble}/css/cssJSLogic.js +0 -0
- /package/es/{IMTextBubble → im/IMTextBubble}/index.js +0 -0
- /package/es/{IMTextBubble → im/IMTextBubble}/props/defaultProps.js +0 -0
- /package/es/{IMTextBubble → im/IMTextBubble}/props/propTypes.js +0 -0
- /package/es/{IMTicketLink → im/IMTicketLink}/css/cssJSLogic.js +0 -0
- /package/es/{IMTicketLink → im/IMTicketLink}/index.js +0 -0
- /package/es/{IMTicketLink → im/IMTicketLink}/props/defaultProps.js +0 -0
- /package/es/{IMTicketLink → im/IMTicketLink}/props/propTypes.js +0 -0
- /package/es/{IMVideoBubble → im/IMVideoBubble}/css/IMVideoBubble.module.css +0 -0
- /package/es/{IMVideoBubble → im/IMVideoBubble}/css/cssJSLogic.js +0 -0
- /package/es/{IMVideoBubble → im/IMVideoBubble}/index.js +0 -0
- /package/es/{IMVideoBubble → im/IMVideoBubble}/props/defaultProps.js +0 -0
- /package/es/{IMVideoBubble → im/IMVideoBubble}/props/propTypes.js +0 -0
|
@@ -1,30 +1,37 @@
|
|
|
1
1
|
/* eslint-disable camelcase */
|
|
2
|
-
import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor } from
|
|
2
|
+
import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor, messagetextColor } from "./commonColorVariable.js";
|
|
3
3
|
import { imIntegrationIcon } from "../commonDeskColorVariable.js";
|
|
4
4
|
export default {
|
|
5
|
-
library:
|
|
5
|
+
library: "chat_components",
|
|
6
6
|
variables: {
|
|
7
7
|
messageBubble: {
|
|
8
8
|
active_bg_color: bubbleActiveBgColor,
|
|
9
|
-
messageBox_footer_text_color:
|
|
9
|
+
messageBox_footer_text_color: "#5a616f"
|
|
10
10
|
},
|
|
11
11
|
messageBox: {
|
|
12
12
|
incoming_bg_color: incomingBubbleBgColor,
|
|
13
|
-
outgoing_bg_color:
|
|
14
|
-
bg_color:
|
|
15
|
-
failed_bg_color:
|
|
16
|
-
text_color:
|
|
13
|
+
outgoing_bg_color: "#fdf8e9",
|
|
14
|
+
bg_color: "#f1f7fe",
|
|
15
|
+
failed_bg_color: "#fcebeb",
|
|
16
|
+
text_color: messagetextColor
|
|
17
17
|
},
|
|
18
18
|
actionIcon: {
|
|
19
19
|
color: actionIconColor,
|
|
20
|
-
bg_color:
|
|
21
|
-
border_color:
|
|
20
|
+
bg_color: "#fdf8e9",
|
|
21
|
+
border_color: "#f6e3a7"
|
|
22
22
|
},
|
|
23
23
|
imIntegrationIcon,
|
|
24
24
|
messageStatus: {
|
|
25
25
|
send_color: messageStatusSendColor,
|
|
26
|
-
read_color:
|
|
26
|
+
read_color: "#b68c07",
|
|
27
27
|
failed_color: messageStatusFailedColor
|
|
28
|
+
},
|
|
29
|
+
attachmentBubble: {
|
|
30
|
+
bg_color: "#fff",
|
|
31
|
+
border_color: "#ebf0f5"
|
|
32
|
+
},
|
|
33
|
+
imTicketLink: {
|
|
34
|
+
color: "#b68c07"
|
|
28
35
|
}
|
|
29
36
|
}
|
|
30
37
|
};
|
|
@@ -1,30 +1,41 @@
|
|
|
1
1
|
/* eslint-disable camelcase */
|
|
2
|
-
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor } from
|
|
3
|
-
import { imIntegrationIcon } from "../commonDeskColorVariable.js";
|
|
2
|
+
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor } from "./commonColorVariable.js";
|
|
3
|
+
import { imIntegrationIcon, messagetextColor } from "../commonDeskColorVariable.js";
|
|
4
4
|
export default {
|
|
5
|
-
library:
|
|
5
|
+
library: "chat_components",
|
|
6
6
|
variables: {
|
|
7
7
|
messageBubble: {
|
|
8
8
|
active_bg_color: bubbleActiveBgColor,
|
|
9
|
-
messageBox_footer_text_color:
|
|
9
|
+
messageBox_footer_text_color: "#5a616f"
|
|
10
10
|
},
|
|
11
11
|
messageBox: {
|
|
12
12
|
incoming_bg_color: incomingBubbleBgColor,
|
|
13
13
|
outgoing_bg_color: outgoingBubbleBgColor,
|
|
14
|
-
bg_color:
|
|
15
|
-
failed_bg_color:
|
|
16
|
-
text_color:
|
|
14
|
+
bg_color: "#f1f7fe",
|
|
15
|
+
failed_bg_color: "#fcebeb",
|
|
16
|
+
text_color: messagetextColor
|
|
17
17
|
},
|
|
18
18
|
actionIcon: {
|
|
19
19
|
color: actionIconColor,
|
|
20
|
-
bg_color:
|
|
21
|
-
border_color:
|
|
20
|
+
bg_color: "#252d37",
|
|
21
|
+
border_color: "#2c4664"
|
|
22
22
|
},
|
|
23
23
|
imIntegrationIcon,
|
|
24
24
|
messageStatus: {
|
|
25
25
|
send_color: messageStatusSendColor,
|
|
26
|
-
read_color:
|
|
26
|
+
read_color: "#479dff",
|
|
27
27
|
failed_color: messageStatusFailedColor
|
|
28
|
+
},
|
|
29
|
+
attachmentBubbleInfo: {
|
|
30
|
+
fileName_color: "#e2e4e6",
|
|
31
|
+
fileSize_color: "#788190"
|
|
32
|
+
},
|
|
33
|
+
attachmentBubble: {
|
|
34
|
+
bg_color: "#212121",
|
|
35
|
+
border_color: "#161515"
|
|
36
|
+
},
|
|
37
|
+
imTicketLink: {
|
|
38
|
+
color: "#479dff"
|
|
28
39
|
}
|
|
29
40
|
}
|
|
30
41
|
};
|
|
@@ -3,4 +3,5 @@ export const outgoingBubbleBgColor = '#2e2e2e';
|
|
|
3
3
|
export const bubbleActiveBgColor = '#202821';
|
|
4
4
|
export const actionIconColor = '#e2e4e6';
|
|
5
5
|
export const messageStatusSendColor = '#61667a';
|
|
6
|
-
export const messageStatusFailedColor = '#de3535';
|
|
6
|
+
export const messageStatusFailedColor = '#de3535';
|
|
7
|
+
export const messagetextColor = "#e2e4e6";
|
|
@@ -1,30 +1,41 @@
|
|
|
1
1
|
/* eslint-disable camelcase */
|
|
2
|
-
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor } from
|
|
3
|
-
import { imIntegrationIcon } from "../commonDeskColorVariable.js";
|
|
2
|
+
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor } from "./commonColorVariable.js";
|
|
3
|
+
import { imIntegrationIcon, messagetextColor } from "../commonDeskColorVariable.js";
|
|
4
4
|
export default {
|
|
5
|
-
library:
|
|
5
|
+
library: "chat_components",
|
|
6
6
|
variables: {
|
|
7
7
|
messageBubble: {
|
|
8
8
|
active_bg_color: bubbleActiveBgColor,
|
|
9
|
-
messageBox_footer_text_color:
|
|
9
|
+
messageBox_footer_text_color: "#5a616f"
|
|
10
10
|
},
|
|
11
11
|
messageBox: {
|
|
12
12
|
incoming_bg_color: incomingBubbleBgColor,
|
|
13
13
|
outgoing_bg_color: outgoingBubbleBgColor,
|
|
14
|
-
bg_color:
|
|
15
|
-
failed_bg_color:
|
|
16
|
-
text_color:
|
|
14
|
+
bg_color: "#f1f7fe",
|
|
15
|
+
failed_bg_color: "#fcebeb",
|
|
16
|
+
text_color: messagetextColor
|
|
17
17
|
},
|
|
18
18
|
actionIcon: {
|
|
19
19
|
color: actionIconColor,
|
|
20
|
-
bg_color:
|
|
21
|
-
border_color:
|
|
20
|
+
bg_color: "#252e27",
|
|
21
|
+
border_color: "#2c4732"
|
|
22
22
|
},
|
|
23
23
|
imIntegrationIcon,
|
|
24
24
|
messageStatus: {
|
|
25
25
|
send_color: messageStatusSendColor,
|
|
26
|
-
read_color:
|
|
26
|
+
read_color: "#45a159",
|
|
27
27
|
failed_color: messageStatusFailedColor
|
|
28
|
+
},
|
|
29
|
+
attachmentBubbleInfo: {
|
|
30
|
+
fileName_color: "#e2e4e6",
|
|
31
|
+
fileSize_color: "#788190"
|
|
32
|
+
},
|
|
33
|
+
attachmentBubble: {
|
|
34
|
+
bg_color: "#212121",
|
|
35
|
+
border_color: "#161515"
|
|
36
|
+
},
|
|
37
|
+
imTicketLink: {
|
|
38
|
+
color: "#45a159"
|
|
28
39
|
}
|
|
29
40
|
}
|
|
30
41
|
};
|
|
@@ -1,30 +1,41 @@
|
|
|
1
1
|
/* eslint-disable camelcase */
|
|
2
|
-
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor } from
|
|
3
|
-
import { imIntegrationIcon } from "../commonDeskColorVariable.js";
|
|
2
|
+
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor } from "./commonColorVariable.js";
|
|
3
|
+
import { imIntegrationIcon, messagetextColor } from "../commonDeskColorVariable.js";
|
|
4
4
|
export default {
|
|
5
|
-
library:
|
|
5
|
+
library: "chat_components",
|
|
6
6
|
variables: {
|
|
7
7
|
messageBubble: {
|
|
8
8
|
active_bg_color: bubbleActiveBgColor,
|
|
9
|
-
messageBox_footer_text_color:
|
|
9
|
+
messageBox_footer_text_color: "#5a616f"
|
|
10
10
|
},
|
|
11
11
|
messageBox: {
|
|
12
12
|
incoming_bg_color: incomingBubbleBgColor,
|
|
13
13
|
outgoing_bg_color: outgoingBubbleBgColor,
|
|
14
|
-
bg_color:
|
|
15
|
-
failed_bg_color:
|
|
16
|
-
text_color:
|
|
14
|
+
bg_color: "#f1f7fe",
|
|
15
|
+
failed_bg_color: "#fcebeb",
|
|
16
|
+
text_color: messagetextColor
|
|
17
17
|
},
|
|
18
18
|
actionIcon: {
|
|
19
19
|
color: actionIconColor,
|
|
20
|
-
bg_color:
|
|
21
|
-
border_color:
|
|
20
|
+
bg_color: "#312821",
|
|
21
|
+
border_color: "#4d3421"
|
|
22
22
|
},
|
|
23
23
|
imIntegrationIcon,
|
|
24
24
|
messageStatus: {
|
|
25
25
|
send_color: messageStatusSendColor,
|
|
26
|
-
read_color:
|
|
26
|
+
read_color: "#ff801f",
|
|
27
27
|
failed_color: messageStatusFailedColor
|
|
28
|
+
},
|
|
29
|
+
attachmentBubbleInfo: {
|
|
30
|
+
fileName_color: "#e2e4e6",
|
|
31
|
+
fileSize_color: "#788190"
|
|
32
|
+
},
|
|
33
|
+
attachmentBubble: {
|
|
34
|
+
bg_color: "#212121",
|
|
35
|
+
border_color: "#161515"
|
|
36
|
+
},
|
|
37
|
+
imTicketLink: {
|
|
38
|
+
color: "#ff801f"
|
|
28
39
|
}
|
|
29
40
|
}
|
|
30
41
|
};
|
|
@@ -1,30 +1,41 @@
|
|
|
1
1
|
/* eslint-disable camelcase */
|
|
2
|
-
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor } from
|
|
3
|
-
import { imIntegrationIcon } from "../commonDeskColorVariable.js";
|
|
2
|
+
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor } from "./commonColorVariable.js";
|
|
3
|
+
import { imIntegrationIcon, messagetextColor } from "../commonDeskColorVariable.js";
|
|
4
4
|
export default {
|
|
5
|
-
library:
|
|
5
|
+
library: "chat_components",
|
|
6
6
|
variables: {
|
|
7
7
|
messageBubble: {
|
|
8
8
|
active_bg_color: bubbleActiveBgColor,
|
|
9
|
-
messageBox_footer_text_color:
|
|
9
|
+
messageBox_footer_text_color: "#5a616f"
|
|
10
10
|
},
|
|
11
11
|
messageBox: {
|
|
12
12
|
incoming_bg_color: incomingBubbleBgColor,
|
|
13
13
|
outgoing_bg_color: outgoingBubbleBgColor,
|
|
14
|
-
bg_color:
|
|
15
|
-
failed_bg_color:
|
|
16
|
-
text_color:
|
|
14
|
+
bg_color: "#f1f7fe",
|
|
15
|
+
failed_bg_color: "#fcebeb",
|
|
16
|
+
text_color: messagetextColor
|
|
17
17
|
},
|
|
18
18
|
actionIcon: {
|
|
19
19
|
color: actionIconColor,
|
|
20
|
-
bg_color:
|
|
21
|
-
border_color:
|
|
20
|
+
bg_color: "#2f2424",
|
|
21
|
+
border_color: "#492A29"
|
|
22
22
|
},
|
|
23
23
|
imIntegrationIcon,
|
|
24
24
|
messageStatus: {
|
|
25
25
|
send_color: messageStatusSendColor,
|
|
26
|
-
read_color:
|
|
26
|
+
read_color: "#e94f4f",
|
|
27
27
|
failed_color: messageStatusFailedColor
|
|
28
|
+
},
|
|
29
|
+
attachmentBubbleInfo: {
|
|
30
|
+
fileName_color: "#e2e4e6",
|
|
31
|
+
fileSize_color: "#788190"
|
|
32
|
+
},
|
|
33
|
+
attachmentBubble: {
|
|
34
|
+
bg_color: "#212121",
|
|
35
|
+
border_color: "#161515"
|
|
36
|
+
},
|
|
37
|
+
imTicketLink: {
|
|
38
|
+
color: "#e94f4f"
|
|
28
39
|
}
|
|
29
40
|
}
|
|
30
41
|
};
|
|
@@ -1,30 +1,41 @@
|
|
|
1
1
|
/* eslint-disable camelcase */
|
|
2
|
-
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, messageStatusSendColor, messageStatusFailedColor, actionIconColor } from
|
|
3
|
-
import { imIntegrationIcon } from "../commonDeskColorVariable.js";
|
|
2
|
+
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, messageStatusSendColor, messageStatusFailedColor, actionIconColor } from "./commonColorVariable.js";
|
|
3
|
+
import { imIntegrationIcon, messagetextColor } from "../commonDeskColorVariable.js";
|
|
4
4
|
export default {
|
|
5
|
-
library:
|
|
5
|
+
library: "chat_components",
|
|
6
6
|
variables: {
|
|
7
7
|
messageBubble: {
|
|
8
8
|
active_bg_color: bubbleActiveBgColor,
|
|
9
|
-
messageBox_footer_text_color:
|
|
9
|
+
messageBox_footer_text_color: "#5a616f"
|
|
10
10
|
},
|
|
11
11
|
messageBox: {
|
|
12
12
|
incoming_bg_color: incomingBubbleBgColor,
|
|
13
13
|
outgoing_bg_color: outgoingBubbleBgColor,
|
|
14
|
-
bg_color:
|
|
15
|
-
failed_bg_color:
|
|
16
|
-
text_color:
|
|
14
|
+
bg_color: "#f1f7fe",
|
|
15
|
+
failed_bg_color: "#fcebeb",
|
|
16
|
+
text_color: messagetextColor
|
|
17
17
|
},
|
|
18
18
|
actionIcon: {
|
|
19
19
|
color: actionIconColor,
|
|
20
|
-
bg_color:
|
|
21
|
-
border_color:
|
|
20
|
+
bg_color: "#2e2922",
|
|
21
|
+
border_color: "#453925"
|
|
22
22
|
},
|
|
23
23
|
imIntegrationIcon,
|
|
24
24
|
messageStatus: {
|
|
25
25
|
send_color: messageStatusSendColor,
|
|
26
|
-
read_color:
|
|
26
|
+
read_color: "#d79835",
|
|
27
27
|
failed_color: messageStatusFailedColor
|
|
28
|
+
},
|
|
29
|
+
attachmentBubbleInfo: {
|
|
30
|
+
fileName_color: "#e2e4e6",
|
|
31
|
+
fileSize_color: "#788190"
|
|
32
|
+
},
|
|
33
|
+
attachmentBubble: {
|
|
34
|
+
bg_color: "#212121",
|
|
35
|
+
border_color: "#161515"
|
|
36
|
+
},
|
|
37
|
+
imTicketLink: {
|
|
38
|
+
color: "#d79835"
|
|
28
39
|
}
|
|
29
40
|
}
|
|
30
41
|
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M8.28796 6.63196H21.744C22.2744 6.63196 22.7831 6.84267 23.1582 7.21774C23.5333 7.59282 23.744 8.10152 23.744 8.63196V25.36C23.744 26.1047 23.4481 26.8189 22.9215 27.3455C22.3949 27.8721 21.6807 28.168 20.936 28.168H8.79996C8.13374 28.168 7.4948 27.9033 7.02371 27.4322C6.55262 26.9611 6.28796 26.3222 6.28796 25.656V8.63196C6.28796 8.10152 6.49868 7.59282 6.87375 7.21774C7.24882 6.84267 7.75753 6.63196 8.28796 6.63196Z" fill="#DFE6F2"/>
|
|
3
|
+
<path d="M18.528 19.904H8.416C8.20382 19.904 8.00034 19.8197 7.85031 19.6697C7.70028 19.5197 7.616 19.3162 7.616 19.104C7.616 18.8918 7.70028 18.6883 7.85031 18.5383C8.00034 18.3883 8.20382 18.304 8.416 18.304H18.528C18.7402 18.304 18.9437 18.3883 19.0937 18.5383C19.2437 18.6883 19.328 18.8918 19.328 19.104C19.328 19.3162 19.2437 19.5197 19.0937 19.6697C18.9437 19.8197 18.7402 19.904 18.528 19.904ZM27.28 23.776V9.792C27.28 9.57983 27.1957 9.37634 27.0457 9.22632C26.8957 9.07629 26.6922 8.992 26.48 8.992C26.2678 8.992 26.0643 9.07629 25.9143 9.22632C25.7643 9.37634 25.68 9.57983 25.68 9.792V23.776C25.6951 24.2267 25.531 24.6649 25.2236 24.9948C24.9162 25.3247 24.4906 25.5193 24.04 25.536H7.24C6.79648 25.5092 6.381 25.3101 6.08211 24.9814C5.78323 24.6526 5.62458 24.2201 5.64 23.776V6.456C5.63984 6.23441 5.72562 6.0214 5.8793 5.86176C6.03297 5.70211 6.24256 5.60828 6.464 5.6H20.6C20.8278 5.59999 21.0463 5.68992 21.2081 5.85023C21.3699 6.01053 21.4619 6.22824 21.464 6.456V20.96C21.464 21.1722 21.5483 21.3757 21.6983 21.5257C21.8483 21.6757 22.0518 21.76 22.264 21.76C22.4762 21.76 22.6797 21.6757 22.8297 21.5257C22.9797 21.3757 23.064 21.1722 23.064 20.96V6.456C23.0619 5.80389 22.8013 5.17922 22.3395 4.71886C21.8776 4.2585 21.2521 4 20.6 4H6.464C5.81189 4 5.18637 4.2585 4.72451 4.71886C4.26265 5.17922 4.00211 5.80389 4 6.456V23.776C3.985 24.651 4.31772 25.4961 4.92515 26.126C5.53257 26.756 6.36508 27.1192 7.24 27.136H24.04C24.9149 27.1192 25.7474 26.756 26.3548 26.126C26.9623 25.4961 27.295 24.651 27.28 23.776ZM14.272 12.576C14.272 12.3638 14.1877 12.1603 14.0377 12.0103C13.8877 11.8603 13.6842 11.776 13.472 11.776H8.416C8.20382 11.776 8.00034 11.8603 7.85031 12.0103C7.70028 12.1603 7.616 12.3638 7.616 12.576C7.616 12.7882 7.70028 12.9917 7.85031 13.1417C8.00034 13.2917 8.20382 13.376 8.416 13.376H13.472C13.6801 13.3761 13.88 13.2951 14.0294 13.1502C14.1787 13.0054 14.2658 12.808 14.272 12.6V12.576Z" fill="black"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?><svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M9.58,14.69s-.09,.01-.14,.01c.44-2.28,1.79-4.43,3.55-6.14v-.03c.14-.63-.46-.5-.61-.46-.03,.01-.04,.01-.04,.01-.54,.28-1.07,.6-1.58,.94-3.28,2.07-6,5.69-5.93,9.6-.04,.25,.12,1.51,.12,1.51,.36,2.24,2.29,3.95,4.62,3.95,2.6,0,4.7-2.1,4.7-4.7s-2.1-4.7-4.7-4.7Z"/><path d="M22.28,14.69s-.09,.01-.14,.01c.44-2.28,1.79-4.43,3.55-6.14v-.03c.14-.63-.46-.5-.61-.46-.03,.01-.04,.01-.04,.01-.54,.28-1.07,.6-1.58,.94-3.28,2.07-6,5.69-5.93,9.6-.04,.25,.12,1.51,.12,1.51,.36,2.24,2.29,3.95,4.62,3.95,2.6,0,4.7-2.1,4.7-4.7s-2.1-4.7-4.7-4.7Z"/></svg>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Icon from '@zohodesk/icon/es/Icon/Icon';
|
|
3
|
+
export default function IconComponent(props) {
|
|
4
|
+
return /*#__PURE__*/React.createElement(Icon, props, /*#__PURE__*/React.createElement("svg", {
|
|
5
|
+
viewBox: "0 0 32 32",
|
|
6
|
+
fill: "none",
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
8
|
+
}, " ", /*#__PURE__*/React.createElement("path", {
|
|
9
|
+
d: "M8.28796 6.63196H21.744C22.2744 6.63196 22.7831 6.84267 23.1582 7.21774C23.5333 7.59282 23.744 8.10152 23.744 8.63196V25.36C23.744 26.1047 23.4481 26.8189 22.9215 27.3455C22.3949 27.8721 21.6807 28.168 20.936 28.168H8.79996C8.13374 28.168 7.4948 27.9033 7.02371 27.4322C6.55262 26.9611 6.28796 26.3222 6.28796 25.656V8.63196C6.28796 8.10152 6.49868 7.59282 6.87375 7.21774C7.24882 6.84267 7.75753 6.63196 8.28796 6.63196Z",
|
|
10
|
+
fill: "#DFE6F2",
|
|
11
|
+
className: "path-0"
|
|
12
|
+
}), " ", /*#__PURE__*/React.createElement("path", {
|
|
13
|
+
d: "M18.528 19.904H8.416C8.20382 19.904 8.00034 19.8197 7.85031 19.6697C7.70028 19.5197 7.616 19.3162 7.616 19.104C7.616 18.8918 7.70028 18.6883 7.85031 18.5383C8.00034 18.3883 8.20382 18.304 8.416 18.304H18.528C18.7402 18.304 18.9437 18.3883 19.0937 18.5383C19.2437 18.6883 19.328 18.8918 19.328 19.104C19.328 19.3162 19.2437 19.5197 19.0937 19.6697C18.9437 19.8197 18.7402 19.904 18.528 19.904ZM27.28 23.776V9.792C27.28 9.57983 27.1957 9.37634 27.0457 9.22632C26.8957 9.07629 26.6922 8.992 26.48 8.992C26.2678 8.992 26.0643 9.07629 25.9143 9.22632C25.7643 9.37634 25.68 9.57983 25.68 9.792V23.776C25.6951 24.2267 25.531 24.6649 25.2236 24.9948C24.9162 25.3247 24.4906 25.5193 24.04 25.536H7.24C6.79648 25.5092 6.381 25.3101 6.08211 24.9814C5.78323 24.6526 5.62458 24.2201 5.64 23.776V6.456C5.63984 6.23441 5.72562 6.0214 5.8793 5.86176C6.03297 5.70211 6.24256 5.60828 6.464 5.6H20.6C20.8278 5.59999 21.0463 5.68992 21.2081 5.85023C21.3699 6.01053 21.4619 6.22824 21.464 6.456V20.96C21.464 21.1722 21.5483 21.3757 21.6983 21.5257C21.8483 21.6757 22.0518 21.76 22.264 21.76C22.4762 21.76 22.6797 21.6757 22.8297 21.5257C22.9797 21.3757 23.064 21.1722 23.064 20.96V6.456C23.0619 5.80389 22.8013 5.17922 22.3395 4.71886C21.8776 4.2585 21.2521 4 20.6 4H6.464C5.81189 4 5.18637 4.2585 4.72451 4.71886C4.26265 5.17922 4.00211 5.80389 4 6.456V23.776C3.985 24.651 4.31772 25.4961 4.92515 26.126C5.53257 26.756 6.36508 27.1192 7.24 27.136H24.04C24.9149 27.1192 25.7474 26.756 26.3548 26.126C26.9623 25.4961 27.295 24.651 27.28 23.776ZM14.272 12.576C14.272 12.3638 14.1877 12.1603 14.0377 12.0103C13.8877 11.8603 13.6842 11.776 13.472 11.776H8.416C8.20382 11.776 8.00034 11.8603 7.85031 12.0103C7.70028 12.1603 7.616 12.3638 7.616 12.576C7.616 12.7882 7.70028 12.9917 7.85031 13.1417C8.00034 13.2917 8.20382 13.376 8.416 13.376H13.472C13.6801 13.3761 13.88 13.2951 14.0294 13.1502C14.1787 13.0054 14.2658 12.808 14.272 12.6V12.576Z",
|
|
14
|
+
className: "path-1"
|
|
15
|
+
}), " "));
|
|
16
|
+
}
|
|
17
|
+
IconComponent.propTypes = Icon.propTypes;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Icon from '@zohodesk/icon/es/Icon/Icon';
|
|
3
|
+
export default function IconComponent(props) {
|
|
4
|
+
return /*#__PURE__*/React.createElement(Icon, props, /*#__PURE__*/React.createElement("svg", {
|
|
5
|
+
id: "Layer_1",
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
viewBox: "0 0 32 32"
|
|
8
|
+
}, " ", /*#__PURE__*/React.createElement("path", {
|
|
9
|
+
d: "M9.58,14.69s-.09,.01-.14,.01c.44-2.28,1.79-4.43,3.55-6.14v-.03c.14-.63-.46-.5-.61-.46-.03,.01-.04,.01-.04,.01-.54,.28-1.07,.6-1.58,.94-3.28,2.07-6,5.69-5.93,9.6-.04,.25,.12,1.51,.12,1.51,.36,2.24,2.29,3.95,4.62,3.95,2.6,0,4.7-2.1,4.7-4.7s-2.1-4.7-4.7-4.7Z",
|
|
10
|
+
className: "path-0"
|
|
11
|
+
}), " ", /*#__PURE__*/React.createElement("path", {
|
|
12
|
+
d: "M22.28,14.69s-.09,.01-.14,.01c.44-2.28,1.79-4.43,3.55-6.14v-.03c.14-.63-.46-.5-.61-.46-.03,.01-.04,.01-.04,.01-.54,.28-1.07,.6-1.58,.94-3.28,2.07-6,5.69-5.93,9.6-.04,.25,.12,1.51,.12,1.51,.36,2.24,2.29,3.95,4.62,3.95,2.6,0,4.7-2.1,4.7-4.7s-2.1-4.7-4.7-4.7Z",
|
|
13
|
+
className: "path-1"
|
|
14
|
+
}), " "));
|
|
15
|
+
}
|
|
16
|
+
IconComponent.propTypes = Icon.propTypes;
|
|
@@ -17,8 +17,8 @@ import cssJSLogic from './css/cssJSLogic';
|
|
|
17
17
|
|
|
18
18
|
/** ** Styles *** */
|
|
19
19
|
import style from './css/IMArticleBubble.module.css';
|
|
20
|
-
import useIMArticleBubble from '@zohoim/chat-components-hooks/es/IMArticleBubble/useIMArticleBubble';
|
|
21
|
-
import ArticleBubble from '
|
|
20
|
+
import useIMArticleBubble from '@zohoim/chat-components-hooks/es/im/IMArticleBubble/useIMArticleBubble';
|
|
21
|
+
import ArticleBubble from '../../ArticleBubble/ArticleBubble';
|
|
22
22
|
export default function IMArticleBubble(props) {
|
|
23
23
|
const {
|
|
24
24
|
customStyle,
|
|
@@ -17,9 +17,9 @@ import cssJSLogic from './css/cssJSLogic';
|
|
|
17
17
|
|
|
18
18
|
/** ** Styles *** */
|
|
19
19
|
import style from './css/IMAttachmentBubble.module.css';
|
|
20
|
-
import AttachmentBubble from '
|
|
20
|
+
import AttachmentBubble from '../../AttachmentBubble/AttachmentBubble';
|
|
21
21
|
import IMAttachmentIcon from '../IMAttachmentIcon/IMAttachmentIcon';
|
|
22
|
-
import useIMAttachmentBubble from '@zohoim/chat-components-hooks/es/IMAttachmentBubble/useIMAttachmentBubble';
|
|
22
|
+
import useIMAttachmentBubble from '@zohoim/chat-components-hooks/es/im/IMAttachmentBubble/useIMAttachmentBubble';
|
|
23
23
|
export default function IMAttachmentBubble(props) {
|
|
24
24
|
const {
|
|
25
25
|
customStyle,
|
|
@@ -2,32 +2,32 @@
|
|
|
2
2
|
/* eslint-disable max-len */
|
|
3
3
|
|
|
4
4
|
/** ** Libraries *** */
|
|
5
|
-
import React from
|
|
5
|
+
import React from "react";
|
|
6
6
|
|
|
7
7
|
/** ** Hooks *** */
|
|
8
|
-
import useMergeStyle from
|
|
8
|
+
import useMergeStyle from "@zohodesk/hooks/es/utils/useMergeStyle";
|
|
9
9
|
|
|
10
10
|
/** ** Constants *** */
|
|
11
|
-
import imAttachmentIconDefaultProps from
|
|
12
|
-
import imAttachmentIconPropTypes from
|
|
11
|
+
import imAttachmentIconDefaultProps from "./props/defaultProps";
|
|
12
|
+
import imAttachmentIconPropTypes from "./props/propTypes";
|
|
13
13
|
|
|
14
14
|
/** ** Methods *** */
|
|
15
|
-
import renderHandler from
|
|
16
|
-
import cssJSLogic from
|
|
15
|
+
import renderHandler from "@zohoim/chat-components-utils/es/common/renderHandler";
|
|
16
|
+
import cssJSLogic from "./css/cssJSLogic";
|
|
17
17
|
|
|
18
18
|
/** ** Styles *** */
|
|
19
|
-
import style from
|
|
20
|
-
import attachmentFileTypes from
|
|
19
|
+
import style from "./css/IMAttachmentIcon.module.css";
|
|
20
|
+
import attachmentFileTypes from "@zohoim/chat-components-utils/es/constants/attachmentFileTypes";
|
|
21
21
|
|
|
22
22
|
/** ** Icons *** */
|
|
23
|
-
import AudioIcon from '
|
|
24
|
-
import CodeIcon from '
|
|
25
|
-
import ImageIcon from '
|
|
26
|
-
import PdfIcon from '
|
|
27
|
-
import TextIcon from '
|
|
28
|
-
import UnknownIcon from '
|
|
29
|
-
import VideoIcon from '
|
|
30
|
-
import ZipIcon from '
|
|
23
|
+
import AudioIcon from '../../icons/iconSrc/attachments/Audio';
|
|
24
|
+
import CodeIcon from '../../icons/iconSrc/attachments/Code';
|
|
25
|
+
import ImageIcon from '../../icons/iconSrc/attachments/Image';
|
|
26
|
+
import PdfIcon from '../../icons/iconSrc/attachments/Pdf';
|
|
27
|
+
import TextIcon from '../../icons/iconSrc/attachments/Txt';
|
|
28
|
+
import UnknownIcon from '../../icons/iconSrc/attachments/Unknown';
|
|
29
|
+
import VideoIcon from '../../icons/iconSrc/attachments/Video';
|
|
30
|
+
import ZipIcon from '../../icons/iconSrc/attachments/Zip';
|
|
31
31
|
const {
|
|
32
32
|
SVG,
|
|
33
33
|
IMAGE,
|
|
@@ -83,4 +83,4 @@ export default function IMAttachmentIcon(props) {
|
|
|
83
83
|
}
|
|
84
84
|
IMAttachmentIcon.propTypes = imAttachmentIconPropTypes;
|
|
85
85
|
IMAttachmentIcon.defaultProps = imAttachmentIconDefaultProps;
|
|
86
|
-
IMAttachmentIcon.displayName =
|
|
86
|
+
IMAttachmentIcon.displayName = "IMAttachmentIcon";
|
|
@@ -17,8 +17,8 @@ import cssJSLogic from './css/cssJSLogic';
|
|
|
17
17
|
|
|
18
18
|
/** ** Styles *** */
|
|
19
19
|
import style from './css/IMAudioBubble.module.css';
|
|
20
|
-
import AudioBubble from '
|
|
21
|
-
import useIMAudioBubble from '@zohoim/chat-components-hooks/es/IMAudioBubble/useIMAudioBubble';
|
|
20
|
+
import AudioBubble from '../../AudioBubble/AudioBubble';
|
|
21
|
+
import useIMAudioBubble from '@zohoim/chat-components-hooks/es/im/IMAudioBubble/useIMAudioBubble';
|
|
22
22
|
export default function IMAudioBubble(props) {
|
|
23
23
|
const {
|
|
24
24
|
attachmentDetails,
|
|
@@ -6,7 +6,7 @@ import React from 'react';
|
|
|
6
6
|
|
|
7
7
|
/** ** Hooks *** */
|
|
8
8
|
import useMergeStyle from '@zohodesk/hooks/es/utils/useMergeStyle';
|
|
9
|
-
import useIMAutoMessageInfo from '@zohoim/chat-components-hooks/es/IMAutoMessageInfo/useIMAutoMessageInfo';
|
|
9
|
+
import useIMAutoMessageInfo from '@zohoim/chat-components-hooks/es/im/IMAutoMessageInfo/useIMAutoMessageInfo';
|
|
10
10
|
|
|
11
11
|
/** ** Constants *** */
|
|
12
12
|
import imAutoMessageInfoDefaultProps from './props/defaultProps';
|
|
@@ -6,7 +6,7 @@ import React from 'react';
|
|
|
6
6
|
|
|
7
7
|
/** ** Hooks *** */
|
|
8
8
|
import useMergeStyle from '@zohodesk/hooks/es/utils/useMergeStyle';
|
|
9
|
-
import useIMDateTime from '@zohoim/chat-components-hooks/es/IMDateTime/useIMDateTime';
|
|
9
|
+
import useIMDateTime from '@zohoim/chat-components-hooks/es/im/IMDateTime/useIMDateTime';
|
|
10
10
|
|
|
11
11
|
/** ** Constants *** */
|
|
12
12
|
import imDateTimeDefaultProps from './props/defaultProps';
|
|
@@ -17,8 +17,8 @@ import cssJSLogic from './css/cssJSLogic';
|
|
|
17
17
|
|
|
18
18
|
/** ** Styles *** */
|
|
19
19
|
import style from './css/IMImageBubble.module.css';
|
|
20
|
-
import ImageBubble from '
|
|
21
|
-
import useIMImageBubble from '@zohoim/chat-components-hooks/es/IMImageBubble/useIMImageBubble';
|
|
20
|
+
import ImageBubble from '../../ImageBubble/ImageBubble';
|
|
21
|
+
import useIMImageBubble from '@zohoim/chat-components-hooks/es/im/IMImageBubble/useIMImageBubble';
|
|
22
22
|
export default function IMImageBubble(props) {
|
|
23
23
|
const {
|
|
24
24
|
customStyle,
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
|
|
6
6
|
/** ** Icons *** */
|
|
7
|
-
import WhatsappIcon from '
|
|
8
|
-
import TelegramIcon from '
|
|
9
|
-
import InstagramIcon from '
|
|
10
|
-
import ASAPIcon from '
|
|
11
|
-
import WeChatIcon from '
|
|
12
|
-
import TwillioIcon from '
|
|
13
|
-
import LineIcon from '
|
|
7
|
+
import WhatsappIcon from '../../icons/iconSrc/integrations/ChWhatsApp';
|
|
8
|
+
import TelegramIcon from '../../icons/iconSrc/integrations/TtTelegram';
|
|
9
|
+
import InstagramIcon from '../../icons/iconSrc/integrations/ChInstagram';
|
|
10
|
+
import ASAPIcon from '../../icons/iconSrc/integrations/TtASAP';
|
|
11
|
+
import WeChatIcon from '../../icons/iconSrc/integrations/TtWechat';
|
|
12
|
+
import TwillioIcon from '../../icons/iconSrc/integrations/TtTwillio';
|
|
13
|
+
import LineIcon from '../../icons/iconSrc/integrations/TtTwitter';
|
|
14
14
|
// import TwitterIcon from '../icons/iconSrc/integrations/TtTwitter';
|
|
15
15
|
|
|
16
16
|
/** ** CSS *** */
|
|
@@ -17,8 +17,8 @@ import cssJSLogic from './css/cssJSLogic';
|
|
|
17
17
|
|
|
18
18
|
/** ** Styles *** */
|
|
19
19
|
import style from './css/IMLocationBubble.module.css';
|
|
20
|
-
import useIMLocationBubble from '@zohoim/chat-components-hooks/es/IMLocationBubble/useIMLocationBubble';
|
|
21
|
-
import LocationBubble from '
|
|
20
|
+
import useIMLocationBubble from '@zohoim/chat-components-hooks/es/im/IMLocationBubble/useIMLocationBubble';
|
|
21
|
+
import LocationBubble from '../../LocationBubble/LocationBubble';
|
|
22
22
|
export default function IMLocationBubble(props) {
|
|
23
23
|
const {
|
|
24
24
|
customStyle,
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/* eslint-disable react/jsx-no-bind */
|
|
2
2
|
|
|
3
3
|
/** ** Libraries *** */
|
|
4
|
-
import React from
|
|
4
|
+
import React from "react";
|
|
5
5
|
|
|
6
6
|
/** ** Hooks *** */
|
|
7
|
-
import useIMMessage from '@zohoim/chat-components-hooks/es/IMMessage/useIMMessage';
|
|
7
|
+
import useIMMessage from '@zohoim/chat-components-hooks/es/im/IMMessage/useIMMessage';
|
|
8
8
|
|
|
9
9
|
/** ** Constants *** */
|
|
10
|
-
import imMessageDefaultProps from
|
|
11
|
-
import imMessagePropTypes from
|
|
10
|
+
import imMessageDefaultProps from "./props/defaultProps";
|
|
11
|
+
import imMessagePropTypes from "./props/propTypes";
|
|
12
12
|
|
|
13
13
|
/** ** Components *** */
|
|
14
|
-
import Message from '
|
|
15
|
-
import IMMessageContent from
|
|
16
|
-
import IMTicketLink from
|
|
14
|
+
import Message from '../../Message/Message';
|
|
15
|
+
import IMMessageContent from "../IMMessageContent/IMMessageContent";
|
|
16
|
+
import IMTicketLink from "../IMTicketLink/IMTicketLink";
|
|
17
17
|
export default function IMMessage(props) {
|
|
18
18
|
const {
|
|
19
19
|
defaultAgentAvatar,
|
|
@@ -50,7 +50,10 @@ export default function IMMessage(props) {
|
|
|
50
50
|
renderCustomIntegrationIcon,
|
|
51
51
|
renderCustomSenderAvatar,
|
|
52
52
|
renderMessageFooter,
|
|
53
|
-
renderMessageHeader
|
|
53
|
+
renderMessageHeader,
|
|
54
|
+
replyText,
|
|
55
|
+
articleShareText,
|
|
56
|
+
moreText
|
|
54
57
|
} = props;
|
|
55
58
|
const {
|
|
56
59
|
direction,
|
|
@@ -105,7 +108,10 @@ export default function IMMessage(props) {
|
|
|
105
108
|
}
|
|
106
109
|
function handleRenderMessage() {
|
|
107
110
|
return /*#__PURE__*/React.createElement(IMMessageContent, {
|
|
108
|
-
messageDetails: messageDetails
|
|
111
|
+
messageDetails: messageDetails,
|
|
112
|
+
replyText: replyText,
|
|
113
|
+
articleShareText: articleShareText,
|
|
114
|
+
moreText: moreText
|
|
109
115
|
});
|
|
110
116
|
// return <div>{displayMessage}</div>;
|
|
111
117
|
}
|
|
@@ -153,12 +159,12 @@ export default function IMMessage(props) {
|
|
|
153
159
|
senderSrc: senderSrc,
|
|
154
160
|
senderAlternateSrc: senderAlternateSrc,
|
|
155
161
|
senderTitle: senderTitle,
|
|
156
|
-
senderIntegrationIcon: isShowIntegrationIcon ? integrationName :
|
|
162
|
+
senderIntegrationIcon: isShowIntegrationIcon ? integrationName : "",
|
|
157
163
|
isFailedMessage: isFailedMessage,
|
|
158
164
|
messageActions: messageActions,
|
|
159
165
|
needMessageActions: needMessageActions ? messageActions.length >= 0 : false,
|
|
160
166
|
onSelectAction: handleSelectAction,
|
|
161
|
-
messageStatus: isAgentMessage ? messageStatus :
|
|
167
|
+
messageStatus: isAgentMessage ? messageStatus : "",
|
|
162
168
|
statusTitle: messageStatusTitle,
|
|
163
169
|
customStyle: messageBubbleCustomStyle,
|
|
164
170
|
avatarCustomStyle: avatarCustomStyle,
|
|
@@ -187,4 +193,4 @@ export default function IMMessage(props) {
|
|
|
187
193
|
}
|
|
188
194
|
IMMessage.propTypes = imMessagePropTypes;
|
|
189
195
|
IMMessage.defaultProps = imMessageDefaultProps;
|
|
190
|
-
IMMessage.displayName =
|
|
196
|
+
IMMessage.displayName = "IMMessage";
|