@tencentcloud/chat-uikit-react 0.0.1

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 (660) hide show
  1. package/.babelrc +7 -0
  2. package/.eslintrc.js +70 -0
  3. package/README.md +107 -0
  4. package/dist/cjs/_virtual/DateInput.js +1 -0
  5. package/dist/cjs/_virtual/DatePicker.js +1 -0
  6. package/dist/cjs/_virtual/DayInput.js +1 -0
  7. package/dist/cjs/_virtual/Divider.js +1 -0
  8. package/dist/cjs/_virtual/Fit.js +1 -0
  9. package/dist/cjs/_virtual/Input.js +1 -0
  10. package/dist/cjs/_virtual/MonthInput.js +1 -0
  11. package/dist/cjs/_virtual/MonthSelect.js +1 -0
  12. package/dist/cjs/_virtual/NativeInput.js +1 -0
  13. package/dist/cjs/_virtual/YearInput.js +1 -0
  14. package/dist/cjs/_virtual/_commonjsHelpers.js +1 -0
  15. package/dist/cjs/_virtual/clsx.m.js +1 -0
  16. package/dist/cjs/_virtual/dateFormatter.js +1 -0
  17. package/dist/cjs/_virtual/dates.js +1 -0
  18. package/dist/cjs/_virtual/entry.js +1 -0
  19. package/dist/cjs/_virtual/index.js +1 -0
  20. package/dist/cjs/_virtual/index10.js +1 -0
  21. package/dist/cjs/_virtual/index2.js +1 -0
  22. package/dist/cjs/_virtual/index3.js +1 -0
  23. package/dist/cjs/_virtual/index4.js +1 -0
  24. package/dist/cjs/_virtual/index5.js +1 -0
  25. package/dist/cjs/_virtual/index6.js +1 -0
  26. package/dist/cjs/_virtual/index7.js +1 -0
  27. package/dist/cjs/_virtual/index8.js +1 -0
  28. package/dist/cjs/_virtual/index9.js +1 -0
  29. package/dist/cjs/_virtual/propTypes.js +1 -0
  30. package/dist/cjs/_virtual/react-dom.development.js +1 -0
  31. package/dist/cjs/_virtual/react-dom.production.min.js +1 -0
  32. package/dist/cjs/_virtual/react-is.development.js +1 -0
  33. package/dist/cjs/_virtual/react-is.production.min.js +1 -0
  34. package/dist/cjs/_virtual/scheduler.development.js +1 -0
  35. package/dist/cjs/_virtual/scheduler.production.min.js +1 -0
  36. package/dist/cjs/_virtual/tiny-warning.esm.js +1 -0
  37. package/dist/cjs/_virtual/utils.js +1 -0
  38. package/dist/cjs/components/Avatar/Avatar.d.ts +22 -0
  39. package/dist/cjs/components/Avatar/Avatar.js +1 -0
  40. package/dist/cjs/components/Avatar/default.d.ts +7 -0
  41. package/dist/cjs/components/Avatar/default.js +1 -0
  42. package/dist/cjs/components/Checkbox/index.js +1 -0
  43. package/dist/cjs/components/ConversationCreate/ConversationCreatGroupDetail.js +1 -0
  44. package/dist/cjs/components/ConversationCreate/ConversationCreate.js +1 -0
  45. package/dist/cjs/components/ConversationCreate/ConversationCreateSelectView.js +1 -0
  46. package/dist/cjs/components/ConversationCreate/ConversationCreateUserSelectList.js +1 -0
  47. package/dist/cjs/components/ConversationCreate/ConversationGroupTypeInfo.js +1 -0
  48. package/dist/cjs/components/ConversationCreate/hooks/useConversationCreate.js +1 -0
  49. package/dist/cjs/components/ConversationCreate/static/word.js +1 -0
  50. package/dist/cjs/components/ConversationPreview/ConversationListContainer.d.ts +10 -0
  51. package/dist/cjs/components/ConversationPreview/ConversationListContainer.js +1 -0
  52. package/dist/cjs/components/ConversationPreview/ConversationPreview.d.ts +31 -0
  53. package/dist/cjs/components/ConversationPreview/ConversationPreview.js +1 -0
  54. package/dist/cjs/components/ConversationPreview/ConversationPreviewContent.d.ts +7 -0
  55. package/dist/cjs/components/ConversationPreview/ConversationPreviewContent.js +1 -0
  56. package/dist/cjs/components/ConversationPreview/utils.js +1 -0
  57. package/dist/cjs/components/ConversationSearch/ConversationSearchInput.d.ts +5 -0
  58. package/dist/cjs/components/ConversationSearch/ConversationSearchInput.js +1 -0
  59. package/dist/cjs/components/ConversationSearch/ConversationSearchResult.d.ts +12 -0
  60. package/dist/cjs/components/ConversationSearch/ConversationSearchResult.js +1 -0
  61. package/dist/cjs/components/DivWithEdit/DivWithEdit.js +1 -0
  62. package/dist/cjs/components/DivWithEdit/WithSelect.js +1 -0
  63. package/dist/cjs/components/DivWithEdit/WithText.js +1 -0
  64. package/dist/cjs/components/EmptyStateIndicator/EmptyStateIndicator.d.ts +6 -0
  65. package/dist/cjs/components/EmptyStateIndicator/EmptyStateIndicator.js +1 -0
  66. package/dist/cjs/components/Icon/Icon.js +1 -0
  67. package/dist/cjs/components/Icon/config.js +1 -0
  68. package/dist/cjs/components/Icon/images/add.png.js +1 -0
  69. package/dist/cjs/components/Icon/images/arrow-down.png.js +1 -0
  70. package/dist/cjs/components/Icon/images/arrow-right.png.js +1 -0
  71. package/dist/cjs/components/Icon/images/back.png.js +1 -0
  72. package/dist/cjs/components/Icon/images/camera.png.js +1 -0
  73. package/dist/cjs/components/Icon/images/cancel.png.js +1 -0
  74. package/dist/cjs/components/Icon/images/clear.png.js +1 -0
  75. package/dist/cjs/components/Icon/images/close.png.js +1 -0
  76. package/dist/cjs/components/Icon/images/confirm.png.js +1 -0
  77. package/dist/cjs/components/Icon/images/copy.png.js +1 -0
  78. package/dist/cjs/components/Icon/images/create.png.js +1 -0
  79. package/dist/cjs/components/Icon/images/cry.png.js +1 -0
  80. package/dist/cjs/components/Icon/images/del.png.js +1 -0
  81. package/dist/cjs/components/Icon/images/document.png.js +1 -0
  82. package/dist/cjs/components/Icon/images/edit.png.js +1 -0
  83. package/dist/cjs/components/Icon/images/effort.png.js +1 -0
  84. package/dist/cjs/components/Icon/images/ellipse.png.js +1 -0
  85. package/dist/cjs/components/Icon/images/emoji.png.js +1 -0
  86. package/dist/cjs/components/Icon/images/file.png.js +1 -0
  87. package/dist/cjs/components/Icon/images/forward.png.js +1 -0
  88. package/dist/cjs/components/Icon/images/image.png.js +1 -0
  89. package/dist/cjs/components/Icon/images/more.png.js +1 -0
  90. package/dist/cjs/components/Icon/images/progress.png.js +1 -0
  91. package/dist/cjs/components/Icon/images/quote.png.js +1 -0
  92. package/dist/cjs/components/Icon/images/reply.png.js +1 -0
  93. package/dist/cjs/components/Icon/images/revocation.png.js +1 -0
  94. package/dist/cjs/components/Icon/images/right.png.js +1 -0
  95. package/dist/cjs/components/Icon/images/search.png.js +1 -0
  96. package/dist/cjs/components/Icon/images/star.png.js +1 -0
  97. package/dist/cjs/components/Icon/images/video.png.js +1 -0
  98. package/dist/cjs/components/Icon/type.js +1 -0
  99. package/dist/cjs/components/InfiniteScrollPaginator/InfiniteScroll.d.ts +20 -0
  100. package/dist/cjs/components/InfiniteScrollPaginator/InfiniteScroll.js +1 -0
  101. package/dist/cjs/components/Input/Input.d.ts +16 -0
  102. package/dist/cjs/components/Input/Input.js +1 -0
  103. package/dist/cjs/components/Model/index.js +1 -0
  104. package/dist/cjs/components/Plugins/hooks/usePluginsElement.js +1 -0
  105. package/dist/cjs/components/Plugins/index.js +1 -0
  106. package/dist/cjs/components/Popup/index.js +1 -0
  107. package/dist/cjs/components/Profile/Profile.js +1 -0
  108. package/dist/cjs/components/Switch/Switch.js +1 -0
  109. package/dist/cjs/components/Switch/utils/newId.js +1 -0
  110. package/dist/cjs/components/TUIChat/TUIChat.d.ts +27 -0
  111. package/dist/cjs/components/TUIChat/TUIChat.js +1 -0
  112. package/dist/cjs/components/TUIChat/TUIChatState.js +1 -0
  113. package/dist/cjs/components/TUIChat/hooks/useCreateMessage.d.ts +31 -0
  114. package/dist/cjs/components/TUIChat/hooks/useCreateMessage.js +1 -0
  115. package/dist/cjs/components/TUIChat/hooks/useCreateTUIChatStateContext.js +1 -0
  116. package/dist/cjs/components/TUIChat/hooks/useHandleMessage.d.ts +7 -0
  117. package/dist/cjs/components/TUIChat/hooks/useHandleMessage.js +1 -0
  118. package/dist/cjs/components/TUIChat/hooks/useHandleMessageList.js +1 -0
  119. package/dist/cjs/components/TUIChat/hooks/useMessageReceviedListener.js +1 -0
  120. package/dist/cjs/components/TUIChat/unitls.js +1 -0
  121. package/dist/cjs/components/TUIChatHeader/TUIChatHeader.d.ts +13 -0
  122. package/dist/cjs/components/TUIChatHeader/TUIChatHeader.js +1 -0
  123. package/dist/cjs/components/TUIChatHeader/TUIChatHeaderDefault.d.ts +13 -0
  124. package/dist/cjs/components/TUIChatHeader/TUIChatHeaderDefault.js +1 -0
  125. package/dist/cjs/components/TUIConversation/TUIConversation.d.ts +10 -0
  126. package/dist/cjs/components/TUIConversation/TUIConversation.js +1 -0
  127. package/dist/cjs/components/TUIConversationList/TUIConversationList.d.ts +17 -0
  128. package/dist/cjs/components/TUIConversationList/TUIConversationList.js +1 -0
  129. package/dist/cjs/components/TUIConversationList/hooks/useConversationList.js +1 -0
  130. package/dist/cjs/components/TUIConversationList/hooks/useConversationUpdate.js +1 -0
  131. package/dist/cjs/components/TUIKit/TUIKit.d.ts +10 -0
  132. package/dist/cjs/components/TUIKit/TUIKit.js +1 -0
  133. package/dist/cjs/components/TUIKit/hooks/useCreateTUIKitContext.d.ts +17 -0
  134. package/dist/cjs/components/TUIKit/hooks/useCreateTUIKitContext.js +1 -0
  135. package/dist/cjs/components/TUIKit/hooks/useTUIKit.d.ts +17 -0
  136. package/dist/cjs/components/TUIKit/hooks/useTUIKit.js +1 -0
  137. package/dist/cjs/components/TUIManage/TUIManage.d.ts +3 -0
  138. package/dist/cjs/components/TUIManage/TUIManage.js +1 -0
  139. package/dist/cjs/components/TUIMessage/MessageAudio.js +1 -0
  140. package/dist/cjs/components/TUIMessage/MessageBubble.js +1 -0
  141. package/dist/cjs/components/TUIMessage/MessageContext.d.ts +7 -0
  142. package/dist/cjs/components/TUIMessage/MessageContext.js +1 -0
  143. package/dist/cjs/components/TUIMessage/MessageCustom.js +1 -0
  144. package/dist/cjs/components/TUIMessage/MessageFace.js +1 -0
  145. package/dist/cjs/components/TUIMessage/MessageFile.js +1 -0
  146. package/dist/cjs/components/TUIMessage/MessageImage.js +1 -0
  147. package/dist/cjs/components/TUIMessage/MessageLocation.js +1 -0
  148. package/dist/cjs/components/TUIMessage/MessageMerger.js +1 -0
  149. package/dist/cjs/components/TUIMessage/MessagePlugins.js +1 -0
  150. package/dist/cjs/components/TUIMessage/MessageRevoke.js +1 -0
  151. package/dist/cjs/components/TUIMessage/MessageStatus.js +1 -0
  152. package/dist/cjs/components/TUIMessage/MessageSystem.js +1 -0
  153. package/dist/cjs/components/TUIMessage/MessageText.js +1 -0
  154. package/dist/cjs/components/TUIMessage/MessageTip.js +1 -0
  155. package/dist/cjs/components/TUIMessage/MessageVideo.js +1 -0
  156. package/dist/cjs/components/TUIMessage/TUIMessage.d.ts +41 -0
  157. package/dist/cjs/components/TUIMessage/TUIMessage.js +1 -0
  158. package/dist/cjs/components/TUIMessage/TUIMessageDefault.js +1 -0
  159. package/dist/cjs/components/TUIMessage/hooks/useMessageContextHandler.js +1 -0
  160. package/dist/cjs/components/TUIMessage/hooks/useMessageHandler.js +1 -0
  161. package/dist/cjs/components/TUIMessage/hooks/useMessagePluginElement.js +1 -0
  162. package/dist/cjs/components/TUIMessage/hooks/useMessageReply.js +1 -0
  163. package/dist/cjs/components/TUIMessage/utils/decodeText.js +1 -0
  164. package/dist/cjs/components/TUIMessage/utils/emojiMap.js +1 -0
  165. package/dist/cjs/components/TUIMessage/utils/index.js +1 -0
  166. package/dist/cjs/components/TUIMessageInput/EmojiPicker.js +1 -0
  167. package/dist/cjs/components/TUIMessageInput/InputPluginsDefalut.d.ts +5 -0
  168. package/dist/cjs/components/TUIMessageInput/InputPluginsDefalut.js +1 -0
  169. package/dist/cjs/components/TUIMessageInput/InputQuoteDefalut.js +1 -0
  170. package/dist/cjs/components/TUIMessageInput/TUIForward.js +1 -0
  171. package/dist/cjs/components/TUIMessageInput/TUIMessageInput.d.ts +18 -0
  172. package/dist/cjs/components/TUIMessageInput/TUIMessageInput.js +1 -0
  173. package/dist/cjs/components/TUIMessageInput/TUIMessageInputDefault.d.ts +5 -0
  174. package/dist/cjs/components/TUIMessageInput/TUIMessageInputDefault.js +1 -0
  175. package/dist/cjs/components/TUIMessageInput/hooks/useCreateMessageInputContext.js +1 -0
  176. package/dist/cjs/components/TUIMessageInput/hooks/useEmojiPicker.d.ts +6 -0
  177. package/dist/cjs/components/TUIMessageInput/hooks/useEmojiPicker.js +1 -0
  178. package/dist/cjs/components/TUIMessageInput/hooks/useHandleForwardMessage.js +1 -0
  179. package/dist/cjs/components/TUIMessageInput/hooks/useHandleQuoteMessage.js +1 -0
  180. package/dist/cjs/components/TUIMessageInput/hooks/useMessageInputState.d.ts +6 -0
  181. package/dist/cjs/components/TUIMessageInput/hooks/useMessageInputState.js +1 -0
  182. package/dist/cjs/components/TUIMessageInput/hooks/useMessageInputText.js +1 -0
  183. package/dist/cjs/components/TUIMessageInput/hooks/useUploadElement.js +1 -0
  184. package/dist/cjs/components/TUIMessageInput/hooks/useUploadPicker.d.ts +5 -0
  185. package/dist/cjs/components/TUIMessageInput/hooks/useUploadPicker.js +1 -0
  186. package/dist/cjs/components/TUIMessageList/TUIMessageList.d.ts +11 -0
  187. package/dist/cjs/components/TUIMessageList/TUIMessageList.js +1 -0
  188. package/dist/cjs/components/TUIMessageList/hooks/useEnrichedMessageList.js +1 -0
  189. package/dist/cjs/components/TUIMessageList/hooks/useMessageListElement.js +1 -0
  190. package/dist/cjs/components/TUIProfile/TUIProfile.d.ts +10 -0
  191. package/dist/cjs/components/TUIProfile/TUIProfile.js +1 -0
  192. package/dist/cjs/components/TUIProfile/TUIProfileDefault.d.ts +12 -0
  193. package/dist/cjs/components/TUIProfile/TUIProfileDefault.js +1 -0
  194. package/dist/cjs/components/TUIProfile/hooks/useMyProfile.d.ts +17 -0
  195. package/dist/cjs/components/TUIProfile/hooks/useMyProfile.js +1 -0
  196. package/dist/cjs/components/Toast/index.js +1 -0
  197. package/dist/cjs/components/untils.js +1 -0
  198. package/dist/cjs/constants.d.ts +11 -0
  199. package/dist/cjs/constants.js +1 -0
  200. package/dist/cjs/context/ComponentContext.d.ts +26 -0
  201. package/dist/cjs/context/ComponentContext.js +1 -0
  202. package/dist/cjs/context/TUIChatActionContext.d.ts +27 -0
  203. package/dist/cjs/context/TUIChatActionContext.js +1 -0
  204. package/dist/cjs/context/TUIChatStateContext.d.ts +25 -0
  205. package/dist/cjs/context/TUIChatStateContext.js +1 -0
  206. package/dist/cjs/context/TUIConversationContext.js +1 -0
  207. package/dist/cjs/context/TUIKitContext.d.ts +21 -0
  208. package/dist/cjs/context/TUIKitContext.js +1 -0
  209. package/dist/cjs/context/TUIMessageContext.d.ts +41 -0
  210. package/dist/cjs/context/TUIMessageContext.js +1 -0
  211. package/dist/cjs/context/TUIMessageInputContext.d.ts +37 -0
  212. package/dist/cjs/context/TUIMessageInputContext.js +1 -0
  213. package/dist/cjs/hooks/useConversation.d.ts +25 -0
  214. package/dist/cjs/hooks/useConversation.js +1 -0
  215. package/dist/cjs/hooks/useProfile.d.ts +5 -0
  216. package/dist/cjs/hooks/useProfile.js +1 -0
  217. package/dist/cjs/index.css +1 -0
  218. package/dist/cjs/index.d.css +1281 -0
  219. package/dist/cjs/index.d.ts +29 -0
  220. package/dist/cjs/index.js +1 -0
  221. package/dist/esm/_virtual/DateInput.js +1 -0
  222. package/dist/esm/_virtual/DatePicker.js +1 -0
  223. package/dist/esm/_virtual/DayInput.js +1 -0
  224. package/dist/esm/_virtual/Divider.js +1 -0
  225. package/dist/esm/_virtual/Fit.js +1 -0
  226. package/dist/esm/_virtual/Input.js +1 -0
  227. package/dist/esm/_virtual/MonthInput.js +1 -0
  228. package/dist/esm/_virtual/MonthSelect.js +1 -0
  229. package/dist/esm/_virtual/NativeInput.js +1 -0
  230. package/dist/esm/_virtual/YearInput.js +1 -0
  231. package/dist/esm/_virtual/_commonjsHelpers.js +1 -0
  232. package/dist/esm/_virtual/clsx.m.js +1 -0
  233. package/dist/esm/_virtual/dateFormatter.js +1 -0
  234. package/dist/esm/_virtual/dates.js +1 -0
  235. package/dist/esm/_virtual/entry.js +1 -0
  236. package/dist/esm/_virtual/index.js +1 -0
  237. package/dist/esm/_virtual/index10.js +1 -0
  238. package/dist/esm/_virtual/index2.js +1 -0
  239. package/dist/esm/_virtual/index3.js +1 -0
  240. package/dist/esm/_virtual/index4.js +1 -0
  241. package/dist/esm/_virtual/index5.js +1 -0
  242. package/dist/esm/_virtual/index6.js +1 -0
  243. package/dist/esm/_virtual/index7.js +1 -0
  244. package/dist/esm/_virtual/index8.js +1 -0
  245. package/dist/esm/_virtual/index9.js +1 -0
  246. package/dist/esm/_virtual/propTypes.js +1 -0
  247. package/dist/esm/_virtual/react-dom.development.js +1 -0
  248. package/dist/esm/_virtual/react-dom.production.min.js +1 -0
  249. package/dist/esm/_virtual/react-is.development.js +1 -0
  250. package/dist/esm/_virtual/react-is.production.min.js +1 -0
  251. package/dist/esm/_virtual/scheduler.development.js +1 -0
  252. package/dist/esm/_virtual/scheduler.production.min.js +1 -0
  253. package/dist/esm/_virtual/tiny-warning.esm.js +1 -0
  254. package/dist/esm/_virtual/utils.js +1 -0
  255. package/dist/esm/components/Avatar/Avatar.d.ts +22 -0
  256. package/dist/esm/components/Avatar/Avatar.js +1 -0
  257. package/dist/esm/components/Avatar/default.d.ts +7 -0
  258. package/dist/esm/components/Avatar/default.js +1 -0
  259. package/dist/esm/components/Checkbox/index.js +1 -0
  260. package/dist/esm/components/ConversationCreate/ConversationCreatGroupDetail.js +1 -0
  261. package/dist/esm/components/ConversationCreate/ConversationCreate.js +1 -0
  262. package/dist/esm/components/ConversationCreate/ConversationCreateSelectView.js +1 -0
  263. package/dist/esm/components/ConversationCreate/ConversationCreateUserSelectList.js +1 -0
  264. package/dist/esm/components/ConversationCreate/ConversationGroupTypeInfo.js +1 -0
  265. package/dist/esm/components/ConversationCreate/hooks/useConversationCreate.js +1 -0
  266. package/dist/esm/components/ConversationCreate/static/word.js +1 -0
  267. package/dist/esm/components/ConversationPreview/ConversationListContainer.d.ts +10 -0
  268. package/dist/esm/components/ConversationPreview/ConversationListContainer.js +1 -0
  269. package/dist/esm/components/ConversationPreview/ConversationPreview.d.ts +31 -0
  270. package/dist/esm/components/ConversationPreview/ConversationPreview.js +1 -0
  271. package/dist/esm/components/ConversationPreview/ConversationPreviewContent.d.ts +7 -0
  272. package/dist/esm/components/ConversationPreview/ConversationPreviewContent.js +1 -0
  273. package/dist/esm/components/ConversationPreview/utils.js +1 -0
  274. package/dist/esm/components/ConversationSearch/ConversationSearchInput.d.ts +5 -0
  275. package/dist/esm/components/ConversationSearch/ConversationSearchInput.js +1 -0
  276. package/dist/esm/components/ConversationSearch/ConversationSearchResult.d.ts +12 -0
  277. package/dist/esm/components/ConversationSearch/ConversationSearchResult.js +1 -0
  278. package/dist/esm/components/DivWithEdit/DivWithEdit.js +1 -0
  279. package/dist/esm/components/DivWithEdit/WithSelect.js +1 -0
  280. package/dist/esm/components/DivWithEdit/WithText.js +1 -0
  281. package/dist/esm/components/EmptyStateIndicator/EmptyStateIndicator.d.ts +6 -0
  282. package/dist/esm/components/EmptyStateIndicator/EmptyStateIndicator.js +1 -0
  283. package/dist/esm/components/Icon/Icon.js +1 -0
  284. package/dist/esm/components/Icon/config.js +1 -0
  285. package/dist/esm/components/Icon/images/add.png.js +1 -0
  286. package/dist/esm/components/Icon/images/arrow-down.png.js +1 -0
  287. package/dist/esm/components/Icon/images/arrow-right.png.js +1 -0
  288. package/dist/esm/components/Icon/images/back.png.js +1 -0
  289. package/dist/esm/components/Icon/images/camera.png.js +1 -0
  290. package/dist/esm/components/Icon/images/cancel.png.js +1 -0
  291. package/dist/esm/components/Icon/images/clear.png.js +1 -0
  292. package/dist/esm/components/Icon/images/close.png.js +1 -0
  293. package/dist/esm/components/Icon/images/confirm.png.js +1 -0
  294. package/dist/esm/components/Icon/images/copy.png.js +1 -0
  295. package/dist/esm/components/Icon/images/create.png.js +1 -0
  296. package/dist/esm/components/Icon/images/cry.png.js +1 -0
  297. package/dist/esm/components/Icon/images/del.png.js +1 -0
  298. package/dist/esm/components/Icon/images/document.png.js +1 -0
  299. package/dist/esm/components/Icon/images/edit.png.js +1 -0
  300. package/dist/esm/components/Icon/images/effort.png.js +1 -0
  301. package/dist/esm/components/Icon/images/ellipse.png.js +1 -0
  302. package/dist/esm/components/Icon/images/emoji.png.js +1 -0
  303. package/dist/esm/components/Icon/images/file.png.js +1 -0
  304. package/dist/esm/components/Icon/images/forward.png.js +1 -0
  305. package/dist/esm/components/Icon/images/image.png.js +1 -0
  306. package/dist/esm/components/Icon/images/more.png.js +1 -0
  307. package/dist/esm/components/Icon/images/progress.png.js +1 -0
  308. package/dist/esm/components/Icon/images/quote.png.js +1 -0
  309. package/dist/esm/components/Icon/images/reply.png.js +1 -0
  310. package/dist/esm/components/Icon/images/revocation.png.js +1 -0
  311. package/dist/esm/components/Icon/images/right.png.js +1 -0
  312. package/dist/esm/components/Icon/images/search.png.js +1 -0
  313. package/dist/esm/components/Icon/images/star.png.js +1 -0
  314. package/dist/esm/components/Icon/images/video.png.js +1 -0
  315. package/dist/esm/components/Icon/type.js +1 -0
  316. package/dist/esm/components/InfiniteScrollPaginator/InfiniteScroll.d.ts +20 -0
  317. package/dist/esm/components/InfiniteScrollPaginator/InfiniteScroll.js +1 -0
  318. package/dist/esm/components/Input/Input.d.ts +16 -0
  319. package/dist/esm/components/Input/Input.js +1 -0
  320. package/dist/esm/components/Model/index.js +1 -0
  321. package/dist/esm/components/Plugins/hooks/usePluginsElement.js +1 -0
  322. package/dist/esm/components/Plugins/index.js +1 -0
  323. package/dist/esm/components/Popup/index.js +1 -0
  324. package/dist/esm/components/Profile/Profile.js +1 -0
  325. package/dist/esm/components/Switch/Switch.js +1 -0
  326. package/dist/esm/components/Switch/utils/newId.js +1 -0
  327. package/dist/esm/components/TUIChat/TUIChat.d.ts +27 -0
  328. package/dist/esm/components/TUIChat/TUIChat.js +1 -0
  329. package/dist/esm/components/TUIChat/TUIChatState.js +1 -0
  330. package/dist/esm/components/TUIChat/hooks/useCreateMessage.d.ts +31 -0
  331. package/dist/esm/components/TUIChat/hooks/useCreateMessage.js +1 -0
  332. package/dist/esm/components/TUIChat/hooks/useCreateTUIChatStateContext.js +1 -0
  333. package/dist/esm/components/TUIChat/hooks/useHandleMessage.d.ts +7 -0
  334. package/dist/esm/components/TUIChat/hooks/useHandleMessage.js +1 -0
  335. package/dist/esm/components/TUIChat/hooks/useHandleMessageList.js +1 -0
  336. package/dist/esm/components/TUIChat/hooks/useMessageReceviedListener.js +1 -0
  337. package/dist/esm/components/TUIChat/unitls.js +1 -0
  338. package/dist/esm/components/TUIChatHeader/TUIChatHeader.d.ts +13 -0
  339. package/dist/esm/components/TUIChatHeader/TUIChatHeader.js +1 -0
  340. package/dist/esm/components/TUIChatHeader/TUIChatHeaderDefault.d.ts +13 -0
  341. package/dist/esm/components/TUIChatHeader/TUIChatHeaderDefault.js +1 -0
  342. package/dist/esm/components/TUIConversation/TUIConversation.d.ts +10 -0
  343. package/dist/esm/components/TUIConversation/TUIConversation.js +1 -0
  344. package/dist/esm/components/TUIConversationList/TUIConversationList.d.ts +17 -0
  345. package/dist/esm/components/TUIConversationList/TUIConversationList.js +1 -0
  346. package/dist/esm/components/TUIConversationList/hooks/useConversationList.js +1 -0
  347. package/dist/esm/components/TUIConversationList/hooks/useConversationUpdate.js +1 -0
  348. package/dist/esm/components/TUIKit/TUIKit.d.ts +10 -0
  349. package/dist/esm/components/TUIKit/TUIKit.js +1 -0
  350. package/dist/esm/components/TUIKit/hooks/useCreateTUIKitContext.d.ts +17 -0
  351. package/dist/esm/components/TUIKit/hooks/useCreateTUIKitContext.js +1 -0
  352. package/dist/esm/components/TUIKit/hooks/useTUIKit.d.ts +17 -0
  353. package/dist/esm/components/TUIKit/hooks/useTUIKit.js +1 -0
  354. package/dist/esm/components/TUIManage/TUIManage.d.ts +3 -0
  355. package/dist/esm/components/TUIManage/TUIManage.js +1 -0
  356. package/dist/esm/components/TUIMessage/MessageAudio.js +1 -0
  357. package/dist/esm/components/TUIMessage/MessageBubble.js +1 -0
  358. package/dist/esm/components/TUIMessage/MessageContext.d.ts +7 -0
  359. package/dist/esm/components/TUIMessage/MessageContext.js +1 -0
  360. package/dist/esm/components/TUIMessage/MessageCustom.js +1 -0
  361. package/dist/esm/components/TUIMessage/MessageFace.js +1 -0
  362. package/dist/esm/components/TUIMessage/MessageFile.js +1 -0
  363. package/dist/esm/components/TUIMessage/MessageImage.js +1 -0
  364. package/dist/esm/components/TUIMessage/MessageLocation.js +1 -0
  365. package/dist/esm/components/TUIMessage/MessageMerger.js +1 -0
  366. package/dist/esm/components/TUIMessage/MessagePlugins.js +1 -0
  367. package/dist/esm/components/TUIMessage/MessageRevoke.js +1 -0
  368. package/dist/esm/components/TUIMessage/MessageStatus.js +1 -0
  369. package/dist/esm/components/TUIMessage/MessageSystem.js +1 -0
  370. package/dist/esm/components/TUIMessage/MessageText.js +1 -0
  371. package/dist/esm/components/TUIMessage/MessageTip.js +1 -0
  372. package/dist/esm/components/TUIMessage/MessageVideo.js +1 -0
  373. package/dist/esm/components/TUIMessage/TUIMessage.d.ts +41 -0
  374. package/dist/esm/components/TUIMessage/TUIMessage.js +1 -0
  375. package/dist/esm/components/TUIMessage/TUIMessageDefault.js +1 -0
  376. package/dist/esm/components/TUIMessage/hooks/useMessageContextHandler.js +1 -0
  377. package/dist/esm/components/TUIMessage/hooks/useMessageHandler.js +1 -0
  378. package/dist/esm/components/TUIMessage/hooks/useMessagePluginElement.js +1 -0
  379. package/dist/esm/components/TUIMessage/hooks/useMessageReply.js +1 -0
  380. package/dist/esm/components/TUIMessage/utils/decodeText.js +1 -0
  381. package/dist/esm/components/TUIMessage/utils/emojiMap.js +1 -0
  382. package/dist/esm/components/TUIMessage/utils/index.js +1 -0
  383. package/dist/esm/components/TUIMessageInput/EmojiPicker.js +1 -0
  384. package/dist/esm/components/TUIMessageInput/InputPluginsDefalut.d.ts +5 -0
  385. package/dist/esm/components/TUIMessageInput/InputPluginsDefalut.js +1 -0
  386. package/dist/esm/components/TUIMessageInput/InputQuoteDefalut.js +1 -0
  387. package/dist/esm/components/TUIMessageInput/TUIForward.js +1 -0
  388. package/dist/esm/components/TUIMessageInput/TUIMessageInput.d.ts +18 -0
  389. package/dist/esm/components/TUIMessageInput/TUIMessageInput.js +1 -0
  390. package/dist/esm/components/TUIMessageInput/TUIMessageInputDefault.d.ts +5 -0
  391. package/dist/esm/components/TUIMessageInput/TUIMessageInputDefault.js +1 -0
  392. package/dist/esm/components/TUIMessageInput/hooks/useCreateMessageInputContext.js +1 -0
  393. package/dist/esm/components/TUIMessageInput/hooks/useEmojiPicker.d.ts +6 -0
  394. package/dist/esm/components/TUIMessageInput/hooks/useEmojiPicker.js +1 -0
  395. package/dist/esm/components/TUIMessageInput/hooks/useHandleForwardMessage.js +1 -0
  396. package/dist/esm/components/TUIMessageInput/hooks/useHandleQuoteMessage.js +1 -0
  397. package/dist/esm/components/TUIMessageInput/hooks/useMessageInputState.d.ts +6 -0
  398. package/dist/esm/components/TUIMessageInput/hooks/useMessageInputState.js +1 -0
  399. package/dist/esm/components/TUIMessageInput/hooks/useMessageInputText.js +1 -0
  400. package/dist/esm/components/TUIMessageInput/hooks/useUploadElement.js +1 -0
  401. package/dist/esm/components/TUIMessageInput/hooks/useUploadPicker.d.ts +5 -0
  402. package/dist/esm/components/TUIMessageInput/hooks/useUploadPicker.js +1 -0
  403. package/dist/esm/components/TUIMessageList/TUIMessageList.d.ts +11 -0
  404. package/dist/esm/components/TUIMessageList/TUIMessageList.js +1 -0
  405. package/dist/esm/components/TUIMessageList/hooks/useEnrichedMessageList.js +1 -0
  406. package/dist/esm/components/TUIMessageList/hooks/useMessageListElement.js +1 -0
  407. package/dist/esm/components/TUIProfile/TUIProfile.d.ts +10 -0
  408. package/dist/esm/components/TUIProfile/TUIProfile.js +1 -0
  409. package/dist/esm/components/TUIProfile/TUIProfileDefault.d.ts +12 -0
  410. package/dist/esm/components/TUIProfile/TUIProfileDefault.js +1 -0
  411. package/dist/esm/components/TUIProfile/hooks/useMyProfile.d.ts +17 -0
  412. package/dist/esm/components/TUIProfile/hooks/useMyProfile.js +1 -0
  413. package/dist/esm/components/Toast/index.js +1 -0
  414. package/dist/esm/components/untils.js +1 -0
  415. package/dist/esm/constants.d.ts +11 -0
  416. package/dist/esm/constants.js +1 -0
  417. package/dist/esm/context/ComponentContext.d.ts +26 -0
  418. package/dist/esm/context/ComponentContext.js +1 -0
  419. package/dist/esm/context/TUIChatActionContext.d.ts +27 -0
  420. package/dist/esm/context/TUIChatActionContext.js +1 -0
  421. package/dist/esm/context/TUIChatStateContext.d.ts +25 -0
  422. package/dist/esm/context/TUIChatStateContext.js +1 -0
  423. package/dist/esm/context/TUIConversationContext.js +1 -0
  424. package/dist/esm/context/TUIKitContext.d.ts +21 -0
  425. package/dist/esm/context/TUIKitContext.js +1 -0
  426. package/dist/esm/context/TUIMessageContext.d.ts +41 -0
  427. package/dist/esm/context/TUIMessageContext.js +1 -0
  428. package/dist/esm/context/TUIMessageInputContext.d.ts +37 -0
  429. package/dist/esm/context/TUIMessageInputContext.js +1 -0
  430. package/dist/esm/hooks/useConversation.d.ts +25 -0
  431. package/dist/esm/hooks/useConversation.js +1 -0
  432. package/dist/esm/hooks/useProfile.d.ts +5 -0
  433. package/dist/esm/hooks/useProfile.js +1 -0
  434. package/dist/esm/index.css +1 -0
  435. package/dist/esm/index.d.css +1281 -0
  436. package/dist/esm/index.d.ts +29 -0
  437. package/dist/esm/index.js +1 -0
  438. package/package.json +70 -0
  439. package/rollup.config.js +66 -0
  440. package/src/@types/images.d.ts +7 -0
  441. package/src/@types/index.d.ts +1 -0
  442. package/src/@types/index.js +3 -0
  443. package/src/components/Avatar/Avatar.tsx +151 -0
  444. package/src/components/Avatar/default.ts +5 -0
  445. package/src/components/Avatar/index.ts +2 -0
  446. package/src/components/Avatar/styles/index.scss +55 -0
  447. package/src/components/Checkbox/index.tsx +53 -0
  448. package/src/components/Checkbox/styles/color.scss +11 -0
  449. package/src/components/Checkbox/styles/index.scss +2 -0
  450. package/src/components/Checkbox/styles/layout.scss +25 -0
  451. package/src/components/ConversationCreate/ConversationCreatGroupDetail.tsx +155 -0
  452. package/src/components/ConversationCreate/ConversationCreate.tsx +74 -0
  453. package/src/components/ConversationCreate/ConversationCreateSelectView.tsx +46 -0
  454. package/src/components/ConversationCreate/ConversationCreateUserSelectList.tsx +158 -0
  455. package/src/components/ConversationCreate/ConversationGroupTypeInfo.tsx +50 -0
  456. package/src/components/ConversationCreate/hooks/useConversationCreate.tsx +105 -0
  457. package/src/components/ConversationCreate/index.ts +6 -0
  458. package/src/components/ConversationCreate/static/word.ts +300 -0
  459. package/src/components/ConversationCreate/styles/ConversationCreatGroupDetail.scss +58 -0
  460. package/src/components/ConversationCreate/styles/conversationCreateSelectView.scss +32 -0
  461. package/src/components/ConversationCreate/styles/conversationGroupTypeInfo.scss +61 -0
  462. package/src/components/ConversationCreate/styles/index.scss +87 -0
  463. package/src/components/ConversationPreview/ConversationListContainer.tsx +20 -0
  464. package/src/components/ConversationPreview/ConversationPreview.tsx +75 -0
  465. package/src/components/ConversationPreview/ConversationPreviewContent.tsx +136 -0
  466. package/src/components/ConversationPreview/index.ts +2 -0
  467. package/src/components/ConversationPreview/styles/index.scss +140 -0
  468. package/src/components/ConversationPreview/utils.tsx +124 -0
  469. package/src/components/ConversationSearch/ConversationSearchInput.tsx +25 -0
  470. package/src/components/ConversationSearch/ConversationSearchResult.tsx +39 -0
  471. package/src/components/ConversationSearch/index.ts +2 -0
  472. package/src/components/ConversationSearch/styles/index.scss +19 -0
  473. package/src/components/DivWithEdit/DivWithEdit.tsx +90 -0
  474. package/src/components/DivWithEdit/WithSelect.tsx +29 -0
  475. package/src/components/DivWithEdit/WithText.tsx +42 -0
  476. package/src/components/DivWithEdit/index.ts +1 -0
  477. package/src/components/DivWithEdit/styles/index.scss +68 -0
  478. package/src/components/EmptyStateIndicator/EmptyStateIndicator.tsx +23 -0
  479. package/src/components/EmptyStateIndicator/index.ts +1 -0
  480. package/src/components/Icon/Icon.tsx +40 -0
  481. package/src/components/Icon/config.ts +164 -0
  482. package/src/components/Icon/images/add.png +0 -0
  483. package/src/components/Icon/images/arrow-down.png +0 -0
  484. package/src/components/Icon/images/arrow-right.png +0 -0
  485. package/src/components/Icon/images/back.png +0 -0
  486. package/src/components/Icon/images/camera.png +0 -0
  487. package/src/components/Icon/images/cancel.png +0 -0
  488. package/src/components/Icon/images/clear.png +0 -0
  489. package/src/components/Icon/images/close.png +0 -0
  490. package/src/components/Icon/images/confirm.png +0 -0
  491. package/src/components/Icon/images/copy.png +0 -0
  492. package/src/components/Icon/images/create.png +0 -0
  493. package/src/components/Icon/images/cry.png +0 -0
  494. package/src/components/Icon/images/del.png +0 -0
  495. package/src/components/Icon/images/document.png +0 -0
  496. package/src/components/Icon/images/edit.png +0 -0
  497. package/src/components/Icon/images/effort.png +0 -0
  498. package/src/components/Icon/images/ellipse.png +0 -0
  499. package/src/components/Icon/images/emoji.png +0 -0
  500. package/src/components/Icon/images/file.png +0 -0
  501. package/src/components/Icon/images/forward.png +0 -0
  502. package/src/components/Icon/images/image.png +0 -0
  503. package/src/components/Icon/images/more.png +0 -0
  504. package/src/components/Icon/images/progress.png +0 -0
  505. package/src/components/Icon/images/quote.png +0 -0
  506. package/src/components/Icon/images/reply.png +0 -0
  507. package/src/components/Icon/images/revocation.png +0 -0
  508. package/src/components/Icon/images/right.png +0 -0
  509. package/src/components/Icon/images/search.png +0 -0
  510. package/src/components/Icon/images/star.png +0 -0
  511. package/src/components/Icon/images/video.png +0 -0
  512. package/src/components/Icon/index.ts +2 -0
  513. package/src/components/Icon/styles/index.scss +31 -0
  514. package/src/components/Icon/type.ts +32 -0
  515. package/src/components/InfiniteScrollPaginator/InfiniteScroll.tsx +115 -0
  516. package/src/components/InfiniteScrollPaginator/index.ts +1 -0
  517. package/src/components/Input/Input.tsx +108 -0
  518. package/src/components/Input/index.ts +1 -0
  519. package/src/components/Input/styles/index.scss +44 -0
  520. package/src/components/Model/index.tsx +24 -0
  521. package/src/components/Model/styles/color.scss +0 -0
  522. package/src/components/Model/styles/index.scss +2 -0
  523. package/src/components/Model/styles/layout.scss +12 -0
  524. package/src/components/Plugins/hooks/index.ts +1 -0
  525. package/src/components/Plugins/hooks/usePluginsElement.tsx +16 -0
  526. package/src/components/Plugins/index.tsx +99 -0
  527. package/src/components/Plugins/styles/color.scss +7 -0
  528. package/src/components/Plugins/styles/index.scss +2 -0
  529. package/src/components/Plugins/styles/layout.scss +18 -0
  530. package/src/components/Popup/index.tsx +76 -0
  531. package/src/components/Popup/styles/color.scss +0 -0
  532. package/src/components/Popup/styles/index.scss +2 -0
  533. package/src/components/Popup/styles/layout.scss +6 -0
  534. package/src/components/Profile/Profile.tsx +25 -0
  535. package/src/components/Profile/hooks/useProfile.tsx +28 -0
  536. package/src/components/Profile/index.ts +2 -0
  537. package/src/components/Profile/styles/index.scss +17 -0
  538. package/src/components/Switch/Switch.scss +37 -0
  539. package/src/components/Switch/Switch.tsx +41 -0
  540. package/src/components/Switch/index.ts +1 -0
  541. package/src/components/Switch/utils/newId.tsx +6 -0
  542. package/src/components/TUIChat/TUIChat.tsx +276 -0
  543. package/src/components/TUIChat/TUIChatState.tsx +129 -0
  544. package/src/components/TUIChat/hooks/useCreateMessage.tsx +117 -0
  545. package/src/components/TUIChat/hooks/useCreateTUIChatStateContext.tsx +34 -0
  546. package/src/components/TUIChat/hooks/useHandleMessage.tsx +33 -0
  547. package/src/components/TUIChat/hooks/useHandleMessageList.tsx +70 -0
  548. package/src/components/TUIChat/hooks/useIsMounted.ts +14 -0
  549. package/src/components/TUIChat/hooks/useMessageReceviedListener.tsx +26 -0
  550. package/src/components/TUIChat/index.ts +2 -0
  551. package/src/components/TUIChat/styles/index.scss +1 -0
  552. package/src/components/TUIChat/styles/layout.scss +9 -0
  553. package/src/components/TUIChat/unitls.ts +55 -0
  554. package/src/components/TUIChatHeader/TUIChatHeader.tsx +41 -0
  555. package/src/components/TUIChatHeader/TUIChatHeaderDefault.tsx +97 -0
  556. package/src/components/TUIChatHeader/index.ts +2 -0
  557. package/src/components/TUIChatHeader/styles/color.scss +3 -0
  558. package/src/components/TUIChatHeader/styles/index.scss +2 -0
  559. package/src/components/TUIChatHeader/styles/layout.scss +32 -0
  560. package/src/components/TUIConversation/TUIConversation.tsx +44 -0
  561. package/src/components/TUIConversation/index.ts +1 -0
  562. package/src/components/TUIConversationList/TUIConversationList.tsx +142 -0
  563. package/src/components/TUIConversationList/hooks/useConversationList.tsx +41 -0
  564. package/src/components/TUIConversationList/hooks/useConversationUpdate.tsx +33 -0
  565. package/src/components/TUIConversationList/index.scss +36 -0
  566. package/src/components/TUIConversationList/index.ts +2 -0
  567. package/src/components/TUIKit/TUIKit.tsx +56 -0
  568. package/src/components/TUIKit/hooks/useCreateTUIKitContext.tsx +40 -0
  569. package/src/components/TUIKit/hooks/useTUIKit.tsx +40 -0
  570. package/src/components/TUIKit/index.ts +3 -0
  571. package/src/components/TUIKit/styles/index.scss +9 -0
  572. package/src/components/TUIKit/styles/reset.scss +43 -0
  573. package/src/components/TUIManage/TUIManage.tsx +86 -0
  574. package/src/components/TUIManage/index.ts +1 -0
  575. package/src/components/TUIManage/styles/index.scss +67 -0
  576. package/src/components/TUIMessage/MessageAudio.tsx +28 -0
  577. package/src/components/TUIMessage/MessageBubble.tsx +99 -0
  578. package/src/components/TUIMessage/MessageContext.tsx +81 -0
  579. package/src/components/TUIMessage/MessageCustom.tsx +40 -0
  580. package/src/components/TUIMessage/MessageFace.tsx +28 -0
  581. package/src/components/TUIMessage/MessageFile.tsx +35 -0
  582. package/src/components/TUIMessage/MessageImage.tsx +42 -0
  583. package/src/components/TUIMessage/MessageLocation.tsx +29 -0
  584. package/src/components/TUIMessage/MessageMerger.tsx +37 -0
  585. package/src/components/TUIMessage/MessagePlugins.tsx +149 -0
  586. package/src/components/TUIMessage/MessageRevoke.tsx +47 -0
  587. package/src/components/TUIMessage/MessageStatus.tsx +34 -0
  588. package/src/components/TUIMessage/MessageSystem.tsx +30 -0
  589. package/src/components/TUIMessage/MessageText.tsx +43 -0
  590. package/src/components/TUIMessage/MessageTip.tsx +28 -0
  591. package/src/components/TUIMessage/MessageVideo.tsx +42 -0
  592. package/src/components/TUIMessage/TUIMessage.tsx +98 -0
  593. package/src/components/TUIMessage/TUIMessageDefault.tsx +93 -0
  594. package/src/components/TUIMessage/hooks/index.ts +3 -0
  595. package/src/components/TUIMessage/hooks/useMessageContextHandler.ts +70 -0
  596. package/src/components/TUIMessage/hooks/useMessageHandler.ts +142 -0
  597. package/src/components/TUIMessage/hooks/useMessagePluginElement.tsx +17 -0
  598. package/src/components/TUIMessage/hooks/useMessageReply.ts +65 -0
  599. package/src/components/TUIMessage/index.ts +3 -0
  600. package/src/components/TUIMessage/styles/color.scss +32 -0
  601. package/src/components/TUIMessage/styles/index.scss +2 -0
  602. package/src/components/TUIMessage/styles/layout.scss +389 -0
  603. package/src/components/TUIMessage/utils/decodeText.ts +61 -0
  604. package/src/components/TUIMessage/utils/emojiMap.ts +311 -0
  605. package/src/components/TUIMessage/utils/index.ts +463 -0
  606. package/src/components/TUIMessageInput/EmojiPicker.tsx +71 -0
  607. package/src/components/TUIMessageInput/InputPluginsDefalut.tsx +69 -0
  608. package/src/components/TUIMessageInput/InputQuoteDefalut.tsx +41 -0
  609. package/src/components/TUIMessageInput/TUIForward.tsx +194 -0
  610. package/src/components/TUIMessageInput/TUIMessageInput.tsx +94 -0
  611. package/src/components/TUIMessageInput/TUIMessageInputDefault.tsx +75 -0
  612. package/src/components/TUIMessageInput/hooks/index.ts +6 -0
  613. package/src/components/TUIMessageInput/hooks/useCreateMessageInputContext.ts +51 -0
  614. package/src/components/TUIMessageInput/hooks/useEmojiPicker.tsx +42 -0
  615. package/src/components/TUIMessageInput/hooks/useHandleForwardMessage.tsx +41 -0
  616. package/src/components/TUIMessageInput/hooks/useHandleQuoteMessage.tsx +63 -0
  617. package/src/components/TUIMessageInput/hooks/useMessageInputState.tsx +101 -0
  618. package/src/components/TUIMessageInput/hooks/useMessageInputText.tsx +176 -0
  619. package/src/components/TUIMessageInput/hooks/usePluginsElement.tsx +24 -0
  620. package/src/components/TUIMessageInput/hooks/useUploadElement.tsx +35 -0
  621. package/src/components/TUIMessageInput/hooks/useUploadPicker.tsx +40 -0
  622. package/src/components/TUIMessageInput/index.ts +3 -0
  623. package/src/components/TUIMessageInput/styles/color.scss +17 -0
  624. package/src/components/TUIMessageInput/styles/index.scss +2 -0
  625. package/src/components/TUIMessageInput/styles/layout.scss +280 -0
  626. package/src/components/TUIMessageList/TUIMessageList.tsx +106 -0
  627. package/src/components/TUIMessageList/hooks/useEnrichedMessageList.tsx +16 -0
  628. package/src/components/TUIMessageList/hooks/useMessageListElement.tsx +24 -0
  629. package/src/components/TUIMessageList/index.ts +2 -0
  630. package/src/components/TUIMessageList/styles/color.scss +0 -0
  631. package/src/components/TUIMessageList/styles/index.scss +2 -0
  632. package/src/components/TUIMessageList/styles/layout.scss +28 -0
  633. package/src/components/TUIProfile/TUIProfile.tsx +37 -0
  634. package/src/components/TUIProfile/TUIProfileDefault.tsx +247 -0
  635. package/src/components/TUIProfile/hooks/index.ts +1 -0
  636. package/src/components/TUIProfile/hooks/useMyProfile.tsx +64 -0
  637. package/src/components/TUIProfile/index.ts +2 -0
  638. package/src/components/TUIProfile/styles/color.scss +6 -0
  639. package/src/components/TUIProfile/styles/index.scss +2 -0
  640. package/src/components/TUIProfile/styles/layout.scss +91 -0
  641. package/src/components/Toast/index.tsx +44 -0
  642. package/src/components/Toast/styles/color.scss +11 -0
  643. package/src/components/Toast/styles/index.scss +2 -0
  644. package/src/components/Toast/styles/layout.scss +11 -0
  645. package/src/components/index.ts +12 -0
  646. package/src/components/untils.ts +72 -0
  647. package/src/constants.ts +84 -0
  648. package/src/context/ComponentContext.tsx +46 -0
  649. package/src/context/TUIChatActionContext.tsx +57 -0
  650. package/src/context/TUIChatStateContext.tsx +40 -0
  651. package/src/context/TUIConversationContext.tsx +27 -0
  652. package/src/context/TUIKitContext.tsx +31 -0
  653. package/src/context/TUIMessageContext.tsx +36 -0
  654. package/src/context/TUIMessageInputContext.tsx +56 -0
  655. package/src/context/index.ts +6 -0
  656. package/src/hooks/index.ts +2 -0
  657. package/src/hooks/useConversation.tsx +78 -0
  658. package/src/hooks/useProfile.tsx +8 -0
  659. package/src/index.ts +3 -0
  660. package/tsconfig.json +12 -0
