@zohoim/chat-components 0.0.18 → 0.0.20
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/css/ActionIcon.module.css +3 -4
- package/es/AttachmentBubble/AttachmentBubble.js +9 -6
- package/es/AttachmentBubble/css/cssJSLogic.js +2 -3
- package/es/AttachmentBubble/props/propTypes.js +2 -1
- package/es/AttachmentBubbleInfo/AttachmentBubbleInfo.js +2 -1
- package/es/AttachmentBubbleInfo/css/AttachmentBubbleInfo.module.css +1 -0
- package/es/ImageBubble/ImageBubble.js +11 -5
- package/es/ImageBubble/css/ImageBubble.module.css +8 -1
- package/es/ImageBubble/css/cssJSLogic.js +4 -2
- package/es/ImageBubble/props/propTypes.js +3 -1
- package/es/LocationBubble/LocationBubble.js +13 -13
- package/es/LocationBubble/css/LocationBubble.module.css +11 -10
- package/es/Message/Message.js +3 -2
- package/es/Message/props/propTypes.js +1 -0
- package/es/MessageActions/MessageActions.js +4 -6
- package/es/MessageActionsMore/MessageActionsMore.js +1 -1
- package/es/MessageActionsWrapper/MessageActionsWrapper.js +2 -1
- package/es/MessageBox/css/MessageBox.module.css +0 -3
- package/es/MessageBubble/MessageBubble.js +14 -8
- package/es/MessageBubble/css/MessageBubble.module.css +33 -23
- package/es/MessageBubble/css/cssJSLogic.js +7 -1
- package/es/MessageStatus/MessageStatus.js +7 -2
- package/es/MessageStatus/css/MessageStatus.module.css +8 -3
- package/es/ReplyBubble/ReplyBubble.js +14 -5
- package/es/ReplyBubble/css/ReplyBubble.module.css +6 -0
- package/es/ReplyBubble/css/cssJSLogic.js +14 -0
- package/es/ReplyBubbleContent/ReplyBubbleContent.js +4 -2
- package/es/ReplyBubbleContent/props/propTypes.js +2 -1
- package/es/ReplyBubbleHeader/ReplyBubbleHeader.js +8 -2
- package/es/ReplyBubbleHeader/css/ReplyBubbleHeader.module.css +1 -1
- package/es/TextBubble/css/TextBubble.module.css +8 -6
- package/es/Theme/themeVariables/commonThemeColorVariable.js +4 -0
- package/es/Theme/themeVariables/dark/blueTheme.js +19 -8
- package/es/Theme/themeVariables/dark/greenTheme.js +19 -8
- package/es/Theme/themeVariables/dark/orangeTheme.js +19 -8
- package/es/Theme/themeVariables/dark/redTheme.js +19 -8
- package/es/Theme/themeVariables/dark/yellowTheme.js +19 -8
- package/es/Theme/themeVariables/light/blueTheme.js +19 -8
- package/es/Theme/themeVariables/light/commonColorVariable.js +6 -2
- package/es/Theme/themeVariables/light/greenTheme.js +19 -8
- package/es/Theme/themeVariables/light/orangeTheme.js +19 -8
- package/es/Theme/themeVariables/light/redTheme.js +19 -8
- package/es/Theme/themeVariables/light/yellowTheme.js +19 -8
- package/es/Theme/themeVariables/pureDark/blueTheme.js +19 -8
- package/es/Theme/themeVariables/pureDark/greenTheme.js +19 -8
- package/es/Theme/themeVariables/pureDark/orangeTheme.js +19 -8
- package/es/Theme/themeVariables/pureDark/redTheme.js +19 -8
- package/es/Theme/themeVariables/pureDark/yellowTheme.js +19 -8
- package/es/Video/css/Video.module.css +1 -0
- package/es/VideoBubble/VideoBubble.js +12 -2
- package/es/VideoBubble/css/VideoBubble.module.css +9 -1
- package/es/VideoBubble/css/cssJSLogic.js +14 -0
- package/es/im/ArticleBubble/css/ArticleBubble.module.css +2 -2
- package/es/im/IMIntegrationIcon/IMIntegrationIcon.js +17 -31
- package/es/im/IMIntegrationIcon/css/IMIntegrationIcon.module.css +10 -2
- package/es/im/IMMessage/IMMessage.js +24 -13
- package/es/im/IMMessage/css/cssJSLogic.js +4 -12
- package/es/im/IMMessage/props/defaultProps.js +3 -1
- package/es/im/IMMessage/props/propTypes.js +2 -1
- package/es/im/IMMessageContent/IMMessageContent.js +14 -7
- package/es/im/IMMessageContent/css/IMMessageContent.module.css +1 -0
- package/es/im/IMMessageContent/props/defaultProps.js +2 -1
- package/es/im/IMMessageContent/props/propTypes.js +3 -1
- package/package.json +5 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable camelcase */
|
|
2
|
-
import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, messagetextColor, primaryRed, white, black, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor, imIntegrationIcon } from './commonColorVariable';
|
|
2
|
+
import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, messagetextColor, primaryRed, white, black, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor, imIntegrationIcon, imTtIcon } from './commonColorVariable';
|
|
3
3
|
export default {
|
|
4
4
|
library: 'chat_components',
|
|
5
5
|
variables: {
|
|
@@ -19,7 +19,7 @@ export default {
|
|
|
19
19
|
fileName_color: black,
|
|
20
20
|
fileName_color_failed: failedColor,
|
|
21
21
|
fileSize_color: '#5a616f',
|
|
22
|
-
fileSize_color_failed:
|
|
22
|
+
fileSize_color_failed: '#788190'
|
|
23
23
|
},
|
|
24
24
|
// AttachmentIcon: {},
|
|
25
25
|
// Audio: {},
|
|
@@ -39,8 +39,11 @@ export default {
|
|
|
39
39
|
},
|
|
40
40
|
// IMInfoBubble: {},
|
|
41
41
|
imIntegrationIcon,
|
|
42
|
+
imTtIcon,
|
|
42
43
|
// IMMessage: {},
|
|
43
|
-
|
|
44
|
+
imMessageContent: {
|
|
45
|
+
text_color: '#5a616f'
|
|
46
|
+
},
|
|
44
47
|
imMessageMeta: {
|
|
45
48
|
time_color: '#5a616f'
|
|
46
49
|
},
|
|
@@ -53,7 +56,9 @@ export default {
|
|
|
53
56
|
bg_color: white,
|
|
54
57
|
bg_color_failed: failedBg,
|
|
55
58
|
alt_text_color: black,
|
|
56
|
-
alt_text_color_failed: failedColor
|
|
59
|
+
alt_text_color_failed: failedColor,
|
|
60
|
+
border_color: '#ebf0f5',
|
|
61
|
+
border_color_failed: failedBdr
|
|
57
62
|
},
|
|
58
63
|
// IMReplyBubble: {},
|
|
59
64
|
// InfoBubble: {},
|
|
@@ -90,7 +95,10 @@ export default {
|
|
|
90
95
|
failed_color: messageStatusFailedColor
|
|
91
96
|
},
|
|
92
97
|
// MoreActionItem: {},
|
|
93
|
-
|
|
98
|
+
replyBubble: {
|
|
99
|
+
border_color: '#ebf0f5',
|
|
100
|
+
border_color_failed: failedBdr
|
|
101
|
+
},
|
|
94
102
|
replyBubbleContent: {
|
|
95
103
|
bg_color: white,
|
|
96
104
|
bg_color_failed: failedBg,
|
|
@@ -116,8 +124,11 @@ export default {
|
|
|
116
124
|
see_more_color_failed: failedUrlColor,
|
|
117
125
|
url_color: primaryRed,
|
|
118
126
|
url_color_failed: failedUrlColor
|
|
119
|
-
}
|
|
120
|
-
//
|
|
121
|
-
|
|
127
|
+
},
|
|
128
|
+
// Video: {},
|
|
129
|
+
videoBubble: {
|
|
130
|
+
border_color: '#ebf0f5',
|
|
131
|
+
border_color_failed: failedBdr
|
|
132
|
+
}
|
|
122
133
|
}
|
|
123
134
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable camelcase */
|
|
2
|
-
import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, messagetextColor, primaryYellow, white, black, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor, imIntegrationIcon } from './commonColorVariable';
|
|
2
|
+
import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, messagetextColor, primaryYellow, white, black, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor, imIntegrationIcon, imTtIcon } from './commonColorVariable';
|
|
3
3
|
export default {
|
|
4
4
|
library: 'chat_components',
|
|
5
5
|
variables: {
|
|
@@ -19,7 +19,7 @@ export default {
|
|
|
19
19
|
fileName_color: black,
|
|
20
20
|
fileName_color_failed: failedColor,
|
|
21
21
|
fileSize_color: '#5a616f',
|
|
22
|
-
fileSize_color_failed:
|
|
22
|
+
fileSize_color_failed: '#788190'
|
|
23
23
|
},
|
|
24
24
|
// AttachmentIcon: {},
|
|
25
25
|
// Audio: {},
|
|
@@ -39,8 +39,11 @@ export default {
|
|
|
39
39
|
},
|
|
40
40
|
// IMInfoBubble: {},
|
|
41
41
|
imIntegrationIcon,
|
|
42
|
+
imTtIcon,
|
|
42
43
|
// IMMessage: {},
|
|
43
|
-
|
|
44
|
+
imMessageContent: {
|
|
45
|
+
text_color: '#5a616f'
|
|
46
|
+
},
|
|
44
47
|
imMessageMeta: {
|
|
45
48
|
time_color: '#5a616f'
|
|
46
49
|
},
|
|
@@ -53,7 +56,9 @@ export default {
|
|
|
53
56
|
bg_color: white,
|
|
54
57
|
bg_color_failed: failedBg,
|
|
55
58
|
alt_text_color: black,
|
|
56
|
-
alt_text_color_failed: failedColor
|
|
59
|
+
alt_text_color_failed: failedColor,
|
|
60
|
+
border_color: '#ebf0f5',
|
|
61
|
+
border_color_failed: failedBdr
|
|
57
62
|
},
|
|
58
63
|
// IMReplyBubble: {},
|
|
59
64
|
// InfoBubble: {},
|
|
@@ -90,7 +95,10 @@ export default {
|
|
|
90
95
|
failed_color: messageStatusFailedColor
|
|
91
96
|
},
|
|
92
97
|
// MoreActionItem: {},
|
|
93
|
-
|
|
98
|
+
replyBubble: {
|
|
99
|
+
border_color: '#ebf0f5',
|
|
100
|
+
border_color_failed: failedBdr
|
|
101
|
+
},
|
|
94
102
|
replyBubbleContent: {
|
|
95
103
|
bg_color: white,
|
|
96
104
|
bg_color_failed: failedBg,
|
|
@@ -116,8 +124,11 @@ export default {
|
|
|
116
124
|
see_more_color_failed: failedUrlColor,
|
|
117
125
|
url_color: primaryYellow,
|
|
118
126
|
url_color_failed: failedUrlColor
|
|
119
|
-
}
|
|
120
|
-
//
|
|
121
|
-
|
|
127
|
+
},
|
|
128
|
+
// Video: {},
|
|
129
|
+
videoBubble: {
|
|
130
|
+
border_color: '#ebf0f5',
|
|
131
|
+
border_color_failed: failedBdr
|
|
132
|
+
}
|
|
122
133
|
}
|
|
123
134
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable camelcase */
|
|
2
2
|
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryBlue, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor } from './commonColorVariable';
|
|
3
|
-
import { imIntegrationIcon, messagetextColor } from '../commonThemeColorVariable';
|
|
3
|
+
import { imIntegrationIcon, imTtIcon, messagetextColor } from '../commonThemeColorVariable';
|
|
4
4
|
export default {
|
|
5
5
|
library: 'chat_components',
|
|
6
6
|
variables: {
|
|
@@ -20,7 +20,7 @@ export default {
|
|
|
20
20
|
fileName_color: '#e2e4e6',
|
|
21
21
|
fileName_color_failed: failedColor,
|
|
22
22
|
fileSize_color: '#999',
|
|
23
|
-
fileSize_color_failed:
|
|
23
|
+
fileSize_color_failed: '#788190'
|
|
24
24
|
},
|
|
25
25
|
// AttachmentIcon: {},
|
|
26
26
|
// Audio: {},
|
|
@@ -40,8 +40,11 @@ export default {
|
|
|
40
40
|
},
|
|
41
41
|
// IMInfoBubble: {},
|
|
42
42
|
imIntegrationIcon,
|
|
43
|
+
imTtIcon,
|
|
43
44
|
// IMMessage: {},
|
|
44
|
-
|
|
45
|
+
imMessageContent: {
|
|
46
|
+
text_color: '#a8b0bd'
|
|
47
|
+
},
|
|
45
48
|
imMessageMeta: {
|
|
46
49
|
time_color: '#999'
|
|
47
50
|
},
|
|
@@ -54,7 +57,9 @@ export default {
|
|
|
54
57
|
bg_color: '#212121',
|
|
55
58
|
bg_color_failed: failedBg,
|
|
56
59
|
alt_text_color: '#e2e4e6',
|
|
57
|
-
alt_text_color_failed: failedColor
|
|
60
|
+
alt_text_color_failed: failedColor,
|
|
61
|
+
border_color: '#161515',
|
|
62
|
+
border_color_failed: failedBdr
|
|
58
63
|
},
|
|
59
64
|
// IMReplyBubble: {},
|
|
60
65
|
// InfoBubble: {},
|
|
@@ -91,7 +96,10 @@ export default {
|
|
|
91
96
|
failed_color: messageStatusFailedColor
|
|
92
97
|
},
|
|
93
98
|
// MoreActionItem: {},
|
|
94
|
-
|
|
99
|
+
replyBubble: {
|
|
100
|
+
border_color: '#161515',
|
|
101
|
+
border_color_failed: failedBdr
|
|
102
|
+
},
|
|
95
103
|
replyBubbleContent: {
|
|
96
104
|
bg_color: '#212121',
|
|
97
105
|
bg_color_failed: failedBg,
|
|
@@ -117,8 +125,11 @@ export default {
|
|
|
117
125
|
see_more_color_failed: failedUrlColor,
|
|
118
126
|
url_color: primaryBlue,
|
|
119
127
|
url_color_failed: failedUrlColor
|
|
120
|
-
}
|
|
121
|
-
//
|
|
122
|
-
|
|
128
|
+
},
|
|
129
|
+
// Video: {},
|
|
130
|
+
videoBubble: {
|
|
131
|
+
border_color: '#161515',
|
|
132
|
+
border_color_failed: failedBdr
|
|
133
|
+
}
|
|
123
134
|
}
|
|
124
135
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable camelcase */
|
|
2
2
|
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryGreen, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor } from './commonColorVariable';
|
|
3
|
-
import { imIntegrationIcon, messagetextColor } from '../commonThemeColorVariable';
|
|
3
|
+
import { imIntegrationIcon, imTtIcon, messagetextColor } from '../commonThemeColorVariable';
|
|
4
4
|
export default {
|
|
5
5
|
library: 'chat_components',
|
|
6
6
|
variables: {
|
|
@@ -20,7 +20,7 @@ export default {
|
|
|
20
20
|
fileName_color: '#e2e4e6',
|
|
21
21
|
fileName_color_failed: failedColor,
|
|
22
22
|
fileSize_color: '#999',
|
|
23
|
-
fileSize_color_failed:
|
|
23
|
+
fileSize_color_failed: '#788190'
|
|
24
24
|
},
|
|
25
25
|
// AttachmentIcon: {},
|
|
26
26
|
// Audio: {},
|
|
@@ -40,8 +40,11 @@ export default {
|
|
|
40
40
|
},
|
|
41
41
|
// IMInfoBubble: {},
|
|
42
42
|
imIntegrationIcon,
|
|
43
|
+
imTtIcon,
|
|
43
44
|
// IMMessage: {},
|
|
44
|
-
|
|
45
|
+
imMessageContent: {
|
|
46
|
+
text_color: '#a8b0bd'
|
|
47
|
+
},
|
|
45
48
|
imMessageMeta: {
|
|
46
49
|
time_color: '#999'
|
|
47
50
|
},
|
|
@@ -54,7 +57,9 @@ export default {
|
|
|
54
57
|
bg_color: '#212121',
|
|
55
58
|
bg_color_failed: failedBg,
|
|
56
59
|
alt_text_color: '#e2e4e6',
|
|
57
|
-
alt_text_color_failed: failedColor
|
|
60
|
+
alt_text_color_failed: failedColor,
|
|
61
|
+
border_color: '#161515',
|
|
62
|
+
border_color_failed: failedBdr
|
|
58
63
|
},
|
|
59
64
|
// IMReplyBubble: {},
|
|
60
65
|
// InfoBubble: {},
|
|
@@ -91,7 +96,10 @@ export default {
|
|
|
91
96
|
failed_color: messageStatusFailedColor
|
|
92
97
|
},
|
|
93
98
|
// MoreActionItem: {},
|
|
94
|
-
|
|
99
|
+
replyBubble: {
|
|
100
|
+
border_color: '#161515',
|
|
101
|
+
border_color_failed: failedBdr
|
|
102
|
+
},
|
|
95
103
|
replyBubbleContent: {
|
|
96
104
|
bg_color: '#212121',
|
|
97
105
|
bg_color_failed: failedBg,
|
|
@@ -117,8 +125,11 @@ export default {
|
|
|
117
125
|
see_more_color_failed: failedUrlColor,
|
|
118
126
|
url_color: primaryGreen,
|
|
119
127
|
url_color_failed: failedUrlColor
|
|
120
|
-
}
|
|
121
|
-
//
|
|
122
|
-
|
|
128
|
+
},
|
|
129
|
+
// Video: {},
|
|
130
|
+
videoBubble: {
|
|
131
|
+
border_color: '#161515',
|
|
132
|
+
border_color_failed: failedBdr
|
|
133
|
+
}
|
|
123
134
|
}
|
|
124
135
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable camelcase */
|
|
2
2
|
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryOrange, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor } from './commonColorVariable';
|
|
3
|
-
import { imIntegrationIcon, messagetextColor } from '../commonThemeColorVariable';
|
|
3
|
+
import { imIntegrationIcon, imTtIcon, messagetextColor } from '../commonThemeColorVariable';
|
|
4
4
|
export default {
|
|
5
5
|
library: 'chat_components',
|
|
6
6
|
variables: {
|
|
@@ -20,7 +20,7 @@ export default {
|
|
|
20
20
|
fileName_color: '#e2e4e6',
|
|
21
21
|
fileName_color_failed: failedColor,
|
|
22
22
|
fileSize_color: '#999',
|
|
23
|
-
fileSize_color_failed:
|
|
23
|
+
fileSize_color_failed: '#788190'
|
|
24
24
|
},
|
|
25
25
|
// AttachmentIcon: {},
|
|
26
26
|
// Audio: {},
|
|
@@ -40,8 +40,11 @@ export default {
|
|
|
40
40
|
},
|
|
41
41
|
// IMInfoBubble: {},
|
|
42
42
|
imIntegrationIcon,
|
|
43
|
+
imTtIcon,
|
|
43
44
|
// IMMessage: {},
|
|
44
|
-
|
|
45
|
+
imMessageContent: {
|
|
46
|
+
text_color: '#a8b0bd'
|
|
47
|
+
},
|
|
45
48
|
imMessageMeta: {
|
|
46
49
|
time_color: '#999'
|
|
47
50
|
},
|
|
@@ -54,7 +57,9 @@ export default {
|
|
|
54
57
|
bg_color: '#212121',
|
|
55
58
|
bg_color_failed: failedBg,
|
|
56
59
|
alt_text_color: '#e2e4e6',
|
|
57
|
-
alt_text_color_failed: failedColor
|
|
60
|
+
alt_text_color_failed: failedColor,
|
|
61
|
+
border_color: '#161515',
|
|
62
|
+
border_color_failed: failedBdr
|
|
58
63
|
},
|
|
59
64
|
// IMReplyBubble: {},
|
|
60
65
|
// InfoBubble: {},
|
|
@@ -91,7 +96,10 @@ export default {
|
|
|
91
96
|
failed_color: messageStatusFailedColor
|
|
92
97
|
},
|
|
93
98
|
// MoreActionItem: {},
|
|
94
|
-
|
|
99
|
+
replyBubble: {
|
|
100
|
+
border_color: '#161515',
|
|
101
|
+
border_color_failed: failedBdr
|
|
102
|
+
},
|
|
95
103
|
replyBubbleContent: {
|
|
96
104
|
bg_color: '#212121',
|
|
97
105
|
bg_color_failed: failedBg,
|
|
@@ -117,8 +125,11 @@ export default {
|
|
|
117
125
|
see_more_color_failed: failedUrlColor,
|
|
118
126
|
url_color: primaryOrange,
|
|
119
127
|
url_color_failed: failedUrlColor
|
|
120
|
-
}
|
|
121
|
-
//
|
|
122
|
-
|
|
128
|
+
},
|
|
129
|
+
// Video: {},
|
|
130
|
+
videoBubble: {
|
|
131
|
+
border_color: '#161515',
|
|
132
|
+
border_color_failed: failedBdr
|
|
133
|
+
}
|
|
123
134
|
}
|
|
124
135
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable camelcase */
|
|
2
2
|
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryRed, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor } from './commonColorVariable';
|
|
3
|
-
import { imIntegrationIcon, messagetextColor } from '../commonThemeColorVariable';
|
|
3
|
+
import { imIntegrationIcon, imTtIcon, messagetextColor } from '../commonThemeColorVariable';
|
|
4
4
|
export default {
|
|
5
5
|
library: 'chat_components',
|
|
6
6
|
variables: {
|
|
@@ -20,7 +20,7 @@ export default {
|
|
|
20
20
|
fileName_color: '#e2e4e6',
|
|
21
21
|
fileName_color_failed: failedColor,
|
|
22
22
|
fileSize_color: '#999',
|
|
23
|
-
fileSize_color_failed:
|
|
23
|
+
fileSize_color_failed: '#788190'
|
|
24
24
|
},
|
|
25
25
|
// AttachmentIcon: {},
|
|
26
26
|
// Audio: {},
|
|
@@ -40,8 +40,11 @@ export default {
|
|
|
40
40
|
},
|
|
41
41
|
// IMInfoBubble: {},
|
|
42
42
|
imIntegrationIcon,
|
|
43
|
+
imTtIcon,
|
|
43
44
|
// IMMessage: {},
|
|
44
|
-
|
|
45
|
+
imMessageContent: {
|
|
46
|
+
text_color: '#a8b0bd'
|
|
47
|
+
},
|
|
45
48
|
imMessageMeta: {
|
|
46
49
|
time_color: '#999'
|
|
47
50
|
},
|
|
@@ -54,7 +57,9 @@ export default {
|
|
|
54
57
|
bg_color: '#212121',
|
|
55
58
|
bg_color_failed: failedBg,
|
|
56
59
|
alt_text_color: '#e2e4e6',
|
|
57
|
-
alt_text_color_failed: failedColor
|
|
60
|
+
alt_text_color_failed: failedColor,
|
|
61
|
+
border_color: '#161515',
|
|
62
|
+
border_color_failed: failedBdr
|
|
58
63
|
},
|
|
59
64
|
// IMReplyBubble: {},
|
|
60
65
|
// InfoBubble: {},
|
|
@@ -91,7 +96,10 @@ export default {
|
|
|
91
96
|
failed_color: messageStatusFailedColor
|
|
92
97
|
},
|
|
93
98
|
// MoreActionItem: {},
|
|
94
|
-
|
|
99
|
+
replyBubble: {
|
|
100
|
+
border_color: '#161515',
|
|
101
|
+
border_color_failed: failedBdr
|
|
102
|
+
},
|
|
95
103
|
replyBubbleContent: {
|
|
96
104
|
bg_color: '#212121',
|
|
97
105
|
bg_color_failed: failedBg,
|
|
@@ -117,8 +125,11 @@ export default {
|
|
|
117
125
|
see_more_color_failed: failedUrlColor,
|
|
118
126
|
url_color: primaryRed,
|
|
119
127
|
url_color_failed: failedUrlColor
|
|
120
|
-
}
|
|
121
|
-
//
|
|
122
|
-
|
|
128
|
+
},
|
|
129
|
+
// Video: {},
|
|
130
|
+
videoBubble: {
|
|
131
|
+
border_color: '#161515',
|
|
132
|
+
border_color_failed: failedBdr
|
|
133
|
+
}
|
|
123
134
|
}
|
|
124
135
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable camelcase */
|
|
2
2
|
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, messageStatusSendColor, messageStatusFailedColor, actionIconWrapperColor, primaryYellow, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor } from './commonColorVariable';
|
|
3
|
-
import { imIntegrationIcon, messagetextColor } from '../commonThemeColorVariable';
|
|
3
|
+
import { imIntegrationIcon, imTtIcon, messagetextColor } from '../commonThemeColorVariable';
|
|
4
4
|
export default {
|
|
5
5
|
library: 'chat_components',
|
|
6
6
|
variables: {
|
|
@@ -20,7 +20,7 @@ export default {
|
|
|
20
20
|
fileName_color: '#e2e4e6',
|
|
21
21
|
fileName_color_failed: failedColor,
|
|
22
22
|
fileSize_color: '#999',
|
|
23
|
-
fileSize_color_failed:
|
|
23
|
+
fileSize_color_failed: '#788190'
|
|
24
24
|
},
|
|
25
25
|
// AttachmentIcon: {},
|
|
26
26
|
// Audio: {},
|
|
@@ -40,8 +40,11 @@ export default {
|
|
|
40
40
|
},
|
|
41
41
|
// IMInfoBubble: {},
|
|
42
42
|
imIntegrationIcon,
|
|
43
|
+
imTtIcon,
|
|
43
44
|
// IMMessage: {},
|
|
44
|
-
|
|
45
|
+
imMessageContent: {
|
|
46
|
+
text_color: '#a8b0bd'
|
|
47
|
+
},
|
|
45
48
|
imMessageMeta: {
|
|
46
49
|
time_color: '#999'
|
|
47
50
|
},
|
|
@@ -54,7 +57,9 @@ export default {
|
|
|
54
57
|
bg_color: '#212121',
|
|
55
58
|
bg_color_failed: failedBg,
|
|
56
59
|
alt_text_color: '#e2e4e6',
|
|
57
|
-
alt_text_color_failed: failedColor
|
|
60
|
+
alt_text_color_failed: failedColor,
|
|
61
|
+
border_color: '#161515',
|
|
62
|
+
border_color_failed: failedBdr
|
|
58
63
|
},
|
|
59
64
|
// IMReplyBubble: {},
|
|
60
65
|
// InfoBubble: {},
|
|
@@ -91,7 +96,10 @@ export default {
|
|
|
91
96
|
failed_color: messageStatusFailedColor
|
|
92
97
|
},
|
|
93
98
|
// MoreActionItem: {},
|
|
94
|
-
|
|
99
|
+
replyBubble: {
|
|
100
|
+
border_color: '#161515',
|
|
101
|
+
border_color_failed: failedBdr
|
|
102
|
+
},
|
|
95
103
|
replyBubbleContent: {
|
|
96
104
|
bg_color: '#212121',
|
|
97
105
|
bg_color_failed: failedBg,
|
|
@@ -117,8 +125,11 @@ export default {
|
|
|
117
125
|
see_more_color_failed: failedUrlColor,
|
|
118
126
|
url_color: primaryYellow,
|
|
119
127
|
url_color_failed: failedUrlColor
|
|
120
|
-
}
|
|
121
|
-
//
|
|
122
|
-
|
|
128
|
+
},
|
|
129
|
+
// Video: {},
|
|
130
|
+
videoBubble: {
|
|
131
|
+
border_color: '#161515',
|
|
132
|
+
border_color_failed: failedBdr
|
|
133
|
+
}
|
|
123
134
|
}
|
|
124
135
|
};
|
|
@@ -18,6 +18,9 @@ import style from './css/VideoBubble.module.css';
|
|
|
18
18
|
import { Box } from '@zohodesk/components/es/Layout';
|
|
19
19
|
import MediaBubbleWrapper from '../MediaBubbleWrapper/MediaBubbleWrapper';
|
|
20
20
|
import Video from '../Video/Video';
|
|
21
|
+
/** ** Methods *** */
|
|
22
|
+
|
|
23
|
+
import cssJSLogic from './css/cssJSLogic';
|
|
21
24
|
export default function VideoBubble(props) {
|
|
22
25
|
const {
|
|
23
26
|
customStyle,
|
|
@@ -32,18 +35,25 @@ export default function VideoBubble(props) {
|
|
|
32
35
|
/* External CSS Customization */
|
|
33
36
|
|
|
34
37
|
const newStyle = useMergeStyle(style, customStyle);
|
|
38
|
+
/* css classnames added based on logic */
|
|
39
|
+
|
|
40
|
+
const {
|
|
41
|
+
videoBubbleClass
|
|
42
|
+
} = cssJSLogic({
|
|
43
|
+
isFailed
|
|
44
|
+
}, newStyle);
|
|
35
45
|
const renderMedia = useCallback(_ref => {
|
|
36
46
|
let {
|
|
37
47
|
fileURL,
|
|
38
48
|
fileType
|
|
39
49
|
} = _ref;
|
|
40
50
|
return /*#__PURE__*/React.createElement(Box, {
|
|
41
|
-
className:
|
|
51
|
+
className: videoBubbleClass
|
|
42
52
|
}, /*#__PURE__*/React.createElement(Video, _extends({
|
|
43
53
|
fileType: fileType,
|
|
44
54
|
fileURL: fileURL
|
|
45
55
|
}, videoProps)));
|
|
46
|
-
}, [videoProps,
|
|
56
|
+
}, [videoProps, videoBubbleClass]);
|
|
47
57
|
return /*#__PURE__*/React.createElement(MediaBubbleWrapper, _extends({
|
|
48
58
|
mediaDetails: videoDetails,
|
|
49
59
|
renderMedia: renderMedia
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
.
|
|
1
|
+
.videoWrapper {
|
|
2
2
|
width: var(--zd_size360) ;
|
|
3
3
|
max-width: 100% ;
|
|
4
|
+
height: var(--zd_size193) ;
|
|
5
|
+
background-color: #000;
|
|
6
|
+
border-radius: 3px;
|
|
7
|
+
border: 1px solid var(--imlib_chat_components_videoBubble_border_color);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.videoWrapperFailed{
|
|
11
|
+
border-color: var(--imlib_chat_components_videoBubble_border_color_failed);
|
|
4
12
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** ** Methods *** */
|
|
2
|
+
import { compileClassNames } from '@zohodesk/utils';
|
|
3
|
+
export default function cssJSLogic(props, style) {
|
|
4
|
+
const {
|
|
5
|
+
isFailed
|
|
6
|
+
} = props;
|
|
7
|
+
const videoBubbleClass = compileClassNames({
|
|
8
|
+
[style.videoWrapper]: true,
|
|
9
|
+
[style.videoWrapperFailed]: isFailed
|
|
10
|
+
});
|
|
11
|
+
return {
|
|
12
|
+
videoBubbleClass
|
|
13
|
+
};
|
|
14
|
+
}
|
|
@@ -49,11 +49,11 @@
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.articleIcon :global(.path-0) {
|
|
52
|
-
fill: var(--
|
|
52
|
+
fill: var(--imlib_chat_components_imTtIcon_path0_color);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
.articleIcon :global(.path-1) {
|
|
56
|
-
fill: var(--
|
|
56
|
+
fill: var(--imlib_chat_components_imTtIcon_path1_color);
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
.content{
|
|
@@ -1,15 +1,6 @@
|
|
|
1
1
|
/** ** Libraries *** */
|
|
2
|
-
import React, { useCallback
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import WhatsappIcon from '../../icons/iconSrc/integrations/ChWhatsApp';
|
|
6
|
-
import TelegramIcon from '../../icons/iconSrc/integrations/TtTelegram';
|
|
7
|
-
import InstagramIcon from '../../icons/iconSrc/integrations/ChInstagram';
|
|
8
|
-
import ASAPIcon from '../../icons/iconSrc/integrations/TtASAP';
|
|
9
|
-
import WeChatIcon from '../../icons/iconSrc/integrations/TtWechat';
|
|
10
|
-
import TwillioIcon from '../../icons/iconSrc/integrations/TtTwillio';
|
|
11
|
-
import LineIcon from '../../icons/iconSrc/integrations/TtLine'; // import TwitterIcon from '../icons/iconSrc/integrations/TtTwitter';
|
|
12
|
-
|
|
2
|
+
import React, { useCallback } from 'react';
|
|
3
|
+
import Icon from '@zohodesk/icons/es/Icon';
|
|
13
4
|
/** ** CSS *** */
|
|
14
5
|
|
|
15
6
|
import style from './css/IMIntegrationIcon.module.css';
|
|
@@ -25,21 +16,18 @@ import integrationConstants from '@zohoim/chat-components-utils/es/imUtils/const
|
|
|
25
16
|
const {
|
|
26
17
|
WHATSAPP,
|
|
27
18
|
TELEGRAM,
|
|
28
|
-
INSTAGRAM,
|
|
29
19
|
ASAP,
|
|
30
20
|
WECHAT,
|
|
31
21
|
TWILLIO,
|
|
32
22
|
LINE
|
|
33
23
|
} = integrationConstants;
|
|
34
|
-
const
|
|
35
|
-
[
|
|
36
|
-
[
|
|
37
|
-
[
|
|
38
|
-
[
|
|
39
|
-
[
|
|
40
|
-
[
|
|
41
|
-
[LINE]: LineIcon // [TWITTER]: TwitterIcon
|
|
42
|
-
|
|
24
|
+
const fontIconMap = {
|
|
25
|
+
[TWILLIO]: 'ZD-TT-imtwillio',
|
|
26
|
+
[WHATSAPP]: 'ZD-TT-whatsApp',
|
|
27
|
+
[TELEGRAM]: 'ZD-TT-imTelegram',
|
|
28
|
+
[WECHAT]: 'ZD-TT-imWeChat',
|
|
29
|
+
[LINE]: 'ZD-TT-imLine',
|
|
30
|
+
[ASAP]: 'ZD-TT-imASAP'
|
|
43
31
|
};
|
|
44
32
|
export default function IMIntegrationIcon(props) {
|
|
45
33
|
const {
|
|
@@ -56,25 +44,23 @@ export default function IMIntegrationIcon(props) {
|
|
|
56
44
|
/* css classnames added based on logic */
|
|
57
45
|
|
|
58
46
|
const {
|
|
59
|
-
iconWrapperClass
|
|
60
|
-
iconClass
|
|
47
|
+
iconWrapperClass
|
|
61
48
|
} = cssJSLogic({
|
|
62
49
|
integrationName,
|
|
63
50
|
size
|
|
64
51
|
}, newStyle);
|
|
65
|
-
const iconStyle = useMemo(() => ({
|
|
66
|
-
base: iconClass
|
|
67
|
-
}), [iconClass]);
|
|
68
52
|
const renderDefaultIcon = useCallback(() => {
|
|
69
|
-
const
|
|
70
|
-
return
|
|
53
|
+
const iconName = fontIconMap[integrationName];
|
|
54
|
+
return iconName ? /*#__PURE__*/React.createElement("div", {
|
|
71
55
|
className: iconWrapperClass,
|
|
72
56
|
"data-title": title,
|
|
73
57
|
onClick: onClick
|
|
74
|
-
}, /*#__PURE__*/React.createElement(
|
|
75
|
-
|
|
58
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
59
|
+
iconClass: newStyle.fontIcon,
|
|
60
|
+
name: iconName,
|
|
61
|
+
size: "12"
|
|
76
62
|
})) : null;
|
|
77
|
-
}, [integrationName, title, onClick, iconWrapperClass,
|
|
63
|
+
}, [integrationName, title, onClick, iconWrapperClass, newStyle.fontIcon]);
|
|
78
64
|
return renderCustomIcon ? renderCustomIcon({
|
|
79
65
|
integrationName
|
|
80
66
|
}) : renderDefaultIcon();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.varClass {
|
|
2
|
-
--integrationIcon-small_height: var(--
|
|
3
|
-
--integrationIcon-small_width: var(--
|
|
2
|
+
--integrationIcon-small_height: var(--zd_size20);
|
|
3
|
+
--integrationIcon-small_width: var(--zd_size20);
|
|
4
4
|
--integrationIcon-medium_height: var(--zd_size26);
|
|
5
5
|
--integrationIcon-medium_width: var(--zd_size26);
|
|
6
6
|
}
|
|
@@ -87,4 +87,12 @@
|
|
|
87
87
|
|
|
88
88
|
.asapIcon {
|
|
89
89
|
background-color: var(--imlib_chat_components_imIntegrationIcon_asap_color);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.fontIcon :global .path1::before {
|
|
93
|
+
color: var(--imlib_chat_components_imIntegrationIcon_path0_color);;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.fontIcon :global .path2::before {
|
|
97
|
+
color:var(--imlib_chat_components_imIntegrationIcon_path1_color);
|
|
90
98
|
}
|