@zohoim/chat-components 1.0.9-beta.1 → 1.0.9-beta.3

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.
Files changed (34) hide show
  1. package/es/AttachmentHandler/css/AttachmentHandler.module.css +10 -0
  2. package/es/AttachmentPreview/AttachmentPreview.js +5 -6
  3. package/es/AttachmentPreview/css/AttachmentPreview.module.css +12 -4
  4. package/es/AttachmentPreviewBody/AttachmentPreviewBody.js +10 -5
  5. package/es/AttachmentPreviewBody/css/AttachmentPreviewBody.module.css +12 -5
  6. package/es/AttachmentPreviewHeader/css/AttachmentPreviewHeader.module.css +5 -3
  7. package/es/Emoji/css/Emoji.module.css +3 -2
  8. package/es/EmojiPopup/css/EmojiPopup.module.css +7 -2
  9. package/es/EmojisFooter/css/EmojisFooter.module.css +3 -3
  10. package/es/EmojisHeader/css/EmojisHeader.module.css +3 -5
  11. package/es/Theme/props/defaultProps.js +1 -1
  12. package/es/Theme/themeVariables/dark/blueTheme.js +15 -3
  13. package/es/Theme/themeVariables/dark/commonColorVariable.js +9 -1
  14. package/es/Theme/themeVariables/dark/greenTheme.js +17 -4
  15. package/es/Theme/themeVariables/dark/orangeTheme.js +17 -4
  16. package/es/Theme/themeVariables/dark/redTheme.js +17 -4
  17. package/es/Theme/themeVariables/dark/yellowTheme.js +17 -4
  18. package/es/Theme/themeVariables/light/blueTheme.js +15 -3
  19. package/es/Theme/themeVariables/light/commonColorVariable.js +10 -2
  20. package/es/Theme/themeVariables/light/greenTheme.js +16 -2
  21. package/es/Theme/themeVariables/light/orangeTheme.js +16 -2
  22. package/es/Theme/themeVariables/light/redTheme.js +16 -2
  23. package/es/Theme/themeVariables/light/yellowTheme.js +16 -2
  24. package/es/Theme/themeVariables/pureDark/blueTheme.js +15 -3
  25. package/es/Theme/themeVariables/pureDark/commonColorVariable.js +9 -1
  26. package/es/Theme/themeVariables/pureDark/greenTheme.js +17 -4
  27. package/es/Theme/themeVariables/pureDark/orangeTheme.js +17 -4
  28. package/es/Theme/themeVariables/pureDark/redTheme.js +17 -4
  29. package/es/Theme/themeVariables/pureDark/yellowTheme.js +17 -4
  30. package/es/constants/index.js +1 -1
  31. package/es/im/ReplyComposerFooter/css/ReplyComposerFooter.module.css +6 -1
  32. package/es/im/ReplyEditor/css/ReplyEditor.module.css +13 -1
  33. package/es/im/ReplyEditorSuggestionsPopup/ReplyEditorSuggestionsPopup.js +1 -0
  34. package/package.json +2 -2
@@ -15,3 +15,13 @@
15
15
  .icon {
16
16
  color: initial;
17
17
  }
18
+
19
+
20
+ .icon :global .path1:before {
21
+ color: var(--imlib_chat_components_emojiPopup_ttIcon_path1_color) !important;
22
+ opacity: 1;
23
+ }
24
+
25
+ .icon :global .path2:before {
26
+ color: var(--imlib_chat_components_emojiPopup_ttIcon_path2_color) !important;
27
+ }
@@ -78,13 +78,12 @@ export default function AttachmentPreview(props) {
78
78
  attachmentId
79
79
  } = selectedFile;
80
80
  const isImageFile = useMemo(() => mediaType === IMAGE, [mediaType]);
81
- return isShow ? /*#__PURE__*/React.createElement("div", {
82
- className: newStyle.attachmentPreview
83
- }, /*#__PURE__*/React.createElement(Container, {
81
+ return isShow ? /*#__PURE__*/React.createElement(Container, {
84
82
  align: "both",
85
- alignBox: "column"
83
+ alignBox: "column",
84
+ className: newStyle.attachmentPreview
86
85
  }, /*#__PURE__*/React.createElement("div", {
87
- className: `${newStyle.uploadPrev} ${newStyle.container}`
86
+ className: newStyle.uploadPrev
88
87
  }, /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(AttachmentPreviewHeader, {
89
88
  cancelText: cancelText,
90
89
  fileName: fileName,
@@ -106,7 +105,7 @@ export default function AttachmentPreview(props) {
106
105
  onEditorKeyDown: onEditorKeyDown,
107
106
  placeHolder: placeHolder,
108
107
  ...attachmentPreviewBodyProps
109
- }))))) : null;
108
+ })))) : null;
110
109
  }
