@zohoim/chat-components 0.0.8 → 0.0.11

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 (194) hide show
  1. package/es/ArticleBubble/ArticleBubble.js +19 -11
  2. package/es/ArticleBubble/css/ArticleBubble.module.css +39 -0
  3. package/es/AttachmentBubble/AttachmentBubble.js +12 -11
  4. package/es/AttachmentBubble/css/AttachmentBubble.module.css +12 -5
  5. package/es/AttachmentBubbleInfo/css/AttachmentBubbleInfo.module.css +9 -2
  6. package/es/Audio/css/Audio.module.css +4 -0
  7. package/es/AudioBubble/css/AudioBubble.module.css +1 -1
  8. package/es/Fonts/puviFont.module.css +61 -0
  9. package/es/LocationBubble/LocationBubble.js +17 -12
  10. package/es/LocationBubble/css/LocationBubble.module.css +33 -0
  11. package/es/Message/Message.js +3 -3
  12. package/es/MessageActionsMore/css/MessageActionsMore.module.css +1 -0
  13. package/es/MessageAvatar/css/MessageAvatar.module.css +3 -3
  14. package/es/MessageBox/css/MessageBox.module.css +5 -2
  15. package/es/MoreActionItem/MoreActionItem.js +1 -0
  16. package/es/MoreActionItem/css/MoreActionItem.module.css +4 -0
  17. package/es/ReplyBubble/ReplyBubble.js +18 -2
  18. package/es/ReplyBubble/props/defaultProps.js +4 -1
  19. package/es/ReplyBubble/props/propTypes.js +9 -1
  20. package/es/ReplyBubbleContent/ReplyBubbleContent.js +56 -0
  21. package/es/ReplyBubbleContent/css/ReplyBubbleContent.module.css +50 -0
  22. package/es/ReplyBubbleContent/css/cssJSLogic.js +22 -0
  23. package/es/ReplyBubbleContent/index.js +1 -0
  24. package/es/ReplyBubbleContent/props/defaultProps.js +6 -0
  25. package/es/ReplyBubbleContent/props/propTypes.js +9 -0
  26. package/es/ReplyBubbleHeader/ReplyBubbleHeader.js +6 -2
  27. package/es/ReplyBubbleHeader/css/ReplyBubbleHeader.module.css +4 -0
  28. package/es/ReplyBubbleHeader/props/defaultProps.js +1 -1
  29. package/es/TextBubble/TextBubble.js +10 -10
  30. package/es/TextBubble/css/TextBubble.module.css +5 -1
  31. package/es/Theme/ThemeWrapper.js +25 -19
  32. package/es/Theme/desk/commonDeskColorVariable.js +3 -1
  33. package/es/Theme/desk/dark/blueTheme.js +23 -11
  34. package/es/Theme/desk/dark/commonColorVariable.js +5 -5
  35. package/es/Theme/desk/dark/greenTheme.js +22 -11
  36. package/es/Theme/desk/dark/orangeTheme.js +13 -2
  37. package/es/Theme/desk/dark/redTheme.js +22 -11
  38. package/es/Theme/desk/dark/yellowTheme.js +22 -11
  39. package/es/Theme/desk/light/blueTheme.js +25 -12
  40. package/es/Theme/desk/light/commonColorVariable.js +2 -1
  41. package/es/Theme/desk/light/greenTheme.js +9 -2
  42. package/es/Theme/desk/light/orangeTheme.js +17 -10
  43. package/es/Theme/desk/light/redTheme.js +17 -10
  44. package/es/Theme/desk/light/yellowTheme.js +17 -10
  45. package/es/Theme/desk/pureDark/blueTheme.js +21 -10
  46. package/es/Theme/desk/pureDark/commonColorVariable.js +2 -1
  47. package/es/Theme/desk/pureDark/greenTheme.js +21 -10
  48. package/es/Theme/desk/pureDark/orangeTheme.js +21 -10
  49. package/es/Theme/desk/pureDark/redTheme.js +21 -10
  50. package/es/Theme/desk/pureDark/yellowTheme.js +21 -10
  51. package/es/VideoBubble/css/VideoBubble.module.css +1 -1
  52. package/es/icons/factory/common/article.svg +4 -0
  53. package/es/icons/factory/common/quote.svg +1 -0
  54. package/es/icons/iconSrc/common/Article.js +17 -0
  55. package/es/icons/iconSrc/common/Quote.js +16 -0
  56. package/es/icons/iconSrc/common/index.js +2 -0
  57. package/es/{IMArticleBubble → im/IMArticleBubble}/IMArticleBubble.js +2 -2
  58. package/es/{IMAttachmentBubble → im/IMAttachmentBubble}/IMAttachmentBubble.js +2 -2
  59. package/es/{IMAttachmentIcon → im/IMAttachmentIcon}/IMAttachmentIcon.js +17 -17
  60. package/es/{IMAudioBubble → im/IMAudioBubble}/IMAudioBubble.js +2 -2
  61. package/es/im/IMAudioBubble/css/IMAudioBubble.module.css +8 -0
  62. package/es/{IMAutoMessageInfo → im/IMAutoMessageInfo}/IMAutoMessageInfo.js +1 -1
  63. package/es/{IMDateTime → im/IMDateTime}/IMDateTime.js +1 -1
  64. package/es/im/IMDateTime/css/IMDateTime.module.css +5 -0
  65. package/es/{IMImageBubble → im/IMImageBubble}/IMImageBubble.js +2 -2
  66. package/es/{IMIntegrationIcon → im/IMIntegrationIcon}/IMIntegrationIcon.js +7 -7
  67. package/es/{IMLocationBubble → im/IMLocationBubble}/IMLocationBubble.js +2 -2
  68. package/es/{IMMessage → im/IMMessage}/IMMessage.js +18 -12
  69. package/es/{IMMessage → im/IMMessage}/props/propTypes.js +9 -6
  70. package/es/{IMMessageActions → im/IMMessageActions}/IMMessageActions.js +5 -5
  71. package/es/{IMMessageActions → im/IMMessageActions}/css/IMMessageActions.module.css +8 -0
  72. package/es/{IMMessageAvatar → im/IMMessageAvatar}/IMMessageAvatar.js +1 -1
  73. package/es/{IMMessageContent → im/IMMessageContent}/IMMessageContent.js +27 -22
  74. package/es/{IMMessageContent → im/IMMessageContent}/props/propTypes.js +3 -1
  75. package/es/{IMMessageStatus → im/IMMessageStatus}/IMMessageStatus.js +4 -4
  76. package/es/im/IMReplyBubble/IMReplyBubble.js +87 -0
  77. package/es/im/IMReplyBubble/css/IMReplyBubble.module.css +24 -0
  78. package/es/im/IMReplyBubble/props/defaultProps.js +9 -0
  79. package/es/im/IMReplyBubble/props/propTypes.js +22 -0
  80. package/es/{IMTextBubble → im/IMTextBubble}/IMTextBubble.js +4 -3
  81. package/es/{IMTicketLink → im/IMTicketLink}/IMTicketLink.js +1 -1
  82. package/es/{IMTicketLink → im/IMTicketLink}/css/IMTicketLink.module.css +4 -1
  83. package/es/{IMVideoBubble → im/IMVideoBubble}/IMVideoBubble.js +2 -2
  84. package/es/im/index.js +20 -0
  85. package/es/index.js +31 -49
  86. package/package.json +4 -4
  87. package/es/IMAudioBubble/css/IMAudioBubble.module.css +0 -8
  88. package/es/IMDateTime/css/IMDateTime.module.css +0 -5
  89. package/es/IMReplyBubble/IMReplyBubble.js +0 -37
  90. package/es/IMReplyBubble/css/IMReplyBubble.module.css +0 -0
  91. package/es/IMReplyBubble/props/defaultProps.js +0 -6
  92. package/es/IMReplyBubble/props/propTypes.js +0 -6
  93. /package/es/{IMArticleBubble → im/IMArticleBubble}/css/IMArticleBubble.module.css +0 -0
  94. /package/es/{IMArticleBubble → im/IMArticleBubble}/css/cssJSLogic.js +0 -0
  95. /package/es/{IMArticleBubble → im/IMArticleBubble}/index.js +0 -0
  96. /package/es/{IMArticleBubble → im/IMArticleBubble}/props/defaultProps.js +0 -0
  97. /package/es/{IMArticleBubble → im/IMArticleBubble}/props/propTypes.js +0 -0
  98. /package/es/{IMAttachmentBubble → im/IMAttachmentBubble}/css/IMAttachmentBubble.module.css +0 -0
  99. /package/es/{IMAttachmentBubble → im/IMAttachmentBubble}/css/cssJSLogic.js +0 -0
  100. /package/es/{IMAttachmentBubble → im/IMAttachmentBubble}/index.js +0 -0
  101. /package/es/{IMAttachmentBubble → im/IMAttachmentBubble}/props/defaultProps.js +0 -0
  102. /package/es/{IMAttachmentBubble → im/IMAttachmentBubble}/props/propTypes.js +0 -0
  103. /package/es/{IMAttachmentIcon → im/IMAttachmentIcon}/css/IMAttachmentIcon.module.css +0 -0
  104. /package/es/{IMAttachmentIcon → im/IMAttachmentIcon}/css/cssJSLogic.js +0 -0
  105. /package/es/{IMAttachmentIcon → im/IMAttachmentIcon}/index.js +0 -0
  106. /package/es/{IMAttachmentIcon → im/IMAttachmentIcon}/props/defaultProps.js +0 -0
  107. /package/es/{IMAttachmentIcon → im/IMAttachmentIcon}/props/propTypes.js +0 -0
  108. /package/es/{IMAudioBubble → im/IMAudioBubble}/css/cssJSLogic.js +0 -0
  109. /package/es/{IMAudioBubble → im/IMAudioBubble}/index.js +0 -0
  110. /package/es/{IMAudioBubble → im/IMAudioBubble}/props/defaultProps.js +0 -0
  111. /package/es/{IMAudioBubble → im/IMAudioBubble}/props/propTypes.js +0 -0
  112. /package/es/{IMAutoMessageInfo → im/IMAutoMessageInfo}/css/IMAutoMessageInfo.module.css +0 -0
  113. /package/es/{IMAutoMessageInfo → im/IMAutoMessageInfo}/css/cssJSLogic.js +0 -0
  114. /package/es/{IMAutoMessageInfo → im/IMAutoMessageInfo}/index.js +0 -0
  115. /package/es/{IMAutoMessageInfo → im/IMAutoMessageInfo}/props/defaultProps.js +0 -0
  116. /package/es/{IMAutoMessageInfo → im/IMAutoMessageInfo}/props/propTypes.js +0 -0
  117. /package/es/{IMDateTime → im/IMDateTime}/css/cssJSLogic.js +0 -0
  118. /package/es/{IMDateTime → im/IMDateTime}/index.js +0 -0
  119. /package/es/{IMDateTime → im/IMDateTime}/props/defaultProps.js +0 -0
  120. /package/es/{IMDateTime → im/IMDateTime}/props/propTypes.js +0 -0
  121. /package/es/{IMImageBubble → im/IMImageBubble}/css/IMImageBubble.module.css +0 -0
  122. /package/es/{IMImageBubble → im/IMImageBubble}/css/cssJSLogic.js +0 -0
  123. /package/es/{IMImageBubble → im/IMImageBubble}/index.js +0 -0
  124. /package/es/{IMImageBubble → im/IMImageBubble}/props/defaultProps.js +0 -0
  125. /package/es/{IMImageBubble → im/IMImageBubble}/props/propTypes.js +0 -0
  126. /package/es/{IMInfoBubble → im/IMInfoBubble}/IMInfoBubble.js +0 -0
  127. /package/es/{IMInfoBubble → im/IMInfoBubble}/css/IMInfoBubble.module.css +0 -0
  128. /package/es/{IMInfoBubble → im/IMInfoBubble}/css/cssJSLogic.js +0 -0
  129. /package/es/{IMInfoBubble → im/IMInfoBubble}/index.js +0 -0
  130. /package/es/{IMInfoBubble → im/IMInfoBubble}/props/defaultProps.js +0 -0
  131. /package/es/{IMInfoBubble → im/IMInfoBubble}/props/propTypes.js +0 -0
  132. /package/es/{IMIntegrationIcon → im/IMIntegrationIcon}/css/IMIntegrationIcon.module.css +0 -0
  133. /package/es/{IMIntegrationIcon → im/IMIntegrationIcon}/css/cssJSLogic.js +0 -0
  134. /package/es/{IMIntegrationIcon → im/IMIntegrationIcon}/index.js +0 -0
  135. /package/es/{IMIntegrationIcon → im/IMIntegrationIcon}/props/defaultProps.js +0 -0
  136. /package/es/{IMIntegrationIcon → im/IMIntegrationIcon}/props/propConstants.js +0 -0
  137. /package/es/{IMIntegrationIcon → im/IMIntegrationIcon}/props/propTypes.js +0 -0
  138. /package/es/{IMLocationBubble → im/IMLocationBubble}/css/IMLocationBubble.module.css +0 -0
  139. /package/es/{IMLocationBubble → im/IMLocationBubble}/css/cssJSLogic.js +0 -0
  140. /package/es/{IMLocationBubble → im/IMLocationBubble}/index.js +0 -0
  141. /package/es/{IMLocationBubble → im/IMLocationBubble}/props/defaultProps.js +0 -0
  142. /package/es/{IMLocationBubble → im/IMLocationBubble}/props/propTypes.js +0 -0
  143. /package/es/{IMMessage → im/IMMessage}/css/IMMessage.module.css +0 -0
  144. /package/es/{IMMessage → im/IMMessage}/css/cssJSLogic.js +0 -0
  145. /package/es/{IMMessage → im/IMMessage}/index.js +0 -0
  146. /package/es/{IMMessage → im/IMMessage}/props/defaultProps.js +0 -0
  147. /package/es/{IMMessage → im/IMMessage}/renderChild/renderMessage.js +0 -0
  148. /package/es/{IMMessage → im/IMMessage}/renderChild/renderMessageActions.js +0 -0
  149. /package/es/{IMMessage → im/IMMessage}/renderChild/renderMessageBox.js +0 -0
  150. /package/es/{IMMessage → im/IMMessage}/renderChild/renderMessageBoxFooter.js +0 -0
  151. /package/es/{IMMessage → im/IMMessage}/renderChild/renderMessageFooter.js +0 -0
  152. /package/es/{IMMessage → im/IMMessage}/renderChild/renderMessageHeader.js +0 -0
  153. /package/es/{IMMessage → im/IMMessage}/renderChild/renderMessageOwner.js +0 -0
  154. /package/es/{IMMessage → im/IMMessage}/renderChild/renderMessageStatus.js +0 -0
  155. /package/es/{IMMessageActions → im/IMMessageActions}/css/cssJSLogic.js +0 -0
  156. /package/es/{IMMessageActions → im/IMMessageActions}/index.js +0 -0
  157. /package/es/{IMMessageActions → im/IMMessageActions}/props/defaultProps.js +0 -0
  158. /package/es/{IMMessageActions → im/IMMessageActions}/props/propTypes.js +0 -0
  159. /package/es/{IMMessageAvatar → im/IMMessageAvatar}/css/IMMessageAvatar.module.css +0 -0
  160. /package/es/{IMMessageAvatar → im/IMMessageAvatar}/css/cssJSLogic.js +0 -0
  161. /package/es/{IMMessageAvatar → im/IMMessageAvatar}/index.js +0 -0
  162. /package/es/{IMMessageAvatar → im/IMMessageAvatar}/props/defaultProps.js +0 -0
  163. /package/es/{IMMessageAvatar → im/IMMessageAvatar}/props/propTypes.js +0 -0
  164. /package/es/{IMMessageContent → im/IMMessageContent}/css/IMMessageContent.module.css +0 -0
  165. /package/es/{IMMessageContent → im/IMMessageContent}/css/cssJSLogic.js +0 -0
  166. /package/es/{IMMessageContent → im/IMMessageContent}/index.js +0 -0
  167. /package/es/{IMMessageContent → im/IMMessageContent}/props/defaultProps.js +0 -0
  168. /package/es/{IMMessageMeta → im/IMMessageMeta}/IMMessageMeta.js +0 -0
  169. /package/es/{IMMessageMeta → im/IMMessageMeta}/css/IMMessageMeta.module.css +0 -0
  170. /package/es/{IMMessageMeta → im/IMMessageMeta}/css/cssJSLogic.js +0 -0
  171. /package/es/{IMMessageMeta → im/IMMessageMeta}/index.js +0 -0
  172. /package/es/{IMMessageMeta → im/IMMessageMeta}/props/defaultProps.js +0 -0
  173. /package/es/{IMMessageMeta → im/IMMessageMeta}/props/propTypes.js +0 -0
  174. /package/es/{IMMessageStatus → im/IMMessageStatus}/css/IMMessageStatus.module.css +0 -0
  175. /package/es/{IMMessageStatus → im/IMMessageStatus}/css/cssJSLogic.js +0 -0
  176. /package/es/{IMMessageStatus → im/IMMessageStatus}/index.js +0 -0
  177. /package/es/{IMMessageStatus → im/IMMessageStatus}/props/defaultProps.js +0 -0
  178. /package/es/{IMMessageStatus → im/IMMessageStatus}/props/propTypes.js +0 -0
  179. /package/es/{IMReplyBubble → im/IMReplyBubble}/css/cssJSLogic.js +0 -0
  180. /package/es/{IMReplyBubble → im/IMReplyBubble}/index.js +0 -0
  181. /package/es/{IMTextBubble → im/IMTextBubble}/css/IMTextBubble.module.css +0 -0
  182. /package/es/{IMTextBubble → im/IMTextBubble}/css/cssJSLogic.js +0 -0
  183. /package/es/{IMTextBubble → im/IMTextBubble}/index.js +0 -0
  184. /package/es/{IMTextBubble → im/IMTextBubble}/props/defaultProps.js +0 -0
  185. /package/es/{IMTextBubble → im/IMTextBubble}/props/propTypes.js +0 -0
  186. /package/es/{IMTicketLink → im/IMTicketLink}/css/cssJSLogic.js +0 -0
  187. /package/es/{IMTicketLink → im/IMTicketLink}/index.js +0 -0
  188. /package/es/{IMTicketLink → im/IMTicketLink}/props/defaultProps.js +0 -0
  189. /package/es/{IMTicketLink → im/IMTicketLink}/props/propTypes.js +0 -0
  190. /package/es/{IMVideoBubble → im/IMVideoBubble}/css/IMVideoBubble.module.css +0 -0
  191. /package/es/{IMVideoBubble → im/IMVideoBubble}/css/cssJSLogic.js +0 -0
  192. /package/es/{IMVideoBubble → im/IMVideoBubble}/index.js +0 -0
  193. /package/es/{IMVideoBubble → im/IMVideoBubble}/props/defaultProps.js +0 -0
  194. /package/es/{IMVideoBubble → im/IMVideoBubble}/props/propTypes.js +0 -0
