@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,10 +1,8 @@
1
- export { ChatProps, TUIKit } from './components/TUIKit/TUIKit.js';
2
- export { UseChatParams, UseContactParams, useTUIKit } from './components/TUIKit/hooks/useTUIKit.js';
3
- export { useCreateTUIKitContext } from './components/TUIKit/hooks/useCreateTUIKitContext.js';
4
1
  export { TUIConversation, UnMemoizedTUIConversation } from './components/TUIConversation/TUIConversation.js';
5
2
  export { TUIConversationList, UnMemoTUIConversationList } from './components/TUIConversationList/TUIConversationList.js';
6
3
  export { TUIChat } from './components/TUIChat/TUIChat.js';
7
- export { TUIKitContext, TUIKitContextValue, TUIKitProvider, useTUIKitContext } from './context/TUIKitContext.js';
4
+ export { UIKitProvider, useUIKit } from './context/UIKitContext.js';
5
+ export { UIManagerContextType, UIManagerProvider, useUIManager } from './context/UIManagerContext.js';
8
6
  export { TUIChatStateContext, TUIChatStateContextProvider, TUIChatStateContextValue, useTUIChatStateContext } from './context/TUIChatStateContext.js';
9
7
  export { TUIChatActionContext, TUIChatActionContextValue, TUIChatActionProvider, useTUIChatActionContext } from './context/TUIChatActionContext.js';
10
8
  export { TUIMessageContext, TUIMessageContextProvider, TUIMessageContextValue, messageShowType, useTUIMessageContext } from './context/TUIMessageContext.js';
package/dist/cjs/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./server.js"),t=require("./components/TUIKit/TUIKit.js"),o=require("./components/TUIKit/hooks/useTUIKit.js"),n=require("./components/TUIKit/hooks/useCreateTUIKitContext.js"),s=require("./components/TUIConversation/TUIConversation.js"),r=require("./components/TUIConversationList/TUIConversationList.js");require("react"),require("@tencentcloud/chat"),require("@tencentcloud/chat-uikit-engine");var a=require("./components/TUIChat/TUIChat.js");require("tslib");var i=require("./components/ConversationPreview/ConversationPreview.js"),u=require("./components/ConversationPreview/ConversationPreviewContent.js"),p=require("./components/TUIChatHeader/TUIChatHeader.js"),I=require("./components/TUIChatHeader/TUIChatHeaderDefault.js"),C=require("./components/TUIMessageList/TUIMessageList.js"),x=require("./components/TUIMessage/TUIMessage.js"),T=require("./components/TUIMessage/MessagePlugins.js"),U=require("./components/TUIMessage/MessageContext.js"),c=require("./components/TUIMessageInput/TUIMessageInput.js"),v=require("./components/TUIMessageInput/TUIMessageInputDefault.js"),m=require("./components/TUIMessageInput/InputPluginsDefalut.js"),l=require("./components/TUIProfile/TUIProfile.js"),d=require("./components/TUIProfile/TUIProfileDefault.js"),g=require("./components/Avatar/Avatar.js"),M=require("./components/Avatar/default.js"),P=require("./components/ConversationSearch/ConversationSearchInput.js"),f=require("./components/ConversationSearch/ConversationSearchResult.js"),h=require("./components/TUIManage/TUIManage.js"),j=require("./components/Popup/index.js"),q=require("./components/Checkbox/index.js"),S=require("./components/DivWithEdit/DivWithEdit.js"),A=require("./components/Icon/Icon.js"),K=require("./components/Icon/type.js"),b=require("./components/EmptyStateIndicator/EmptyStateIndicator.js"),y=require("./components/Input/Input.js"),w=require("./components/Model/index.js"),D=require("./components/Plugins/index.js"),L=require("./components/Switch/Switch.js"),k=require("./components/Toast/index.js"),H=require("./components/TUIContact/TUIContactList/TUIContactList.js"),E=require("./components/TUIContact/TUIContactInfo/TUIContactInfo.js"),G=require("./components/TUIContact/TUIContact.js"),z=require("./context/TUIKitContext.js"),O=require("./context/TUIChatStateContext.js"),W=require("./context/TUIChatActionContext.js"),R=require("./context/TUIMessageContext.js"),N=require("./context/ComponentContext.js"),V=require("./context/TUIMessageInputContext.js"),_=require("./context/TUIContactContext.js"),B=require("./hooks/useConversation.js"),F=require("./hooks/useProfile.js"),J=require("./locales/index.js"),Q=require("./utils/env.js");function X(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var Y=X(require("i18next"));new e,exports.TUIKit=t.TUIKit,exports.useTUIKit=o.useTUIKit,exports.useCreateTUIKitContext=n.useCreateTUIKitContext,exports.TUIConversation=s.TUIConversation,exports.UnMemoizedTUIConversation=s.UnMemoizedTUIConversation,exports.TUIConversationList=r.TUIConversationList,exports.UnMemoTUIConversationList=r.UnMemoTUIConversationList,exports.TUIChat=a.TUIChat,exports.ConversationPreview=i.ConversationPreview,exports.ConversationPreviewContent=u.ConversationPreviewContent,exports.unMemoConversationPreviewContent=u.unMemoConversationPreviewContent,exports.TUIChatHeader=p.TUIChatHeader,exports.TUIChatHeaderDefault=I.TUIChatHeaderDefault,exports.TUIMessageList=C.TUIMessageList,exports.TUIMessage=x.TUIMessage,exports.MessagePlugins=T.MessagePlugins,exports.MessageContext=U.MessageContext,exports.TUIMessageInput=c.TUIMessageInput,exports.TUIMessageInputDefault=v.TUIMessageInputDefault,exports.InputPluginsDefalut=m.InputPluginsDefalut,exports.TUIProfile=l.TUIProfile,exports.TUIProfileDefault=d.TUIProfileDefault,exports.Avatar=g.Avatar,exports.defaultGroupAvatarAVChatRoom=M.defaultGroupAvatarAVChatRoom,exports.defaultGroupAvatarMeeting=M.defaultGroupAvatarMeeting,exports.defaultGroupAvatarPublic=M.defaultGroupAvatarPublic,exports.defaultGroupAvatarWork=M.defaultGroupAvatarWork,exports.defaultUserAvatar=M.defaultUserAvatar,exports.ConversationSearchInput=P.ConversationSearchInput,exports.ConversationSearchResult=f.ConversationSearchResult,exports.TUIManage=h.TUIManage,exports.Popup=j.Popup,exports.Checkbox=q.Checkbox,exports.DivWithEdit=S.DivWithEdit,exports.Icon=A.Icon,exports.changeTypeToIconClassName=A.changeTypeToIconClassName,Object.defineProperty(exports,"IconTypes",{enumerable:!0,get:function(){return K.IconTypes}}),exports.EmptyStateIndicator=b.EmptyStateIndicator,exports.Input=y.Input,exports.Model=w.Model,exports.Plugins=D.Plugins,exports.Switch=L.Switch,exports.Toast=k.Toast,exports.TUIContactList=H.TUIContactList,exports.TUIContactInfo=E.TUIContactInfo,exports.UnMemoizedTUIContactInfo=E.UnMemoizedTUIContactInfo,exports.TUIContact=G.TUIContact,exports.UnMemoizedTUIContact=G.UnMemoizedTUIContact,exports.TUIKitContext=z.TUIKitContext,exports.TUIKitProvider=z.TUIKitProvider,exports.useTUIKitContext=z.useTUIKitContext,exports.TUIChatStateContext=O.TUIChatStateContext,exports.TUIChatStateContextProvider=O.TUIChatStateContextProvider,exports.useTUIChatStateContext=O.useTUIChatStateContext,exports.TUIChatActionContext=W.TUIChatActionContext,exports.TUIChatActionProvider=W.TUIChatActionProvider,exports.useTUIChatActionContext=W.useTUIChatActionContext,exports.TUIMessageContext=R.TUIMessageContext,exports.TUIMessageContextProvider=R.TUIMessageContextProvider,Object.defineProperty(exports,"messageShowType",{enumerable:!0,get:function(){return R.messageShowType}}),exports.useTUIMessageContext=R.useTUIMessageContext,exports.ComponentContext=N.ComponentContext,exports.ComponentProvider=N.ComponentProvider,exports.useComponentContext=N.useComponentContext,exports.TUIMessageInputContext=V.TUIMessageInputContext,exports.TUIMessageInputContextProvider=V.TUIMessageInputContextProvider,exports.useTUIMessageInputContext=V.useTUIMessageInputContext,exports.TUIContactContext=_.TUIContactContext,exports.TUIContactContextProvider=_.TUIContactContextProvider,exports.useTUIContactContext=_.useTUIContactContext,exports.useConversation=B.useConversation,exports.useProfile=F.useProfile,exports.t=J.t,Object.defineProperty(exports,"isH5",{enumerable:!0,get:function(){return Q.isH5}}),Object.defineProperty(exports,"isPC",{enumerable:!0,get:function(){return Q.isPC}}),exports.setPlatform=Q.setPlatform,Object.defineProperty(exports,"i18next",{enumerable:!0,get:function(){return Y.default}});
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./server.js"),t=require("./components/TUIConversation/TUIConversation.js"),o=require("./components/TUIConversationList/TUIConversationList.js");require("react"),require("@tencentcloud/chat"),require("@tencentcloud/chat-uikit-engine"),require("./components/TUIChat/index.js");var n=require("./components/ConversationPreview/ConversationPreview.js"),r=require("./components/ConversationPreview/ConversationPreviewContent.js"),s=require("./components/TUIChatHeader/TUIChatHeader.js"),a=require("./components/TUIChatHeader/TUIChatHeaderDefault.js"),i=require("./components/TUIMessageList/TUIMessageList.js"),u=require("./components/TUIMessage/TUIMessage.js"),p=require("./components/TUIMessage/MessagePlugins.js"),I=require("./components/TUIMessage/MessageContext.js"),C=require("./components/TUIMessageInput/TUIMessageInput.js"),x=require("./components/TUIMessageInput/TUIMessageInputDefault.js"),c=require("./components/TUIMessageInput/InputPluginsDefalut.js"),U=require("./components/TUIProfile/TUIProfile.js"),T=require("./components/TUIProfile/TUIProfileDefault.js"),v=require("./components/Avatar/Avatar.js"),d=require("./components/Avatar/default.js"),l=require("./components/ConversationSearch/ConversationSearchInput.js"),m=require("./components/ConversationSearch/ConversationSearchResult.js"),g=require("./components/TUIManage/TUIManage.js"),M=require("./components/Popup/index.js"),P=require("./components/Checkbox/index.js"),f=require("./components/DivWithEdit/DivWithEdit.js"),h=require("./components/Icon/Icon.js"),j=require("./components/Icon/type.js"),q=require("./components/EmptyStateIndicator/EmptyStateIndicator.js"),S=require("./components/Input/Input.js"),A=require("./components/Model/index.js"),y=require("./components/Plugins/index.js"),b=require("./components/Switch/Switch.js"),w=require("./components/Toast/index.js"),D=require("./components/TUIContact/TUIContactList/TUIContactList.js"),L=require("./components/TUIContact/TUIContactInfo/TUIContactInfo.js"),H=require("./components/TUIContact/TUIContact.js"),k=require("./context/UIKitContext.js"),E=require("./context/UIManagerContext.js"),G=require("./context/TUIChatStateContext.js"),z=require("./context/TUIChatActionContext.js"),O=require("./context/TUIMessageContext.js"),W=require("./context/ComponentContext.js"),K=require("./context/TUIMessageInputContext.js"),R=require("./context/TUIContactContext.js"),N=require("./hooks/useConversation.js"),V=require("./hooks/useProfile.js"),_=require("./locales/index.js"),B=require("./utils/env.js"),F=require("./components/TUIChat/TUIChat.js");function J(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var Q=J(require("i18next"));new e,exports.TUIConversation=t.TUIConversation,exports.UnMemoizedTUIConversation=t.UnMemoizedTUIConversation,exports.TUIConversationList=o.TUIConversationList,exports.UnMemoTUIConversationList=o.UnMemoTUIConversationList,exports.ConversationPreview=n.ConversationPreview,exports.ConversationPreviewContent=r.ConversationPreviewContent,exports.unMemoConversationPreviewContent=r.unMemoConversationPreviewContent,exports.TUIChatHeader=s.TUIChatHeader,exports.TUIChatHeaderDefault=a.TUIChatHeaderDefault,exports.TUIMessageList=i.TUIMessageList,exports.TUIMessage=u.TUIMessage,exports.MessagePlugins=p.MessagePlugins,exports.MessageContext=I.MessageContext,exports.TUIMessageInput=C.TUIMessageInput,exports.TUIMessageInputDefault=x.TUIMessageInputDefault,exports.InputPluginsDefalut=c.InputPluginsDefalut,exports.TUIProfile=U.TUIProfile,exports.TUIProfileDefault=T.TUIProfileDefault,exports.Avatar=v.Avatar,exports.defaultGroupAvatarAVChatRoom=d.defaultGroupAvatarAVChatRoom,exports.defaultGroupAvatarMeeting=d.defaultGroupAvatarMeeting,exports.defaultGroupAvatarPublic=d.defaultGroupAvatarPublic,exports.defaultGroupAvatarWork=d.defaultGroupAvatarWork,exports.defaultUserAvatar=d.defaultUserAvatar,exports.ConversationSearchInput=l.ConversationSearchInput,exports.ConversationSearchResult=m.ConversationSearchResult,exports.TUIManage=g.TUIManage,exports.Popup=M.Popup,exports.Checkbox=P.Checkbox,exports.DivWithEdit=f.DivWithEdit,exports.Icon=h.Icon,exports.changeTypeToIconClassName=h.changeTypeToIconClassName,Object.defineProperty(exports,"IconTypes",{enumerable:!0,get:function(){return j.IconTypes}}),exports.EmptyStateIndicator=q.EmptyStateIndicator,exports.Input=S.Input,exports.Model=A.Model,exports.Plugins=y.Plugins,exports.Switch=b.Switch,exports.Toast=w.Toast,exports.TUIContactList=D.TUIContactList,exports.TUIContactInfo=L.TUIContactInfo,exports.UnMemoizedTUIContactInfo=L.UnMemoizedTUIContactInfo,exports.TUIContact=H.TUIContact,exports.UnMemoizedTUIContact=H.UnMemoizedTUIContact,exports.UIKitProvider=k.UIKitProvider,exports.useUIKit=k.useUIKit,exports.UIManagerProvider=E.UIManagerProvider,exports.useUIManager=E.useUIManager,exports.TUIChatStateContext=G.TUIChatStateContext,exports.TUIChatStateContextProvider=G.TUIChatStateContextProvider,exports.useTUIChatStateContext=G.useTUIChatStateContext,exports.TUIChatActionContext=z.TUIChatActionContext,exports.TUIChatActionProvider=z.TUIChatActionProvider,exports.useTUIChatActionContext=z.useTUIChatActionContext,exports.TUIMessageContext=O.TUIMessageContext,exports.TUIMessageContextProvider=O.TUIMessageContextProvider,Object.defineProperty(exports,"messageShowType",{enumerable:!0,get:function(){return O.messageShowType}}),exports.useTUIMessageContext=O.useTUIMessageContext,exports.ComponentContext=W.ComponentContext,exports.ComponentProvider=W.ComponentProvider,exports.useComponentContext=W.useComponentContext,exports.TUIMessageInputContext=K.TUIMessageInputContext,exports.TUIMessageInputContextProvider=K.TUIMessageInputContextProvider,exports.useTUIMessageInputContext=K.useTUIMessageInputContext,exports.TUIContactContext=R.TUIContactContext,exports.TUIContactContextProvider=R.TUIContactContextProvider,exports.useTUIContactContext=R.useTUIContactContext,exports.useConversation=N.useConversation,exports.useProfile=V.useProfile,exports.t=_.t,Object.defineProperty(exports,"isH5",{enumerable:!0,get:function(){return B.isH5}}),Object.defineProperty(exports,"isPC",{enumerable:!0,get:function(){return B.isPC}}),exports.setPlatform=B.setPlatform,exports.TUIChat=F.TUIChat,Object.defineProperty(exports,"i18next",{enumerable:!0,get:function(){return Q.default}});
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./TUIChat.js"),r=require("./TUIConversation.js"),t=require("./TUIContact.js"),o=require("./TUIProfile.js"),s={TUIGlobal:o,TUIChat:e,TUIConversation:r,TUIContact:t,TUIProfile:o};exports.message=s;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={TUIChat:require("./TUIChat.js"),TUIConversation:require("./TUIConversation.js"),TUIContact:require("./TUIContact.js"),TUIProfile:require("./TUIProfile.js")};exports.message=e;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("i18next"),t=require("react-i18next"),r=require("./en-US/index.js"),n=require("./zh-CN/index.js"),a=require("./ja-JP/index.js"),i=require("./ko-KR/index.js");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=s(e),o={"en-US":{translation:r.message},"zh-CN":{translation:n.message},"ja-JP":{translation:a.message},"ko-KR":{translation:i.message}};u.default.use(t.initReactI18next).init({resources:o,lng:"en-US",interpolation:{escapeValue:!1}});var l=u.default.t;Object.defineProperty(exports,"i18next",{enumerable:!0,get:function(){return u.default}}),exports.t=l;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("i18next"),t=require("react-i18next"),r=require("./en-US/index.js"),n=require("./zh-CN/index.js"),a=require("./ja-JP/index.js"),i=require("./ko-KR/index.js"),s=require("./zh-TW/index.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=u(e),l={"en-US":{translation:r.message},"zh-CN":{translation:n.message},"ja-JP":{translation:a.message},"ko-KR":{translation:i.message},"zh-TW":{translation:s.message}};o.default.use(t.initReactI18next).init({resources:l,lng:"en-US",interpolation:{escapeValue:!1}});var d=o.default.t;Object.defineProperty(exports,"i18next",{enumerable:!0,get:function(){return o.default}}),exports.t=d;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={chats:"消息",contacts:"通讯录",TUIChat:require("./TUIChat.js"),TUIConversation:require("./TUIConversation.js"),TUIContact:require("./TUIContact.js"),TUIProfile:require("./TUIProfile.js")};exports.message=e;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={TUIChat:require("./TUIChat.js"),TUIConversation:require("./TUIConversation.js"),TUIContact:require("./TUIContact.js"),TUIProfile:require("./TUIProfile.js")};exports.message=e;
@@ -0,0 +1 @@
1
+ "use strict";module.exports={Recall:"撤回",Reference:"引用",Forward:"轉發",Copy:"複製",Delete:"刪除","Forward to":"轉發給","recalled a message":"撤回了一條消息","Re-edit":"重新編輯",Resend:"重新發送",You:"您","Recent Chats":"會話紀錄","Frequently Contacted":"頻繁聯繫","No Result":"無結果","Search Result":"搜尋結果",Image:"圖片",Video:"影片",File:"檔案","Enter a message":"請輸入訊息","No More":"沒有了","Error deleting message":"刪除訊息失敗","The message recall exceeded the time limit (default 2 minutes)":"訊息撤回超時(預設 2 分鐘)","Error revoke Message":"訊息撤回失敗","Custom message":"自訂訊息"};
@@ -0,0 +1 @@
1
+ "use strict";module.exports={"Enter a userID":"請輸入用戶 ID,回車搜索","Enter the verification info":"請填寫驗證信息","Request to join":"申請加入",Requested:"已申請",Accept:"接受",Refuse:"拒絕",Handled:"已處理",Friends:"我的好友","Send Message":"發送消息",Signature:"個性簽名","Successful application, waiting for the administrator to agree to join the group application":"等待管理員同意","New Contacts":"新的聯繫人","Blocked List":"黑名單","Group List":"我的群聊","No Result":"無搜索結果",ID:"ID",User:"聯繫人","Add Friend":"添加好友",remark:"備註",block:"加入黑名單","Delete friend":"刪除好友","waiting for verification":"等待驗證","verification info":"驗證信息","Send application":"發送申請",Agree:"同意"};
@@ -0,0 +1 @@
1
+ "use strict";module.exports={"Start chat":"發起會話","New one-to-one chat":"發起單聊","New group chat":"發起群聊",Delete:"刪除會話",Pin:"置頂會話",Unpin:"取消置頂","Conversation Information":"會話資訊",Search:"搜尋","Add Participants":"創建群聊","No conversation":"無會話",Next:"下一步","Group Name":"群組名稱","Group ID":"群組 ID","Group Type":"群組類型",Participants:"成員",Create:"創建",Details:"詳情",Work:"好友工作群(Work)",Public:"陌生人社交群(Public)",Meeting:"臨時會議群(Meeting)",AVChatRoom:"直播群(AVChatroom)",Community:"社群(Community)","Users can join the group only via invitation by existing members. The invitation does not need to be agreed by the invitee or approved by the group owner. See the documentation for details.":"類似普通微信群,創建後僅支持已在群內的好友邀請加群,且無需被邀請方同意或群主同意。","After a public group is created, the group owner can designate group admins. To join the group, a user needs to search the group ID and send a request, which needs to be approved by the group owner or an admin before the user can join the基礎設施。See the documentation for details.":"類似 QQ 群,創建後群主可以指定群管理員,用戶搜索群 ID 發起加群申請後,需要群主或管理員審批通過才能入群。","After the group is created, a user can join and quit the group freely and can view the messages sent before joining the group. It is suitable for scenarios that integrate Tencent Real-Time Communication (TRTC), such as audio and video conferences and online education. See the documentation for details.":"創建後可以隨意進出,且支持查看入群前消息;適合用於音視頻會議場景、在線教育場景等與即時音視頻產品結合的場景。","After a group is created, a user can join and quit the group freely. The group can have an unlimited number of members, but it does not store message history. It can be combined with Live Video Broadcasting (LVB) to support on-screen comment scenarios. See the documentation for details.":"創建後可以隨意進出,沒有群成員數量上限,但不支持歷史消息存儲;適合與直播產品結合,用於彈幕聊天場景。","After creation, you can enter and leave at will, support up to 100,000 people, support historical message storage, and after users search for group ID and initiate a group application, they can join the group without administrator approval. See product documentation for details.":"創建後可以隨意進出,最多支持100000人,支持歷史消息存儲,用戶搜索群 ID 發起加群申請後,無需管理員審批即可進群。","Participant cannot be empty":"不能為空"};
@@ -0,0 +1 @@
1
+ "use strict";module.exports={"Personal information":"個人信息",Signature:"個性簽名",Gender:"性別",Male:"男",Female:"女",AllowType:"加好友驗證方式",NeedConfirm:"需要驗證",AllowAny:"同意任何用戶加好友",DenyAny:"拒絕任何用戶加「好友」",Birthday:"生日",Unknown:"未設置"};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={TUIChat:require("./TUIChat.js"),TUIConversation:require("./TUIConversation.js"),TUIContact:require("./TUIContact.js"),TUIProfile:require("./TUIProfile.js")};exports.message=e;
Binary file
Binary file
@@ -1,11 +1,11 @@
1
- import React from 'react';
1
+ import React__default from 'react';
2
2
 