111
110
  AttachmentPreview.propTypes = attachmentPreviewPropTypes;
112
111
  AttachmentPreview.defaultProps = attachmentPreviewDefaultProps;
@@ -3,7 +3,6 @@
3
3
  position: fixed;
4
4
  top: 0 ;
5
5
  bottom: 0 ;
6
- /* z-index: 9999; */
7
6
  z-index: 2147483643;
8
7
  overflow: hidden;
9
8
  background-color: rgba(42, 45, 54, 0.94);
@@ -19,13 +18,22 @@
19
18
  right: 0 ;
20
19
  }
21
20
 
22
- .container {
23
- position: relative;
21
+ @keyframes scaleIn {
22
+ 0% {
23
+ -webkit-transform: scale(0.9);
24
+ transform: scale(0.9);
25
+ opacity: .7
26
+ }
27
+
28
+ 100% {
29
+ -webkit-transform: scale(1);
30
+ transform: scale(1);
31
+ opacity: 1
32
+ }
24
33
  }
25
34
 
26
35
  .uploadPrev {
27
36
  width: 100% ;
28
37
  max-width: 43.75rem;
29
- background-color: #fff;
30
38
  border-radius: 5px;
31
39
  }
@@ -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 Editor from "../rte/Editor/Editor";
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(Editor, {
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;
@@ -9,21 +9,29 @@
9
9
  flex-direction: column;
10
10
  height: 100% ;
11
11
  width: 100% ;
12
+ padding: 0 ;
13
+ margin-top: var(--zd_size40) ;
12
14
  }
13
15
 
14
16
  .editableDiv {
15
17
  min-height: var(--zd_size48) !important;
18
+ max-height: var(--zd_size48) !important;
16
19
  background-color: transparent !important;
17
20
  border: 0 !important;
18
- border-bottom: 1px solid rgb(211, 223, 215) !important;
21
+ border-bottom: 1px solid
22
+ var(--imlib_chat_components_attachmentPreviewBody_editor_border_color) !important;
19
23
  }
20
24
 
21
25
  .editableDiv:hover {
22
- border-color: rgb(120, 129, 144) !important;
26
+ border-color: var(
27
+ --imlib_chat_components_attachmentPreviewBody_editor_border_hover_color
28
+ ) !important;
23
29
  }
24
30
 
25
31
  .editableDiv:focus {
26
- border-color: rgb(38, 169, 66) !important;
32
+ border-color: var(
33
+ --imlib_chat_components_attachmentPreviewBody_editor_border_active_color
34
+ ) !important;
27
35
  }
28
36
 
29
37
  .imgContent,
@@ -34,8 +42,7 @@
34
42
  }
35
43
 
36
44
  .imgContent, .zoomContent {
37
- background: var(--zd_im_chat_attachment_preview_bg);
38
- background-color: #f5f6f7;
45
+ background-color: var(--imlib_chat_components_attachmentPreviewBody_bg_color);
39
46
  padding: var(--zd_size40);
40
47
  }
41
48
 
@@ -1,7 +1,9 @@
1
1
  /** ** Styles *** */
2
2
  .imgPreviewerheader {
3
3
  position: relative;
4
- background-color: var(--zd_im_common_bg);
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: #000;
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: #5a616f;
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
  }
@@ -11,8 +11,9 @@
11
11
  height: var(--emoji-width);
12
12
  overflow: hidden;
13
13
  font-size: 0 ;
14
- display: inline-block;
15
- vertical-align: -webkit-baseline-middle;
14
+ display: inline-flex;
15
+ align-items: center;
16
+ justify-content: center;
16
17
  cursor: pointer;
17
18
  margin: 0 var(--emoji-margin);
18
19
  text-align: center;
@@ -41,10 +41,15 @@
41
41
  }
42
42
 
43
43
  .icon :global .path1:before {
44
- color: rgba(197,205,199,0.7) !important;
44
+ color: var(--imlib_chat_components_emojiPopup_ttIcon_path1_color) !important;
45
45
  opacity: 1;
46
46
  }
47
47
 
48
48
  .icon :global .path2:before {
49
- color: #000 !important;
49
+ color: var(--imlib_chat_components_emojiPopup_ttIcon_path2_color) !important;
50
50
  }
