@tencentcloud/chat-uikit-react 1.2.2 → 2.1.0

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 (241) hide show
  1. package/.eslintrc.js +2 -1
  2. package/CHANGELOG.md +8 -2
  3. package/dist/cjs/components/ConversationCreate/ConversationCreatGroupDetail.js +1 -1
  4. package/dist/cjs/components/ConversationCreate/ConversationCreateUserSelectList.js +1 -1
  5. package/dist/cjs/components/ConversationCreate/hooks/useConversationCreate.js +1 -1
  6. package/dist/cjs/components/ConversationPreview/ConversationPreview.d.ts +2 -0
  7. package/dist/cjs/components/ConversationPreview/ConversationPreview.js +1 -1
  8. package/dist/cjs/components/ConversationPreview/ConversationPreviewContent.js +1 -1
  9. package/dist/cjs/components/ConversationPreview/utils.js +1 -1
  10. package/dist/cjs/components/ConversationSearch/ConversationSearchResult.js +1 -1
  11. package/dist/cjs/components/Icon/config.js +1 -1
  12. package/dist/cjs/components/Icon/images/chats-selected.svg.js +1 -0
  13. package/dist/cjs/components/Icon/images/chats.svg.js +1 -0
  14. package/dist/cjs/components/Icon/images/contacts-selected.svg.js +1 -0
  15. package/dist/cjs/components/Icon/images/contacts.svg.js +1 -0
  16. package/dist/cjs/components/Icon/images/files.png.js +1 -0
  17. package/dist/cjs/components/Icon/images/image.png.js +1 -1
  18. package/dist/cjs/components/Icon/images/video.png.js +1 -1
  19. package/dist/cjs/components/TUIChat/TUIChat.d.ts +5 -0
  20. package/dist/cjs/components/TUIChat/TUIChat.js +1 -1
  21. package/dist/cjs/components/TUIChat/TUIChatState.js +1 -1
  22. package/dist/cjs/components/TUIChat/hooks/useHandleMessage.js +1 -1
  23. package/dist/cjs/components/TUIChat/hooks/useHandleMessageList.js +1 -1
  24. package/dist/cjs/components/TUIChat/unitls.js +1 -1
  25. package/dist/cjs/components/TUIChatHeader/TUIChatHeaderDefault.js +1 -1
  26. package/dist/cjs/components/TUIContact/TUIContactInfo/friendInfo.js +1 -1
  27. package/dist/cjs/components/TUIContact/TUIContactList/TUIContactList.js +1 -1
  28. package/dist/cjs/components/TUIConversation/TUIConversation.js +1 -1
  29. package/dist/cjs/components/TUIConversationList/TUIConversationList.d.ts +1 -0
  30. package/dist/cjs/components/TUIConversationList/TUIConversationList.js +1 -1
  31. package/dist/cjs/components/TUIKit/TUIKit.js +1 -1
  32. package/dist/cjs/components/TUIManage/TUIManage.js +1 -1
  33. package/dist/cjs/components/TUIMessage/MessageBubble.js +1 -1
  34. package/dist/cjs/components/TUIMessage/MessageContext.js +1 -1
  35. package/dist/cjs/components/TUIMessage/MessageCustom.js +1 -1
  36. package/dist/cjs/components/TUIMessage/MessageImage.js +1 -1
  37. package/dist/cjs/components/TUIMessage/MessageName.js +1 -1
  38. package/dist/cjs/components/TUIMessage/MessagePlugins.js +1 -1
  39. package/dist/cjs/components/TUIMessage/MessageRevoke.js +1 -1
  40. package/dist/cjs/components/TUIMessage/MessageSystem.js +1 -1
  41. package/dist/cjs/components/TUIMessage/MessageText.js +1 -1
  42. package/dist/cjs/components/TUIMessage/MessageTip.js +1 -1
  43. package/dist/cjs/components/TUIMessage/MessageVideo.js +1 -1
  44. package/dist/cjs/components/TUIMessage/TUIMessage.js +1 -1
  45. package/dist/cjs/components/TUIMessage/hooks/useMessageHandler.js +1 -1
  46. package/dist/cjs/components/TUIMessage/utils/index.js +1 -1
  47. package/dist/cjs/components/TUIMessageInput/TUIForward.js +1 -1
  48. package/dist/cjs/components/TUIMessageInput/TUIMessageInput.js +1 -1
  49. package/dist/cjs/components/TUIMessageInput/TUIMessageInputDefault.js +1 -1
  50. package/dist/cjs/components/TUIMessageInput/hooks/useEmojiPicker.js +1 -1
  51. package/dist/cjs/components/TUIMessageInput/hooks/useHandleForwardMessage.js +1 -1
  52. package/dist/cjs/components/TUIMessageInput/hooks/useMessageInputText.js +1 -1
  53. package/dist/cjs/components/TUIMessageInput/hooks/useUploadPicker.js +1 -1
  54. package/dist/cjs/components/TUIMessageList/TUIMessageList.js +1 -1
  55. package/dist/cjs/components/TUIProfile/TUIProfileDefault.js +1 -1
  56. package/dist/cjs/components/untils.js +1 -1
  57. package/dist/cjs/constants.js +1 -1
  58. package/dist/cjs/context/ComponentContext.d.ts +2 -0
  59. package/dist/cjs/context/TUIChatActionContext.d.ts +3 -14
  60. package/dist/cjs/context/TUIChatStateContext.d.ts +2 -0
  61. package/dist/cjs/context/TUIConversationContext.js +1 -1
  62. package/dist/cjs/index.css +1 -1
  63. package/dist/cjs/index.d.css +240 -12
  64. package/dist/cjs/index.js +1 -1
  65. package/dist/cjs/locales/en/TUIChat.js +1 -1
  66. package/dist/cjs/locales/en/TUIContact.js +1 -1
  67. package/dist/cjs/locales/en/TUIProfile.js +1 -1
  68. package/dist/cjs/locales/index.js +1 -1
  69. package/dist/cjs/locales/zh_cn/TUIChat.js +1 -1
  70. package/dist/cjs/locales/zh_cn/TUIContact.js +1 -1
  71. package/dist/cjs/locales/zh_cn/TUIProfile.js +1 -1
  72. package/dist/cjs/server.js +1 -0
  73. package/dist/cjs/utils/env.js +1 -0
  74. package/dist/esm/components/ConversationCreate/ConversationCreatGroupDetail.js +1 -1
  75. package/dist/esm/components/ConversationCreate/ConversationCreateUserSelectList.js +1 -1
  76. package/dist/esm/components/ConversationCreate/hooks/useConversationCreate.js +1 -1
  77. package/dist/esm/components/ConversationPreview/ConversationPreview.d.ts +2 -0
  78. package/dist/esm/components/ConversationPreview/ConversationPreview.js +1 -1
  79. package/dist/esm/components/ConversationPreview/ConversationPreviewContent.js +1 -1
  80. package/dist/esm/components/ConversationPreview/utils.js +1 -1
  81. package/dist/esm/components/ConversationSearch/ConversationSearchResult.js +1 -1
  82. package/dist/esm/components/Icon/config.js +1 -1
  83. package/dist/esm/components/Icon/images/chats-selected.svg.js +1 -0
  84. package/dist/esm/components/Icon/images/chats.svg.js +1 -0
  85. package/dist/esm/components/Icon/images/contacts-selected.svg.js +1 -0
  86. package/dist/esm/components/Icon/images/contacts.svg.js +1 -0
  87. package/dist/esm/components/Icon/images/files.png.js +1 -0
  88. package/dist/esm/components/Icon/images/image.png.js +1 -1
  89. package/dist/esm/components/Icon/images/video.png.js +1 -1
  90. package/dist/esm/components/TUIChat/TUIChat.d.ts +5 -0
  91. package/dist/esm/components/TUIChat/TUIChat.js +1 -1
  92. package/dist/esm/components/TUIChat/TUIChatState.js +1 -1
  93. package/dist/esm/components/TUIChat/hooks/useHandleMessage.js +1 -1
  94. package/dist/esm/components/TUIChat/hooks/useHandleMessageList.js +1 -1
  95. package/dist/esm/components/TUIChat/unitls.js +1 -1
  96. package/dist/esm/components/TUIChatHeader/TUIChatHeaderDefault.js +1 -1
  97. package/dist/esm/components/TUIContact/TUIContactInfo/friendInfo.js +1 -1
  98. package/dist/esm/components/TUIContact/TUIContactList/TUIContactList.js +1 -1
  99. package/dist/esm/components/TUIConversation/TUIConversation.js +1 -1
  100. package/dist/esm/components/TUIConversationList/TUIConversationList.d.ts +1 -0
  101. package/dist/esm/components/TUIConversationList/TUIConversationList.js +1 -1
  102. package/dist/esm/components/TUIKit/TUIKit.js +1 -1
  103. package/dist/esm/components/TUIManage/TUIManage.js +1 -1
  104. package/dist/esm/components/TUIMessage/MessageBubble.js +1 -1
  105. package/dist/esm/components/TUIMessage/MessageContext.js +1 -1
  106. package/dist/esm/components/TUIMessage/MessageCustom.js +1 -1
  107. package/dist/esm/components/TUIMessage/MessageImage.js +1 -1
  108. package/dist/esm/components/TUIMessage/MessageName.js +1 -1
  109. package/dist/esm/components/TUIMessage/MessagePlugins.js +1 -1
  110. package/dist/esm/components/TUIMessage/MessageRevoke.js +1 -1
  111. package/dist/esm/components/TUIMessage/MessageSystem.js +1 -1
  112. package/dist/esm/components/TUIMessage/MessageText.js +1 -1
  113. package/dist/esm/components/TUIMessage/MessageTip.js +1 -1
  114. package/dist/esm/components/TUIMessage/MessageVideo.js +1 -1
  115. package/dist/esm/components/TUIMessage/TUIMessage.js +1 -1
  116. package/dist/esm/components/TUIMessage/hooks/useMessageHandler.js +1 -1
  117. package/dist/esm/components/TUIMessage/utils/index.js +1 -1
  118. package/dist/esm/components/TUIMessageInput/TUIForward.js +1 -1
  119. package/dist/esm/components/TUIMessageInput/TUIMessageInput.js +1 -1
  120. package/dist/esm/components/TUIMessageInput/TUIMessageInputDefault.js +1 -1
  121. package/dist/esm/components/TUIMessageInput/hooks/useEmojiPicker.js +1 -1
  122. package/dist/esm/components/TUIMessageInput/hooks/useHandleForwardMessage.js +1 -1
  123. package/dist/esm/components/TUIMessageInput/hooks/useMessageInputText.js +1 -1
  124. package/dist/esm/components/TUIMessageInput/hooks/useUploadPicker.js +1 -1
  125. package/dist/esm/components/TUIMessageList/TUIMessageList.js +1 -1
  126. package/dist/esm/components/TUIProfile/TUIProfileDefault.js +1 -1
  127. package/dist/esm/components/untils.js +1 -1
  128. package/dist/esm/constants.js +1 -1
  129. package/dist/esm/context/ComponentContext.d.ts +2 -0
  130. package/dist/esm/context/TUIChatActionContext.d.ts +3 -14
  131. package/dist/esm/context/TUIChatStateContext.d.ts +2 -0
  132. package/dist/esm/context/TUIConversationContext.js +1 -1
  133. package/dist/esm/index.css +1 -1
  134. package/dist/esm/index.d.css +240 -12
  135. package/dist/esm/index.js +1 -1
  136. package/dist/esm/locales/en/TUIChat.js +1 -1
  137. package/dist/esm/locales/en/TUIContact.js +1 -1
  138. package/dist/esm/locales/en/TUIProfile.js +1 -1
  139. package/dist/esm/locales/index.js +1 -1
  140. package/dist/esm/locales/zh_cn/TUIChat.js +1 -1
  141. package/dist/esm/locales/zh_cn/TUIContact.js +1 -1
  142. package/dist/esm/locales/zh_cn/TUIProfile.js +1 -1
  143. package/dist/esm/server.js +1 -0
  144. package/dist/esm/utils/env.js +1 -0
  145. package/package.json +7 -6
  146. package/rollup.config.js +0 -1
  147. package/scripts/publish-github.js +60 -0
  148. package/scripts/publish-intl-demo.js +14 -0
  149. package/scripts/publish-npm.js +22 -0
  150. package/src/components/Avatar/styles/index.scss +1 -0
  151. package/src/components/ConversationCreate/ConversationCreatGroupDetail.tsx +6 -3
  152. package/src/components/ConversationCreate/ConversationCreateUserSelectList.tsx +5 -1
  153. package/src/components/ConversationCreate/hooks/useConversationCreate.tsx +7 -2
  154. package/src/components/ConversationCreate/styles/conversationGroupTypeInfo.scss +1 -0
  155. package/src/components/ConversationCreate/styles/index.scss +2 -0
  156. package/src/components/ConversationPreview/ConversationPreview.tsx +2 -0
  157. package/src/components/ConversationPreview/ConversationPreviewContent.tsx +57 -9
  158. package/src/components/ConversationPreview/styles/index.scss +4 -2
  159. package/src/components/ConversationPreview/utils.tsx +5 -1
  160. package/src/components/DivWithEdit/styles/index.scss +2 -1
  161. package/src/components/Icon/config.ts +1 -1
  162. package/src/components/Icon/images/chats-selected.svg +6 -0
  163. package/src/components/Icon/images/chats.svg +9 -0
  164. package/src/components/Icon/images/contacts-selected.svg +3 -0
  165. package/src/components/Icon/images/contacts.svg +6 -0
  166. package/src/components/Icon/images/files.png +0 -0
  167. package/src/components/Icon/images/image.png +0 -0
  168. package/src/components/Icon/images/language.svg +3 -0
  169. package/src/components/Icon/images/video.png +0 -0
  170. package/src/components/Model/styles/layout.scss +1 -1
  171. package/src/components/Profile/styles/index.scss +4 -0
  172. package/src/components/TUIChat/TUIChat.tsx +74 -120
  173. package/src/components/TUIChat/TUIChatState.tsx +18 -45
  174. package/src/components/TUIChat/hooks/useHandleMessage.tsx +8 -0
  175. package/src/components/TUIChat/hooks/useHandleMessageList.tsx +2 -41
  176. package/src/components/TUIChat/unitls.ts +0 -29
  177. package/src/components/TUIChatHeader/TUIChatHeaderDefault.tsx +7 -1
  178. package/src/components/TUIContact/TUIContactInfo/friendInfo.tsx +4 -1
  179. package/src/components/TUIContact/TUIContactList/TUIContactList.tsx +1 -1
  180. package/src/components/TUIConversation/TUIConversation.tsx +1 -4
  181. package/src/components/TUIConversationList/TUIConversationList.tsx +91 -65
  182. package/src/components/TUIConversationList/index.scss +5 -0
  183. package/src/components/TUIKit/TUIKit.tsx +133 -9
  184. package/src/components/TUIKit/styles/h5.scss +34 -0
  185. package/src/components/TUIKit/styles/index.scss +103 -0
  186. package/src/components/TUIKit/styles/reset.scss +20 -0
  187. package/src/components/TUIManage/TUIManage.tsx +59 -35
  188. package/src/components/TUIManage/styles/index.scss +15 -1
  189. package/src/components/TUIMessage/MessageBubble.tsx +20 -3
  190. package/src/components/TUIMessage/MessageCustom.tsx +11 -2
  191. package/src/components/TUIMessage/MessageImage.tsx +2 -1
  192. package/src/components/TUIMessage/MessageName.tsx +1 -1
  193. package/src/components/TUIMessage/MessagePlugins.tsx +4 -2
  194. package/src/components/TUIMessage/MessageRevoke.tsx +2 -2
  195. package/src/components/TUIMessage/MessageText.tsx +25 -3
  196. package/src/components/TUIMessage/MessageVideo.tsx +8 -5
  197. package/src/components/TUIMessage/hooks/useMessageHandler.ts +13 -33
  198. package/src/components/TUIMessage/styles/color.scss +1 -0
  199. package/src/components/TUIMessage/styles/layout.scss +33 -6
  200. package/src/components/TUIMessage/utils/index.ts +1 -1
  201. package/src/components/TUIMessageInput/TUIMessageInputDefault.tsx +2 -2
  202. package/src/components/TUIMessageInput/hooks/useEmojiPicker.tsx +2 -6
  203. package/src/components/TUIMessageInput/hooks/useHandleForwardMessage.tsx +4 -3
  204. package/src/components/TUIMessageInput/hooks/useMessageInputText.tsx +10 -3
  205. package/src/components/TUIMessageInput/hooks/useUploadPicker.tsx +10 -14
  206. package/src/components/TUIMessageInput/styles/color.scss +1 -1
  207. package/src/components/TUIMessageInput/styles/layout.scss +7 -2
  208. package/src/components/TUIMessageList/TUIMessageList.tsx +9 -13
  209. package/src/components/TUIMessageList/index.ts +0 -1
  210. package/src/components/TUIProfile/TUIProfileDefault.tsx +65 -51
  211. package/src/components/TUIProfile/styles/layout.scss +6 -0
  212. package/src/components/untils.ts +9 -0
  213. package/src/constants.ts +4 -1
  214. package/src/context/ComponentContext.tsx +2 -0
  215. package/src/context/TUIChatActionContext.tsx +3 -23
  216. package/src/context/TUIChatStateContext.tsx +2 -0
  217. package/src/context/TUIKitContext.tsx +0 -1
  218. package/src/index.ts +3 -0
  219. package/src/locales/en/TUIChat.ts +2 -1
  220. package/src/locales/en/TUIContact.ts +1 -1
  221. package/src/locales/en/TUIProfile.ts +5 -4
  222. package/src/locales/index.ts +1 -1
  223. package/src/locales/zh_cn/TUIChat.ts +1 -0
  224. package/src/locales/zh_cn/TUIContact.ts +1 -1
  225. package/src/locales/zh_cn/TUIProfile.ts +1 -0
  226. package/src/server.ts +44 -0
  227. package/src/utils/env.ts +5 -0
  228. package/tsconfig.json +1 -0
  229. package/dist/cjs/components/Icon/images/document.png.js +0 -1
  230. package/dist/cjs/components/TUIChat/hooks/useCreateMessage.d.ts +0 -59
  231. package/dist/cjs/components/TUIChat/hooks/useCreateMessage.js +0 -1
  232. package/dist/cjs/components/TUIChat/hooks/useMessageReceviedListener.js +0 -1
  233. package/dist/cjs/components/TUIMessageList/hooks/useEnrichedMessageList.js +0 -1
  234. package/dist/esm/components/Icon/images/document.png.js +0 -1
  235. package/dist/esm/components/TUIChat/hooks/useCreateMessage.d.ts +0 -59
  236. package/dist/esm/components/TUIChat/hooks/useCreateMessage.js +0 -1
  237. package/dist/esm/components/TUIChat/hooks/useMessageReceviedListener.js +0 -1
  238. package/dist/esm/components/TUIMessageList/hooks/useEnrichedMessageList.js +0 -1
  239. package/src/components/TUIChat/hooks/useCreateMessage.tsx +0 -198
  240. package/src/components/TUIChat/hooks/useMessageReceviedListener.tsx +0 -26
  241. package/src/components/TUIMessageList/hooks/useEnrichedMessageList.tsx +0 -16
