@zohoim/chat-components 1.0.9-beta.7 → 1.0.9-beta.8

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 (140) hide show
  1. package/README.md +5 -0
  2. package/es/Message/Message.js +8 -2
  3. package/es/MessageActions/MessageActions.js +2 -0
  4. package/es/MessageActions/props/propTypes.js +2 -1
  5. package/es/MessageActionsMore/MessageActionsMore.js +5 -3
  6. package/es/MessageActionsMore/props/propTypes.js +3 -5
  7. package/es/MessageActionsWrapper/MessageActionsWrapper.js +7 -4
  8. package/es/MessageActionsWrapper/props/propTypes.js +2 -1
  9. package/es/MessageBubble/css/MessageBubble.module.css +0 -7
  10. package/es/MessageBubble/props/defaultProps.js +2 -1
  11. package/es/MessageBubble/props/propTypes.js +2 -1
  12. package/es/Theme/ThemeAssets.js +2 -2
  13. package/es/Theme/ThemeWrapper.js +7 -18
  14. package/es/Theme/TooltipWrapper.js +1 -1
  15. package/es/Theme/constants/index.js +41 -0
  16. package/es/Theme/props/defaultProps.js +1 -2
  17. package/es/Theme/props/propTypes.js +1 -2
  18. package/es/Theme/themeVariables/dark/blueTheme.js +1 -18
  19. package/es/Theme/themeVariables/dark/commonColorVariable.js +1 -20
  20. package/es/Theme/themeVariables/dark/greenTheme.js +1 -18
  21. package/es/Theme/themeVariables/dark/orangeTheme.js +1 -18
  22. package/es/Theme/themeVariables/dark/redTheme.js +1 -18
  23. package/es/Theme/themeVariables/dark/yellowTheme.js +1 -18
  24. package/es/Theme/themeVariables/light/blueTheme.js +1 -22
  25. package/es/Theme/themeVariables/light/commonColorVariable.js +0 -19
  26. package/es/Theme/themeVariables/light/greenTheme.js +1 -18
  27. package/es/Theme/themeVariables/light/orangeTheme.js +1 -18
  28. package/es/Theme/themeVariables/light/redTheme.js +1 -18
  29. package/es/Theme/themeVariables/light/yellowTheme.js +1 -18
  30. package/es/Theme/themeVariables/pureDark/blueTheme.js +1 -18
  31. package/es/Theme/themeVariables/pureDark/commonColorVariable.js +1 -20
  32. package/es/Theme/themeVariables/pureDark/greenTheme.js +1 -18
  33. package/es/Theme/themeVariables/pureDark/orangeTheme.js +1 -18
  34. package/es/Theme/themeVariables/pureDark/redTheme.js +1 -18
  35. package/es/Theme/themeVariables/pureDark/yellowTheme.js +1 -18
  36. package/es/Theme/utils/getThemeConfigurations.js +1 -1
  37. package/es/constants/index.js +1 -7
  38. package/es/im/index.js +1 -8
  39. package/es/index.js +2 -13
  40. package/package.json +7 -7
  41. package/es/AttachmentHandler/AttachmentHandler.js +0 -84
  42. package/es/AttachmentHandler/css/AttachmentHandler.module.css +0 -27
  43. package/es/AttachmentHandler/index.js +0 -1
  44. package/es/AttachmentHandler/props/defaultProps.js +0 -10
  45. package/es/AttachmentHandler/props/propTypes.js +0 -17
  46. package/es/AttachmentPreview/AttachmentPreview.js +0 -121
  47. package/es/AttachmentPreview/css/AttachmentPreview.module.css +0 -39
  48. package/es/AttachmentPreview/index.js +0 -1
  49. package/es/AttachmentPreview/props/defaultProps.js +0 -9
  50. package/es/AttachmentPreview/props/propTypes.js +0 -33
  51. package/es/AttachmentPreviewBody/AttachmentPreviewBody.js +0 -97
  52. package/es/AttachmentPreviewBody/css/AttachmentPreviewBody.module.css +0 -74
  53. package/es/AttachmentPreviewBody/index.js +0 -1
  54. package/es/AttachmentPreviewBody/props/defaultProps.js +0 -7
  55. package/es/AttachmentPreviewBody/props/propTypes.js +0 -20
  56. package/es/AttachmentPreviewHeader/AttachmentPreviewHeader.js +0 -84
  57. package/es/AttachmentPreviewHeader/css/AttachmentPreviewHeader.module.css +0 -47
  58. package/es/AttachmentPreviewHeader/index.js +0 -1
  59. package/es/AttachmentPreviewHeader/props/defaultProps.js +0 -7
  60. package/es/AttachmentPreviewHeader/props/propTypes.js +0 -16
  61. package/es/Emoji/Emoji.js +0 -72
  62. package/es/Emoji/css/Emoji.module.css +0 -48
  63. package/es/Emoji/css/cssJSLogic.js +0 -18
  64. package/es/Emoji/index.js +0 -1
  65. package/es/Emoji/props/defaultProps.js +0 -8
  66. package/es/Emoji/props/propTypes.js +0 -16
  67. package/es/EmojiPopup/EmojiPopup.js +0 -116
  68. package/es/EmojiPopup/css/EmojiPopup.module.css +0 -55
  69. package/es/EmojiPopup/index.js +0 -1
  70. package/es/EmojiPopup/props/defaultProps.js +0 -11
  71. package/es/EmojiPopup/props/propTypes.js +0 -21
  72. package/es/Emojis/Emojis.js +0 -79
  73. package/es/Emojis/index.js +0 -1
  74. package/es/Emojis/props/defaultProps.js +0 -10
  75. package/es/Emojis/props/propTypes.js +0 -19
  76. package/es/EmojisEmptyState/EmojisEmptyState.js +0 -50
  77. package/es/EmojisEmptyState/css/EmojisEmptyState.module.css +0 -18
  78. package/es/EmojisEmptyState/index.js +0 -1
  79. package/es/EmojisEmptyState/props/defaultProps.js +0 -9
  80. package/es/EmojisEmptyState/props/propTypes.js +0 -8
  81. package/es/EmojisFooter/EmojisFooter.js +0 -71
  82. package/es/EmojisFooter/css/EmojisFooter.module.css +0 -40
  83. package/es/EmojisFooter/index.js +0 -1
  84. package/es/EmojisFooter/props/defaultProps.js +0 -7
  85. package/es/EmojisFooter/props/propTypes.js +0 -12
  86. package/es/EmojisHeader/EmojisHeader.js +0 -65
  87. package/es/EmojisHeader/css/EmojisHeader.module.css +0 -36
  88. package/es/EmojisHeader/index.js +0 -1
  89. package/es/EmojisHeader/props/defaultProps.js +0 -8
  90. package/es/EmojisHeader/props/propTypes.js +0 -13
  91. package/es/EmojisList/EmojisList.js +0 -130
  92. package/es/EmojisList/css/EmojisList.module.css +0 -50
  93. package/es/EmojisList/css/cssJSLogic.js +0 -25
  94. package/es/EmojisList/index.js +0 -1
  95. package/es/EmojisList/props/defaultProps.js +0 -10
  96. package/es/EmojisList/props/propTypes.js +0 -20
  97. package/es/constants/propConstants/editorPropConstants.js +0 -3
  98. package/es/constants/propConstants/popupPropConstants.js +0 -2
  99. package/es/im/IMAttachmentHandler/IMAttachmentHandler.js +0 -50
  100. package/es/im/IMAttachmentHandler/index.js +0 -1
  101. package/es/im/IMAttachmentHandler/props/defaultProps.js +0 -10
  102. package/es/im/IMAttachmentHandler/props/propTypes.js +0 -28
  103. package/es/im/ReplyComposer/ReplyComposer.js +0 -153
  104. package/es/im/ReplyComposer/css/ReplyComposer.module.css +0 -10
  105. package/es/im/ReplyComposer/css/cssJSLogic.js +0 -13
  106. package/es/im/ReplyComposer/index.js +0 -1
  107. package/es/im/ReplyComposer/props/defaultProps.js +0 -7
  108. package/es/im/ReplyComposer/props/propTypes.js +0 -60
  109. package/es/im/ReplyComposerFooter/ReplyComposerFooter.js +0 -41
  110. package/es/im/ReplyComposerFooter/css/ReplyComposerFooter.module.css +0 -10
  111. package/es/im/ReplyComposerFooter/index.js +0 -1
  112. package/es/im/ReplyComposerFooter/props/defaultProps.js +0 -8
  113. package/es/im/ReplyComposerFooter/props/propTypes.js +0 -17
  114. package/es/im/ReplyEditor/ReplyEditor.js +0 -103
  115. package/es/im/ReplyEditor/css/ReplyEditor.module.css +0 -48
  116. package/es/im/ReplyEditor/css/cssJSLogic.js +0 -10
  117. package/es/im/ReplyEditor/index.js +0 -1
  118. package/es/im/ReplyEditor/props/defaultProps.js +0 -8
  119. package/es/im/ReplyEditor/props/propTypes.js +0 -27
  120. package/es/im/ReplyEditorExtensions/ReplyEditorExtensions.js +0 -149
  121. package/es/im/ReplyEditorExtensions/css/ReplyEditorExtensions.module.css +0 -5
  122. package/es/im/ReplyEditorExtensions/index.js +0 -1
  123. package/es/im/ReplyEditorExtensions/props/defaultProps.js +0 -6
  124. package/es/im/ReplyEditorExtensions/props/propTypes.js +0 -16
  125. package/es/im/ReplyEditorSuggestions/ReplyEditorSuggestions.js +0 -93
  126. package/es/im/ReplyEditorSuggestions/css/ReplyEditorSuggestions.module.css +0 -8
  127. package/es/im/ReplyEditorSuggestions/index.js +0 -1
  128. package/es/im/ReplyEditorSuggestions/props/defaultProps.js +0 -6
  129. package/es/im/ReplyEditorSuggestions/props/propTypes.js +0 -21
  130. package/es/im/ReplyEditorSuggestionsPopup/ReplyEditorSuggestionsPopup.js +0 -91
  131. package/es/im/ReplyEditorSuggestionsPopup/css/ReplyEditorSuggestionsPopup.module.css +0 -7
  132. package/es/im/ReplyEditorSuggestionsPopup/index.js +0 -1
  133. package/es/im/ReplyEditorSuggestionsPopup/props/defaultProps.js +0 -10
  134. package/es/im/ReplyEditorSuggestionsPopup/props/propTypes.js +0 -21
  135. package/es/rte/Editor/Editor.js +0 -80
  136. package/es/rte/Editor/css/Editor.module.css +0 -17
  137. package/es/rte/Editor/index.js +0 -1
  138. package/es/rte/Editor/props/defaultProps.js +0 -21
  139. package/es/rte/Editor/props/propTypes.js +0 -52
  140. package/es/rte/index.js +0 -1