51
+
52
+ .icon :global .path2{
53
+ position: relative;
54
+ z-index: 1;
55
+ }
@@ -1,6 +1,6 @@
1
1
  .footerTab {
2
2
  position: relative;
3
- border-top: 1px solid rgb(238, 242, 239);
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 #e4e5e6;
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 {
@@ -6,6 +6,6 @@ const themeWrapperDefaultProps = {
6
6
  theme: 'BLUE',
7
7
  needTooltip: true,
8
8
  tooltipCustomStyle: dummyObject,
9
- direction: 'rtl'
9
+ direction: 'ltr'
10
10
  };
11
11
  export default themeWrapperDefaultProps;
@@ -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,21 @@ 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: { ...emojiPopup,
121
+ ttIcon_path1_color: '#5f6478',
122
+ ttIcon_pathe2_color: 'var(--dot_platinum)'
123
+ },
124
+ emojisHeader,
125
+ attachmentPreviewHeader,
126
+ attachmentPreviewBody: {
127
+ bg_color: '#262f3d',
128
+ editor_border_color: '#3e4d63',
129
+ editor_border_hover_color: '#828994',
130
+ editor_border_active_color: '#479dff'
131
+ }
120
132
  }
121
133
  };
@@ -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,21 @@ export default {
112
112
  border_color_failed: failedBdr
113
113
  },
114
114
  emojiFooter: {
115
- tabLine: primaryGreen
116
- },
117
- emojiPopup
115
+ tabLine: primaryGreen,
116
+ border_color: '#2d3748'
117
+ },
118
+ emojiPopup: { ...emojiPopup,
119
+ ttIcon_path1_color: '#5f6478',
120
+ ttIcon_pathe2_color: 'var(--dot_platinum)'
121
+ },
122
+ replyEditor,
123
+ emojisHeader,
124
+ attachmentPreviewHeader,
125
+ attachmentPreviewBody: {
126
+ bg_color: '#262f3d',
127
+ editor_border_color: '#3e4d63',
128
+ editor_border_hover_color: '#828994',
129
+ editor_border_active_color: '#45a159'
130
+ }
118
131
  }
119
132
  };
@@ -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,21 @@ export default {
112
112
  border_color_failed: failedBdr
113
113
  },
114
114
  emojiFooter: {
115
- tabLine: primaryOrange
116
- },
117
- emojiPopup
115
+ tabLine: primaryOrange,
116
+ border_color: '#2d3748'
117
+ },
118
+ emojiPopup: { ...emojiPopup,
119
+ ttIcon_path1_color: '#5f6478',
120
+ ttIcon_pathe2_color: 'var(--dot_platinum)'
121
+ },
122
+ replyEditor,
123
+ emojisHeader,
124
+ attachmentPreviewHeader,
125
+ attachmentPreviewBody: {
126
+ bg_color: '#262f3d',
127
+ editor_border_color: '#3e4d63',
128
+ editor_border_hover_color: '#828994',
129
+ editor_border_active_color: '#ff801f'
130
+ }
118
131
  }
119
132
  };
@@ -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,21 @@ export default {
112
112
  border_color_failed: failedBdr
113
113
  },
114
114
  emojiFooter: {
115
- tabLine: primaryRed
116
- },
117
- emojiPopup
115
+ tabLine: primaryRed,
116
+ border_color: 'hsl(258.46deg 12.62% 23.2%)'
117
+ },
118
+ emojiPopup: { ...emojiPopup,
119
+ ttIcon_path1_color: '#5f6478',
120
+ ttIcon_pathe2_color: 'var(--dot_platinum)'
121
+ },
122
+ replyEditor,
123
+ emojisHeader,
124
+ attachmentPreviewHeader,
125
+ attachmentPreviewBody: {
126
+ bg_color: '#262f3d',
127
+ editor_border_color: '#3e4d63',
128
+ editor_border_hover_color: '#828994',
129
+ editor_border_active_color: '#e94f4f'
130
+ }
118
131
  }
119
132
  };
@@ -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,21 @@ export default {
112
112
  border_color_failed: failedBdr
113
113
  },
114
114
  emojiFooter: {
115
- tabLine: primaryYellow
116
- },
117
- emojiPopup
115
+ tabLine: primaryYellow,
116
+ border_color: '#2d3748'
117
+ },
118
+ emojiPopup: { ...emojiPopup,
119
+ ttIcon_path1_color: '#5f6478',
120
+ ttIcon_pathe2_color: 'var(--dot_platinum)'
121
+ },
122
+ replyEditor,
123
+ emojisHeader,
124
+ attachmentPreviewHeader,
125
+ attachmentPreviewBody: {
126
+ bg_color: '#262f3d',
127
+ editor_border_color: '#3e4d63',
128
+ editor_border_hover_color: '#828994',
129
+ editor_border_active_color: '#d79835'
130
+ }
118
131
  }