@@ -0,0 +1 @@
1
+ export { default as ReplyBubbleContent } from './ReplyBubbleContent';
@@ -0,0 +1,6 @@
1
+ /** ** Constants *** */
2
+ import { dummyObject } from '@zohoim/chat-components-utils/es/constants';
3
+ const replyBubbleContentDefaultProps = {
4
+ customStyle: dummyObject
5
+ };
6
+ export default replyBubbleContentDefaultProps;
@@ -0,0 +1,9 @@
1
+ /** ** Libraries *** */
2
+ import PropTypes from 'prop-types';
3
+ const replyBubbleContentPropTypes = {
4
+ customStyle: PropTypes.object,
5
+ senderName: PropTypes.string,
6
+ renderIcon: PropTypes.func,
7
+ renderMessage: PropTypes.func
8
+ };
9
+ export default replyBubbleContentPropTypes;
@@ -21,7 +21,7 @@ import style from './css/ReplyBubbleHeader.module.css';
21
21
  /** ** Components *** */
22
22
  import { Container, Box } from '@zohodesk/components/es/Layout';
23
23
  import ReplyIcon from '@zohodesk/icon/es/general/Reply';
24
- import IMDateTime from '../IMDateTime/IMDateTime';
24
+ import IMDateTime from '../im/IMDateTime/IMDateTime';
25
25
  export default function ReplyBubbleHeader(props) {
26
26
  const {
27
27
  customStyle,
@@ -43,7 +43,11 @@ export default function ReplyBubbleHeader(props) {
43
43
  flexible: true
44
44
  }, /*#__PURE__*/React.createElement(Container, {
45
45
  alignBox: "row"
46
- }, /*#__PURE__*/React.createElement(ReplyIcon, null), /*#__PURE__*/React.createElement(Box, null, replyText))), /*#__PURE__*/React.createElement(IMDateTime, {
46
+ }, /*#__PURE__*/React.createElement(ReplyIcon, {
47
+ customStyle: {
48
+ base: newStyle.replyIcon
49
+ }
50
+ }), /*#__PURE__*/React.createElement(Box, null, replyText))), /*#__PURE__*/React.createElement(IMDateTime, {
47
51
  customStyle: timeCustomStyle,
48
52
  value: time
49
53
  }));