@@ -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, replyEditor, emojisHeader, attachmentPreviewHeader, emojiPopup } 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: {
@@ -109,23 +109,6 @@ export default {
109
109
  videoBubble: {
110
110
  border_color: '#ebf0f5',
111
111
  border_color_failed: failedBdr
112
- },
113
- emojiFooter: {
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_path2_color: 'var(--dot_black)'
129
112
  }
130
113
  }
131
114
  };
@@ -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, replyEditor, emojisHeader, attachmentPreviewHeader, emojiPopup } 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: {
@@ -109,23 +109,6 @@ export default {
109
109
  videoBubble: {
110
110
  border_color: '#ebf0f5',
111
111
  border_color_failed: failedBdr
112
- },
113
- emojiFooter: {
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_path2_color: 'var(--dot_black)'
129
112
  }
130
113
  }
131
114
  };
@@ -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, replyEditor, emojisHeader, attachmentPreviewHeader, emojiPopup } 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: {
@@ -109,23 +109,6 @@ export default {
109
109
  videoBubble: {
110
110
  border_color: '#ebf0f5',
111
111
  border_color_failed: failedBdr
112
- },
113
- emojiFooter: {
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_path2_color: 'var(--dot_black)'
129
112
  }
130
113
  }
131
114
  };
@@ -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, emojisHeader, attachmentPreviewHeader } from "./commonColorVariable";
2
+ import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryBlue, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor } from "./commonColorVariable";
3
3
  import { imIntegrationIcon, imTtIcon, messagetextColor } from "../commonThemeColorVariable";