@@ -0,0 +1 @@
1
+ var A="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKsAAACoCAYAAACffB63AAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA1KSURBVHgB7Z27bxNdGsZP7Dh2AmwWGgQCg7iJixIudYK+1ZZJ8dWhoQ37D2Sl1X7lZsttkg0N2oI0S7EF6VdKBB2IRFwEAkFAIAoCUUhw7NjZ9zFnshNn7BmP5z7PTxrGdgzE42fe9znvuXUp4piVlZX+ffv2FeXhQFdXV3+1Wi3iLM9xLpreWmzyT6zi2N7eNp+XM5kMHi9ls9nVtbW1pUOHDq0qsocuRSzZ3NwckNNArVaDMOuHPO9XwVAXLw4R8pI8X8rn80sq5VCsmkqlMiTigDhHAhamU1a1eOfk91vK5XILKmWkVqw6pY+IAIbkyx9R0ROnHatyYy1AvGJHFvr6+pZVwkmVWCHQ/fv3j+noOaQShNx0C/KZZpMs3FSIFSlevsSJiKZ3zxHhzspprlAozKkEkVix6jQ/Lg9xJF6gTUCEnUxKtE2cWNGKlzQ/Jl5uTKVXpHtAtJXrMhln0SZGrKZUnygv6jVxFm3sxbqxsVGUKDpFkbZHHEUbW7FqTzqhfnpS4pI4iTZ2YmXDyXvQ7SuZaVp6ySZVhImVWOFLJQpMqeZ976QzME7hVlR7x2IhVqb8YImqNYi8WBlNQ6NeoxVrMKsiQmTFymgaGabX19cnozBsMZJiRTkqm83eV4ymUWFZatijYduCjIoY5XJ5XIQ6ryjUKIFa9nypVAo1y0UqskpX6d8U037UmQyrxBUJscKfSoq5y16oeIBB4NLovRG0LQhdrPSnsSVwHxuqZ8UIKQo1ttSDjJ6rFgihRVb9ISFUdpnGGN1VOxrEhMZQIqsIFWNN0eKnUGOOnoo+L3ZuTPlM4JFVC3VKkcQhHvaWeFjferwCFSuFmnz8F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iZWYjVAiUsu7DgrBt6gu0ynJYtFeqJnLMUKdMUAXnZMEdcg5f/48WOykynSQRFbsRpQtO6QaDovQv1TFFr5Tom9WA0oWmdokf49qr60FYkRqwFFuxd4UlRT5LrMBjVCyg8SJ1YDvaPMUJprtPLZv8ln/+f6+vp0HDypHYkVq0GpVMJpBEcaoq3uw1+Ma6pvReLFaiCRFicj2o4lbaUYvZHenHzO2SREUStSI1YzZuHKeUS+6KG41Wx1BJ2T33tB0vxcUgVqJpVibUSLF71jWNsAlmEgauLV4kTjaA7rRyUtxTuBYrVAeshwgnAHRBgQbv1xUAI2hInZE3IDQaBLcW7FewXF6pCVlRWc+guFwoAIqB8CFiH3y+MiVvzGzyBmPG4h6p0CvJ4ouay7OjHxri5QSenLaUjpbvgfSaO6652WGSQAAAAASUVORK5CYII=";export{A as default};
@@ -0,0 +1 @@
1
+ var A="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAAAUCAYAAAAuoXvLAAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAD/SURBVHgB7da7DYMwFAXQaxcUVBkhI2SDJJvQINGFUSgRFZkksAEjeAQqCgqIjVAa84tsKU/ROxISP/uiJ9sYYIyx3xFrD9I0PXVd9xjH8SaEuM23G31kRVE84RnVvMUCJUlyHobhpU/PK/0rKeU9z3MFDyjnyaWnO42NKSCKohM8oJxnFSiO42in8aeTIAhSOKKeZxVIz8cHDtLvXuGIet7SFLvgILPAwR3pPAm2aWmKVTiugSPqeVaB9LCqcVwGR9TzrAL1fW8+QmGf8rGBo55nFagsy9ZsknY6UfM7zqjnia3OzJ5h/i1OK78enpW+rsMwzLQWnv17HmOMfesNibrDFpHeMJgAAAAASUVORK5CYII=";export{A as default};
@@ -0,0 +1 @@
1
+ var A="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEwAAABMCAYAAADHl1ErAAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IAr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9gAJkg3gA2aDdoNik9NRFXSQOK72On5SacqTqTekx3HdtwCRjnZO6YqUmPl48NHCQWefGwSjqWPCwjjAGxGECsp+cmO+BiY+iggID/B+BCRH6M4Eyyfuvi65VyQfOriXz4eW84H1zwhzV68qPKbQ6m3p8AEtcXV5EkgSW1xFXkSSHIIcXF5CkxwSHFReRJIckhxMXkSSHJocRF5CkwwlniwPAkkGUs8SJ4gk2gs8d7yBJlEY4r3kifIJRtTvLM8QTbhmOL/kV+OdT7+F3O0z+rcsYozc7TInyFtCNumKc4x13grWdwaWdwaWdwaWdwaWdwa2mN1fun33uF6h4G3ohB05tP36I7zMcN264faXF+7qa/RndLHq48rbN+WqpDyPV5CUT7GfJzXu6YN5Sy430L4+NbHJ5Qg6NxLs4bvKlqufziQXyGdW2pNfY7mDvENwqR4j981lC0gTIrirqGsz9OhlbGM3EyIlw1l4ntYUxRv6sgchElpXZ2bM78AeG44dw1hYoiz3G6tsnCJwyM05+MGwsQQX3S4tt65KE7KvXot7aBAiuIszEPXJRR685oYTX2G37XIsudV+aFJjCgxxLmjIkQmLzZaI4tbI4tbQ1tc/XncF+3nOI/ALvGzkOCQyI92tcW5xsWnlBLke9waWdwaWdwaWdwaWdwaWdwatXgJY5xWnzxt5P99Ihw/vAfm5RuxwkBtIgCtbgAAAABJRU5ErkJggg==";export{A as default};
@@ -0,0 +1 @@
1
+ var A="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADYAAAA0CAYAAADBjcvWAAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAT7SURBVHgB7ZpLUttIHMa/9mMerFQB1vENxpwg5gQhJwBOAFlMpSCLcTZhUrPAnGDMCYacwJ4T4JwgnnXwxNnkidX5/m2ZSHLrYUm2lap8VS4jya3un7r7/xLADy1HzrF2tp7oFgqWwhrlPNGNahU9DqKhgeHkPXbGHTVGAapgjapW0BQo+Vu+6xvoyQyiAK0VrKIQgOCsNYuCWyu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JFACssyQeTJB1CYc1+b8DB2Z5QyabkQAAAAAAAAAAAABgedkvh8qjW69yXVymyj4o5VS3vQ7NKXtqhtTygkPwDYpC9yH8U9N22sT+eIp5eeiANTiPNBj6++krUop5wSFYg+1EsVKkFPOCQ3B2rSbKpSKlmBe+CU6Pr8VeV0VKMS84BNuyu7Fp+3et016RUswLDsFv1862rIXW73B73LoZm/wf8gAAAAAAAAAAAABgKS9TLJFBZTuwugAAAABJRU5ErkJggg==";export{A as default};
@@ -0,0 +1 @@
1
+ var A="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAANfSURBVHgBvViBdeIwDFXybgBGyLsFjk5wbhcodwsQukDpBOUm4DoBMEFhgsIEpROQDY4J4L5A4SVGCbYT+O8lIbasfGRZlhVRACaTSQePHq5uFEU/8EzkypHxtd/vv+I4/tztdqvBYJBRACIfYRAzIPTKxHB1yA9LjJ32+/2ZzyAnggVihpojg64hiC5chC8SnE6nYzyG1D6mcIEXTP22TqiSIKyW4J++03E6XbCVq0Pu089+el/nn1ENuQ8qO74N9qk5LwD+kG0J6OhigfwEAV5MhgJJRgHkllD4BwqX5AjWiccIevvkSfKMIHxuU0FuCyXQMZhTIGSxTSr0M8k7eybi4stsNnu9MDiYHIOtzpbCz7XSnQj5Ek4WlKndkE6u1pHZ38haGHUuwIFe3OhsAcq3TmNPFtTYu5CTse/8weJVJ8/TKJbMFF0lHrH8I0PKSoPwKHSLugQhOVC6Erhav0QQSBVB723JF+KTb3Y72tL8dyz+0FeE3ug2GCltRkLTwYJGEVjj32krrXVIWFkqXRzgdYKw3lWn1vF7hm+x5HM2bmK9ApZ2Q86LLZjYnT7bWBuQSGFnNQnfNIK16c8VcfZdXiixi+CNkGmNMV0JSDomnkPUHJIJZlZbIoeipkg9SSZ2A/smE9y6CNcBYeJXhR4nkmIQ2ygZ32Io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71bmEXqAZ7bQQ9OOkmE8iSwPhlPE46VWJMC/pD5Je9RPV4JKrG6PB8Zb53t+flMI47JnmNpn7nmSByjr9lQxJJ7r4JwJknLBwTbOKTKHGKBg1hXkiYE16E+O9SbwoGPV7o8ztRQq/lYL59BLVXDWZLbcX8s0zGZKgurI8QIkwB1d24kRqsq9YEr8AgL/kGzCNCZMAAAAASUVORK5CYII=";export{A as default};
@@ -0,0 +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||(e={}));export{e as IconTypes};
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+
3
+ interface InfiniteScrollProps {
4
+ className?: string;
5
+ element?: React.ElementType;
6
+ hasMore?: boolean;
7
+ hasMoreNewer?: boolean;
8
+ initialLoad?: boolean;
9
+ isLoading?: boolean;
10
+ listenToScroll?: (offset: number, reverseOffset: number, threshold: number) => void;
11
+ loader?: React.ReactNode;
12
+ loading?: React.ReactNode;
13
+ loadMore?: () => void;
14
+ loadMoreNewer?: () => void;
15
+ pageStart?: number;
16
+ threshold?: number;
17
+ useCapture?: boolean;
18
+ }
19
+
20
+ export { InfiniteScrollProps };
@@ -0,0 +1 @@
1
+ import{__rest as e,__assign as r}from"tslib";import o,{useRef as n,useCallback as t,useEffect as i}from"react";var l=function(e){e instanceof WheelEvent&&1===e.deltaY&&e.preventDefault()};function a(a){var d=a.children,v=a.element,s=void 0===v?"div":v,c=a.hasMore,u=void 0!==c&&c,f=a.hasMoreNewer,h=void 0!==f&&f,p=a.initialLoad,m=void 0===p||p,L=a.isLoading,E=void 0!==L&&L,M=a.listenToScroll,N=a.loader,w=a.loadMore,g=a.loadMoreNewer,T=a.threshold,b=void 0===T?150:T,y=a.useCapture,z=void 0!==y&&y,C=e(a,["children","element","hasMore","hasMoreNewer","initialLoad","isLoading","listenToScroll","loader","loadMore","loadMoreNewer","threshold","useCapture"]),H=n(),S=t((function(){var e=H.current;if(e&&null!==e.offsetParent){var r=e.parentElement,o=e.scrollHeight-r.scrollTop-r.clientHeight,n=r.scrollTop;M&&M(o,n,b),n<Number(b)&&"function"==typeof w&&u&&w(),o<Number(b)&&"function"==typeof g&&h&&g()}}),[u,h,b,M,w,g]);i((function(){var e,r=null===(e=H.current)||void 0===e?void 0:e.parentNode;return E||!r?function(){}:(r.addEventListener("scroll",S,z),r.addEventListener("resize",S,z),function(){r.removeEventListener("scroll",S,z),r.removeEventListener("resize",S,z)})}),[m,E,S,z]),i((function(){var e,r=null===(e=H.current)||void 0===e?void 0:e.parentNode;return r&&r.addEventListener("wheel",l,{passive:!1}),function(){r&&r.removeEventListener("wheel",l,z)}}),[z]);var x=r(r({},C),{ref:function(e){H.current=e}}),D=[N,d];return o.createElement(s,x,D)}export{a as InfiniteScroll};
@@ -0,0 +1,16 @@
1
+ import React, { InputHTMLAttributes } from 'react';
2
+
3
+ interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'prefix' | 'type'> {
4
+ className?: string;
5
+ customClassName?: string;
6
+ placeholder?: string;
7
+ clearable?: boolean;
8
+ prefix?: React.ReactNode;
9
+ suffix?: React.ReactNode;
10
+ value?: InputHTMLAttributes<HTMLInputElement>['value'];
11
+ border?: '' | 'bottom';
12
+ disabled?: boolean;
13
+ maxLength?: number;
14
+ }
15
+
16
+ export { InputProps };
@@ -0,0 +1 @@
1
+ import{__assign as t}from"tslib";import{jsx as n,jsxs as o}from"react/jsx-runtime";import r,{useState as i,useRef as u,useImperativeHandle as e}from"react";import{Icon as c}from"../Icon/Icon.js";import{IconTypes as a}from"../Icon/type.js";var l=r.forwardRef((function(r,l){var d=r.className,s=void 0===d?"":d,f=r.customClassName,v=void 0===f?"":f,m=r.placeholder,p=r.clearable,b=void 0!==p&&p,h=r.prefix,x=r.suffix,g=r.onChange,k=r.onBlur,N=r.onFocus,C=r.value,j=void 0===C?"":C,I=r.border,L=void 0===I?"":I,w=r.disabled,y=void 0!==w&&w,B=r.maxLength,F=void 0===B?void 0:B,R=i(!1),A=R[0],E=R[1],O=i(j),T=O[0],q=O[1],z=u(null),D=function(){z.current&&z.current.focus()};return e(l,(function(){return{focus:D,blur:function(){var t;null===(t=z.current)||void 0===t||t.blur()},input:z.current}})),n("div",t({className:"".concat(s," tui-kit-input-container")},{children:o("div",t({className:"tui-kit-input-box ".concat(L&&"tui-kit-input-border--".concat(L)," ").concat(A?"tui-kit-input-box--focus":"tui-kit-input-box--blur")},{children:[h,n("input",{maxLength:F,disabled:y,className:"tui-kit-input ".concat(v),placeholder:m,ref:z,value:T,onFocus:function(t){E(!0),null==N||N(t)},onBlur:function(t){E(!1),null==k||k(t)},onChange:function(t){q(t.target.value),z.current&&(null==g||g(t))}}),x,b&&T&&n(c,{type:a.CLEAR,height:13,width:13,onClick:function(t){q(""),D();var n=z.current.cloneNode(!0),o=Object.create(t,{target:{value:n},currentTarget:{value:n}});n.value="",null==g||g(o)}})]}))}))}));export{l as Input};
@@ -0,0 +1 @@
1
+ import{__assign as r}from"tslib";import{jsx as o}from"react/jsx-runtime";function t(t){var e=t.className,n=t.onClick,c=t.children;return o("div",r({role:"button",tabIndex:0,className:"model ".concat(e),onClick:n},{children:c}))}export{t as Model};
@@ -0,0 +1 @@
1
+ import{useMemo as e}from"react";function r(r){var n=r.plugins,i=r.showNumber;return e((function(){return{showPicker:null==n?void 0:n.slice(0,i),elements:null==n?void 0:n.slice(i)}}),[n])}export{r as usePluginsElement};
@@ -0,0 +1 @@
1
+ import{__assign as o}from"tslib";import{jsxs as n,jsx as e}from"react/jsx-runtime";import{forwardRef as i,useImperativeHandle as r,useState as t}from"react";import{Icon as l}from"../Icon/Icon.js";import{IconTypes as c}from"../Icon/type.js";import{Popup as s}from"../Popup/index.js";import{usePluginsElement as a}from"./hooks/usePluginsElement.js";function m(i,m){var u=i.plugins,p=void 0===u?[]:u,d=i.showNumber,h=i.MoreIcon,f=i.className,g=void 0===f?"":f,v=i.customClass,N=void 0===v?"":v,b=i.root,j=i.handleVisible;r(m,(function(){return{closeMore:function(o){y(!1)}}}));var w=a({plugins:p,showNumber:d}),x=w.showPicker,I=w.elements,P=t(!1),k=P[0],y=P[1],C=function(o){o.stopPropagation(),y(!k)};return n("ul",o({className:"plugin ".concat(g)},{children:[(null==x?void 0:x.length)>0&&x.map((function(n,i){var r="".concat(n).concat(i);return e("li",o({className:"plugin-item"},{children:n}),r)})),(null==I?void 0:I.length)>0&&n("div",o({className:"plugin-popup"},{children:[n("div",o({role:"menuitem",tabIndex:0,className:"more",onClick:C},{children:[!h&&e(l,{width:20,height:20,type:c.ADD}),h&&h]})),e(s,o({className:"plugin-popup-box ".concat(N),show:k,close:C,root:b,handleVisible:j},{children:e("ul",{children:I.map((function(n,i){var r="".concat(n).concat(i);return e("li",o({className:"plugin-item"},{children:n}),r)}))})}))]}))]}))}var u=i(m);export{u as Plugins};
@@ -0,0 +1 @@
1
+ import{__assign as e}from"tslib";import{jsx as o}from"react/jsx-runtime";import{useRef as n,useState as t,useLayoutEffect as r}from"react";function i(i){var u=i.show,s=i.close,l=i.children,c=i.className,v=i.root,d=i.handleVisible,a=n(),m=t(!1),p=m[0],f=m[1];r((function(){var e,o;return u?(window.addEventListener("mouseup",s,!1),null===(e=null==a?void 0:a.current)||void 0===e||e.addEventListener("mouseup",h)):(window.removeEventListener("mouseup",s,!1),null===(o=null==a?void 0:a.current)||void 0===o||o.removeEventListener("mouseup",h)),function(){var e;window.removeEventListener("mouseup",s,!1),null===(e=null==a?void 0:a.current)||void 0===e||e.removeEventListener("mouseup",h)}}),[u]),r((function(){var e=new IntersectionObserver((function(e){var o=e[0],n=o.boundingClientRect,t=o.rootBounds,r=o.intersectionRatio;d&&r<1&&d({left:n.left-n.width<t.left,top:n.bottom+n.height<t.bottom}),f(!0)}),{root:v,threshold:[1]});return a&&u&&e.observe(null==a?void 0:a.current),function(){e.disconnect(),f(!1)}}),[a,u]);var h=function(e){e.stopPropagation()};return u&&o("div",e({role:"button",tabIndex:0,className:"popup ".concat(c," ").concat(p&&"popup-show"),ref:a},{children:l}))}export{i as Popup};
@@ -0,0 +1 @@
1
+ import{__assign as r}from"tslib";import{jsxs as i,jsx as e}from"react/jsx-runtime";import{Avatar as o}from"../Avatar/Avatar.js";import{defaultUserAvatar as a}from"../Avatar/default.js";import{Icon as t}from"../Icon/Icon.js";import{IconTypes as l}from"../Icon/type.js";function n(n){var c=n.profile,m=n.className,s=void 0===m?"":m,d=n.handleAvatar;return((null==c?void 0:c.nick)||(null==c?void 0:c.userID))&&i("div",r({className:"profile ".concat(s)},{children:[i("div",r({className:"profile-content"},{children:[e(o,{size:32,image:c.avatar||a,onClick:d}),e("div",r({className:"profile-name"},{children:c.nick||c.userID}))]})),e("div",r({className:"profile-more"},{children:e(t,{type:l.ELLIPSE,width:18,height:5,onClick:d})}))]}))}export{n as Profile};
@@ -0,0 +1 @@
1
+ import{__assign as e}from"tslib";import{jsx as c,jsxs as r}from"react/jsx-runtime";import{useRef as t}from"react";import{creteNewId as o}from"./utils/newId.js";function s(s){var i=s.checked,l=s.onChange,a=s.checkedColor,n=s.className,m=t(o());return c("div",e({className:"self-ui-switch"},{children:r("label",e({style:{backgroundColor:i?a:void 0},className:"self-ui-switch-label ".concat(n),htmlFor:m.current},{children:[c("input",{checked:i,onChange:l,id:m.current,className:"self-ui-switch-input",type:"checkbox"}),c("span",{className:"self-ui-switch-button"})]}))}))}s.defaultProps={checkedColor:"#34C759"};export{s as Switch};
@@ -0,0 +1 @@
1
+ var c=0,n=function(n){return void 0===n&&(n="id"),c+=1,"".concat(n,"-").concat(c)};export{n as creteNewId};
@@ -0,0 +1,27 @@
1
+ import React, { PropsWithChildren } from 'react';
2
+ import { Conversation, Message } from 'tim-js-sdk';
3
+ import { UnknowPorps } from '../../context/ComponentContext.js';
4
+ import { TUIChatHeaderDefaultProps } from '../TUIChatHeader/TUIChatHeaderDefault.js';
5
+ import { TUIMessageProps } from '../TUIMessage/TUIMessage.js';
6
+ import { MessageContextProps } from '../TUIMessage/MessageContext.js';
7
+
8
+ interface TUIChatProps {
9
+ className?: string;
10
+ conversation?: Conversation;
11
+ EmptyPlaceholder?: React.ReactElement;
12
+ TUIMessage?: React.ComponentType<TUIMessageProps>;
13
+ TUIChatHeader?: React.ComponentType<TUIChatHeaderDefaultProps>;
14
+ MessageContext?: React.ComponentType<MessageContextProps>;
15
+ TUIMessageInput?: React.ComponentType<UnknowPorps>;
16
+ InputPlugins?: React.ComponentType<UnknowPorps>;
17
+ InputQuote?: React.ComponentType<UnknowPorps>;
18
+ MessagePlugins?: React.ComponentType<UnknowPorps>;
19
+ onMessageRecevied?: (updateMessage: (event?: Array<Message>) => void, event: any) => void;
20
+ sendMessage?: (message: Message) => Promise<Message>;
21
+ revokeMessage?: (message: Message) => Promise<Message>;
22
+ [propName: string]: any;
23
+ }
24
+ declare function UnMemoizedTUIChat<T extends TUIChatProps>(props: PropsWithChildren<T>): React.ReactElement;
25
+ declare const TUIChat: typeof UnMemoizedTUIChat;
26
+
27
+ export { TUIChat };
@@ -0,0 +1 @@
1
+ import{__assign as e,__awaiter as t,__generator as s}from"tslib";import a,{createElement as r,useReducer as o,useRef as n,useEffect as i,useMemo as c}from"react";import{jsx as m,jsxs as u,Fragment as g}from"react/jsx-runtime";import{useTUIKitContext as p}from"../../context/TUIKitContext.js";import{TUIChatStateContextProvider as M}from"../../context/TUIChatStateContext.js";import{TUIChatActionProvider as d}from"../../context/TUIChatActionContext.js";import{ComponentProvider as l}from"../../context/ComponentContext.js";import I from"./hooks/useCreateTUIChatStateContext.js";import{TUIMessage as v}from"../TUIMessage/TUIMessage.js";import"tim-js-sdk";import"../Icon/config.js";import"../Icon/type.js";import{CONSTANT_DISPATCH_TYPE as T}from"../../constants.js";import{Toast as f}from"../Toast/index.js";import"date-fns";import"../TUIMessage/MessageContext.js";import{useMessageReceviedListener as h}from"./hooks/useMessageReceviedListener.js";import{chatReducer as E,initialState as S}from"./TUIChatState.js";import{useCreateMessage as C}from"./hooks/useCreateMessage.js";import{useHandleMessageList as x}from"./hooks/useHandleMessageList.js";import{useHandleMessage as j}from"./hooks/useHandleMessage.js";import{TUIChatHeader as U}from"../TUIChatHeader/TUIChatHeader.js";import{TUIMessageList as _}from"../TUIMessageList/TUIMessageList.js";import{TUIMessageInput as L}from"../TUIMessageInput/TUIMessageInput.js";import{EmptyStateIndicator as y}from"../EmptyStateIndicator/EmptyStateIndicator.js";function R(t){var s=t.conversation,a=t.EmptyPlaceholder,o=void 0===a?m(y,{listType:"chat"}):a,n=p("TUIChat"),i=n.conversation,c=n.tim,u=s||i;return(null==u?void 0:u.conversationID)?r(k,e({tim:c},t,{conversation:u,key:u.conversationID})):o}function k(a){var r=this,p=a.tim,y=a.conversation,R=a.className,k=a.children,D=a.TUIMessage,w=a.TUIChatHeader,H=a.TUIMessageInput,P=a.InputPlugins,b=a.MessagePlugins,A=a.MessageContext,F=a.InputQuote,G=a.onMessageRecevied,N=a.sendMessage,O=a.revokeMessage,q=o(E,e(e({},S),{conversation:y})),Q=q[0],V=q[1],X=n(null),K=n(),Y=I(e({tim:p,conversation:y,messageListRef:X,textareaRef:K},Q)),z=C({tim:p,conversation:y}),B=z.createTextMessage,J=z.createFaceMessage,W=z.createImageMessage,Z=z.createVideoMessage,$=z.createFileMessage,ee=z.createForwardMessage,te=x({tim:p,conversation:y,state:Q,dispatch:V}),se=te.getMessageList,ae=te.updateMessage,re=te.editLocalmessage,oe=te.removeMessage,ne=j({state:Q,dispatch:V}).operateMessage,ie=function(e){return t(r,void 0,void 0,(function(){var t;return s(this,(function(s){switch(s.label){case 0:ae([e]),s.label=1;case 1:return s.trys.push([1,6,,7]),N?[4,N(e)]:[3,3];case 2:return s.sent(),[3,5];case 3:return[4,p.sendMessage(e)];case 4:s.sent(),s.label=5;case 5:return re(e),[3,7];case 6:throw t=s.sent(),f({text:t,type:"error"}),re(e),new Error(t);case 7:return[2]}}))}))},ce=function(){return t(r,void 0,void 0,(function(){var e;return s(this,(function(t){switch(t.label){case 0:return Q.isCompleted?(V({type:T.SET_NO_MORE,value:!0}),[2]):[4,se({nextReqMessageID:Q.nextReqMessageID})];case 1:return e=t.sent(),V({type:T.SET_HISTORY_MESSAGELIST,value:e.data.messageList}),V({type:T.SET_IS_COMPLETE,value:e.data.isCompleted}),V({type:T.SET_NEXT_REQ_MESSAGE_ID,value:e.data.nextReqMessageID}),[2]}}))}))};h(ae,G),i((function(){t(r,void 0,void 0,(function(){var e;return s(this,(function(t){switch(t.label){case 0:return[4,se()];case 1:return(e=t.sent()).data.messageList.length>0&&V({type:T.SET_MESSAGELIST,value:e.data.messageList}),V({type:T.SET_MESSAGELIST,value:e.data.messageList}),V({type:T.SET_IS_COMPLETE,value:e.data.isCompleted}),V({type:T.SET_NEXT_REQ_MESSAGE_ID,value:e.data.nextReqMessageID}),[2]}}))}))}),[y]);var me=c((function(){return{sendMessage:ie,removeMessage:oe,updateMessage:ae,createTextMessage:B,createFaceMessage:J,createImageMessage:W,createVideoMessage:Z,createFileMessage:$,createForwardMessage:ee,editLocalmessage:re,operateMessage:ne,loadMore:ce,revokeMessage:O}}),[ie,oe,ae,B,J,W,Z,$,ee,re,ne,ce,O]),ue=c((function(){return{TUIMessage:D||v,MessageContext:A,InputPlugins:P,MessagePlugins:b,TUIChatHeader:w,TUIMessageInput:H,InputQuote:F}}),[]);return m("div",e({className:"chat ".concat(R)},{children:m(M,e({value:Y},{children:m(d,e({value:me},{children:m(l,e({value:ue},{children:k||u(g,{children:[m(U,{}),m(_,{}),m(L,{})]})}))}))}))}))}var D=a.memo(R);export{D as TUIChat};
@@ -0,0 +1 @@
1
+ import{__assign as e,__spreadArray as s}from"tslib";import{CONSTANT_DISPATCH_TYPE as a}from"../../constants.js";import{handleMessageList as t,handleMessage as r,handleRemoveMessage as E,handleEditMessage as n}from"./unitls.js";var S=function(S,u){switch(null==u?void 0:u.type){case a.SET_CONVERSATION_PRPFILE:return e(e({},S),{conversation:u.value});case a.SET_MESSAGELIST:return e(e({},S),t(s([],S.messageList.concat(r(u.value).filter((function(e){return!S.messageList.includes(e)}))),!0),S));case a.SET_UPDATE_MESSAGE:return e(e({},S),t(s(s([],S.messageList,!0),r(u.value),!0),S));case a.SET_EDIT_MESSAGE:return e(e({},S),{messageList:s([],n(S.messageList,u.value),!0)});case a.SET_REMOVE_MESSAGE:return e(e({},S),{messageList:s([],E(S.messageList,u.value),!0)});case a.SET_HISTORY_MESSAGELIST:return e(e({},S),t(s(s([],r(u.value),!0),S.messageList,!0),S));case a.SET_NEXT_REQ_MESSAGE_ID:return e(e({},S),{nextReqMessageID:u.value});case a.SET_IS_COMPLETE:return e(e({},S),{isCompleted:u.value});case a.RESET:return e({},i);case a.SET_HIGH_LIGHTED_MESSAGE_ID:return e(e({},S),{highlightedMessageId:u.value});case a.OPERATE_MESSAGE:return e(e({},S),{operateData:e({},u.value)});case a.SET_NO_MORE:return e(e({},S),{noMore:u.value});default:return S}},i={conversation:{},messageList:[],nextReqMessageID:"",isCompleted:!1,init:!1,highlightedMessageId:"",lastMessageID:"",isSameLastMessageID:!1,operateData:{},noMore:!1};export{S as chatReducer,i as initialState};
@@ -0,0 +1,31 @@
1
+ import tim_js_sdk__default, { Conversation, Message } from 'tim-js-sdk';
2
+
3
+ interface BasicCreateMessageProps {
4
+ needReadReceipt?: boolean;
5
+ priority?: tim_js_sdk__default.TYPES;
6
+ onProgress?: (num: number) => void;
7
+ cloudCustomData?: string;
8
+ receiverList?: Array<string>;
9
+ }
10
+ interface CreateTextMessageProps extends BasicCreateMessageProps {
11
+ payload: {
12
+ text: string;
13
+ };
14
+ }
15
+ interface CreateFaceMessageProps extends BasicCreateMessageProps {
16
+ payload: {
17
+ index: number;
18
+ data: string;
19
+ };
20
+ }
21
+ interface CreateUploadMessageProps extends BasicCreateMessageProps {
22
+ payload: {
23
+ file: HTMLInputElement | File;
24
+ };
25
+ }
26
+ interface CreateForwardMessageProps extends BasicCreateMessageProps {
27
+ conversation: Conversation;
28
+ message: Message;
29
+ }
30
+
31
+ export { BasicCreateMessageProps, CreateFaceMessageProps, CreateForwardMessageProps, CreateTextMessageProps, CreateUploadMessageProps };
@@ -0,0 +1 @@
1
+ import{__assign as e,__rest as r}from"tslib";import{useCallback as t}from"react";import o from"tim-js-sdk";function a(a){var s=a.tim,n=a.conversation,i=a.to,c=void 0===i?"":i,u=a.type,g=n.type,l=n.userProfile,f=n.groupProfile,p=u||g,m={to:c||(p===o.TYPES.CONV_C2C?null==l?void 0:l.userID:null==f?void 0:f.groupID),conversationType:p};return{createTextMessage:t((function(r){return s.createTextMessage(e(e({},m),r))}),[s]),createFaceMessage:t((function(r){return s.createFaceMessage(e(e({},m),r))}),[s]),createImageMessage:t((function(r){return s.createImageMessage(e(e({},m),r))}),[s]),createVideoMessage:t((function(r){return s.createVideoMessage(e(e({},m),r))}),[s]),createFileMessage:t((function(r){return s.createFileMessage(e(e({},m),r))}),[s]),createForwardMessage:t((function(t){var a=t.conversation,n=t.message,i=r(t,["conversation","message"]),c=a.type,u=a.userProfile,g=a.groupProfile,l=c===o.TYPES.CONV_C2C?null==u?void 0:u.userID:null==g?void 0:g.groupID;return s.createForwardMessage(e({to:l,conversationType:c,payload:n},i))}),[s])}}export{a as useCreateMessage};
@@ -0,0 +1 @@
1
+ import{__rest as e,__assign as s}from"tslib";import{useMemo as t}from"react";function i(i){var r=i.tim,a=i.conversation,m=i.messageList,o=i.messageListRef,n=e(i,["tim","conversation","messageList","messageListRef"]);return t((function(){return s({tim:r,conversation:a,messageList:m,messageListRef:o},n)}),[r,a,m,o,n])}export{i as default};
@@ -0,0 +1,7 @@
1
+ import { Message } from 'tim-js-sdk';
2
+
3
+ interface OperateMessageParams {
4
+ [propName: string]: Message;
5
+ }
6
+
7
+ export { OperateMessageParams };
@@ -0,0 +1 @@
1
+ import{useCallback as t}from"react";import{CONSTANT_DISPATCH_TYPE as e}from"../../../constants.js";function r(r){r.state;var o=r.dispatch;return{operateMessage:t((function(t){o({type:e.OPERATE_MESSAGE,value:t})}),[o])}}export{r as useHandleMessage};
@@ -0,0 +1 @@
1
+ import{__assign as t}from"tslib";import{useCallback as e}from"react";import{CONSTANT_DISPATCH_TYPE as n}from"../../../constants.js";function o(o){var r=o.tim,s=o.conversation;o.state;var a=o.dispatch,i=s.conversationID,c={conversationID:i};return{getMessageList:e((function(e){var n=e||{};return r.getMessageList(t(t({},c),n))}),[r]),updateMessage:e((function(t){a({type:n.SET_UPDATE_MESSAGE,value:t.filter((function(t){return(null==t?void 0:t.conversationID)===i}))})}),[a]),removeMessage:e((function(t){a({type:n.SET_REMOVE_MESSAGE,value:t})}),[a]),editLocalmessage:e((function(t){a({type:n.SET_EDIT_MESSAGE,value:t})}),[a])}}export{o as useHandleMessageList};
@@ -0,0 +1 @@
1
+ import{useLayoutEffect as t}from"react";import o from"tim-js-sdk";import{useTUIKitContext as i}from"../../../context/TUIKitContext.js";import"tslib";import"react/jsx-runtime";function r(r,e){var n=this,E=i("useMessageReceviedListener").tim;t((function(){var t=function(t){e&&"function"==typeof e?e(r,t):r(t.data)};return E.on(o.EVENT.MESSAGE_RECEIVED,t,n),function(){E.off(o.EVENT.MESSAGE_RECEIVED,t,n)}}),[E])}export{r as useMessageReceviedListener};
@@ -0,0 +1 @@
1
+ import{__spreadArray as s}from"tslib";import e from"tim-js-sdk";import n from"../../constants.js";import{JSONStringToParse as t}from"../untils.js";var i=function(s){var i=null;return s.filter((function(s){var l;return s.type===e.TYPES.MSG_CUSTOM&&(i=t(null===(l=null==s?void 0:s.payload)||void 0===l?void 0:l.data)),!i||(null==i?void 0:i.businessID)!==n.TYPE_TYPING}))},l=function(s,e){var n,t={messageList:[],lastMessageID:"",isSameLastMessageID:!1};return t.messageList=s,t.messageList.length>=1&&(t.lastMessageID=null===(n=null==t?void 0:t.messageList[t.messageList.length-1])||void 0===n?void 0:n.ID),t.messageList=t.messageList.filter((function(s){return!(null==s?void 0:s.isDeleted)})),t.isSameLastMessageID=(null==t?void 0:t.lastMessageID)===(null==e?void 0:e.lastMessageID),t},o=function(e,n){var t=s([],e,!0),i=t.findIndex((function(s){return(null==s?void 0:s.ID)===(null==n?void 0:n.ID)}));return t[i]=n,t},r=function(e,n){var t=s([],e,!0),i=t.findIndex((function(s){return(null==s?void 0:s.ID)===(null==n?void 0:n.ID)}));return t.splice(i,1),t};export{o as handleEditMessage,i as handleMessage,l as handleMessageList,r as handleRemoveMessage};
@@ -0,0 +1,13 @@
1
+ import React, { PropsWithChildren } from 'react';
2
+ import { Conversation } from 'tim-js-sdk';
3
+ import { TUIChatHeaderDefaultProps } from './TUIChatHeaderDefault.js';
4
+
5
+ interface TUIChatHeaderProps {
6
+ title?: string;
7
+ TUIChatHeader?: React.ComponentType<TUIChatHeaderDefaultProps>;
8
+ conversation?: Conversation;
9
+ }
10
+ declare function UnMemoizedTUIChatHeader<T extends TUIChatHeaderProps>(props: PropsWithChildren<T>): React.ReactElement;
11
+ declare const TUIChatHeader: typeof UnMemoizedTUIChatHeader;
12
+
13
+ export { TUIChatHeader };
@@ -0,0 +1 @@
1
+ import{jsx as t}from"react/jsx-runtime";import e from"react";import{useTUIChatStateContext as o}from"../../context/TUIChatStateContext.js";import{TUIChatHeaderDefault as r}from"./TUIChatHeaderDefault.js";import"tslib";import{useComponentContext as a}from"../../context/ComponentContext.js";function n(e){var n=e.title,m=e.conversation,i=e.TUIChatHeader,c=o("TUIChatHeader").conversation,p=a().TUIChatHeader;return t(i||p||r,{title:n,conversation:m||c})}var m=e.memo(n);export{m as TUIChatHeader};
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { Conversation } from 'tim-js-sdk';
3
+
4
+ interface TUIChatHeaderDefaultProps {
5
+ title?: string;
6
+ avatar?: string;
7
+ isOnline?: boolean;
8
+ conversation?: Conversation;
9
+ pluginComponentList?: Array<React.ComponentType>;
10
+ }
11
+ declare function TUIChatHeaderDefault(props: TUIChatHeaderDefaultProps): React.ReactElement;
12
+
13
+ export { TUIChatHeaderDefault, TUIChatHeaderDefaultProps };
@@ -0,0 +1 @@
1
+ import{__assign as e}from"tslib";import{jsx as t,jsxs as r}from"react/jsx-runtime";import a,{useState as i,useEffect as o}from"react";import n from"tim-js-sdk";import{Avatar as l}from"../Avatar/Avatar.js";import{handleDisplayAvatar as c}from"../untils.js";import{Icon as s}from"../Icon/Icon.js";import{IconTypes as m}from"../Icon/type.js";import{useTUIKitContext as d}from"../../context/TUIKitContext.js";function u(a){var u=a.title,h=a.avatar;a.isOnline;var v=a.conversation,f=i(""),p=f[0],S=f[1],N=i(""),E=N[0],P=N[1];o((function(){switch(S(u),P(h),null==v?void 0:v.type){case n.TYPES.CONV_C2C:T(v.userProfile);break;case n.TYPES.CONV_GROUP:C(v.groupProfile);break;case n.TYPES.CONV_SYSTEM:S("System Notice");break;default:S("")}}),[v]);var T=function(e){p||S((null==e?void 0:e.nick)||(null==e?void 0:e.userID)),E||P(c(e.avatar))},C=function(e){p||S((null==e?void 0:e.name)||(null==e?void 0:e.groupID)),E||P(c(e.avatar,n.TYPES.CONV_GROUP))},I=d().setTUIManageShow;return r("header",e({className:"tui-chat-header"},{children:[r("div",e({className:"tui-chat-header-left ".concat((null==v?void 0:v.type)===n.TYPES.CONV_SYSTEM?"system":"")},{children:[(null==v?void 0:v.type)!==n.TYPES.CONV_SYSTEM&&t(l,{size:32,image:E}),t("div",e({className:"header-content"},{children:t("h3",e({className:"title"},{children:p}))}))]})),t("div",e({className:"tui-chat-header-right"},{children:t("div",e({className:"header-handle"},{children:t(s,{className:"header-handle-more",onClick:function(){I(!0)},type:m.ELLIPSE,width:18,height:5})}))}))]}),null==v?void 0:v.conversationID)}var h=a.memo(u);function v(r){var a=e({},r);return t(h,e({},a))}export{v as TUIChatHeaderDefault};
@@ -0,0 +1,10 @@
1
+ import React, { PropsWithChildren } from 'react';
2
+
3
+ interface TUIConversationProps {
4
+ createConversation?: (conversationID: string) => Promise<any>;
5
+ deleteConversation?: (conversationID: string) => Promise<any>;
6
+ }
7
+ declare function UnMemoizedTUIConversation<T extends TUIConversationProps>(props: PropsWithChildren<T>): React.ReactElement;
8
+ declare const TUIConversation: typeof UnMemoizedTUIConversation;
9
+
10
+ export { TUIConversation, UnMemoizedTUIConversation };
@@ -0,0 +1 @@
1
+ import{__assign as r}from"tslib";import{jsx as o,jsxs as t,Fragment as e}from"react/jsx-runtime";import i,{useMemo as n}from"react";import{TUIConversationProvider as m}from"../../context/TUIConversationContext.js";import{TUIConversationList as s}from"../TUIConversationList/TUIConversationList.js";import"tim-js-sdk";import{TUIProfile as a}from"../TUIProfile/TUIProfile.js";import"../TUIProfile/TUIProfileDefault.js";function f(i){var f=i.children,l=i.createConversation,c=i.deleteConversation,v=n((function(){return{createConversation:l,deleteConversation:c}}),[l,c]);return o(m,r({value:v},{children:f||t(e,{children:[o(s,{}),o(a,{})]})}))}var l=i.memo(f);export{l as TUIConversation,f as UnMemoizedTUIConversation};
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { Conversation } from 'tim-js-sdk';
3
+ import { ConversationPreviewUIComponentProps } from '../ConversationPreview/ConversationPreview.js';
4
+ import { ConversationListContainerProps } from '../ConversationPreview/ConversationListContainer.js';
5
+
6
+ interface Props {
7
+ filters?: object;
8
+ sort?: object;
9
+ options?: object;
10
+ Preview?: React.ComponentType<ConversationPreviewUIComponentProps>;
11
+ Container?: React.ComponentType<ConversationListContainerProps>;
12
+ onConversationListUpdated?: (setConversationList: React.Dispatch<React.SetStateAction<Array<Conversation>>>, event: () => void) => void;
13
+ }
14
+ declare function UnMemoTUIConversationList<T extends Props>(props: T): React.ReactElement;
15
+ declare const TUIConversationList: React.MemoExoticComponent<typeof UnMemoTUIConversationList>;
16
+
17
+ export { TUIConversationList, UnMemoTUIConversationList };
@@ -0,0 +1 @@
1
+ import{__assign as e}from"tslib";import{jsx as o,jsxs as t,Fragment as r}from"react/jsx-runtime";import i,{useState as n,useRef as s}from"react";import{useTUIKitContext as a}from"../../context/TUIKitContext.js";import v from"./hooks/useConversationList.js";import{ConversationPreview as c}from"../ConversationPreview/ConversationPreview.js";import{Icon as l}from"../Icon/Icon.js";import{IconTypes as m}from"../Icon/type.js";import"tim-js-sdk";import{ConversationListContainer as u}from"../ConversationPreview/ConversationListContainer.js";import{Profile as p}from"../Profile/Profile.js";import{ConversationSearchInput as C}from"../ConversationSearch/ConversationSearchInput.js";import{ConversationSearchResult as f}from"../ConversationSearch/ConversationSearchResult.js";import{ConversationCreate as d}from"../ConversationCreate/ConversationCreate.js";import"../ConversationCreate/ConversationGroupTypeInfo.js";import{getDisplayTitle as h}from"../ConversationPreview/utils.js";import{useConversationUpdate as j}from"./hooks/useConversationUpdate.js";import"../TUIProfile/TUIProfileDefault.js";import"../../constants.js";import"date-fns";import"../TUIMessage/hooks/useMessageReply.js";import"../TUIMessage/MessageContext.js";import"../TUIMessageInput/hooks/useHandleQuoteMessage.js";import"../Switch/Switch.js";function g(i){var g=i.Preview,I=i.Container,w=void 0===I?u:I,P=i.onConversationListUpdated,L=a("TUIConversationList"),T=L.tim,U=L.customClasses,N=L.conversation,S=L.setActiveConversation,k=L.setTUIProfileShow,y=n(0),M=y[0],x=y[1],A=v(T,(function(e,o){e.length&&S(N)})),R=A.conversationList,E=A.setConversationList;j(E,P,(function(){return x((function(e){return e+1}))}));var b=n(""),D=b[0],F=b[1],G=n(R),H=G[0],K=G[1],O=n(!1),Q=O[0],V=O[1],q=a().myProfile,z=s(null);return o("div",e({className:"tui-conversation ".concat(U||""),ref:z},{children:Q?o(d,{conversationList:R,setConversationCreated:V}):t(r,{children:[o(p,{profile:q,handleAvatar:function(){k(!0)}}),t("div",e({className:"tui-conversation-header"},{children:[o(C,{value:D,clearable:!0,onChange:function(e){var o,t;if(F(null===(o=e.target)||void 0===o?void 0:o.value),null===(t=e.target)||void 0===t?void 0:t.value){var r=R.filter((function(o){var t;return h(o).toLocaleLowerCase().includes(null===(t=e.target)||void 0===t?void 0:t.value.toLocaleLowerCase())}));K(r)}else K([])}}),o("div",e({className:"tui-conversation-create-icon"},{children:o(l,{onClick:function(){F(""),V(!0)},type:m.CREATE,height:24,width:24})}))]})),o(w,e({setConversationList:E},{children:0===R.length?t("div",e({className:"no-result"},{children:[o(l,{className:"no-result-icon",type:m.EFFORT,width:42,height:42}),o("div",e({className:"no-result-message"},{children:"No conversation"}))]})):D?o(f,{Preview:g,searchValue:D,result:H}):R.map((function(t){return o(c,e({},{activeConversation:N,conversation:t,setActiveConversation:S,Preview:g,conversationUpdateCount:M}),t.conversationID)}))}))]})}))}var I=i.memo(g);export{I as TUIConversationList,g as UnMemoTUIConversationList};
@@ -0,0 +1 @@
1
+ import{__awaiter as t,__generator as r,__spreadArray as o}from"tslib";import{useState as n,useEffect as e}from"react";import i from"tim-js-sdk";function a(a,s){var l=this,u=n([]),c=u[0],d=u[1];return e((function(){var n;n="reload",t(l,void 0,void 0,(function(){var t,e,l,u;return r(this,(function(r){switch(r.label){case 0:return"reload"===n&&d([]),t="reload"===n?0:c.length,[4,null==a?void 0:a.getConversationList()];case 1:return 0===(null==(e=r.sent())?void 0:e.code)&&(l=e.data.conversationList.filter((function(t){return t.type!==i.TYPES.CONV_SYSTEM})),u="reload"===n?l:o(o([],c,!0),[l],!1),d(u),!t&&s&&s(u,d)),[2]}}))}))}),[a]),{conversationList:c,setConversationList:d}}export{a as default};
@@ -0,0 +1 @@
1
+ import{useEffect as t}from"react";import n from"tim-js-sdk";import{useTUIKitContext as o}from"../../../context/TUIKitContext.js";import"tslib";import"react/jsx-runtime";var r=function(r,i,e){var f=o("useConversationUpdate").tim;t((function(){var t=function(t){r&&r(t.data.filter((function(t){return t.type!==n.TYPES.CONV_SYSTEM}))),e&&e(),i&&"function"==typeof i&&i(r,t)};return null==f||f.on(n.EVENT.CONVERSATION_LIST_UPDATED,t),function(){null==f||f.off(n.EVENT.CONVERSATION_LIST_UPDATED,t)}}),[f,i])};export{r as useConversationUpdate};
@@ -0,0 +1,10 @@
1
+ import React, { PropsWithChildren } from 'react';
2
+ import { ChatSDK } from 'tim-js-sdk';
3
+
4
+ interface ChatProps {
5
+ tim?: ChatSDK | null;
6
+ customClasses?: unknown;
7
+ }
8
+ declare function TUIKit<T extends ChatProps>(props: PropsWithChildren<T>): React.ReactElement;
9
+
10
+ export { ChatProps, TUIKit };
@@ -0,0 +1 @@
1
+ import{__assign as o}from"tslib";import{jsx as t,jsxs as e,Fragment as i}from"react/jsx-runtime";import{useTUIKit as r}from"./hooks/useTUIKit.js";import{useCreateTUIKitContext as s}from"./hooks/useCreateTUIKitContext.js";import{TUIKitProvider as a}from"../../context/TUIKitContext.js";import{TUIConversation as n}from"../TUIConversation/TUIConversation.js";import{TUIChat as m}from"../TUIChat/TUIChat.js";import"react";import{TUIManage as c}from"../TUIManage/TUIManage.js";function I(I){var T=I.children,U=I.tim,h=I.customClasses;window.tencent_cloud_im_csig_react_uikit_23F_xa=!0;var l=r({tim:U}),f=l.conversation,v=l.setActiveConversation,u=l.myProfile,C=l.TUIManageShow,p=l.setTUIManageShow,w=l.TUIProfileShow,S=l.setTUIProfileShow,d=s({tim:U,conversation:f,setActiveConversation:v,customClasses:h,myProfile:u,TUIManageShow:C,setTUIManageShow:p,TUIProfileShow:w,setTUIProfileShow:S});return t(a,o({value:d},{children:t("div",o({className:"tui-kit"},{children:T||e(i,{children:[t(n,{}),t(m,{}),t(c,{})]})}))}))}export{I as TUIKit};
@@ -0,0 +1,17 @@
1
+ import * as tim_js_sdk from 'tim-js-sdk';
2
+ import React from 'react';
3
+ import { TUIKitContextValue } from '../../../context/TUIKitContext.js';
4
+
5
+ declare const useCreateTUIKitContext: (value: TUIKitContextValue) => {
6
+ tim: tim_js_sdk.ChatSDK;
7
+ conversation: tim_js_sdk.Conversation;
8
+ customClasses: unknown;
9
+ setActiveConversation: (conversation?: tim_js_sdk.Conversation) => void;
10
+ myProfile: tim_js_sdk.Profile;
11
+ TUIManageShow: boolean;
12
+ setTUIManageShow: React.Dispatch<React.SetStateAction<boolean>>;
13
+ TUIProfileShow: boolean;
14
+ setTUIProfileShow: React.Dispatch<React.SetStateAction<boolean>>;
15
+ };
16
+
17
+ export { useCreateTUIKitContext };
@@ -0,0 +1 @@
1
+ import{useMemo as o}from"react";var e=function(e){var t=e.tim,r=e.conversation,n=e.customClasses,s=e.setActiveConversation,a=e.myProfile,i=e.TUIManageShow,c=e.setTUIManageShow,f=e.TUIProfileShow,h=e.setTUIProfileShow;return o((function(){return{tim:t,conversation:r,customClasses:n,setActiveConversation:s,myProfile:a,TUIManageShow:i,setTUIManageShow:c,TUIProfileShow:f,setTUIProfileShow:h}}),[r,n,t,i,f,h,a])};export{e as useCreateTUIKitContext};
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { ChatSDK, Conversation, Profile } from 'tim-js-sdk';
3
+
4
+ interface UseChatParams {
5
+ tim: ChatSDK;
6
+ }
7
+ declare const useTUIKit: ({ tim }: UseChatParams) => {
8
+ conversation: Conversation;
9
+ setActiveConversation: (activeConversation?: Conversation) => void;
10
+ myProfile: Profile;
11
+ TUIManageShow: boolean;
12
+ setTUIManageShow: React.Dispatch<React.SetStateAction<boolean>>;
13
+ TUIProfileShow: boolean;
14
+ setTUIProfileShow: React.Dispatch<React.SetStateAction<boolean>>;
15
+ };
16
+
17
+ export { UseChatParams, useTUIKit };
@@ -0,0 +1 @@
1
+ import{__awaiter as o,__generator as n}from"tslib";import{useState as e,useEffect as t,useCallback as r}from"react";var i=function(i){var a=i.tim,s=e(),v=s[0],c=s[1],l=e(),u=l[0],f=l[1],I=e(!1),d=I[0],h=I[1],m=e(!1),w=m[0],g=m[1];t((function(){o(void 0,void 0,void 0,(function(){var o;return n(this,(function(n){switch(n.label){case 0:return[4,null==a?void 0:a.getMyProfile()];case 1:return o=n.sent(),f(null==o?void 0:o.data),[2]}}))}))}),[a]);var D=r((function(o){o&&(null==a||a.setMessageRead({conversationID:o.conversationID})),v&&o.conversationID!==v.conversationID&&h(!1),c(o)}),[a]);return{conversation:v,setActiveConversation:D,myProfile:u,TUIManageShow:d,setTUIManageShow:h,TUIProfileShow:w,setTUIProfileShow:g}};export{i as useTUIKit};
@@ -0,0 +1,3 @@
1
+ declare function TUIManage(): JSX.Element;
2
+
3
+ export { TUIManage };
@@ -0,0 +1 @@
1
+ import{__assign as n}from"tslib";import{jsxs as e,jsx as i}from"react/jsx-runtime";import{useState as a,useEffect as o}from"react";import{Icon as t}from"../Icon/Icon.js";import{IconTypes as r}from"../Icon/type.js";import{Avatar as l}from"../Avatar/Avatar.js";import{defaultGroupAvatarWork as s,defaultUserAvatar as c}from"../Avatar/default.js";import{Switch as m}from"../Switch/Switch.js";import{useTUIKitContext as d}from"../../context/TUIKitContext.js";import{getMessageProfile as v}from"../ConversationPreview/utils.js";import{useConversationUpdate as u}from"../TUIConversationList/hooks/useConversationUpdate.js";import{useConversation as h}from"../../hooks/useConversation.js";function f(){var f=a(null),p=f[0],g=f[1],I=a(null),C=I[0],N=I[1],j=a(!1),k=j[0],D=j[1],w=a(0),x=w[0],U=w[1],A=d("TUIManage"),T=A.conversation,P=A.setActiveConversation,S=A.tim,b=A.TUIManageShow,M=A.setTUIManageShow;u(null,(function(){U((function(n){return n+1}))}));var y=h(S),L=y.pinConversation,z=y.deleteConversation;return o((function(){g(T),N(v(T)),D(!!T&&T.isPinned)}),[T,x]),b&&T&&e("div",n({className:"tui-manage"},{children:[e("div",n({className:"tui-manage-title"},{children:[i(t,{type:r.CANCEL,width:16,height:16,onClick:function(){M(!1)}}),i("span",{children:"Conversation Information"})]})),e("div",n({className:"tui-manage-container"},{children:[e("div",n({className:"tui-manage-info"},{children:[i("div",n({className:"info-avatar"},{children:i(l,{size:64,image:(null==C?void 0:C.avatar)||((null==C?void 0:C.groupID)?s:c)})})),i("div",n({className:"info-name"},{children:(null==C?void 0:C.nick)||(null==C?void 0:C.name)})),e("div",n({className:"info-id"},{children:["ID:",(null==C?void 0:C.userID)||(null==C?void 0:C.groupID)]}))]})),e("div",n({className:"tui-manage-handle"},{children:[e("div",n({className:"manage-handle-box"},{children:[i("div",n({className:"manage-handle-title"},{children:"Pin"})),i(m,{onChange:function(n){D(n.target.checked),L({conversationID:p.conversationID,isPinned:n.target.checked})},checked:k})]})),i("div",n({className:"manage-handle-box",role:"presentation",onClick:function(){z(p.conversationID),P(null)}},{children:i("div",n({className:"manage-handle-title red"},{children:"Delete"}))}))]}))]}))]}))}export{f as TUIManage};
@@ -0,0 +1 @@
1
+ import{__assign as r}from"tslib";import{jsx as e,jsxs as t}from"react/jsx-runtime";import m from"react";function o(m){var o=m.context;m.message;var i=m.children;return t("div",r({className:"message-audio"},{children:[e("audio",{muted:!0,src:o.url}),i]}))}var i=m.memo(o);function a(t){return e(i,r({},t))}export{a as MessageAudio};
@@ -0,0 +1 @@
1
+ import{__assign as e}from"tslib";import{jsx as s,jsxs as l}from"react/jsx-runtime";import n,{useState as o}from"react";import t from"tim-js-sdk";import{MESSAGE_STATUS as a}from"../../constants.js";import{Icon as i}from"../Icon/Icon.js";import{IconTypes as m}from"../Icon/type.js";import{useMessageReply as r}from"./hooks/useMessageReply.js";function c(n){var c=n.message,u=n.children,d=n.Context,p=n.Plugins,b=o(!1),g=b[0],v=b[1],f=r({message:c}),h=f.messageReply,N=f.replyMessage,y=f.sender;return l("div",e({className:"meesage-bubble"},{children:[l("div",e({className:"meesage-bubble-context ".concat(null==c?void 0:c.flow),onMouseEnter:function(){v(!0)},onMouseLeave:function(){v(!1)}},{children:[l("div",e({className:"message-context\n ".concat(h?"meesage-bubble-reply meesage-bubble-reply-".concat(null==c?void 0:c.flow):"","\n ").concat((null==c?void 0:c.type)!==t.TYPES.MSG_IMAGE&&(null==c?void 0:c.type)!==t.TYPES.MSG_VIDEO&&(null==c?void 0:c.type)!==t.TYPES.MSG_FILE||(null==c?void 0:c.status)!==a.UNSEND?"":"loading")},{children:[h&&l("main",e({className:"meesage-bubble-reply-main"},{children:[s("header",e({className:"title"},{children:y})),d&&s(d,{message:N})]})),u]})),s("div",e({className:"message-plugin"},{children:g&&p&&s(p,{})}))]})),l("div",e({className:"message-bubble-status icon"},{children:[(null==c?void 0:c.status)===a.FAIL&&s("i",{className:"icon-fail"}),(null==c?void 0:c.status)===a.UNSEND&&s(i,{width:10,height:10,type:m.PROGRESS})]}))]}))}var u=n.memo(c);function d(l){return s(u,e({},l))}export{d as MessageBubble};
@@ -0,0 +1,7 @@
1
+ import { Message } from 'tim-js-sdk';
2
+
3
+ interface MessageContextProps {
4
+ message?: Message;
5
+ }
6
+
7
+ export { MessageContextProps };
@@ -0,0 +1 @@
1
+ import{__assign as e}from"tslib";import{jsx as s}from"react/jsx-runtime";import t from"react";import o from"tim-js-sdk";import{MessageAudio as m}from"./MessageAudio.js";import{MessageCustom as r}from"./MessageCustom.js";import{MessageFace as E}from"./MessageFace.js";import{MessageFile as M}from"./MessageFile.js";import{MessageImage as S}from"./MessageImage.js";import{MessageLocation as i}from"./MessageLocation.js";import{MessageMerger as a}from"./MessageMerger.js";import{MessageText as n}from"./MessageText.js";import{MessageVideo as T}from"./MessageVideo.js";import"../../constants.js";import{useTUIMessageContext as G}from"../../context/TUIMessageContext.js";import{useMessageContextHandler as g}from"./hooks/useMessageContextHandler.js";import{MessageStatus as p}from"./MessageStatus.js";var f,l=((f={})[o.TYPES.MSG_TEXT]=n,f[o.TYPES.MSG_FACE]=E,f[o.TYPES.MSG_IMAGE]=S,f[o.TYPES.MSG_AUDIO]=m,f[o.TYPES.MSG_VIDEO]=T,f[o.TYPES.MSG_FILE]=M,f[o.TYPES.MSG_CUSTOM]=r,f[o.TYPES.MSG_MERGER]=a,f[o.TYPES.MSG_LOCATION]=i,f);function P(t){var m,r=t.message,E=g({message:r}).context,M=G("MessageCustom"),S=M.CustemElement,i=M.TextElement,a=M.FaceElement,n=M.ImageElement,T=M.AudioElement,f=M.VideoElement,P=M.FileElement,Y=M.MergerElement,_=M.LocationElement,j=((m={})[o.TYPES.MSG_TEXT]=i,m[o.TYPES.MSG_FACE]=a,m[o.TYPES.MSG_IMAGE]=n,m[o.TYPES.MSG_AUDIO]=T,m[o.TYPES.MSG_VIDEO]=f,m[o.TYPES.MSG_FILE]=P,m[o.TYPES.MSG_CUSTOM]=S,m[o.TYPES.MSG_MERGER]=Y,m[o.TYPES.MSG_LOCATION]=_,m)[null==r?void 0:r.type]||l[null==r?void 0:r.type];return j&&s(j,e({context:E,message:r},{children:s(p,{message:r})}))}var Y=t.memo(P);function _(t){return s(Y,e({},t))}export{_ as MessageContext};
@@ -0,0 +1 @@
1
+ import{__assign as r}from"tslib";import{jsx as e,jsxs as n}from"react/jsx-runtime";import t from"react";import{JSONStringToParse as o}from"../untils.js";function i(t){var i=t.context,a=t.message,l=t.children;return n("div",r({className:"bubble message-custom bubble-".concat(a.flow)},{children:[function(n){if("Hyperlink"===n.data){var t=o(null==n?void 0:n.extension);return null==t?void 0:t.item.map((function(n){return e("a",r({target:"_blank",href:n.value,rel:"noreferrer"},{children:n.value}),n.value)}))}return"group_create"===n.data?"".concat((null==a?void 0:a.nick)||(null==a?void 0:a.from)," Create a group"):n.extension}(null==i?void 0:i.custom),l]}))}var a=t.memo(i);function l(n){return e(a,r({},n))}export{l as MessageCustom};
@@ -0,0 +1 @@
1
+ import{__assign as r}from"tslib";import{jsx as e,jsxs as t}from"react/jsx-runtime";import m from"react";function a(m){var a=m.context,c=m.message,o=m.children;return t("div",r({className:"bubble message-face bubble-".concat(c.flow)},{children:[e("img",{className:"img",src:a.url,alt:""}),o]}))}var c=m.memo(a);function o(t){return e(c,r({},t))}export{o as MessageFace};
@@ -0,0 +1 @@
1
+ import{__assign as e}from"tslib";import{jsx as i,jsxs as s}from"react/jsx-runtime";import m from"react";import{Icon as r}from"../Icon/Icon.js";import{IconTypes as a}from"../Icon/type.js";function o(m){var o=m.context,l=m.message,n=m.children;return s("div",e({className:"bubble message-file bubble-".concat(l.flow)},{children:[s("main",e({className:"message-file-main"},{children:[i(r,{className:"icon",width:15,height:20,type:a.FILE}),i("label",e({htmlFor:"message-file"},{children:o.name}))]})),s("div",e({className:"message-file-footer"},{children:[i("span",e({className:"message-file-size"},{children:o.size})),n]}))]}))}var l=m.memo(o);function n(s){return i(l,e({},s))}export{n as MessageFile};
@@ -0,0 +1 @@
1
+ import{__assign as i}from"tslib";import{jsx as o,jsxs as r}from"react/jsx-runtime";import e,{useState as n}from"react";import{Model as l}from"../Model/index.js";function t(e){var t,a,m,c=e.context,d=e.message,u=e.children,s=n(!1),f=s[0],v=s[1],g=null===(a=null===(t=null==d?void 0:d.payload)||void 0===t?void 0:t.imageInfoArray)||void 0===a?void 0:a.filter((function(i){return 0===i.type}));return r("div",i({className:"message-image"},{children:[o("div",i({role:"button",tabIndex:0,onClick:function(){v(!0)}},{children:o("img",{className:"img bubble-".concat(d.flow),src:c.url,alt:""})})),u,f&&o(l,i({onClick:function(){v(!1)}},{children:o("img",{className:"big-image",src:null===(m=g[0])||void 0===m?void 0:m.url,alt:""})}))]}))}var a=e.memo(t);function m(r){return o(a,i({},r))}export{m as MessageImage};
@@ -0,0 +1 @@
1
+ import{__assign as r}from"tslib";import{jsx as e,jsxs as t}from"react/jsx-runtime";import n from"react";function a(n){var a=n.context;n.message;var i=n.children;return t("a",r({className:"bubble message-location",href:a.href,target:"_blank",title:"点击查看详情",rel:"noreferrer"},{children:[e("span",{children:a.description}),e("img",{src:a.url,alt:""}),i]}))}var i=n.memo(a);function o(t){return e(i,r({},t))}export{o as MessageLocation};
@@ -0,0 +1 @@
1
+ import{__assign as e}from"tslib";import{jsx as r,jsxs as t}from"react/jsx-runtime";import a from"react";function i(a){var i=a.context,m=a.message,s=a.children;return t("div",e({className:"bubble message-merger bubble-".concat(m.flow)},{children:[r("h3",{children:i.title}),r("ul",e({className:"message-merger-list"},{children:(null==i?void 0:i.abstractList.length)>0&&i.abstractList.map((function(t,a){var i=t+a;return r("li",e({className:"message-merger-item"},{children:t}),i)}))})),s]}))}var m=a.memo(i);function s(t){return r(m,e({},t))}export{s as MessageMerger};
@@ -0,0 +1 @@
1
+ import{__assign as e,__spreadArray as s}from"tslib";import{jsxs as n,jsx as t}from"react/jsx-runtime";import{useState as i,useRef as l}from"react";import o from"tim-js-sdk";import{Plugins as a}from"../Plugins/index.js";import{Icon as r}from"../Icon/Icon.js";import{IconTypes as c}from"../Icon/type.js";import{useTUIChatStateContext as m}from"../../context/TUIChatStateContext.js";import{useTUIMessageContext as d}from"../../context/TUIMessageContext.js";import{useMessageHandler as h}from"./hooks/useMessageHandler.js";import{MESSAGE_STATUS as g,MESSAGE_FLOW as p}from"../../constants.js";import"date-fns";import{useMessagePluginElement as u}from"./hooks/useMessagePluginElement.js";function f(f){var M=f.plugins,v=f.showNumber,N=void 0===v?0:v,C=f.MoreIcon,y=i(""),w=y[0],E=y[1],R=l(null),j=d("MessagePlugins").message,S=m("MessageBubbleWithContext").messageListRef,x=h({message:j}),I=x.handleDelMessage,T=x.handleRevokeMessage,O=x.handleReplyMessage,U=x.handleCopyMessage,b=x.handleResendMessage,P=x.handleForWardMessage,D=u({children:n("div",e({className:"message-plugin-item"},{children:[t("span",{children:"Recall"}),t(r,{width:20,height:20,type:c.REVOCATION})]})),handle:function(e){R.current.closeMore(),T(e)},message:j}),k=u({children:n("div",e({className:"message-plugin-item"},{children:[t("span",e({className:"del"},{children:"Delete"})),t(r,{width:20,height:20,type:c.DEL})]})),handle:function(e){R.current.closeMore(),I(e)},message:j}),F=u({children:n("div",e({className:"message-plugin-item"},{children:[t("span",{children:"Quote"}),t(r,{width:20,height:20,type:c.QUOTE})]})),handle:function(e){R.current.closeMore(),O(e)},message:j}),L=u({children:n("div",e({className:"message-plugin-item"},{children:[t("span",{children:"Copy"}),t(r,{width:20,height:20,type:c.COPY})]})),handle:function(e){R.current.closeMore(),U(e)},message:j}),W=u({children:n("div",e({className:"message-plugin-item"},{children:[t("span",{children:"Resend"}),t(r,{width:20,height:20,type:c.REPLY})]})),handle:function(e){R.current.closeMore(),b(e)},message:j}),Y=u({children:n("div",e({className:"message-plugin-item"},{children:[t("span",{children:"Forward"}),t(r,{width:20,height:20,type:c.FORWARD})]})),handle:function(e){R.current.closeMore(),P(e)},message:j}),A=(null==j?void 0:j.status)===g.SUCCESS?[F,Y,k]:[W];(null==j?void 0:j.status)===g.SUCCESS&&j.flow===p.OUT&&(A=s([D],A,!0)),j.type===o.TYPES.MSG_TEXT&&A.splice(-1,0,L);var Q=M||A,V=C||t(r,{className:"icon-more",width:16,height:16,type:c.MORE});return(null==j?void 0:j.status)!==g.UNSEND&&t(a,{className:"message-plugin",customClass:w,ref:R,plugins:Q,showNumber:N,MoreIcon:V,root:null==S?void 0:S.current,handleVisible:function(e){E("".concat(!e.top&&"message-plugin-top"," ").concat(!e.left&&"message-plugin-left"))}})}export{f as MessagePlugins};
@@ -0,0 +1 @@
1
+ import{__assign as e}from"tslib";import{jsx as o,jsxs as n}from"react/jsx-runtime";import r,{useCallback as t}from"react";import i from"tim-js-sdk";import{MESSAGE_OPERATE as l,MESSAGE_FLOW as s}from"../../constants.js";import{useTUIChatActionContext as a}from"../../context/TUIChatActionContext.js";function m(r){var m=r.message,c=a().operateMessage,d=t((function(){var e;c(((e={})[l.REVOKE]=m,e))}),[c]);return n("div",e({className:"bubble message-system message-revoke"},{children:[(null==m?void 0:m.flow)===s.IN&&o("span",{children:(null==m?void 0:m.nick)||(null==m?void 0:m.from)}),(null==m?void 0:m.flow)!==s.IN&&o("span",{children:"you "}),o("span",{children:"recalled a message"}),(null==m?void 0:m.flow)===s.OUT&&(null==m?void 0:m.type)===i.TYPES.MSG_TEXT&&o("span",e({className:"edit",role:"button",tabIndex:0,onClick:d},{children:" Re-edit"}))]}))}var c=r.memo(m);function d(n){return o(c,e({},n))}export{d as MessageRevoke};
@@ -0,0 +1 @@
1
+ import{__assign as r}from"tslib";import{jsx as e}from"react/jsx-runtime";import t from"react";import{getTimeStamp as m}from"../untils.js";function i(t){var i=t.message,s=e("div",r({className:"time"},{children:(null==i?void 0:i.time)?m(1e3*i.time):0}));return e("div",r({className:"message-status"},{children:s}))}var s=t.memo(i);function o(t){return e(s,r({},t))}export{o as MessageStatus};
@@ -0,0 +1 @@
1
+ import{__assign as e}from"tslib";import{jsx as r}from"react/jsx-runtime";import t from"react";import"../../constants.js";import{useMessageContextHandler as s}from"./hooks/useMessageContextHandler.js";function o(t){var o=t.message,m=s({message:o}).context;return r("div",e({className:"bubble message-system"},{children:r("div",{children:m})}))}var m=t.memo(o);function n(t){return r(m,e({},t))}export{n as MessageSystem};
@@ -0,0 +1 @@
1
+ import{__assign as t}from"tslib";import{jsx as e,jsxs as r}from"react/jsx-runtime";import m from"react";function a(m){var a=m.context,c=m.message,n=m.children;return e("div",t({className:"bubble message-text bubble-".concat(c.flow)},{children:r("div",t({className:"message-text-content"},{children:[a.text.map((function(t,r){var m=c.ID+r;return"text"===t.name?t.text:e("img",{className:"text-img",src:t.src,alt:""},t.src+m)})),n]}))}))}var c=m.memo(a);function n(r){return e(c,t({},r))}export{n as MessageText};
@@ -0,0 +1 @@
1
+ import{__assign as e}from"tslib";import{jsx as t}from"react/jsx-runtime";import r from"react";import"../../constants.js";import{useMessageContextHandler as o}from"./hooks/useMessageContextHandler.js";function s(r){var s=r.message,m=o({message:s}).context;return t("div",e({className:"bubble message-tip"},{children:m.text}))}var m=r.memo(s);function n(r){return t(m,e({},r))}export{n as MessageTip};
@@ -0,0 +1 @@
1
+ import{__assign as o}from"tslib";import{jsx as r,jsxs as e}from"react/jsx-runtime";import t,{useState as n}from"react";import{MESSAGE_STATUS as i}from"../../constants.js";import{Model as c}from"../Model/index.js";function s(t){var s=t.context,m=t.message,l=t.children,a=n(!1),d=a[0],u=a[1];return e("div",o({className:"message-video"},{children:[r("div",o({className:"".concat((null==m?void 0:m.status)===i.SUCCESS?"snap-video":""),role:"button",tabIndex:0,onClick:function(){u(!0)}},{children:r("video",{muted:!0,controls:!1,src:s.url})})),l,d&&r(c,o({onClick:function(){u(!1)}},{children:r("video",{className:"play-video",muted:!0,controls:!0,src:s.url})}))]}))}var m=t.memo(s);function l(e){return r(m,o({},e))}export{l as MessageVideo};