@zohoim/chat-components 1.0.4 → 1.0.6

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 (125) hide show
  1. package/README.md +14 -4
  2. package/es/ActionIcon/ActionIcon.js +9 -10
  3. package/es/ActionIcon/index.js +1 -1
  4. package/es/ActionIconWrapper/ActionIconWrapper.js +4 -4
  5. package/es/ActionIconWrapper/index.js +1 -1
  6. package/es/AttachmentBubble/AttachmentBubble.js +14 -15
  7. package/es/AttachmentBubble/index.js +1 -1
  8. package/es/AttachmentBubbleInfo/AttachmentBubbleInfo.js +4 -4
  9. package/es/AttachmentBubbleInfo/index.js +1 -1
  10. package/es/AttachmentIcon/AttachmentIcon.js +5 -5
  11. package/es/AttachmentIcon/index.js +1 -1
  12. package/es/AttachmentIcon/utils/getAttachmentIconComponent.js +11 -11
  13. package/es/Audio/Audio.js +6 -4
  14. package/es/Audio/index.js +1 -1
  15. package/es/AudioBubble/AudioBubble.js +13 -14
  16. package/es/AudioBubble/index.js +1 -1
  17. package/es/ImageBubble/ImageBubble.js +5 -5
  18. package/es/ImageBubble/index.js +1 -1
  19. package/es/LazyLoadImage/LazyLoadImage.js +6 -4
  20. package/es/LazyLoadImage/index.js +1 -1
  21. package/es/LocationBubble/LocationBubble.js +4 -4
  22. package/es/LocationBubble/index.js +1 -1
  23. package/es/MediaBubbleWrapper/MediaBubbleWrapper.js +8 -10
  24. package/es/MediaBubbleWrapper/index.js +1 -1
  25. package/es/Message/Message.js +23 -16
  26. package/es/Message/index.js +1 -1
  27. package/es/MessageAction/MessageAction.js +15 -14
  28. package/es/MessageAction/index.js +1 -1
  29. package/es/MessageActions/MessageActions.js +18 -17
  30. package/es/MessageActions/index.js +1 -1
  31. package/es/MessageActionsMore/MessageActionsMore.js +4 -4
  32. package/es/MessageActionsMore/index.js +1 -1
  33. package/es/MessageActionsWrapper/MessageActionsWrapper.js +8 -9
  34. package/es/MessageActionsWrapper/index.js +1 -1
  35. package/es/MessageAvatar/MessageAvatar.js +3 -3
  36. package/es/MessageAvatar/index.js +1 -1
  37. package/es/MessageBox/MessageBox.js +4 -4
  38. package/es/MessageBox/index.js +1 -1
  39. package/es/MessageBubble/MessageBubble.js +6 -5
  40. package/es/MessageBubble/css/MessageBubble.module.css +7 -0
  41. package/es/MessageBubble/css/cssJSLogic.js +4 -2
  42. package/es/MessageBubble/index.js +1 -1
  43. package/es/MessageStatus/MessageStatus.js +8 -8
  44. package/es/MessageStatus/index.js +1 -1
  45. package/es/MoreActionItem/MoreActionItem.js +3 -3
  46. package/es/MoreActionItem/index.js +1 -1
  47. package/es/ReplyBubble/ReplyBubble.js +19 -18
  48. package/es/ReplyBubble/index.js +1 -1
  49. package/es/ReplyBubbleContent/ReplyBubbleContent.js +4 -4
  50. package/es/ReplyBubbleContent/index.js +1 -1
  51. package/es/ReplyBubbleHeader/ReplyBubbleHeader.js +4 -4
  52. package/es/ReplyBubbleHeader/index.js +1 -1
  53. package/es/TextBubble/TextBubble.js +4 -4
  54. package/es/TextBubble/index.js +1 -1
  55. package/es/Theme/ThemeWrapper.js +14 -16
  56. package/es/Theme/TooltipWrapper.js +5 -6
  57. package/es/Theme/index.js +1 -1
  58. package/es/Theme/themeVariables/commonThemeColorVariable.js +1 -1
  59. package/es/Theme/themeVariables/dark/blueTheme.js +2 -2
  60. package/es/Theme/themeVariables/dark/greenTheme.js +2 -2
  61. package/es/Theme/themeVariables/dark/orangeTheme.js +2 -2
  62. package/es/Theme/themeVariables/dark/redTheme.js +2 -2
  63. package/es/Theme/themeVariables/dark/yellowTheme.js +2 -2
  64. package/es/Theme/themeVariables/light/blueTheme.js +1 -1
  65. package/es/Theme/themeVariables/light/commonColorVariable.js +1 -1
  66. package/es/Theme/themeVariables/light/greenTheme.js +1 -1
  67. package/es/Theme/themeVariables/light/orangeTheme.js +1 -1
  68. package/es/Theme/themeVariables/light/redTheme.js +1 -1
  69. package/es/Theme/themeVariables/light/yellowTheme.js +1 -1
  70. package/es/Theme/themeVariables/pureDark/blueTheme.js +2 -2
  71. package/es/Theme/themeVariables/pureDark/greenTheme.js +2 -2
  72. package/es/Theme/themeVariables/pureDark/orangeTheme.js +2 -2
  73. package/es/Theme/themeVariables/pureDark/redTheme.js +2 -2
  74. package/es/Theme/themeVariables/pureDark/yellowTheme.js +2 -2
  75. package/es/Theme/utils/combineConfigurations.js +1 -1
  76. package/es/Theme/utils/getCustomizedCssVariables.js +1 -1
  77. package/es/Theme/utils/getThemeConfigurations.js +16 -16
  78. package/es/Video/Video.js +6 -4
  79. package/es/Video/index.js +1 -1
  80. package/es/VideoBubble/VideoBubble.js +14 -15
  81. package/es/VideoBubble/index.js +1 -1
  82. package/es/icons/create-icon-components.js +1 -1
  83. package/es/icons/iconSrc/attachments/Audio.js +2 -1
  84. package/es/icons/iconSrc/attachments/Code.js +2 -1
  85. package/es/icons/iconSrc/attachments/Image.js +2 -1
  86. package/es/icons/iconSrc/attachments/Pdf.js +2 -1
  87. package/es/icons/iconSrc/attachments/Ppt.js +2 -1
  88. package/es/icons/iconSrc/attachments/Text.js +2 -1
  89. package/es/icons/iconSrc/attachments/Txt.js +2 -1
  90. package/es/icons/iconSrc/attachments/Unknown.js +2 -1
  91. package/es/icons/iconSrc/attachments/Video.js +2 -1
  92. package/es/icons/iconSrc/attachments/Xls.js +2 -1
  93. package/es/icons/iconSrc/attachments/Zip.js +2 -1
  94. package/es/icons/iconSrc/attachments/index.js +10 -10
  95. package/es/icons/iconSrc/common/AlertTriangle.js +2 -1
  96. package/es/icons/iconSrc/common/Article.js +2 -1
  97. package/es/icons/iconSrc/common/Reply.js +2 -1
  98. package/es/icons/iconSrc/common/index.js +3 -3
  99. package/es/icons/iconSrc/messageStatus/Clock.js +2 -1
  100. package/es/icons/iconSrc/messageStatus/DoubleTick.js +2 -1
  101. package/es/icons/iconSrc/messageStatus/Failed.js +2 -1
  102. package/es/icons/iconSrc/messageStatus/Tick.js +2 -1
  103. package/es/icons/iconSrc/messageStatus/index.js +4 -4
  104. package/es/im/ArticleBubble/ArticleBubble.js +5 -5
  105. package/es/im/ArticleBubble/index.js +1 -1
  106. package/es/im/IMIntegrationIcon/IMIntegrationIcon.js +4 -4
  107. package/es/im/IMIntegrationIcon/css/IMIntegrationIcon.module.css +1 -1
  108. package/es/im/IMIntegrationIcon/index.js +1 -1
  109. package/es/im/IMMessage/IMMessage.js +29 -26
  110. package/es/im/IMMessage/index.js +1 -1
  111. package/es/im/IMMessageContent/IMMessageContent.js +40 -28
  112. package/es/im/IMMessageContent/index.js +1 -1
  113. package/es/im/IMMessageMeta/IMMessageMeta.js +9 -10
  114. package/es/im/IMMessageMeta/index.js +1 -1
  115. package/es/im/IMMessageMetaInfo/IMMessageMetaInfo.js +3 -3
  116. package/es/im/IMMessageMetaInfo/index.js +1 -1
  117. package/es/im/IMPermaLink/IMPermaLink.js +4 -4
  118. package/es/im/IMPermaLink/index.js +1 -1
  119. package/es/im/IMReplyBubble/IMReplyBubble.js +7 -9
  120. package/es/im/IMReplyBubble/index.js +1 -1
  121. package/es/im/IMTextBubble/IMTextBubble.js +7 -9
  122. package/es/im/IMTextBubble/index.js +1 -1
  123. package/es/im/index.js +9 -9
  124. package/es/index.js +29 -29
  125. package/package.json +4 -4