4
4
  export default {
5
5
  library: 'chat_components',
@@ -110,23 +110,6 @@ export default {
110
110
  videoBubble: {
111
111
  border_color: '#161515',
112
112
  border_color_failed: failedBdr
113
- },
114
- emojiFooter: {
115
- tabLine: primaryBlue,
116
- border_color: '#161515'
117
- },
118
- replyEditor,
119
- emojiPopup: { ...emojiPopup,
120
- ttIcon_path1_color: 'rgba(255, 255, 255, 0.15)',
121
- ttIcon_path2_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
113
  }
131
114
  }
132
115
  };
@@ -15,23 +15,4 @@ export const failedBg = '#362530';
15
15
  export const failedBdr = '#290000';
16
16
  export const failedLine = '#290000';
17
17
  export const failedColor = '#e2e4e6';
18
- export const failedUrlColor = '#479dff';
19
- export const emojiPopup = {
20
- bg: '#f1f4f9',
21
- border: '#f1f4f9',
22
- titleColor: '#aaa'
23
- };
24
- export const replyEditor = {
25
- bg: '#212121',
26
- color: '#e2e4e6',
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'
37
- };
18
+ export const failedUrlColor = '#479dff';
@@ -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, replyEditor, emojisHeader, attachmentPreviewHeader } from "./commonColorVariable";
2
+ import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryGreen, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor } from "./commonColorVariable";
3
3
  import { imIntegrationIcon, imTtIcon, messagetextColor } from "../commonThemeColorVariable";