119
132
  };
@@ -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: {
@@ -115,9 +115,21 @@ export default {
115
115
  hover_bg_color: 'green'
116
116
  },
117
117
  replyEditor,
118
- emojiPopup,
118
+ emojiPopup: { ...emojiPopup,
119
+ ttIcon_path1_color: 'rgba(200, 203, 220, 0.7)',
120
+ ttIcon_pathe2_color: 'var(--dot_black)'
121
+ },
119
122
  emojiFooter: {
120
- tabLine: primaryBlue
123
+ tabLine: primaryBlue,
124
+ border_color: '#ebf0f5'
125
+ },
126
+ emojisHeader,
127
+ attachmentPreviewHeader,
128
+ attachmentPreviewBody: {
129
+ bg_color: '#f5f6f7',
130
+ editor_border_color: '#c8cbdc',
131
+ editor_border_hover_color: '#788190',
132
+ editor_border_active_color: '#0a73eb'
121
133
  }
122
134
  }
123
135
  };
@@ -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: '#000'
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, emojiPopup } from "./commonColorVariable";
3
3
  export default {
4
4
  library: 'chat_components',
5
5
  variables: {
@@ -111,7 +111,21 @@ 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'
125
+ },
126
+ emojiPopup: { ...emojiPopup,
127
+ ttIcon_path1_color: 'rgba(197, 205, 199, 0.7)',
128
+ ttIcon_pathe2_color: 'var(--dot_black)'
115
129
  }
116
130
  }
117
131
  };
@@ -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, emojiPopup } from "./commonColorVariable";
3
3
  export default {
4
4
  library: 'chat_components',
5
5
  variables: {
@@ -111,7 +111,21 @@ 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'
125
+ },
126
+ emojiPopup: { ...emojiPopup,
127
+ ttIcon_path1_color: 'rgba(204, 201, 199, 0.7)',
128
+ ttIcon_pathe2_color: 'var(--dot_black)'
115
129
  }
116
130
  }
117
131
  };
@@ -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, emojiPopup } from "./commonColorVariable";
3
3
  export default {
4
4
  library: 'chat_components',
5
5
  variables: {
@@ -111,7 +111,21 @@ 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'
125
+ },
126
+ emojiPopup: { ...emojiPopup,
127
+ ttIcon_path1_color: 'rgba(204, 199, 201, 0.7)',
128
+ ttIcon_pathe2_color: 'var(--dot_black)'
115
129
  }
116
130
  }
117
131
  };
@@ -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, emojiPopup } from "./commonColorVariable";
3
3
  export default {
4
4
  library: 'chat_components',
5
5
  variables: {
@@ -111,7 +111,21 @@ 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'
125
+ },
126
+ emojiPopup: { ...emojiPopup,
127
+ ttIcon_path1_color: 'rgba(204, 203, 199, 0.7)',
128
+ ttIcon_pathe2_color: 'var(--dot_black)'
115
129
  }
116
130
  }
117
131
  };
@@ -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,21 @@ 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: { ...emojiPopup,
120
+ ttIcon_path1_color: 'rgba(255, 255, 255, 0.15)',
121
+ ttIcon_pathe2_color: 'var(--dot_platinum)'
122
+ },
123
+ emojisHeader,
124
+ attachmentPreviewHeader,
125
+ attachmentPreviewBody: {
126
+ bg_color: '#262626',
127
+ editor_border_color: '#585858',
128
+ editor_border_hover_color: '#828994',
129
+ editor_border_active_color: '#479dff'
130
+ }
119
131
  }
120
132
  };
@@ -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,21 @@ export default {
112
112
  border_color_failed: failedBdr
113
113
  },
114
114
  emojiFooter: {
115
- tabLine: primaryGreen
116
- },
117
- emojiPopup
115
+ tabLine: primaryGreen,
116
+ border_color: '#161515'
117
+ },
118
+ replyEditor,
119
+ emojiPopup: { ...emojiPopup,
120
+ ttIcon_path1_color: 'rgba(255, 255, 255, 0.15)',
121
+ ttIcon_pathe2_color: 'var(--dot_platinum)'
122
+ },
123
+ emojisHeader,
124
+ attachmentPreviewHeader,
125
+ attachmentPreviewBody: {
126
+ bg_color: '#262626',
127
+ editor_border_color: '#585858',
128
+ editor_border_hover_color: '#828994',
129
+ editor_border_active_color: '#45a159'
130
+ }
118
131
  }
