@zohoim/chat-components 0.0.19 → 0.0.21
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 -1
- 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 -12
- package/es/LocationBubble/css/LocationBubble.module.css +18 -11
- 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 +3 -1
- package/es/MessageAvatar/css/MessageAvatar.module.css +2 -0
- package/es/MessageBox/css/MessageBox.module.css +0 -3
- package/es/MessageBubble/MessageBubble.js +10 -5
- package/es/MessageBubble/css/MessageBubble.module.css +24 -23
- 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 +9 -8
- package/es/TextBubble/css/TextBubble.module.css +0 -2
- package/es/Theme/ThemeAssets.js +56 -35
- package/es/Theme/themeVariables/dark/blueTheme.js +16 -26
- package/es/Theme/themeVariables/dark/greenTheme.js +16 -26
- package/es/Theme/themeVariables/dark/orangeTheme.js +16 -26
- package/es/Theme/themeVariables/dark/redTheme.js +16 -26
- package/es/Theme/themeVariables/dark/yellowTheme.js +16 -26
- package/es/Theme/themeVariables/light/blueTheme.js +16 -26
- package/es/Theme/themeVariables/light/greenTheme.js +16 -26
- package/es/Theme/themeVariables/light/orangeTheme.js +16 -26
- package/es/Theme/themeVariables/light/redTheme.js +16 -26
- package/es/Theme/themeVariables/light/yellowTheme.js +16 -26
- package/es/Theme/themeVariables/pureDark/blueTheme.js +16 -26
- package/es/Theme/themeVariables/pureDark/greenTheme.js +16 -26
- package/es/Theme/themeVariables/pureDark/orangeTheme.js +16 -26
- package/es/Theme/themeVariables/pureDark/redTheme.js +16 -26
- package/es/Theme/themeVariables/pureDark/yellowTheme.js +16 -26
- package/es/Theme/utils/getThemeConfigurations.js +1 -1
- 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/icons/factory/common/reply.svg +6 -0
- package/es/icons/iconSrc/common/Reply.js +13 -0
- package/es/icons/iconSrc/common/index.js +2 -1
- package/es/im/IMIntegrationIcon/IMIntegrationIcon.js +18 -32
- package/es/im/IMIntegrationIcon/css/IMIntegrationIcon.module.css +8 -30
- package/es/im/IMIntegrationIcon/css/cssJSLogic.js +3 -3
- package/es/im/IMMessage/IMMessage.js +13 -6
- 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 +6 -5
- package/es/icons/factory/integrations/chInstagram.svg +0 -4
- package/es/icons/factory/integrations/chWhatsApp.svg +0 -4
- package/es/icons/factory/integrations/ttASAP.svg +0 -6
- package/es/icons/factory/integrations/ttLine.svg +0 -8
- package/es/icons/factory/integrations/ttTelegram.svg +0 -4
- package/es/icons/factory/integrations/ttTwillio.svg +0 -8
- package/es/icons/factory/integrations/ttWechat.svg +0 -9
- package/es/icons/iconSrc/integrations/ChInstagram.js +0 -17
- package/es/icons/iconSrc/integrations/ChWhatsApp.js +0 -19
- package/es/icons/iconSrc/integrations/TtASAP.js +0 -28
- package/es/icons/iconSrc/integrations/TtLine.js +0 -37
- package/es/icons/iconSrc/integrations/TtTelegram.js +0 -18
- package/es/icons/iconSrc/integrations/TtTwillio.js +0 -32
- package/es/icons/iconSrc/integrations/TtWechat.js +0 -41
- package/es/icons/iconSrc/integrations/index.js +0 -7
|
@@ -4,7 +4,6 @@ import { imIntegrationIcon, imTtIcon, messagetextColor } from '../commonThemeCol
|
|
|
4
4
|
export default {
|
|
5
5
|
library: 'chat_components',
|
|
6
6
|
variables: {
|
|
7
|
-
// ActionIcon: {},
|
|
8
7
|
actionIconWrapper: {
|
|
9
8
|
color: actionIconWrapperColor,
|
|
10
9
|
bg_color: '#252e27',
|
|
@@ -20,11 +19,8 @@ export default {
|
|
|
20
19
|
fileName_color: '#e2e4e6',
|
|
21
20
|
fileName_color_failed: failedColor,
|
|
22
21
|
fileSize_color: '#999',
|
|
23
|
-
fileSize_color_failed:
|
|
22
|
+
fileSize_color_failed: '#788190'
|
|
24
23
|
},
|
|
25
|
-
// AttachmentIcon: {},
|
|
26
|
-
// Audio: {},
|
|
27
|
-
// AudioBubble: {},
|
|
28
24
|
articleBubble: {
|
|
29
25
|
bg_color: '#212121',
|
|
30
26
|
bg_color_failed: failedBg,
|
|
@@ -38,28 +34,25 @@ export default {
|
|
|
38
34
|
imAutoMessageInfo: {
|
|
39
35
|
text_color: '#999'
|
|
40
36
|
},
|
|
41
|
-
// IMInfoBubble: {},
|
|
42
37
|
imIntegrationIcon,
|
|
43
38
|
imTtIcon,
|
|
44
|
-
|
|
45
|
-
|
|
39
|
+
imMessageContent: {
|
|
40
|
+
text_color: '#a8b0bd'
|
|
41
|
+
},
|
|
46
42
|
imMessageMeta: {
|
|
47
43
|
time_color: '#999'
|
|
48
44
|
},
|
|
49
45
|
imPermaLink: {
|
|
50
46
|
url_color: '#45a159'
|
|
51
47
|
},
|
|
52
|
-
// IMReplyBubble: {},
|
|
53
|
-
// IMTextBubble: {},
|
|
54
48
|
imageBubble: {
|
|
55
49
|
bg_color: '#212121',
|
|
56
50
|
bg_color_failed: failedBg,
|
|
57
51
|
alt_text_color: '#e2e4e6',
|
|
58
|
-
alt_text_color_failed: failedColor
|
|
52
|
+
alt_text_color_failed: failedColor,
|
|
53
|
+
border_color: '#161515',
|
|
54
|
+
border_color_failed: failedBdr
|
|
59
55
|
},
|
|
60
|
-
// IMReplyBubble: {},
|
|
61
|
-
// InfoBubble: {},
|
|
62
|
-
// LazyLoadImage: {},
|
|
63
56
|
locationBubble: {
|
|
64
57
|
bg_color: '#212121',
|
|
65
58
|
bg_color_failed: failedBg,
|
|
@@ -68,13 +61,6 @@ export default {
|
|
|
68
61
|
url_color: primaryGreen,
|
|
69
62
|
url_color_failed: failedUrlColor
|
|
70
63
|
},
|
|
71
|
-
// MediaBubbleWrapper: {},
|
|
72
|
-
// Message: {},
|
|
73
|
-
// MessageAction: {},
|
|
74
|
-
// MessageActions: {},
|
|
75
|
-
// MessageActionsMore: {},
|
|
76
|
-
// MessageActionsWrapper: {},
|
|
77
|
-
// MessageAvatar: {},
|
|
78
64
|
messageBox: {
|
|
79
65
|
incoming_bg_color: incomingBubbleBgColor,
|
|
80
66
|
outgoing_bg_color: outgoingBubbleBgColor,
|
|
@@ -91,8 +77,10 @@ export default {
|
|
|
91
77
|
read_color: '#45a159',
|
|
92
78
|
failed_color: messageStatusFailedColor
|
|
93
79
|
},
|
|
94
|
-
|
|
95
|
-
|
|
80
|
+
replyBubble: {
|
|
81
|
+
border_color: '#161515',
|
|
82
|
+
border_color_failed: failedBdr
|
|
83
|
+
},
|
|
96
84
|
replyBubbleContent: {
|
|
97
85
|
bg_color: '#212121',
|
|
98
86
|
bg_color_failed: failedBg,
|
|
@@ -118,8 +106,10 @@ export default {
|
|
|
118
106
|
see_more_color_failed: failedUrlColor,
|
|
119
107
|
url_color: primaryGreen,
|
|
120
108
|
url_color_failed: failedUrlColor
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
|
|
109
|
+
},
|
|
110
|
+
videoBubble: {
|
|
111
|
+
border_color: '#161515',
|
|
112
|
+
border_color_failed: failedBdr
|
|
113
|
+
}
|
|
124
114
|
}
|
|
125
115
|
};
|
|
@@ -4,7 +4,6 @@ import { imIntegrationIcon, imTtIcon, messagetextColor } from '../commonThemeCol
|
|
|
4
4
|
export default {
|
|
5
5
|
library: 'chat_components',
|
|
6
6
|
variables: {
|
|
7
|
-
// ActionIcon: {},
|
|
8
7
|
actionIconWrapper: {
|
|
9
8
|
color: actionIconWrapperColor,
|
|
10
9
|
bg_color: '#312821',
|
|
@@ -20,11 +19,8 @@ export default {
|
|
|
20
19
|
fileName_color: '#e2e4e6',
|
|
21
20
|
fileName_color_failed: failedColor,
|
|
22
21
|
fileSize_color: '#999',
|
|
23
|
-
fileSize_color_failed:
|
|
22
|
+
fileSize_color_failed: '#788190'
|
|
24
23
|
},
|
|
25
|
-
// AttachmentIcon: {},
|
|
26
|
-
// Audio: {},
|
|
27
|
-
// AudioBubble: {},
|
|
28
24
|
articleBubble: {
|
|
29
25
|
bg_color: '#212121',
|
|
30
26
|
bg_color_failed: failedBg,
|
|
@@ -38,28 +34,25 @@ export default {
|
|
|
38
34
|
imAutoMessageInfo: {
|
|
39
35
|
text_color: '#999'
|
|
40
36
|
},
|
|
41
|
-
// IMInfoBubble: {},
|
|
42
37
|
imIntegrationIcon,
|
|
43
38
|
imTtIcon,
|
|
44
|
-
|
|
45
|
-
|
|
39
|
+
imMessageContent: {
|
|
40
|
+
text_color: '#a8b0bd'
|
|
41
|
+
},
|
|
46
42
|
imMessageMeta: {
|
|
47
43
|
time_color: '#999'
|
|
48
44
|
},
|
|
49
45
|
imPermaLink: {
|
|
50
46
|
url_color: '#ff801f'
|
|
51
47
|
},
|
|
52
|
-
// IMReplyBubble: {},
|
|
53
|
-
// IMTextBubble: {},
|
|
54
48
|
imageBubble: {
|
|
55
49
|
bg_color: '#212121',
|
|
56
50
|
bg_color_failed: failedBg,
|
|
57
51
|
alt_text_color: '#e2e4e6',
|
|
58
|
-
alt_text_color_failed: failedColor
|
|
52
|
+
alt_text_color_failed: failedColor,
|
|
53
|
+
border_color: '#161515',
|
|
54
|
+
border_color_failed: failedBdr
|
|
59
55
|
},
|
|
60
|
-
// IMReplyBubble: {},
|
|
61
|
-
// InfoBubble: {},
|
|
62
|
-
// LazyLoadImage: {},
|
|
63
56
|
locationBubble: {
|
|
64
57
|
bg_color: '#212121',
|
|
65
58
|
bg_color_failed: failedBg,
|
|
@@ -68,13 +61,6 @@ export default {
|
|
|
68
61
|
url_color: primaryOrange,
|
|
69
62
|
url_color_failed: failedUrlColor
|
|
70
63
|
},
|
|
71
|
-
// MediaBubbleWrapper: {},
|
|
72
|
-
// Message: {},
|
|
73
|
-
// MessageAction: {},
|
|
74
|
-
// MessageActions: {},
|
|
75
|
-
// MessageActionsMore: {},
|
|
76
|
-
// MessageActionsWrapper: {},
|
|
77
|
-
// MessageAvatar: {},
|
|
78
64
|
messageBox: {
|
|
79
65
|
incoming_bg_color: incomingBubbleBgColor,
|
|
80
66
|
outgoing_bg_color: outgoingBubbleBgColor,
|
|
@@ -91,8 +77,10 @@ export default {
|
|
|
91
77
|
read_color: '#ff801f',
|
|
92
78
|
failed_color: messageStatusFailedColor
|
|
93
79
|
},
|
|
94
|
-
|
|
95
|
-
|
|
80
|
+
replyBubble: {
|
|
81
|
+
border_color: '#161515',
|
|
82
|
+
border_color_failed: failedBdr
|
|
83
|
+
},
|
|
96
84
|
replyBubbleContent: {
|
|
97
85
|
bg_color: '#212121',
|
|
98
86
|
bg_color_failed: failedBg,
|
|
@@ -118,8 +106,10 @@ export default {
|
|
|
118
106
|
see_more_color_failed: failedUrlColor,
|
|
119
107
|
url_color: primaryOrange,
|
|
120
108
|
url_color_failed: failedUrlColor
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
|
|
109
|
+
},
|
|
110
|
+
videoBubble: {
|
|
111
|
+
border_color: '#161515',
|
|
112
|
+
border_color_failed: failedBdr
|
|
113
|
+
}
|
|
124
114
|
}
|
|
125
115
|
};
|
|
@@ -4,7 +4,6 @@ import { imIntegrationIcon, imTtIcon, messagetextColor } from '../commonThemeCol
|
|
|
4
4
|
export default {
|
|
5
5
|
library: 'chat_components',
|
|
6
6
|
variables: {
|
|
7
|
-
// ActionIcon: {},
|
|
8
7
|
actionIconWrapper: {
|
|
9
8
|
color: actionIconWrapperColor,
|
|
10
9
|
bg_color: '#2f2424',
|
|
@@ -20,11 +19,8 @@ export default {
|
|
|
20
19
|
fileName_color: '#e2e4e6',
|
|
21
20
|
fileName_color_failed: failedColor,
|
|
22
21
|
fileSize_color: '#999',
|
|
23
|
-
fileSize_color_failed:
|
|
22
|
+
fileSize_color_failed: '#788190'
|
|
24
23
|
},
|
|
25
|
-
// AttachmentIcon: {},
|
|
26
|
-
// Audio: {},
|
|
27
|
-
// AudioBubble: {},
|
|
28
24
|
articleBubble: {
|
|
29
25
|
bg_color: '#212121',
|
|
30
26
|
bg_color_failed: failedBg,
|
|
@@ -38,28 +34,25 @@ export default {
|
|
|
38
34
|
imAutoMessageInfo: {
|
|
39
35
|
text_color: '#999'
|
|
40
36
|
},
|
|
41
|
-
// IMInfoBubble: {},
|
|
42
37
|
imIntegrationIcon,
|
|
43
38
|
imTtIcon,
|
|
44
|
-
|
|
45
|
-
|
|
39
|
+
imMessageContent: {
|
|
40
|
+
text_color: '#a8b0bd'
|
|
41
|
+
},
|
|
46
42
|
imMessageMeta: {
|
|
47
43
|
time_color: '#999'
|
|
48
44
|
},
|
|
49
45
|
imPermaLink: {
|
|
50
46
|
url_color: '#e94f4f'
|
|
51
47
|
},
|
|
52
|
-
// IMReplyBubble: {},
|
|
53
|
-
// IMTextBubble: {},
|
|
54
48
|
imageBubble: {
|
|
55
49
|
bg_color: '#212121',
|
|
56
50
|
bg_color_failed: failedBg,
|
|
57
51
|
alt_text_color: '#e2e4e6',
|
|
58
|
-
alt_text_color_failed: failedColor
|
|
52
|
+
alt_text_color_failed: failedColor,
|
|
53
|
+
border_color: '#161515',
|
|
54
|
+
border_color_failed: failedBdr
|
|
59
55
|
},
|
|
60
|
-
// IMReplyBubble: {},
|
|
61
|
-
// InfoBubble: {},
|
|
62
|
-
// LazyLoadImage: {},
|
|
63
56
|
locationBubble: {
|
|
64
57
|
bg_color: '#212121',
|
|
65
58
|
bg_color_failed: failedBg,
|
|
@@ -68,13 +61,6 @@ export default {
|
|
|
68
61
|
url_color: primaryRed,
|
|
69
62
|
url_color_failed: failedUrlColor
|
|
70
63
|
},
|
|
71
|
-
// MediaBubbleWrapper: {},
|
|
72
|
-
// Message: {},
|
|
73
|
-
// MessageAction: {},
|
|
74
|
-
// MessageActions: {},
|
|
75
|
-
// MessageActionsMore: {},
|
|
76
|
-
// MessageActionsWrapper: {},
|
|
77
|
-
// MessageAvatar: {},
|
|
78
64
|
messageBox: {
|
|
79
65
|
incoming_bg_color: incomingBubbleBgColor,
|
|
80
66
|
outgoing_bg_color: outgoingBubbleBgColor,
|
|
@@ -91,8 +77,10 @@ export default {
|
|
|
91
77
|
read_color: '#e94f4f',
|
|
92
78
|
failed_color: messageStatusFailedColor
|
|
93
79
|
},
|
|
94
|
-
|
|
95
|
-
|
|
80
|
+
replyBubble: {
|
|
81
|
+
border_color: '#161515',
|
|
82
|
+
border_color_failed: failedBdr
|
|
83
|
+
},
|
|
96
84
|
replyBubbleContent: {
|
|
97
85
|
bg_color: '#212121',
|
|
98
86
|
bg_color_failed: failedBg,
|
|
@@ -118,8 +106,10 @@ export default {
|
|
|
118
106
|
see_more_color_failed: failedUrlColor,
|
|
119
107
|
url_color: primaryRed,
|
|
120
108
|
url_color_failed: failedUrlColor
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
|
|
109
|
+
},
|
|
110
|
+
videoBubble: {
|
|
111
|
+
border_color: '#161515',
|
|
112
|
+
border_color_failed: failedBdr
|
|
113
|
+
}
|
|
124
114
|
}
|
|
125
115
|
};
|
|
@@ -4,7 +4,6 @@ import { imIntegrationIcon, imTtIcon, messagetextColor } from '../commonThemeCol
|
|
|
4
4
|
export default {
|
|
5
5
|
library: 'chat_components',
|
|
6
6
|
variables: {
|
|
7
|
-
// ActionIcon: {},
|
|
8
7
|
actionIconWrapper: {
|
|
9
8
|
color: actionIconWrapperColor,
|
|
10
9
|
bg_color: '#2e2922',
|
|
@@ -20,11 +19,8 @@ export default {
|
|
|
20
19
|
fileName_color: '#e2e4e6',
|
|
21
20
|
fileName_color_failed: failedColor,
|
|
22
21
|
fileSize_color: '#999',
|
|
23
|
-
fileSize_color_failed:
|
|
22
|
+
fileSize_color_failed: '#788190'
|
|
24
23
|
},
|
|
25
|
-
// AttachmentIcon: {},
|
|
26
|
-
// Audio: {},
|
|
27
|
-
// AudioBubble: {},
|
|
28
24
|
articleBubble: {
|
|
29
25
|
bg_color: '#212121',
|
|
30
26
|
bg_color_failed: failedBg,
|
|
@@ -38,28 +34,25 @@ export default {
|
|
|
38
34
|
imAutoMessageInfo: {
|
|
39
35
|
text_color: '#999'
|
|
40
36
|
},
|
|
41
|
-
// IMInfoBubble: {},
|
|
42
37
|
imIntegrationIcon,
|
|
43
38
|
imTtIcon,
|
|
44
|
-
|
|
45
|
-
|
|
39
|
+
imMessageContent: {
|
|
40
|
+
text_color: '#a8b0bd'
|
|
41
|
+
},
|
|
46
42
|
imMessageMeta: {
|
|
47
43
|
time_color: '#999'
|
|
48
44
|
},
|
|
49
45
|
imPermaLink: {
|
|
50
46
|
url_color: '#d79835'
|
|
51
47
|
},
|
|
52
|
-
// IMReplyBubble: {},
|
|
53
|
-
// IMTextBubble: {},
|
|
54
48
|
imageBubble: {
|
|
55
49
|
bg_color: '#212121',
|
|
56
50
|
bg_color_failed: failedBg,
|
|
57
51
|
alt_text_color: '#e2e4e6',
|
|
58
|
-
alt_text_color_failed: failedColor
|
|
52
|
+
alt_text_color_failed: failedColor,
|
|
53
|
+
border_color: '#161515',
|
|
54
|
+
border_color_failed: failedBdr
|
|
59
55
|
},
|
|
60
|
-
// IMReplyBubble: {},
|
|
61
|
-
// InfoBubble: {},
|
|
62
|
-
// LazyLoadImage: {},
|
|
63
56
|
locationBubble: {
|
|
64
57
|
bg_color: '#212121',
|
|
65
58
|
bg_color_failed: failedBg,
|
|
@@ -68,13 +61,6 @@ export default {
|
|
|
68
61
|
url_color: primaryYellow,
|
|
69
62
|
url_color_failed: failedUrlColor
|
|
70
63
|
},
|
|
71
|
-
// MediaBubbleWrapper: {},
|
|
72
|
-
// Message: {},
|
|
73
|
-
// MessageAction: {},
|
|
74
|
-
// MessageActions: {},
|
|
75
|
-
// MessageActionsMore: {},
|
|
76
|
-
// MessageActionsWrapper: {},
|
|
77
|
-
// MessageAvatar: {},
|
|
78
64
|
messageBox: {
|
|
79
65
|
incoming_bg_color: incomingBubbleBgColor,
|
|
80
66
|
outgoing_bg_color: outgoingBubbleBgColor,
|
|
@@ -91,8 +77,10 @@ export default {
|
|
|
91
77
|
read_color: '#d79835',
|
|
92
78
|
failed_color: messageStatusFailedColor
|
|
93
79
|
},
|
|
94
|
-
|
|
95
|
-
|
|
80
|
+
replyBubble: {
|
|
81
|
+
border_color: '#161515',
|
|
82
|
+
border_color_failed: failedBdr
|
|
83
|
+
},
|
|
96
84
|
replyBubbleContent: {
|
|
97
85
|
bg_color: '#212121',
|
|
98
86
|
bg_color_failed: failedBg,
|
|
@@ -118,8 +106,10 @@ export default {
|
|
|
118
106
|
see_more_color_failed: failedUrlColor,
|
|
119
107
|
url_color: primaryYellow,
|
|
120
108
|
url_color_failed: failedUrlColor
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
|
|
109
|
+
},
|
|
110
|
+
videoBubble: {
|
|
111
|
+
border_color: '#161515',
|
|
112
|
+
border_color_failed: failedBdr
|
|
113
|
+
}
|
|
124
114
|
}
|
|
125
115
|
};
|
|
@@ -15,7 +15,7 @@ import pureDarkOrange from '../themeVariables/pureDark/orangeTheme';
|
|
|
15
15
|
import pureDarkRed from '../themeVariables/pureDark/redTheme';
|
|
16
16
|
import pureDarkYellow from '../themeVariables/pureDark/yellowTheme';
|
|
17
17
|
const modeMapping = {
|
|
18
|
-
[modeConstants.LIGHT]: '
|
|
18
|
+
[modeConstants.LIGHT]: 'light',
|
|
19
19
|
[modeConstants.DARK]: 'dark',
|
|
20
20
|
[modeConstants.PURE_DARK]: 'pureDark'
|
|
21
21
|
};
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg id='reply' viewBox='0 0 40 40'>
|
|
2
|
+
<path
|
|
3
|
+
class='path-0'
|
|
4
|
+
d='m17.42,33.06c-.39,0-.77-.13-1.09-.39L2.51,21.35c-.41-.33-.64-.83-.64-1.35s.23-1.02.64-1.35l13.83-11.31c.52-.43,1.22-.51,1.83-.22.61.29.98.88.98,1.56v5.61c12.4.03,17.81,10.94,18.73,14.79h0c.18.75-.13,1.5-.79,1.9-.65.4-1.48.34-2.07-.15-7.56-6.34-13.96-5.65-15.88-5.24v5.74c0,.67-.38,1.27-.98,1.56-.24.11-.49.17-.74.17Zm-13.41-13.06l13.14,10.75v-5.24c0-.89.6-1.65,1.47-1.85,1.99-.45,8.98-1.35,17.12,5.17-1.43-4.56-6.94-12.59-16.81-12.55,0,0,0,0-.01,0-.44,0-.87-.18-1.19-.5-.36-.36-.57-.86-.57-1.38v-5.15l-13.14,10.75Zm31.92,9.54h0s0,0,0,0Z'
|
|
5
|
+
/>
|
|
6
|
+
</svg>
|
|
@@ -0,0 +1,13 @@
|
|
|
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: "reply",
|
|
7
|
+
viewBox: "0 0 40 40"
|
|
8
|
+
}, " ", /*#__PURE__*/React.createElement("path", {
|
|
9
|
+
className: "path-0",
|
|
10
|
+
d: "m17.42,33.06c-.39,0-.77-.13-1.09-.39L2.51,21.35c-.41-.33-.64-.83-.64-1.35s.23-1.02.64-1.35l13.83-11.31c.52-.43,1.22-.51,1.83-.22.61.29.98.88.98,1.56v5.61c12.4.03,17.81,10.94,18.73,14.79h0c.18.75-.13,1.5-.79,1.9-.65.4-1.48.34-2.07-.15-7.56-6.34-13.96-5.65-15.88-5.24v5.74c0,.67-.38,1.27-.98,1.56-.24.11-.49.17-.74.17Zm-13.41-13.06l13.14,10.75v-5.24c0-.89.6-1.65,1.47-1.85,1.99-.45,8.98-1.35,17.12,5.17-1.43-4.56-6.94-12.59-16.81-12.55,0,0,0,0-.01,0-.44,0-.87-.18-1.19-.5-.36-.36-.57-.86-.57-1.38v-5.15l-13.14,10.75Zm31.92,9.54h0s0,0,0,0Z"
|
|
11
|
+
}), " "));
|
|
12
|
+
}
|
|
13
|
+
IconComponent.propTypes = Icon.propTypes;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { default as Article } from './Article';
|
|
1
|
+
export { default as Article } from './Article';
|
|
2
|
+
export { default as Reply } from './Reply';
|
|
@@ -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
|
-
|
|
29
|
-
ASAP,
|
|
19
|
+
IM_TALK,
|
|
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
|
+
[IM_TALK]: '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();
|
|
@@ -13,36 +13,6 @@
|
|
|
13
13
|
border-radius: 50%;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
.integrationIcon :global(.path-0),
|
|
17
|
-
.twillioIcon :global(.cls-1),
|
|
18
|
-
.asapIcon :global(.cls-1),
|
|
19
|
-
.weChatIcon :global(.cls-1),
|
|
20
|
-
.weChatIcon :global(.path-0),
|
|
21
|
-
.lineIcon :global(.cls-1) {
|
|
22
|
-
fill: var(--imlib_chat_components_imIntegrationIcon_path0_color);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.integrationIcon :global(.path-1),
|
|
26
|
-
.twillioIcon :global(.path-0),
|
|
27
|
-
.twillioIcon :global(.path-1),
|
|
28
|
-
.twillioIcon :global(.path-2),
|
|
29
|
-
.twillioIcon :global(.path-3),
|
|
30
|
-
.twillioIcon :global(.path-4),
|
|
31
|
-
.asapIcon :global(.path-0),
|
|
32
|
-
.asapIcon :global(.path-1),
|
|
33
|
-
.asapIcon :global(.path-2),
|
|
34
|
-
.weChatIcon :global(.cls-2),
|
|
35
|
-
.weChatIcon :global(.path-2),
|
|
36
|
-
.weChatIcon :global(.path-3),
|
|
37
|
-
.weChatIcon :global(.path-4),
|
|
38
|
-
.lineIcon :global(.cls-2),
|
|
39
|
-
.lineIcon :global(.path-0),
|
|
40
|
-
.lineIcon :global(.path-1),
|
|
41
|
-
.lineIcon :global(.path-2),
|
|
42
|
-
.lineIcon :global(.path-3) {
|
|
43
|
-
fill: var(--imlib_chat_components_imIntegrationIcon_path1_color);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
16
|
.small {
|
|
47
17
|
width: var(--integrationIcon-small_height);
|
|
48
18
|
height: var(--integrationIcon-small_width);
|
|
@@ -88,3 +58,11 @@
|
|
|
88
58
|
.asapIcon {
|
|
89
59
|
background-color: var(--imlib_chat_components_imIntegrationIcon_asap_color);
|
|
90
60
|
}
|
|
61
|
+
|
|
62
|
+
.fontIcon :global .path1::before {
|
|
63
|
+
color: var(--imlib_chat_components_imIntegrationIcon_path0_color);;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.fontIcon :global .path2::before {
|
|
67
|
+
color:var(--imlib_chat_components_imIntegrationIcon_path1_color);
|
|
68
|
+
}
|
|
@@ -8,7 +8,7 @@ const {
|
|
|
8
8
|
WHATSAPP,
|
|
9
9
|
TELEGRAM,
|
|
10
10
|
INSTAGRAM,
|
|
11
|
-
|
|
11
|
+
IM_TALK,
|
|
12
12
|
WECHAT,
|
|
13
13
|
TWILLIO,
|
|
14
14
|
LINE
|
|
@@ -21,7 +21,7 @@ export default function cssJSLogic(props, style) {
|
|
|
21
21
|
const isWhatsAppIcon = integrationName === WHATSAPP;
|
|
22
22
|
const isTelegramIcon = integrationName === TELEGRAM;
|
|
23
23
|
const isInstagramIcon = integrationName === INSTAGRAM;
|
|
24
|
-
const
|
|
24
|
+
const isIMTalkIcon = integrationName === IM_TALK;
|
|
25
25
|
const isWeChatIcon = integrationName === WECHAT;
|
|
26
26
|
const isTwillioIcon = integrationName === TWILLIO;
|
|
27
27
|
const isLineIcon = integrationName === LINE; // const isTwitterIcon = integrationName === TWITTER;
|
|
@@ -35,7 +35,7 @@ export default function cssJSLogic(props, style) {
|
|
|
35
35
|
[style.whatsappIcon]: isWhatsAppIcon,
|
|
36
36
|
[style.telegramIcon]: isTelegramIcon,
|
|
37
37
|
[style.instagramIcon]: isInstagramIcon,
|
|
38
|
-
[style.asapIcon]:
|
|
38
|
+
[style.asapIcon]: isIMTalkIcon,
|
|
39
39
|
[style.weChatIcon]: isWeChatIcon,
|
|
40
40
|
[style.twillioIcon]: isTwillioIcon,
|
|
41
41
|
[style.lineIcon]: isLineIcon // [style.twitterIcon]: isTwitterIcon
|