@@ -1 +1 @@
1
- var e={"Enter a userID":"Enter a userID","Enter the verification info":"Enter the verification info","Request to join":"Request to join",Requested:"Requested",Accept:"Accept",Refuse:"Refuse",Handled:"Handled",Friend:"Friend","Send Message":"Send Message",Signature:"Signature","New Contacts":"New Contacts","Blocked List":"Blocked List","No Result":"No Result",ID:"ID",User:"User","Add Friend":"Add Friend",remark:"remark",block:"block","Delete friend":"Delete friend","waiting for verification":"waiting for verification","verification info":"verification info","Send application":"Send application",Agree:"Agree"};export{e as default};
1
+ var e={"Enter a userID":"Enter a userID","Enter the verification info":"Enter the verification info","Request to join":"Request to join",Requested:"Requested",Accept:"Accept",Refuse:"Refuse",Handled:"Handled",Friends:"Friends","Send Message":"Send Message",Signature:"Signature","New Contacts":"New Contacts","Blocked List":"Blocked List","No Result":"No Result",ID:"ID",User:"User","Add Friend":"Add Friend",remark:"remark",block:"block","Delete friend":"Delete friend","waiting for verification":"waiting for verification","verification info":"verification info","Send application":"Send application",Agree:"Agree"};export{e as default};
@@ -1 +1 @@
1
- var e={"Personal information":"Personal information",Signature:"Signature",Gender:"Gender",Male:"Male",Female:"Female",AllowType:"AllowType",NeedConfirm:"NeedConfirm",AllowAny:"AllowAny",DenyAny:"DenyAny",Birthday:"Birthday"};export{e as default};
1
+ var e={"Personal information":"Personal information",Signature:"Signature",Gender:"Gender",Male:"Male",Female:"Female",AllowType:"Friend Request",NeedConfirm:"Anyone upon Request",AllowAny:"Allow any user to add you as friend",DenyAny:"Decline friend request from any user",Birthday:"Birthday",Unknow:"Not set"};export{e as default};
@@ -1 +1 @@
1
- import e from"i18next";export{default as i18next}from"i18next";import{initReactI18next as t}from"react-i18next";import{message as r}from"./en/index.js";import{message as n}from"./zh_cn/index.js";var i={en:{translation:r},zh:{translation:n}};e.use(t).init({resources:i,lng:"zh",interpolation:{escapeValue:!1}});var o=e.t;export{o as t};
1
+ import e from"i18next";export{default as i18next}from"i18next";import{initReactI18next as t}from"react-i18next";import{message as r}from"./en/index.js";import{message as n}from"./zh_cn/index.js";var i={en:{translation:r},zh:{translation:n}};e.use(t).init({resources:i,lng:"en",interpolation:{escapeValue:!1}});var o=e.t;export{o as t};
@@ -1 +1 @@
1
- var e={Recall:"撤回",Reference:"引用",Forward:"转发",Copy:"复制",Delete:"删除","Forward to":"转发给","recalled a message":"撤回了一条消息","Re-edit":"重新编辑",Resend:"重新发送",You:"您","Recent Chats":"会话","Frequently Contacted":"最近的会话","No Result":"无搜索结果","Search Result":"搜索结果",Image:"图片",Video:"视频",File:"文件","Enter a message":"请输入消息","No More":"没有更多","Error deleting message":"消息删除失败","The message recall exceeded the time limit (default 2 minutes)":"消息已超过 2 分钟","Error revoke Message":"消息撤回失败"};export{e as default};
1
+ var e={Recall:"撤回",Reference:"引用",Forward:"转发",Copy:"复制",Delete:"删除","Forward to":"转发给","recalled a message":"撤回了一条消息","Re-edit":"重新编辑",Resend:"重新发送",You:"您","Recent Chats":"会话","Frequently Contacted":"最近的会话","No Result":"无搜索结果","Search Result":"搜索结果",Image:"图片",Video:"视频",File:"文件","Enter a message":"请输入消息","No More":"没有更多","Error deleting message":"消息删除失败","The message recall exceeded the time limit (default 2 minutes)":"消息已超过 2 分钟","Error revoke Message":"消息撤回失败","Custom message":"自定义消息"};export{e as default};
@@ -1 +1 @@
1
- var e={"Enter a userID":"请输入用户 ID,回车搜索","Enter the verification info":"请填写验证信息","Request to join":"申请加入",Requested:"已申请",Accept:"接受",Refuse:"拒绝",Handled:"已处理",Friend:"我的好友","Send Message":"发送消息",Signature:"个性签名","Successful application, waiting for the administrator to agree to join the group application":"等待管理员同意","New Contacts":"新的联系人","Blocked List":"黑名单","No Result":"无搜索结果",ID:"ID",User:"联系人","Add Friend":"添加好友",remark:"备注",block:"加入黑名单","Delete friend":"删除好友","waiting for verification":"等待验证","verification info":"验证信息","Send application":"发送申请",Agree:"同意"};export{e as default};
1
+ var e={"Enter a userID":"请输入用户 ID,回车搜索","Enter the verification info":"请填写验证信息","Request to join":"申请加入",Requested:"已申请",Accept:"接受",Refuse:"拒绝",Handled:"已处理",Friends:"我的好友","Send Message":"发送消息",Signature:"个性签名","Successful application, waiting for the administrator to agree to join the group application":"等待管理员同意","New Contacts":"新的联系人","Blocked List":"黑名单","No Result":"无搜索结果",ID:"ID",User:"联系人","Add Friend":"添加好友",remark:"备注",block:"加入黑名单","Delete friend":"删除好友","waiting for verification":"等待验证","verification info":"验证信息","Send application":"发送申请",Agree:"同意"};export{e as default};
@@ -1 +1 @@
1
- var e={"Personal information":"个人信息",Signature:"个性签名",Gender:"性别",Male:"男",Female:"女",AllowType:"加好友验证方式",NeedConfirm:"需要验证",AllowAny:"同意任何用户加好友",DenyAny:"拒绝任何用户加好友",Birthday:"生日"};export{e as default};
1
+ var e={"Personal information":"个人信息",Signature:"个性签名",Gender:"性别",Male:"男",Female:"女",AllowType:"加好友验证方式",NeedConfirm:"需要验证",AllowAny:"同意任何用户加好友",DenyAny:"拒绝任何用户加好友",Birthday:"生日",Unknown:"未设置"};export{e as default};
@@ -0,0 +1 @@
1
+ import t,{TUIConstants as n,TUILogin as o}from"@tencentcloud/tui-core";import i from"@tencentcloud/chat-uikit-engine";var e=function(){function e(){t.registerEvent(n.TUILogin.EVENT.LOGIN_STATE_CHANGED,n.TUILogin.EVENT_SUB_KEY.USER_LOGIN_SUCCESS,this)}return e.prototype.onNotifyEvent=function(t,o){if(t===n.TUILogin.EVENT.LOGIN_STATE_CHANGED&&o===n.TUILogin.EVENT_SUB_KEY.USER_LOGIN_SUCCESS)this.login()},e.prototype.login=function(){var t=o.getContext(),n=t.chat,e=t.SDKAppID,E=t.userID,r=t.userSig;i.login({chat:n,SDKAppID:e,userID:E,userSig:r})},e}();export{e as default};
@@ -0,0 +1 @@
1
+ import{getPlatform as r}from"@tencentcloud/universal-api";var e="pc"===r(),o="h5"===r();export{o as isH5,e as isPC};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tencentcloud/chat-uikit-react",
3
- "version": "1.2.2",
3
+ "version": "2.1.0",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "license": "MIT",
@@ -61,17 +61,18 @@
61
61
  "dependencies": {
62
62
  "date-fns": "^2.29.3",
63
63
  "react-date-picker": "^9.0.0",
64
- "react-dom": "^18.2.0",
65
- "tim-upload-plugin": "^1.0.5"
64
+ "react-dom": "^18.2.0"
66
65
  },