119
132
  };
@@ -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,21 @@ export default {
112
112
  border_color_failed: failedBdr
113
113
  },
114
114
  emojiFooter: {
115
- tabLine: primaryOrange
116
- },
117
- emojiPopup
115
+ tabLine: primaryOrange,
116
+ border_color: '#161515'
117
+ },
118
+ emojiPopup: { ...emojiPopup,
119
+ ttIcon_path1_color: 'rgba(255, 255, 255, 0.15)',
120
+ ttIcon_pathe2_color: 'var(--dot_platinum)'
121
+ },
122
+ replyEditor,
123
+ emojisHeader,
124
+ attachmentPreviewHeader,
125
+ attachmentPreviewBody: {
126
+ bg_color: '#262626',
127
+ editor_border_color: '#585858',
128
+ editor_border_hover_color: '#828994',
129
+ editor_border_active_color: '#ff801f'
130
+ }
118
131
  }
119
132
  };
@@ -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,21 @@ export default {
112
112
  border_color_failed: failedBdr
113
113
  },
114
114
  emojiFooter: {
115
- tabLine: primaryRed
116
- },
117
- emojiPopup
115
+ tabLine: primaryRed,
116
+ border_color: '#161515'
117
+ },
118
+ emojiPopup: { ...emojiPopup,
119
+ ttIcon_path1_color: 'rgba(255, 255, 255, 0.15)',
120
+ ttIcon_pathe2_color: 'var(--dot_platinum)'
121
+ },
122
+ replyEditor,
123
+ emojisHeader,
124
+ attachmentPreviewHeader,
125
+ attachmentPreviewBody: {
126
+ bg_color: '#262626',
127
+ editor_border_color: '#585858',
128
+ editor_border_hover_color: '#828994',
129
+ editor_border_active_color: '#e94f4f'
130
+ }
118
131
  }
119
132
  };
@@ -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,21 @@ export default {
112
112
  border_color_failed: failedBdr
113
113
  },
114
114
  emojiFooter: {
115
- tabLine: primaryYellow
116
- },
117
- emojiPopup
115
+ tabLine: primaryYellow,
116
+ border_color: '#161515'
117
+ },
118
+ emojiPopup: { ...emojiPopup,
119
+ ttIcon_path1_color: 'rgba(255, 255, 255, 0.15)',
120
+ ttIcon_pathe2_color: 'var(--dot_platinum)'
121
+ },
122
+ replyEditor,
123
+ emojisHeader,
124
+ attachmentPreviewHeader,
125
+ attachmentPreviewBody: {
126
+ bg_color: '#262626',
127
+ editor_border_color: '#585858',
128
+ editor_border_hover_color: '#828994',
129
+ editor_border_active_color: '#d79835'
130
+ }
118
131
  }
119
132
  };
@@ -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.6';
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`;
@@ -1,5 +1,10 @@
1
1
  /** ** Styles *** */
2
2
  .replyComposerFooter {
3
3
  display: flex;
4
- padding: 0 var(--zd_size16) var(--zd_size16) ;
4
+ }
5
+ [dir=ltr] .replyComposerFooter {
6
+ padding: 0 0 0 var(--zd_size16) ;
7
+ }
8
+ [dir=rtl] .replyComposerFooter {
9
+ padding: 0 var(--zd_size16) 0 0 ;
5
10
  }
@@ -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 {
@@ -28,3 +36,7 @@
28
36
  .editor {
29
37
  /** ** Use this class for css customisations *** */
30
38
  }
39
+
40
+ .replyEditor :global(.prosemirror-suggestion) {
41
+ text-decoration: none !important;
42
+ }
@@ -72,6 +72,7 @@ export function ReplyEditorSuggestionsPopupComp(props) {
72
72
  isActive: isPopupReady,
73
73
  isAnimate: true,
74
74
  isArrow: false,
75
+ isRestrictScroll: true,
75
76
  onClick: removeClose,
76
77
  portalId: EDITOR_POPUP_PORTAL,
77
78
  positionsOffset: positionsOffset,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohoim/chat-components",
3
- "version": "1.0.9-beta.1",
3
+ "version": "1.0.9-beta.3",
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": "d8670ce2add58aa0e6ad741ecf107272029c66dd"
48
+ "gitHead": "0da64ee194d86cdd982dc2020fac8f2ff05686ae"
49
49
  }