@@ -0,0 +1,4 @@
1
+ .replyIcon{
2
+ width: 20px;
3
+ height: 20px;
4
+ }
@@ -2,7 +2,7 @@
2
2
  import { dummyObject } from '@zohoim/chat-components-utils/es/constants';
3
3
  const replyBubbleHeaderDefaultProps = {
4
4
  customStyle: dummyObject,
5
- replyText: 'Reply',
5
+ replyText: '',
6
6
  time: '',
7
7
  timeCustomStyle: dummyObject
8
8
  };
@@ -2,22 +2,22 @@
2
2
  /* eslint-disable max-len */
3
3
 
4
4
  /** ** Libraries *** */
5
- import React from 'react';
5
+ import React from "react";
6
6
 
7
7
  /** ** Hooks *** */
8
- import useMergeStyle from '@zohodesk/hooks/es/utils/useMergeStyle';
9
- import useTextBubble from '@zohoim/chat-components-hooks/es/TextBubble/useTextBubble';
8
+ import useMergeStyle from "@zohodesk/hooks/es/utils/useMergeStyle";
9
+ import useTextBubble from "@zohoim/chat-components-hooks/es/TextBubble/useTextBubble";
10
10
 
11
11
  /** ** Constants *** */
12
- import textBubbleDefaultProps from './props/defaultProps';
13
- import textBubblePropTypes from './props/propTypes';
12
+ import textBubbleDefaultProps from "./props/defaultProps";
13
+ import textBubblePropTypes from "./props/propTypes";
14
14
 