4
4
  export default {
5
5
  library: 'chat_components',
@@ -110,23 +110,6 @@ export default {
110
110
  videoBubble: {
111
111
  border_color: '#161515',
112
112
  border_color_failed: failedBdr
113
- },
114
- emojiFooter: {
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_path2_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
113
  }
131
114
  }
132
115
  };
@@ -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, replyEditor, emojisHeader, attachmentPreviewHeader } from "./commonColorVariable";
2
+ import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryOrange, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor } from "./commonColorVariable";
3
3
  import { imIntegrationIcon, imTtIcon, messagetextColor } from "../commonThemeColorVariable";
4
4
  export default {
5
5
  library: 'chat_components',
@@ -110,23 +110,6 @@ export default {
110
110
  videoBubble: {
111
111
  border_color: '#161515',
112
112
  border_color_failed: failedBdr
113
- },
114
- emojiFooter: {
115
- tabLine: primaryOrange,
116
- border_color: '#161515'
117
- },
118
- emojiPopup: { ...emojiPopup,
119
- ttIcon_path1_color: 'rgba(255, 255, 255, 0.15)',
120
- ttIcon_path2_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
113
  }
131
114
  }
132
115
  };
@@ -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, replyEditor, emojisHeader, attachmentPreviewHeader } from "./commonColorVariable";
2
+ import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryRed, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor } from "./commonColorVariable";
3
3
  import { imIntegrationIcon, imTtIcon, messagetextColor } from "../commonThemeColorVariable";
4
4
  export default {
5
5
  library: 'chat_components',
@@ -110,23 +110,6 @@ export default {
110
110
  videoBubble: {
111
111
  border_color: '#161515',
112
112
  border_color_failed: failedBdr
113
- },
114
- emojiFooter: {
115
- tabLine: primaryRed,
116
- border_color: '#161515'
117
- },
118
- emojiPopup: { ...emojiPopup,
119
- ttIcon_path1_color: 'rgba(255, 255, 255, 0.15)',
120
- ttIcon_path2_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
113
  }
131
114
  }
132
115
  };
