@tencentcloud/chat-uikit-react 2.2.5 → 2.2.7

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 (405) hide show
  1. package/.eslintrc.js +16 -12
  2. package/.lintstagedrc.json +1 -1
  3. package/CHANGELOG.md +18 -0
  4. package/dist/cjs/assets/fonts/iconfont.ttf +0 -0
  5. package/dist/cjs/assets/fonts/iconfont.woff +0 -0
  6. package/dist/cjs/assets/fonts/iconfont.woff2 +0 -0
  7. package/dist/cjs/components/Avatar/Avatar.d.ts +4 -4
  8. package/dist/cjs/components/Checkbox/index.d.ts +2 -2
  9. package/dist/cjs/components/ConversationCreate/ConversationCreatGroupDetail.js +1 -1
  10. package/dist/cjs/components/ConversationCreate/ConversationCreate.js +1 -1
  11. package/dist/cjs/components/ConversationCreate/ConversationCreateUserSelectList.js +1 -1
  12. package/dist/cjs/components/ConversationCreate/hooks/useConversationCreate.js +1 -1
  13. package/dist/cjs/components/ConversationPreview/ConversationListContainer.d.ts +2 -2
  14. package/dist/cjs/components/ConversationPreview/ConversationPreview.d.ts +8 -8
  15. package/dist/cjs/components/ConversationPreview/ConversationPreview.js +1 -1
  16. package/dist/cjs/components/ConversationPreview/ConversationPreviewContent.d.ts +2 -2
  17. package/dist/cjs/components/ConversationPreview/ConversationPreviewContent.js +1 -1
  18. package/dist/cjs/components/ConversationPreview/utils.js +1 -1
  19. package/dist/cjs/components/ConversationSearch/ConversationSearchResult.d.ts +3 -3
  20. package/dist/cjs/components/ConversationSearch/ConversationSearchResult.js +1 -1
  21. package/dist/cjs/components/Icon/Icon.d.ts +3 -3
  22. package/dist/cjs/components/Icon/config.js +1 -1
  23. package/dist/cjs/components/Icon/images/video-call.svg.js +1 -0
  24. package/dist/cjs/components/Icon/images/voice-call.svg.js +1 -0
  25. package/dist/cjs/components/Icon/type.d.ts +3 -1
  26. package/dist/cjs/components/Icon/type.js +1 -1
  27. package/dist/cjs/components/InfiniteScrollPaginator/InfiniteScroll.d.ts +4 -4
  28. package/dist/cjs/components/Input/Input.d.ts +4 -4
  29. package/dist/cjs/components/Model/index.d.ts +2 -2
  30. package/dist/cjs/components/Plugins/index.d.ts +4 -4
  31. package/dist/cjs/components/Popup/index.d.ts +2 -2
  32. package/dist/cjs/components/Switch/Switch.d.ts +2 -2
  33. package/dist/cjs/components/TUIChat/TUIChat.d.ts +15 -14
  34. package/dist/cjs/components/TUIChat/TUIChat.js +1 -1
  35. package/dist/cjs/components/TUIChat/TUIChatState.js +1 -1
  36. package/dist/cjs/components/TUIChat/index.js +1 -0
  37. package/dist/cjs/components/TUIChat/server.js +1 -0
  38. package/dist/cjs/components/TUIChat/utils.js +1 -0
  39. package/dist/cjs/components/TUIChatHeader/TUIChatHeader.d.ts +6 -5
  40. package/dist/cjs/components/TUIChatHeader/TUIChatHeader.js +1 -1
  41. package/dist/cjs/components/TUIChatHeader/TUIChatHeaderDefault.d.ts +6 -5
  42. package/dist/cjs/components/TUIChatHeader/TUIChatHeaderDefault.js +1 -1
  43. package/dist/cjs/components/TUIContact/TUIContact.d.ts +3 -3
  44. package/dist/cjs/components/TUIContact/TUIContact.js +1 -1
  45. package/dist/cjs/components/TUIContact/TUIContactInfo/TUIContactInfo.d.ts +3 -3
  46. package/dist/cjs/components/TUIContact/TUIContactInfo/TUIContactInfo.js +1 -1
  47. package/dist/cjs/components/TUIContact/TUIContactInfo/basicInfo.js +1 -1
  48. package/dist/cjs/components/TUIContact/TUIContactInfo/blockInfo.js +1 -1
  49. package/dist/cjs/components/TUIContact/TUIContactInfo/friendApplication.js +1 -1
  50. package/dist/cjs/components/TUIContact/TUIContactInfo/friendInfo.js +1 -1
  51. package/dist/cjs/components/TUIContact/TUIContactInfo/groupInfo.js +1 -1
  52. package/dist/cjs/components/TUIContact/TUIContactInfo/hooks/useContactInfo.js +1 -1
  53. package/dist/cjs/components/TUIContact/TUIContactList/TUIContactList.d.ts +3 -3
  54. package/dist/cjs/components/TUIContact/TUIContactList/TUIContactList.js +1 -1
  55. package/dist/cjs/components/TUIContact/hooks/useTUIContact.js +1 -1
  56. package/dist/cjs/components/TUIContactSearch/TUIContactSearch.js +1 -1
  57. package/dist/cjs/components/TUIContactSearch/hooks/useContactSearch.js +1 -1
  58. package/dist/cjs/components/TUIConversation/TUIConversation.d.ts +2 -2
  59. package/dist/cjs/components/TUIConversationList/TUIConversationList.d.ts +6 -6
  60. package/dist/cjs/components/TUIConversationList/TUIConversationList.js +1 -1
  61. package/dist/cjs/components/TUIConversationList/hooks/useConversationUpdate.js +1 -1
  62. package/dist/cjs/components/TUIManage/TUIManage.d.ts +2 -2
  63. package/dist/cjs/components/TUIManage/TUIManage.js +1 -1
  64. package/dist/cjs/components/TUIMessage/MessageAudio.js +1 -1
  65. package/dist/cjs/components/TUIMessage/MessageAvatar.js +1 -1
  66. package/dist/cjs/components/TUIMessage/MessageBubble.js +1 -1
  67. package/dist/cjs/components/TUIMessage/MessageContext.d.ts +2 -2
  68. package/dist/cjs/components/TUIMessage/MessageContext.js +1 -1
  69. package/dist/cjs/components/TUIMessage/MessageCustom.js +1 -1
  70. package/dist/cjs/components/TUIMessage/MessageName.js +1 -1
  71. package/dist/cjs/components/TUIMessage/MessagePlugins.d.ts +4 -4
  72. package/dist/cjs/components/TUIMessage/MessagePlugins.js +1 -1
  73. package/dist/cjs/components/TUIMessage/MessageProgress.js +1 -1
  74. package/dist/cjs/components/TUIMessage/MessageRevoke.js +1 -1
  75. package/dist/cjs/components/TUIMessage/MessageStatus.js +1 -1
  76. package/dist/cjs/components/TUIMessage/MessageSystem.js +1 -1
  77. package/dist/cjs/components/TUIMessage/MessageText.js +1 -1
  78. package/dist/cjs/components/TUIMessage/MessageTip.js +1 -1
  79. package/dist/cjs/components/TUIMessage/TUIMessage.d.ts +19 -19
  80. package/dist/cjs/components/TUIMessage/TUIMessage.js +1 -1
  81. package/dist/cjs/components/TUIMessage/TUIMessageDefault.js +1 -1
  82. package/dist/cjs/components/TUIMessage/hooks/useMessageHandler.js +1 -1
  83. package/dist/cjs/components/TUIMessage/hooks/useMessageReply.js +1 -1
  84. package/dist/cjs/components/TUIMessage/utils/index.js +1 -1
  85. package/dist/cjs/components/TUIMessageInput/InputPluginsDefalut.d.ts +2 -2
  86. package/dist/cjs/components/TUIMessageInput/InputPluginsDefalut.js +1 -1
  87. package/dist/cjs/components/TUIMessageInput/InputQuoteDefalut.js +1 -1
  88. package/dist/cjs/components/TUIMessageInput/TUIForward.js +1 -1
  89. package/dist/cjs/components/TUIMessageInput/TUIMessageInput.d.ts +7 -7
  90. package/dist/cjs/components/TUIMessageInput/TUIMessageInput.js +1 -1
  91. package/dist/cjs/components/TUIMessageInput/TUIMessageInputDefault.d.ts +2 -2
  92. package/dist/cjs/components/TUIMessageInput/TUIMessageInputDefault.js +1 -1
  93. package/dist/cjs/components/TUIMessageInput/hooks/useHandleForwardMessage.js +1 -1
  94. package/dist/cjs/components/TUIMessageInput/hooks/useHandleQuoteMessage.js +1 -1
  95. package/dist/cjs/components/TUIMessageInput/hooks/useMessageInputText.js +1 -1
  96. package/dist/cjs/components/TUIMessageInput/hooks/useUploadPicker.js +1 -1
  97. package/dist/cjs/components/TUIMessageList/TUIMessageList.d.ts +2 -2
  98. package/dist/cjs/components/TUIMessageList/TUIMessageList.js +1 -1
  99. package/dist/cjs/components/TUIMessageList/hooks/useMessageListElement.js +1 -1
  100. package/dist/cjs/components/TUIProfile/TUIProfile.d.ts +3 -3
  101. package/dist/cjs/components/TUIProfile/TUIProfile.js +1 -1
  102. package/dist/cjs/components/TUIProfile/TUIProfileDefault.d.ts +2 -2
  103. package/dist/cjs/components/TUIProfile/TUIProfileDefault.js +1 -1
  104. package/dist/cjs/components/Toast/index.d.ts +2 -2
  105. package/dist/cjs/components/{untils.js → utils.js} +1 -1
  106. package/dist/cjs/context/ComponentContext.d.ts +12 -12
  107. package/dist/cjs/context/LanguageContext.js +1 -0
  108. package/dist/cjs/context/TUIChatActionContext.d.ts +5 -4
  109. package/dist/cjs/context/TUIChatStateContext.d.ts +5 -5
  110. package/dist/cjs/context/TUIContactContext.d.ts +4 -4
  111. package/dist/cjs/context/TUIConversationContext.js +1 -1
  112. package/dist/cjs/context/TUIMessageContext.d.ts +17 -17
  113. package/dist/cjs/context/TUIMessageInputContext.d.ts +4 -4
  114. package/dist/cjs/context/ThemeContext.js +1 -0
  115. package/dist/cjs/context/UIKitContext.d.ts +25 -0
  116. package/dist/cjs/context/UIKitContext.js +1 -0
  117. package/dist/cjs/context/UIManagerContext.d.ts +46 -0
  118. package/dist/cjs/context/UIManagerContext.js +1 -0
  119. package/dist/cjs/hooks/useConversation.d.ts +2 -2
  120. package/dist/cjs/index.css +1 -2
  121. package/dist/cjs/index.d.css +1345 -1547
  122. package/dist/cjs/index.d.ts +2 -4
  123. package/dist/cjs/index.js +1 -1
  124. package/dist/cjs/locales/en-US/index.js +1 -1
  125. package/dist/cjs/locales/index.js +1 -1
  126. package/dist/cjs/locales/zh-CN/index.js +1 -1
  127. package/dist/cjs/locales/zh-TW/TUIChat.js +1 -0
  128. package/dist/cjs/locales/zh-TW/TUIContact.js +1 -0
  129. package/dist/cjs/locales/zh-TW/TUIConversation.js +1 -0
  130. package/dist/cjs/locales/zh-TW/TUIProfile.js +1 -0
  131. package/dist/cjs/locales/zh-TW/index.js +1 -0
  132. package/dist/esm/assets/fonts/iconfont.ttf +0 -0
  133. package/dist/esm/assets/fonts/iconfont.woff +0 -0
  134. package/dist/esm/assets/fonts/iconfont.woff2 +0 -0
  135. package/dist/esm/components/Avatar/Avatar.d.ts +4 -4
  136. package/dist/esm/components/Checkbox/index.d.ts +2 -2
  137. package/dist/esm/components/ConversationCreate/ConversationCreatGroupDetail.js +1 -1
  138. package/dist/esm/components/ConversationCreate/ConversationCreate.js +1 -1
  139. package/dist/esm/components/ConversationCreate/ConversationCreateUserSelectList.js +1 -1
  140. package/dist/esm/components/ConversationCreate/hooks/useConversationCreate.js +1 -1
  141. package/dist/esm/components/ConversationPreview/ConversationListContainer.d.ts +2 -2
  142. package/dist/esm/components/ConversationPreview/ConversationPreview.d.ts +8 -8
  143. package/dist/esm/components/ConversationPreview/ConversationPreview.js +1 -1
  144. package/dist/esm/components/ConversationPreview/ConversationPreviewContent.d.ts +2 -2
  145. package/dist/esm/components/ConversationPreview/ConversationPreviewContent.js +1 -1
  146. package/dist/esm/components/ConversationPreview/utils.js +1 -1
  147. package/dist/esm/components/ConversationSearch/ConversationSearchResult.d.ts +3 -3
  148. package/dist/esm/components/ConversationSearch/ConversationSearchResult.js +1 -1
  149. package/dist/esm/components/Icon/Icon.d.ts +3 -3
  150. package/dist/esm/components/Icon/config.js +1 -1
  151. package/dist/esm/components/Icon/images/video-call.svg.js +1 -0
  152. package/dist/esm/components/Icon/images/voice-call.svg.js +1 -0
  153. package/dist/esm/components/Icon/type.d.ts +3 -1
  154. package/dist/esm/components/Icon/type.js +1 -1
  155. package/dist/esm/components/InfiniteScrollPaginator/InfiniteScroll.d.ts +4 -4
  156. package/dist/esm/components/Input/Input.d.ts +4 -4
  157. package/dist/esm/components/Model/index.d.ts +2 -2
  158. package/dist/esm/components/Plugins/index.d.ts +4 -4
  159. package/dist/esm/components/Popup/index.d.ts +2 -2
  160. package/dist/esm/components/Switch/Switch.d.ts +2 -2
  161. package/dist/esm/components/TUIChat/TUIChat.d.ts +15 -14
  162. package/dist/esm/components/TUIChat/TUIChat.js +1 -1
  163. package/dist/esm/components/TUIChat/TUIChatState.js +1 -1
  164. package/dist/esm/components/TUIChat/index.js +1 -0
  165. package/dist/esm/components/TUIChat/server.js +1 -0
  166. package/dist/esm/components/TUIChat/utils.js +1 -0
  167. package/dist/esm/components/TUIChatHeader/TUIChatHeader.d.ts +6 -5
  168. package/dist/esm/components/TUIChatHeader/TUIChatHeader.js +1 -1
  169. package/dist/esm/components/TUIChatHeader/TUIChatHeaderDefault.d.ts +6 -5
  170. package/dist/esm/components/TUIChatHeader/TUIChatHeaderDefault.js +1 -1
  171. package/dist/esm/components/TUIContact/TUIContact.d.ts +3 -3
  172. package/dist/esm/components/TUIContact/TUIContact.js +1 -1
  173. package/dist/esm/components/TUIContact/TUIContactInfo/TUIContactInfo.d.ts +3 -3
  174. package/dist/esm/components/TUIContact/TUIContactInfo/TUIContactInfo.js +1 -1
  175. package/dist/esm/components/TUIContact/TUIContactInfo/basicInfo.js +1 -1
  176. package/dist/esm/components/TUIContact/TUIContactInfo/blockInfo.js +1 -1
  177. package/dist/esm/components/TUIContact/TUIContactInfo/friendApplication.js +1 -1
  178. package/dist/esm/components/TUIContact/TUIContactInfo/friendInfo.js +1 -1
  179. package/dist/esm/components/TUIContact/TUIContactInfo/groupInfo.js +1 -1
  180. package/dist/esm/components/TUIContact/TUIContactInfo/hooks/useContactInfo.js +1 -1
  181. package/dist/esm/components/TUIContact/TUIContactList/TUIContactList.d.ts +3 -3
  182. package/dist/esm/components/TUIContact/TUIContactList/TUIContactList.js +1 -1
  183. package/dist/esm/components/TUIContact/hooks/useTUIContact.js +1 -1
  184. package/dist/esm/components/TUIContactSearch/TUIContactSearch.js +1 -1
  185. package/dist/esm/components/TUIContactSearch/hooks/useContactSearch.js +1 -1
  186. package/dist/esm/components/TUIConversation/TUIConversation.d.ts +2 -2
  187. package/dist/esm/components/TUIConversationList/TUIConversationList.d.ts +6 -6
  188. package/dist/esm/components/TUIConversationList/TUIConversationList.js +1 -1
  189. package/dist/esm/components/TUIConversationList/hooks/useConversationUpdate.js +1 -1
  190. package/dist/esm/components/TUIManage/TUIManage.d.ts +2 -2
  191. package/dist/esm/components/TUIManage/TUIManage.js +1 -1
  192. package/dist/esm/components/TUIMessage/MessageAudio.js +1 -1
  193. package/dist/esm/components/TUIMessage/MessageAvatar.js +1 -1
  194. package/dist/esm/components/TUIMessage/MessageBubble.js +1 -1
  195. package/dist/esm/components/TUIMessage/MessageContext.d.ts +2 -2
  196. package/dist/esm/components/TUIMessage/MessageContext.js +1 -1
  197. package/dist/esm/components/TUIMessage/MessageCustom.js +1 -1
  198. package/dist/esm/components/TUIMessage/MessageName.js +1 -1
  199. package/dist/esm/components/TUIMessage/MessagePlugins.d.ts +4 -4
  200. package/dist/esm/components/TUIMessage/MessagePlugins.js +1 -1
  201. package/dist/esm/components/TUIMessage/MessageProgress.js +1 -1
  202. package/dist/esm/components/TUIMessage/MessageRevoke.js +1 -1
  203. package/dist/esm/components/TUIMessage/MessageStatus.js +1 -1
  204. package/dist/esm/components/TUIMessage/MessageSystem.js +1 -1
  205. package/dist/esm/components/TUIMessage/MessageText.js +1 -1
  206. package/dist/esm/components/TUIMessage/MessageTip.js +1 -1
  207. package/dist/esm/components/TUIMessage/TUIMessage.d.ts +19 -19
  208. package/dist/esm/components/TUIMessage/TUIMessage.js +1 -1
  209. package/dist/esm/components/TUIMessage/TUIMessageDefault.js +1 -1
  210. package/dist/esm/components/TUIMessage/hooks/useMessageHandler.js +1 -1
  211. package/dist/esm/components/TUIMessage/hooks/useMessageReply.js +1 -1
  212. package/dist/esm/components/TUIMessage/utils/index.js +1 -1
  213. package/dist/esm/components/TUIMessageInput/InputPluginsDefalut.d.ts +2 -2
  214. package/dist/esm/components/TUIMessageInput/InputPluginsDefalut.js +1 -1
  215. package/dist/esm/components/TUIMessageInput/InputQuoteDefalut.js +1 -1
  216. package/dist/esm/components/TUIMessageInput/TUIForward.js +1 -1
  217. package/dist/esm/components/TUIMessageInput/TUIMessageInput.d.ts +7 -7
  218. package/dist/esm/components/TUIMessageInput/TUIMessageInput.js +1 -1
  219. package/dist/esm/components/TUIMessageInput/TUIMessageInputDefault.d.ts +2 -2
  220. package/dist/esm/components/TUIMessageInput/TUIMessageInputDefault.js +1 -1
  221. package/dist/esm/components/TUIMessageInput/hooks/useHandleForwardMessage.js +1 -1
  222. package/dist/esm/components/TUIMessageInput/hooks/useHandleQuoteMessage.js +1 -1
  223. package/dist/esm/components/TUIMessageInput/hooks/useMessageInputText.js +1 -1
  224. package/dist/esm/components/TUIMessageInput/hooks/useUploadPicker.js +1 -1
  225. package/dist/esm/components/TUIMessageList/TUIMessageList.d.ts +2 -2
  226. package/dist/esm/components/TUIMessageList/TUIMessageList.js +1 -1
  227. package/dist/esm/components/TUIMessageList/hooks/useMessageListElement.js +1 -1
  228. package/dist/esm/components/TUIProfile/TUIProfile.d.ts +3 -3
  229. package/dist/esm/components/TUIProfile/TUIProfile.js +1 -1
  230. package/dist/esm/components/TUIProfile/TUIProfileDefault.d.ts +2 -2
  231. package/dist/esm/components/TUIProfile/TUIProfileDefault.js +1 -1
  232. package/dist/esm/components/Toast/index.d.ts +2 -2
  233. package/dist/esm/components/utils.js +1 -0
  234. package/dist/esm/context/ComponentContext.d.ts +12 -12
  235. package/dist/esm/context/LanguageContext.js +1 -0
  236. package/dist/esm/context/TUIChatActionContext.d.ts +5 -4
  237. package/dist/esm/context/TUIChatStateContext.d.ts +5 -5
  238. package/dist/esm/context/TUIContactContext.d.ts +4 -4
  239. package/dist/esm/context/TUIConversationContext.js +1 -1
  240. package/dist/esm/context/TUIMessageContext.d.ts +17 -17
  241. package/dist/esm/context/TUIMessageInputContext.d.ts +4 -4
  242. package/dist/esm/context/ThemeContext.js +1 -0
  243. package/dist/esm/context/UIKitContext.d.ts +25 -0
  244. package/dist/esm/context/UIKitContext.js +1 -0
  245. package/dist/esm/context/UIManagerContext.d.ts +46 -0
  246. package/dist/esm/context/UIManagerContext.js +1 -0
  247. package/dist/esm/hooks/useConversation.d.ts +2 -2
  248. package/dist/esm/index.css +1 -2
  249. package/dist/esm/index.d.css +1345 -1547
  250. package/dist/esm/index.d.ts +2 -4
  251. package/dist/esm/index.js +1 -1
  252. package/dist/esm/locales/en-US/index.js +1 -1
  253. package/dist/esm/locales/index.js +1 -1
  254. package/dist/esm/locales/zh-CN/index.js +1 -1
  255. package/dist/esm/locales/zh-TW/TUIChat.js +1 -0
  256. package/dist/esm/locales/zh-TW/TUIContact.js +1 -0
  257. package/dist/esm/locales/zh-TW/TUIConversation.js +1 -0
  258. package/dist/esm/locales/zh-TW/TUIProfile.js +1 -0
  259. package/dist/esm/locales/zh-TW/index.js +1 -0
  260. package/package.json +5 -3
  261. package/rollup.config.js +1 -1
  262. package/src/assets/fonts/iconfont.ttf +0 -0
  263. package/src/assets/fonts/iconfont.woff +0 -0
  264. package/src/assets/fonts/iconfont.woff2 +0 -0
  265. package/src/components/Avatar/styles/index.scss +11 -4
  266. package/src/components/Checkbox/styles/color.scss +17 -6
  267. package/src/components/ConversationCreate/ConversationCreatGroupDetail.tsx +4 -4
  268. package/src/components/ConversationCreate/ConversationCreate.tsx +2 -2
  269. package/src/components/ConversationCreate/ConversationCreateUserSelectList.tsx +3 -2
  270. package/src/components/ConversationCreate/hooks/useConversationCreate.tsx +5 -5
  271. package/src/components/ConversationCreate/styles/ConversationCreatGroupDetail.scss +7 -16
  272. package/src/components/ConversationCreate/styles/conversationCreateSelectView.scss +13 -8
  273. package/src/components/ConversationCreate/styles/conversationGroupTypeInfo.scss +20 -21
  274. package/src/components/ConversationCreate/styles/index.scss +30 -17
  275. package/src/components/ConversationPreview/ConversationPreview.tsx +21 -21
  276. package/src/components/ConversationPreview/ConversationPreviewContent.tsx +4 -2
  277. package/src/components/ConversationPreview/styles/index.scss +20 -20
  278. package/src/components/ConversationPreview/utils.tsx +3 -2
  279. package/src/components/DivWithEdit/styles/index.scss +30 -10
  280. package/src/components/Icon/config.ts +14 -4
  281. package/src/components/Icon/images/video-call.svg +3 -0
  282. package/src/components/Icon/images/voice-call.svg +3 -0
  283. package/src/components/Icon/type.ts +2 -0
  284. package/src/components/Input/styles/index.scss +22 -6
  285. package/src/components/Plugins/styles/color.scss +3 -11
  286. package/src/components/Profile/styles/index.scss +12 -3
  287. package/src/components/TUIChat/TUIChat.tsx +40 -35
  288. package/src/components/TUIChat/TUIChatState.tsx +41 -41
  289. package/src/components/TUIChat/index.ts +3 -0
  290. package/src/components/TUIChat/server.ts +44 -0
  291. package/src/components/TUIChat/styles/layout.scss +7 -2
  292. package/src/components/TUIChat/utils.ts +72 -0
  293. package/src/components/TUIChatHeader/TUIChatHeader.tsx +10 -7
  294. package/src/components/TUIChatHeader/TUIChatHeaderDefault.tsx +74 -31
  295. package/src/components/TUIChatHeader/styles/layout.scss +16 -9
  296. package/src/components/TUIContact/TUIContact.tsx +2 -2
  297. package/src/components/TUIContact/TUIContactInfo/TUIContactInfo.tsx +2 -2
  298. package/src/components/TUIContact/TUIContactInfo/basicInfo.tsx +2 -2
  299. package/src/components/TUIContact/TUIContactInfo/blockInfo.tsx +2 -2
  300. package/src/components/TUIContact/TUIContactInfo/friendApplication.tsx +2 -2
  301. package/src/components/TUIContact/TUIContactInfo/friendInfo.tsx +4 -3
  302. package/src/components/TUIContact/TUIContactInfo/groupInfo.tsx +3 -3
  303. package/src/components/TUIContact/TUIContactInfo/hooks/useContactInfo.tsx +2 -2
  304. package/src/components/TUIContact/TUIContactInfo/index.scss +44 -21
  305. package/src/components/TUIContact/TUIContactList/TUIContactList.tsx +80 -76
  306. package/src/components/TUIContact/TUIContactList/index.scss +40 -20
  307. package/src/components/TUIContact/hooks/useTUIContact.tsx +5 -5
  308. package/src/components/TUIContact/index.scss +30 -11
  309. package/src/components/TUIContactSearch/TUIContactSearch.tsx +2 -2
  310. package/src/components/TUIContactSearch/hooks/useContactSearch.tsx +2 -2
  311. package/src/components/TUIContactSearch/index.scss +12 -3
  312. package/src/components/TUIConversationList/TUIConversationList.tsx +3 -4
  313. package/src/components/TUIConversationList/hooks/useConversationUpdate.tsx +2 -2
  314. package/src/components/TUIConversationList/index.scss +3 -4
  315. package/src/components/TUIManage/TUIManage.tsx +3 -3
  316. package/src/components/TUIManage/styles/index.scss +20 -14
  317. package/src/components/TUIMessage/MessageAvatar.tsx +7 -7
  318. package/src/components/TUIMessage/MessageBubble.tsx +22 -21
  319. package/src/components/TUIMessage/MessageCustom.tsx +26 -5
  320. package/src/components/TUIMessage/MessageStatus.tsx +7 -7
  321. package/src/components/TUIMessage/MessageText.tsx +16 -15
  322. package/src/components/TUIMessage/hooks/useMessageHandler.ts +8 -8
  323. package/src/components/TUIMessage/hooks/useMessageReply.ts +8 -7
  324. package/src/components/TUIMessage/styles/color.scss +6 -5
  325. package/src/components/TUIMessage/styles/layout.scss +111 -42
  326. package/src/components/TUIMessage/utils/index.ts +23 -12
  327. package/src/components/TUIMessageInput/InputPluginsDefalut.tsx +12 -12
  328. package/src/components/TUIMessageInput/TUIMessageInput.tsx +1 -1
  329. package/src/components/TUIMessageInput/hooks/useHandleForwardMessage.tsx +7 -6
  330. package/src/components/TUIMessageInput/hooks/useMessageInputText.tsx +14 -14
  331. package/src/components/TUIMessageInput/hooks/useUploadPicker.tsx +4 -4
  332. package/src/components/TUIMessageInput/styles/color.scss +15 -11
  333. package/src/components/TUIMessageInput/styles/layout.scss +33 -17
  334. package/src/components/TUIMessageList/hooks/useMessageListElement.tsx +15 -11
  335. package/src/components/TUIMessageList/styles/layout.scss +16 -9
  336. package/src/components/TUIProfile/TUIProfile.tsx +3 -3
  337. package/src/components/TUIProfile/TUIProfileDefault.tsx +14 -13
  338. package/src/components/TUIProfile/styles/color.scss +6 -5
  339. package/src/components/TUIProfile/styles/layout.scss +16 -14
  340. package/src/components/index.ts +0 -1
  341. package/src/components/{untils.ts → utils.ts} +5 -4
  342. package/src/context/LanguageContext.tsx +60 -0
  343. package/src/context/TUIChatActionContext.tsx +14 -13
  344. package/src/context/ThemeContext.tsx +68 -0
  345. package/src/context/UIKitContext.tsx +76 -0
  346. package/src/context/UIManagerContext.tsx +163 -0
  347. package/src/context/index.ts +3 -2
  348. package/src/locales/en-US/index.ts +0 -3
  349. package/src/locales/index.ts +6 -2
  350. package/src/locales/zh-CN/index.ts +0 -2
  351. package/src/locales/zh-TW/TUIChat.ts +27 -0
  352. package/src/locales/zh-TW/TUIContact.ts +29 -0
  353. package/src/locales/zh-TW/TUIConversation.ts +32 -0
  354. package/src/locales/zh-TW/TUIProfile.ts +15 -0
  355. package/src/locales/zh-TW/index.ts +11 -0
  356. package/src/styles/colors/_color-dark.scss +31 -21
  357. package/src/styles/colors/_color-light.scss +31 -21
  358. package/src/styles/colors/_color-theme.scss +33 -22
  359. package/src/styles/normalize.scss +6 -0
  360. package/dist/cjs/components/Icon/images/chats-selected.svg.js +0 -1
  361. package/dist/cjs/components/Icon/images/chats.svg.js +0 -1
  362. package/dist/cjs/components/Icon/images/contacts-selected.svg.js +0 -1
  363. package/dist/cjs/components/Icon/images/contacts.svg.js +0 -1
  364. package/dist/cjs/components/Icon/images/down-arrow.png.js +0 -1
  365. package/dist/cjs/components/Icon/images/right-arrow.svg.js +0 -1
  366. package/dist/cjs/components/TUIChat/unitls.js +0 -1
  367. package/dist/cjs/components/TUIKit/TUIKit.d.ts +0 -12
  368. package/dist/cjs/components/TUIKit/TUIKit.js +0 -1
  369. package/dist/cjs/components/TUIKit/hooks/useCreateTUIKitContext.d.ts +0 -21
  370. package/dist/cjs/components/TUIKit/hooks/useCreateTUIKitContext.js +0 -1
  371. package/dist/cjs/components/TUIKit/hooks/useTUIKit.d.ts +0 -43
  372. package/dist/cjs/components/TUIKit/hooks/useTUIKit.js +0 -1
  373. package/dist/cjs/context/TUIKitContext.d.ts +0 -25
  374. package/dist/cjs/context/TUIKitContext.js +0 -1
  375. package/dist/esm/components/Icon/images/chats-selected.svg.js +0 -1
  376. package/dist/esm/components/Icon/images/chats.svg.js +0 -1
  377. package/dist/esm/components/Icon/images/contacts-selected.svg.js +0 -1
  378. package/dist/esm/components/Icon/images/contacts.svg.js +0 -1
  379. package/dist/esm/components/Icon/images/down-arrow.png.js +0 -1
  380. package/dist/esm/components/Icon/images/right-arrow.svg.js +0 -1
  381. package/dist/esm/components/TUIChat/unitls.js +0 -1
  382. package/dist/esm/components/TUIKit/TUIKit.d.ts +0 -12
  383. package/dist/esm/components/TUIKit/TUIKit.js +0 -1
  384. package/dist/esm/components/TUIKit/hooks/useCreateTUIKitContext.d.ts +0 -21
  385. package/dist/esm/components/TUIKit/hooks/useCreateTUIKitContext.js +0 -1
  386. package/dist/esm/components/TUIKit/hooks/useTUIKit.d.ts +0 -43
  387. package/dist/esm/components/TUIKit/hooks/useTUIKit.js +0 -1
  388. package/dist/esm/components/untils.js +0 -1
  389. package/dist/esm/context/TUIKitContext.d.ts +0 -25
  390. package/dist/esm/context/TUIKitContext.js +0 -1
  391. package/scripts/publish-github.js +0 -60
  392. package/scripts/publish-intl-demo.js +0 -14
  393. package/scripts/publish-intl-experience-demo.js +0 -14
  394. package/src/components/TUIChat/unitls.ts +0 -39
  395. package/src/components/TUIKit/TUIKit.tsx +0 -229
  396. package/src/components/TUIKit/hooks/useCreateTUIKitContext.tsx +0 -48
  397. package/src/components/TUIKit/hooks/useTUIKit.tsx +0 -99
  398. package/src/components/TUIKit/index.ts +0 -3
  399. package/src/components/TUIKit/styles/h5.scss +0 -34
  400. package/src/components/TUIKit/styles/index.scss +0 -132
  401. package/src/context/TUIKitContext.tsx +0 -44
  402. package/src/locales/en-US/TUIGlobal.ts +0 -6
  403. package/src/locales/ja-JP/TUIGlobal.ts +0 -6
  404. package/src/locales/ko-KR/TUIGlobal.ts +0 -6
  405. package/src/locales/zh-CN/TUIGlobal.ts +0 -6