15
15
  /** ** Methods *** */
16
- import renderHandler from '@zohoim/chat-components-utils/es/common/renderHandler';
17
- import cssJSLogic from './css/cssJSLogic';
16
+ import renderHandler from "@zohoim/chat-components-utils/es/common/renderHandler";
17
+ import cssJSLogic from "./css/cssJSLogic";
18
18
 
19
19
  /** ** Styles *** */
20
- import style from './css/TextBubble.module.css';
20
+ import style from "./css/TextBubble.module.css";
21
21
  export default function TextBubble(props) {
22
22
  const {
23
23
  customStyle
@@ -36,7 +36,7 @@ export default function TextBubble(props) {
36
36
  moreTextClass,
37
37
  textBubbleWrapperClass
38
38
  } = cssJSLogic(props, newStyle);
39
- return /*#__PURE__*/React.createElement("div", {
39
+ return /*#__PURE__*/React.createElement("span", {
40
40
  className: textBubbleWrapperClass
41
41
  }, /*#__PURE__*/React.createElement("span", {
42
42
  className: textBubbleClass
@@ -53,4 +53,4 @@ export default function TextBubble(props) {
53
53
  }
54
54
  TextBubble.propTypes = textBubblePropTypes;
55
55
  TextBubble.defaultProps = textBubbleDefaultProps;
56
- TextBubble.displayName = 'TextBubble';
56
+ TextBubble.displayName = "TextBubble";
@@ -1 +1,5 @@
1
-
1
+ .moreText {
2
+ text-transform: uppercase;
3
+ color: #0a73eb;
4
+ font-size: 11px;
5
+ }
@@ -1,24 +1,25 @@
1
1
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
  /* eslint-disable react/jsx-no-bind */
3
3
  /** ** Libraries *** */
4
- import React from 'react';
5
- import ThemeProvider from '@zohodesk/theme/es/ThemeProvider';
6
- import sizeVariable from '@zohodesk/theme-defaults/es/sizeVariable';
7
- import fontSizeVariable from '@zohodesk/theme-defaults/es/fontSizeVariable';
8
- import fontVariable from '@zohodesk/theme-defaults/es/fontVariable';
9
- import { transitionVariable, motionTransitionVariable } from '@zohodesk/theme-defaults/es/transitionVariable';
10
- import chatDefaultTheme from './defaultTheme';
11
- import chatDarkTheme from './darkTheme';
12
- import { MSG_ACTION_POPUP_PORTAL } from '../constants';
13
- import { baseUnitLimit } from './constants';
14
- import DeskAssets from './DeskAssets';
15
- import TooltipWrapper from './ToolttipWrapper';
16
- import { Container } from '@zohodesk/components/es/Layout';
17
- import themeWrapperPropTypes from './props/propTypes';
18
- import themeWrapperDefaultProps from './props/defaultProps';
19
- import getThemeConfigurations from './utils/getThemeConfigurations';
20
- import { I18NProvider } from '@zohodesk/i18n';
21
- import datetime from '@zohodesk/datetimejs';
4
+ import React from "react";
5
+ import ThemeProvider from "@zohodesk/theme/es/ThemeProvider";
6
+ import sizeVariable from "@zohodesk/theme-defaults/es/sizeVariable";
7
+ import fontSizeVariable from "@zohodesk/theme-defaults/es/fontSizeVariable";
8
+ import fontVariable from "@zohodesk/theme-defaults/es/fontVariable";
9
+ import { transitionVariable, motionTransitionVariable } from "@zohodesk/theme-defaults/es/transitionVariable";
10
+ import chatDefaultTheme from "./defaultTheme";
11
+ import chatDarkTheme from "./darkTheme";
12
+ import { MSG_ACTION_POPUP_PORTAL } from "../constants";
13
+ import { baseUnitLimit } from "./constants";
14
+ import DeskAssets from "./DeskAssets";
15
+ import TooltipWrapper from "./ToolttipWrapper";
16
+ import { Container } from "@zohodesk/components/es/Layout";
17
+ import themeWrapperPropTypes from "./props/propTypes";
18
+ import themeWrapperDefaultProps from "./props/defaultProps";
19
+ import getThemeConfigurations from "./utils/getThemeConfigurations";
20
+ import { I18NProvider } from "@zohodesk/i18n";
21
+ import datetime from "@zohodesk/datetimejs";
22
+ import "../Fonts/puviFont.module.css";
22
23
  export default function ThemeWrapper(props) {
23
24
  const {
24
25
  children,
@@ -52,7 +53,12 @@ export default function ThemeWrapper(props) {
52
53
  };
53
54
  return /*#__PURE__*/React.createElement("div", _extends({
54
55
  id: "chat-components"
55
- }, wrapperDivProps), /*#__PURE__*/React.createElement(I18NProvider
56
+ }, wrapperDivProps, {
57
+ style: {
58
+ width: "100%",
59
+ height: "100%"
60
+ }
61
+ }), /*#__PURE__*/React.createElement(I18NProvider
56
62
  // i18n={i18n}
57
63
  , {
58
64
  timeZone: "Asia/Kolkata",
@@ -9,4 +9,6 @@ export const imIntegrationIcon = {
9
9
  instagram_color: "red",
10
10
  asap_color: "#0a73eb"
11
11
  // twitter_color: 'red'
12
- };
12
+ };
13
+
14
+ export const messagetextColor = "#e2e4e6";
@@ -1,30 +1,42 @@
1
1
  /* eslint-disable camelcase */
2
- import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor } from './commonColorVariable.js';
3
- import { imIntegrationIcon } from "../commonDeskColorVariable.js";
2
+ import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor } from "./commonColorVariable.js";
3
+ import { imIntegrationIcon, messagetextColor } from "../commonDeskColorVariable.js";
4
4
  export default {
5
- library: 'chat_components',
5
+ library: "chat_components",
6
6
  variables: {
7
7
  messageBubble: {
8
8
  active_bg_color: bubbleActiveBgColor,
9
- messageBox_footer_text_color: '#5a616f'
9
+ messageBox_footer_text_color: "#5a616f"
10
10
  },
11
11
  messageBox: {
12
12
  incoming_bg_color: incomingBubbleBgColor,
13
- outgoing_bg_color: '#2c3b4d',
14
- bg_color: '#f1f7fe',
15
- failed_bg_color: '#fcebeb',
16
- text_color: '#000'
13
+ outgoing_bg_color: "#2c3b4d",
14
+ bg_color: "#f1f7fe",
15
+ failed_bg_color: "#fcebeb",
16
+ text_color: messagetextColor,
17
+ failed_text_color: "#000"
17
18
  },
18
19
  actionIcon: {
19
20
  color: actionIconColor,
20
- bg_color: '#2c3b4d',
21
- border_color: '#3f536b'
21
+ bg_color: "#2c3b4d",
22
+ border_color: "#3f536b"
22
23
  },
23
24
  imIntegrationIcon,
24
25
  messageStatus: {
25
26
  send_color: messageStatusSendColor,
26
- read_color: '#479dff',
27
+ read_color: "#479dff",
27
28
  failed_color: messageStatusFailedColor
29
+ },
30
+ attachmentBubbleInfo: {
31
+ fileName_color: "#e2e4e6",
32
+ fileSize_color: "#788190"
33
+ },
34
+ attachmentBubble: {
35
+ bg_color: "#232b38",
36
+ border_color: "#2d3748"
37
+ },
38
+ imTicketLink: {
39
+ color: "#479dff"
28
40
  }
29
41
  }
30
42
  };
@@ -1,5 +1,5 @@
1
- export const incomingBubbleBgColor = '#232b38';
2
- export const bubbleActiveBgColor = '#1b2e33';
3
- export const actionIconColor = '#e2e4e6';
4
- export const messageStatusSendColor = '#61667a';
5
- export const messageStatusFailedColor = '#de3535';
1
+ export const incomingBubbleBgColor = "#232b38";
2
+ export const bubbleActiveBgColor = "#1b2e33";
3
+ export const actionIconColor = "#e2e4e6";
4
+ export const messageStatusSendColor = "#61667a";
5
+ export const messageStatusFailedColor = "#de3535";
@@ -1,30 +1,41 @@
1
1
  /* eslint-disable camelcase */
2
- import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor } from './commonColorVariable.js';
3
- import { imIntegrationIcon } from "../commonDeskColorVariable.js";
2
+ import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor } from "./commonColorVariable.js";
3
+ import { imIntegrationIcon, messagetextColor } from "../commonDeskColorVariable.js";
4
4
  export default {
5
- library: 'chat_components',
5
+ library: "chat_components",
6
6
  variables: {
7
7
  messageBubble: {
8
8
  active_bg_color: bubbleActiveBgColor,
9
- messageBox_footer_text_color: '#5a616f'
9
+ messageBox_footer_text_color: "#5a616f"
10
10
  },
11
11
  messageBox: {
12
12
  incoming_bg_color: incomingBubbleBgColor,
13
- outgoing_bg_color: '#26373b',
14
- bg_color: '#f1f7fe',
15
- failed_bg_color: '#fcebeb',
16
- text_color: '#000'
13
+ outgoing_bg_color: "#26373b",
14
+ bg_color: "#f1f7fe",
15
+ failed_bg_color: "#fcebeb",
16
+ text_color: messagetextColor
17
17
  },
18
18
  actionIcon: {
19
19
  color: actionIconColor,
20
- bg_color: '#26373b',
21
- border_color: '#2d4e42'
20
+ bg_color: "#26373b",
21
+ border_color: "#2d4e42"
22
22
  },
23
23
  imIntegrationIcon,
24
24
  messageStatus: {
25
25
  send_color: messageStatusSendColor,
26
- read_color: '#45a159',
26
+ read_color: "#45a159",
27
27
  failed_color: messageStatusFailedColor
28
+ },
29
+ attachmentBubbleInfo: {
30
+ fileName_color: "#e2e4e6",
31
+ fileSize_color: "#788190"
32
+ },
33
+ attachmentBubble: {
34
+ bg_color: "#232b38",
35
+ border_color: "#2d3748"
36
+ },
37
+ imTicketLink: {
38
+ color: "#45a159"
28
39
  }
29
40
  }
30
41
  };
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable camelcase */
2
2
  import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor } from './commonColorVariable.js';
3
- import { imIntegrationIcon } from "../commonDeskColorVariable.js";
3
+ import { imIntegrationIcon, messagetextColor } from "../commonDeskColorVariable.js";
4
4
  export default {
5
5
  library: 'chat_components',
6
6
  variables: {
@@ -13,7 +13,7 @@ export default {
13
13
  outgoing_bg_color: '#323136',
14
14
  bg_color: '#f1f7fe',
15
15
  failed_bg_color: '#fcebeb',
16
- text_color: '#000'
16
+ text_color: messagetextColor
17
17
  },
18
18
  actionIcon: {
19
19
  color: actionIconColor,
@@ -25,6 +25,17 @@ export default {
25
25
  send_color: messageStatusSendColor,
26
26
  read_color: '#ff801f',
27
27
  failed_color: messageStatusFailedColor
28
+ },
29
+ attachmentBubbleInfo: {
30
+ fileName_color: "#e2e4e6",
31
+ fileSize_color: "#788190"
32
+ },
33
+ attachmentBubble: {
34
+ bg_color: "#232b38",
35
+ border_color: "#2d3748"
36
+ },
37
+ imTicketLink: {
38
+ color: "#ff801f"
28
39
  }
29
40
  }
30
41
  };
@@ -1,30 +1,41 @@
1
1
  /* eslint-disable camelcase */
2
- import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor } from './commonColorVariable.js';
3
- import { imIntegrationIcon } from "../commonDeskColorVariable.js";
2
+ import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor } from "./commonColorVariable.js";
3
+ import { imIntegrationIcon, messagetextColor } from "../commonDeskColorVariable.js";
4
4
  export default {
5
- library: 'chat_components',
5
+ library: "chat_components",
6
6
  variables: {
7
7
  messageBubble: {
8
8
  active_bg_color: bubbleActiveBgColor,
9
- messageBox_footer_text_color: '#5a616f'
9
+ messageBox_footer_text_color: "#5a616f"
10
10
  },
11
11
  messageBox: {
12
12
  incoming_bg_color: incomingBubbleBgColor,
13
- outgoing_bg_color: '#312d3a',
14
- bg_color: '#f1f7fe',
15
- failed_bg_color: '#fcebeb',
16
- text_color: '#000'
13
+ outgoing_bg_color: "#312d3a",
14
+ bg_color: "#f1f7fe",
15
+ failed_bg_color: "#fcebeb",
16
+ text_color: messagetextColor
17
17
  },
18
18
  actionIcon: {
19
19
  color: actionIconColor,
20
- bg_color: '#312d3a',
21
- border_color: '#4b323d'
20
+ bg_color: "#312d3a",
21
+ border_color: "#4b323d"
22
22
  },
23
23
  imIntegrationIcon,
24
24
  messageStatus: {
25
25
  send_color: messageStatusSendColor,
26
- read_color: '#e94f4f',
26
+ read_color: "#e94f4f",
27
27
  failed_color: messageStatusFailedColor
28
+ },
29
+ attachmentBubbleInfo: {
30
+ fileName_color: "#e2e4e6",
31
+ fileSize_color: "#788190"
32
+ },
33
+ attachmentBubble: {
34
+ bg_color: "#232b38",
35
+ border_color: "#2d3748"
36
+ },
37
+ imTicketLink: {
38
+ color: "#e94f4f"
28
39
  }
29
40
  }
30
41
  };
@@ -1,30 +1,41 @@
1
1
  /* eslint-disable camelcase */
2
- import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor } from './commonColorVariable.js';
3
- import { imIntegrationIcon } from "../commonDeskColorVariable.js";
2
+ import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor } from "./commonColorVariable.js";
3
+ import { imIntegrationIcon, messagetextColor } from "../commonDeskColorVariable.js";
4
4
  export default {
5
- library: 'chat_components',
5
+ library: "chat_components",
6
6
  variables: {
7
7
  messageBubble: {
8
8
  active_bg_color: bubbleActiveBgColor,
9
- messageBox_footer_text_color: '#5a616f'
9
+ messageBox_footer_text_color: "#5a616f"
10
10
  },
11
11
  messageBox: {
12
12
  incoming_bg_color: incomingBubbleBgColor,
13
- outgoing_bg_color: '#303338',
14
- bg_color: '#f1f7fe',
15
- failed_bg_color: '#fcebeb',
16
- text_color: '#000'
13
+ outgoing_bg_color: "#303338",
14
+ bg_color: "#f1f7fe",
15
+ failed_bg_color: "#fcebeb",
16
+ text_color: messagetextColor
17
17
  },
18
18
  actionIcon: {
19
19
  color: actionIconColor,
20
- bg_color: '#303338',
21
- border_color: '#474137'
20
+ bg_color: "#303338",
21
+ border_color: "#474137"
22
22
  },
23
23
  imIntegrationIcon,
24
24
  messageStatus: {
25
25
  send_color: messageStatusSendColor,
26
- read_color: '#d79835',
26
+ read_color: "#d79835",
27
27
  failed_color: messageStatusFailedColor
28
+ },
29
+ attachmentBubbleInfo: {
30
+ fileName_color: "#e2e4e6",
31
+ fileSize_color: "#788190"
32
+ },
33
+ attachmentBubble: {
34
+ bg_color: "#232b38",
35
+ border_color: "#2d3748"
36
+ },
37
+ imTicketLink: {
38
+ color: "#d79835"
28
39
  }
29
40
  }
30
41
  };
@@ -1,33 +1,46 @@
1
1
  /* eslint-disable camelcase */
2
- import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor } from './commonColorVariable.js';
3
- import { imIntegrationIcon } from '../commonDeskColorVariable.js';
2
+ import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor, messagetextColor } from "./commonColorVariable.js";
3
+ import { imIntegrationIcon } from "../commonDeskColorVariable.js";
4
4
  export default {
5
- library: 'chat_components',
5
+ library: "chat_components",
6
6
  variables: {
7
7
  messageBubble: {
8
8
  active_bg_color: bubbleActiveBgColor,
9
- messageBox_footer_text_color: '#5a616f'
9
+ messageBox_footer_text_color: "#5a616f"
10
10
  },
11
11
  messageBox: {
12
12
  incoming_bg_color: incomingBubbleBgColor,
13
- outgoing_bg_color: '#f1f7fe',
14
- bg_color: '#f1f7fe',
15
- failed_bg_color: '#fcebeb',
16
- text_color: '#000'
13
+ outgoing_bg_color: "#f1f7fe",
14
+ bg_color: "#f1f7fe",
15
+ failed_bg_color: "#fcebeb",
16
+ text_color: messagetextColor
17
17
  },
18
18
  actionIcon: {
19
19
  color: actionIconColor,
20
- bg_color: '#f1f7fe',
21
- border_color: '#b7d1f0'
20
+ bg_color: "#f1f7fe",
21
+ border_color: "#b7d1f0"
22
22
  },
23
23
  imIntegrationIcon,
24
24
  messageStatus: {
25
25
  send_color: messageStatusSendColor,
26
- read_color: '#0a73eb',
26
+ read_color: "#0a73eb",
27
27
  failed_color: messageStatusFailedColor
28
28
  },
29
29
  imTicketLink: {
30
- color: '#0a73eb'
30
+ color: "#0a73eb"
31
+ },
32
+ attachmentBubble: {
33
+ bg_color: "#fff",
34
+ border_color: "#ebf0f5"
35
+ },
36
+ imageBubble: {
37
+ bg_color: "#fff"
38
+ },
39
+ locationBubble: {
40
+ bg_color: "#fff"
41
+ },
42
+ articleBubble: {
43
+ bg_color: "#fff"
31
44
  }
32
45
  }
33
46
  };