@@ -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, replyEditor, emojisHeader, attachmentPreviewHeader } from "./commonColorVariable";
2
+ import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, messageStatusSendColor, messageStatusFailedColor, actionIconWrapperColor, primaryYellow, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor } from "./commonColorVariable";
3
3
  import { imIntegrationIcon, imTtIcon, messagetextColor } from "../commonThemeColorVariable";
4
4
  export default {
5
5
  library: 'chat_components',
@@ -110,23 +110,6 @@ export default {
110
110
  videoBubble: {
111
111
  border_color: '#161515',
112
112
  border_color_failed: failedBdr
113
- },
114
- emojiFooter: {
115
- tabLine: primaryYellow,
116
- border_color: '#161515'
117
- },
118
- emojiPopup: { ...emojiPopup,
119
- ttIcon_path1_color: 'rgba(255, 255, 255, 0.15)',
120
- ttIcon_path2_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
113
  }
131
114
  }
132
115
  };
@@ -1,4 +1,4 @@
1
- import { modeConstants, themeConstants } from '@zohoim/chat-components-utils/es/constants/themeConstants';
1
+ import { modeConstants, themeConstants } from "../constants";
2
2
  import lightBlue from "../themeVariables/light/blueTheme";
3
3
  import lightGreen from "../themeVariables/light/greenTheme";
4
4
  import lightOrange from "../themeVariables/light/orangeTheme";
@@ -1,7 +1 @@
1
- export const MSG_ACTION_POPUP_PORTAL = 'MSG_ACTION_POPUP_PORTAL';
2
- export const EDITOR_POPUP_PORTAL = 'EDITOR_POPUP_PORTAL';
3
- const version = '1.4.9';
4
- export const defaultEditorURL = // `https://static.localzohocdn.com/rtelibrary/${version}/js/rte.js`;
5
- // `https://static.zohocdn.com/rtelibrary/${version}/js/rte.js`;
6
- // `https://static.localzohocdn.com/rtelibrary/${version}/js/rte.min.js`;
7
- `https://static.zohocdn.com/rtelibrary/${version}/js/rte.min.js`;
1
+ export const MSG_ACTION_POPUP_PORTAL = 'MSG_ACTION_POPUP_PORTAL';
package/es/im/index.js CHANGED
@@ -6,11 +6,4 @@ export * from "./IMMessageMetaInfo";
6
6
  export * from "./IMMessageContent";
7
7
  export * from "./IMTextBubble";
8
8
  export * from "./IMReplyBubble";
9
- export * from "./ArticleBubble";
10
- export * from "./IMAttachmentHandler";
11
- export * from "./ReplyComposer";
12
- export * from "./ReplyEditor";
13
- export * from "./ReplyEditorSuggestions";
14
- export * from "./ReplyEditorExtensions";
15
- export * from "./ReplyComposerFooter";
16
- export * from "./ReplyEditorSuggestionsPopup";
9
+ export * from "./ArticleBubble";
package/es/index.js CHANGED
@@ -25,19 +25,8 @@ export * from "./ReplyBubbleHeader";
25
25
  export * from "./LazyLoadImage";
26
26
  export * from "./ReplyBubbleContent";
27
27
  export * from "./MessageStatus";
28
- export * from "./im";
29
- export * from "./Emojis";
30
- export * from "./EmojisList";
31
- export * from "./Emoji";
32
- export * from "./EmojiPopup";
33
- export * from "./EmojisHeader";
34
- export * from "./EmojisFooter";
35
- export * from "./EmojisEmptyState";
36
- export * from "./rte";
37
- export * from "./AttachmentHandler";
38
- export * from "./AttachmentPreview";
39
- export * from "./AttachmentPreviewHeader";
40
- export * from "./AttachmentPreviewBody";
28
+ export * from "./im"; // ... export other components
29
+
41
30
  /** * CONSTANTS ** */
42
31
 