67
66
  "peerDependencies": {
68
67
  "@tencentcloud/chat": "^3.2.0",
69
- "i18next": "^23.7.11",
70
- "react-i18next": "^13.5.0",
68
+ "@tencentcloud/chat-uikit-engine": "latest",
69
+ "@tencentcloud/tui-core": "latest",
70
+ "@tencentcloud/universal-api": "latest",
71
71
  "date-fns": "^2.29.3",
72
+ "i18next": "^23.7.11",
72
73
  "react": "^18.2.0",
73
74
  "react-date-picker": "^9.0.0",
74
- "tim-upload-plugin": "^1.0.5",
75
+ "react-i18next": "^13.5.0",
75
76
  "tslib": "^2.4.1"
76
77
  }
77
78
  }
package/rollup.config.js CHANGED
@@ -19,7 +19,6 @@ const baseConfig = {
19
19
  preserveModulesRoot: './src',
20
20
  dir: './dist/esm/',
21
21
  format: 'esm',
22
- // sourcemap: true,
23
22
  },
24
23
  {
25
24
  preserveModules: true,
@@ -0,0 +1,60 @@
1
+ const fs = require('fs');
2
+ const path = require('path');
3
+ const { execSync } = require('child_process');
4
+
5
+ // Change directory to tuikit/examples/sample-chat
6
+ process.chdir(path.join('examples', 'sample-chat'));
7
+
8
+ // Remove .env file
9
+ fs.unlinkSync('.env');
10
+
11
+ // Remove package.json
12
+ fs.unlinkSync('package.json');
13
+
14
+ // Rename package-github.json to package.json
15
+ fs.renameSync('package-github.json', 'package.json');
16
+
17
+ // Change directory to src
18
+ process.chdir('src');
19
+
20
+ // Remove demo directory
21
+ fs.rmdirSync('demo', { recursive: true });
22
+
23
+ // Rename 'components' directory to 'demo'
24
+ fs.renameSync('components', 'demo');
25
+
26
+ // Remove social-demo to demo
27
+ fs.rmdirSync('social-demo', { recursive: true });
28
+
29
+ // Change directory to live-demo
30
+ process.chdir('live-demo');
31
+
32
+ // Remove live-demo.tsx file
33
+ fs.unlinkSync('live-demo.tsx');
34
+
35
+ // Change directory back to src
36
+ process.chdir('../');
37
+
38
+ // Copy live-demo directory to ../../live-chat/src
39
+ execSync('cp -r live-demo ../../live-chat/src');
40
+
41
+ // Remove live-demo directory
42
+ fs.rmdirSync('live-demo', { recursive: true });
43
+
44
+ // Remove bot-demo directory
45
+ fs.rmdirSync('bot-demo', { recursive: true });
46
+
47
+ // Change directory to debug
48
+ process.chdir('debug');
49
+
50
+ // Replace 20000737 with 0 in GenerateTestUserSig.js
51
+ fs.writeFileSync('GenerateTestUserSig.js', fs.readFileSync('GenerateTestUserSig.js', 'utf8').replace(/20000737/g, '0'));
52
+
53
+ // Change directory back to src
54
+ process.chdir('../');
55
+
56
+ // Change directory to ../../live-chat/src/debug
57
+ process.chdir(path.join('../', '../', 'live-chat', 'src', 'debug'));
58
+
59
+ // Replace 20000737 with 0 in GenerateTestUserSig.js
60
+ fs.writeFileSync('GenerateTestUserSig.js', fs.readFileSync('GenerateTestUserSig.js', 'utf8').replace(/20000737/g, '0'));
@@ -0,0 +1,14 @@
1
+ const fs = require('fs');
2
+ const path = require('path');
3
+ const { execSync } = require('child_process');
4
+
5
+ // Change directory to tuikit/examples/sample-chat
6
+ process.chdir(path.join('examples', 'sample-chat'));
7
+
8
+ // Change directory to src
9
+ process.chdir('src');
10
+ process.chdir('social-demo');
11
+ // Remove file
12
+ fs.unlinkSync('index.tsx');
13
+ // Rename index-intl.tsx to index
14
+ fs.renameSync('index-intl.tsx', 'index.tsx');
@@ -0,0 +1,22 @@
1
+ // npm publish
2
+ const fs = require('fs');
3
+ const path = require('path');
4
+ const os = require('os');
5
+
6
+ let npmToken = '';
7
+ const myArgs = process.argv.slice(2);
8
+ myArgs.forEach((arg) => {
9
+ if (arg.includes('=')) {
10
+ const [key, value] = arg.split('=');
11
+ if (key === 'npmToken' && value) {
12
+ npmToken = value;
13
+ }
14
+ }
15
+ });
16
+ if (!npmToken) {
17
+ console.log('not publish npmToken, cant publish npm');
18
+ } else {
19
+ fs.writeFileSync(path.resolve(os.homedir(), '.npmrc'), `//registry.npmjs.org/:_authToken=${npmToken}`);
20
+ const content = fs.readFileSync(path.resolve(os.homedir(), '.npmrc'), { encoding: 'utf8' });
21
+ console.log('content: ', content);
22
+ }
@@ -3,6 +3,7 @@
3
3
  align-items: center;
4
4
  position: relative;
5
5
  cursor: pointer;
6
+ flex-shrink: 0;
6
7
  &.circle .avatar-image {
7
8
  border-radius: 50%;
8
9
  }
@@ -1,6 +1,7 @@
1
1
  import React, { useState } from 'react';
2
2
  import { useTranslation } from 'react-i18next';
3
- import TencentCloudChat, { Conversation, Profile } from '@tencentcloud/chat';
3
+ import { Conversation, Profile } from '@tencentcloud/chat';
4
+ import { TUIConversationService } from '@tencentcloud/chat-uikit-engine';
4
5
  import { Input } from '../Input';
5
6
  import './styles/ConversationCreatGroupDetail.scss';
6
7
  import { Icon, IconTypes } from '../Icon';
@@ -81,6 +82,8 @@ export function ConversationCreatGroupDetail(props: ConversationCreatGroupDetail
81
82
  name: groupName, type: GroupType[groupType], groupID, avatar, memberList,
82
83
  });