@@ -2,4 +2,5 @@ export const incomingBubbleBgColor = '#f1f4f9';
2
2
  export const bubbleActiveBgColor = '#fdffe3';
3
3
  export const actionIconColor = '#000';
4
4
  export const messageStatusSendColor = '#61667a';
5
- export const messageStatusFailedColor = '#de3535';
5
+ export const messageStatusFailedColor = '#de3535';
6
+ export const messagetextColor = "#000";
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable camelcase */
2
- import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor } from "./commonColorVariable.js";
2
+ import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor, messagetextColor } from "./commonColorVariable.js";
3
3
  import { imIntegrationIcon } from "../commonDeskColorVariable.js";
4
4
  export default {
5
5
  library: "chat_components",
@@ -13,7 +13,7 @@ export default {
13
13
  outgoing_bg_color: "#f2faf5",
14
14
  bg_color: "#f1f7fe",
15
15
  failed_bg_color: "#fcebeb",
16
- text_color: "#000"
16
+ text_color: messagetextColor
17
17
  },
18
18
  actionIcon: {
19
19
  color: actionIconColor,
@@ -25,6 +25,13 @@ export default {
25
25
  send_color: messageStatusSendColor,
26
26
  read_color: "#26a942",
27
27
  failed_color: messageStatusFailedColor
28
+ },
29
+ attachmentBubble: {
30
+ bg_color: "#fff",
31
+ border_color: "#ebf0f5"
32
+ },
33
+ imTicketLink: {
34
+ color: "#26a942"
28
35
  }
29
36
  }
30
37
  };