3
3
  interface AvatarProps {
4
4
  image?: string | null;
5
5
  /** click event handler */
6
- onClick?: (event: React.BaseSyntheticEvent) => void;
6
+ onClick?: (event: React__default.BaseSyntheticEvent) => void;
7
7
  /** mouseOver event handler */
8
- onMouseOver?: (event: React.BaseSyntheticEvent) => void;
8
+ onMouseOver?: (event: React__default.BaseSyntheticEvent) => void;
9
9
  /** Size in pixels
10
10
  * @default 32px
11
11
  */
@@ -17,6 +17,6 @@ interface AvatarProps {
17
17
  update?: (url: string) => void;
18
18
  list?: Array<string>;
19
19
  }
20
- declare function Avatar<T extends AvatarProps>(props: T): React.ReactElement;
20
+ declare function Avatar<T extends AvatarProps>(props: T): React__default.ReactElement;
21
21
 
22
22
  export { Avatar, AvatarProps };
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import React from 'react';
2
+ import React__default from 'react';
3
3
 
4
4
  interface onChangeParams {
5
5
  checked?: boolean;
@@ -12,6 +12,6 @@ interface SelectProps {
12
12
  value?: any;
13
13
  id?: string;
14
14
  }
15
- declare function Checkbox<T extends SelectProps>(props: React.PropsWithChildren<T>): react_jsx_runtime.JSX.Element;
15
+ declare function Checkbox<T extends SelectProps>(props: React__default.PropsWithChildren<T>): react_jsx_runtime.JSX.Element;
16
16
 
17
17
  export { Checkbox };
@@ -1 +1 @@
1
- import{__spreadArray as e,__assign as t,__awaiter as r,__generator as o}from"tslib";import{jsxs as a,Fragment as n,jsx as i}from"react/jsx-runtime";import{useState as c}from"react";import{useTranslation as s}from"react-i18next";import{TUIConversationService as u}from"@tencentcloud/chat-uikit-engine";import{Input as p}from"../Input/Input.js";import{Icon as l}from"../Icon/Icon.js";import{IconTypes as m}from"../Icon/type.js";import{Avatar as v}from"../Avatar/Avatar.js";import{defaultUserAvatar as d,defaultGroupAvatarAVChatRoom as f,defaultGroupAvatarMeeting as g,defaultGroupAvatarPublic as h,defaultGroupAvatarWork as C}from"../Avatar/default.js";import{PageStateTypes as I}from"./ConversationCreate.js";import{ConversationGroupTypeInfo as x,typeInfoList as N,GroupType as b}from"./ConversationGroupTypeInfo.js";import{useTUIKitContext as T}from"../../context/TUIKitContext.js";import"../../context/TUIMessageContext.js";function y(y){var k=this,U=y.profileList,j=y.pageState,P=y.setPageState,G=y.createConversation,D=y.setConversationCreated,A=s().t,R=T(),w=R.setActiveConversation,O=R.myProfile,S=e([],U,!0);O&&S.unshift(O);var L=S.map((function(e){return e.nick||e.userID})).toString(),W=c(L.length>=15?"".concat(L.slice(0,12),"..."):L),_=W[0],E=W[1],M=c(""),Y=M[0],q=M[1],z=c("Work"),H=z[0],K=z[1],V=function(e,t){var r=e.target.value;switch(t){case"name":E(r);break;case"id":q(r);break;case"type":K(r)}},B=function(){P(I.GROUP_TYPE)};return j!==I.GROUP_TYPE?a(n,{children:[a("div",t({className:"tui-conversation-create-group-detail"},{children:[i("div",t({className:"create-group-box create-group-name"},{children:i(p,{maxLength:15,value:_,onChange:function(e){V(e,"name")},border:"bottom",customClassName:"input-group-name",clearable:!0,prefix:i("div",t({className:"input-group-title"},{children:A("TUIConversation.Group Name")}))})})),i("div",t({className:"create-group-box create-group-id"},{children:i(p,{border:"bottom",customClassName:"input-group-text",clearable:!0,value:Y,onChange:function(e){V(e,"id")},prefix:i("div",t({className:"input-group-title"},{children:A("TUIConversation.Group ID")}))})})),i("div",t({className:"create-group-box create-group-type",onClick:B},{children:i(p,{readOnly:!0,border:"bottom",customClassName:"input-group-text",prefix:i("div",t({className:"input-group-title"},{children:A("TUIConversation.Group Type")})),suffix:i(l,{onClick:B,type:m.ARROW_RIGHT,width:7,height:12}),value:A("TUIConversation.".concat(H)),onChange:function(e){V(e,"type")}})})),i("div",t({className:"create-group-illustrate"},{children:A("TUIConversation.".concat(null==N?void 0:N.find((function(e){return e.type===H})).des))})),a("div",t({className:"create-group-portrait"},{children:[i("div",t({className:"create-group-portrait-title"},{children:A("TUIConversation.Participants")})),i("div",t({className:"create-group-portrait-info-container"},{children:U.map((function(e){var r=e.avatar,o=e.userID,n=e.nick;return a("div",t({className:"create-group-portrait-info"},{children:[i(v,{shape:"square",size:50,image:r||d}),i("div",t({className:"create-group-portrait-info-nick"},{children:n}))]}),o)}))}))]}))]})),i("div",t({className:"tui-conversation-create-next-container"},{children:i("div",t({role:"presentation",className:"tui-conversation-create-next",onClick:function(){return r(k,void 0,void 0,(function(){var e,t,r;return o(this,(function(o){switch(o.label){case 0:return e=U.map((function(e){return{userID:e.userID}})),t=function(e){switch(e){case"Work":return C;case"Public":return h;case"Meeting":return g;case"AVChatRoom":return f;default:return""}}(H),[4,G({name:_,type:b[H],groupID:Y,avatar:t,memberList:e})];case 1:return r=o.sent(),w(r),u.switchConversation(null==r?void 0:r.conversationID),D(!1),[2]}}))}))}},{children:A("TUIConversation.Create")}))}))]}):i(x,{groupType:H,setGroupType:K,setPageState:P})}export{y as ConversationCreatGroupDetail};
1
+ import{__spreadArray as e,__assign as t,__awaiter as r,__generator as o}from"tslib";import{jsxs as n,Fragment as a,jsx as i}from"react/jsx-runtime";import{useState as c}from"react";import{useTranslation as s}from"react-i18next";import{TUIConversationService as u}from"@tencentcloud/chat-uikit-engine";import{Input as p}from"../Input/Input.js";import{Icon as l}from"../Icon/Icon.js";import{IconTypes as m}from"../Icon/type.js";import{Avatar as d}from"../Avatar/Avatar.js";import{defaultUserAvatar as v,defaultGroupAvatarAVChatRoom as f,defaultGroupAvatarMeeting as g,defaultGroupAvatarPublic as h,defaultGroupAvatarWork as C}from"../Avatar/default.js";import{PageStateTypes as I}from"./ConversationCreate.js";import{ConversationGroupTypeInfo as x,typeInfoList as N,GroupType as b}from"./ConversationGroupTypeInfo.js";import"@tencentcloud/tui-core";import{useUIManager as T}from"../../context/UIManagerContext.js";import"../../context/TUIMessageContext.js";function y(y){var k=this,U=y.profileList,j=y.pageState,P=y.setPageState,G=y.createConversation,D=y.setConversationCreated,A=s().t,R=T(),w=R.setActiveConversation,O=R.myProfile,S=e([],U,!0);O&&S.unshift(O);var L=S.map((function(e){return e.nick||e.userID})).toString(),M=c(L.length>=15?"".concat(L.slice(0,12),"..."):L),W=M[0],_=M[1],E=c(""),Y=E[0],q=E[1],z=c("Work"),H=z[0],V=z[1],B=function(e,t){var r=e.target.value;switch(t){case"name":_(r);break;case"id":q(r);break;case"type":V(r)}},F=function(){P(I.GROUP_TYPE)};return j!==I.GROUP_TYPE?n(a,{children:[n("div",t({className:"tui-conversation-create-group-detail"},{children:[i("div",t({className:"create-group-box create-group-name"},{children:i(p,{maxLength:15,value:W,onChange:function(e){B(e,"name")},border:"bottom",customClassName:"input-group-name",clearable:!0,prefix:i("div",t({className:"input-group-title"},{children:A("TUIConversation.Group Name")}))})})),i("div",t({className:"create-group-box create-group-id"},{children:i(p,{border:"bottom",customClassName:"input-group-text",clearable:!0,value:Y,onChange:function(e){B(e,"id")},prefix:i("div",t({className:"input-group-title"},{children:A("TUIConversation.Group ID")}))})})),i("div",t({className:"create-group-box create-group-type",onClick:F},{children:i(p,{readOnly:!0,border:"bottom",customClassName:"input-group-text",prefix:i("div",t({className:"input-group-title"},{children:A("TUIConversation.Group Type")})),suffix:i(l,{onClick:F,type:m.ARROW_RIGHT,width:7,height:12}),value:A("TUIConversation.".concat(H)),onChange:function(e){B(e,"type")}})})),i("div",t({className:"create-group-illustrate"},{children:A("TUIConversation.".concat(null==N?void 0:N.find((function(e){return e.type===H})).des))})),n("div",t({className:"create-group-portrait"},{children:[i("div",t({className:"create-group-portrait-title"},{children:A("TUIConversation.Participants")})),i("div",t({className:"create-group-portrait-info-container"},{children:U.map((function(e){var r=e.avatar,o=e.userID,a=e.nick;return n("div",t({className:"create-group-portrait-info"},{children:[i(d,{shape:"square",size:50,image:r||v}),i("div",t({className:"create-group-portrait-info-nick"},{children:a}))]}),o)}))}))]}))]})),i("div",t({className:"tui-conversation-create-next-container"},{children:i("div",t({role:"presentation",className:"tui-conversation-create-next",onClick:function(){return r(k,void 0,void 0,(function(){var e,t,r;return o(this,(function(o){switch(o.label){case 0:return e=U.map((function(e){return{userID:e.userID}})),t=function(e){switch(e){case"Work":return C;case"Public":return h;case"Meeting":return g;case"AVChatRoom":return f;default:return""}}(H),[4,G({name:W,type:b[H],groupID:Y,avatar:t,memberList:e})];case 1:return r=o.sent(),w(r),u.switchConversation(null==r?void 0:r.conversationID),D(!1),[2]}}))}))}},{children:A("TUIConversation.Create")}))}))]}):i(x,{groupType:H,setGroupType:V,setPageState:P})}export{y as ConversationCreatGroupDetail};
@@ -1 +1 @@
1
- import{__assign as t}from"tslib";import{jsxs as e,Fragment as r,jsx as o}from"react/jsx-runtime";import{useState as i,useMemo as a}from"react";import{useTranslation as s}from"react-i18next";import{Icon as n}from"../Icon/Icon.js";import{IconTypes as c}from"../Icon/type.js";import{ConversationCreateUserSelectList as C}from"./ConversationCreateUserSelectList.js";import{ConversationCreatGroupDetail as m}from"./ConversationCreatGroupDetail.js";import{useTUIKitContext as E}from"../../context/TUIKitContext.js";import"../../context/TUIMessageContext.js";import{useConversation as p}from"../../hooks/useConversation.js";var v;function l(l){var f=l.className,T=void 0===f?"":f,u=l.setConversationCreated,S=l.conversationList,d=void 0===S?[]:S,L=s().t,U=i(!1),h=U[0],I=U[1],R=i(v.USER_SELECT),_=R[0],j=R[1],x=i([]),A=x[0],P=x[1],G=E().chat,g=p(G).createConversation,N=function(){if(h)switch(_){case v.USER_SELECT:I(!1);break;case v.CREATE_DETAIL:j(v.USER_SELECT),P([]);break;case v.GROUP_TYPE:j(v.CREATE_DETAIL)}else u(!1)};return a((function(){return e(r,{children:[e("div",t({className:"tui-conversation-create-header"},{children:[o(n,{onClick:N,type:c.BACK,width:9,height:16}),o("div",t({className:"title"},{children:L(h?"TUIConversation.Add Participants":"TUIConversation.Start chat")}))]})),_===v.USER_SELECT?o(C,{isCreateGroup:h,setIsCreateGroup:I,className:T,selectList:A,setSelectList:P,conversationList:d,setConversationCreated:u,setPageState:j}):o(m,{pageState:_,setPageState:j,profileList:A.map((function(t){return null==t?void 0:t.profile})),createConversation:g,setConversationCreated:u})]})}),[h,A,_])}!function(t){t.USER_SELECT="Next",t.CREATE_DETAIL="Create",t.GROUP_TYPE="GroupType"}(v||(v={}));export{l as ConversationCreate,v as PageStateTypes};
1
+ import{__assign as t}from"tslib";import{jsxs as e,Fragment as o,jsx as r}from"react/jsx-runtime";import{useState as i,useMemo as a}from"react";import{useTranslation as n}from"react-i18next";import{Icon as s}from"../Icon/Icon.js";import{IconTypes as c}from"../Icon/type.js";import{ConversationCreateUserSelectList as C}from"./ConversationCreateUserSelectList.js";import{ConversationCreatGroupDetail as m}from"./ConversationCreatGroupDetail.js";import{useUIKit as E}from"../../context/UIKitContext.js";import"@tencentcloud/chat-uikit-engine";import"../../context/TUIMessageContext.js";import{useConversation as p}from"../../hooks/useConversation.js";var l;function v(v){var f=v.className,u=void 0===f?"":f,T=v.setConversationCreated,d=v.conversationList,S=void 0===d?[]:d,L=n().t,h=i(!1),U=h[0],I=h[1],R=i(l.USER_SELECT),_=R[0],j=R[1],x=i([]),A=x[0],P=x[1],g=E().chat,G=p(g).createConversation,k=function(){if(U)switch(_){case l.USER_SELECT:I(!1);break;case l.CREATE_DETAIL:j(l.USER_SELECT),P([]);break;case l.GROUP_TYPE:j(l.CREATE_DETAIL)}else T(!1)};return a((function(){return e(o,{children:[e("div",t({className:"tui-conversation-create-header"},{children:[r(s,{onClick:k,type:c.BACK,width:9,height:16}),r("div",t({className:"title"},{children:L(U?"TUIConversation.Add Participants":"TUIConversation.Start chat")}))]})),_===l.USER_SELECT?r(C,{isCreateGroup:U,setIsCreateGroup:I,className:u,selectList:A,setSelectList:P,conversationList:S,setConversationCreated:T,setPageState:j}):r(m,{pageState:_,setPageState:j,profileList:A.map((function(t){return null==t?void 0:t.profile})),createConversation:G,setConversationCreated:T})]})}),[U,A,_])}!function(t){t.USER_SELECT="Next",t.CREATE_DETAIL="Create",t.GROUP_TYPE="GroupType"}(l||(l={}));export{v as ConversationCreate,l as PageStateTypes};
@@ -1 +1 @@
1
- import{__assign as e,__awaiter as t,__generator as r,__spreadArray as n}from"tslib";import{jsxs as i,Fragment as o,jsx as c}from"react/jsx-runtime";import{useState as a,useRef as s}from"react";import{useTranslation as u}from"react-i18next";import{TUIConversationService as l}from"@tencentcloud/chat-uikit-engine";import{Input as m}from"../Input/Input.js";import{Icon as p}from"../Icon/Icon.js";import{IconTypes as v}from"../Icon/type.js";import{ConversationCreateSelectView as h}from"./ConversationCreateSelectView.js";import{Avatar as d}from"../Avatar/Avatar.js";import{defaultUserAvatar as f}from"../Avatar/default.js";import{useConversationCreate as C}from"./hooks/useConversationCreate.js";import{useTUIKitContext as x}from"../../context/TUIKitContext.js";import"../../context/TUIMessageContext.js";import{PageStateTypes as I}from"./ConversationCreate.js";import{useConversation as g}from"../../hooks/useConversation.js";import{Toast as N}from"../Toast/index.js";function k(k){var j=this,b=k.isCreateGroup,T=k.selectList,y=k.setSelectList,A=k.className,D=k.conversationList,L=k.setIsCreateGroup,S=k.setConversationCreated,w=k.setPageState,U=u().t,E=a(""),R=E[0],F=E[1],G=x(),M=G.chat,P=G.setActiveConversation,z=a({}),H=z[0],K=z[1],O=C(M,D,(function(e){K(e)})).getFriendListSortSearchResult,V=g(M).createConversation,_=s(new Map);return i(o,{children:[c(m,{className:"tui-conversation-create-search-input",placeholder:U("TUIConversation.Search"),clearable:!0,value:R,onChange:function(e){return t(j,void 0,void 0,(function(){var t,n;return r(this,(function(r){switch(r.label){case 0:return t=e.target.value,F(t),n=K,[4,O(t)];case 1:return n.apply(void 0,[r.sent()]),[2]}}))}))},prefix:c(p,{type:v.SEARCH,height:16,width:16})}),b&&c(h,{selectList:T,setSelectList:y}),!b&&i("div",e({role:"presentation",className:"tui-user",onClick:function(){L(!0),_.current.clear(),y([])}},{children:[c(p,{type:v.ADD}),c("div",e({className:"tui-user-name active"},{children:U("TUIConversation.New group chat")}))]})),c("div",e({className:"tui-conversation-create ".concat(A)},{children:c("div",e({className:"tui-conversation-create-container"},{children:c("div",e({className:"tui-group-container"},{children:Object.keys(H).map((function(o){return 0!==H[o].length&&i("div",e({className:"tui-group-box"},{children:[c("div",e({className:"title"},{children:o})),H[o].map((function(a,s){var u=a.userID,m=a.nick,p=a.avatar;return i("label",e({role:"presentation",className:"tui-user tui-user-checkbox-label",htmlFor:"userChecked-".concat(o,"-").concat(u),onClick:function(e){!function(e){t(j,void 0,void 0,(function(){var t,n;return r(this,(function(r){switch(r.label){case 0:return b?[2]:(t=e.userID,[4,V("C2C".concat(t))]);case 1:return n=r.sent(),S(!1),P(n),l.switchConversation(null==n?void 0:n.conversationID),[2]}}))}))}(a)}},{children:[c(d,{size:30,image:p||f}),c("div",e({className:"tui-user-name text-ellipsis"},{children:m||"".concat(u)})),b&&c("input",{onChange:function(e){!function(e,t,r){void 0===r&&(r=[]);var i=t.userID,o=e.target.checked;r.forEach((function(e){e.checked=o})),o?T.push({profile:t,domList:r}):T.splice(T.findIndex((function(e){return e.profile.userID===i})),1),y(n([],T,!0))}(e,a,_.current.get(u))},type:"checkbox",ref:function(e){!function(e,t){if(t){_.current.has(e)||_.current.set(e,[]);var r=_.current.get(e);0!==r.length&&r.some((function(e){return e.id===t.id}))||r.push(t)}}(u,e)},id:"userChecked-".concat(o,"-").concat(u),className:"tui-user-checkbox"})]}),u)}))]}),o)}))}))}))})),b&&c("div",e({className:"tui-conversation-create-next-container"},{children:c("div",e({role:"presentation",className:"tui-conversation-create-next",onClick:function(){T&&0===T.length?N({text:U("TUIConversation.Participant cannot be empty"),type:"error"}):w(I.CREATE_DETAIL)}},{children:U("TUIConversation.Next")}))}))]})}export{k as ConversationCreateUserSelectList};
1
+ import{__assign as e,__awaiter as t,__generator as r,__spreadArray as n}from"tslib";import{jsxs as o,Fragment as i,jsx as c}from"react/jsx-runtime";import{useState as a,useRef as s}from"react";import{useTranslation as u}from"react-i18next";import{TUIConversationService as l}from"@tencentcloud/chat-uikit-engine";import{Input as m}from"../Input/Input.js";import{Icon as p}from"../Icon/Icon.js";import{IconTypes as v}from"../Icon/type.js";import{ConversationCreateSelectView as h}from"./ConversationCreateSelectView.js";import{Avatar as d}from"../Avatar/Avatar.js";import{defaultUserAvatar as f}from"../Avatar/default.js";import{useConversationCreate as C}from"./hooks/useConversationCreate.js";import{useUIKit as x}from"../../context/UIKitContext.js";import{useUIManager as I}from"../../context/UIManagerContext.js";import"../../context/TUIMessageContext.js";import{PageStateTypes as g}from"./ConversationCreate.js";import{useConversation as N}from"../../hooks/useConversation.js";import{Toast as j}from"../Toast/index.js";function k(k){var b=this,y=k.isCreateGroup,A=k.selectList,D=k.setSelectList,L=k.className,S=k.conversationList,T=k.setIsCreateGroup,w=k.setConversationCreated,U=k.setPageState,E=u().t,M=a(""),R=M[0],F=M[1],G=x().chat,P=I().setActiveConversation,z=a({}),H=z[0],K=z[1],O=C(G,S,(function(e){K(e)})).getFriendListSortSearchResult,V=N(G).createConversation,_=s(new Map);return o(i,{children:[c(m,{className:"tui-conversation-create-search-input",placeholder:E("TUIConversation.Search"),clearable:!0,value:R,onChange:function(e){return t(b,void 0,void 0,(function(){var t,n;return r(this,(function(r){switch(r.label){case 0:return t=e.target.value,F(t),n=K,[4,O(t)];case 1:return n.apply(void 0,[r.sent()]),[2]}}))}))},prefix:c(p,{type:v.SEARCH,height:16,width:16})}),y&&c(h,{selectList:A,setSelectList:D}),!y&&o("div",e({role:"presentation",className:"tui-user",onClick:function(){T(!0),_.current.clear(),D([])}},{children:[c(p,{type:v.ADD}),c("div",e({className:"tui-user-name active"},{children:E("TUIConversation.New group chat")}))]})),c("div",e({className:"tui-conversation-create ".concat(L)},{children:c("div",e({className:"tui-conversation-create-container"},{children:c("div",e({className:"tui-group-container"},{children:Object.keys(H).map((function(i){return 0!==H[i].length&&o("div",e({className:"tui-group-box"},{children:[c("div",e({className:"title"},{children:i})),H[i].map((function(a,s){var u=a.userID,m=a.nick,p=a.avatar;return o("label",e({role:"presentation",className:"tui-user tui-user-checkbox-label",htmlFor:"userChecked-".concat(i,"-").concat(u),onClick:function(e){!function(e){t(b,void 0,void 0,(function(){var t,n;return r(this,(function(r){switch(r.label){case 0:return y?[2]:(t=e.userID,[4,V("C2C".concat(t))]);case 1:return n=r.sent(),w(!1),P(n),l.switchConversation(null==n?void 0:n.conversationID),[2]}}))}))}(a)}},{children:[c(d,{size:30,image:p||f}),c("div",e({className:"tui-user-name text-ellipsis"},{children:m||"".concat(u)})),y&&c("input",{onChange:function(e){!function(e,t,r){void 0===r&&(r=[]);var o=t.userID,i=e.target.checked;r.forEach((function(e){e.checked=i})),i?A.push({profile:t,domList:r}):A.splice(A.findIndex((function(e){return e.profile.userID===o})),1),D(n([],A,!0))}(e,a,_.current.get(u))},type:"checkbox",ref:function(e){!function(e,t){if(t){_.current.has(e)||_.current.set(e,[]);var r=_.current.get(e);0!==r.length&&r.some((function(e){return e.id===t.id}))||r.push(t)}}(u,e)},id:"userChecked-".concat(i,"-").concat(u),className:"tui-user-checkbox"})]}),u)}))]}),i)}))}))}))})),y&&c("div",e({className:"tui-conversation-create-next-container"},{children:c("div",e({role:"presentation",className:"tui-conversation-create-next",onClick:function(){A&&0===A.length?j({text:E("TUIConversation.Participant cannot be empty"),type:"error"}):U(g.CREATE_DETAIL)}},{children:E("TUIConversation.Next")}))}))]})}export{k as ConversationCreateUserSelectList};
@@ -1 +1 @@
1
- import{__awaiter as e,__generator as t}from"tslib";import{useState as r,useEffect as o}from"react";import n from"@tencentcloud/chat";import{strChineseFirstPy as i}from"../static/word.js";import"react/jsx-runtime";import"../../TUIKit/TUIKit.js";import"@tencentcloud/chat-uikit-engine";import"react-i18next";import"../../../context/TUIMessageContext.js";import"../../../utils/env.js";import"../../Icon/config.js";import"../../Icon/type.js";import"date-fns";import"date-fns/locale";import"../ConversationCreate.js";import"../ConversationGroupTypeInfo.js";import"../../../constants.js";import"../../TUIMessage/hooks/useMessageReply.js";import"../../TUIMessage/MessagePlugins.js";import"../../TUIMessage/MessageContext.js";import"../../TUIMessageInput/hooks/useHandleQuoteMessage.js";import"../../TUIProfile/TUIProfileDefault.js";import{useProfile as s}from"../../../hooks/useProfile.js";var u=function(u,c,a){var l=r(),f=l[0],p=l[1],m=function(e){var t=e.trim(),r=t.charCodeAt(0);return r>40869||r<19968?t.charAt(0):i.charAt(r-19968)},d=function(){return e(void 0,void 0,void 0,(function(){var e,r,o,i;return t(this,(function(t){switch(t.label){case 0:return c.filter((function(e){return(null==e?void 0:e.type)===n.TYPES.CONV_C2C})).slice(0,5).map((function(e){return null==e?void 0:e.userProfile})),[4,u.getFriendList()];case 1:return e=t.sent(),r=e.code,o=e.data,0===r&&(i=v(o.map((function(e){return e.profile}))),p(i),a&&a(i,p)),[2]}}))}))},v=function(e,t){for(var r={"#":[]},o=65;o<=90;o+=1)r[String.fromCharCode(o)]=[];return e.forEach((function(e){var t=e.nick,o=e.userID,n=m(t||o);n>="a"&&n<="z"?r[n.toLocaleUpperCase()].push(e):n<"A"||n>"z"?r["#"].push(e):r[n].push(e)})),Object.keys(r).forEach((function(e){r[e].sort((function(e,t){var r=e.nick,o=e.userID,n=t.nick,i=t.userID;return r||o<n||i||r||o===n||i?1:-1}))})),r},h=s(u).getUserProfile;return o((function(){d()}),[u]),{getFirstLetter:m,queryFriendList:d,getFriendListSortSearchResult:function(r){return e(void 0,void 0,void 0,(function(){var e,o,n,i;return t(this,(function(t){switch(t.label){case 0:return r?[4,h([r])]:[2,f];case 1:return e=t.sent().data,o={},n=!1,Object.keys(f).forEach((function(e){o[e]=f[e].filter((function(e){var t,o,i=e.nick,s=e.userID,u=null==i?void 0:i.toLocaleLowerCase(),c=r.toLocaleLowerCase(),a=s.toLocaleLowerCase();return o="TencentCloudDemo"===(null===(t=process.env)||void 0===t?void 0:t.REACT_APP_ONLINE)?u?u.includes(c):a.includes(c):a===c,n=n||o,o}))})),"TencentCloudDemo"===(null===(i=process.env)||void 0===i?void 0:i.REACT_APP_ONLINE)?[2,o]:[2,n?o:v(e)]}}))}))},friendListSortResult:f}};export{u as useConversationCreate};
1
+ import{__awaiter as e,__generator as t}from"tslib";import{useState as r,useEffect as o}from"react";import n from"@tencentcloud/chat";import{strChineseFirstPy as i}from"../static/word.js";import"react/jsx-runtime";import"react-i18next";import"@tencentcloud/tui-core";import"@tencentcloud/chat-uikit-engine";import"../../../context/TUIMessageContext.js";import"../../../utils/env.js";import"../../Icon/config.js";import"../../Icon/type.js";import"date-fns";import"date-fns/locale";import"../ConversationCreate.js";import"../ConversationGroupTypeInfo.js";import"../../TUIChat/index.js";import"../../../constants.js";import"../../TUIMessage/hooks/useMessageReply.js";import"../../TUIMessage/MessagePlugins.js";import"../../TUIMessage/MessageContext.js";import"../../TUIMessageInput/hooks/useHandleQuoteMessage.js";import"../../TUIProfile/TUIProfileDefault.js";import{useProfile as s}from"../../../hooks/useProfile.js";var u=function(u,c,a){var l=r(),f=l[0],p=l[1],m=function(e){var t=e.trim(),r=t.charCodeAt(0);return r>40869||r<19968?t.charAt(0):i.charAt(r-19968)},d=function(){return e(void 0,void 0,void 0,(function(){var e,r,o,i;return t(this,(function(t){switch(t.label){case 0:return c.filter((function(e){return(null==e?void 0:e.type)===n.TYPES.CONV_C2C})).slice(0,5).map((function(e){return null==e?void 0:e.userProfile})),[4,null==u?void 0:u.getFriendList()];case 1:return e=t.sent()||{},r=e.code,o=e.data,0===r&&(i=v(o.map((function(e){return e.profile}))),p(i),a&&a(i,p)),[2]}}))}))},v=function(e,t){for(var r={"#":[]},o=65;o<=90;o+=1)r[String.fromCharCode(o)]=[];return e.forEach((function(e){var t=e.nick,o=e.userID,n=m(t||o);n>="a"&&n<="z"?r[n.toLocaleUpperCase()].push(e):n<"A"||n>"z"?r["#"].push(e):r[n].push(e)})),Object.keys(r).forEach((function(e){r[e].sort((function(e,t){var r=e.nick,o=e.userID,n=t.nick,i=t.userID;return r||o<n||i||r||o===n||i?1:-1}))})),r},h=s(u).getUserProfile;return o((function(){d()}),[u]),{getFirstLetter:m,queryFriendList:d,getFriendListSortSearchResult:function(r){return e(void 0,void 0,void 0,(function(){var e,o,n,i;return t(this,(function(t){switch(t.label){case 0:return r?[4,h([r])]:[2,f];case 1:return e=t.sent().data,o={},n=!1,Object.keys(f).forEach((function(e){o[e]=f[e].filter((function(e){var t,o,i=e.nick,s=e.userID,u=null==i?void 0:i.toLocaleLowerCase(),c=r.toLocaleLowerCase(),a=s.toLocaleLowerCase();return o="TencentCloudDemo"===(null===(t=process.env)||void 0===t?void 0:t.REACT_APP_ONLINE)?u?u.includes(c):a.includes(c):a===c,n=n||o,o}))})),"TencentCloudDemo"===(null===(i=process.env)||void 0===i?void 0:i.REACT_APP_ONLINE)?[2,o]:[2,n?o:v(e)]}}))}))},friendListSortResult:f}};export{u as useConversationCreate};
@@ -1,10 +1,10 @@
1
- import React from 'react';
1
+ import React__default from 'react';
2
2
  import { Conversation } from '@tencentcloud/chat';
3
3
 
4
4
  interface ConversationListContainerProps {
5
5
  error?: Error | null;
6
6
  loading?: boolean;
7
- setConversationList?: React.Dispatch<React.SetStateAction<Array<Conversation>>>;
7
+ setConversationList?: React__default.Dispatch<React__default.SetStateAction<Array<Conversation>>>;
8
8
  }
9
9
 
10
10
  export { ConversationListContainerProps };
@@ -1,6 +1,6 @@
1
- import React from 'react';
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React__default from 'react';
2
3
  import { Conversation } from '@tencentcloud/chat';
3
- import { TUIKitContextValue } from '../../context/TUIKitContext.js';
4
4
  import { AvatarProps } from '../Avatar/Avatar.js';
5
5
 
6
6
  interface ConversationPreviewUIComponentProps extends ConversationPreviewProps {
@@ -9,9 +9,9 @@ interface ConversationPreviewUIComponentProps extends ConversationPreviewProps {
9
9
  /** Image of Conversation to display */
10
10
  displayImage?: string;
11
11
  /** Title of Conversation to display */
12
- displayTitle?: string | React.ReactElement;
12
+ displayTitle?: string | React__default.ReactElement;
13
13
  /** Message of Conversation to display */
14
- displayMessage?: string | React.ReactElement;
14
+ displayMessage?: string | React__default.ReactElement;
15
15
  /** Time of Conversation to display */
16
16
  displayTime?: string;
17
17
  /** Number of unread Messages */
@@ -20,14 +20,14 @@ interface ConversationPreviewUIComponentProps extends ConversationPreviewProps {
20
20
  interface ConversationPreviewProps {
21
21
  conversation: Conversation;
22
22
  activeConversation?: Conversation;
23
- Preview?: React.ComponentType<ConversationPreviewUIComponentProps>;
24
- Avatar?: React.ComponentType<AvatarProps>;
25
- setActiveConversation?: TUIKitContextValue['setActiveConversation'];
23
+ Preview?: React__default.ComponentType<ConversationPreviewUIComponentProps>;
24
+ Avatar?: React__default.ComponentType<AvatarProps>;
25
+ setActiveConversation?: (conversation: Conversation | undefined) => void;
26
26
  searchValue?: string;
27
27
  conversationUpdateCount?: number;
28
28
  activeConversationID?: string;
29
29
  setActiveConversationID?: (conversationID: string) => void;
30
30
  }
31
- declare function ConversationPreview<T extends ConversationPreviewProps>(props: T): React.ReactElement;
31
+ declare function ConversationPreview<T extends ConversationPreviewProps>(props: T): react_jsx_runtime.JSX.Element;
32
32
 
33
33
  export { ConversationPreview, ConversationPreviewProps, ConversationPreviewUIComponentProps };
@@ -1 +1 @@
1
- import{__assign as o}from"tslib";import{jsx as t,Fragment as e}from"react/jsx-runtime";import{useState as n,useEffect as i}from"react";import{useTUIKitContext as r}from"../../context/TUIKitContext.js";import"../../context/TUIMessageContext.js";import{ConversationPreviewContent as a}from"./ConversationPreviewContent.js";import{getDisplayImage as s,getDisplayTitle as v,getDisplayMessage as m,getDisplayTime as c}from"./utils.js";function u(u){var l=u.activeConversation,p=u.conversation,C=u.Preview,d=void 0===C?a:C,f=u.searchValue,x=u.conversationUpdateCount,I=r("TUIConversation").language,g=r("ConversationPreview"),j=g.setActiveConversation,y=g.myProfile,T=n(s(p)),P=T[0],U=T[1],w=n(v(p,f)),A=w[0],D=w[1],M=n(y&&m(p,y)),b=M[0],h=M[1],K=n(c(p,I)),V=K[0],k=K[1],q=n(p.unreadCount),z=q[0],B=q[1],E=(null==l?void 0:l.conversationID)===(null==p?void 0:p.conversationID);return d?(i((function(){D(v(p,f)),y&&h(m(p,y)),U(s(p)),k(c(p,I)),B(p.unreadCount)}),[p,f,x,I]),t(d,o({},u,{active:E,displayImage:P,displayTitle:A,displayMessage:b,displayTime:V,unread:z,setActiveConversation:j}))):t(e,{})}export{u as ConversationPreview};
1
+ import{__assign as t}from"tslib";import{jsx as o,Fragment as e}from"react/jsx-runtime";import{useState as n,useEffect as i}from"react";import{useUIKit as r}from"../../context/UIKitContext.js";import{useUIManager as a}from"../../context/UIManagerContext.js";import"../../context/TUIMessageContext.js";import{ConversationPreviewContent as s}from"./ConversationPreviewContent.js";import{getDisplayImage as m,getDisplayTitle as v,getDisplayMessage as c,getDisplayTime as u}from"./utils.js";function l(l){var p=l.activeConversation,d=l.conversation,C=l.Preview,f=void 0===C?s:C,x=l.searchValue,g=l.conversationUpdateCount,j=r().language,I=a(),y=I.setActiveConversation,U=I.myProfile,M=n(m(d)),P=M[0],T=M[1],w=n(v(d,x)),A=w[0],D=w[1],b=n(U&&c(d,U)),h=b[0],K=b[1],V=n(u(d,j)),k=V[0],q=V[1],z=n(d.unreadCount),B=z[0],E=z[1],F=(null==p?void 0:p.conversationID)===(null==d?void 0:d.conversationID);return f?(i((function(){D(v(d,x)),U&&K(c(d,U)),T(m(d)),q(u(d,j)),E(d.unreadCount)}),[d,x,g,j]),o(f,t({},l,{active:F,displayImage:P,displayTitle:A,displayMessage:h,displayTime:k,unread:B,setActiveConversation:y}))):o(e,{})}export{l as ConversationPreview};
@@ -1,10 +1,10 @@
1
- import React from 'react';
1
+ import React__default from 'react';
2
2
  import { ConversationPreviewUIComponentProps } from './ConversationPreview.js';
3
3
 
4
4
  interface IPluginsRef {
5
5
  closeMore?: () => void;
6
6
  }
7
- declare function unMemoConversationPreviewContent<T extends ConversationPreviewUIComponentProps>(props: T): React.ReactElement;
7
+ declare function unMemoConversationPreviewContent<T extends ConversationPreviewUIComponentProps>(props: T): React__default.ReactElement;
8
8
  declare const ConversationPreviewContent: typeof unMemoConversationPreviewContent;
9
9
 
10
10
  export { ConversationPreviewContent, IPluginsRef, unMemoConversationPreviewContent };
@@ -1 +1 @@
1
- import{__assign as e}from"tslib";import{jsxs as n,jsx as o}from"react/jsx-runtime";import t,{useRef as i,useState as r,useEffect as a}from"react";import{useTranslation as c}from"react-i18next";import{TUIConversationService as s}from"@tencentcloud/chat-uikit-engine";import{isPC as l}from"../../utils/env.js";import{Avatar as v}from"../Avatar/Avatar.js";import{Icon as m}from"../Icon/Icon.js";import{IconTypes as u}from"../Icon/type.js";import{Plugins as d}from"../Plugins/index.js";import{useConversation as p}from"../../hooks/useConversation.js";import{useTUIKitContext as h}from"../../context/TUIKitContext.js";import"../../context/TUIMessageContext.js";function f(t){var f,C=t.conversation,I=t.Avatar,N=void 0===I?v:I,T=t.displayImage,x=t.displayTitle,g=t.displayMessage,w=t.displayTime,j=t.unread,D=t.active,b=t.activeConversationID,M=t.setActiveConversationID,P=t.setActiveConversation,k=c().t,y=i(null),U=h("ConversationPreviewContent"),A=U.chat,E=U.conversation,z=p(A),K=z.pinConversation,L=z.deleteConversation,O=D?"conversation-preview-content--active":"",R=j&&j>=1?"conversation-preview-content--unread":"",S=C.isPinned?"conversation-preview-content--pin":"",q=r(!1),B=q[0],F=q[1],G=i(null);a((function(){b!==C.conversationID&&F(!1)}),[b]);var H=function(e){if(!l){var n=C.conversationID;switch(M&&M(n),e){case"touchstart":f=setTimeout(o,500);break;case"touchend":clearTimeout(f),setTimeout((function(){}),200)}}function o(){clearTimeout(f),F(!0)}},J=function(e,n){var o,t=C.conversationID,i=C.isPinned;switch(e.stopPropagation(),F(!1),(null===(o=null==G?void 0:G.current)||void 0===o?void 0:o.closeMore)&&G.current.closeMore(),n){case"pin":K({conversationID:t,isPinned:!i});break;case"delete":L(t),P&&t===(null==E?void 0:E.conversationID)&&P(void 0)}};return n("button",e({type:"button","aria-selected":D,role:"option",className:"conversation-preview-container ".concat(O," ").concat(R," ").concat(S),onClick:function(){s.switchConversation(null==C?void 0:C.conversationID),P&&P(C),(null==y?void 0:y.current)&&y.current.blur()},onMouseEnter:function(){F(!0)},onMouseLeave:function(){F(!1)},onTouchStart:function(){return H("touchstart")},onTouchEnd:function(){return H("touchend")},ref:y},{children:[o("div",e({className:"avatar"},{children:o(N,{image:T,name:x,size:40})})),n("div",e({className:"content"},{children:[o("div",e({className:"title text-ellipsis"},{children:x})),o("div",e({className:"message"},{children:g}))]})),n("div",e({className:"external"},{children:[o("div",j?e({className:"unread"},{children:j<=99?j:"99+"}):{className:"unread"}),o("div",B?e({className:"".concat(B?"more--hover":"more")},{children:o(d,{customClass:"more-handle-box",ref:G,plugins:[o("div",e({role:"presentation",className:"more-handle-item",onClick:function(e){J(e,"pin")}},{children:k(C.isPinned?"TUIConversation.Unpin":"TUIConversation.Pin")})),o("div",e({className:"more-handle-item delete",onClick:function(e){J(e,"delete")},role:"presentation"},{children:k("TUIConversation.Delete")}))],showNumber:0,MoreIcon:o(m,{className:"icon-more",width:16,height:16,type:u.MORE})})}):e({className:"time"},{children:w}))]}))]}))}var C=t.memo(f);export{C as ConversationPreviewContent,f as unMemoConversationPreviewContent};
1
+ import{__assign as e}from"tslib";import{jsxs as n,jsx as o}from"react/jsx-runtime";import t,{useRef as i,useState as r,useEffect as a}from"react";import{useTranslation as c}from"react-i18next";import{TUIConversationService as s}from"@tencentcloud/chat-uikit-engine";import{isPC as l}from"../../utils/env.js";import{Avatar as m}from"../Avatar/Avatar.js";import{Icon as v}from"../Icon/Icon.js";import{IconTypes as d}from"../Icon/type.js";import{Plugins as u}from"../Plugins/index.js";import{useConversation as p}from"../../hooks/useConversation.js";import{useUIKit as h}from"../../context/UIKitContext.js";import{useUIManager as f}from"../../context/UIManagerContext.js";import"../../context/TUIMessageContext.js";function I(t){var I,C=t.conversation,N=t.Avatar,x=void 0===N?m:N,T=t.displayImage,g=t.displayTitle,j=t.displayMessage,D=t.displayTime,w=t.unread,M=t.active,b=t.activeConversationID,k=t.setActiveConversationID,y=t.setActiveConversation,P=c().t,U=i(null),A=h().chat,E=f().conversation,z=p(A),K=z.pinConversation,L=z.deleteConversation,O=M?"conversation-preview-content--active":"",R=w&&w>=1?"conversation-preview-content--unread":"",S=C.isPinned?"conversation-preview-content--pin":"",q=r(!1),B=q[0],F=q[1],G=i(null);a((function(){b!==C.conversationID&&F(!1)}),[b]);var H=function(e){if(!l){var n=C.conversationID;switch(k&&k(n),e){case"touchstart":I=setTimeout(o,500);break;case"touchend":clearTimeout(I),setTimeout((function(){}),200)}}function o(){clearTimeout(I),F(!0)}},J=function(e,n){var o,t=C.conversationID,i=C.isPinned;switch(e.stopPropagation(),F(!1),(null===(o=null==G?void 0:G.current)||void 0===o?void 0:o.closeMore)&&G.current.closeMore(),n){case"pin":K({conversationID:t,isPinned:!i});break;case"delete":L(t),y&&t===(null==E?void 0:E.conversationID)&&y(void 0)}};return n("button",e({type:"button","aria-selected":M,role:"option",className:"conversation-preview-container ".concat(O," ").concat(R," ").concat(S),onClick:function(){s.switchConversation(null==C?void 0:C.conversationID),y&&y(C),(null==U?void 0:U.current)&&U.current.blur()},onMouseEnter:function(){F(!0)},onMouseLeave:function(){F(!1)},onTouchStart:function(){return H("touchstart")},onTouchEnd:function(){return H("touchend")},ref:U,id:C.conversationID},{children:[o("div",e({className:"avatar"},{children:o(x,{image:T,name:g,size:40})})),n("div",e({className:"content"},{children:[o("div",e({className:"title text-ellipsis"},{children:g})),o("div",e({className:"message"},{children:j}))]})),n("div",e({className:"external"},{children:[o("div",w?e({className:"unread"},{children:w<=99?w:"99+"}):{className:"unread"}),o("div",B?e({className:"".concat(B?"more--hover":"more")},{children:o(u,{customClass:"more-handle-box",ref:G,plugins:[o("div",e({role:"presentation",className:"more-handle-item",onClick:function(e){J(e,"pin")}},{children:P(C.isPinned?"TUIConversation.Unpin":"TUIConversation.Pin")})),o("div",e({className:"more-handle-item delete",onClick:function(e){J(e,"delete")},role:"presentation"},{children:P("TUIConversation.Delete")}))],showNumber:0,MoreIcon:o(v,{className:"icon-more",width:16,height:16,type:d.MORE})})}):e({className:"time"},{children:D}))]}))]}))}var C=t.memo(I);export{C as ConversationPreviewContent,I as unMemoConversationPreviewContent};
@@ -1 +1 @@
1
- import{__assign as e}from"tslib";import{jsxs as r,jsx as o,Fragment as a}from"react/jsx-runtime";import t from"@tencentcloud/chat";import"react";import"../Icon/config.js";import"../Icon/type.js";import{defaultGroupAvatarWork as i,defaultUserAvatar as n}from"../Avatar/default.js";import{formatEmojiString as s}from"../TUIMessage/utils/emojiMap.js";import{getTimeStamp as c}from"../untils.js";var l=function(e){if(!e)return null;var r={},o=e.type,a=e.groupProfile,i=e.userProfile;switch(o){case t.TYPES.CONV_C2C:r=i;break;case t.TYPES.CONV_GROUP:r=a;case t.TYPES.CONV_SYSTEM:}return r},p=function(i,n,s){void 0===s&&(s="#147AFF");var c=l(i),p=c.name,u=c.nick,d=c.groupID,m=c.userID,f=i.type,C=i.remark,v="";switch(f){case t.TYPES.CONV_C2C:v=C||u||m;break;case t.TYPES.CONV_GROUP:v=p||d;break;default:v=""}var O,P,S,h;return n?(P=(O=v).toLocaleLowerCase(),S=n&&P.indexOf(n.toLocaleLowerCase()),h=O.split(new RegExp("(".concat(n,")"),"gi")),""===S?o(a,{}):r("div",{children:[n&&h.map((function(r,a){return r.toLowerCase()===n.toLowerCase()?o("span",e({style:{color:s}},{children:r}),a):o("span",{children:r},a)})),";"]})):v},u=function(e){var r=e.type,o=l(e).avatar,a=o;if(!o)switch(r){case t.TYPES.CONV_C2C:a=n;break;case t.TYPES.CONV_GROUP:default:a=i}return a},d=function(a,i,n){var c,l=a.lastMessage,p=a.type,u=l.fromAccount,d=l.nick,m=l.nameCard,f=l.isRevoked,C=l.messageForShow;l.type===t.TYPES.MSG_CUSTOM&&(null===(c=l.payload)||void 0===c?void 0:c.description)&&(C=l.payload.description);var v="";switch(p){case t.TYPES.CONV_GROUP:v=(null==l?void 0:l.fromAccount)===(null==i?void 0:i.userID)?"You":"".concat(m||d||u||""),v="".concat(v?"".concat(v,":"):"");break;case t.TYPES.CONV_C2C:v=f?"you ":""}return r("div",e({style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{children:[o("span",{children:v}),o("span",{children:l.isRevoked?"recalled a message":s(C,1)})]}))},m=function(e,r){var o=e.lastMessage;return c(1e3*o.lastTime,r)};export{u as getDisplayImage,d as getDisplayMessage,m as getDisplayTime,p as getDisplayTitle,l as getMessageProfile};
1
+ import{__assign as e}from"tslib";import{jsxs as r,jsx as o,Fragment as a}from"react/jsx-runtime";import t from"@tencentcloud/chat";import"react";import"../Icon/config.js";import"../Icon/type.js";import{defaultGroupAvatarWork as i,defaultUserAvatar as n}from"../Avatar/default.js";import{formatEmojiString as s}from"../TUIMessage/utils/emojiMap.js";import{getTimeStamp as c}from"../utils.js";var l=function(e){if(!e)return null;var r={},o=e.type,a=e.groupProfile,i=e.userProfile;switch(o){case t.TYPES.CONV_C2C:r=i;break;case t.TYPES.CONV_GROUP:r=a;case t.TYPES.CONV_SYSTEM:}return r},p=function(i,n,s){void 0===s&&(s="#147AFF");var c=l(i),p=c.name,u=c.nick,d=c.groupID,m=c.userID,f=i.type,C=i.remark,v="";switch(f){case t.TYPES.CONV_C2C:v=C||u||m;break;case t.TYPES.CONV_GROUP:v=p||d;break;default:v=""}var O,P,S,h;return n?(P=(O=v).toLocaleLowerCase(),S=n&&P.indexOf(n.toLocaleLowerCase()),h=O.split(new RegExp("(".concat(n,")"),"gi")),""===S?o(a,{}):r("div",{children:[n&&h.map((function(r,a){return r.toLowerCase()===n.toLowerCase()?o("span",e({style:{color:s}},{children:r}),a):o("span",{children:r},a)})),";"]})):v},u=function(e){var r=e.type,o=l(e).avatar,a=o;if(!o)switch(r){case t.TYPES.CONV_C2C:a=n;break;case t.TYPES.CONV_GROUP:default:a=i}return a},d=function(a,i,n){var c,l=a.lastMessage,p=a.type,u=l.fromAccount,d=l.nick,m=l.nameCard,f=l.isRevoked,C=l.messageForShow;l.type===t.TYPES.MSG_CUSTOM&&(null===(c=l.payload)||void 0===c?void 0:c.description)&&(C=l.payload.description);var v="";switch(p){case t.TYPES.CONV_GROUP:v=(null==l?void 0:l.fromAccount)===(null==i?void 0:i.userID)?"You":"".concat(m||d||u||""),v="".concat(v?"".concat(v,":"):"");break;case t.TYPES.CONV_C2C:v=f?"you ":""}return r("div",e({style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{children:[o("span",{children:v}),o("span",{children:l.isRevoked?"recalled a message":s(C,1)})]}))},m=function(e,r){var o=e.lastMessage;return c(1e3*o.lastTime,r)};export{u as getDisplayImage,d as getDisplayMessage,m as getDisplayTime,p as getDisplayTitle,l as getMessageProfile};
@@ -1,12 +1,12 @@
1
- import React from 'react';
1
+ import React__default from 'react';
2
2
  import { Conversation } from '@tencentcloud/chat';
3
3
  import { ConversationPreviewUIComponentProps } from '../ConversationPreview/ConversationPreview.js';
4
4
 
5
5
  interface ConversationSearchResultProps {
6
6
  result: Array<Conversation>;
7
7
  searchValue?: string;
8
- Preview?: React.ComponentType<ConversationPreviewUIComponentProps>;
8
+ Preview?: React__default.ComponentType<ConversationPreviewUIComponentProps>;
9
9
  }
10
- declare function ConversationSearchResult(props: ConversationSearchResultProps): React.ReactElement;
10
+ declare function ConversationSearchResult(props: ConversationSearchResultProps): React__default.ReactElement;
11
11
 
12
12
  export { ConversationSearchResult, ConversationSearchResultProps };
@@ -1 +1 @@
1
- import{__assign as e}from"tslib";import{jsx as t,jsxs as o}from"react/jsx-runtime";import{ConversationPreview as s}from"../ConversationPreview/ConversationPreview.js";import"react";import"react-i18next";import"@tencentcloud/chat-uikit-engine";import"../../utils/env.js";import{Icon as r}from"../Icon/Icon.js";import{IconTypes as i}from"../Icon/type.js";import"@tencentcloud/chat";import"../TUIKit/TUIKit.js";import"../../context/TUIMessageContext.js";import"../ConversationCreate/ConversationCreate.js";import"../ConversationCreate/ConversationGroupTypeInfo.js";import"date-fns";import"date-fns/locale";import"../../constants.js";import"../TUIMessage/hooks/useMessageReply.js";import"../TUIMessage/MessagePlugins.js";import"../TUIMessage/MessageContext.js";import"../TUIMessageInput/hooks/useHandleQuoteMessage.js";import"../TUIProfile/TUIProfileDefault.js";function n(n){var a=n.result,m=n.searchValue,c=n.Preview;return t("div",{children:0===(null==a?void 0:a.length)?o("div",e({className:"conversation-search-result no-result"},{children:[t(r,{className:"no-result-icon",type:i.CRY,width:42,height:42}),t("span",e({className:"no-result-message"},{children:'No results for "'.concat(m,'"')}))]})):a.map((function(o){return t(s,e({searchValue:m},{conversation:o,Preview:c}),o.conversationID)}))})}export{n as ConversationSearchResult};
1
+ import{__assign as e}from"tslib";import{jsx as t,jsxs as o}from"react/jsx-runtime";import{ConversationPreview as s}from"../ConversationPreview/ConversationPreview.js";import"react";import"react-i18next";import"@tencentcloud/chat-uikit-engine";import"../../utils/env.js";import{Icon as r}from"../Icon/Icon.js";import{IconTypes as n}from"../Icon/type.js";import"@tencentcloud/chat";import"@tencentcloud/tui-core";import"../../context/TUIMessageContext.js";import"../ConversationCreate/ConversationCreate.js";import"../ConversationCreate/ConversationGroupTypeInfo.js";import"date-fns";import"date-fns/locale";import"../TUIChat/index.js";import"../../constants.js";import"../TUIMessage/hooks/useMessageReply.js";import"../TUIMessage/MessagePlugins.js";import"../TUIMessage/MessageContext.js";import"../TUIMessageInput/hooks/useHandleQuoteMessage.js";import"../TUIProfile/TUIProfileDefault.js";function i(i){var a=i.result,c=i.searchValue,m=i.Preview;return t("div",{children:0===(null==a?void 0:a.length)?o("div",e({className:"conversation-search-result no-result"},{children:[t(r,{className:"no-result-icon",type:n.CRY,width:42,height:42}),t("span",e({className:"no-result-message"},{children:'No results for "'.concat(c,'"')}))]})):a.map((function(o){return t(s,e({searchValue:c},{conversation:o,Preview:m}),o.conversationID)}))})}export{i as ConversationSearchResult};
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import React from 'react';
2
+ import React__default from 'react';
3
3
  import { IconTypes } from './type.js';
4
4
 
5
5
  declare const changeTypeToIconClassName: (type: IconTypes) => string;
@@ -7,9 +7,9 @@ interface IconProps {
7
7
  type?: IconTypes;
8
8
  height?: number;
9
9
  width?: number;
10
- onClick?: (event: React.BaseSyntheticEvent) => void;
10
+ onClick?: (event: React__default.BaseSyntheticEvent) => void;
11
11
  className?: string;
12
12
  }
13
- declare function Icon(props: React.PropsWithChildren<IconProps>): react_jsx_runtime.JSX.Element;
13
+ declare function Icon(props: React__default.PropsWithChildren<IconProps>): react_jsx_runtime.JSX.Element;
14
14
 
15
15
  export { Icon, IconProps, changeTypeToIconClassName };
@@ -1 +1 @@
1
- import i from"./images/more.png.js";import s from"./images/clear.png.js";import m from"./images/search.png.js";import r from"./images/back.png.js";import o from"./images/emoji.png.js";import a from"./images/progress.png.js";import e from"./images/file.png.js";import t from"./images/add.png.js";import n from"./images/image.png.js";import c from"./images/video.png.js";import l from"./images/files.png.js";import u from"./images/star.png.js";import g from"./images/copy.png.js";import p from"./images/del.png.js";import N from"./images/forward.png.js";import f from"./images/reply.png.js";import k from"./images/close.png.js";import j from"./images/arrow-right.png.js";import E from"./images/right.png.js";import d from"./images/ellipse.png.js";import R from"./images/cancel.png.js";import O from"./images/arrow-down.png.js";import I from"./images/edit.png.js";import C from"./images/confirm.png.js";import A from"./images/camera.png.js";import v from"./images/quote.png.js";import D from"./images/revocation.png.js";import L from"./images/effort.png.js";import T from"./images/cry.png.js";import w from"./images/send.png.js";import M from"./images/owner.png.js";import U from"./images/living.png.js";import y from"./images/member.png.js";import S from"./images/like.png.js";import h from"./images/unlike.png.js";import F from"./images/liked.png.js";import V from"./images/unliked.png.js";import G from"./images/union.png.js";import K from"./images/ununion.png.js";import W from"./images/vector.png.js";import b from"./images/unvector.png.js";import P from"./images/voice.png.js";import H from"./images/add-friend.svg.js";import{IconTypes as Y}from"./type.js";var q,B=((q={})[Y.MORE]={url:i,className:"tui-kit-icon-more"},q[Y.CREATE]={url:H,className:"tui-kit-icon-create"},q[Y.CLEAR]={url:s,className:"tui-kit-icon-clear"},q[Y.SEARCH]={url:m,className:"tui-kit-icon-search"},q[Y.BACK]={url:r,className:"tui-kit-icon-back"},q[Y.EMOJI]={url:o,className:"tui-kit-icon-emoji"},q[Y.PROGRESS]={url:a,className:"tui-kit-icon-progress"},q[Y.FILE]={url:e,className:"tui-kit-icon-file"},q[Y.ADD]={url:t,className:"tui-kit-icon-add"},q[Y.IMAGE]={url:n,className:"tui-kit-icon-image"},q[Y.VIDEO]={url:c,className:"tui-kit-icon-video"},q[Y.DOCUMENT]={url:l,className:"tui-kit-icon-document"},q[Y.STAR]={url:u,className:"tui-kit-icon-star"},q[Y.COPY]={url:g,className:"tui-kit-icon-copy"},q[Y.DEL]={url:p,className:"tui-kit-icon-del"},q[Y.FORWARD]={url:N,className:"tui-kit-icon-forward"},q[Y.REPLY]={url:f,className:"tui-kit-icon-reply"},q[Y.CLOSE]={url:k,className:"tui-kit-icon-close"},q[Y.ARROW_RIGHT]={url:j,className:"tui-kit-icon-arrow-right"},q[Y.RIGHT]={url:E,className:"tui-kit-icon-right"},q[Y.ELLIPSE]={url:d,className:"tui-kit-icon-ellipse"},q[Y.CANCEL]={url:R,className:"tui-kit-icon-cancel"},q[Y.ARROW_DOWN]={url:O,className:"tui-kit-icon-arrow-down"},q[Y.EDIT]={url:I,className:"tui-kit-icon-edit"},q[Y.CONFIRM]={url:C,className:"tui-kit-icon-confirm"},q[Y.CAMERA]={url:A,className:"tui-kit-icon-camera"},q[Y.QUOTE]={url:v,className:"tui-kit-icon-quote"},q[Y.REVOCATION]={url:D,className:"tui-kit-icon-revocation"},q[Y.EFFORT]={url:L,className:"tui-kit-icon-effort"},q[Y.CRY]={url:T,className:"tui-kit-icon-cry"},q[Y.OWNER]={url:M,className:"tui-kit-icon-owner"},q[Y.SEND]={url:w,className:"tui-kit-icon-send"},q[Y.LIVING]={url:U,className:"tui-kit-icon-living"},q[Y.MEMBER]={url:y,className:"tui-kit-icon-member"},q[Y.LIKE]={url:S,className:"tui-kit-icon-like"},q[Y.UNLIKE]={url:h,className:"tui-kit-icon-unlike"},q[Y.LIKED]={url:F,className:"tui-kit-icon-liked"},q[Y.UNLIKED]={url:V,className:"tui-kit-icon-unliked"},q[Y.UNION]={url:G,className:"tui-kit-icon-union"},q[Y.UNUNION]={url:K,className:"tui-kit-icon-ununion"},q[Y.VECTOR]={url:W,className:"tui-kit-icon-vector"},q[Y.UNVECTOR]={url:b,className:"tui-kit-icon-unvector"},q[Y.VOICE]={url:P,className:"tui-kit-icon-voice"},q[Y.ADDFRIEND]={url:H,className:"tui-kit-icon-add-friend"},q);export{B as ICON_CONFIG};
1
+ import i from"./images/more.png.js";import s from"./images/clear.png.js";import m from"./images/search.png.js";import r from"./images/back.png.js";import o from"./images/emoji.png.js";import a from"./images/progress.png.js";import e from"./images/file.png.js";import t from"./images/add.png.js";import c from"./images/image.png.js";import l from"./images/video.png.js";import n from"./images/files.png.js";import u from"./images/star.png.js";import g from"./images/copy.png.js";import p from"./images/del.png.js";import N from"./images/forward.png.js";import f from"./images/reply.png.js";import k from"./images/close.png.js";import j from"./images/arrow-right.png.js";import E from"./images/right.png.js";import d from"./images/ellipse.png.js";import R from"./images/cancel.png.js";import O from"./images/arrow-down.png.js";import I from"./images/edit.png.js";import v from"./images/confirm.png.js";import C from"./images/camera.png.js";import A from"./images/quote.png.js";import L from"./images/revocation.png.js";import D from"./images/effort.png.js";import T from"./images/cry.png.js";import w from"./images/send.png.js";import M from"./images/owner.png.js";import U from"./images/living.png.js";import V from"./images/member.png.js";import y from"./images/like.png.js";import S from"./images/unlike.png.js";import h from"./images/liked.png.js";import F from"./images/unliked.png.js";import G from"./images/union.png.js";import K from"./images/ununion.png.js";import W from"./images/vector.png.js";import b from"./images/unvector.png.js";import P from"./images/voice.png.js";import H from"./images/add-friend.svg.js";import Y from"./images/video-call.svg.js";import q from"./images/voice-call.svg.js";import{IconTypes as B}from"./type.js";var _,x=((_={})[B.MORE]={url:i,className:"tui-kit-icon-more"},_[B.CREATE]={url:H,className:"tui-kit-icon-create"},_[B.CLEAR]={url:s,className:"tui-kit-icon-clear"},_[B.SEARCH]={url:m,className:"tui-kit-icon-search"},_[B.BACK]={url:r,className:"tui-kit-icon-back"},_[B.EMOJI]={url:o,className:"tui-kit-icon-emoji"},_[B.PROGRESS]={url:a,className:"tui-kit-icon-progress"},_[B.FILE]={url:e,className:"tui-kit-icon-file"},_[B.ADD]={url:t,className:"tui-kit-icon-add"},_[B.IMAGE]={url:c,className:"tui-kit-icon-image"},_[B.VIDEO]={url:l,className:"tui-kit-icon-video"},_[B.DOCUMENT]={url:n,className:"tui-kit-icon-document"},_[B.STAR]={url:u,className:"tui-kit-icon-star"},_[B.COPY]={url:g,className:"tui-kit-icon-copy"},_[B.DEL]={url:p,className:"tui-kit-icon-del"},_[B.FORWARD]={url:N,className:"tui-kit-icon-forward"},_[B.REPLY]={url:f,className:"tui-kit-icon-reply"},_[B.CLOSE]={url:k,className:"tui-kit-icon-close"},_[B.ARROW_RIGHT]={url:j,className:"tui-kit-icon-arrow-right"},_[B.RIGHT]={url:E,className:"tui-kit-icon-right"},_[B.ELLIPSE]={url:d,className:"tui-kit-icon-ellipse"},_[B.CANCEL]={url:R,className:"tui-kit-icon-cancel"},_[B.ARROW_DOWN]={url:O,className:"tui-kit-icon-arrow-down"},_[B.EDIT]={url:I,className:"tui-kit-icon-edit"},_[B.CONFIRM]={url:v,className:"tui-kit-icon-confirm"},_[B.CAMERA]={url:C,className:"tui-kit-icon-camera"},_[B.QUOTE]={url:A,className:"tui-kit-icon-quote"},_[B.REVOCATION]={url:L,className:"tui-kit-icon-revocation"},_[B.EFFORT]={url:D,className:"tui-kit-icon-effort"},_[B.CRY]={url:T,className:"tui-kit-icon-cry"},_[B.OWNER]={url:M,className:"tui-kit-icon-owner"},_[B.SEND]={url:w,className:"tui-kit-icon-send"},_[B.LIVING]={url:U,className:"tui-kit-icon-living"},_[B.MEMBER]={url:V,className:"tui-kit-icon-member"},_[B.LIKE]={url:y,className:"tui-kit-icon-like"},_[B.UNLIKE]={url:S,className:"tui-kit-icon-unlike"},_[B.LIKED]={url:h,className:"tui-kit-icon-liked"},_[B.UNLIKED]={url:F,className:"tui-kit-icon-unliked"},_[B.UNION]={url:G,className:"tui-kit-icon-union"},_[B.UNUNION]={url:K,className:"tui-kit-icon-ununion"},_[B.VECTOR]={url:W,className:"tui-kit-icon-vector"},_[B.UNVECTOR]={url:b,className:"tui-kit-icon-unvector"},_[B.VOICE]={url:P,className:"tui-kit-icon-voice"},_[B.ADDFRIEND]={url:H,className:"tui-kit-icon-add-friend"},_[B.VIDEOCALL]={url:Y,className:"tui-kit-icon-video-call"},_[B.VOICECALL]={url:q,className:"tui-kit-icon-voice-call"},_);export{x as ICON_CONFIG};
@@ -0,0 +1 @@
1
+ var C="data:image/svg+xml,%3Csvg%20width%3D%2218%22%20height%3D%2212%22%20viewBox%3D%220%200%2018%2012%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M12.7133%203.78811C12.7133%203.84528%2012.654%203.94533%2012.5353%204.08826C12.4166%204.23119%2012.2894%204.39985%2012.1537%204.59424C12.0181%204.78862%2011.8909%205.00016%2011.7722%205.22885C11.6535%205.45754%2011.5942%205.69194%2011.5942%205.93207C11.5942%206.17219%2011.6535%206.40374%2011.7722%206.62671C11.8909%206.84968%2012.0181%207.05264%2012.1537%207.2356C12.2894%207.41855%2012.4166%207.57005%2012.5353%207.69011C12.654%207.81018%2012.7133%207.88736%2012.7133%207.92166V9.72259C12.7133%209.91697%2012.6427%2010.1371%2012.5014%2010.3829C12.3601%2010.6288%2012.1848%2010.8603%2011.9757%2011.0776C11.7666%2011.2948%2011.5348%2011.4749%2011.2805%2011.6178C11.0261%2011.7608%2010.7859%2011.8322%2010.5598%2011.8322H2.13229C1.82707%2011.8322%201.54728%2011.7779%201.29293%2011.6693C1.03858%2011.5607%200.815315%2011.4092%200.623139%2011.2148C0.430963%2011.0204%200.281177%2010.7917%200.173785%2010.5287C0.0663918%2010.2657%200.0126953%209.97986%200.0126953%209.67113V2.27876C0.0126953%202.05007%200.0635656%201.81281%200.165306%201.56697C0.267047%201.32113%200.411179%201.0953%200.597704%200.889476C0.784228%200.683656%201.00467%200.512139%201.25902%200.374926C1.51337%200.237712%201.79316%200.169106%202.09838%200.169106H10.5259C10.8311%200.169106%2011.1166%200.223419%2011.3822%200.332046C11.6479%200.440674%2011.8796%200.589322%2012.0774%200.77799C12.2753%200.966658%2012.4307%201.19249%2012.5437%201.45548C12.6568%201.71847%2012.7133%201.99862%2012.7133%202.29591V3.78811ZM17.9869%202.17585V10.0142C17.9869%2010.2657%2017.9219%2010.4887%2017.7919%2010.6831C17.6619%2010.8775%2017.4669%2010.9747%2017.2069%2010.9747C17.1164%2010.9747%2017.0006%2010.9404%2016.8592%2010.8718C16.7179%2010.8031%2016.5766%2010.7231%2016.4353%2010.6316C16.294%2010.5402%2016.1612%2010.4487%2016.0368%2010.3572C15.9125%2010.2657%2015.8221%2010.1914%2015.7655%2010.1342C15.6186%2010.0084%2015.3953%209.79119%2015.0957%209.48246C14.7962%209.17373%2014.4938%208.82498%2014.1886%208.43621C13.8833%208.04744%2013.6149%207.64724%2013.3831%207.2356C13.1514%206.82396%2013.0355%206.44662%2013.0355%206.10358C13.0355%205.76055%2013.1598%205.36892%2013.4085%204.9287C13.6572%204.48847%2013.9568%204.05682%2014.3073%203.63374C14.6577%203.21067%2015.0251%202.81904%2015.4094%202.45885C15.7938%202.09867%2016.116%201.8271%2016.376%201.64415C16.4777%201.57554%2016.6162%201.49264%2016.7914%201.39545C16.9666%201.29826%2017.1221%201.24966%2017.2577%201.24966C17.563%201.24966%2017.7608%201.33542%2017.8512%201.50694C17.9417%201.67845%2017.9869%201.88999%2017.9869%202.14155V2.17585Z%22%20fill%3D%22%23147AFF%22%20style%3D%22fill%3A%23147AFF%3Bfill%3Acolor%28display-p3%200.0784%200.4784%201.0000%29%3Bfill-opacity%3A1%3B%22%2F%3E%3C%2Fsvg%3E";export{C as default};
@@ -0,0 +1 @@
1
+ var l="data:image/svg+xml,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M0.820502%201.908L2.4211%200.335447C2.84833%20-0.110789%203.54101%20-0.110788%203.96825%200.335448L6.55252%203.03465C6.97975%203.48089%206.97975%204.20438%206.55252%204.65061L5.40756%205.84649C5.89906%206.92709%206.58667%207.90985%207.44288%208.73564C8.3911%209.65016%209.50662%2010.3341%2010.7098%2010.7549L11.7569%209.66126C12.1841%209.21502%2012.8768%209.21502%2013.304%209.66126L15.6796%2012.1424C16.1068%2012.5887%2016.1068%2013.3122%2015.6796%2013.7584L13.9485%2015.6199C13.9389%2015.6199%2013.9581%2015.6199%2013.9485%2015.6199C13.7709%2015.8055%2013.5385%2015.9293%2013.2854%2015.9734L13.128%2016.0008C9.75381%2015.9708%206.84954%2014.6061%204.36844%2012.2132C1.859%209.79292%200.271627%206.98782%200%203.43154C0%202.94579%200.202278%202.48197%200.558263%202.15147L0.820502%201.908Z%22%20fill%3D%22%23147AFF%22%20style%3D%22fill%3A%23147AFF%3Bfill%3Acolor%28display-p3%200.0784%200.4784%201.0000%29%3Bfill-opacity%3A1%3B%22%2F%3E%3C%2Fsvg%3E";export{l as default};
@@ -42,7 +42,9 @@ declare enum IconTypes {
42
42
  VECTOR = "vector",
43
43
  UNVECTOR = "unvector",
44
44
  VOICE = "voice",
45
- ADDFRIEND = "addFriend"
45
+ ADDFRIEND = "addFriend",
46
+ VIDEOCALL = "videoCall",
47
+ VOICECALL = "voiceCall"
46
48
  }
47
49
 
48
50
  export { IconTypes };
@@ -1 +1 @@
1
- var e;!function(e){e.MORE="more",e.CREATE="create",e.CLEAR="clear",e.SEARCH="search",e.BACK="back",e.EMOJI="emoji",e.PROGRESS="progress",e.FILE="file",e.CLOSE="close",e.CANCEL="cancel",e.ADD="plus",e.IMAGE="image",e.VIDEO="video",e.DOCUMENT="document",e.STAR="star",e.COPY="copy",e.DEL="del",e.FORWARD="forward",e.REPLY="reply",e.RIGHT="right",e.ARROW_RIGHT="arrow-right",e.ELLIPSE="ellipse",e.ARROW_DOWN="arrow-down",e.EDIT="edit",e.CONFIRM="confirm",e.CAMERA="camera",e.QUOTE="quote",e.REVOCATION="revocation",e.EFFORT="effort",e.CRY="cry",e.SEND="send",e.OWNER="owner",e.LIVING="living",e.MEMBER="member",e.LIKE="like",e.UNLIKE="unlike",e.LIKED="liked",e.UNLIKED="unliked",e.UNION="union",e.UNUNION="ununion",e.VECTOR="vector",e.UNVECTOR="unvector",e.VOICE="voice",e.ADDFRIEND="addFriend"}(e||(e={}));export{e as IconTypes};
1
+ var e;!function(e){e.MORE="more",e.CREATE="create",e.CLEAR="clear",e.SEARCH="search",e.BACK="back",e.EMOJI="emoji",e.PROGRESS="progress",e.FILE="file",e.CLOSE="close",e.CANCEL="cancel",e.ADD="plus",e.IMAGE="image",e.VIDEO="video",e.DOCUMENT="document",e.STAR="star",e.COPY="copy",e.DEL="del",e.FORWARD="forward",e.REPLY="reply",e.RIGHT="right",e.ARROW_RIGHT="arrow-right",e.ELLIPSE="ellipse",e.ARROW_DOWN="arrow-down",e.EDIT="edit",e.CONFIRM="confirm",e.CAMERA="camera",e.QUOTE="quote",e.REVOCATION="revocation",e.EFFORT="effort",e.CRY="cry",e.SEND="send",e.OWNER="owner",e.LIVING="living",e.MEMBER="member",e.LIKE="like",e.UNLIKE="unlike",e.LIKED="liked",e.UNLIKED="unliked",e.UNION="union",e.UNUNION="ununion",e.VECTOR="vector",e.UNVECTOR="unvector",e.VOICE="voice",e.ADDFRIEND="addFriend",e.VIDEOCALL="videoCall",e.VOICECALL="voiceCall"}(e||(e={}));export{e as IconTypes};
@@ -1,15 +1,15 @@
1
- import React from 'react';
1
+ import React__default from 'react';
2
2
 
3
3
  interface InfiniteScrollProps {
4
4
  className?: string;
5
- element?: React.ElementType;
5
+ element?: React__default.ElementType;
6
6
  hasMore?: boolean;
7
7
  hasMoreNewer?: boolean;
8
8
  initialLoad?: boolean;
9
9
  isLoading?: boolean;
10
10
  listenToScroll?: (offset: number, reverseOffset: number, threshold: number) => void;
11
- loader?: React.ReactNode;
12
- loading?: React.ReactNode;
11
+ loader?: React__default.ReactNode;
12
+ loading?: React__default.ReactNode;
13
13
  loadMore?: () => void;
14
14
  loadMoreNewer?: () => void;
15
15
  pageStart?: number;
@@ -1,12 +1,12 @@
1
- import React, { InputHTMLAttributes } from 'react';
1
+ import React__default, { InputHTMLAttributes } from 'react';
2
2
 
3
3
  interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'prefix' | 'type'> {
4
4
  className?: string;
5
5
  customClassName?: string;
6
6
  placeholder?: string;
7
7
  clearable?: boolean;
8
- prefix?: React.ReactNode;
9
- suffix?: React.ReactNode;
8
+ prefix?: React__default.ReactNode;
9
+ suffix?: React__default.ReactNode;
10
10
  value?: InputHTMLAttributes<HTMLInputElement>['value'];
11
11
  border?: '' | 'bottom';
12
12
  disabled?: boolean;
@@ -18,6 +18,6 @@ interface InputRef {
18
18
  blur: () => void;
19
19
  input: HTMLInputElement | null;
20
20
  }
21
- declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<InputRef>>;
21
+ declare const Input: React__default.ForwardRefExoticComponent<InputProps & React__default.RefAttributes<InputRef>>;
22
22
 
23
23
  export { Input, InputProps, InputRef };
@@ -1,9 +1,9 @@
1
- import React from 'react';
1
+ import React__default from 'react';
2
2
 
3
3
  interface PopupProps {
4
4
  className?: string;
5
5
  onClick?: (e: Event) => void;
6
6
  }
7
- declare function Model<T extends PopupProps>(props: React.PropsWithChildren<T>): React.ReactElement;
7
+ declare function Model<T extends PopupProps>(props: React__default.PropsWithChildren<T>): React__default.ReactElement;
8
8
 
9
9
  export { Model };
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React__default from 'react';
2
2
 
3
3
  interface PluginsProps {
4
4
  plugins?: Array<any>;
@@ -11,8 +11,8 @@ interface PluginsProps {
11
11
  handleVisible?: (isVisible: any) => void;
12
12
  showMore?: boolean;
13
13
  }
14
- declare const Plugins: React.ForwardRefExoticComponent<PluginsProps & {
15
- children?: React.ReactNode;
16
- } & React.RefAttributes<unknown>>;
14
+ declare const Plugins: React__default.ForwardRefExoticComponent<PluginsProps & {
15
+ children?: React__default.ReactNode;
16
+ } & React__default.RefAttributes<unknown>>;
17
17
 
18
18
  export { Plugins, PluginsProps };
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React__default from 'react';
2
2
 
3
3
  interface PopupProps {
4
4
  className?: string;
@@ -8,6 +8,6 @@ interface PopupProps {
8
8
  root?: any;
9
9
  handleVisible?: (isVisible: any) => void;
10
10
  }
11
- declare function Popup<T extends PopupProps>(props: React.PropsWithChildren<T>): React.ReactElement;
11
+ declare function Popup<T extends PopupProps>(props: React__default.PropsWithChildren<T>): React__default.ReactElement;
12
12
 
13
13
  export { Popup };
@@ -1,9 +1,9 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import React from 'react';
2
+ import React__default from 'react';
3
3
 
4
4
  interface Props {
5
5
  checked: boolean;
6
- onChange: (e: React.ChangeEvent) => void;
6
+ onChange: (e: React__default.ChangeEvent) => void;
7
7
  checkedColor?: string;
8
8
  className?: string;
9
9
  }