@@ -1,3 +1,5 @@
1
+ @use "../../../styles/colors/color-theme" as *;
2
+
1
3
  .tui-contacts-list {
2
4
  flex: 1 1 auto;
3
5
  min-width: 360px;
@@ -5,33 +7,47 @@
5
7
  display: flex;
6
8
  flex-direction: column;
7
9
  position: relative;
8
- border-right: 1px solid #F9FAFB;
9
10
  text-align: initial;
10
- overflow-y: scroll;
11
- overflow-x: hidden;
11
+ overflow: hidden scroll;
12
+
13
+ @include theme() {
14
+ color: get(text-color-primary);
15
+ }
16
+
12
17
  .tui-contacts-title {
13
18
  display: flex;
14
19
  justify-content: space-between;
15
20
  }
21
+
16
22
  .tui-contacts-list-title {
17
23
  display: flex;
18
24
  padding: 10px 20px;
25
+ cursor: pointer;
19
26
  }
27
+
20
28
  .tui-contacts-list-icon {
21
29
  display: flex;
22
30
  align-items: center;
23
31
  justify-content: center;
24
32
  margin-right: 20px;
33
+
34
+ .contacts-list-icon {
35
+ font-size: 12px;
36
+
37
+ @include theme() {
38
+ color: get(text-color-primary);
39
+ }
40
+ }
25
41
  }
42
+
26
43
  .tui-contacts-list-item {
27
44
  align-items: center;
28
45
  cursor: pointer;
29
46
  display: flex;
30
47
  padding: 10px 20px;
31
48
  text-align: center;
32
- font-family: PingFangSC-Medium;
33
49
  font-size: 14px;
34
- line-height: 20px;
50
+
35
51
  .tui-contacts-list-item-card {
36
52
  display: flex;
37
53
  padding: 0 10px;
@@ -40,39 +56,41 @@
40
56
  justify-content: space-between;
41
57
  flex: 1;
42
58
  }
59
+
43
60
  .tui-contacts-list-item-container {
44
61
  margin-left: 10px;
45
62
  }
63
+
64
+ .text-ellipsis {
65
+ overflow: hidden;
66
+ text-overflow: ellipsis;
67
+ white-space: nowrap;
68
+ }
69
+
46
70
  .tui-contacts-list-item-text {
47
71
  color: #999;
48
72
  font-size: 12px;
49
73
  text-align: left;
50
- @extend .text-ellipsis
74
+
75
+ @extend .text-ellipsis;
51
76
  }
77
+
52
78
  .tui-contacts-list-btn-text {
53
79
  color: #999;
54
80
  font-size: 12px;
55
81
  text-align: left;
56
82
  }
83
+
57
84
  .tui-contacts-list-item-name {
58
- color: #000;
59
- font-weight: 400;
60
- text-align: left;
61
- @extend .text-ellipsis
85
+ @extend .text-ellipsis;
62
86
  }
63
-
64
- }
65
- .text-ellipsis {
66
- overflow: hidden;
67
- text-overflow: ellipsis;
68
- white-space: nowrap;
69
87
  }
88
+
70
89
  .application-btn {
71
90
  width: 30px;
72
91
  height: 14px;
73
92
  padding: 5px;
74
93
  border-radius: 15px;
75
- border: none;
76
94
  font-size: 10px;
77
95
  text-align: center;
78
96
  line-height: 14px;
@@ -80,16 +98,18 @@
80
98
  cursor: pointer;
81
99
  -webkit-user-select: none;
82
100
  user-select: none;
83
- border: 1px solid #006EFF;
84
- background: #006EFF;
101
+ border: 1px solid #006eff;
102
+ background: #006eff;
85
103
  color: #fff;
86
104
  }
87
105
  }