@@ -1,29 +1,36 @@
1
1
  /* eslint-disable camelcase */
2
- import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor } from './commonColorVariable.js';
2
+ import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor, messagetextColor } from "./commonColorVariable.js";
3
3
  import { imIntegrationIcon } from "../commonDeskColorVariable.js";
4
4
  export default {
5
- library: 'chat_components',
5
+ library: "chat_components",
6
6
  variables: {
7
7
  messageBubble: {
8
8
  active_bg_color: bubbleActiveBgColor,
9
- messageBox_footer_text_color: '#5a616f'
9
+ messageBox_footer_text_color: "#5a616f"
10
10
  },
11
11
  messageBox: {
12
12
  incoming_bg_color: incomingBubbleBgColor,
13
- outgoing_bg_color: '#fdf5ef',
14
- bg_color: '#f1f7fe',
15
- failed_bg_color: '#fcebeb',
16
- text_color: '#000'
13
+ outgoing_bg_color: "#fdf5ef",
14
+ bg_color: "#f1f7fe",
15
+ failed_bg_color: "#fcebeb",
16
+ text_color: messagetextColor
17
17
  },
18
18
  actionIcon: {
19
19
  color: actionIconColor,
20
- bg_color: '#fdf5ef',
21
- border_color: '#f7d6b9'
20
+ bg_color: "#fdf5ef",
21
+ border_color: "#f7d6b9"
22
22
  },
23
23
  messageStatus: {
24
24
  send_color: messageStatusSendColor,
25
- read_color: '#e57717',
25
+ read_color: "#e57717",
26
26
  failed_color: messageStatusFailedColor
27
+ },
28
+ attachmentBubble: {
29
+ bg_color: "#fff",
30
+ border_color: "#ebf0f5"
31
+ },
32
+ imTicketLink: {
33
+ color: "#e57717"
27
34
  }
28
35
  }
29
36
  };