83
84
  setActiveConversation(conversation);
85
+ // 切换会话
86
+ TUIConversationService.switchConversation(conversation?.conversationID);
84
87
  setConversationCreated(false);
85
88
  };
86
89
  return pageState !== PageStateTypes.GROUP_TYPE ? (
@@ -111,9 +114,9 @@ export function ConversationCreatGroupDetail(props: ConversationCreatGroupDetail
111
114
  prefix={<div className="input-group-title">{t('TUIConversation.Group ID')}</div>}
112
115
  />
113
116
  </div>
114
- <div className="create-group-box create-group-type">
117
+ <div className="create-group-box create-group-type" onClick={showGroupTypeInfo}>
115
118
  <Input
116
- disabled
119
+ readOnly
117
120
  border="bottom"
118
121
  customClassName="input-group-text"
119
122
  prefix={<div className="input-group-title">{t('TUIConversation.Group Type')}</div>}
@@ -1,6 +1,9 @@
1
1
  import React, { useRef, useState } from 'react';
2
2
  import { useTranslation } from 'react-i18next';
3
3
  import { Conversation } from '@tencentcloud/chat';
4
+ import {
5
+ TUIConversationService,
6
+ } from '@tencentcloud/chat-uikit-engine';
4
7
  import { Input } from '../Input';
5
8
  import { Icon, IconTypes } from '../Icon';
6
9
  import { ConversationCreateSelectView, ConversationCreateSelectViewProps } from './ConversationCreateSelectView';
@@ -80,6 +83,7 @@ export function ConversationCreateUserSelectList(props: ConversationCreateUserSe
80
83
  const conversation = await createConversation(`C2C${userID}`);
81
84
  setConversationCreated(false);
82
85
  setActiveConversation(conversation);
86
+ TUIConversationService.switchConversation(conversation?.conversationID);
83
87
  };
84
88
  const next = () => {
85
89
  if (selectList && selectList.length === 0) {
@@ -127,7 +131,7 @@ export function ConversationCreateUserSelectList(props: ConversationCreateUserSe
127
131
  }}
128
132
  >
129
133
  <Avatar size={30} image={avatar || defaultUserAvatar} />
130
- <div className="tui-user-name">{nick || `${userID}` }</div>
134
+ <div className="tui-user-name text-ellipsis">{nick || `${userID}` }</div>
131
135
  {isCreateGroup && (
132
136
  <input
133
137
  onChange={(e) => {
@@ -80,8 +80,13 @@ export const useConversationCreate = (
80
80
  ({ nick, userID }) => {
81
81
  const tempNick = nick.toLocaleLowerCase();
82
82
  const tempSearchValue = searchValue.toLocaleLowerCase();
83
- const includes = tempNick
84
- ? tempNick.includes(tempSearchValue) : userID.includes(tempSearchValue);
83
+ const userIDValue = userID.toLocaleLowerCase();
84
+ let includes;
85
+ if (process.env?.REACT_APP_ONLINE === 'TencentCloudDemo') {
86
+ includes = tempNick ? tempNick.includes(tempSearchValue) : userIDValue.includes(tempSearchValue);
87
+ } else {
88
+ includes = userIDValue === tempSearchValue;
89
+ }
85
90
  isIncludes = isIncludes || includes;
86
91
  return includes;
87
92
  },
@@ -2,6 +2,7 @@
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  padding: 0 10px;
5
+ overflow-y: scroll;
5
6
 
6
7
  .group-type-info-box {
7
8
  display: flex;
@@ -34,6 +34,8 @@
34
34
  font-family: PingFangSC-Medium;
35
35
  line-height: 20px;
36
36
  color: #000000;
37
+ width: 80%;
38
+ text-align: left;
37
39
  &.active {
38
40
  font-weight: 600;
39
41
  font-size: 14px;
@@ -30,6 +30,8 @@ export interface ConversationPreviewProps {
30
30
  setActiveConversation?: TUIKitContextValue['setActiveConversation'],
31
31
  searchValue?: string,
32
32
  conversationUpdateCount?: number
33
+ activeConversationID?: string,
34
+ setActiveConversationID?: (conversationID: string) => void,
33
35
  }
34
36
  export function ConversationPreview<T extends ConversationPreviewProps>(
35
37
  props: T,
@@ -1,6 +1,9 @@
1
- import React, { useRef, useState } from 'react';
1
+ import React, { useRef, useState, useEffect } from 'react';
2
2
  import { useTranslation } from 'react-i18next';
3
+ import { TUIConversationService } from '@tencentcloud/chat-uikit-engine';
4
+ import { isPC } from '../../utils/env';
3
5
  import { ConversationPreviewUIComponentProps } from './ConversationPreview';
6
+
4
7
  import { Avatar as DefaultAvatar } from '../Avatar/index';
5
8
  import './styles/index.scss';
6
9
  import { Icon, IconTypes } from '../Icon';
@@ -20,16 +23,23 @@ export function unMemoConversationPreviewContent<T extends ConversationPreviewUI
20
23
  displayTime,
21
24
  unread,
22
25
  active,
26
+ activeConversationID,
27
+ setActiveConversationID,
23
28
  setActiveConversation,
24
29
  } = props;
25
30
 
26
31
  const { t } = useTranslation();
27
32
  const conversationPreviewButton = useRef<HTMLButtonElement | null>(null);
33
+ const { chat, conversation: activeConversation } = useTUIKitContext('ConversationPreviewContent');
34
+ const { pinConversation, deleteConversation } = useConversation(chat);
28
35
  const activeClass = active ? 'conversation-preview-content--active' : '';
29
36
  const unreadClass = unread && unread >= 1 ? 'conversation-preview-content--unread' : '';
30
37
  const pinClass = conversation.isPinned ? 'conversation-preview-content--pin' : '';
31
38
  const [isHover, setIsHover] = useState(false);
39
+ const pluginsRef = useRef(null);
40
+
32
41
  const onSelectConversation = () => {
42
+ TUIConversationService.switchConversation(conversation?.conversationID);
33
43
  if (setActiveConversation) {
34
44
  setActiveConversation(conversation);
35
45
  }
@@ -43,10 +53,46 @@ export function unMemoConversationPreviewContent<T extends ConversationPreviewUI
43
53
  const handleMouseLeave = () => {
44
54
  setIsHover(false);
45
55
  };
46
- const { chat, conversation: activeConversation } = useTUIKitContext('ConversationPreviewContent');
47
- const { pinConversation, deleteConversation } = useConversation(chat);
48
- const moreHandle = (type: string) => {
56
+ useEffect(() => {
57
+ if (activeConversationID !== conversation.conversationID) {
58
+ setIsHover(false);
59
+ }
60
+ }, [activeConversationID]);
61
+ // h5 long press
62
+ let timer: any;
63
+ const handleH5LongPress = (type: string) => {
64
+ if (isPC) return;
65
+ const { conversationID } = conversation;
66
+ setActiveConversationID(conversationID);
67
+ function longPressHandler() {
68
+ clearTimeout(timer);
69
+ setIsHover(true);
70
+ }
71
+ function touchStartHandler() {
72
+ timer = setTimeout(longPressHandler, 500);
73
+ }
74
+ function touchEndHandler() {
75
+ clearTimeout(timer);
76
+ }
77
+ switch (type) {
78
+ case 'touchstart':
79
+ touchStartHandler();
80
+ break;
81
+ case 'touchend':
82
+ touchEndHandler();
83
+ setTimeout(() => {
84
+ // setIsHover(false);
85
+ }, 200);
86
+ break;
87
+ default:
88
+ }
89
+ };
90
+
91
+ const moreHandle = (e: any, type: string) => {
49
92
  const { conversationID, isPinned } = conversation;
93
+ e.stopPropagation();
94
+ setIsHover(false);
95
+ pluginsRef.current.closeMore();
50
96
  switch (type) {
51
97
  case 'pin':
52
98
  pinConversation({ conversationID, isPinned: !isPinned });
@@ -60,6 +106,7 @@ export function unMemoConversationPreviewContent<T extends ConversationPreviewUI
60
106
  default:
61
107
  }
62
108
  };
109
+
63
110
  return (
64
111
  <button
65
112
  type="button"
@@ -69,13 +116,15 @@ export function unMemoConversationPreviewContent<T extends ConversationPreviewUI
69
116
  onClick={onSelectConversation}
70
117
  onMouseEnter={handleMouseEnter}
71
118
  onMouseLeave={handleMouseLeave}
119
+ onTouchStart={() => handleH5LongPress('touchstart')}
120
+ onTouchEnd={() => handleH5LongPress('touchend')}
72
121
  ref={conversationPreviewButton}
73
122
  >
74
123
  <div className="avatar">
75
124
  <Avatar image={displayImage} name={displayTitle} size={40} />
76
125
  </div>
77
126
  <div className="content">
78
- <div className="title">
127
+ <div className="title text-ellipsis">
79
128
  {displayTitle}
80
129
  </div>
81
130
  <div className="message">
@@ -94,13 +143,13 @@ export function unMemoConversationPreviewContent<T extends ConversationPreviewUI
94
143
  <div className={`${isHover ? 'more--hover' : 'more'}`}>
95
144
  <Plugins
96
145
  customClass="more-handle-box"
146
+ ref={pluginsRef}
97
147
  plugins={[
98
148
  <div
99
149
  role="presentation"
100
150
  className="more-handle-item"
101
151
  onClick={(e) => {
102
- e.stopPropagation();
103
- moreHandle('pin');
152
+ moreHandle(e, 'pin');
104
153
  }}
105
154
  >
106
155
  {t(!conversation.isPinned ? 'TUIConversation.Pin' : 'TUIConversation.Unpin')}
@@ -109,8 +158,7 @@ export function unMemoConversationPreviewContent<T extends ConversationPreviewUI
109
158
  className="more-handle-item"
110
159
  style={{ color: '#FF584C' }}
111
160
  onClick={(e) => {
112
- e.stopPropagation();
113
- moreHandle('delete');
161
+ moreHandle(e, 'delete');
114
162
  }}
115
163
  role="presentation"
116
164
  >
@@ -29,6 +29,8 @@ $font-color: #7A7A7A;
29
29
  line-height: 17px;
30
30
  font-family: PingFangSC-Medium;
31
31
  padding: 1px 0;
32
+ width: 100%;
33
+ color: #000;
32
34
  }
33
35
 
34
36
  .message {
@@ -69,8 +71,8 @@ $font-color: #7A7A7A;
69
71
 
70
72
  .more--hover {
71
73
  display: flex;
72
- justify-content: right;
73
-
74
+ justify-content: flex-end;
75
+ flex: 1 1;
74
76
  .icon-more {
75
77
  transform: scale(1.5);
76
78
  &:hover {
@@ -65,6 +65,10 @@ export const getDisplayMessage = (
65
65
  const {
66
66
  fromAccount, nick, nameCard, isRevoked,
67
67
  } = lastMessage;
68
+ let { messageForShow } = lastMessage;
69
+ if (lastMessage.type === TencentCloudChat.TYPES.MSG_CUSTOM && lastMessage.payload?.description) {
70
+ messageForShow = lastMessage.payload.description;
71
+ }
68
72
  let from = '';
69
73
  switch (type) {
70
74
  case TencentCloudChat.TYPES.CONV_GROUP:
@@ -84,7 +88,7 @@ export const getDisplayMessage = (
84
88
  }}
85
89
  >
86
90
  <span>{from}</span>
87
- <span>{lastMessage.isRevoked ? 'recalled a message' : formatEmojiString(lastMessage.messageForShow, 1, language)}</span>
91
+ <span>{lastMessage.isRevoked ? 'recalled a message' : formatEmojiString(messageForShow, 1)}</span>
88
92
  </div>
89
93
  );
90
94
  };
@@ -3,6 +3,7 @@
3
3
  display: flex;
4
4
  max-width: 100%;
5
5
  box-sizing: border-box;
6
+ height: 30px;
6
7
  &-popup{
7
8
  flex: 1;
8
9
  display: flex;
@@ -57,7 +58,7 @@
57
58
  padding: 10px 0;
58
59
  &-list {
59
60
  &-item {
60
- padding: 5px 10px;
61
+ padding: 7px 10px;
61
62
  &:hover {
62
63
  background: #f2f7ff;
63
64
  }
@@ -9,7 +9,7 @@ import IconFileUrl from './images/file.png';
9
9
  import IconAddUrl from './images/add.png';
10
10
  import IconImageUrl from './images/image.png';
11
11
  import IconVideoUrl from './images/video.png';
12
- import IconDocumentUrl from './images/document.png';
12
+ import IconDocumentUrl from './images/files.png';
13
13
  import IconStarUrl from './images/star.png';
14
14
  import IconCopyUrl from './images/copy.png';
15
15
  import IconDelUrl from './images/del.png';
@@ -0,0 +1,6 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M19.6893 18.3914C21.131 16.6584 21.998 14.4305 21.998 12.0001C21.998 6.47721 17.5209 2.00006 11.998 2.00006C6.4752 2.00006 1.99805 6.47721 1.99805 12.0001C1.99805 17.5229 6.4752 22.0001 11.998 22.0001C14.1036 22.0001 16.0571 21.3493 17.6686 20.238C17.6858 20.2471 17.7041 20.2552 17.7233 20.262L19.9382 21.0464C20.2554 21.1587 20.5611 20.853 20.4488 20.5358L19.6893 18.3914Z" fill="#147AFF" style="fill:#147AFF;fill:color(display-p3 0.0784 0.4784 1.0000);fill-opacity:1;"/>
3
+ <circle cx="7.00195" cy="12" r="1.4" fill="white" stroke="#979797" style="fill:white;fill:white;fill-opacity:1;stroke:#979797;stroke:color(display-p3 0.5922 0.5922 0.5922);stroke-opacity:1;" stroke-width="0.2"/>
4
+ <circle cx="12" cy="12" r="1.4" fill="white" stroke="#979797" style="fill:white;fill:white;fill-opacity:1;stroke:#979797;stroke:color(display-p3 0.5922 0.5922 0.5922);stroke-opacity:1;" stroke-width="0.2"/>
5
+ <circle cx="16.998" cy="12" r="1.4" fill="white" stroke="#979797" style="fill:white;fill:white;fill-opacity:1;stroke:#979797;stroke:color(display-p3 0.5922 0.5922 0.5922);stroke-opacity:1;" stroke-width="0.2"/>
6
+ </svg>
@@ -0,0 +1,9 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <mask id="path-1-inside-1_91_53001" fill="white">
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M19.6894 18.3919C21.131 16.659 21.998 14.4311 21.998 12.0007C21.998 6.47788 17.5209 2.00073 11.998 2.00073C6.4752 2.00073 1.99805 6.47788 1.99805 12.0007C1.99805 17.5236 6.4752 22.0007 11.998 22.0007C14.1037 22.0007 16.0574 21.3499 17.6689 20.2385C17.6861 20.2475 17.7042 20.2555 17.7233 20.2623L19.9382 21.0467C20.2554 21.159 20.5611 20.8533 20.4488 20.5361L19.6894 18.3919Z"/>
4
+ </mask>
5
+ <path d="M19.6894 18.3919L18.9207 17.7524L18.5569 18.1897L18.7468 18.7258L19.6894 18.3919ZM17.6689 20.2385L18.1349 19.3537L17.5993 19.0716L17.1011 19.4153L17.6689 20.2385ZM17.7233 20.2623L18.0571 19.3196L18.0571 19.3196L17.7233 20.2623ZM19.9382 21.0467L20.272 20.104H20.272L19.9382 21.0467ZM20.4488 20.5361L19.5062 20.8699V20.8699L20.4488 20.5361ZM20.998 12.0007C20.998 14.1889 20.2184 16.1924 18.9207 17.7524L20.4582 19.0315C22.0437 17.1256 22.998 14.6733 22.998 12.0007H20.998ZM11.998 3.00073C16.9686 3.00073 20.998 7.03017 20.998 12.0007H22.998C22.998 5.9256 18.0732 1.00073 11.998 1.00073V3.00073ZM2.99805 12.0007C2.99805 7.03017 7.02748 3.00073 11.998 3.00073V1.00073C5.92291 1.00073 0.998047 5.9256 0.998047 12.0007H2.99805ZM11.998 21.0007C7.02748 21.0007 2.99805 16.9713 2.99805 12.0007H0.998047C0.998047 18.0759 5.92291 23.0007 11.998 23.0007V21.0007ZM17.1011 19.4153C15.6512 20.4153 13.8945 21.0007 11.998 21.0007V23.0007C14.3129 23.0007 16.4635 22.2846 18.2366 21.0617L17.1011 19.4153ZM18.0571 19.3196C18.0834 19.3289 18.1094 19.3403 18.1349 19.3537L17.2028 21.1233C17.2627 21.1548 17.325 21.1821 17.3895 21.2049L18.0571 19.3196ZM20.272 20.104L18.0571 19.3196L17.3895 21.2049L19.6044 21.9893L20.272 20.104ZM19.5062 20.8699C19.3376 20.3941 19.7962 19.9355 20.272 20.104L19.6044 21.9893C20.7146 22.3825 21.7846 21.3125 21.3914 20.2023L19.5062 20.8699ZM18.7468 18.7258L19.5062 20.8699L21.3914 20.2023L20.6321 18.0581L18.7468 18.7258Z" fill="#666666" style="fill:#666666;fill:color(display-p3 0.4000 0.4000 0.4000);fill-opacity:1;" mask="url(#path-1-inside-1_91_53001)"/>
6
+ <circle cx="7.00195" cy="12.0007" r="1.4" fill="#666666" stroke="#979797" style="fill:#666666;fill:color(display-p3 0.4000 0.4000 0.4000);fill-opacity:1;stroke:#979797;stroke:color(display-p3 0.5922 0.5922 0.5922);stroke-opacity:1;" stroke-width="0.2"/>
7
+ <circle cx="12" cy="12.0007" r="1.4" fill="#666666" stroke="#979797" style="fill:#666666;fill:color(display-p3 0.4000 0.4000 0.4000);fill-opacity:1;stroke:#979797;stroke:color(display-p3 0.5922 0.5922 0.5922);stroke-opacity:1;" stroke-width="0.2"/>
8
+ <circle cx="16.998" cy="12.0007" r="1.4" fill="#666666" stroke="#979797" style="fill:#666666;fill:color(display-p3 0.4000 0.4000 0.4000);fill-opacity:1;stroke:#979797;stroke:color(display-p3 0.5922 0.5922 0.5922);stroke-opacity:1;" stroke-width="0.2"/>
9
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M5.60156 9.00028C5.60156 12.5349 8.46692 15.4003 12.0016 15.4003C15.5362 15.4003 18.4016 12.5349 18.4016 9.00028C18.4016 5.46564 15.5362 2.60028 12.0016 2.60028C8.46692 2.60028 5.60156 5.46564 5.60156 9.00028ZM5.20078 16.4003C3.8753 16.4003 2.80078 17.4748 2.80078 18.8003C2.80078 20.1257 3.87529 21.2003 5.20078 21.2003H18.8008C20.1263 21.2003 21.2008 20.1257 21.2008 18.8003C21.2008 17.4748 20.1263 16.4003 18.8008 16.4003H5.20078Z" fill="#147AFF" style="fill:#147AFF;fill:color(display-p3 0.0784 0.4784 1.0000);fill-opacity:1;"/>
3
+ </svg>
@@ -0,0 +1,6 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <mask id="path-1-inside-1_251_63695" fill="white">
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M5.60156 8.99998C5.60156 12.5346 8.46692 15.4 12.0016 15.4C15.5362 15.4 18.4016 12.5346 18.4016 8.99998C18.4016 5.46534 15.5362 2.59998 12.0016 2.59998C8.46692 2.59998 5.60156 5.46534 5.60156 8.99998ZM5.20078 16.3999C3.8753 16.3999 2.80078 17.4745 2.80078 18.7999C2.80078 20.1254 3.87529 21.1999 5.20078 21.1999H18.8008C20.1263 21.1999 21.2008 20.1254 21.2008 18.7999C21.2008 17.4745 20.1263 16.3999 18.8008 16.3999H5.20078Z"/>
4
+ </mask>
5
+ <path d="M12.0016 14.4C9.01921 14.4 6.60156 11.9823 6.60156 8.99998H4.60156C4.60156 13.0869 7.91464 16.4 12.0016 16.4V14.4ZM17.4016 8.99998C17.4016 11.9823 14.9839 14.4 12.0016 14.4V16.4C16.0885 16.4 19.4016 13.0869 19.4016 8.99998H17.4016ZM12.0016 3.59998C14.9839 3.59998 17.4016 6.01762 17.4016 8.99998H19.4016C19.4016 4.91305 16.0885 1.59998 12.0016 1.59998V3.59998ZM6.60156 8.99998C6.60156 6.01762 9.01921 3.59998 12.0016 3.59998V1.59998C7.91464 1.59998 4.60156 4.91305 4.60156 8.99998H6.60156ZM3.80078 18.7999C3.80078 18.0267 4.42758 17.3999 5.20078 17.3999V15.3999C3.32301 15.3999 1.80078 16.9222 1.80078 18.7999H3.80078ZM5.20078 20.1999C4.42758 20.1999 3.80078 19.5731 3.80078 18.7999H1.80078C1.80078 20.6777 3.32301 22.1999 5.20078 22.1999V20.1999ZM18.8008 20.1999H5.20078V22.1999H18.8008V20.1999ZM20.2008 18.7999C20.2008 19.5731 19.574 20.1999 18.8008 20.1999V22.1999C20.6785 22.1999 22.2008 20.6777 22.2008 18.7999H20.2008ZM18.8008 17.3999C19.574 17.3999 20.2008 18.0267 20.2008 18.7999H22.2008C22.2008 16.9222 20.6786 15.3999 18.8008 15.3999V17.3999ZM5.20078 17.3999H18.8008V15.3999H5.20078V17.3999Z" fill="#666666" style="fill:#666666;fill:color(display-p3 0.4000 0.4000 0.4000);fill-opacity:1;" mask="url(#path-1-inside-1_251_63695)"/>
6
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M8.00008 0C12.4183 0 16 3.57904 16 7.994C16 12.3811 12.4636 15.9425 8.08401 15.9875C7.99958 15.9962 7.91216 16.001 7.82151 16.001C7.4986 16.001 7.22747 15.9736 7.00487 15.9267C3.05622 15.4371 0 12.0723 0 7.994C0 3.57904 3.58176 0 8.00008 0ZM14.7002 6.93839C14.7804 7.31782 14.8331 7.70825 14.8561 8.10711C14.8567 8.06946 14.8571 8.03179 14.8571 7.994C14.8571 7.50047 14.8048 7.01915 14.7056 6.55521C14.7092 6.67455 14.7073 6.80291 14.7002 6.93839ZM1.14288 7.994C1.14288 7.50946 1.19333 7.03672 1.28906 6.58061C1.58518 6.89732 2.28314 6.88985 2.45336 6.41664C2.53779 6.46696 2.63027 6.50587 2.71984 6.54356C2.95338 6.64182 3.1672 6.73178 3.1672 6.99401C3.1672 8.19137 3.20983 9.47505 4.29776 9.49488C4.32839 9.49528 4.90447 9.71321 5.17864 10.4242C5.23807 10.5783 5.40759 10.5392 5.62711 10.4886L5.62713 10.4886C5.75779 10.4585 5.90618 10.4242 6.0596 10.4242C6.17731 10.4242 6.16003 10.5379 6.12387 10.7759C6.09696 10.953 6.0596 11.1989 6.0596 11.5179C6.0596 12.2629 7.66569 13.4099 7.66569 13.4099C7.65825 13.903 7.67849 14.3018 7.71953 14.6203C7.357 14.6136 7.05148 14.6617 6.81145 14.7434C3.5909 14.181 1.14288 11.3733 1.14288 7.994ZM9.21337 14.442C9.49712 14.3674 9.65264 14.4627 9.68819 14.6368C12.0471 14.04 13.9188 12.2217 14.5897 9.89483C14.0622 11.0246 12.9927 11.2912 13.221 10.6254C13.0113 10.2847 12.6891 9.81032 12.3512 9.49488C11.709 8.89481 11.2087 7.8469 13.1633 6.34441C12.7985 5.36833 13.8738 4.56746 14.3169 5.67409C14.3795 5.6804 14.4338 5.70624 14.4804 5.74877C13.5585 3.09172 11.0465 1.17722 8.08199 1.14253C9.54733 1.29592 9.65581 2.72901 8.67032 2.5749C8.64681 2.9241 8.61168 3.39394 8.56928 3.79962C8.52449 4.23017 8.19628 4.32542 7.89368 4.41324C7.69851 4.46988 7.514 4.52343 7.42304 4.66185C7.19649 5.00633 7.84344 5.37281 8.57568 5.20377C8.68207 5.17899 8.6774 5.10455 8.67301 5.03452C8.66933 4.97591 8.66584 4.92039 8.72784 4.89969C9.13104 4.7644 9.63496 4.81672 9.65961 4.88008C9.68995 4.95872 9.463 5.35797 9.14727 5.91339C9.0111 6.15294 8.85841 6.42154 8.70273 6.706C8.61275 6.87054 8.64673 7.12982 8.67659 7.35769C8.69008 7.46064 8.70273 7.55718 8.70273 7.63568C8.70273 9.12893 8.22018 8.25585 7.87962 7.63967C7.73535 7.37864 7.61656 7.16371 7.57073 7.19432C7.47693 7.25684 7.22786 7.19522 6.97982 7.13385C6.78952 7.08676 6.59982 7.03983 6.48129 7.04921C6.34356 7.06027 6.30774 7.20616 6.2725 7.34966C6.23661 7.49581 6.20133 7.63949 6.0596 7.63569C5.73511 7.62789 5.65867 7.57468 5.65014 7.58396C5.6451 7.58943 5.66374 7.61669 5.66897 7.68793C5.67282 7.74063 5.67995 7.81082 5.68872 7.89721C5.71973 8.20241 5.77129 8.70989 5.77129 9.36321C5.77129 9.51736 5.96704 9.46175 6.20599 9.39386C6.37044 9.34714 6.55534 9.29461 6.71097 9.30065C6.99875 9.31129 7.21678 9.47348 7.41309 9.61952C7.51061 9.69207 7.60277 9.76062 7.69546 9.80464C7.94272 9.92223 8.17924 10.145 8.39848 10.3515C8.6464 10.585 8.87222 10.7977 9.06649 10.814C9.24186 10.8291 9.27374 10.9677 9.30445 11.1012C9.33784 11.2464 9.36985 11.3856 9.58353 11.3533C10.1039 11.2757 10.7063 11.9349 10.0225 12.5277C9.56952 12.9207 9.44957 13.4331 9.24108 14.3238C9.23202 14.3625 9.2228 14.4019 9.21337 14.442Z" fill="black" style="fill:black;fill-opacity:1;"/>
3
+ </svg>
@@ -3,9 +3,9 @@
3
3
  position: fixed;
4
4
  z-index: 2;
5
5
  width: 100vw;
6
- height: 100vh;
7
6
  top: 0;
8
7
  left: 0;
8
+ bottom: 0;
9
9
  display: flex;
10
10
  justify-content: center;
11
11
  align-items: center;
@@ -14,6 +14,10 @@
14
14
  font-weight: 600;
15
15
  margin-left: 10px;
16
16
  font-size: 14px;
17
+ text-overflow: ellipsis;
18
+ white-space: nowrap;
19
+ max-width: 200px;
20
+ overflow: hidden;
17
21
  }
18
22
  }
19
23
  }