106
+
88
107
  ::-webkit-scrollbar {
89
108
  display: none;
90
109
  }
110
+
91
111
  .tui-contacts-list-h5 {
92
112
  min-width: 100%;
93
113
  width: 100%;
94
114
  max-width: 100%;
95
- }
115
+ }
@@ -5,10 +5,10 @@ import {
5
5
  StoreName,
6
6
  IGroupModel,
7
7
  } from '@tencentcloud/chat-uikit-engine';
8
- import { useTUIKitContext } from '../../../context';
8
+ import { useUIKit } from '../../../context';
9
9
 
10
10
  function useTUIContact() {
11
- const { chat } = useTUIKitContext();
11
+ const { chat } = useUIKit();
12
12
  const [friendList, setFriendList] = useState([]);
13
13
  const [blockList, setBlockList] = useState([]);
14
14
  const [friendApplicationList, setFriendApplicationList] = useState([]);
@@ -43,13 +43,13 @@ function useTUIContact() {
43
43
  };
44
44
 
45
45
  const getFriendList = async () => {
46
- const { code, data } = await chat.getFriendList();
46
+ const { code, data } = await chat?.getFriendList();
47
47
  if (code === 0) {
48
48
  setFriendList(data);
49
49
  }
50
50
  };
51
51
  const getBlocklist = async () => {
52
- const { data: _blocklist } = await chat.getBlacklist();
52
+ const { data: _blocklist } = await chat?.getBlacklist();
53
53
  if (_blocklist.length === 0) {
54
54
  return;
55
55
  }
@@ -57,7 +57,7 @@ function useTUIContact() {
57
57
  getBlocklistProfile(_blocklist);
58
58
  };
59
59
 
60
- const getBlocklistProfile = async (_blocklist: Array<string>) => {
60
+ const getBlocklistProfile = async (_blocklist: string[]) => {
61
61
  const { data } = await chat.getUserProfile({
62
62
  userIDList: _blocklist,
63
63
  });
@@ -1,3 +1,5 @@
1
+ @use "../../styles/colors/color-theme" as *;
2
+
1
3
  .tui-contacts {
2
4
  height: 100%;
3
5
  min-width: 360px;
@@ -7,66 +9,83 @@
7
9
  position: relative;
8
10
  text-align: initial;
9
11
  overflow: hidden;
12
+
13
+ @include theme() {
14
+ background-color: get(bg-color-operate);
15
+ }
16
+
10
17
  .tui-contacts-header {
11
18
  position: relative;
12
19
  display: flex;
13
20
  align-items: center;
14
21
  padding: 10px 20px 10px 10px;
15
22
  }
23
+
16
24
  .tui-contact-input {
17
25
  width: 100%;
18
26
  }
27
+
19
28
  .tui-contacts-add {
20
- display: flex;
21
- color: #147AFF;
29
+ color: #147aff;
22
30
  font-size: 20px;
23
31
  align-items: center;
24
32
  cursor: pointer;
25
33
  display: flex;
26
34
  text-align: center;
35
+
27
36
  .tui-conversation-create-icon {
28
37
  display: flex;
29
38
  align-items: center;
30
39
  justify-content: center;
31
40
  }
32
41
  }
42
+
33
43
  .tui-contacts-add-header {
34
44
  align-items: center;
35
- background-color: #f9fafb;
36
45
  display: flex;
37
46
  flex-direction: row;
38
47
  padding: 16px 20px;
39
48
  text-align: center;
40
49
  margin-bottom: 10px;
50
+
51
+ @include theme() {
52
+ background-color: get(bg-color-operate);
53
+ }
54
+
41
55
  .tui-contacts-add-header-title {
42
- color: #000;
43
- font-family: PingFangSC-Medium;
44
56
  font-size: 20px;
45
57
  font-weight: 600;
46
- letter-spacing: -.41px;
47
- line-height: 32px;
48
58
  margin-left: 10px;
59
+
60
+ @include theme() {
61
+ color: get(text-color-primary);
62
+ }
49
63
  }
50
64
  }
65
+
51
66
  .no-result {
52
67
  padding: 0 20px;
53
68
  display: flex;
54
69
  flex-direction: column;
55
70
  align-items: center;
71
+
56
72
  &-icon {
57
73
  margin: 100px auto 50px;
58
74
  }
75
+
59
76
  &-message {
60
- color: #999999;
61
- font-weight: 400;
62
77
  font-size: 16px;
63
- font-family: PingFangSC-Medium;
64
78
  line-height: 22px;
79
+
80
+ @include theme() {
81
+ color: get(text-color-secondary);
82
+ }
65
83
  }
66
84
  }
67
85
  }
86
+
68
87
  .tui-contacts-h5 {
69
88
  min-width: 100%;
70
89
  width: 100%;
71
90
  max-width: 100%;
72
- }
91
+ }
@@ -1,6 +1,6 @@
1
1
  import React, { useState } from 'react';
2
2
  import { useTranslation } from 'react-i18next';
3
- import { useTUIKitContext, useTUIContactContext } from '../../context';
3
+ import { useUIManager, useTUIContactContext } from '../../context';
4
4
  import useContactSearch from './hooks/useContactSearch';
5
5
  import { Icon, IconTypes } from '../Icon';
6
6
  import { Avatar, defaultUserAvatar } from '../Avatar';
@@ -8,7 +8,7 @@ import { Input } from '../Input';
8
8
  import './index.scss';
9
9
 
10
10
  export function UnMemoizedTUIContactSearch<T>(): React.ReactElement {
11
- const { chat, setActiveContact } = useTUIKitContext('TUIContactSearch');
11
+ const { setActiveContact } = useUIManager('TUIContactSearch');
12
12
  const { t } = useTranslation();
13
13
  const { friendList, setShowContactList } = useTUIContactContext('TUIContactList');
14
14
  const [isShowSearchResult, setShowSearchResult] = useState(false);
@@ -1,9 +1,9 @@
1
1
  import TencentCloudChat from '@tencentcloud/chat';
2
- import { useTUIKitContext, useTUIContactContext } from '../../../context';
2
+ import { useUIKit, useTUIContactContext } from '../../../context';
3
3
 
4
4
  function useContactSearch() {
5
5
  const { blockList } = useTUIContactContext('TUIContactList');
6
- const { chat } = useTUIKitContext('TUIContactSearch');
6
+ const { chat } = useUIKit('TUIContactSearch');
7
7
 
8
8
  const checkFriend = (info: any): Promise<any> => chat.checkFriend({
9
9
  userIDList: [info?.userID],
@@ -1,24 +1,33 @@
1
+ @use "../../styles/colors/color-theme" as *;
2
+
1
3
  .tui-contact-search {
2
4
  width: 100%;
3
5
  position: relative;
4
6
  text-align: initial;
5
7
  align-items: center;
6
8
  justify-content: space-between;
9
+
7
10
  .tui-contact-search-input {
8
11
  margin: 0 10px;
9
12
  }
13
+
10
14
  .tui-contact-search-text {
11
- color: #147AFF;
15
+ color: #147aff;
12
16
  font-size: 14px;
13
17
  }
18
+
14
19
  .tui-contact-search-item {
15
20
  position: absolute;
16
21
  margin: 10px 20px;
17
22
  display: flex;
18
23
  align-items: center;
24
+
25
+ @include theme() {
26
+ color: get(text-color-primary);
27
+ }
28
+
19
29
  .search-item-name {
20
- padding-left: 10px;
30
+ padding-left: 10px;
21
31
  }
22
32
  }
23
33
  }
24
-
@@ -1,7 +1,7 @@
1
1
  import React, { useRef, useState } from 'react';
2
2
  import { useTranslation } from 'react-i18next';
3
3
  import { Conversation } from '@tencentcloud/chat';
4
- import { useTUIKitContext } from '../../context';
4
+ import { useUIKit, useUIManager } from '../../context';
5
5
  import { isH5 } from '../../utils/env';
6
6
  import useConversationList from './hooks/useConversationList';
7
7
  import './index.scss';
@@ -43,13 +43,13 @@ export function UnMemoTUIConversationList<T extends Props>(props: T):React.React
43
43
  },
44
44
  } = props;
45
45
  const { t } = useTranslation();
46
+ const { chat } = useUIKit('TUIConversationList');
46
47
  const {
47
- chat,
48
48
  customClasses,
49
49
  conversation,
50
50
  setActiveConversation,
51
51
  setTUIProfileShow,
52
- } = useTUIKitContext('TUIConversationList');
52
+ } = useUIManager('TUIConversationList');
53
53
  const { filterConversation: contextFilterConversation } = useTUIConversationContext('TUIConversationList');
54
54
  const filterConversation = propsFilterConversation || contextFilterConversation;
55
55
  const [conversationUpdateCount, setConversationUpdateCount] = useState(0);
@@ -64,7 +64,6 @@ export function UnMemoTUIConversationList<T extends Props>(props: T):React.React
64
64
  if (!conversationList.length) {
65
65
  return;
66
66
  }
67
- setActiveConversation(conversation);
68
67
  };
69
68
  const { conversationList, setConversationList } = useConversationList(
70
69
  chat,
@@ -1,6 +1,6 @@
1
1
  import React, { useEffect } from 'react';
2
2
  import TencentCloudChat, { Conversation } from '@tencentcloud/chat';
3
- import { useTUIKitContext } from '../../../context';
3
+ import { useUIKit } from '../../../context';
4
4
 
5
5
  export const useConversationUpdate = (
6
6
  setConversationList?: React.Dispatch<React.SetStateAction<Array<Conversation>>>,
@@ -11,7 +11,7 @@ export const useConversationUpdate = (
11
11
  forceUpdate?: () => void,
12
12
  filterConversation?:(conversationList: Array<Conversation>) => Array<Conversation>,
13
13
  ) => {
14
- const { chat } = useTUIKitContext('useConversationUpdate');
14
+ const { chat } = useUIKit('useConversationUpdate');
15
15
  useEffect(() => {
16
16
  const onConversationListUpdated = (event:any) => {
17
17
  if (setConversationList) {
@@ -1,17 +1,16 @@
1
1
  @use "../../styles/colors/color-theme" as *;
2
2
 
3
3
  .tui-conversation {
4
- flex: 1;
5
- box-sizing: border-box;
6
- overflow: hidden;
4
+ flex: 1 1 auto;
7
5
  min-width: 0;
8
6
  display: flex;
9
7
  flex-direction: column;
10
8
  position: relative;
11
9
  text-align: initial;
10
+ overflow: auto;
12
11
 
13
12
  @include theme() {
14
- background-color: get(bg-primary);
13
+ background-color: get(bg-color-operate);
15
14
  }
16
15
 
17
16
  .tui-conversation-header {
@@ -5,7 +5,7 @@ import './styles/index.scss';
5
5
  import { Icon, IconTypes } from '../Icon';
6
6
  import { Avatar, defaultGroupAvatarWork, defaultUserAvatar } from '../Avatar';
7
7
  import { Switch } from '../Switch';
8
- import { useTUIKitContext } from '../../context';
8
+ import { useUIKit, useUIManager } from '../../context';
9
9
  import { isH5, isPC } from '../../utils/env';
10
10
  import { getMessageProfile } from '../ConversationPreview/utils';
11
11
  import { useConversationUpdate } from '../TUIConversationList/hooks/useConversationUpdate';
@@ -19,13 +19,13 @@ function UnMemoizedTUIManage<T>(
19
19
  const [profile, setProfile] = useState<any>();
20
20
  const [isPinned, setIsPinned] = useState<boolean>(false);
21
21
  const [forceUpdateCount, setForceUpdateCount] = useState(0);
22
+ const { chat } = useUIKit('TUIManage');
22
23
  const {
23
24
  conversation: activeConversation,
24
25
  setActiveConversation,
25
- chat,
26
26
  TUIManageShow,
27
27
  setTUIManageShow,
28
- } = useTUIKitContext('TUIManage');
28
+ } = useUIManager('TUIManage');
29
29
  useConversationUpdate(undefined, () => {
30
30
  setForceUpdateCount((count) => count + 1);
31
31
  });
@@ -1,10 +1,17 @@
1
+ @use "../../../styles/colors/color-theme" as *;
2
+
1
3
  .tui-manage {
2
4
  display: flex;
3
5
  flex-direction: column;
4
6
  width: 22%;
5
7
  max-width: 300px;
6
8
  min-width: 200px;
7
- border-left: 1px solid #f9fafb;
9
+
10
+ @include theme() {
11
+ background-color: get(bg-color-operate);
12
+ color: get(text-color-primary);
13
+ border-left: 1px solid get(stroke-color-primary);
14
+ }
8
15
 
9
16
  .red {
10
17
  color: #ff584c !important;
@@ -19,8 +26,6 @@
19
26
  margin-right: 10px;
20
27
  font-weight: 700;
21
28
  font-size: 14px;
22
- font-family: PingFangSC-Medium;
23
- line-height: 17px;
24
29
  }
25
30
  }
26
31
 
@@ -39,16 +44,11 @@
39
44
  text-align: center;
40
45
  font-weight: 700;
41
46
  font-size: 24px;
42
- font-family: PingFangSC-Medium;
43
- line-height: 29px;
44
47
  margin-bottom: 10px;
45
48
  }
46
49
 
47
50
  .info-id {
48
- font-weight: 400;
49
51
  font-size: 12px;
50
- font-family: PingFangSC-Medium;
51
- line-height: 14px;
52
52
  color: #666;
53
53
  margin-bottom: 30px;
54
54
  text-align: center;
@@ -58,11 +58,13 @@
58
58
  .tui-manage-handle {
59
59
  .manage-handle-box {
60
60
  display: flex;
61
- background: rgba(249, 249, 249, 94%);
62
61
  align-items: center;
63
62
  justify-content: space-between;
64
63
  padding: 10px;
65
- box-sizing: border-box;
64
+
65
+ @include theme() {
66
+ background: get(bg-color-operate);
67
+ }
66
68
 
67
69
  &:nth-child(2) {
68
70
  margin-top: 10px;
@@ -71,9 +73,10 @@
71
73
 
72
74
  .manage-handle-title {
73
75
  font-size: 16px;
74
- font-family: PingFangSC-Medium;
75
- line-height: 22px;
76
- color: rgba(0, 0, 0, 60%);
76
+
77
+ @include theme() {
78
+ color: get(text-color-primary);
79
+ }
77
80
  }
78
81
  }
79
82
  }
@@ -91,5 +94,8 @@
91
94
  max-width: 100%;
92
95
  min-width: 100%;
93
96
  z-index: 1;
94
- background: #fff;
97
+
98
+ @include theme() {
99
+ background: get(bg-color-operate);
100
+ }
95
101
  }
@@ -5,18 +5,18 @@ import TencentCloudChat, { Message } from '@tencentcloud/chat';
5
5
  import { MESSAGE_FLOW } from '../../constants';
6
6
  import { messageShowType } from '../../context';
7
7
  import { Avatar } from '../Avatar';
8
- import { handleDisplayAvatar } from '../untils';
8
+ import { handleDisplayAvatar } from '../utils';
9
9
 
10
10
  export interface MessageAvatarProps {
11
- CustomAvatar?: React.ReactElement,
12
- className?: string,
13
- message: Message,
14
- showType?: messageShowType,
11
+ CustomAvatar?: React.ReactElement;
12
+ className?: string;
13
+ message: Message;
14
+ showType?: messageShowType;
15
15
  }
16
16
 
17
- export function MessageAvatar <T extends MessageAvatarProps>(
17
+ export function MessageAvatar<T extends MessageAvatarProps>(
18
18
  props: PropsWithChildren<T>,
19
- ):React.ReactElement {
19
+ ): React.ReactElement {
20
20
  const {
21
21
  className,
22
22
  CustomAvatar,
@@ -6,22 +6,23 @@ import React, {
6
6
  } from 'react';
7
7
  import TencentCloudChat, { Message } from '@tencentcloud/chat';
8
8
  import { MESSAGE_STATUS } from '../../constants';
9
+ import { isCallMessage } from './utils';
9
10
  import { useTUIChatActionContext, useTUIChatStateContext } from '../../context';
10
11
  import { Icon, IconTypes } from '../Icon';
11
12
  import { useMessageReply } from './hooks/useMessageReply';
12
13
  import { MessageProgress } from './MessageProgress';
13
14
 
14
15
  export interface MessageBubbleProps {
15
- message?: Message,
16
- className?: string,
17
- children?: ReactNode,
18
- Context?: React.ComponentType<any>,
19
- Plugins?: React.ComponentType<any> | undefined,
16
+ message?: Message;
17
+ className?: string;
18
+ children?: ReactNode;
19
+ Context?: React.ComponentType<any>;
20
+ Plugins?: React.ComponentType<any> | undefined;
20
21
  }
21
22
 
22
- function MessageBubbleWithContext <T extends MessageBubbleProps>(
23
+ function MessageBubbleWithContext<T extends MessageBubbleProps>(
23
24
  props: PropsWithChildren<T>,
24
- ):React.ReactElement {
25
+ ): React.ReactElement {
25
26
  const {
26
27
  message,
27
28
  children,
@@ -68,7 +69,7 @@ function MessageBubbleWithContext <T extends MessageBubbleProps>(
68
69
  const handleReplyMessage = () => {
69
70
  // eslint-disable-next-line
70
71
  // @ts-ignore
71
- setHighlightedMessageId && setHighlightedMessageId(replyMessage?.ID);
72
+ setHighlightedMessageId && setHighlightedMessageId(replyMessage?.ID);
72
73
  };
73
74
 
74
75
  return (
@@ -90,15 +91,15 @@ function MessageBubbleWithContext <T extends MessageBubbleProps>(
90
91
  >
91
92
  {
92
93
  messageReply && (
93
- <div
94
- className="meesage-bubble-reply-main"
95
- role="menuitem"
96
- tabIndex={0}
97
- onClick={handleReplyMessage}
98
- >
99
- <header className="title">{sender}</header>
100
- {Context && <Context message={replyMessage} />}
101
- </div>
94
+ <div
95
+ className="meesage-bubble-reply-main"
96
+ role="menuitem"
97
+ tabIndex={0}
98
+ onClick={handleReplyMessage}
99
+ >
100
+ <header className="title">{sender}</header>
101
+ {Context && <Context message={replyMessage} />}
102
+ </div>
102
103
  )
103
104
  }
104
105
  {children}
@@ -106,9 +107,9 @@ function MessageBubbleWithContext <T extends MessageBubbleProps>(
106
107
  </div>
107
108
  {
108
109
  Plugins && (
109
- <div className="message-plugin">
110
- {PluginsShow && <Plugins message={message} />}
111
- </div>
110
+ <div className="message-plugin">
111
+ {PluginsShow && <Plugins message={message} />}
112
+ </div>
112
113
  )
113
114
  }
114
115
  </div>
@@ -129,7 +130,7 @@ function MessageBubbleWithContext <T extends MessageBubbleProps>(
129
130
  const MemoizedMessageBubble = React.memo(MessageBubbleWithContext) as
130
131
  typeof MessageBubbleWithContext;
131
132
 
132
- export function MessageBubble(props:MessageBubbleProps):React.ReactElement {
133
+ export function MessageBubble(props: MessageBubbleProps): React.ReactElement {
133
134
  return (
134
135
  <MemoizedMessageBubble {...props} />
135
136
  );