@zohoim/chat-components 0.0.13 → 0.0.14

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 (358) hide show
  1. package/es/ActionIcon/ActionIcon.js +57 -35
  2. package/es/ActionIcon/css/ActionIcon.module.css +4 -23
  3. package/es/ActionIcon/props/defaultProps.js +4 -2
  4. package/es/ActionIcon/props/propTypes.js +10 -3
  5. package/es/ActionIconWrapper/ActionIconWrapper.js +49 -0
  6. package/es/ActionIconWrapper/css/ActionIconWrapper.module.css +27 -0
  7. package/es/ActionIconWrapper/index.js +1 -0
  8. package/es/{MediaControls → ActionIconWrapper}/props/defaultProps.js +3 -3
  9. package/es/ActionIconWrapper/props/propTypes.js +11 -0
  10. package/es/AttachmentBubble/AttachmentBubble.js +28 -28
  11. package/es/AttachmentBubble/css/AttachmentBubble.module.css +16 -15
  12. package/es/AttachmentBubble/props/defaultProps.js +2 -2
  13. package/es/AttachmentBubble/props/propTypes.js +10 -5
  14. package/es/AttachmentBubbleInfo/AttachmentBubbleInfo.js +7 -19
  15. package/es/AttachmentBubbleInfo/css/AttachmentBubbleInfo.module.css +20 -16
  16. package/es/AttachmentBubbleInfo/props/defaultProps.js +1 -1
  17. package/es/AttachmentBubbleInfo/props/propTypes.js +3 -3
  18. package/es/AttachmentIcon/AttachmentIcon.js +47 -0
  19. package/es/AttachmentIcon/css/AttachmentIcon.module.css +4 -0
  20. package/es/AttachmentIcon/index.js +1 -0
  21. package/es/{im/IMAttachmentIcon → AttachmentIcon}/props/defaultProps.js +3 -3
  22. package/es/AttachmentIcon/props/propTypes.js +11 -0
  23. package/es/{im/IMAttachmentIcon/IMAttachmentIcon.js → AttachmentIcon/utils/getAttachmentIconComponent.js} +10 -40
  24. package/es/Audio/Audio.js +14 -36
  25. package/es/Audio/css/Audio.module.css +3 -3
  26. package/es/Audio/props/defaultProps.js +2 -3
  27. package/es/Audio/props/propTypes.js +3 -4
  28. package/es/AudioBubble/AudioBubble.js +25 -42
  29. package/es/AudioBubble/props/defaultProps.js +2 -4
  30. package/es/AudioBubble/props/propTypes.js +10 -7
  31. package/es/Fonts/puviFont.module.css +55 -54
  32. package/es/ImageBubble/ImageBubble.js +20 -20
  33. package/es/ImageBubble/css/ImageBubble.module.css +8 -11
  34. package/es/ImageBubble/props/defaultProps.js +1 -1
  35. package/es/ImageBubble/props/propTypes.js +5 -3
  36. package/es/InfoBubble/InfoBubble.js +6 -8
  37. package/es/InfoBubble/props/defaultProps.js +1 -1
  38. package/es/LazyLoadImage/LazyLoadImage.js +6 -16
  39. package/es/LazyLoadImage/css/LazyLoadImage.module.css +1 -0
  40. package/es/LazyLoadImage/props/defaultProps.js +1 -1
  41. package/es/LazyLoadImage/props/propTypes.js +3 -3
  42. package/es/LocationBubble/LocationBubble.js +15 -33
  43. package/es/LocationBubble/css/LocationBubble.module.css +11 -11
  44. package/es/LocationBubble/props/defaultProps.js +1 -1
  45. package/es/LocationBubble/props/propTypes.js +2 -2
  46. package/es/MediaBubbleWrapper/MediaBubbleWrapper.js +59 -0
  47. package/es/MediaBubbleWrapper/css/MediaBubbleWrapper.module.css +3 -0
  48. package/es/MediaBubbleWrapper/index.js +1 -0
  49. package/es/MediaBubbleWrapper/props/defaultProps.js +7 -0
  50. package/es/MediaBubbleWrapper/props/propTypes.js +16 -0
  51. package/es/Message/Message.js +59 -37
  52. package/es/Message/props/defaultProps.js +3 -3
  53. package/es/Message/props/propTypes.js +17 -38
  54. package/es/MessageAction/MessageAction.js +31 -18
  55. package/es/MessageAction/props/defaultProps.js +4 -4
  56. package/es/MessageAction/props/propTypes.js +11 -8
  57. package/es/MessageActions/MessageActions.js +54 -96
  58. package/es/MessageActions/css/MessageActions.module.css +2 -9
  59. package/es/MessageActions/props/defaultProps.js +2 -4
  60. package/es/MessageActions/props/propTypes.js +13 -19
  61. package/es/MessageActionsMore/MessageActionsMore.js +43 -35
  62. package/es/MessageActionsMore/css/MessageActionsMore.module.css +8 -5
  63. package/es/MessageActionsMore/props/defaultProps.js +3 -2
  64. package/es/MessageActionsMore/props/propTypes.js +3 -2
  65. package/es/MessageActionsWrapper/MessageActionsWrapper.js +36 -44
  66. package/es/MessageActionsWrapper/css/MessageActionsWrapper.module.css +1 -1
  67. package/es/MessageActionsWrapper/props/defaultProps.js +4 -5
  68. package/es/MessageActionsWrapper/props/propTypes.js +7 -4
  69. package/es/MessageAvatar/MessageAvatar.js +11 -19
  70. package/es/MessageAvatar/css/MessageAvatar.module.css +3 -3
  71. package/es/MessageAvatar/props/defaultProps.js +2 -6
  72. package/es/MessageAvatar/props/propTypes.js +5 -5
  73. package/es/MessageBox/MessageBox.js +24 -25
  74. package/es/MessageBox/css/MessageBox.module.css +12 -14
  75. package/es/MessageBox/css/cssJSLogic.js +1 -21
  76. package/es/MessageBox/props/defaultProps.js +1 -3
  77. package/es/MessageBox/props/propTypes.js +8 -7
  78. package/es/MessageBubble/MessageBubble.js +61 -38
  79. package/es/MessageBubble/css/MessageBubble.module.css +11 -8
  80. package/es/MessageBubble/css/cssJSLogic.js +10 -26
  81. package/es/MessageBubble/props/defaultProps.js +1 -1
  82. package/es/MessageBubble/props/propTypes.js +7 -7
  83. package/es/MessageStatus/MessageStatus.js +11 -11
  84. package/es/MessageStatus/css/MessageStatus.module.css +1 -1
  85. package/es/MessageStatus/css/cssJSLogic.js +13 -9
  86. package/es/MessageStatus/props/defaultProps.js +1 -1
  87. package/es/MessageStatus/props/propTypes.js +4 -14
  88. package/es/MoreActionItem/MoreActionItem.js +21 -33
  89. package/es/MoreActionItem/css/MoreActionItem.module.css +5 -11
  90. package/es/MoreActionItem/props/defaultProps.js +1 -5
  91. package/es/MoreActionItem/props/propTypes.js +6 -5
  92. package/es/ReplyBubble/ReplyBubble.js +59 -28
  93. package/es/ReplyBubble/css/ReplyBubble.module.css +17 -0
  94. package/es/ReplyBubble/props/defaultProps.js +3 -4
  95. package/es/ReplyBubble/props/propTypes.js +15 -8
  96. package/es/ReplyBubbleContent/ReplyBubbleContent.js +11 -22
  97. package/es/ReplyBubbleContent/css/ReplyBubbleContent.module.css +38 -38
  98. package/es/ReplyBubbleContent/props/defaultProps.js +1 -1
  99. package/es/ReplyBubbleContent/props/propTypes.js +4 -4
  100. package/es/ReplyBubbleHeader/ReplyBubbleHeader.js +25 -31
  101. package/es/ReplyBubbleHeader/css/ReplyBubbleHeader.module.css +4 -7
  102. package/es/ReplyBubbleHeader/props/defaultProps.js +2 -4
  103. package/es/ReplyBubbleHeader/props/propTypes.js +3 -2
  104. package/es/TextBubble/TextBubble.js +11 -29
  105. package/es/TextBubble/css/TextBubble.module.css +13 -9
  106. package/es/TextBubble/props/defaultProps.js +2 -5
  107. package/es/TextBubble/props/propTypes.js +3 -4
  108. package/es/Theme/{DeskAssets.js → ThemeAssets.js} +10 -6
  109. package/es/Theme/ThemeWrapper.js +54 -57
  110. package/es/Theme/{ToolttipWrapper.js → TooltipWrapper.js} +29 -25
  111. package/es/Theme/constants/index.js +1 -4
  112. package/es/Theme/crm/dark/blueFanTheme.js +5 -5
  113. package/es/Theme/crm/dark/blueTheme.js +5 -5
  114. package/es/Theme/crm/dark/commonColorVariable.js +5 -5
  115. package/es/Theme/crm/dark/darkBlueTheme.js +5 -5
  116. package/es/Theme/crm/dark/darkGreyTheme.js +5 -5
  117. package/es/Theme/crm/dark/greenTheme.js +5 -5
  118. package/es/Theme/crm/dark/orangeTheme.js +5 -5
  119. package/es/Theme/crm/dark/pinkTheme.js +5 -5
  120. package/es/Theme/crm/dark/tealTheme.js +5 -5
  121. package/es/Theme/crm/dark/whiteTheme.js +5 -5
  122. package/es/Theme/crm/light/blueFanTheme.js +5 -5
  123. package/es/Theme/crm/light/blueTheme.js +3 -3
  124. package/es/Theme/crm/light/commonColorVariable.js +3 -3
  125. package/es/Theme/crm/light/darkBlueTheme.js +5 -5
  126. package/es/Theme/crm/light/darkGreyTheme.js +5 -5
  127. package/es/Theme/crm/light/greenTheme.js +3 -3
  128. package/es/Theme/crm/light/orangeTheme.js +3 -3
  129. package/es/Theme/crm/light/pinkTheme.js +3 -3
  130. package/es/Theme/crm/light/tealTheme.js +3 -3
  131. package/es/Theme/crm/light/whiteTheme.js +5 -5
  132. package/es/Theme/crm/pureDark/blueFanTheme.js +5 -5
  133. package/es/Theme/crm/pureDark/blueTheme.js +5 -5
  134. package/es/Theme/crm/pureDark/commonColorVariable.js +3 -3
  135. package/es/Theme/crm/pureDark/darkBlueTheme.js +5 -5
  136. package/es/Theme/crm/pureDark/darkGreyTheme.js +5 -5
  137. package/es/Theme/crm/pureDark/greenTheme.js +5 -5
  138. package/es/Theme/crm/pureDark/orangeTheme.js +5 -5
  139. package/es/Theme/crm/pureDark/pinkTheme.js +5 -5
  140. package/es/Theme/crm/pureDark/tealTheme.js +5 -5
  141. package/es/Theme/crm/pureDark/whiteTheme.js +5 -5
  142. package/es/Theme/css/TooltipWrapper.module.css +2 -2
  143. package/es/Theme/props/defaultProps.js +2 -3
  144. package/es/Theme/props/propTypes.js +5 -6
  145. package/es/Theme/{desk/commonDeskColorVariable.js → themeVariables/commonThemeColorVariable.js} +2 -3
  146. package/es/Theme/{desk → themeVariables}/dark/blueTheme.js +11 -11
  147. package/es/Theme/{desk → themeVariables}/dark/commonColorVariable.js +1 -1
  148. package/es/Theme/{desk → themeVariables}/dark/greenTheme.js +7 -7
  149. package/es/Theme/{desk → themeVariables}/dark/orangeTheme.js +7 -7
  150. package/es/Theme/{desk → themeVariables}/dark/redTheme.js +7 -7
  151. package/es/Theme/{desk → themeVariables}/dark/yellowTheme.js +7 -7
  152. package/es/Theme/{desk → themeVariables}/light/blueTheme.js +7 -7
  153. package/es/Theme/{desk → themeVariables}/light/commonColorVariable.js +1 -1
  154. package/es/Theme/{desk → themeVariables}/light/greenTheme.js +7 -7
  155. package/es/Theme/{desk → themeVariables}/light/orangeTheme.js +6 -6
  156. package/es/Theme/{desk → themeVariables}/light/redTheme.js +6 -6
  157. package/es/Theme/{desk → themeVariables}/light/yellowTheme.js +7 -7
  158. package/es/Theme/{desk → themeVariables}/pureDark/blueTheme.js +7 -7
  159. package/es/Theme/{desk → themeVariables}/pureDark/commonColorVariable.js +1 -1
  160. package/es/Theme/{desk → themeVariables}/pureDark/greenTheme.js +7 -7
  161. package/es/Theme/{desk → themeVariables}/pureDark/orangeTheme.js +7 -7
  162. package/es/Theme/{desk → themeVariables}/pureDark/redTheme.js +7 -7
  163. package/es/Theme/{desk → themeVariables}/pureDark/yellowTheme.js +7 -7
  164. package/es/Theme/utils/combineConfigurations.js +17 -0
  165. package/es/Theme/utils/flatVariables.js +12 -0
  166. package/es/Theme/utils/getCustomizedCssVariables.js +19 -0
  167. package/es/Theme/utils/getThemeConfigurations.js +47 -175
  168. package/es/Theme/utils/getWrapperDivProps.js +12 -0
  169. package/es/Video/Video.js +13 -45
  170. package/es/Video/css/Video.module.css +2 -7
  171. package/es/Video/props/defaultProps.js +2 -3
  172. package/es/Video/props/propTypes.js +3 -4
  173. package/es/VideoBubble/VideoBubble.js +31 -35
  174. package/es/VideoBubble/css/VideoBubble.module.css +4 -4
  175. package/es/VideoBubble/props/defaultProps.js +2 -3
  176. package/es/VideoBubble/props/propTypes.js +11 -7
  177. package/es/icons/create-icon-components.js +30 -0
  178. package/es/icons/icon.template.js +9 -8
  179. package/es/icons/iconSrc/common/index.js +1 -2
  180. package/es/im/ArticleBubble/ArticleBubble.js +66 -0
  181. package/es/{ArticleBubble → im/ArticleBubble}/css/ArticleBubble.module.css +9 -10
  182. package/es/{ArticleBubble → im/ArticleBubble}/props/defaultProps.js +1 -1
  183. package/es/im/ArticleBubble/props/propTypes.js +13 -0
  184. package/es/im/IMAutoMessageInfo/IMAutoMessageInfo.js +10 -20
  185. package/es/im/IMAutoMessageInfo/css/IMAutoMessageInfo.module.css +2 -3
  186. package/es/im/IMAutoMessageInfo/props/defaultProps.js +1 -1
  187. package/es/im/IMAutoMessageInfo/props/propTypes.js +11 -9
  188. package/es/im/IMInfoBubble/IMInfoBubble.js +6 -8
  189. package/es/im/IMInfoBubble/props/defaultProps.js +1 -1
  190. package/es/im/IMIntegrationIcon/IMIntegrationIcon.js +31 -38
  191. package/es/im/IMIntegrationIcon/css/IMIntegrationIcon.module.css +5 -8
  192. package/es/im/IMIntegrationIcon/css/cssJSLogic.js +9 -13
  193. package/es/im/IMIntegrationIcon/index.js +1 -2
  194. package/es/im/IMIntegrationIcon/props/defaultProps.js +6 -4
  195. package/es/im/IMIntegrationIcon/props/propTypes.js +6 -17
  196. package/es/im/IMMessage/IMMessage.js +76 -91
  197. package/es/im/IMMessage/props/defaultProps.js +1 -10
  198. package/es/im/IMMessage/props/propTypes.js +49 -96
  199. package/es/im/IMMessageContent/IMMessageContent.js +74 -65
  200. package/es/im/IMMessageContent/css/IMMessageContent.module.css +1 -1
  201. package/es/im/IMMessageContent/props/defaultProps.js +2 -3
  202. package/es/im/IMMessageContent/props/propTypes.js +28 -23
  203. package/es/im/IMMessageMeta/IMMessageMeta.js +26 -21
  204. package/es/im/IMMessageMeta/css/IMMessageMeta.module.css +15 -4
  205. package/es/im/IMMessageMeta/css/cssJSLogic.js +11 -3
  206. package/es/im/IMMessageMeta/props/defaultProps.js +1 -1
  207. package/es/im/IMMessageMeta/props/propTypes.js +17 -12
  208. package/es/im/IMReplyBubble/IMReplyBubble.js +20 -59
  209. package/es/im/IMReplyBubble/props/defaultProps.js +2 -4
  210. package/es/im/IMReplyBubble/props/propTypes.js +16 -14
  211. package/es/im/IMTextBubble/IMTextBubble.js +15 -31
  212. package/es/im/IMTextBubble/props/defaultProps.js +3 -9
  213. package/es/im/IMTextBubble/props/propTypes.js +22 -8
  214. package/es/im/IMTicketLink/IMTicketLink.js +13 -11
  215. package/es/im/IMTicketLink/css/IMTicketLink.module.css +3 -4
  216. package/es/im/IMTicketLink/props/defaultProps.js +1 -1
  217. package/es/im/IMTicketLink/props/propTypes.js +4 -3
  218. package/es/im/index.js +1 -9
  219. package/es/index.js +4 -6
  220. package/package.json +32 -14
  221. package/es/ActionIcon/css/cssJSLogic.js +0 -10
  222. package/es/ArticleBubble/ArticleBubble.js +0 -70
  223. package/es/ArticleBubble/css/cssJSLogic.js +0 -34
  224. package/es/ArticleBubble/props/propTypes.js +0 -10
  225. package/es/AttachmentBubble/css/cssJSLogic.js +0 -18
  226. package/es/AttachmentBubbleInfo/css/cssJSLogic.js +0 -18
  227. package/es/Audio/css/cssJSLogic.js +0 -14
  228. package/es/AudioBubble/css/AudioBubble.module.css +0 -3
  229. package/es/AudioBubble/css/cssJSLogic.js +0 -20
  230. package/es/ImageBubble/css/cssJSLogic.js +0 -22
  231. package/es/LazyLoadImage/css/cssJSLogic.js +0 -10
  232. package/es/LocationBubble/css/cssJSLogic.js +0 -30
  233. package/es/MediaControls/MediaControls.js +0 -59
  234. package/es/MediaControls/css/MediaControls.module.css +0 -1
  235. package/es/MediaControls/css/cssJSLogic.js +0 -22
  236. package/es/MediaControls/index.js +0 -1
  237. package/es/MediaControls/props/propTypes.js +0 -11
  238. package/es/Message/css/Message.module.css +0 -0
  239. package/es/Message/css/cssJSLogic.js +0 -10
  240. package/es/MessageAction/css/MessageAction.module.css +0 -0
  241. package/es/MessageAction/css/cssJSLogic.js +0 -0
  242. package/es/MessageActions/css/cssJSLogic.js +0 -20
  243. package/es/MessageActionsMore/css/cssJSLogic.js +0 -28
  244. package/es/MessageActionsWrapper/css/cssJSLogic.js +0 -10
  245. package/es/MessageActionsWrapper/props/propConstants.js +0 -7
  246. package/es/MessageAvatar/css/cssJSLogic.js +0 -18
  247. package/es/MessageBubble/props/propConstants.js +0 -6
  248. package/es/MoreActionItem/css/cssJSLogic.js +0 -27
  249. package/es/ReplyBubble/css/cssJSLogic.js +0 -10
  250. package/es/ReplyBubbleContent/css/cssJSLogic.js +0 -22
  251. package/es/ReplyBubbleHeader/css/cssJSLogic.js +0 -18
  252. package/es/TextBubble/css/cssJSLogic.js +0 -18
  253. package/es/Theme/css/cssJSLogic.js +0 -14
  254. package/es/Video/css/cssJSLogic.js +0 -14
  255. package/es/VideoBubble/css/cssJSLogic.js +0 -10
  256. package/es/icons/factory/actions/convertTicket.svg +0 -21
  257. package/es/icons/factory/common/quote.svg +0 -1
  258. package/es/icons/iconSrc/actions/ConvertTicket.js +0 -25
  259. package/es/icons/iconSrc/actions/index.js +0 -1
  260. package/es/icons/iconSrc/common/Quote.js +0 -17
  261. package/es/im/IMArticleBubble/IMArticleBubble.js +0 -54
  262. package/es/im/IMArticleBubble/css/IMArticleBubble.module.css +0 -0
  263. package/es/im/IMArticleBubble/css/cssJSLogic.js +0 -10
  264. package/es/im/IMArticleBubble/index.js +0 -1
  265. package/es/im/IMArticleBubble/props/defaultProps.js +0 -8
  266. package/es/im/IMArticleBubble/props/propTypes.js +0 -14
  267. package/es/im/IMAttachmentBubble/IMAttachmentBubble.js +0 -62
  268. package/es/im/IMAttachmentBubble/css/IMAttachmentBubble.module.css +0 -1
  269. package/es/im/IMAttachmentBubble/css/cssJSLogic.js +0 -10
  270. package/es/im/IMAttachmentBubble/index.js +0 -1
  271. package/es/im/IMAttachmentBubble/props/defaultProps.js +0 -10
  272. package/es/im/IMAttachmentBubble/props/propTypes.js +0 -16
  273. package/es/im/IMAttachmentIcon/css/IMAttachmentIcon.module.css +0 -4
  274. package/es/im/IMAttachmentIcon/css/cssJSLogic.js +0 -16
  275. package/es/im/IMAttachmentIcon/index.js +0 -1
  276. package/es/im/IMAttachmentIcon/props/propTypes.js +0 -26
  277. package/es/im/IMAudioBubble/IMAudioBubble.js +0 -62
  278. package/es/im/IMAudioBubble/css/IMAudioBubble.module.css +0 -8
  279. package/es/im/IMAudioBubble/css/cssJSLogic.js +0 -20
  280. package/es/im/IMAudioBubble/index.js +0 -1
  281. package/es/im/IMAudioBubble/props/defaultProps.js +0 -11
  282. package/es/im/IMAudioBubble/props/propTypes.js +0 -17
  283. package/es/im/IMAutoMessageInfo/css/cssJSLogic.js +0 -10
  284. package/es/im/IMDateTime/IMDateTime.js +0 -40
  285. package/es/im/IMDateTime/css/IMDateTime.module.css +0 -10
  286. package/es/im/IMDateTime/css/cssJSLogic.js +0 -10
  287. package/es/im/IMDateTime/index.js +0 -1
  288. package/es/im/IMDateTime/props/defaultProps.js +0 -6
  289. package/es/im/IMDateTime/props/propTypes.js +0 -6
  290. package/es/im/IMImageBubble/IMImageBubble.js +0 -50
  291. package/es/im/IMImageBubble/css/IMImageBubble.module.css +0 -0
  292. package/es/im/IMImageBubble/css/cssJSLogic.js +0 -10
  293. package/es/im/IMImageBubble/index.js +0 -1
  294. package/es/im/IMImageBubble/props/defaultProps.js +0 -7
  295. package/es/im/IMImageBubble/props/propTypes.js +0 -13
  296. package/es/im/IMIntegrationIcon/props/propConstants.js +0 -8
  297. package/es/im/IMLocationBubble/IMLocationBubble.js +0 -50
  298. package/es/im/IMLocationBubble/css/IMLocationBubble.module.css +0 -0
  299. package/es/im/IMLocationBubble/css/cssJSLogic.js +0 -10
  300. package/es/im/IMLocationBubble/index.js +0 -1
  301. package/es/im/IMLocationBubble/props/defaultProps.js +0 -8
  302. package/es/im/IMLocationBubble/props/propTypes.js +0 -11
  303. package/es/im/IMMessage/css/IMMessage.module.css +0 -0
  304. package/es/im/IMMessage/css/cssJSLogic.js +0 -10
  305. package/es/im/IMMessageAvatar/IMMessageAvatar.js +0 -45
  306. package/es/im/IMMessageAvatar/css/IMMessageAvatar.module.css +0 -0
  307. package/es/im/IMMessageAvatar/css/cssJSLogic.js +0 -0
  308. package/es/im/IMMessageAvatar/index.js +0 -1
  309. package/es/im/IMMessageAvatar/props/defaultProps.js +0 -12
  310. package/es/im/IMMessageAvatar/props/propTypes.js +0 -53
  311. package/es/im/IMMessageContent/css/cssJSLogic.js +0 -10
  312. package/es/im/IMReplyBubble/css/IMReplyBubble.module.css +0 -18
  313. package/es/im/IMReplyBubble/css/cssJSLogic.js +0 -10
  314. package/es/im/IMTextBubble/css/IMTextBubble.module.css +0 -1
  315. package/es/im/IMTextBubble/css/cssJSLogic.js +0 -10
  316. package/es/im/IMVideoBubble/IMVideoBubble.js +0 -61
  317. package/es/im/IMVideoBubble/css/IMVideoBubble.module.css +0 -1
  318. package/es/im/IMVideoBubble/css/cssJSLogic.js +0 -10
  319. package/es/im/IMVideoBubble/index.js +0 -1
  320. package/es/im/IMVideoBubble/props/defaultProps.js +0 -11
  321. package/es/im/IMVideoBubble/props/propTypes.js +0 -17
  322. package/es/unused/AvatarSpace/AvatarSpace.js +0 -40
  323. package/es/unused/AvatarSpace/css/AvatarSpace.module.css +0 -1
  324. package/es/unused/AvatarSpace/css/cssJSLogic.js +0 -15
  325. package/es/unused/AvatarSpace/index.js +0 -1
  326. package/es/unused/AvatarSpace/props/defaultProps.js +0 -10
  327. package/es/unused/AvatarSpace/props/propConstants.js +0 -7
  328. package/es/unused/AvatarSpace/props/propTypes.js +0 -8
  329. package/es/unused/MessageBoxFooter/MessageBoxFooter.js +0 -39
  330. package/es/unused/MessageBoxFooter/css/MessageBoxFooter.module.css +0 -3
  331. package/es/unused/MessageBoxFooter/css/cssJSLogic.js +0 -10
  332. package/es/unused/MessageBoxFooter/index.js +0 -1
  333. package/es/unused/MessageBoxFooter/props/defaultProps.js +0 -5
  334. package/es/unused/MessageBoxFooter/props/propTypes.js +0 -6
  335. package/es/unused/MessageBoxHeader/MessageBoxHeader.js +0 -7
  336. package/es/unused/MessageBoxHeader/css/MessageBoxHeader.module.css +0 -0
  337. package/es/unused/MessageBoxHeader/css/cssJsLogic.js +0 -0
  338. package/es/unused/MessageBoxHeader/index.js +0 -2
  339. package/es/unused/MessageBoxHeader/props/defaultProps.js +0 -0
  340. package/es/unused/MessageBoxHeader/props/propTypes.js +0 -0
  341. package/es/unused/MessageWrapper/MessageWrapper.js +0 -36
  342. package/es/unused/MessageWrapper/css/MessageWrapper.module.css +0 -0
  343. package/es/unused/MessageWrapper/css/cssJSLogic.js +0 -10
  344. package/es/unused/MessageWrapper/index.js +0 -1
  345. package/es/unused/MessageWrapper/props/defaultProps.js +0 -6
  346. package/es/unused/MessageWrapper/props/propTypes.js +0 -6
  347. package/es/unused/TextMessage/DefaultActions.js +0 -60
  348. package/es/unused/TextMessage/TextMessage.js +0 -67
  349. package/es/unused/TextMessage/TextMessage1.js +0 -66
  350. package/es/unused/TextMessage/css/TextMessage.module.css +0 -5
  351. package/es/unused/TextMessage/css/cssJSLogic.js +0 -0
  352. package/es/unused/TextMessage/index.js +0 -1
  353. package/es/unused/TextMessage/props/defaultProps.js +0 -4
  354. package/es/unused/TextMessage/props/propConstants.js +0 -3
  355. package/es/unused/TextMessage/props/propTypes.js +0 -17
  356. package/es/unused/darkTheme.js +0 -9
  357. package/es/unused/defaultTheme.js +0 -33
  358. /package/es/{ArticleBubble → im/ArticleBubble}/index.js +0 -0
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable camelcase */
2
- import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor, primaryBlue } from './commonColorVariable';
3
- import { imIntegrationIcon, messagetextColor } from '../commonDeskColorVariable';
2
+ import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryBlue } from './commonColorVariable';
3
+ import { imIntegrationIcon, messagetextColor } from '../commonThemeColorVariable';
4
4
  export default {
5
5
  library: 'chat_components',
6
6
  variables: {
@@ -16,8 +16,8 @@ export default {
16
16
  text_color: messagetextColor,
17
17
  failed_text_color: '#000'
18
18
  },
19
- actionIcon: {
20
- color: actionIconColor,
19
+ actionIconWrapper: {
20
+ color: actionIconWrapperColor,
21
21
  bg_color: '#2c3b4d',
22
22
  border_color: '#3f536b'
23
23
  },
@@ -35,10 +35,7 @@ export default {
35
35
  bg_color: '#232b38',
36
36
  border_color: '#2d3748'
37
37
  },
38
- imTicketLink: {
39
- color: '#479dff'
40
- },
41
- ReplyBubbleContent: {
38
+ replyBubbleContent: {
42
39
  bg_color: '#232b38',
43
40
  color: '#e2e4e6',
44
41
  border_color: '#2d3748',
@@ -57,12 +54,15 @@ export default {
57
54
  color: '#e2e4e6',
58
55
  border_color: '#2d3748'
59
56
  },
60
- iMDateTime: {
61
- color: '#a8b0bd'
62
- },
63
57
  textBubble: {
64
58
  see_more_color: primaryBlue,
65
59
  url_color: primaryBlue
60
+ },
61
+ imTicketLink: {
62
+ color: '#479dff'
63
+ },
64
+ imMessageMeta: {
65
+ timeColor: '#a8b0bd'
66
66
  }
67
67
  }
68
68
  };
@@ -1,6 +1,6 @@
1
1
  export const incomingBubbleBgColor = '#232b38';
2
2
  export const bubbleActiveBgColor = '#1b2e33';
3
- export const actionIconColor = '#e2e4e6';
3
+ export const actionIconWrapperColor = '#e2e4e6';
4
4
  export const messageStatusSendColor = '#61667a';
5
5
  export const messageStatusFailedColor = '#de3535';
6
6
  export const primaryBlue = '#479dff';
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable camelcase */
2
- import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor, primaryGreen } from './commonColorVariable';
3
- import { imIntegrationIcon, messagetextColor } from '../commonDeskColorVariable';
2
+ import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryGreen } from './commonColorVariable';
3
+ import { imIntegrationIcon, messagetextColor } from '../commonThemeColorVariable';
4
4
  export default {
5
5
  library: 'chat_components',
6
6
  variables: {
@@ -15,8 +15,8 @@ export default {
15
15
  failed_bg_color: '#362734',
16
16
  text_color: messagetextColor
17
17
  },
18
- actionIcon: {
19
- color: actionIconColor,
18
+ actionIconWrapper: {
19
+ color: actionIconWrapperColor,
20
20
  bg_color: '#26373b',
21
21
  border_color: '#2d4e42'
22
22
  },
@@ -37,7 +37,7 @@ export default {
37
37
  imTicketLink: {
38
38
  color: '#45a159'
39
39
  },
40
- ReplyBubbleContent: {
40
+ replyBubbleContent: {
41
41
  bg_color: 'hsl(191.43deg 21.65% 13.02%)',
42
42
  color: '#e2e4e6',
43
43
  border_color: '#2d3748',
@@ -56,8 +56,8 @@ export default {
56
56
  color: '#e2e4e6',
57
57
  border_color: '#2d3748'
58
58
  },
59
- iMDateTime: {
60
- color: '#a8b0bd'
59
+ imMessageMeta: {
60
+ timeColor: '#a8b0bd'
61
61
  },
62
62
  textBubble: {
63
63
  see_more_color: primaryGreen,
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable camelcase */
2
- import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor, primaryOrange } from './commonColorVariable';
3
- import { imIntegrationIcon, messagetextColor } from '../commonDeskColorVariable';
2
+ import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryOrange } from './commonColorVariable';
3
+ import { imIntegrationIcon, messagetextColor } from '../commonThemeColorVariable';
4
4
  export default {
5
5
  library: 'chat_components',
6
6
  variables: {
@@ -15,8 +15,8 @@ export default {
15
15
  failed_bg_color: '#362734',
16
16
  text_color: messagetextColor
17
17
  },
18
- actionIcon: {
19
- color: actionIconColor,
18
+ actionIconWrapper: {
19
+ color: actionIconWrapperColor,
20
20
  bg_color: '#323136',
21
21
  border_color: '#4f3c33'
22
22
  },
@@ -37,7 +37,7 @@ export default {
37
37
  imTicketLink: {
38
38
  color: '#ff801f'
39
39
  },
40
- ReplyBubbleContent: {
40
+ replyBubbleContent: {
41
41
  bg_color: '#232b38',
42
42
  color: '#e2e4e6',
43
43
  border_color: '#2d3748',
@@ -56,8 +56,8 @@ export default {
56
56
  color: '#e2e4e6',
57
57
  border_color: '#2d3748'
58
58
  },
59
- iMDateTime: {
60
- color: '#a8b0bd'
59
+ imMessageMeta: {
60
+ timeColor: '#a8b0bd'
61
61
  },
62
62
  textBubble: {
63
63
  see_more_color: primaryOrange,
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable camelcase */
2
- import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor, primaryRed } from './commonColorVariable';
3
- import { imIntegrationIcon, messagetextColor } from '../commonDeskColorVariable';
2
+ import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryRed } from './commonColorVariable';
3
+ import { imIntegrationIcon, messagetextColor } from '../commonThemeColorVariable';
4
4
  export default {
5
5
  library: 'chat_components',
6
6
  variables: {
@@ -15,8 +15,8 @@ export default {
15
15
  failed_bg_color: '#362734',
16
16
  text_color: messagetextColor
17
17
  },
18
- actionIcon: {
19
- color: actionIconColor,
18
+ actionIconWrapper: {
19
+ color: actionIconWrapperColor,
20
20
  bg_color: '#312d3a',
21
21
  border_color: '#4b323d'
22
22
  },
@@ -39,7 +39,7 @@ export default {
39
39
  imTicketLink: {
40
40
  color: '#e94f4f'
41
41
  },
42
- ReplyBubbleContent: {
42
+ replyBubbleContent: {
43
43
  // bg_color: "#232b38",
44
44
  bg_color: 'hsl(258.46deg 12.62% 16.2%)',
45
45
  color: '#e2e4e6',
@@ -65,8 +65,8 @@ export default {
65
65
  // border_color: "#2d3748",
66
66
  border_color: 'hsl(258.46deg 12.62% 23.2%)'
67
67
  },
68
- iMDateTime: {
69
- color: '#a8b0bd'
68
+ imMessageMeta: {
69
+ timeColor: '#a8b0bd'
70
70
  },
71
71
  textBubble: {
72
72
  see_more_color: primaryRed,
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable camelcase */
2
- import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor, primaryYellow } from './commonColorVariable';
3
- import { imIntegrationIcon, messagetextColor } from '../commonDeskColorVariable';
2
+ import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryYellow } from './commonColorVariable';
3
+ import { imIntegrationIcon, messagetextColor } from '../commonThemeColorVariable';
4
4
  export default {
5
5
  library: 'chat_components',
6
6
  variables: {
@@ -15,8 +15,8 @@ export default {
15
15
  failed_bg_color: '#362734',
16
16
  text_color: messagetextColor
17
17
  },
18
- actionIcon: {
19
- color: actionIconColor,
18
+ actionIconWrapper: {
19
+ color: actionIconWrapperColor,
20
20
  bg_color: '#303338',
21
21
  border_color: '#474137'
22
22
  },
@@ -37,7 +37,7 @@ export default {
37
37
  imTicketLink: {
38
38
  color: '#d79835'
39
39
  },
40
- ReplyBubbleContent: {
40
+ replyBubbleContent: {
41
41
  bg_color: '#232b38',
42
42
  color: '#e2e4e6',
43
43
  border_color: '#2d3748',
@@ -56,8 +56,8 @@ export default {
56
56
  color: '#e2e4e6',
57
57
  border_color: '#2d3748'
58
58
  },
59
- iMDateTime: {
60
- color: '#a8b0bd'
59
+ imMessageMeta: {
60
+ timeColor: '#a8b0bd'
61
61
  },
62
62
  textBubble: {
63
63
  see_more_color: primaryYellow,
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable camelcase */
2
- import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor, messagetextColor, primaryBlue, white } from './commonColorVariable';
3
- import { imIntegrationIcon } from '../commonDeskColorVariable';
2
+ import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, messagetextColor, primaryBlue, white } from './commonColorVariable';
3
+ import { imIntegrationIcon } from '../commonThemeColorVariable';
4
4
  export default {
5
5
  library: 'chat_components',
6
6
  variables: {
@@ -15,8 +15,8 @@ export default {
15
15
  failed_bg_color: '#fcebeb',
16
16
  text_color: messagetextColor
17
17
  },
18
- actionIcon: {
19
- color: actionIconColor,
18
+ actionIconWrapper: {
19
+ color: actionIconWrapperColor,
20
20
  bg_color: '#f1f7fe',
21
21
  border_color: '#b7d1f0'
22
22
  },
@@ -30,7 +30,7 @@ export default {
30
30
  bg_color: white,
31
31
  border_color: '#ebf0f5'
32
32
  },
33
- ReplyBubbleContent: {
33
+ replyBubbleContent: {
34
34
  bg_color: white,
35
35
  color: '#000',
36
36
  border_color: '#ebf0f5',
@@ -56,8 +56,8 @@ export default {
56
56
  see_more_color: primaryBlue,
57
57
  url_color: primaryBlue
58
58
  },
59
- iMDateTime: {
60
- color: '#5a616f'
59
+ imMessageMeta: {
60
+ timeColor: '#5a616f'
61
61
  }
62
62
  }
63
63
  };
@@ -1,6 +1,6 @@
1
1
  export const incomingBubbleBgColor = '#f1f4f9';
2
2
  export const bubbleActiveBgColor = '#fdffe3';
3
- export const actionIconColor = '#000';
3
+ export const actionIconWrapperColor = '#000';
4
4
  export const messageStatusSendColor = '#61667a';
5
5
  export const messageStatusFailedColor = '#de3535';
6
6
  export const messagetextColor = '#000';
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable camelcase */
2
- import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor, messagetextColor, primaryGreen, white } from './commonColorVariable';
3
- import { imIntegrationIcon } from '../commonDeskColorVariable';
2
+ import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, messagetextColor, primaryGreen, white } from './commonColorVariable';
3
+ import { imIntegrationIcon } from '../commonThemeColorVariable';
4
4
  export default {
5
5
  library: 'chat_components',
6
6
  variables: {
@@ -15,8 +15,8 @@ export default {
15
15
  failed_bg_color: '#fcebeb',
16
16
  text_color: messagetextColor
17
17
  },
18
- actionIcon: {
19
- color: actionIconColor,
18
+ actionIconWrapper: {
19
+ color: actionIconWrapperColor,
20
20
  bg_color: '#f2faf5',
21
21
  border_color: '#bee5c6'
22
22
  },
@@ -30,7 +30,7 @@ export default {
30
30
  bg_color: white,
31
31
  border_color: '#ebf0f5'
32
32
  },
33
- ReplyBubbleContent: {
33
+ replyBubbleContent: {
34
34
  bg_color: white,
35
35
  color: '#000',
36
36
  border_color: '#ebf0f5',
@@ -56,8 +56,8 @@ export default {
56
56
  see_more_color: primaryGreen,
57
57
  url_color: primaryGreen
58
58
  },
59
- iMDateTime: {
60
- color: '#5a616f'
59
+ imMessageMeta: {
60
+ timeColor: '#5a616f'
61
61
  }
62
62
  }
63
63
  };
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable camelcase */
2
- import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor, messagetextColor, primaryOrange, white } from './commonColorVariable';
2
+ import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, messagetextColor, primaryOrange, white } from './commonColorVariable';
3
3
  export default {
4
4
  library: 'chat_components',
5
5
  variables: {
@@ -14,8 +14,8 @@ export default {
14
14
  failed_bg_color: '#fcebeb',
15
15
  text_color: messagetextColor
16
16
  },
17
- actionIcon: {
18
- color: actionIconColor,
17
+ actionIconWrapper: {
18
+ color: actionIconWrapperColor,
19
19
  bg_color: '#fdf5ef',
20
20
  border_color: '#f7d6b9'
21
21
  },
@@ -28,7 +28,7 @@ export default {
28
28
  bg_color: white,
29
29
  border_color: '#ebf0f5'
30
30
  },
31
- ReplyBubbleContent: {
31
+ replyBubbleContent: {
32
32
  bg_color: white,
33
33
  color: '#000',
34
34
  border_color: '#ebf0f5',
@@ -54,8 +54,8 @@ export default {
54
54
  see_more_color: primaryOrange,
55
55
  url_color: primaryOrange
56
56
  },
57
- iMDateTime: {
58
- color: '#5a616f'
57
+ imMessageMeta: {
58
+ timeColor: '#5a616f'
59
59
  }
60
60
  }
61
61
  };
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable camelcase */
2
- import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor, messagetextColor, primaryRed, white } from './commonColorVariable';
2
+ import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, messagetextColor, primaryRed, white } from './commonColorVariable';
3
3
  export default {
4
4
  library: 'chat_components',
5
5
  variables: {
@@ -14,8 +14,8 @@ export default {
14
14
  failed_bg_color: '#fcebeb',
15
15
  text_color: messagetextColor
16
16
  },
17
- actionIcon: {
18
- color: actionIconColor,
17
+ actionIconWrapper: {
18
+ color: actionIconWrapperColor,
19
19
  bg_color: '#fdf3f3',
20
20
  border_color: '#f8d7d7'
21
21
  },
@@ -28,7 +28,7 @@ export default {
28
28
  bg_color: white,
29
29
  border_color: '#ebf0f5'
30
30
  },
31
- ReplyBubbleContent: {
31
+ replyBubbleContent: {
32
32
  bg_color: white,
33
33
  color: '#000',
34
34
  border_color: '#ebf0f5',
@@ -54,8 +54,8 @@ export default {
54
54
  see_more_color: primaryRed,
55
55
  url_color: primaryRed
56
56
  },
57
- iMDateTime: {
58
- color: '#5a616f'
57
+ imMessageMeta: {
58
+ timeColor: '#5a616f'
59
59
  }
60
60
  }
61
61
  };
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable camelcase */
2
- import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor, messagetextColor, primaryYellow, white } from './commonColorVariable';
3
- import { imIntegrationIcon } from '../commonDeskColorVariable';
2
+ import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, messagetextColor, primaryYellow, white } from './commonColorVariable';
3
+ import { imIntegrationIcon } from '../commonThemeColorVariable';
4
4
  export default {
5
5
  library: 'chat_components',
6
6
  variables: {
@@ -15,8 +15,8 @@ export default {
15
15
  failed_bg_color: '#fcebeb',
16
16
  text_color: messagetextColor
17
17
  },
18
- actionIcon: {
19
- color: actionIconColor,
18
+ actionIconWrapper: {
19
+ color: actionIconWrapperColor,
20
20
  bg_color: '#fdf8e9',
21
21
  border_color: '#f6e3a7'
22
22
  },
@@ -30,7 +30,7 @@ export default {
30
30
  bg_color: white,
31
31
  border_color: '#ebf0f5'
32
32
  },
33
- ReplyBubbleContent: {
33
+ replyBubbleContent: {
34
34
  bg_color: white,
35
35
  color: '#000',
36
36
  border_color: '#ebf0f5',
@@ -56,8 +56,8 @@ export default {
56
56
  see_more_color: primaryYellow,
57
57
  url_color: primaryYellow
58
58
  },
59
- iMDateTime: {
60
- color: '#5a616f'
59
+ imMessageMeta: {
60
+ timeColor: '#5a616f'
61
61
  }
62
62
  }
63
63
  };
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable camelcase */
2
- import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor, primaryBlue } from './commonColorVariable';
3
- import { imIntegrationIcon, messagetextColor } from '../commonDeskColorVariable';
2
+ import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryBlue } from './commonColorVariable';
3
+ import { imIntegrationIcon, messagetextColor } from '../commonThemeColorVariable';
4
4
  export default {
5
5
  library: 'chat_components',
6
6
  variables: {
@@ -15,8 +15,8 @@ export default {
15
15
  failed_bg_color: '#fcebeb',
16
16
  text_color: messagetextColor
17
17
  },
18
- actionIcon: {
19
- color: actionIconColor,
18
+ actionIconWrapper: {
19
+ color: actionIconWrapperColor,
20
20
  bg_color: '#252d37',
21
21
  border_color: '#2c4664'
22
22
  },
@@ -37,7 +37,7 @@ export default {
37
37
  imTicketLink: {
38
38
  color: '#479dff'
39
39
  },
40
- ReplyBubbleContent: {
40
+ replyBubbleContent: {
41
41
  bg_color: '#212121',
42
42
  color: '#e2e4e6',
43
43
  border_color: '#161515',
@@ -57,8 +57,8 @@ export default {
57
57
  color: '#e2e4e6',
58
58
  border_color: '#161515'
59
59
  },
60
- iMDateTime: {
61
- color: '#999'
60
+ imMessageMeta: {
61
+ timeColor: '#999'
62
62
  },
63
63
  textBubble: {
64
64
  see_more_color: primaryBlue,
@@ -1,7 +1,7 @@
1
1
  export const incomingBubbleBgColor = '#2e2e2e';
2
2
  export const outgoingBubbleBgColor = '#2e2e2e';
3
3
  export const bubbleActiveBgColor = '#202821';
4
- export const actionIconColor = '#e2e4e6';
4
+ export const actionIconWrapperColor = '#e2e4e6';
5
5
  export const messageStatusSendColor = '#61667a';
6
6
  export const messageStatusFailedColor = '#de3535';
7
7
  export const messagetextColor = '#e2e4e6';
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable camelcase */
2
- import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor, primaryGreen } from './commonColorVariable';
3
- import { imIntegrationIcon, messagetextColor } from '../commonDeskColorVariable';
2
+ import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryGreen } from './commonColorVariable';
3
+ import { imIntegrationIcon, messagetextColor } from '../commonThemeColorVariable';
4
4
  export default {
5
5
  library: 'chat_components',
6
6
  variables: {
@@ -15,8 +15,8 @@ export default {
15
15
  failed_bg_color: '#fcebeb',
16
16
  text_color: messagetextColor
17
17
  },
18
- actionIcon: {
19
- color: actionIconColor,
18
+ actionIconWrapper: {
19
+ color: actionIconWrapperColor,
20
20
  bg_color: '#252e27',
21
21
  border_color: '#2c4732'
22
22
  },
@@ -37,7 +37,7 @@ export default {
37
37
  imTicketLink: {
38
38
  color: '#45a159'
39
39
  },
40
- ReplyBubbleContent: {
40
+ replyBubbleContent: {
41
41
  bg_color: '#212121',
42
42
  color: '#e2e4e6',
43
43
  border_color: '#161515',
@@ -56,8 +56,8 @@ export default {
56
56
  color: '#e2e4e6',
57
57
  border_color: '#161515'
58
58
  },
59
- iMDateTime: {
60
- color: '#999'
59
+ imMessageMeta: {
60
+ timeColor: '#999'
61
61
  },
62
62
  textBubble: {
63
63
  see_more_color: primaryGreen,
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable camelcase */
2
- import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor, primaryOrange } from './commonColorVariable';
3
- import { imIntegrationIcon, messagetextColor } from '../commonDeskColorVariable';
2
+ import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryOrange } from './commonColorVariable';
3
+ import { imIntegrationIcon, messagetextColor } from '../commonThemeColorVariable';
4
4
  export default {
5
5
  library: 'chat_components',
6
6
  variables: {
@@ -15,8 +15,8 @@ export default {
15
15
  failed_bg_color: '#fcebeb',
16
16
  text_color: messagetextColor
17
17
  },
18
- actionIcon: {
19
- color: actionIconColor,
18
+ actionIconWrapper: {
19
+ color: actionIconWrapperColor,
20
20
  bg_color: '#312821',
21
21
  border_color: '#4d3421'
22
22
  },
@@ -37,7 +37,7 @@ export default {
37
37
  imTicketLink: {
38
38
  color: '#ff801f'
39
39
  },
40
- ReplyBubbleContent: {
40
+ replyBubbleContent: {
41
41
  bg_color: '#212121',
42
42
  color: '#e2e4e6',
43
43
  border_color: '#161515',
@@ -56,8 +56,8 @@ export default {
56
56
  color: '#e2e4e6',
57
57
  border_color: '#161515'
58
58
  },
59
- iMDateTime: {
60
- color: '#999'
59
+ imMessageMeta: {
60
+ timeColor: '#999'
61
61
  },
62
62
  textBubble: {
63
63
  see_more_color: primaryOrange,
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable camelcase */
2
- import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor, primaryRed } from './commonColorVariable';
3
- import { imIntegrationIcon, messagetextColor } from '../commonDeskColorVariable';
2
+ import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryRed } from './commonColorVariable';
3
+ import { imIntegrationIcon, messagetextColor } from '../commonThemeColorVariable';
4
4
  export default {
5
5
  library: 'chat_components',
6
6
  variables: {
@@ -15,8 +15,8 @@ export default {
15
15
  failed_bg_color: '#fcebeb',
16
16
  text_color: messagetextColor
17
17
  },
18
- actionIcon: {
19
- color: actionIconColor,
18
+ actionIconWrapper: {
19
+ color: actionIconWrapperColor,
20
20
  bg_color: '#2f2424',
21
21
  border_color: '#492A29'
22
22
  },
@@ -37,7 +37,7 @@ export default {
37
37
  imTicketLink: {
38
38
  color: '#e94f4f'
39
39
  },
40
- ReplyBubbleContent: {
40
+ replyBubbleContent: {
41
41
  bg_color: '#212121',
42
42
  color: '#e2e4e6',
43
43
  border_color: '#161515',
@@ -56,8 +56,8 @@ export default {
56
56
  color: '#e2e4e6',
57
57
  border_color: '#161515'
58
58
  },
59
- iMDateTime: {
60
- color: '#999'
59
+ imMessageMeta: {
60
+ timeColor: '#999'
61
61
  },
62
62
  textBubble: {
63
63
  see_more_color: primaryRed,
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable camelcase */
2
- import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, messageStatusSendColor, messageStatusFailedColor, actionIconColor, primaryYellow } from './commonColorVariable';
3
- import { imIntegrationIcon, messagetextColor } from '../commonDeskColorVariable';
2
+ import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, messageStatusSendColor, messageStatusFailedColor, actionIconWrapperColor, primaryYellow } from './commonColorVariable';
3
+ import { imIntegrationIcon, messagetextColor } from '../commonThemeColorVariable';
4
4
  export default {
5
5
  library: 'chat_components',
6
6
  variables: {
@@ -15,8 +15,8 @@ export default {
15
15
  failed_bg_color: '#362734',
16
16
  text_color: messagetextColor
17
17
  },
18
- actionIcon: {
19
- color: actionIconColor,
18
+ actionIconWrapper: {
19
+ color: actionIconWrapperColor,
20
20
  bg_color: '#2e2922',
21
21
  border_color: '#453925'
22
22
  },
@@ -37,7 +37,7 @@ export default {
37
37
  imTicketLink: {
38
38
  color: '#d79835'
39
39
  },
40
- ReplyBubbleContent: {
40
+ replyBubbleContent: {
41
41
  bg_color: '#212121',
42
42
  color: '#e2e4e6',
43
43
  border_color: '#161515',
@@ -56,8 +56,8 @@ export default {
56
56
  color: '#e2e4e6',
57
57
  border_color: '#161515'
58
58
  },
59
- iMDateTime: {
60
- color: '#999'
59
+ imMessageMeta: {
60
+ timeColor: '#999'
61
61
  },
62
62
  textBubble: {
63
63
  see_more_color: primaryYellow,
@@ -0,0 +1,17 @@
1
+ import flatVariables from './flatVariables';
2
+ export default function combineConfigurations(configurations) {
3
+ const configs = configurations.map(configuration => ({
4
+ library: configuration.library,
5
+ variables: flatVariables(configuration.variables)
6
+ }));
7
+ const mergeObject = configs.reduce((res, next) => {
8
+ if (!res[next.library]) {
9
+ res[next.library] = next;
10
+ return res;
11
+ }
12
+
13
+ Object.assign(res[next.library].variables, next.variables);
14
+ return res;
15
+ }, {});
16
+ return Object.keys(mergeObject).map(key => mergeObject[key]);
17
+ }
@@ -0,0 +1,12 @@
1
+ export default function flatVariables(obj) {
2
+ let jointStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '_';
3
+ return Object.keys(obj).reduce((res, component) => Object.assign(res, Object.keys(obj[component]).reduce((res, variable) => {
4
+ if (component === '') {
5
+ res[`${variable}`] = obj[component][variable];
6
+ } else {
7
+ res[`${component}${jointStr}${variable}`] = obj[component][variable];
8
+ }
9
+
10
+ return res;
11
+ }, {})), {});
12
+ }