@@ -1,5 +1,3 @@
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
-
3
1
  /** ** Libraries *** */
4
2
  import React from 'react';
5
3
  import PropTypes from 'prop-types';
@@ -17,7 +15,7 @@ import { setLibraryConfig, getLibraryConfig } from '@zohodesk/components/lib/Pro
17
15
  import { dummyObject } from '@zohoim/chat-components-utils/es/constants/emptyConstants';
18
16
  /** ** Styles *** */
19
17
 
20
- import style from './css/TooltipWrapper.module.css';
18
+ import style from "./css/TooltipWrapper.module.css";
21
19
  export default function TooltipWrapper(props) {
22
20
  const {
23
21
  getContainerRef,
@@ -75,9 +73,10 @@ export default function TooltipWrapper(props) {
75
73
  const newStyle = useMergeStyle(style, customStyle);
76
74
  return /*#__PURE__*/React.createElement("div", {
77
75
  className: newStyle.tooltipWrapper
78
- }, /*#__PURE__*/React.createElement(Tooltip, _extends({
79
- ref: tooltipRef
80
- }, props)));
76
+ }, /*#__PURE__*/React.createElement(Tooltip, {
77
+ ref: tooltipRef,
78
+ ...props
79
+ }));
81
80
  }
82
81
  TooltipWrapper.propTypes = {
83
82
  customStyle: PropTypes.object,
package/es/Theme/index.js CHANGED
@@ -1 +1 @@
1
- export { default as ThemeWrapper } from './ThemeWrapper';
1
+ export { default as ThemeWrapper } from "./ThemeWrapper";
@@ -7,7 +7,7 @@ export const imIntegrationIcon = {
7
7
  line_color: '#01b901',
8
8
  twillio_color: '#f22f46',
9
9
  instagram_color: 'linear-gradient(221.05deg,#933ab9 11.59%,#d12f8c 50.45%,#fdbb59 85.46%)',
10
- asap_color: '#0a73eb',
10
+ asap_color: 'linear-gradient(180deg, #A375FF 0%, #7732FF 100%)',
11
11
  fb_color: '#006aff'
12
12
  };
13
13
  export const imTtIcon = {
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable camelcase */
2
- import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryBlue, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor } from './commonColorVariable';
3
- import { imIntegrationIcon, imTtIcon, messagetextColor } from '../commonThemeColorVariable';
2
+ import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryBlue, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor } from "./commonColorVariable";
3
+ import { imIntegrationIcon, imTtIcon, messagetextColor } from "../commonThemeColorVariable";
4
4
  export default {
5
5
  library: 'chat_components',
6
6
  variables: {
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable camelcase */
2
- import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryGreen, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor } from './commonColorVariable';
3
- import { imIntegrationIcon, imTtIcon, messagetextColor } from '../commonThemeColorVariable';
2
+ import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryGreen, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor } from "./commonColorVariable";
3
+ import { imIntegrationIcon, imTtIcon, messagetextColor } from "../commonThemeColorVariable";
4
4
  export default {
5
5
  library: 'chat_components',
6
6
  variables: {
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable camelcase */
2
- import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryOrange, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor } from './commonColorVariable';
3
- import { imIntegrationIcon, imTtIcon, messagetextColor } from '../commonThemeColorVariable';
2
+ import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryOrange, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor } from "./commonColorVariable";
3
+ import { imIntegrationIcon, imTtIcon, messagetextColor } from "../commonThemeColorVariable";
4
4
  export default {
5
5
  library: 'chat_components',
6
6
  variables: {
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable camelcase */
2
- import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryRed, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor } from './commonColorVariable';
3
- import { imIntegrationIcon, imTtIcon, messagetextColor } from '../commonThemeColorVariable';
2
+ import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryRed, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor } from "./commonColorVariable";
3
+ import { imIntegrationIcon, imTtIcon, messagetextColor } from "../commonThemeColorVariable";
4
4
  export default {
5
5
  library: 'chat_components',
6
6
  variables: {
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable camelcase */
2
- import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryYellow, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor } from './commonColorVariable';
3
- import { imIntegrationIcon, imTtIcon, messagetextColor } from '../commonThemeColorVariable';
2
+ import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryYellow, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor } from "./commonColorVariable";
3
+ import { imIntegrationIcon, imTtIcon, messagetextColor } from "../commonThemeColorVariable";
4
4
  export default {
5
5
  library: 'chat_components',
6
6
  variables: {
@@ -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 } from './commonColorVariable';
2
+ import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, messagetextColor, primaryBlue, white, black, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor, imIntegrationIcon, imTtIcon } from "./commonColorVariable";
3
3
  export default {
4
4
  library: 'chat_components',
5
5
  variables: {
@@ -26,7 +26,7 @@ export const imIntegrationIcon = {
26
26
  line_color: '#01b901',
27
27
  twillio_color: '#f22f46',
28
28
  instagram_color: 'linear-gradient(221.05deg,#933ab9 11.59%,#d12f8c 50.45%,#fdbb59 85.46%)',
29
- asap_color: '#0a73eb',
29
+ asap_color: 'linear-gradient(180deg, #A375FF 0%, #7732FF 100%)',
30
30
  fb_color: '#006aff'
31
31
  };
32
32
  export const imTtIcon = {
@@ -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 } from "./commonColorVariable";
3
3
  export default {
4
4
  library: 'chat_components',
5
5
  variables: {
@@ -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 } from "./commonColorVariable";
3
3
  export default {
4
4
  library: 'chat_components',
5
5
  variables: {
@@ -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 } from "./commonColorVariable";
3
3
  export default {
4
4
  library: 'chat_components',
5
5
  variables: {
@@ -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 } from "./commonColorVariable";
3
3
  export default {
4
4
  library: 'chat_components',
5
5
  variables: {
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable camelcase */
2
- import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryBlue, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor } from './commonColorVariable';
3
- import { imIntegrationIcon, imTtIcon, messagetextColor } from '../commonThemeColorVariable';
2
+ import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryBlue, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor } from "./commonColorVariable";
3
+ import { imIntegrationIcon, imTtIcon, messagetextColor } from "../commonThemeColorVariable";
4
4
  export default {
5
5
  library: 'chat_components',
6
6
  variables: {
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable camelcase */
2
- import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryGreen, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor } from './commonColorVariable';
3
- import { imIntegrationIcon, imTtIcon, messagetextColor } from '../commonThemeColorVariable';
2
+ import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryGreen, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor } from "./commonColorVariable";
3
+ import { imIntegrationIcon, imTtIcon, messagetextColor } from "../commonThemeColorVariable";
4
4
  export default {
5
5
  library: 'chat_components',
6
6
  variables: {
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable camelcase */
2
- import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryOrange, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor } from './commonColorVariable';
3
- import { imIntegrationIcon, imTtIcon, messagetextColor } from '../commonThemeColorVariable';
2
+ import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryOrange, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor } from "./commonColorVariable";
3
+ import { imIntegrationIcon, imTtIcon, messagetextColor } from "../commonThemeColorVariable";
4
4
  export default {
5
5
  library: 'chat_components',
6
6
  variables: {
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable camelcase */
2
- import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryRed, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor } from './commonColorVariable';
3
- import { imIntegrationIcon, imTtIcon, messagetextColor } from '../commonThemeColorVariable';
2
+ import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryRed, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor } from "./commonColorVariable";
3
+ import { imIntegrationIcon, imTtIcon, messagetextColor } from "../commonThemeColorVariable";
4
4
  export default {
5
5
  library: 'chat_components',
6
6
  variables: {
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable camelcase */
2
- import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, messageStatusSendColor, messageStatusFailedColor, actionIconWrapperColor, primaryYellow, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor } from './commonColorVariable';
3
- import { imIntegrationIcon, imTtIcon, messagetextColor } from '../commonThemeColorVariable';
2
+ import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, messageStatusSendColor, messageStatusFailedColor, actionIconWrapperColor, primaryYellow, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor } from "./commonColorVariable";
3
+ import { imIntegrationIcon, imTtIcon, messagetextColor } from "../commonThemeColorVariable";
4
4
  export default {
5
5
  library: 'chat_components',
6
6
  variables: {
@@ -1,4 +1,4 @@
1
- import flatVariables from './flatVariables';
1
+ import flatVariables from "./flatVariables";
2
2
  export default function combineConfigurations(configurations) {
3
3
  const configs = configurations.map(configuration => ({
4
4
  library: configuration.library,
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable no-param-reassign */
2
2
 
3
3
  /** ** Methods *** */
4
- import combineConfigurations from './combineConfigurations';
4
+ import combineConfigurations from "./combineConfigurations";
5
5
  export default function getCustomizedCssVariables(cssVariableConfigs) {
6
6
  let prefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '--lib_';
7
7
  const newConfiguration = combineConfigurations(cssVariableConfigs);
@@ -1,19 +1,19 @@
1
- import { modeConstants, themeConstants } from '../constants';
2
- import lightBlue from '../themeVariables/light/blueTheme';
3
- import lightGreen from '../themeVariables/light/greenTheme';
4
- import lightOrange from '../themeVariables/light/orangeTheme';
5
- import lightRed from '../themeVariables/light/redTheme';
6
- import lightYellow from '../themeVariables/light/yellowTheme';
7
- import darkBlue from '../themeVariables/dark/blueTheme';
8
- import darkGreen from '../themeVariables/dark/greenTheme';
9
- import darkOrange from '../themeVariables/dark/orangeTheme';
10
- import darkRed from '../themeVariables/dark/redTheme';
11
- import darkYellow from '../themeVariables/dark/yellowTheme';
12
- import pureDarkBlue from '../themeVariables/pureDark/blueTheme';
13
- import pureDarkGreen from '../themeVariables/pureDark/greenTheme';
14
- import pureDarkOrange from '../themeVariables/pureDark/orangeTheme';
15
- import pureDarkRed from '../themeVariables/pureDark/redTheme';
16
- import pureDarkYellow from '../themeVariables/pureDark/yellowTheme';
1
+ import { modeConstants, themeConstants } from "../constants";
2
+ import lightBlue from "../themeVariables/light/blueTheme";
3
+ import lightGreen from "../themeVariables/light/greenTheme";
4
+ import lightOrange from "../themeVariables/light/orangeTheme";
5
+ import lightRed from "../themeVariables/light/redTheme";
6
+ import lightYellow from "../themeVariables/light/yellowTheme";
7
+ import darkBlue from "../themeVariables/dark/blueTheme";
8
+ import darkGreen from "../themeVariables/dark/greenTheme";
9
+ import darkOrange from "../themeVariables/dark/orangeTheme";
10
+ import darkRed from "../themeVariables/dark/redTheme";
11
+ import darkYellow from "../themeVariables/dark/yellowTheme";
12
+ import pureDarkBlue from "../themeVariables/pureDark/blueTheme";
13
+ import pureDarkGreen from "../themeVariables/pureDark/greenTheme";
14
+ import pureDarkOrange from "../themeVariables/pureDark/orangeTheme";
15
+ import pureDarkRed from "../themeVariables/pureDark/redTheme";
16
+ import pureDarkYellow from "../themeVariables/pureDark/yellowTheme";
17
17
  const modeMapping = {
18
18
  [modeConstants.LIGHT]: 'light',
19
19
  [modeConstants.DARK]: 'dark',
package/es/Video/Video.js CHANGED
@@ -6,11 +6,11 @@ import useMergeStyle from '@zohodesk/hooks/es/utils/useMergeStyle';
6
6
  import useMedia from '@zohoim/chat-components-hooks/es/Media/useMedia';
7
7
  /** ** Constants *** */
8
8
 
9
- import videoDefaultProps from './props/defaultProps';
10
- import videoPropTypes from './props/propTypes';
9
+ import videoDefaultProps from "./props/defaultProps";
10
+ import videoPropTypes from "./props/propTypes";
11
11
  /** ** Styles *** */
12
12
 
13
- import style from './css/Video.module.css';
13
+ import style from "./css/Video.module.css";
14
14
  export default function Video(props) {
15
15
  const {
16
16
  customStyle,
@@ -19,7 +19,9 @@ export default function Video(props) {
19
19
  } = props;
20
20
  const {
21
21
  mediaElementRef
22
- } = useMedia(props);
22
+ } = useMedia({
23
+ src: fileURL
24
+ });
23
25
  /* External CSS Customization */
24
26
 
25
27
  const newStyle = useMergeStyle(style, customStyle);
package/es/Video/index.js CHANGED
@@ -1 +1 @@
1
- export { default as Video } from './Video';
1
+ export { default as Video } from "./Video";
@@ -1,5 +1,3 @@
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
-
3
1
  /** ** Libraries *** */
4
2
  import React, { useCallback } from 'react';
5
3
  /** ** Hooks *** */
@@ -7,20 +5,20 @@ import React, { useCallback } from 'react';
7
5
  import useMergeStyle from '@zohodesk/hooks/es/utils/useMergeStyle';
8
6
  /** ** Constants *** */
9
7
 
10
- import videoBubbleDefaultProps from './props/defaultProps';
11
- import videoBubblePropTypes from './props/propTypes';
8
+ import videoBubbleDefaultProps from "./props/defaultProps";
9
+ import videoBubblePropTypes from "./props/propTypes";
12
10
  import { dummyObject } from '@zohoim/chat-components-utils/es/constants/emptyConstants';
13
11
  /** ** Styles *** */
14
12
 
15
- import style from './css/VideoBubble.module.css';
13
+ import style from "./css/VideoBubble.module.css";
16
14
  /** ** Components *** */
17
15
 
18
16
  import { Box } from '@zohodesk/components/es/Layout';
19
- import MediaBubbleWrapper from '../MediaBubbleWrapper/MediaBubbleWrapper';
20
- import Video from '../Video/Video';
17
+ import MediaBubbleWrapper from "../MediaBubbleWrapper/MediaBubbleWrapper";
18
+ import Video from "../Video/Video";
21
19
  /** ** Methods *** */
22
20
 
23
- import cssJSLogic from './css/cssJSLogic';
21
+ import cssJSLogic from "./css/cssJSLogic";
24
22
  export default function VideoBubble(props) {
25
23
  const {
26
24
  customStyle,
@@ -49,17 +47,18 @@ export default function VideoBubble(props) {
49
47
  } = _ref;
50
48
  return /*#__PURE__*/React.createElement(Box, {
51
49
  className: videoBubbleClass
52
- }, /*#__PURE__*/React.createElement(Video, _extends({
50
+ }, /*#__PURE__*/React.createElement(Video, {
53
51
  fileType: fileType,
54
- fileURL: fileURL
55
- }, videoProps)));
52
+ fileURL: fileURL,
53
+ ...videoProps
54
+ }));
56
55
  }, [videoProps, videoBubbleClass]);
57
- return /*#__PURE__*/React.createElement(MediaBubbleWrapper, _extends({
56
+ return /*#__PURE__*/React.createElement(MediaBubbleWrapper, {
58
57
  mediaDetails: videoDetails,
59
- renderMedia: renderMedia
60
- }, mediaBubbleWrapperProps, {
58
+ renderMedia: renderMedia,
59
+ ...mediaBubbleWrapperProps,
61
60
  isFailed: isFailed
62
- }));
61
+ });
63
62
  }
64
63
  VideoBubble.propTypes = videoBubblePropTypes;
65
64
  VideoBubble.defaultProps = videoBubbleDefaultProps;
@@ -1 +1 @@
1
- export { default as VideoBubble } from './VideoBubble';
1
+ export { default as VideoBubble } from "./VideoBubble";
@@ -5,7 +5,7 @@ const path = require('path');
5
5
 
6
6
  const fs = require('fs');
7
7
 
8
- const templateList = require('./icon.template');
8
+ const templateList = require("./icon.template");
9
9
 
10
10
  const jsdom = require('jsdom');
11
11
 
@@ -2,7 +2,8 @@
2
2
  import React from 'react';
3
3
  import Icon from '@zohodesk/icon/es/Icon/Icon';
4
4
  export default function IconComponent(props) {
5
- return /*#__PURE__*/React.createElement(Icon, props, /*#__PURE__*/React.createElement("svg", {
5
+ return /*#__PURE__*/React.createElement(Icon, { ...props
6
+ }, /*#__PURE__*/React.createElement("svg", {
6
7
  id: "Layer_1",
7
8
  "data-name": "Layer 1",
8
9
  xmlns: "http://www.w3.org/2000/svg",
@@ -2,7 +2,8 @@
2
2
  import React from 'react';
3
3
  import Icon from '@zohodesk/icon/es/Icon/Icon';
4
4
  export default function IconComponent(props) {
5
- return /*#__PURE__*/React.createElement(Icon, props, /*#__PURE__*/React.createElement("svg", {
5
+ return /*#__PURE__*/React.createElement(Icon, { ...props
6
+ }, /*#__PURE__*/React.createElement("svg", {
6
7
  id: "Layer_1",
7
8
  "data-name": "Layer 1",
8
9
  xmlns: "http://www.w3.org/2000/svg",
@@ -2,7 +2,8 @@
2
2
  import React from 'react';
3
3
  import Icon from '@zohodesk/icon/es/Icon/Icon';
4
4
  export default function IconComponent(props) {
5
- return /*#__PURE__*/React.createElement(Icon, props, /*#__PURE__*/React.createElement("svg", {
5
+ return /*#__PURE__*/React.createElement(Icon, { ...props
6
+ }, /*#__PURE__*/React.createElement("svg", {
6
7
  id: "Layer_1",
7
8
  "data-name": "Layer 1",
8
9
  xmlns: "http://www.w3.org/2000/svg",
@@ -2,7 +2,8 @@
2
2
  import React from 'react';
3
3
  import Icon from '@zohodesk/icon/es/Icon/Icon';
4
4
  export default function IconComponent(props) {
5
- return /*#__PURE__*/React.createElement(Icon, props, /*#__PURE__*/React.createElement("svg", {
5
+ return /*#__PURE__*/React.createElement(Icon, { ...props
6
+ }, /*#__PURE__*/React.createElement("svg", {
6
7
  id: "Layer_1",
7
8
  "data-name": "Layer 1",
8
9
  xmlns: "http://www.w3.org/2000/svg",
@@ -2,7 +2,8 @@
2
2
  import React from 'react';
3
3
  import Icon from '@zohodesk/icon/es/Icon/Icon';
4
4
  export default function IconComponent(props) {
5
- return /*#__PURE__*/React.createElement(Icon, props, /*#__PURE__*/React.createElement("svg", {
5
+ return /*#__PURE__*/React.createElement(Icon, { ...props
6
+ }, /*#__PURE__*/React.createElement("svg", {
6
7
  id: "Layer_1",
7
8
  xmlns: "http://www.w3.org/2000/svg",
8
9
  viewBox: "0 0 30.52 30.27"
@@ -2,7 +2,8 @@
2
2
  import React from 'react';
3
3
  import Icon from '@zohodesk/icon/es/Icon/Icon';
4
4
  export default function IconComponent(props) {
5
- return /*#__PURE__*/React.createElement(Icon, props, /*#__PURE__*/React.createElement("svg", {
5
+ return /*#__PURE__*/React.createElement(Icon, { ...props
6
+ }, /*#__PURE__*/React.createElement("svg", {
6
7
  id: "Layer_1",
7
8
  "data-name": "Layer 1",
8
9
  xmlns: "http://www.w3.org/2000/svg",
@@ -2,7 +2,8 @@
2
2
  import React from 'react';
3
3
  import Icon from '@zohodesk/icon/es/Icon/Icon';
4
4
  export default function IconComponent(props) {
5
- return /*#__PURE__*/React.createElement(Icon, props, /*#__PURE__*/React.createElement("svg", {
5
+ return /*#__PURE__*/React.createElement(Icon, { ...props
6
+ }, /*#__PURE__*/React.createElement("svg", {
6
7
  id: "Layer_1",
7
8
  "data-name": "Layer 1",
8
9
  xmlns: "http://www.w3.org/2000/svg",
@@ -2,7 +2,8 @@
2
2
  import React from 'react';
3
3
  import Icon from '@zohodesk/icon/es/Icon/Icon';
4
4
  export default function IconComponent(props) {
5
- return /*#__PURE__*/React.createElement(Icon, props, /*#__PURE__*/React.createElement("svg", {
5
+ return /*#__PURE__*/React.createElement(Icon, { ...props
6
+ }, /*#__PURE__*/React.createElement("svg", {
6
7
  id: "Layer_1",
7
8
  "data-name": "Layer 1",
8
9
  xmlns: "http://www.w3.org/2000/svg",
@@ -2,7 +2,8 @@
2
2
  import React from 'react';
3
3
  import Icon from '@zohodesk/icon/es/Icon/Icon';
4
4
  export default function IconComponent(props) {
5
- return /*#__PURE__*/React.createElement(Icon, props, /*#__PURE__*/React.createElement("svg", {
5
+ return /*#__PURE__*/React.createElement(Icon, { ...props
6
+ }, /*#__PURE__*/React.createElement("svg", {
6
7
  id: "Layer_1",
7
8
  "data-name": "Layer 1",
8
9
  xmlns: "http://www.w3.org/2000/svg",
@@ -2,7 +2,8 @@
2
2
  import React from 'react';
3
3
  import Icon from '@zohodesk/icon/es/Icon/Icon';
4
4
  export default function IconComponent(props) {
5
- return /*#__PURE__*/React.createElement(Icon, props, /*#__PURE__*/React.createElement("svg", {
5
+ return /*#__PURE__*/React.createElement(Icon, { ...props
6
+ }, /*#__PURE__*/React.createElement("svg", {
6
7
  id: "Layer_1",
7
8
  xmlns: "http://www.w3.org/2000/svg",
8
9
  viewBox: "0 0 30 30.27"
@@ -2,7 +2,8 @@
2
2
  import React from 'react';
3
3
  import Icon from '@zohodesk/icon/es/Icon/Icon';
4
4
  export default function IconComponent(props) {
5
- return /*#__PURE__*/React.createElement(Icon, props, /*#__PURE__*/React.createElement("svg", {
5
+ return /*#__PURE__*/React.createElement(Icon, { ...props
6
+ }, /*#__PURE__*/React.createElement("svg", {
6
7
  id: "Layer_1",
7
8
  "data-name": "Layer 1",
8
9
  xmlns: "http://www.w3.org/2000/svg",
@@ -1,10 +1,10 @@
1
- export { default as Audio } from './Audio';
2
- export { default as Code } from './Code';
3
- export { default as Image } from './Image';
4
- export { default as Pdf } from './Pdf';
5
- export { default as Ppt } from './Ppt';
6
- export { default as Text } from './Text';
7
- export { default as Unknown } from './Unknown';
8
- export { default as Video } from './Video';
9
- export { default as Xls } from './Xls';
10
- export { default as Zip } from './Zip';
1
+ export { default as Audio } from "./Audio";
2
+ export { default as Code } from "./Code";
3
+ export { default as Image } from "./Image";
4
+ export { default as Pdf } from "./Pdf";
5
+ export { default as Ppt } from "./Ppt";
6
+ export { default as Text } from "./Text";
7
+ export { default as Unknown } from "./Unknown";
8
+ export { default as Video } from "./Video";
9
+ export { default as Xls } from "./Xls";
10
+ export { default as Zip } from "./Zip";
@@ -2,7 +2,8 @@
2
2
  import React from 'react';
3
3
  import Icon from '@zohodesk/icon/es/Icon/Icon';
4
4
  export default function IconComponent(props) {
5
- return /*#__PURE__*/React.createElement(Icon, props, /*#__PURE__*/React.createElement("svg", {
5
+ return /*#__PURE__*/React.createElement(Icon, { ...props
6
+ }, /*#__PURE__*/React.createElement("svg", {
6
7
  viewBox: "0 0 29 29",
7
8
  fill: "none",
8
9
  xmlns: "http://www.w3.org/2000/svg"
@@ -2,7 +2,8 @@
2
2
  import React from 'react';
3
3
  import Icon from '@zohodesk/icon/es/Icon/Icon';
4
4
  export default function IconComponent(props) {
5
- return /*#__PURE__*/React.createElement(Icon, props, /*#__PURE__*/React.createElement("svg", {
5
+ return /*#__PURE__*/React.createElement(Icon, { ...props
6
+ }, /*#__PURE__*/React.createElement("svg", {
6
7
  id: "article",
7
8
  viewBox: "0 0 32 32"
8
9
  }, " ", /*#__PURE__*/React.createElement("path", {
@@ -2,7 +2,8 @@
2
2
  import React from 'react';
3
3
  import Icon from '@zohodesk/icon/es/Icon/Icon';
4
4
  export default function IconComponent(props) {
5
- return /*#__PURE__*/React.createElement(Icon, props, /*#__PURE__*/React.createElement("svg", {
5
+ return /*#__PURE__*/React.createElement(Icon, { ...props
6
+ }, /*#__PURE__*/React.createElement("svg", {
6
7
  id: "reply",
7
8
  viewBox: "0 0 40 40"
8
9
  }, " ", /*#__PURE__*/React.createElement("path", {
@@ -1,3 +1,3 @@
1
- export { default as AlertTriangle } from './AlertTriangle';
2
- export { default as Article } from './Article';
3
- export { default as Reply } from './Reply';
1
+ export { default as AlertTriangle } from "./AlertTriangle";
2
+ export { default as Article } from "./Article";
3
+ export { default as Reply } from "./Reply";
@@ -2,7 +2,8 @@
2
2
  import React from 'react';
3
3
  import Icon from '@zohodesk/icon/es/Icon/Icon';
4
4
  export default function IconComponent(props) {
5
- return /*#__PURE__*/React.createElement(Icon, props, /*#__PURE__*/React.createElement("svg", {
5
+ return /*#__PURE__*/React.createElement(Icon, { ...props
6
+ }, /*#__PURE__*/React.createElement("svg", {
6
7
  id: "IM_clock",
7
8
  viewBox: "0 0 64 64"
8
9
  }, " ", /*#__PURE__*/React.createElement("path", {
@@ -2,7 +2,8 @@
2
2
  import React from 'react';
3
3
  import Icon from '@zohodesk/icon/es/Icon/Icon';
4
4
  export default function IconComponent(props) {
5
- return /*#__PURE__*/React.createElement(Icon, props, /*#__PURE__*/React.createElement("svg", {
5
+ return /*#__PURE__*/React.createElement(Icon, { ...props
6
+ }, /*#__PURE__*/React.createElement("svg", {
6
7
  id: "IM_doubleTick",
7
8
  viewBox: "0 0 64 64"
8
9
  }, " ", /*#__PURE__*/React.createElement("polygon", {
@@ -2,7 +2,8 @@
2
2
  import React from 'react';
3
3
  import Icon from '@zohodesk/icon/es/Icon/Icon';
4
4
  export default function IconComponent(props) {
5
- return /*#__PURE__*/React.createElement(Icon, props, /*#__PURE__*/React.createElement("svg", {
5
+ return /*#__PURE__*/React.createElement(Icon, { ...props
6
+ }, /*#__PURE__*/React.createElement("svg", {
6
7
  id: "IM_failed",
7
8
  viewBox: "0 0 64 64"
8
9
  }, " ", /*#__PURE__*/React.createElement("path", {
@@ -2,7 +2,8 @@
2
2
  import React from 'react';
3
3
  import Icon from '@zohodesk/icon/es/Icon/Icon';
4
4
  export default function IconComponent(props) {
5
- return /*#__PURE__*/React.createElement(Icon, props, /*#__PURE__*/React.createElement("svg", {
5
+ return /*#__PURE__*/React.createElement(Icon, { ...props
6
+ }, /*#__PURE__*/React.createElement("svg", {
6
7
  id: "IM_tick",
7
8
  viewBox: "0 0 64 64"
8
9
  }, " ", /*#__PURE__*/React.createElement("polygon", {