43
32
  export * from "./constants";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohoim/chat-components",
3
- "version": "1.0.9-beta.7",
3
+ "version": "1.0.9-beta.8",
4
4
  "description": "Chat Components",
5
5
  "main": "es/index.js",
6
6
  "module": "es/index.js",
@@ -29,15 +29,15 @@
29
29
  "!**/__tests__"
30
30
  ],
31
31
  "dependencies": {
32
- "@zohodesk/components": "1.2.43",
33
- "@zohodesk/hooks": "2.0.4",
32
+ "@zohodesk/components": "1.2.56",
33
+ "@zohodesk/hooks": "2.0.2",
34
34
  "@zohodesk/icon": "1.3.15",
35
- "@zohodesk/icons": "1.0.43",
35
+ "@zohodesk/icons": "1.0.20",
36
36
  "@zohodesk/utils": "1.3.13",
37
37
  "@zohodesk/variables": "1.0.0",
38
38
  "@zohodesk/virtualizer": "1.0.13",
39
- "@zohoim/chat-components-hooks": "1.0.4-beta.7",
40
- "@zohoim/chat-components-utils": "1.0.4-beta.3"
39
+ "@zohoim/chat-components-hooks": "1.0.4-beta.8",
40
+ "@zohoim/chat-components-utils": "1.0.4"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@zohodesk-private/css-variable-migrator": "1.0.7",
@@ -45,5 +45,5 @@
45
45
  "jsdom": "23.0.0",
46
46
  "react-to-jsx": "1.3.2"
47
47
  },
48
- "gitHead": "44f84bf3e27cc3b76db2abc64e889ab026a258b7"
48
+ "gitHead": "7927e9dab8d10a2361ce14b578fca1f4bc678a3f"
49
49
  }
