@zohoim/chat-components 0.0.15 → 0.0.16
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/ActionIcon/ActionIcon.js +2 -0
- package/es/ActionIconWrapper/ActionIconWrapper.js +6 -2
- package/es/ActionIconWrapper/props/propTypes.js +1 -0
- package/es/AttachmentBubble/AttachmentBubble.js +24 -8
- package/es/AttachmentBubble/css/AttachmentBubble.module.css +15 -1
- package/es/AttachmentBubble/css/cssJSLogic.js +15 -0
- package/es/AttachmentBubble/props/propTypes.js +2 -1
- package/es/AttachmentBubbleInfo/AttachmentBubbleInfo.js +13 -2
- package/es/AttachmentBubbleInfo/css/AttachmentBubbleInfo.module.css +9 -0
- package/es/AttachmentBubbleInfo/css/cssJSLogic.js +13 -0
- package/es/AttachmentBubbleInfo/props/propTypes.js +2 -1
- package/es/AttachmentIcon/AttachmentIcon.js +3 -1
- package/es/AttachmentIcon/css/AttachmentIcon.module.css +2 -2
- package/es/AttachmentIcon/props/propTypes.js +6 -0
- package/es/AttachmentIcon/utils/getAttachmentIconComponent.js +4 -3
- package/es/AudioBubble/AudioBubble.js +5 -2
- package/es/AudioBubble/props/propTypes.js +2 -1
- package/es/ImageBubble/ImageBubble.js +13 -2
- package/es/ImageBubble/css/ImageBubble.module.css +8 -2
- package/es/ImageBubble/css/cssJSLogic.js +13 -0
- package/es/ImageBubble/props/propTypes.js +2 -1
- package/es/LocationBubble/LocationBubble.js +13 -2
- package/es/LocationBubble/css/LocationBubble.module.css +14 -1
- package/es/LocationBubble/css/cssJSLogic.js +13 -0
- package/es/LocationBubble/props/propTypes.js +2 -1
- package/es/MediaBubbleWrapper/MediaBubbleWrapper.js +5 -2
- package/es/MediaBubbleWrapper/props/propTypes.js +2 -1
- package/es/Message/Message.js +4 -2
- package/es/MessageAction/MessageAction.js +3 -0
- package/es/MessageAction/props/propTypes.js +1 -0
- package/es/MessageActions/MessageActions.js +14 -2
- package/es/MessageActions/props/propTypes.js +1 -0
- package/es/MessageBox/MessageBox.js +2 -2
- package/es/MessageBubble/MessageBubble.js +16 -11
- package/es/MessageStatus/css/MessageStatus.module.css +0 -3
- package/es/MoreActionItem/MoreActionItem.js +8 -0
- package/es/MoreActionItem/props/propTypes.js +1 -0
- package/es/ReplyBubble/ReplyBubble.js +32 -13
- package/es/ReplyBubble/css/ReplyBubble.module.css +1 -1
- package/es/ReplyBubble/props/propTypes.js +8 -2
- package/es/ReplyBubbleContent/ReplyBubbleContent.js +11 -2
- package/es/ReplyBubbleContent/css/ReplyBubbleContent.module.css +21 -3
- package/es/ReplyBubbleContent/css/cssJSLogic.js +13 -0
- package/es/ReplyBubbleContent/props/propTypes.js +2 -1
- package/es/ReplyBubbleHeader/ReplyBubbleHeader.js +20 -5
- package/es/ReplyBubbleHeader/css/ReplyBubbleHeader.module.css +12 -0
- package/es/ReplyBubbleHeader/css/cssJSLogic.js +12 -0
- package/es/ReplyBubbleHeader/props/defaultProps.js +2 -1
- package/es/ReplyBubbleHeader/props/propTypes.js +6 -2
- package/es/TextBubble/TextBubble.js +15 -3
- package/es/TextBubble/css/TextBubble.module.css +13 -0
- package/es/TextBubble/css/cssJSLogic.js +18 -0
- package/es/TextBubble/props/propTypes.js +2 -1
- package/es/Theme/themeVariables/commonThemeColorVariable.js +1 -2
- package/es/Theme/themeVariables/dark/blueTheme.js +97 -40
- package/es/Theme/themeVariables/dark/commonColorVariable.js +7 -1
- package/es/Theme/themeVariables/dark/greenTheme.js +95 -38
- package/es/Theme/themeVariables/dark/orangeTheme.js +94 -37
- package/es/Theme/themeVariables/dark/redTheme.js +94 -46
- package/es/Theme/themeVariables/dark/yellowTheme.js +94 -37
- package/es/Theme/themeVariables/light/blueTheme.js +96 -35
- package/es/Theme/themeVariables/light/commonColorVariable.js +8 -1
- package/es/Theme/themeVariables/light/greenTheme.js +96 -35
- package/es/Theme/themeVariables/light/orangeTheme.js +97 -34
- package/es/Theme/themeVariables/light/redTheme.js +97 -34
- package/es/Theme/themeVariables/light/yellowTheme.js +96 -35
- package/es/Theme/themeVariables/pureDark/blueTheme.js +93 -37
- package/es/Theme/themeVariables/pureDark/commonColorVariable.js +7 -1
- package/es/Theme/themeVariables/pureDark/greenTheme.js +94 -37
- package/es/Theme/themeVariables/pureDark/orangeTheme.js +94 -37
- package/es/Theme/themeVariables/pureDark/redTheme.js +94 -37
- package/es/Theme/themeVariables/pureDark/yellowTheme.js +94 -37
- package/es/VideoBubble/VideoBubble.js +5 -2
- package/es/VideoBubble/props/propTypes.js +2 -1
- package/es/icons/iconSrc/attachments/Text.js +47 -0
- package/es/icons/iconSrc/attachments/index.js +1 -1
- package/es/im/ArticleBubble/ArticleBubble.js +16 -3
- package/es/im/ArticleBubble/css/ArticleBubble.module.css +18 -3
- package/es/im/ArticleBubble/css/cssJSLogic.js +12 -0
- package/es/im/ArticleBubble/props/propTypes.js +2 -1
- package/es/im/IMAutoMessageInfo/css/IMAutoMessageInfo.module.css +1 -0
- package/es/im/IMIntegrationIcon/css/IMIntegrationIcon.module.css +1 -6
- package/es/im/IMMessage/IMMessage.js +28 -4
- package/es/im/IMMessage/props/propTypes.js +25 -1
- package/es/im/IMMessageContent/IMMessageContent.js +39 -42
- package/es/im/IMMessageContent/css/IMMessageContent.module.css +6 -2
- package/es/im/IMMessageContent/props/propTypes.js +7 -2
- package/es/im/IMMessageMeta/IMMessageMeta.js +8 -8
- package/es/im/IMMessageMeta/css/IMMessageMeta.module.css +1 -1
- package/es/im/IMMessageMeta/props/defaultProps.js +1 -1
- package/es/im/IMPermaLink/css/IMPermaLink.module.css +1 -1
- package/es/im/IMReplyBubble/IMReplyBubble.js +10 -5
- package/es/im/IMReplyBubble/props/propTypes.js +7 -2
- package/es/im/IMTextBubble/IMTextBubble.js +5 -2
- package/es/im/IMTextBubble/props/propTypes.js +2 -1
- package/es/im/css/common.module.css +2 -2
- package/es/im/index.js +0 -1
- package/es/index.js +0 -1
- package/package.json +4 -21
- package/es/InfoBubble/InfoBubble.js +0 -34
- package/es/InfoBubble/css/InfoBubble.module.css +0 -0
- package/es/InfoBubble/css/cssJSLogic.js +0 -10
- package/es/InfoBubble/index.js +0 -1
- package/es/InfoBubble/props/defaultProps.js +0 -6
- package/es/InfoBubble/props/propTypes.js +0 -6
- package/es/Theme/crm/dark/blueFanTheme.js +0 -28
- package/es/Theme/crm/dark/blueTheme.js +0 -28
- package/es/Theme/crm/dark/commonColorVariable.js +0 -11
- package/es/Theme/crm/dark/darkBlueTheme.js +0 -28
- package/es/Theme/crm/dark/darkGreyTheme.js +0 -28
- package/es/Theme/crm/dark/greenTheme.js +0 -28
- package/es/Theme/crm/dark/orangeTheme.js +0 -28
- package/es/Theme/crm/dark/pinkTheme.js +0 -28
- package/es/Theme/crm/dark/tealTheme.js +0 -28
- package/es/Theme/crm/dark/whiteTheme.js +0 -28
- package/es/Theme/crm/light/blueFanTheme.js +0 -28
- package/es/Theme/crm/light/blueTheme.js +0 -31
- package/es/Theme/crm/light/commonColorVariable.js +0 -9
- package/es/Theme/crm/light/darkBlueTheme.js +0 -28
- package/es/Theme/crm/light/darkGreyTheme.js +0 -28
- package/es/Theme/crm/light/greenTheme.js +0 -28
- package/es/Theme/crm/light/orangeTheme.js +0 -28
- package/es/Theme/crm/light/pinkTheme.js +0 -28
- package/es/Theme/crm/light/tealTheme.js +0 -28
- package/es/Theme/crm/light/whiteTheme.js +0 -28
- package/es/Theme/crm/pureDark/blueFanTheme.js +0 -28
- package/es/Theme/crm/pureDark/blueTheme.js +0 -28
- package/es/Theme/crm/pureDark/commonColorVariable.js +0 -9
- package/es/Theme/crm/pureDark/darkBlueTheme.js +0 -28
- package/es/Theme/crm/pureDark/darkGreyTheme.js +0 -28
- package/es/Theme/crm/pureDark/greenTheme.js +0 -28
- package/es/Theme/crm/pureDark/orangeTheme.js +0 -28
- package/es/Theme/crm/pureDark/pinkTheme.js +0 -28
- package/es/Theme/crm/pureDark/tealTheme.js +0 -28
- package/es/Theme/crm/pureDark/whiteTheme.js +0 -28
- package/es/im/IMInfoBubble/IMInfoBubble.js +0 -34
- package/es/im/IMInfoBubble/css/IMInfoBubble.module.css +0 -0
- package/es/im/IMInfoBubble/css/cssJSLogic.js +0 -10
- package/es/im/IMInfoBubble/index.js +0 -1
- package/es/im/IMInfoBubble/props/defaultProps.js +0 -6
- package/es/im/IMInfoBubble/props/propTypes.js +0 -6
- /package/es/icons/factory/attachments/{txt.svg → text.svg} +0 -0
|
@@ -1,67 +1,124 @@
|
|
|
1
1
|
/* eslint-disable camelcase */
|
|
2
|
-
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryOrange } from './commonColorVariable';
|
|
2
|
+
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryOrange, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor } from './commonColorVariable';
|
|
3
3
|
import { imIntegrationIcon, messagetextColor } from '../commonThemeColorVariable';
|
|
4
4
|
export default {
|
|
5
5
|
library: 'chat_components',
|
|
6
6
|
variables: {
|
|
7
|
-
|
|
8
|
-
active_bg_color: bubbleActiveBgColor,
|
|
9
|
-
messageBox_footer_text_color: '#5a616f'
|
|
10
|
-
},
|
|
11
|
-
messageBox: {
|
|
12
|
-
incoming_bg_color: incomingBubbleBgColor,
|
|
13
|
-
outgoing_bg_color: outgoingBubbleBgColor,
|
|
14
|
-
bg_color: '#f1f7fe',
|
|
15
|
-
failed_bg_color: '#fcebeb',
|
|
16
|
-
text_color: messagetextColor
|
|
17
|
-
},
|
|
7
|
+
// ActionIcon: {},
|
|
18
8
|
actionIconWrapper: {
|
|
19
9
|
color: actionIconWrapperColor,
|
|
20
10
|
bg_color: '#312821',
|
|
21
11
|
border_color: '#4d3421'
|
|
22
12
|
},
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
13
|
+
attachmentBubble: {
|
|
14
|
+
bg_color: '#212121',
|
|
15
|
+
bg_color_failed: failedBg,
|
|
16
|
+
border_color: '#161515',
|
|
17
|
+
border_color_failed: failedBdr
|
|
28
18
|
},
|
|
29
19
|
attachmentBubbleInfo: {
|
|
30
20
|
fileName_color: '#e2e4e6',
|
|
31
|
-
|
|
21
|
+
fileName_color_failed: failedColor,
|
|
22
|
+
fileSize_color: '#999',
|
|
23
|
+
fileSize_color_failed: failedColor
|
|
32
24
|
},
|
|
33
|
-
|
|
25
|
+
// AttachmentIcon: {},
|
|
26
|
+
// Audio: {},
|
|
27
|
+
// AudioBubble: {},
|
|
28
|
+
articleBubble: {
|
|
34
29
|
bg_color: '#212121',
|
|
35
|
-
|
|
30
|
+
bg_color_failed: failedBg,
|
|
31
|
+
border_color: '#161515',
|
|
32
|
+
border_color_failed: failedBdr,
|
|
33
|
+
title_color: '#e2e4e6',
|
|
34
|
+
title_color_failed: failedColor,
|
|
35
|
+
summary_color: '#e2e4e6',
|
|
36
|
+
summary_color_failed: failedColor
|
|
36
37
|
},
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
imAutoMessageInfo: {
|
|
39
|
+
text_color: '#999'
|
|
39
40
|
},
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
// IMInfoBubble: {},
|
|
42
|
+
imIntegrationIcon,
|
|
43
|
+
// IMMessage: {},
|
|
44
|
+
// IMMessageContent: {},
|
|
45
|
+
imMessageMeta: {
|
|
46
|
+
time_color: '#999'
|
|
47
|
+
},
|
|
48
|
+
imPermaLink: {
|
|
49
|
+
url_color: '#ff801f'
|
|
45
50
|
},
|
|
51
|
+
// IMReplyBubble: {},
|
|
52
|
+
// IMTextBubble: {},
|
|
46
53
|
imageBubble: {
|
|
47
|
-
bg_color: '#212121'
|
|
54
|
+
bg_color: '#212121',
|
|
55
|
+
bg_color_failed: failedBg,
|
|
56
|
+
alt_text_color: '#e2e4e6',
|
|
57
|
+
alt_text_color_failed: failedColor
|
|
48
58
|
},
|
|
59
|
+
// IMReplyBubble: {},
|
|
60
|
+
// InfoBubble: {},
|
|
61
|
+
// LazyLoadImage: {},
|
|
49
62
|
locationBubble: {
|
|
50
63
|
bg_color: '#212121',
|
|
51
|
-
|
|
52
|
-
border_color: '#161515'
|
|
64
|
+
bg_color_failed: failedBg,
|
|
65
|
+
border_color: '#161515',
|
|
66
|
+
border_color_failed: failedBdr,
|
|
67
|
+
url_color: primaryOrange,
|
|
68
|
+
url_color_failed: failedUrlColor
|
|
53
69
|
},
|
|
54
|
-
|
|
70
|
+
// MediaBubbleWrapper: {},
|
|
71
|
+
// Message: {},
|
|
72
|
+
// MessageAction: {},
|
|
73
|
+
// MessageActions: {},
|
|
74
|
+
// MessageActionsMore: {},
|
|
75
|
+
// MessageActionsWrapper: {},
|
|
76
|
+
// MessageAvatar: {},
|
|
77
|
+
messageBox: {
|
|
78
|
+
incoming_bg_color: incomingBubbleBgColor,
|
|
79
|
+
outgoing_bg_color: outgoingBubbleBgColor,
|
|
80
|
+
bg_color: '#f1f7fe',
|
|
81
|
+
failed_bg_color: failedBgWrapper,
|
|
82
|
+
text_color: messagetextColor
|
|
83
|
+
},
|
|
84
|
+
messageBubble: {
|
|
85
|
+
active_bg_color: bubbleActiveBgColor,
|
|
86
|
+
messageBox_footer_text_color: '#5a616f'
|
|
87
|
+
},
|
|
88
|
+
messageStatus: {
|
|
89
|
+
send_color: messageStatusSendColor,
|
|
90
|
+
read_color: '#ff801f',
|
|
91
|
+
failed_color: messageStatusFailedColor
|
|
92
|
+
},
|
|
93
|
+
// MoreActionItem: {},
|
|
94
|
+
// ReplyBubble: {},
|
|
95
|
+
replyBubbleContent: {
|
|
55
96
|
bg_color: '#212121',
|
|
56
|
-
|
|
57
|
-
border_color: '#161515'
|
|
97
|
+
bg_color_failed: failedBg,
|
|
98
|
+
border_color: '#161515',
|
|
99
|
+
border_color_failed: failedBdr,
|
|
100
|
+
line_color: '#cddbf2',
|
|
101
|
+
line_color_failed: failedLine,
|
|
102
|
+
sender_color: '#e2e4e6',
|
|
103
|
+
sender_color_failed: failedColor,
|
|
104
|
+
content_color: '#e2e4e6',
|
|
105
|
+
content_color_failed: failedColor
|
|
58
106
|
},
|
|
59
|
-
|
|
60
|
-
|
|
107
|
+
replyBubbleHeader: {
|
|
108
|
+
text_color: '#e2e4e6',
|
|
109
|
+
text_color_failed: failedColor,
|
|
110
|
+
time_color: '#828994',
|
|
111
|
+
time_color_failed: failedColor
|
|
61
112
|
},
|
|
62
113
|
textBubble: {
|
|
114
|
+
text_color: '#e2e4e6',
|
|
115
|
+
text_color_failed: failedColor,
|
|
63
116
|
see_more_color: primaryOrange,
|
|
64
|
-
|
|
65
|
-
|
|
117
|
+
see_more_color_failed: failedUrlColor,
|
|
118
|
+
url_color: primaryOrange,
|
|
119
|
+
url_color_failed: failedUrlColor
|
|
120
|
+
} // Video: {},
|
|
121
|
+
// VideoBubble: {}
|
|
122
|
+
|
|
66
123
|
}
|
|
67
124
|
};
|
|
@@ -1,67 +1,124 @@
|
|
|
1
1
|
/* eslint-disable camelcase */
|
|
2
|
-
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryRed } from './commonColorVariable';
|
|
2
|
+
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryRed, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor } from './commonColorVariable';
|
|
3
3
|
import { imIntegrationIcon, messagetextColor } from '../commonThemeColorVariable';
|
|
4
4
|
export default {
|
|
5
5
|
library: 'chat_components',
|
|
6
6
|
variables: {
|
|
7
|
-
|
|
8
|
-
active_bg_color: bubbleActiveBgColor,
|
|
9
|
-
messageBox_footer_text_color: '#5a616f'
|
|
10
|
-
},
|
|
11
|
-
messageBox: {
|
|
12
|
-
incoming_bg_color: incomingBubbleBgColor,
|
|
13
|
-
outgoing_bg_color: outgoingBubbleBgColor,
|
|
14
|
-
bg_color: '#f1f7fe',
|
|
15
|
-
failed_bg_color: '#fcebeb',
|
|
16
|
-
text_color: messagetextColor
|
|
17
|
-
},
|
|
7
|
+
// ActionIcon: {},
|
|
18
8
|
actionIconWrapper: {
|
|
19
9
|
color: actionIconWrapperColor,
|
|
20
10
|
bg_color: '#2f2424',
|
|
21
11
|
border_color: '#492A29'
|
|
22
12
|
},
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
13
|
+
attachmentBubble: {
|
|
14
|
+
bg_color: '#212121',
|
|
15
|
+
bg_color_failed: failedBg,
|
|
16
|
+
border_color: '#161515',
|
|
17
|
+
border_color_failed: failedBdr
|
|
28
18
|
},
|
|
29
19
|
attachmentBubbleInfo: {
|
|
30
20
|
fileName_color: '#e2e4e6',
|
|
31
|
-
|
|
21
|
+
fileName_color_failed: failedColor,
|
|
22
|
+
fileSize_color: '#999',
|
|
23
|
+
fileSize_color_failed: failedColor
|
|
32
24
|
},
|
|
33
|
-
|
|
25
|
+
// AttachmentIcon: {},
|
|
26
|
+
// Audio: {},
|
|
27
|
+
// AudioBubble: {},
|
|
28
|
+
articleBubble: {
|
|
34
29
|
bg_color: '#212121',
|
|
35
|
-
|
|
30
|
+
bg_color_failed: failedBg,
|
|
31
|
+
border_color: '#161515',
|
|
32
|
+
border_color_failed: failedBdr,
|
|
33
|
+
title_color: '#e2e4e6',
|
|
34
|
+
title_color_failed: failedColor,
|
|
35
|
+
summary_color: '#e2e4e6',
|
|
36
|
+
summary_color_failed: failedColor
|
|
36
37
|
},
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
imAutoMessageInfo: {
|
|
39
|
+
text_color: '#999'
|
|
39
40
|
},
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
// IMInfoBubble: {},
|
|
42
|
+
imIntegrationIcon,
|
|
43
|
+
// IMMessage: {},
|
|
44
|
+
// IMMessageContent: {},
|
|
45
|
+
imMessageMeta: {
|
|
46
|
+
time_color: '#999'
|
|
47
|
+
},
|
|
48
|
+
imPermaLink: {
|
|
49
|
+
url_color: '#e94f4f'
|
|
45
50
|
},
|
|
51
|
+
// IMReplyBubble: {},
|
|
52
|
+
// IMTextBubble: {},
|
|
46
53
|
imageBubble: {
|
|
47
|
-
bg_color: '#212121'
|
|
54
|
+
bg_color: '#212121',
|
|
55
|
+
bg_color_failed: failedBg,
|
|
56
|
+
alt_text_color: '#e2e4e6',
|
|
57
|
+
alt_text_color_failed: failedColor
|
|
48
58
|
},
|
|
59
|
+
// IMReplyBubble: {},
|
|
60
|
+
// InfoBubble: {},
|
|
61
|
+
// LazyLoadImage: {},
|
|
49
62
|
locationBubble: {
|
|
50
63
|
bg_color: '#212121',
|
|
51
|
-
|
|
52
|
-
border_color: '#161515'
|
|
64
|
+
bg_color_failed: failedBg,
|
|
65
|
+
border_color: '#161515',
|
|
66
|
+
border_color_failed: failedBdr,
|
|
67
|
+
url_color: primaryRed,
|
|
68
|
+
url_color_failed: failedUrlColor
|
|
53
69
|
},
|
|
54
|
-
|
|
70
|
+
// MediaBubbleWrapper: {},
|
|
71
|
+
// Message: {},
|
|
72
|
+
// MessageAction: {},
|
|
73
|
+
// MessageActions: {},
|
|
74
|
+
// MessageActionsMore: {},
|
|
75
|
+
// MessageActionsWrapper: {},
|
|
76
|
+
// MessageAvatar: {},
|
|
77
|
+
messageBox: {
|
|
78
|
+
incoming_bg_color: incomingBubbleBgColor,
|
|
79
|
+
outgoing_bg_color: outgoingBubbleBgColor,
|
|
80
|
+
bg_color: '#f1f7fe',
|
|
81
|
+
failed_bg_color: failedBgWrapper,
|
|
82
|
+
text_color: messagetextColor
|
|
83
|
+
},
|
|
84
|
+
messageBubble: {
|
|
85
|
+
active_bg_color: bubbleActiveBgColor,
|
|
86
|
+
messageBox_footer_text_color: '#5a616f'
|
|
87
|
+
},
|
|
88
|
+
messageStatus: {
|
|
89
|
+
send_color: messageStatusSendColor,
|
|
90
|
+
read_color: '#e94f4f',
|
|
91
|
+
failed_color: messageStatusFailedColor
|
|
92
|
+
},
|
|
93
|
+
// MoreActionItem: {},
|
|
94
|
+
// ReplyBubble: {},
|
|
95
|
+
replyBubbleContent: {
|
|
55
96
|
bg_color: '#212121',
|
|
56
|
-
|
|
57
|
-
border_color: '#161515'
|
|
97
|
+
bg_color_failed: failedBg,
|
|
98
|
+
border_color: '#161515',
|
|
99
|
+
border_color_failed: failedBdr,
|
|
100
|
+
line_color: '#cddbf2',
|
|
101
|
+
line_color_failed: failedLine,
|
|
102
|
+
sender_color: '#e2e4e6',
|
|
103
|
+
sender_color_failed: failedColor,
|
|
104
|
+
content_color: '#e2e4e6',
|
|
105
|
+
content_color_failed: failedColor
|
|
58
106
|
},
|
|
59
|
-
|
|
60
|
-
|
|
107
|
+
replyBubbleHeader: {
|
|
108
|
+
text_color: '#e2e4e6',
|
|
109
|
+
text_color_failed: failedColor,
|
|
110
|
+
time_color: '#828994',
|
|
111
|
+
time_color_failed: failedColor
|
|
61
112
|
},
|
|
62
113
|
textBubble: {
|
|
114
|
+
text_color: '#e2e4e6',
|
|
115
|
+
text_color_failed: failedColor,
|
|
63
116
|
see_more_color: primaryRed,
|
|
64
|
-
|
|
65
|
-
|
|
117
|
+
see_more_color_failed: failedUrlColor,
|
|
118
|
+
url_color: primaryRed,
|
|
119
|
+
url_color_failed: failedUrlColor
|
|
120
|
+
} // Video: {},
|
|
121
|
+
// VideoBubble: {}
|
|
122
|
+
|
|
66
123
|
}
|
|
67
124
|
};
|
|
@@ -1,67 +1,124 @@
|
|
|
1
1
|
/* eslint-disable camelcase */
|
|
2
|
-
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, messageStatusSendColor, messageStatusFailedColor, actionIconWrapperColor, primaryYellow } from './commonColorVariable';
|
|
2
|
+
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, messageStatusSendColor, messageStatusFailedColor, actionIconWrapperColor, primaryYellow, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor } from './commonColorVariable';
|
|
3
3
|
import { imIntegrationIcon, messagetextColor } from '../commonThemeColorVariable';
|
|
4
4
|
export default {
|
|
5
5
|
library: 'chat_components',
|
|
6
6
|
variables: {
|
|
7
|
-
|
|
8
|
-
active_bg_color: bubbleActiveBgColor,
|
|
9
|
-
messageBox_footer_text_color: '#5a616f'
|
|
10
|
-
},
|
|
11
|
-
messageBox: {
|
|
12
|
-
incoming_bg_color: incomingBubbleBgColor,
|
|
13
|
-
outgoing_bg_color: outgoingBubbleBgColor,
|
|
14
|
-
bg_color: '#f1f7fe',
|
|
15
|
-
failed_bg_color: '#362734',
|
|
16
|
-
text_color: messagetextColor
|
|
17
|
-
},
|
|
7
|
+
// ActionIcon: {},
|
|
18
8
|
actionIconWrapper: {
|
|
19
9
|
color: actionIconWrapperColor,
|
|
20
10
|
bg_color: '#2e2922',
|
|
21
11
|
border_color: '#453925'
|
|
22
12
|
},
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
13
|
+
attachmentBubble: {
|
|
14
|
+
bg_color: '#212121',
|
|
15
|
+
bg_color_failed: failedBg,
|
|
16
|
+
border_color: '#161515',
|
|
17
|
+
border_color_failed: failedBdr
|
|
28
18
|
},
|
|
29
19
|
attachmentBubbleInfo: {
|
|
30
20
|
fileName_color: '#e2e4e6',
|
|
31
|
-
|
|
21
|
+
fileName_color_failed: failedColor,
|
|
22
|
+
fileSize_color: '#999',
|
|
23
|
+
fileSize_color_failed: failedColor
|
|
32
24
|
},
|
|
33
|
-
|
|
25
|
+
// AttachmentIcon: {},
|
|
26
|
+
// Audio: {},
|
|
27
|
+
// AudioBubble: {},
|
|
28
|
+
articleBubble: {
|
|
34
29
|
bg_color: '#212121',
|
|
35
|
-
|
|
30
|
+
bg_color_failed: failedBg,
|
|
31
|
+
border_color: '#161515',
|
|
32
|
+
border_color_failed: failedBdr,
|
|
33
|
+
title_color: '#e2e4e6',
|
|
34
|
+
title_color_failed: failedColor,
|
|
35
|
+
summary_color: '#e2e4e6',
|
|
36
|
+
summary_color_failed: failedColor
|
|
36
37
|
},
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
imAutoMessageInfo: {
|
|
39
|
+
text_color: '#999'
|
|
39
40
|
},
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
// IMInfoBubble: {},
|
|
42
|
+
imIntegrationIcon,
|
|
43
|
+
// IMMessage: {},
|
|
44
|
+
// IMMessageContent: {},
|
|
45
|
+
imMessageMeta: {
|
|
46
|
+
time_color: '#999'
|
|
47
|
+
},
|
|
48
|
+
imPermaLink: {
|
|
49
|
+
url_color: '#d79835'
|
|
45
50
|
},
|
|
51
|
+
// IMReplyBubble: {},
|
|
52
|
+
// IMTextBubble: {},
|
|
46
53
|
imageBubble: {
|
|
47
|
-
bg_color: '#212121'
|
|
54
|
+
bg_color: '#212121',
|
|
55
|
+
bg_color_failed: failedBg,
|
|
56
|
+
alt_text_color: '#e2e4e6',
|
|
57
|
+
alt_text_color_failed: failedColor
|
|
48
58
|
},
|
|
59
|
+
// IMReplyBubble: {},
|
|
60
|
+
// InfoBubble: {},
|
|
61
|
+
// LazyLoadImage: {},
|
|
49
62
|
locationBubble: {
|
|
50
63
|
bg_color: '#212121',
|
|
51
|
-
|
|
52
|
-
border_color: '#161515'
|
|
64
|
+
bg_color_failed: failedBg,
|
|
65
|
+
border_color: '#161515',
|
|
66
|
+
border_color_failed: failedBdr,
|
|
67
|
+
url_color: primaryYellow,
|
|
68
|
+
url_color_failed: failedUrlColor
|
|
53
69
|
},
|
|
54
|
-
|
|
70
|
+
// MediaBubbleWrapper: {},
|
|
71
|
+
// Message: {},
|
|
72
|
+
// MessageAction: {},
|
|
73
|
+
// MessageActions: {},
|
|
74
|
+
// MessageActionsMore: {},
|
|
75
|
+
// MessageActionsWrapper: {},
|
|
76
|
+
// MessageAvatar: {},
|
|
77
|
+
messageBox: {
|
|
78
|
+
incoming_bg_color: incomingBubbleBgColor,
|
|
79
|
+
outgoing_bg_color: outgoingBubbleBgColor,
|
|
80
|
+
bg_color: '#f1f7fe',
|
|
81
|
+
failed_bg_color: failedBgWrapper,
|
|
82
|
+
text_color: messagetextColor
|
|
83
|
+
},
|
|
84
|
+
messageBubble: {
|
|
85
|
+
active_bg_color: bubbleActiveBgColor,
|
|
86
|
+
messageBox_footer_text_color: '#5a616f'
|
|
87
|
+
},
|
|
88
|
+
messageStatus: {
|
|
89
|
+
send_color: messageStatusSendColor,
|
|
90
|
+
read_color: '#d79835',
|
|
91
|
+
failed_color: messageStatusFailedColor
|
|
92
|
+
},
|
|
93
|
+
// MoreActionItem: {},
|
|
94
|
+
// ReplyBubble: {},
|
|
95
|
+
replyBubbleContent: {
|
|
55
96
|
bg_color: '#212121',
|
|
56
|
-
|
|
57
|
-
border_color: '#161515'
|
|
97
|
+
bg_color_failed: failedBg,
|
|
98
|
+
border_color: '#161515',
|
|
99
|
+
border_color_failed: failedBdr,
|
|
100
|
+
line_color: '#cddbf2',
|
|
101
|
+
line_color_failed: failedLine,
|
|
102
|
+
sender_color: '#e2e4e6',
|
|
103
|
+
sender_color_failed: failedColor,
|
|
104
|
+
content_color: '#e2e4e6',
|
|
105
|
+
content_color_failed: failedColor
|
|
58
106
|
},
|
|
59
|
-
|
|
60
|
-
|
|
107
|
+
replyBubbleHeader: {
|
|
108
|
+
text_color: '#e2e4e6',
|
|
109
|
+
text_color_failed: failedColor,
|
|
110
|
+
time_color: '#828994',
|
|
111
|
+
time_color_failed: failedColor
|
|
61
112
|
},
|
|
62
113
|
textBubble: {
|
|
114
|
+
text_color: '#e2e4e6',
|
|
115
|
+
text_color_failed: failedColor,
|
|
63
116
|
see_more_color: primaryYellow,
|
|
64
|
-
|
|
65
|
-
|
|
117
|
+
see_more_color_failed: failedUrlColor,
|
|
118
|
+
url_color: primaryYellow,
|
|
119
|
+
url_color_failed: failedUrlColor
|
|
120
|
+
} // Video: {},
|
|
121
|
+
// VideoBubble: {}
|
|
122
|
+
|
|
66
123
|
}
|
|
67
124
|
};
|
|
@@ -22,7 +22,8 @@ export default function VideoBubble(props) {
|
|
|
22
22
|
const {
|
|
23
23
|
customStyle,
|
|
24
24
|
customProps,
|
|
25
|
-
videoDetails
|
|
25
|
+
videoDetails,
|
|
26
|
+
isFailed
|
|
26
27
|
} = props;
|
|
27
28
|
const {
|
|
28
29
|
videoProps = dummyObject,
|
|
@@ -46,7 +47,9 @@ export default function VideoBubble(props) {
|
|
|
46
47
|
return /*#__PURE__*/React.createElement(MediaBubbleWrapper, _extends({
|
|
47
48
|
mediaDetails: videoDetails,
|
|
48
49
|
renderMedia: renderMedia
|
|
49
|
-
}, mediaBubbleWrapperProps
|
|
50
|
+
}, mediaBubbleWrapperProps, {
|
|
51
|
+
isFailed: isFailed
|
|
52
|
+
}));
|
|
50
53
|
}
|
|
51
54
|
VideoBubble.propTypes = videoBubblePropTypes;
|
|
52
55
|
VideoBubble.defaultProps = videoBubbleDefaultProps;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Icon from '@zohodesk/icon/es/Icon/Icon';
|
|
4
|
+
export default function IconComponent(props) {
|
|
5
|
+
return /*#__PURE__*/React.createElement(Icon, props, /*#__PURE__*/React.createElement("svg", {
|
|
6
|
+
id: "Layer_1",
|
|
7
|
+
"data-name": "Layer 1",
|
|
8
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9
|
+
viewBox: "0 0 32.19 32.94"
|
|
10
|
+
}, " ", /*#__PURE__*/React.createElement("defs", null, " ", /*#__PURE__*/React.createElement("style", {
|
|
11
|
+
dangerouslySetInnerHTML: {
|
|
12
|
+
__html: `
|
|
13
|
+
.cls-1 {
|
|
14
|
+
fill: #c8cadb;
|
|
15
|
+
opacity: 0.5;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.cls-2 {
|
|
19
|
+
fill: #010101;
|
|
20
|
+
}
|
|
21
|
+
`
|
|
22
|
+
}
|
|
23
|
+
}), " "), " ", /*#__PURE__*/React.createElement("rect", {
|
|
24
|
+
className: "cls-1",
|
|
25
|
+
x: "5.35",
|
|
26
|
+
y: "6.1",
|
|
27
|
+
width: "26.84",
|
|
28
|
+
height: "26.84",
|
|
29
|
+
rx: "5"
|
|
30
|
+
}), " ", /*#__PURE__*/React.createElement("g", null, " ", /*#__PURE__*/React.createElement("path", {
|
|
31
|
+
className: "path-0",
|
|
32
|
+
d: "M21.67,20.88H14.39a1,1,0,1,0,0,2h7.28a1,1,0,0,0,0-2Z"
|
|
33
|
+
}), " ", /*#__PURE__*/React.createElement("path", {
|
|
34
|
+
className: "path-1",
|
|
35
|
+
d: "M9.15,20.31a1.57,1.57,0,1,0,1.57,1.57A1.57,1.57,0,0,0,9.15,20.31Z"
|
|
36
|
+
}), " ", /*#__PURE__*/React.createElement("path", {
|
|
37
|
+
className: "path-2",
|
|
38
|
+
d: "M21.67,13.54H14.39a1,1,0,0,0,0,2h7.28a1,1,0,0,0,0-2Z"
|
|
39
|
+
}), " ", /*#__PURE__*/React.createElement("path", {
|
|
40
|
+
className: "path-3",
|
|
41
|
+
d: "M9.15,13a1.57,1.57,0,1,0,1.57,1.57A1.57,1.57,0,0,0,9.15,13Z"
|
|
42
|
+
}), " ", /*#__PURE__*/React.createElement("path", {
|
|
43
|
+
className: "path-4",
|
|
44
|
+
d: "M29.75,10.13,21.12.34A1,1,0,0,0,20.37,0H4.11A4.11,4.11,0,0,0,0,4.11V25.88A4.12,4.12,0,0,0,4.11,30H25.89A4.12,4.12,0,0,0,30,25.88V10.79A1,1,0,0,0,29.75,10.13ZM25.89,28H4.11A2.12,2.12,0,0,1,2,25.88V4.11A2.12,2.12,0,0,1,4.11,2H19.77V7.94a3.5,3.5,0,0,0,3.5,3.5H28V25.88A2.12,2.12,0,0,1,25.89,28Z"
|
|
45
|
+
}), " "), " "));
|
|
46
|
+
}
|
|
47
|
+
IconComponent.propTypes = Icon.propTypes;
|
|
@@ -2,7 +2,7 @@ export { default as Audio } from './Audio';
|
|
|
2
2
|
export { default as Code } from './Code';
|
|
3
3
|
export { default as Image } from './Image';
|
|
4
4
|
export { default as Pdf } from './Pdf';
|
|
5
|
-
export { default as
|
|
5
|
+
export { default as Text } from './Text';
|
|
6
6
|
export { default as Unknown } from './Unknown';
|
|
7
7
|
export { default as Video } from './Video';
|
|
8
8
|
export { default as Zip } from './Zip';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** ** Libraries *** */
|
|
2
|
-
import React, { useMemo
|
|
2
|
+
import React, { useMemo } from 'react';
|
|
3
3
|
/** ** Hooks *** */
|
|
4
4
|
|
|
5
5
|
import useMergeStyle from '@zohodesk/hooks/es/utils/useMergeStyle';
|
|
@@ -17,12 +17,16 @@ import style from './css/ArticleBubble.module.css';
|
|
|
17
17
|
/** ** Icons *** */
|
|
18
18
|
|
|
19
19
|
import ArticleIcon from '../../icons/iconSrc/common/Article';
|
|
20
|
+
/** ** Methods *** */
|
|
21
|
+
|
|
22
|
+
import cssJSLogic from './css/cssJSLogic';
|
|
20
23
|
export default function ArticleBubble(props) {
|
|
21
24
|
const {
|
|
22
25
|
customStyle,
|
|
23
26
|
info,
|
|
24
27
|
articleDetails,
|
|
25
|
-
onClick: propOnClick
|
|
28
|
+
onClick: propOnClick,
|
|
29
|
+
isFailed
|
|
26
30
|
} = props;
|
|
27
31
|
const {
|
|
28
32
|
title,
|
|
@@ -41,7 +45,16 @@ export default function ArticleBubble(props) {
|
|
|
41
45
|
const iconCustomStyle = useMemo(() => ({
|
|
42
46
|
base: newStyle.articleIcon
|
|
43
47
|
}), [newStyle.articleIcon]);
|
|
44
|
-
|
|
48
|
+
/* css classnames added based on logic */
|
|
49
|
+
|
|
50
|
+
const {
|
|
51
|
+
articleBubbleClass
|
|
52
|
+
} = cssJSLogic({
|
|
53
|
+
isFailed
|
|
54
|
+
}, newStyle);
|
|
55
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
56
|
+
className: articleBubbleClass
|
|
57
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
45
58
|
align: "vertical",
|
|
46
59
|
alignBox: "row",
|
|
47
60
|
isCover: false
|
|
@@ -1,22 +1,32 @@
|
|
|
1
1
|
.articleWrapper {
|
|
2
2
|
display: block;
|
|
3
|
-
/* margin: 4px 0 2px; */
|
|
4
3
|
padding: var(--zd_size8) var(--zd_size10) ;
|
|
5
4
|
background-color: var(--imlib_chat_components_articleBubble_bg_color);
|
|
6
5
|
border-radius: 3px;
|
|
7
6
|
cursor: pointer;
|
|
8
7
|
border: 1px solid var(--imlib_chat_components_articleBubble_border_color);
|
|
8
|
+
margin-top: var(--zd_size4) ;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.failedArticleBubbleClass .articleWrapper{
|
|
12
|
+
background-color: var(--imlib_chat_components_articleBubble_bg_color_failed);
|
|
13
|
+
border-color: var(--imlib_chat_components_articleBubble_border_color_failed);
|
|
9
14
|
}
|
|
10
15
|
|
|
11
16
|
.title {
|
|
12
|
-
color: var(--
|
|
17
|
+
color: var(--imlib_chat_components_articleBubble_title_color);
|
|
13
18
|
font-size: var(--zd_font_size15) ;
|
|
14
19
|
line-height: 1.5;
|
|
15
20
|
composes: dotted from "../../css/common.module.css";
|
|
21
|
+
font-family: var(--zd_semibold);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.failedArticleBubbleClass .title{
|
|
25
|
+
color: var(--imlib_chat_components_articleBubble_title_color_failed);
|
|
16
26
|
}
|
|
17
27
|
|
|
18
28
|
.summary {
|
|
19
|
-
color: var(--
|
|
29
|
+
color: var(--imlib_chat_components_articleBubble_summary_color);
|
|
20
30
|
font-size: var(--zd_font_size13) ;
|
|
21
31
|
line-height: 1.5;
|
|
22
32
|
max-height: var(--zd_size40) ;
|
|
@@ -27,6 +37,10 @@
|
|
|
27
37
|
overflow: hidden;
|
|
28
38
|
}
|
|
29
39
|
|
|
40
|
+
.failedArticleBubbleClass .summary{
|
|
41
|
+
color: var(--imlib_chat_components_articleBubble_summary_color_failed);
|
|
42
|
+
}
|
|
43
|
+
|
|
30
44
|
.articleIcon {
|
|
31
45
|
display: flex;
|
|
32
46
|
flex-shrink: 0;
|
|
@@ -46,6 +60,7 @@
|
|
|
46
60
|
|
|
47
61
|
.content{
|
|
48
62
|
composes: dotted from "../../css/common.module.css";
|
|
63
|
+
font-size: var(--zd_font_size13) ;
|
|
49
64
|
}
|
|
50
65
|
|
|
51
66
|
[dir=ltr] .content{
|