@@ -1,29 +1,36 @@
1
1
  /* eslint-disable camelcase */
2
- import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor } from './commonColorVariable.js';
2
+ import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor, messagetextColor } from "./commonColorVariable.js";
3
3
  import { imIntegrationIcon } from "../commonDeskColorVariable.js";
4
4
  export default {
5
- library: 'chat_components',
5
+ library: "chat_components",
6
6
  variables: {
7
7
  messageBubble: {
8
8
  active_bg_color: bubbleActiveBgColor,
9
- messageBox_footer_text_color: '#5a616f'
9
+ messageBox_footer_text_color: "#5a616f"
10
10
  },
11
11
  messageBox: {
12
12
  incoming_bg_color: incomingBubbleBgColor,
13
- outgoing_bg_color: '#fdf3f3',
14
- bg_color: '#f1f7fe',
15
- failed_bg_color: '#fcebeb',
16
- text_color: '#000'
13
+ outgoing_bg_color: "#fdf3f3",
14
+ bg_color: "#f1f7fe",
15
+ failed_bg_color: "#fcebeb",
16
+ text_color: messagetextColor
17
17
  },
18
18
  actionIcon: {
19
19
  color: actionIconColor,
20
- bg_color: '#fdf3f3',
21
- border_color: '#f8d7d7'
20
+ bg_color: "#fdf3f3",
21
+ border_color: "#f8d7d7"
22
22
  },
23
23
  messageStatus: {
24
24
  send_color: messageStatusSendColor,
25
- read_color: '#de3535',
25
+ read_color: "#de3535",
26
26
  failed_color: messageStatusFailedColor
27
+ },
28
+ attachmentBubble: {
29
+ bg_color: "#fff",
30
+ border_color: "#ebf0f5"
31
+ },
32
+ imTicketLink: {
33
+ color: "#de3535"
27
34
  }
28
35
  }
29
36
  };