@@ -1,84 +0,0 @@
1
- /** ** Libraries *** */
2
- import React, { useMemo } from 'react';
3
- /** ** Component *** */
4
-
5
- import IconButton from '@zohodesk/dot/es/IconButton/IconButton';
6
- import { Container } from '@zohodesk/components/es/Layout';
7
- /** ** Hooks *** */
8
-
9
- import useMergeStyle from '@zohodesk/hooks/es/utils/useMergeStyle';
10
- import useAttachmentHandler from '@zohoim/chat-components-hooks/es/AttachmentHandler/useAttachmentHandler';
11
- /** ** Constants *** */
12
-
13
- import { dummyObject } from '@zohoim/chat-components-utils/es/constants/emptyConstants';
14
- import attachmentHandlerDefaultProps from "./props/defaultProps";
15
- import attachmentHandlerPropTypes from "./props/propTypes";
16
- /** ** Methods *** */
17
-
18
- import renderHandler from '@zohoim/chat-components-utils/es/common/renderHandler';
19
- /** ** Styles *** */
20
-
21
- import style from "./css/AttachmentHandler.module.css";
22
- export default function AttachmentHandler(props) {
23
- const {
24
- customStyle,
25
- iconName,
26
- iconSize,
27
- iconTitle,
28
- renderCustomIcon,
29
- getRef: propGetRef,
30
- supportedFileTypes,
31
- isMultiAttachment,
32
- onAttach: propOnAttach,
33
- customProps = dummyObject
34
- } = props;
35
- const {
36
- inputProps = dummyObject
37
- } = customProps;
38
- const {
39
- onAttach,
40
- onAttachmentClick,
41
- getRef
42
- } = useAttachmentHandler({
43
- onAttach: propOnAttach,
44
- getRef: propGetRef
45
- });
46
- /* External customization */
47
-
48
- const newStyle = useMergeStyle(style, customStyle);
49
- const inputEl = useMemo(() => /*#__PURE__*/React.createElement("input", {
50
- ref: getRef,
51
- accept: supportedFileTypes,
52
- hidden: true,
53
- multiple: isMultiAttachment,
54
- onChange: onAttach,
55
- size: "1",
56
- type: "file",
57
- ...inputProps
58
- }), [supportedFileTypes, getRef, onAttach, isMultiAttachment, inputProps]);
59
- const customIcon = useMemo(() => {
60
- /* Render Custom Icon */
61
- const icon = renderHandler(renderCustomIcon)({
62
- onClick: onAttachmentClick
63
- });
64
-
65
- if (icon) {
66
- return /*#__PURE__*/React.createElement(React.Fragment, null, icon, inputEl);
67
- }
68
-
69
- return null;
70
- }, [renderCustomIcon, onAttachmentClick, inputEl]);
71
- return /*#__PURE__*/React.createElement(Container, {
72
- alignBox: "column"
73
- }, customIcon || /*#__PURE__*/React.createElement(IconButton, {
74
- className: newStyle.iconButton,
75
- iconClass: newStyle.icon,
76
- iconName: iconName,
77
- iconSize: iconSize,
78
- onClick: onAttachmentClick,
79
- title: iconTitle
80
- }, inputEl));
81
- }
82
- AttachmentHandler.propTypes = attachmentHandlerPropTypes;
83
- AttachmentHandler.defaultProps = attachmentHandlerDefaultProps;
84
- AttachmentHandler.displayName = 'AttachmentHandler';
@@ -1,27 +0,0 @@
1
- /** ** Styles *** */
2
-
3
- .attachmentHandler {
4
- /** ** Use this class for css customisation *** */
5
- }
6
-
7
- [dir=ltr] .iconButton {
8
- margin-right: var(--zd_size5) ;
9
- }
10
-
11
- [dir=rtl] .iconButton {
12
- margin-left: var(--zd_size5) ;
13
- }
14
-
15
- .icon {
16
- color: initial;
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
- }
@@ -1 +0,0 @@
1
- export { default as AttachmentHandler } from "./AttachmentHandler";
@@ -1,10 +0,0 @@
1
- /** ** Constants *** */
2
- import { dummyObject } from '@zohoim/chat-components-utils/es/constants/emptyConstants';
3
- const attachmentHandlerDefaultProps = {
4
- customStyle: dummyObject,
5
- iconName: 'ZD-TT-image',
6
- iconSize: '14',
7
- iconTitle: 'Upload',
8
- isMultiAttachment: false
9
- };
10
- export default attachmentHandlerDefaultProps;
@@ -1,17 +0,0 @@
1
- /** ** Libraries *** */
2
- import PropTypes from 'prop-types';
3
- const attachmentHandlerPropTypes = {
4
- customStyle: PropTypes.object,
5
- iconName: PropTypes.string.isRequired,
6
- iconSize: PropTypes.number,
7
- iconTitle: PropTypes.string,
8
- renderCustomIcon: PropTypes.func,
9
- getRef: PropTypes.func,
10
- supportedFileTypes: PropTypes.string,
11
- isMultiAttachment: PropTypes.bool,
12
- onAttach: PropTypes.func.isRequired,
13
- customProps: PropTypes.shape({
14
- inputProps: PropTypes.object
15
- })
16
- };
17
- export default attachmentHandlerPropTypes;
@@ -1,121 +0,0 @@
1
- /* eslint-disable max-len */
2
-
3
- /** ** Libraries *** */
4
- import React, { useMemo } from 'react';
5
- /** ** Components *** */
6
-
7
- import { Container, Box } from '@zohodesk/components/es/Layout';
8
- import AttachmentPreviewHeader from "../AttachmentPreviewHeader/AttachmentPreviewHeader";
9
- import AttachmentPreviewBody from "../AttachmentPreviewBody/AttachmentPreviewBody";
10
- /** ** Hooks *** */
11
-
12
- import { useZIndex } from '@zohodesk/components/es/Provider/ZindexProvider';
13
- import useMergeStyle from '@zohodesk/hooks/es/utils/useMergeStyle';
14
- import useAttachmentPreview from '@zohoim/chat-components-hooks/es/AttachmentPreview/useAttachmentPreview';
15
- import useAttachmentPreviewEditor from '@zohoim/chat-components-hooks/es/AttachmentPreview/useAttachmentPreviewEditor';
16
- /** ** Constants *** */
17
-
18
- import attachmentPreviewDefaultProps from "./props/defaultProps";
19
- import attachmentPreviewPropTypes from "./props/propTypes";
20
- import { dummyObject } from '@zohoim/chat-components-utils/es/constants/emptyConstants';
21
- import { mediaTypes } from '@zohoim/chat-components-utils/es/constants/messageConstants';
22
- /** ** Styles *** */
23
-
24
- import style from "./css/AttachmentPreview.module.css";
25
- const {
26
- IMAGE
27
- } = mediaTypes;
28
- export default function AttachmentPreview(props) {
29
- const {
30
- customStyle,
31
- isDescriptionNeeded,
32
- files,
33
- customProps,
34
- onSubmit,
35
- onCancel,
36
- texts,
37
- descriptionDetails,
38
- onDescriptionChange: propOnDescriptionChange,
39
- needCloseOnEscape,
40
- needUploadOnEnter,
41
- needAutoZindex
42
- } = props;
43
- const {
44
- editorProps = dummyObject,
45
- attachmentPreviewHeaderProps = dummyObject,
46
- attachmentPreviewBodyProps = dummyObject
47
- } = customProps || dummyObject;
48
- const {
49
- submitText = 'Submit',
50
- cancelText = 'Cancel',
51
- placeHolder = 'Add a description for the image'
52
- } = texts || dummyObject;
53
- /* External customization */
54
-
55
- const newStyle = useMergeStyle(style, customStyle);
56
- const getNextIndex = useZIndex();
57
- const {
58
- selectedFile,
59
- isShow,
60
- description,
61
- onDescriptionChange,
62
- onEscape
63
- } = useAttachmentPreview({
64
- files,
65
- onDescriptionChange: propOnDescriptionChange,
66
- descriptionDetails,
67
- needCloseOnEscape,
68
- onCancel
69
- });
70
- const {
71
- onEditorKeyDown
72
- } = useAttachmentPreviewEditor({
73
- editorProps,
74
- onPreviewPopupKeyDown: onEscape,
75
- needUploadOnEnter,
76
- onSubmit
77
- });
78
- const {
79
- fileName,
80
- formattedFileSize: fileSize,
81
- attachmentURL,
82
- fileFormat,
83
- mediaType,
84
- attachmentId
85
- } = selectedFile;
86
- const isImageFile = useMemo(() => mediaType === IMAGE, [mediaType]);
87
- return isShow ? /*#__PURE__*/React.createElement(Container, {
88
- align: "both",
89
- alignBox: "column",
90
- className: newStyle.attachmentPreview,
91
- style: needAutoZindex ? {
92
- zIndex: `${getNextIndex()}`
93
- } : {}
94
- }, /*#__PURE__*/React.createElement("div", {
95
- className: newStyle.uploadPrev
96
- }, /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(AttachmentPreviewHeader, {
97
- cancelText: cancelText,
98
- fileName: fileName,
99
- fileSize: fileSize,
100
- onCancel: onCancel,
101
- onSubmit: onSubmit,
102
- submitText: submitText,
103
- ...attachmentPreviewHeaderProps
104
- })), /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(AttachmentPreviewBody, {
105
- attachmentId: attachmentId,
106
- attachmentURL: attachmentURL,
107
- description: description,
108
- editorProps: editorProps,
109
- fileFormat: fileFormat,
110
- isDescriptionNeeded: isDescriptionNeeded,
111
- isImageFile: isImageFile,
112
- mediaType: mediaType,
113
- onDescriptionChange: onDescriptionChange,
114
- onEditorKeyDown: onEditorKeyDown,
115
- placeHolder: placeHolder,
116
- ...attachmentPreviewBodyProps
117
- })))) : null;
118
- }
119
- AttachmentPreview.propTypes = attachmentPreviewPropTypes;
120
- AttachmentPreview.defaultProps = attachmentPreviewDefaultProps;
121
- AttachmentPreview.displayName = 'AttachmentPreview';