@zohoim/chat-components 1.0.9-beta.1 → 1.0.9-beta.2
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/AttachmentPreview/css/AttachmentPreview.module.css +0 -1
- package/es/AttachmentPreviewBody/AttachmentPreviewBody.js +10 -5
- package/es/AttachmentPreviewBody/css/AttachmentPreviewBody.module.css +10 -5
- package/es/AttachmentPreviewHeader/css/AttachmentPreviewHeader.module.css +5 -3
- package/es/EmojisFooter/css/EmojisFooter.module.css +3 -3
- package/es/EmojisHeader/css/EmojisHeader.module.css +3 -5
- package/es/Theme/props/defaultProps.js +1 -1
- package/es/Theme/themeVariables/dark/blueTheme.js +12 -3
- package/es/Theme/themeVariables/dark/commonColorVariable.js +9 -1
- package/es/Theme/themeVariables/dark/greenTheme.js +14 -4
- package/es/Theme/themeVariables/dark/orangeTheme.js +14 -4
- package/es/Theme/themeVariables/dark/redTheme.js +14 -4
- package/es/Theme/themeVariables/dark/yellowTheme.js +14 -4
- package/es/Theme/themeVariables/light/blueTheme.js +11 -2
- package/es/Theme/themeVariables/light/commonColorVariable.js +10 -2
- package/es/Theme/themeVariables/light/greenTheme.js +12 -2
- package/es/Theme/themeVariables/light/orangeTheme.js +12 -2
- package/es/Theme/themeVariables/light/redTheme.js +12 -2
- package/es/Theme/themeVariables/light/yellowTheme.js +12 -2
- package/es/Theme/themeVariables/pureDark/blueTheme.js +12 -3
- package/es/Theme/themeVariables/pureDark/commonColorVariable.js +9 -1
- package/es/Theme/themeVariables/pureDark/greenTheme.js +14 -4
- package/es/Theme/themeVariables/pureDark/orangeTheme.js +14 -4
- package/es/Theme/themeVariables/pureDark/redTheme.js +14 -4
- package/es/Theme/themeVariables/pureDark/yellowTheme.js +14 -4
- package/es/constants/index.js +1 -1
- package/es/im/ReplyEditor/css/ReplyEditor.module.css +9 -1
- package/package.json +2 -2
|
@@ -3,7 +3,7 @@ import React, { useMemo } from 'react';
|
|
|
3
3
|
/** ** Components *** */
|
|
4
4
|
|
|
5
5
|
import { Container } from '@zohodesk/components/es/Layout';
|
|
6
|
-
import
|
|
6
|
+
import ReplyEditor from "../im/ReplyEditor/ReplyEditor";
|
|
7
7
|
import AttachmentIcon from "../AttachmentIcon/AttachmentIcon";
|
|
8
8
|
/** ** Hooks *** */
|
|
9
9
|
|
|
@@ -45,6 +45,12 @@ export default function AttachmentPreviewBody(props) {
|
|
|
45
45
|
editorWrapper: newStyle.editorWrapper,
|
|
46
46
|
editableDiv: newStyle.editableDiv
|
|
47
47
|
}), [newStyle.editorWrapper, newStyle.editableDiv]);
|
|
48
|
+
const editorCustomProps = useMemo(() => ({
|
|
49
|
+
editorProps: {
|
|
50
|
+
needAutoFocus: true,
|
|
51
|
+
...editorProps
|
|
52
|
+
}
|
|
53
|
+
}), [editorProps]);
|
|
48
54
|
return /*#__PURE__*/React.createElement(Container, {
|
|
49
55
|
align: "both",
|
|
50
56
|
alignBox: "column",
|
|
@@ -60,15 +66,14 @@ export default function AttachmentPreviewBody(props) {
|
|
|
60
66
|
fileFormat: fileFormat,
|
|
61
67
|
mediaType: mediaType,
|
|
62
68
|
...attachmentIconProps
|
|
63
|
-
}))), isDescriptionNeeded ? /*#__PURE__*/React.createElement(
|
|
69
|
+
}))), isDescriptionNeeded ? /*#__PURE__*/React.createElement(ReplyEditor, {
|
|
64
70
|
content: description,
|
|
71
|
+
customProps: editorCustomProps,
|
|
65
72
|
customStyle: editorCustomStyle,
|
|
66
73
|
id: `${attachmentId}_Attach_Editor`,
|
|
67
|
-
needAutoFocus: true,
|
|
68
74
|
onChange: onDescriptionChange,
|
|
69
75
|
onKeyDown: onEditorKeyDown,
|
|
70
|
-
placeHolder: placeHolder
|
|
71
|
-
...editorProps
|
|
76
|
+
placeHolder: placeHolder
|
|
72
77
|
}) : null);
|
|
73
78
|
}
|
|
74
79
|
AttachmentPreviewBody.propTypes = attachmentPreviewBodyPropTypes;
|
|
@@ -13,17 +13,23 @@
|
|
|
13
13
|
|
|
14
14
|
.editableDiv {
|
|
15
15
|
min-height: var(--zd_size48) !important;
|
|
16
|
+
max-height: var(--zd_size48) !important;
|
|
16
17
|
background-color: transparent !important;
|
|
17
18
|
border: 0 !important;
|
|
18
|
-
border-bottom: 1px solid
|
|
19
|
+
border-bottom: 1px solid
|
|
20
|
+
var(--imlib_chat_components_attachmentPreviewBody_editor_border_color) !important;
|
|
19
21
|
}
|
|
20
22
|
|
|
21
23
|
.editableDiv:hover {
|
|
22
|
-
border-color:
|
|
24
|
+
border-color: var(
|
|
25
|
+
--imlib_chat_components_attachmentPreviewBody_editor_border_hover_color
|
|
26
|
+
) !important;
|
|
23
27
|
}
|
|
24
28
|
|
|
25
29
|
.editableDiv:focus {
|
|
26
|
-
border-color:
|
|
30
|
+
border-color: var(
|
|
31
|
+
--imlib_chat_components_attachmentPreviewBody_editor_border_active_color
|
|
32
|
+
) !important;
|
|
27
33
|
}
|
|
28
34
|
|
|
29
35
|
.imgContent,
|
|
@@ -34,8 +40,7 @@
|
|
|
34
40
|
}
|
|
35
41
|
|
|
36
42
|
.imgContent, .zoomContent {
|
|
37
|
-
background: var(--
|
|
38
|
-
background-color: #f5f6f7;
|
|
43
|
+
background-color: var(--imlib_chat_components_attachmentPreviewBody_bg_color);
|
|
39
44
|
padding: var(--zd_size40);
|
|
40
45
|
}
|
|
41
46
|
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/** ** Styles *** */
|
|
2
2
|
.imgPreviewerheader {
|
|
3
3
|
position: relative;
|
|
4
|
-
background-color: var(
|
|
4
|
+
background-color: var(
|
|
5
|
+
--imlib_chat_components_attachmentPreviewHeader_bg_color
|
|
6
|
+
);
|
|
5
7
|
padding: var(--zd_size15) var(--zd_size40);
|
|
6
8
|
border-bottom: var(--zd_size1) solid var(--zd_im_common_border);
|
|
7
9
|
}
|
|
@@ -15,7 +17,7 @@
|
|
|
15
17
|
}
|
|
16
18
|
|
|
17
19
|
.imgName {
|
|
18
|
-
color:
|
|
20
|
+
color: var(--imlib_chat_components_attachmentPreviewHeader_name_color);
|
|
19
21
|
font-size: var(--zd_font_size17);
|
|
20
22
|
font-family: var(--zd_semibold);
|
|
21
23
|
composes: dotted from '../../css/common.module.css';
|
|
@@ -25,7 +27,7 @@
|
|
|
25
27
|
|
|
26
28
|
.imgSize {
|
|
27
29
|
font-size: var(--zd_font_size13);
|
|
28
|
-
color:
|
|
30
|
+
color: var(--imlib_chat_components_attachmentPreviewHeader_size_color);
|
|
29
31
|
composes: dotted from '../../css/common.module.css';
|
|
30
32
|
max-width: var(--zd_size150);
|
|
31
33
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.footerTab {
|
|
2
2
|
position: relative;
|
|
3
|
-
border-top: 1px solid
|
|
3
|
+
border-top: 1px solid var(--imlib_chat_components_emojiFooter_border_color);
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
.tabIcon {
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
right: 0 ;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
.emoji{
|
|
35
|
+
.emoji {
|
|
36
36
|
width: auto ;
|
|
37
37
|
height: auto ;
|
|
38
38
|
margin: 0 ;
|
|
39
39
|
padding: 8% ;
|
|
40
|
-
}
|
|
40
|
+
}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
.container{
|
|
1
|
+
.container {
|
|
2
2
|
padding: var(--zd_size10) ;
|
|
3
|
-
border-bottom: 1px solid
|
|
3
|
+
border-bottom: 1px solid
|
|
4
|
+
var(--imlib_chat_components_emojisHeader_border_color);
|
|
4
5
|
}
|
|
5
6
|
|
|
6
7
|
.emojisSearch {
|
|
7
8
|
position: relative;
|
|
8
9
|
background-color: var(--imlib_chat_components_emojisHeader_bg_color);
|
|
9
|
-
background-color: #fafafa;
|
|
10
|
-
|
|
11
|
-
background-color: var(--imlib_chat_components_emojiPopup_bg);
|
|
12
10
|
}
|
|
13
11
|
|
|
14
12
|
.searchInput {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable camelcase */
|
|
2
|
-
import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryBlue, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor, replyEditor, emojiPopup } from "./commonColorVariable";
|
|
2
|
+
import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryBlue, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor, replyEditor, emojiPopup, emojisHeader, attachmentPreviewHeader } from "./commonColorVariable";
|
|
3
3
|
import { imIntegrationIcon, imTtIcon, messagetextColor } from "../commonThemeColorVariable";
|
|
4
4
|
export default {
|
|
5
5
|
library: 'chat_components',
|
|
@@ -113,9 +113,18 @@ export default {
|
|
|
113
113
|
border_color_failed: failedBdr
|
|
114
114
|
},
|
|
115
115
|
emojiFooter: {
|
|
116
|
-
tabLine: primaryBlue
|
|
116
|
+
tabLine: primaryBlue,
|
|
117
|
+
border_color: '#2d3748'
|
|
117
118
|
},
|
|
118
119
|
replyEditor,
|
|
119
|
-
emojiPopup
|
|
120
|
+
emojiPopup,
|
|
121
|
+
emojisHeader,
|
|
122
|
+
attachmentPreviewHeader,
|
|
123
|
+
attachmentPreviewBody: {
|
|
124
|
+
bg_color: '#262f3d',
|
|
125
|
+
editor_border_color: '#3e4d63',
|
|
126
|
+
editor_border_hover_color: '#828994',
|
|
127
|
+
editor_border_active_color: '#479dff'
|
|
128
|
+
}
|
|
120
129
|
}
|
|
121
130
|
};
|
|
@@ -21,7 +21,15 @@ export const emojiPopup = {
|
|
|
21
21
|
};
|
|
22
22
|
export const replyEditor = {
|
|
23
23
|
bg: '#242b38',
|
|
24
|
-
border: '#f1f4f9',
|
|
25
24
|
color: '#e2e4e6',
|
|
26
25
|
placeholder: '#5a616f'
|
|
26
|
+
};
|
|
27
|
+
export const emojisHeader = {
|
|
28
|
+
bg_color: '#283442',
|
|
29
|
+
border_color: '#2d3748'
|
|
30
|
+
};
|
|
31
|
+
export const attachmentPreviewHeader = {
|
|
32
|
+
bg_color: '#232b38',
|
|
33
|
+
name_color: '#e2e4e6',
|
|
34
|
+
size_color: '#a8b0bd'
|
|
27
35
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable camelcase */
|
|
2
|
-
import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryGreen, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor, emojiPopup } from "./commonColorVariable";
|
|
2
|
+
import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryGreen, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor, emojiPopup, replyEditor, emojisHeader, attachmentPreviewHeader } from "./commonColorVariable";
|
|
3
3
|
import { imIntegrationIcon, imTtIcon, messagetextColor } from "../commonThemeColorVariable";
|
|
4
4
|
export default {
|
|
5
5
|
library: 'chat_components',
|
|
@@ -112,8 +112,18 @@ export default {
|
|
|
112
112
|
border_color_failed: failedBdr
|
|
113
113
|
},
|
|
114
114
|
emojiFooter: {
|
|
115
|
-
tabLine: primaryGreen
|
|
116
|
-
|
|
117
|
-
|
|
115
|
+
tabLine: primaryGreen,
|
|
116
|
+
border_color: '#2d3748'
|
|
117
|
+
},
|
|
118
|
+
emojiPopup,
|
|
119
|
+
replyEditor,
|
|
120
|
+
emojisHeader,
|
|
121
|
+
attachmentPreviewHeader,
|
|
122
|
+
attachmentPreviewBody: {
|
|
123
|
+
bg_color: '#262f3d',
|
|
124
|
+
editor_border_color: '#3e4d63',
|
|
125
|
+
editor_border_hover_color: '#828994',
|
|
126
|
+
editor_border_active_color: '#45a159'
|
|
127
|
+
}
|
|
118
128
|
}
|
|
119
129
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable camelcase */
|
|
2
|
-
import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryOrange, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor, emojiPopup } from "./commonColorVariable";
|
|
2
|
+
import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryOrange, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor, emojiPopup, replyEditor, emojisHeader, attachmentPreviewHeader } from "./commonColorVariable";
|
|
3
3
|
import { imIntegrationIcon, imTtIcon, messagetextColor } from "../commonThemeColorVariable";
|
|
4
4
|
export default {
|
|
5
5
|
library: 'chat_components',
|
|
@@ -112,8 +112,18 @@ export default {
|
|
|
112
112
|
border_color_failed: failedBdr
|
|
113
113
|
},
|
|
114
114
|
emojiFooter: {
|
|
115
|
-
tabLine: primaryOrange
|
|
116
|
-
|
|
117
|
-
|
|
115
|
+
tabLine: primaryOrange,
|
|
116
|
+
border_color: '#2d3748'
|
|
117
|
+
},
|
|
118
|
+
emojiPopup,
|
|
119
|
+
replyEditor,
|
|
120
|
+
emojisHeader,
|
|
121
|
+
attachmentPreviewHeader,
|
|
122
|
+
attachmentPreviewBody: {
|
|
123
|
+
bg_color: '#262f3d',
|
|
124
|
+
editor_border_color: '#3e4d63',
|
|
125
|
+
editor_border_hover_color: '#828994',
|
|
126
|
+
editor_border_active_color: '#ff801f'
|
|
127
|
+
}
|
|
118
128
|
}
|
|
119
129
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable camelcase */
|
|
2
|
-
import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryRed, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor, emojiPopup } from "./commonColorVariable";
|
|
2
|
+
import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryRed, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor, emojiPopup, replyEditor, emojisHeader, attachmentPreviewHeader } from "./commonColorVariable";
|
|
3
3
|
import { imIntegrationIcon, imTtIcon, messagetextColor } from "../commonThemeColorVariable";
|
|
4
4
|
export default {
|
|
5
5
|
library: 'chat_components',
|
|
@@ -112,8 +112,18 @@ export default {
|
|
|
112
112
|
border_color_failed: failedBdr
|
|
113
113
|
},
|
|
114
114
|
emojiFooter: {
|
|
115
|
-
tabLine: primaryRed
|
|
116
|
-
|
|
117
|
-
|
|
115
|
+
tabLine: primaryRed,
|
|
116
|
+
border_color: 'hsl(258.46deg 12.62% 23.2%)'
|
|
117
|
+
},
|
|
118
|
+
emojiPopup,
|
|
119
|
+
replyEditor,
|
|
120
|
+
emojisHeader,
|
|
121
|
+
attachmentPreviewHeader,
|
|
122
|
+
attachmentPreviewBody: {
|
|
123
|
+
bg_color: '#262f3d',
|
|
124
|
+
editor_border_color: '#3e4d63',
|
|
125
|
+
editor_border_hover_color: '#828994',
|
|
126
|
+
editor_border_active_color: '#e94f4f'
|
|
127
|
+
}
|
|
118
128
|
}
|
|
119
129
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable camelcase */
|
|
2
|
-
import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryYellow, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor, emojiPopup } from "./commonColorVariable";
|
|
2
|
+
import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryYellow, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor, emojiPopup, replyEditor, emojisHeader, attachmentPreviewHeader } from "./commonColorVariable";
|
|
3
3
|
import { imIntegrationIcon, imTtIcon, messagetextColor } from "../commonThemeColorVariable";
|
|
4
4
|
export default {
|
|
5
5
|
library: 'chat_components',
|
|
@@ -112,8 +112,18 @@ export default {
|
|
|
112
112
|
border_color_failed: failedBdr
|
|
113
113
|
},
|
|
114
114
|
emojiFooter: {
|
|
115
|
-
tabLine: primaryYellow
|
|
116
|
-
|
|
117
|
-
|
|
115
|
+
tabLine: primaryYellow,
|
|
116
|
+
border_color: '#2d3748'
|
|
117
|
+
},
|
|
118
|
+
emojiPopup,
|
|
119
|
+
replyEditor,
|
|
120
|
+
emojisHeader,
|
|
121
|
+
attachmentPreviewHeader,
|
|
122
|
+
attachmentPreviewBody: {
|
|
123
|
+
bg_color: '#262f3d',
|
|
124
|
+
editor_border_color: '#3e4d63',
|
|
125
|
+
editor_border_hover_color: '#828994',
|
|
126
|
+
editor_border_active_color: '#d79835'
|
|
127
|
+
}
|
|
118
128
|
}
|
|
119
129
|
};
|
|
@@ -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, imTtIcon, replyEditor, emojiPopup } from "./commonColorVariable";
|
|
2
|
+
import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, messagetextColor, primaryBlue, white, black, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor, imIntegrationIcon, imTtIcon, replyEditor, emojiPopup, emojisHeader, attachmentPreviewHeader } from "./commonColorVariable";
|
|
3
3
|
export default {
|
|
4
4
|
library: 'chat_components',
|
|
5
5
|
variables: {
|
|
@@ -117,7 +117,16 @@ export default {
|
|
|
117
117
|
replyEditor,
|
|
118
118
|
emojiPopup,
|
|
119
119
|
emojiFooter: {
|
|
120
|
-
tabLine: primaryBlue
|
|
120
|
+
tabLine: primaryBlue,
|
|
121
|
+
border_color: '#ebf0f5'
|
|
122
|
+
},
|
|
123
|
+
emojisHeader,
|
|
124
|
+
attachmentPreviewHeader,
|
|
125
|
+
attachmentPreviewBody: {
|
|
126
|
+
bg_color: '#f5f6f7',
|
|
127
|
+
editor_border_color: '#c8cbdc',
|
|
128
|
+
editor_border_hover_color: '#788190',
|
|
129
|
+
editor_border_active_color: '#0a73eb'
|
|
121
130
|
}
|
|
122
131
|
}
|
|
123
132
|
};
|
|
@@ -35,12 +35,20 @@ export const imTtIcon = {
|
|
|
35
35
|
};
|
|
36
36
|
export const replyEditor = {
|
|
37
37
|
bg: '#fff',
|
|
38
|
-
border: '#f1f4f9',
|
|
39
38
|
color: '#000',
|
|
40
|
-
placeholder: '#
|
|
39
|
+
placeholder: '#c8cbdc'
|
|
41
40
|
};
|
|
42
41
|
export const emojiPopup = {
|
|
43
42
|
bg: '#f1f4f9',
|
|
44
43
|
border: '#f1f4f9',
|
|
45
44
|
titleColor: '#aaa'
|
|
45
|
+
};
|
|
46
|
+
export const emojisHeader = {
|
|
47
|
+
bg_color: '#fafafa',
|
|
48
|
+
border_color: '#ede8e8'
|
|
49
|
+
};
|
|
50
|
+
export const attachmentPreviewHeader = {
|
|
51
|
+
bg_color: '#fff',
|
|
52
|
+
name_color: '#000',
|
|
53
|
+
size_color: '#5a616f'
|
|
46
54
|
};
|
|
@@ -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, imTtIcon } from "./commonColorVariable";
|
|
2
|
+
import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, messagetextColor, primaryGreen, white, black, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor, imIntegrationIcon, imTtIcon, replyEditor, emojisHeader, attachmentPreviewHeader } from "./commonColorVariable";
|
|
3
3
|
export default {
|
|
4
4
|
library: 'chat_components',
|
|
5
5
|
variables: {
|
|
@@ -111,7 +111,17 @@ export default {
|
|
|
111
111
|
border_color_failed: failedBdr
|
|
112
112
|
},
|
|
113
113
|
emojiFooter: {
|
|
114
|
-
tabLine: primaryGreen
|
|
114
|
+
tabLine: primaryGreen,
|
|
115
|
+
border_color: '#ebf0f5'
|
|
116
|
+
},
|
|
117
|
+
replyEditor,
|
|
118
|
+
emojisHeader,
|
|
119
|
+
attachmentPreviewHeader,
|
|
120
|
+
attachmentPreviewBody: {
|
|
121
|
+
bg_color: '#f5f6f7',
|
|
122
|
+
editor_border_color: '#c5cdc7',
|
|
123
|
+
editor_border_hover_color: '#788190',
|
|
124
|
+
editor_border_active_color: '#26a942'
|
|
115
125
|
}
|
|
116
126
|
}
|
|
117
127
|
};
|
|
@@ -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, imTtIcon } from "./commonColorVariable";
|
|
2
|
+
import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, messagetextColor, primaryOrange, white, black, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor, imIntegrationIcon, imTtIcon, replyEditor, emojisHeader, attachmentPreviewHeader } from "./commonColorVariable";
|
|
3
3
|
export default {
|
|
4
4
|
library: 'chat_components',
|
|
5
5
|
variables: {
|
|
@@ -111,7 +111,17 @@ export default {
|
|
|
111
111
|
border_color_failed: failedBdr
|
|
112
112
|
},
|
|
113
113
|
emojiFooter: {
|
|
114
|
-
tabLine: primaryOrange
|
|
114
|
+
tabLine: primaryOrange,
|
|
115
|
+
border_color: '#ebf0f5'
|
|
116
|
+
},
|
|
117
|
+
replyEditor,
|
|
118
|
+
emojisHeader,
|
|
119
|
+
attachmentPreviewHeader,
|
|
120
|
+
attachmentPreviewBody: {
|
|
121
|
+
bg_color: '#f5f6f7',
|
|
122
|
+
editor_border_color: '#d1cbc6',
|
|
123
|
+
editor_border_hover_color: '#788190',
|
|
124
|
+
editor_border_active_color: '#e57717'
|
|
115
125
|
}
|
|
116
126
|
}
|
|
117
127
|
};
|
|
@@ -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, imTtIcon } from "./commonColorVariable";
|
|
2
|
+
import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, messagetextColor, primaryRed, white, black, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor, imIntegrationIcon, imTtIcon, replyEditor, emojisHeader, attachmentPreviewHeader } from "./commonColorVariable";
|
|
3
3
|
export default {
|
|
4
4
|
library: 'chat_components',
|
|
5
5
|
variables: {
|
|
@@ -111,7 +111,17 @@ export default {
|
|
|
111
111
|
border_color_failed: failedBdr
|
|
112
112
|
},
|
|
113
113
|
emojiFooter: {
|
|
114
|
-
tabLine: primaryRed
|
|
114
|
+
tabLine: primaryRed,
|
|
115
|
+
border_color: '#ebf0f5'
|
|
116
|
+
},
|
|
117
|
+
replyEditor,
|
|
118
|
+
emojisHeader,
|
|
119
|
+
attachmentPreviewHeader,
|
|
120
|
+
attachmentPreviewBody: {
|
|
121
|
+
bg_color: '#f5f6f7',
|
|
122
|
+
editor_border_color: '#b9b2b4',
|
|
123
|
+
editor_border_hover_color: '#788190',
|
|
124
|
+
editor_border_active_color: '#de3535'
|
|
115
125
|
}
|
|
116
126
|
}
|
|
117
127
|
};
|
|
@@ -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, imTtIcon } from "./commonColorVariable";
|
|
2
|
+
import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, messagetextColor, primaryYellow, white, black, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor, imIntegrationIcon, imTtIcon, replyEditor, emojisHeader, attachmentPreviewHeader } from "./commonColorVariable";
|
|
3
3
|
export default {
|
|
4
4
|
library: 'chat_components',
|
|
5
5
|
variables: {
|
|
@@ -111,7 +111,17 @@ export default {
|
|
|
111
111
|
border_color_failed: failedBdr
|
|
112
112
|
},
|
|
113
113
|
emojiFooter: {
|
|
114
|
-
tabLine: primaryYellow
|
|
114
|
+
tabLine: primaryYellow,
|
|
115
|
+
border_color: '#ebf0f5'
|
|
116
|
+
},
|
|
117
|
+
replyEditor,
|
|
118
|
+
emojisHeader,
|
|
119
|
+
attachmentPreviewHeader,
|
|
120
|
+
attachmentPreviewBody: {
|
|
121
|
+
bg_color: '#f5f6f7',
|
|
122
|
+
editor_border_color: '#ccc2a4',
|
|
123
|
+
editor_border_hover_color: '#788190',
|
|
124
|
+
editor_border_active_color: '#e8b923'
|
|
115
125
|
}
|
|
116
126
|
}
|
|
117
127
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable camelcase */
|
|
2
|
-
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryBlue, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor, replyEditor, emojiPopup } from "./commonColorVariable";
|
|
2
|
+
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryBlue, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor, replyEditor, emojiPopup, emojisHeader, attachmentPreviewHeader } from "./commonColorVariable";
|
|
3
3
|
import { imIntegrationIcon, imTtIcon, messagetextColor } from "../commonThemeColorVariable";
|
|
4
4
|
export default {
|
|
5
5
|
library: 'chat_components',
|
|
@@ -112,9 +112,18 @@ export default {
|
|
|
112
112
|
border_color_failed: failedBdr
|
|
113
113
|
},
|
|
114
114
|
emojiFooter: {
|
|
115
|
-
tabLine: primaryBlue
|
|
115
|
+
tabLine: primaryBlue,
|
|
116
|
+
border_color: '#161515'
|
|
116
117
|
},
|
|
117
118
|
replyEditor,
|
|
118
|
-
emojiPopup
|
|
119
|
+
emojiPopup,
|
|
120
|
+
emojisHeader,
|
|
121
|
+
attachmentPreviewHeader,
|
|
122
|
+
attachmentPreviewBody: {
|
|
123
|
+
bg_color: '#262626',
|
|
124
|
+
editor_border_color: '#585858',
|
|
125
|
+
editor_border_hover_color: '#828994',
|
|
126
|
+
editor_border_active_color: '#479dff'
|
|
127
|
+
}
|
|
119
128
|
}
|
|
120
129
|
};
|
|
@@ -23,7 +23,15 @@ export const emojiPopup = {
|
|
|
23
23
|
};
|
|
24
24
|
export const replyEditor = {
|
|
25
25
|
bg: '#212121',
|
|
26
|
-
border: '#f1f4f9',
|
|
27
26
|
color: '#e2e4e6',
|
|
28
27
|
placeholder: '#585858'
|
|
28
|
+
};
|
|
29
|
+
export const emojisHeader = {
|
|
30
|
+
bg_color: '#171717',
|
|
31
|
+
border_color: '#161515'
|
|
32
|
+
};
|
|
33
|
+
export const attachmentPreviewHeader = {
|
|
34
|
+
bg_color: '#212121',
|
|
35
|
+
name_color: '#e2e4e6',
|
|
36
|
+
size_color: '#a8b0bd'
|
|
29
37
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable camelcase */
|
|
2
|
-
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryGreen, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor, emojiPopup } from "./commonColorVariable";
|
|
2
|
+
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryGreen, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor, emojiPopup, replyEditor, emojisHeader, attachmentPreviewHeader } from "./commonColorVariable";
|
|
3
3
|
import { imIntegrationIcon, imTtIcon, messagetextColor } from "../commonThemeColorVariable";
|
|
4
4
|
export default {
|
|
5
5
|
library: 'chat_components',
|
|
@@ -112,8 +112,18 @@ export default {
|
|
|
112
112
|
border_color_failed: failedBdr
|
|
113
113
|
},
|
|
114
114
|
emojiFooter: {
|
|
115
|
-
tabLine: primaryGreen
|
|
116
|
-
|
|
117
|
-
|
|
115
|
+
tabLine: primaryGreen,
|
|
116
|
+
border_color: '#161515'
|
|
117
|
+
},
|
|
118
|
+
replyEditor,
|
|
119
|
+
emojiPopup,
|
|
120
|
+
emojisHeader,
|
|
121
|
+
attachmentPreviewHeader,
|
|
122
|
+
attachmentPreviewBody: {
|
|
123
|
+
bg_color: '#262626',
|
|
124
|
+
editor_border_color: '#585858',
|
|
125
|
+
editor_border_hover_color: '#828994',
|
|
126
|
+
editor_border_active_color: '#45a159'
|
|
127
|
+
}
|
|
118
128
|
}
|
|
119
129
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable camelcase */
|
|
2
|
-
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryOrange, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor, emojiPopup } from "./commonColorVariable";
|
|
2
|
+
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryOrange, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor, emojiPopup, replyEditor, emojisHeader, attachmentPreviewHeader } from "./commonColorVariable";
|
|
3
3
|
import { imIntegrationIcon, imTtIcon, messagetextColor } from "../commonThemeColorVariable";
|
|
4
4
|
export default {
|
|
5
5
|
library: 'chat_components',
|
|
@@ -112,8 +112,18 @@ export default {
|
|
|
112
112
|
border_color_failed: failedBdr
|
|
113
113
|
},
|
|
114
114
|
emojiFooter: {
|
|
115
|
-
tabLine: primaryOrange
|
|
116
|
-
|
|
117
|
-
|
|
115
|
+
tabLine: primaryOrange,
|
|
116
|
+
border_color: '#161515'
|
|
117
|
+
},
|
|
118
|
+
emojiPopup,
|
|
119
|
+
replyEditor,
|
|
120
|
+
emojisHeader,
|
|
121
|
+
attachmentPreviewHeader,
|
|
122
|
+
attachmentPreviewBody: {
|
|
123
|
+
bg_color: '#262626',
|
|
124
|
+
editor_border_color: '#585858',
|
|
125
|
+
editor_border_hover_color: '#828994',
|
|
126
|
+
editor_border_active_color: '#ff801f'
|
|
127
|
+
}
|
|
118
128
|
}
|
|
119
129
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable camelcase */
|
|
2
|
-
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryRed, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor, emojiPopup } from "./commonColorVariable";
|
|
2
|
+
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryRed, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor, emojiPopup, replyEditor, emojisHeader, attachmentPreviewHeader } from "./commonColorVariable";
|
|
3
3
|
import { imIntegrationIcon, imTtIcon, messagetextColor } from "../commonThemeColorVariable";
|
|
4
4
|
export default {
|
|
5
5
|
library: 'chat_components',
|
|
@@ -112,8 +112,18 @@ export default {
|
|
|
112
112
|
border_color_failed: failedBdr
|
|
113
113
|
},
|
|
114
114
|
emojiFooter: {
|
|
115
|
-
tabLine: primaryRed
|
|
116
|
-
|
|
117
|
-
|
|
115
|
+
tabLine: primaryRed,
|
|
116
|
+
border_color: '#161515'
|
|
117
|
+
},
|
|
118
|
+
emojiPopup,
|
|
119
|
+
replyEditor,
|
|
120
|
+
emojisHeader,
|
|
121
|
+
attachmentPreviewHeader,
|
|
122
|
+
attachmentPreviewBody: {
|
|
123
|
+
bg_color: '#262626',
|
|
124
|
+
editor_border_color: '#585858',
|
|
125
|
+
editor_border_hover_color: '#828994',
|
|
126
|
+
editor_border_active_color: '#e94f4f'
|
|
127
|
+
}
|
|
118
128
|
}
|
|
119
129
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable camelcase */
|
|
2
|
-
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, messageStatusSendColor, messageStatusFailedColor, actionIconWrapperColor, primaryYellow, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor, emojiPopup } from "./commonColorVariable";
|
|
2
|
+
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, messageStatusSendColor, messageStatusFailedColor, actionIconWrapperColor, primaryYellow, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor, emojiPopup, replyEditor, emojisHeader, attachmentPreviewHeader } from "./commonColorVariable";
|
|
3
3
|
import { imIntegrationIcon, imTtIcon, messagetextColor } from "../commonThemeColorVariable";
|
|
4
4
|
export default {
|
|
5
5
|
library: 'chat_components',
|
|
@@ -112,8 +112,18 @@ export default {
|
|
|
112
112
|
border_color_failed: failedBdr
|
|
113
113
|
},
|
|
114
114
|
emojiFooter: {
|
|
115
|
-
tabLine: primaryYellow
|
|
116
|
-
|
|
117
|
-
|
|
115
|
+
tabLine: primaryYellow,
|
|
116
|
+
border_color: '#161515'
|
|
117
|
+
},
|
|
118
|
+
emojiPopup,
|
|
119
|
+
replyEditor,
|
|
120
|
+
emojisHeader,
|
|
121
|
+
attachmentPreviewHeader,
|
|
122
|
+
attachmentPreviewBody: {
|
|
123
|
+
bg_color: '#262626',
|
|
124
|
+
editor_border_color: '#585858',
|
|
125
|
+
editor_border_hover_color: '#828994',
|
|
126
|
+
editor_border_active_color: '#d79835'
|
|
127
|
+
}
|
|
118
128
|
}
|
|
119
129
|
};
|
package/es/constants/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export const MSG_ACTION_POPUP_PORTAL = 'MSG_ACTION_POPUP_PORTAL';
|
|
2
2
|
export const EDITOR_POPUP_PORTAL = 'EDITOR_POPUP_PORTAL';
|
|
3
|
-
const version = '1.4.
|
|
3
|
+
const version = '1.4.9';
|
|
4
4
|
export const defaultEditorURL = // `https://static.localzohocdn.com/rtelibrary/${version}/js/rte.js`;
|
|
5
5
|
// `https://static.zohocdn.com/rtelibrary/${version}/js/rte.js`;
|
|
6
6
|
// `https://static.localzohocdn.com/rtelibrary/${version}/js/rte.min.js`;
|
|
@@ -17,8 +17,16 @@
|
|
|
17
17
|
font-size: var(--zd_font_size14) !important;
|
|
18
18
|
font-family: var(--zd_regular) !important;
|
|
19
19
|
line-height: 22px !important;
|
|
20
|
+
|
|
21
|
+
--rte-text-color: var(--imlib_chat_components_replyEditor_color) !important;
|
|
22
|
+
--rte-bg-color: var(--imlib_chat_components_replyEditor_bg) !important;
|
|
23
|
+
--rte-placeholder-color: var(
|
|
24
|
+
--imlib_chat_components_replyEditor_placeholder
|
|
25
|
+
) !important;
|
|
26
|
+
--rte-link-text-color: var(
|
|
27
|
+
--imlib_chat_components_replyEditor_color
|
|
28
|
+
) !important;
|
|
20
29
|
padding: 0 !important;
|
|
21
|
-
background-color: var(--imlib_chat_components_replyEditor_bg) !important;
|
|
22
30
|
}
|
|
23
31
|
|
|
24
32
|
.editorWrapper {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohoim/chat-components",
|
|
3
|
-
"version": "1.0.9-beta.
|
|
3
|
+
"version": "1.0.9-beta.2",
|
|
4
4
|
"description": "Chat Components",
|
|
5
5
|
"main": "es/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"jsdom": "23.0.0",
|
|
46
46
|
"react-to-jsx": "1.3.2"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "249c979f45728e88f3fc2f5db1fc2f55cb6548bf"
|
|
49
49
|
}
|