@zohoim/chat-components 0.0.17 → 0.0.19
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/MessageActionsWrapper/MessageActionsWrapper.js +2 -1
- package/es/MessageBubble/MessageBubble.js +4 -3
- package/es/MessageBubble/css/MessageBubble.module.css +12 -3
- package/es/MessageBubble/css/cssJSLogic.js +7 -1
- package/es/TextBubble/css/TextBubble.module.css +8 -4
- package/es/Theme/themeVariables/commonThemeColorVariable.js +4 -0
- package/es/Theme/themeVariables/dark/blueTheme.js +2 -1
- package/es/Theme/themeVariables/dark/greenTheme.js +2 -1
- package/es/Theme/themeVariables/dark/orangeTheme.js +2 -1
- package/es/Theme/themeVariables/dark/redTheme.js +2 -1
- package/es/Theme/themeVariables/dark/yellowTheme.js +2 -1
- package/es/Theme/themeVariables/light/blueTheme.js +2 -1
- package/es/Theme/themeVariables/light/commonColorVariable.js +11 -0
- package/es/Theme/themeVariables/light/greenTheme.js +2 -1
- package/es/Theme/themeVariables/light/orangeTheme.js +2 -1
- package/es/Theme/themeVariables/light/redTheme.js +2 -1
- package/es/Theme/themeVariables/light/yellowTheme.js +2 -1
- package/es/Theme/themeVariables/pureDark/blueTheme.js +2 -1
- package/es/Theme/themeVariables/pureDark/greenTheme.js +2 -1
- package/es/Theme/themeVariables/pureDark/orangeTheme.js +2 -1
- package/es/Theme/themeVariables/pureDark/redTheme.js +2 -1
- package/es/Theme/themeVariables/pureDark/yellowTheme.js +2 -1
- package/es/im/ArticleBubble/css/ArticleBubble.module.css +2 -2
- package/es/im/IMIntegrationIcon/css/IMIntegrationIcon.module.css +3 -3
- package/es/im/IMMessage/IMMessage.js +11 -7
- package/package.json +4 -4
|
@@ -56,7 +56,8 @@ export default function MessageActionsWrapper(props) {
|
|
|
56
56
|
renderMoreIcon: renderMoreIcon
|
|
57
57
|
}, messageActionsMoreProps)), [moreActions, renderMoreIcon, messageActionsMoreProps]);
|
|
58
58
|
const renderRow = useCallback(() => /*#__PURE__*/React.createElement(Container, {
|
|
59
|
-
alignBox: "row"
|
|
59
|
+
alignBox: "row",
|
|
60
|
+
isCover: false
|
|
60
61
|
}, renderDefaultActions(), isShowMoreIcon ? renderMoreActions() : null), [renderDefaultActions, renderMoreActions, isShowMoreIcon]);
|
|
61
62
|
return /*#__PURE__*/React.createElement("div", {
|
|
62
63
|
className: newStyle.messageActionsWrapper
|
|
@@ -44,7 +44,8 @@ export default function MessageBubble(props) {
|
|
|
44
44
|
/* css classnames added based on logic */
|
|
45
45
|
|
|
46
46
|
const {
|
|
47
|
-
bubbleClass
|
|
47
|
+
bubbleClass,
|
|
48
|
+
messageActionWrapperClass
|
|
48
49
|
} = cssJSLogic({
|
|
49
50
|
isActive,
|
|
50
51
|
direction,
|
|
@@ -65,9 +66,9 @@ export default function MessageBubble(props) {
|
|
|
65
66
|
const messageActionsRenderer = useCallback(() => {
|
|
66
67
|
const messageActions = isRenderMessageActions ? renderHandler(renderMessageActions)() : null;
|
|
67
68
|
return messageActions ? /*#__PURE__*/React.createElement(Box, {
|
|
68
|
-
className:
|
|
69
|
+
className: messageActionWrapperClass
|
|
69
70
|
}, messageActions) : null;
|
|
70
|
-
}, [isRenderMessageActions, renderMessageActions,
|
|
71
|
+
}, [isRenderMessageActions, renderMessageActions, messageActionWrapperClass]);
|
|
71
72
|
/* Message Box Render */
|
|
72
73
|
|
|
73
74
|
const messageBoxRenderer = useCallback(() => {
|
|
@@ -33,8 +33,17 @@
|
|
|
33
33
|
.messageActionWrapper {
|
|
34
34
|
grid-area: messageAction;
|
|
35
35
|
width: var(--zd_size78) ;
|
|
36
|
+
display: flex;
|
|
37
|
+
flex-direction: column;
|
|
36
38
|
}
|
|
37
39
|
|
|
40
|
+
.messageActionWrapperEnd {
|
|
41
|
+
align-items: flex-end;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.messageActionWrapperStart {
|
|
45
|
+
align-items: flex-start;
|
|
46
|
+
}
|
|
38
47
|
.messageBoxFooterWrapper {
|
|
39
48
|
grid-area: messageBoxFooter;
|
|
40
49
|
font-size: var(--messageBox-footer_fontSize);
|
|
@@ -69,7 +78,7 @@
|
|
|
69
78
|
margin-inline-end: 78px;
|
|
70
79
|
}
|
|
71
80
|
|
|
72
|
-
.isHovered.directionIn .messageContainer{
|
|
81
|
+
.isHovered.directionIn .messageContainer {
|
|
73
82
|
margin-inline-end: 0;
|
|
74
83
|
}
|
|
75
84
|
|
|
@@ -79,6 +88,6 @@
|
|
|
79
88
|
margin-inline-start: 78px;
|
|
80
89
|
}
|
|
81
90
|
|
|
82
|
-
.isHovered.directionOut .messageContainer{
|
|
91
|
+
.isHovered.directionOut .messageContainer {
|
|
83
92
|
margin-inline-start: 0;
|
|
84
|
-
}
|
|
93
|
+
}
|
|
@@ -22,7 +22,13 @@ export default function cssJSLogic(props, style) {
|
|
|
22
22
|
[style.active]: isActive,
|
|
23
23
|
[style.isHovered]: isRenderMessageActions
|
|
24
24
|
});
|
|
25
|
+
const messageActionWrapperClass = compileClassNames({
|
|
26
|
+
[style.messageActionWrapper]: true,
|
|
27
|
+
[style.messageActionWrapperEnd]: isOutgoing,
|
|
28
|
+
[style.messageActionWrapperStart]: isIncoming
|
|
29
|
+
});
|
|
25
30
|
return {
|
|
26
|
-
bubbleClass
|
|
31
|
+
bubbleClass,
|
|
32
|
+
messageActionWrapperClass
|
|
27
33
|
};
|
|
28
34
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
color: var(--imlib_chat_components_textBubble_text_color);
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
.failedTextBubble{
|
|
6
|
+
.failedTextBubble {
|
|
7
7
|
color: var(--imlib_chat_components_textBubble_text_color_failed);
|
|
8
8
|
}
|
|
9
9
|
|
|
@@ -14,7 +14,11 @@
|
|
|
14
14
|
cursor: pointer;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
.
|
|
17
|
+
.moreText:hover {
|
|
18
|
+
text-decoration: underline;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.failedMoreText {
|
|
18
22
|
color: var(--imlib_chat_components_textBubble_see_more_color_failed);
|
|
19
23
|
}
|
|
20
24
|
|
|
@@ -28,6 +32,6 @@
|
|
|
28
32
|
/* !important for Desk css overwrite */
|
|
29
33
|
}
|
|
30
34
|
|
|
31
|
-
.failedTextBubble a{
|
|
35
|
+
.failedTextBubble a {
|
|
32
36
|
color: var(--imlib_chat_components_textBubble_url_color_failed);
|
|
33
|
-
}
|
|
37
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable camelcase */
|
|
2
2
|
import { incomingBubbleBgColor, 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: {
|
|
@@ -40,6 +40,7 @@ export default {
|
|
|
40
40
|
},
|
|
41
41
|
// IMInfoBubble: {},
|
|
42
42
|
imIntegrationIcon,
|
|
43
|
+
imTtIcon,
|
|
43
44
|
// IMMessage: {},
|
|
44
45
|
// IMMessageContent: {},
|
|
45
46
|
imMessageMeta: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable camelcase */
|
|
2
2
|
import { incomingBubbleBgColor, 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: {
|
|
@@ -40,6 +40,7 @@ export default {
|
|
|
40
40
|
},
|
|
41
41
|
// IMInfoBubble: {},
|
|
42
42
|
imIntegrationIcon,
|
|
43
|
+
imTtIcon,
|
|
43
44
|
// IMMessage: {},
|
|
44
45
|
// IMMessageContent: {},
|
|
45
46
|
imMessageMeta: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable camelcase */
|
|
2
2
|
import { incomingBubbleBgColor, 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: {
|
|
@@ -40,6 +40,7 @@ export default {
|
|
|
40
40
|
},
|
|
41
41
|
// IMInfoBubble: {},
|
|
42
42
|
imIntegrationIcon,
|
|
43
|
+
imTtIcon,
|
|
43
44
|
// IMMessage: {},
|
|
44
45
|
// IMMessageContent: {},
|
|
45
46
|
imMessageMeta: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable camelcase */
|
|
2
2
|
import { incomingBubbleBgColor, 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: {
|
|
@@ -40,6 +40,7 @@ export default {
|
|
|
40
40
|
},
|
|
41
41
|
// IMInfoBubble: {},
|
|
42
42
|
imIntegrationIcon,
|
|
43
|
+
imTtIcon,
|
|
43
44
|
// IMMessage: {},
|
|
44
45
|
// IMMessageContent: {},
|
|
45
46
|
imMessageMeta: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable camelcase */
|
|
2
2
|
import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, 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: {
|
|
@@ -40,6 +40,7 @@ export default {
|
|
|
40
40
|
},
|
|
41
41
|
// IMInfoBubble: {},
|
|
42
42
|
imIntegrationIcon,
|
|
43
|
+
imTtIcon,
|
|
43
44
|
// IMMessage: {},
|
|
44
45
|
// IMMessageContent: {},
|
|
45
46
|
imMessageMeta: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable camelcase */
|
|
2
|
-
import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, messagetextColor, primaryBlue, white, black, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor, imIntegrationIcon } from './commonColorVariable';
|
|
2
|
+
import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, messagetextColor, primaryBlue, white, black, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor, imIntegrationIcon, imTtIcon } from './commonColorVariable';
|
|
3
3
|
export default {
|
|
4
4
|
library: 'chat_components',
|
|
5
5
|
variables: {
|
|
@@ -39,6 +39,7 @@ export default {
|
|
|
39
39
|
},
|
|
40
40
|
// IMInfoBubble: {},
|
|
41
41
|
imIntegrationIcon,
|
|
42
|
+
imTtIcon,
|
|
42
43
|
// IMMessage: {},
|
|
43
44
|
// IMMessageContent: {},
|
|
44
45
|
imMessageMeta: {
|
|
@@ -18,6 +18,17 @@ export const failedLine = '#ffd6d6';
|
|
|
18
18
|
export const failedColor = '#000';
|
|
19
19
|
export const failedUrlColor = '#0a73eb';
|
|
20
20
|
export const imIntegrationIcon = {
|
|
21
|
+
path0_color: '#ffffff40',
|
|
22
|
+
path1_color: '#fff',
|
|
23
|
+
whatsapp_color: '#24d366',
|
|
24
|
+
telegram_color: '#4fa7d8',
|
|
25
|
+
wechat_color: '#2dc100',
|
|
26
|
+
line_color: '#01b901',
|
|
27
|
+
twillio_color: '#f22f46',
|
|
28
|
+
instagram_color: 'red',
|
|
29
|
+
asap_color: '#0a73eb'
|
|
30
|
+
};
|
|
31
|
+
export const imTtIcon = {
|
|
21
32
|
path0_color: 'rgba(200,203,220,0.7)',
|
|
22
33
|
path1_color: '#000'
|
|
23
34
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable camelcase */
|
|
2
|
-
import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, messagetextColor, primaryGreen, white, black, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor, imIntegrationIcon } from './commonColorVariable';
|
|
2
|
+
import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, messagetextColor, primaryGreen, white, black, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor, imIntegrationIcon, imTtIcon } from './commonColorVariable';
|
|
3
3
|
export default {
|
|
4
4
|
library: 'chat_components',
|
|
5
5
|
variables: {
|
|
@@ -39,6 +39,7 @@ export default {
|
|
|
39
39
|
},
|
|
40
40
|
// IMInfoBubble: {},
|
|
41
41
|
imIntegrationIcon,
|
|
42
|
+
imTtIcon,
|
|
42
43
|
// IMMessage: {},
|
|
43
44
|
// IMMessageContent: {},
|
|
44
45
|
imMessageMeta: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable camelcase */
|
|
2
|
-
import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, messagetextColor, primaryOrange, white, black, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor, imIntegrationIcon } from './commonColorVariable';
|
|
2
|
+
import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, messagetextColor, primaryOrange, white, black, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor, imIntegrationIcon, imTtIcon } from './commonColorVariable';
|
|
3
3
|
export default {
|
|
4
4
|
library: 'chat_components',
|
|
5
5
|
variables: {
|
|
@@ -39,6 +39,7 @@ export default {
|
|
|
39
39
|
},
|
|
40
40
|
// IMInfoBubble: {},
|
|
41
41
|
imIntegrationIcon,
|
|
42
|
+
imTtIcon,
|
|
42
43
|
// IMMessage: {},
|
|
43
44
|
// IMMessageContent: {},
|
|
44
45
|
imMessageMeta: {
|
|
@@ -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: {
|
|
@@ -39,6 +39,7 @@ export default {
|
|
|
39
39
|
},
|
|
40
40
|
// IMInfoBubble: {},
|
|
41
41
|
imIntegrationIcon,
|
|
42
|
+
imTtIcon,
|
|
42
43
|
// IMMessage: {},
|
|
43
44
|
// IMMessageContent: {},
|
|
44
45
|
imMessageMeta: {
|
|
@@ -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: {
|
|
@@ -39,6 +39,7 @@ export default {
|
|
|
39
39
|
},
|
|
40
40
|
// IMInfoBubble: {},
|
|
41
41
|
imIntegrationIcon,
|
|
42
|
+
imTtIcon,
|
|
42
43
|
// IMMessage: {},
|
|
43
44
|
// IMMessageContent: {},
|
|
44
45
|
imMessageMeta: {
|
|
@@ -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: {
|
|
@@ -40,6 +40,7 @@ export default {
|
|
|
40
40
|
},
|
|
41
41
|
// IMInfoBubble: {},
|
|
42
42
|
imIntegrationIcon,
|
|
43
|
+
imTtIcon,
|
|
43
44
|
// IMMessage: {},
|
|
44
45
|
// IMMessageContent: {},
|
|
45
46
|
imMessageMeta: {
|
|
@@ -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: {
|
|
@@ -40,6 +40,7 @@ export default {
|
|
|
40
40
|
},
|
|
41
41
|
// IMInfoBubble: {},
|
|
42
42
|
imIntegrationIcon,
|
|
43
|
+
imTtIcon,
|
|
43
44
|
// IMMessage: {},
|
|
44
45
|
// IMMessageContent: {},
|
|
45
46
|
imMessageMeta: {
|
|
@@ -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: {
|
|
@@ -40,6 +40,7 @@ export default {
|
|
|
40
40
|
},
|
|
41
41
|
// IMInfoBubble: {},
|
|
42
42
|
imIntegrationIcon,
|
|
43
|
+
imTtIcon,
|
|
43
44
|
// IMMessage: {},
|
|
44
45
|
// IMMessageContent: {},
|
|
45
46
|
imMessageMeta: {
|
|
@@ -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: {
|
|
@@ -40,6 +40,7 @@ export default {
|
|
|
40
40
|
},
|
|
41
41
|
// IMInfoBubble: {},
|
|
42
42
|
imIntegrationIcon,
|
|
43
|
+
imTtIcon,
|
|
43
44
|
// IMMessage: {},
|
|
44
45
|
// IMMessageContent: {},
|
|
45
46
|
imMessageMeta: {
|
|
@@ -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: {
|
|
@@ -40,6 +40,7 @@ export default {
|
|
|
40
40
|
},
|
|
41
41
|
// IMInfoBubble: {},
|
|
42
42
|
imIntegrationIcon,
|
|
43
|
+
imTtIcon,
|
|
43
44
|
// IMMessage: {},
|
|
44
45
|
// IMMessageContent: {},
|
|
45
46
|
imMessageMeta: {
|
|
@@ -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,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,4 @@
|
|
|
87
87
|
|
|
88
88
|
.asapIcon {
|
|
89
89
|
background-color: var(--imlib_chat_components_imIntegrationIcon_asap_color);
|
|
90
|
-
}
|
|
90
|
+
}
|
|
@@ -150,18 +150,22 @@ export default function IMMessage(props) {
|
|
|
150
150
|
|
|
151
151
|
const messageCustomProps = useMemo(() => {
|
|
152
152
|
const {
|
|
153
|
-
|
|
153
|
+
customProps
|
|
154
154
|
} = messageProps;
|
|
155
|
+
const {
|
|
156
|
+
messageBubbleProps
|
|
157
|
+
} = customProps;
|
|
155
158
|
return { ...messageProps,
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
+
customProps: { ...customProps,
|
|
160
|
+
messageBubbleProps: {
|
|
161
|
+
renderMessageBoxFooter: handleRenderMessageBoxFooter,
|
|
162
|
+
...messageBubbleProps
|
|
163
|
+
}
|
|
159
164
|
}
|
|
160
165
|
};
|
|
161
166
|
}, [messageProps, handleRenderMessageBoxFooter]);
|
|
162
|
-
return /*#__PURE__*/React.createElement(Message, {
|
|
167
|
+
return /*#__PURE__*/React.createElement(Message, _extends({
|
|
163
168
|
actions: actions,
|
|
164
|
-
customProps: messageCustomProps,
|
|
165
169
|
direction: direction,
|
|
166
170
|
isActive: isHighlightMessage,
|
|
167
171
|
isShowSender: isShowSender,
|
|
@@ -174,7 +178,7 @@ export default function IMMessage(props) {
|
|
|
174
178
|
renderSecondaryActions: handleRenderSecondaryActions,
|
|
175
179
|
status: isAgentMessage ? messageStatus : '',
|
|
176
180
|
statusTooltip: messageStatusTitle
|
|
177
|
-
});
|
|
181
|
+
}, messageCustomProps));
|
|
178
182
|
}
|
|
179
183
|
IMMessage.propTypes = imMessagePropTypes;
|
|
180
184
|
IMMessage.defaultProps = imMessageDefaultProps;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohoim/chat-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.19",
|
|
4
4
|
"description": "Chat Components",
|
|
5
5
|
"main": "es/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"@zohodesk/utils": "1.3.9",
|
|
36
36
|
"@zohodesk/variables": "1.0.0-beta.30",
|
|
37
37
|
"@zohodesk/virtualizer": "1.0.13",
|
|
38
|
-
"@zohoim/chat-components-hooks": "^0.0.
|
|
39
|
-
"@zohoim/chat-components-utils": "^0.0.
|
|
38
|
+
"@zohoim/chat-components-hooks": "^0.0.17",
|
|
39
|
+
"@zohoim/chat-components-utils": "^0.0.16"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@zohodesk-private/css-variable-migrator": "1.0.1",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"jsdom": "22.1.0",
|
|
45
45
|
"react-to-jsx": "1.3.2"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "fd40ae8f16de17a0a0239b5c71c7448cf374bbca"
|
|
48
48
|
}
|