whyuzeim 1.0.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 (247) hide show
  1. package/README.md +11 -0
  2. package/cjs/AddMember/image/ic_close.svg.js +5 -0
  3. package/cjs/AddMember/index.d.ts +7 -0
  4. package/cjs/AddMember/index.js +107 -0
  5. package/cjs/AddMember/style/index.scss +47 -0
  6. package/cjs/ChatBox/JoinGroupDialog/index.d.ts +10 -0
  7. package/cjs/ChatBox/JoinGroupDialog/index.js +102 -0
  8. package/cjs/ChatBox/JoinGroupDialog/style/index.scss +4 -0
  9. package/cjs/ChatBox/image/ic_chat_back.svg.js +5 -0
  10. package/cjs/ChatBox/image/ic_more.svg.js +5 -0
  11. package/cjs/ChatBox/index.d.ts +10 -0
  12. package/cjs/ChatBox/index.js +557 -0
  13. package/cjs/ChatBox/style/index.scss +26 -0
  14. package/cjs/ContactList/index.d.ts +24 -0
  15. package/cjs/ContactList/index.js +64 -0
  16. package/cjs/ContactList/style/index.scss +5 -0
  17. package/cjs/CustomChatView/index.d.ts +9 -0
  18. package/cjs/CustomChatView/index.js +389 -0
  19. package/cjs/Exit/index.d.ts +3 -0
  20. package/cjs/Exit/index.js +17 -0
  21. package/cjs/GroupDetail/GroupDetailEditView/index.d.ts +8 -0
  22. package/cjs/GroupDetail/GroupDetailEditView/index.js +269 -0
  23. package/cjs/GroupDetail/GroupShareView/index.d.ts +10 -0
  24. package/cjs/GroupDetail/GroupShareView/index.js +151 -0
  25. package/cjs/GroupDetail/image/ic_close.svg.js +5 -0
  26. package/cjs/GroupDetail/image/ic_group_edit.svg.js +5 -0
  27. package/cjs/GroupDetail/image/ic_messages.svg.js +5 -0
  28. package/cjs/GroupDetail/image/ic_share.svg.js +5 -0
  29. package/cjs/GroupDetail/image/icon_translation.svg.js +5 -0
  30. package/cjs/GroupDetail/index.d.ts +26 -0
  31. package/cjs/GroupDetail/index.js +265 -0
  32. package/cjs/GroupDetail/style/index.scss +66 -0
  33. package/cjs/IM/DefaultIMLayout/MobileHeader/index.d.ts +11 -0
  34. package/cjs/IM/DefaultIMLayout/MobileHeader/index.js +29 -0
  35. package/cjs/IM/DefaultIMLayout/MobileHeader/style/index.scss +11 -0
  36. package/cjs/IM/DefaultIMLayout/index.d.ts +3 -0
  37. package/cjs/IM/DefaultIMLayout/index.js +29 -0
  38. package/cjs/IM/DefaultIMLayout/style/index.scss +0 -0
  39. package/cjs/IM/MainContent/index.d.ts +8 -0
  40. package/cjs/IM/MainContent/index.js +87 -0
  41. package/cjs/IM/MainContent/style/index.scss +22 -0
  42. package/cjs/IM/MobileHeader/index.d.ts +11 -0
  43. package/cjs/IM/MobileHeader/index.js +29 -0
  44. package/cjs/IM/MobileHeader/style/index.scss +11 -0
  45. package/cjs/IM/context.d.ts +21 -0
  46. package/cjs/IM/context.js +14 -0
  47. package/cjs/IM/encryption.d.ts +22 -0
  48. package/cjs/IM/encryption.js +38 -0
  49. package/cjs/IM/hooks/useGetAgoraToken.d.ts +2 -0
  50. package/cjs/IM/hooks/useGetAgoraToken.js +61 -0
  51. package/cjs/IM/index.d.ts +20 -0
  52. package/cjs/IM/index.js +130 -0
  53. package/cjs/IM/style/index.scss +119 -0
  54. package/cjs/NoData/image/no-data.svg.js +5 -0
  55. package/cjs/NoData/index.d.ts +8 -0
  56. package/cjs/NoData/index.js +22 -0
  57. package/cjs/NoData/style/index.scss +3 -0
  58. package/cjs/Panelbar/index.d.ts +7 -0
  59. package/cjs/Panelbar/style/index.scss +3 -0
  60. package/cjs/Sharebox/index.d.ts +7 -0
  61. package/cjs/Sharebox/index.js +14 -0
  62. package/cjs/Sharebox/style/index.scss +0 -0
  63. package/cjs/Sidebar/CreateGroup/index.d.ts +21 -0
  64. package/cjs/Sidebar/CreateGroup/index.js +188 -0
  65. package/cjs/Sidebar/CreateGroup/style/index.scss +65 -0
  66. package/cjs/Sidebar/CustomConversationItem/OperateBtn/image/delete.svg.js +5 -0
  67. package/cjs/Sidebar/CustomConversationItem/OperateBtn/image/logout.svg.js +5 -0
  68. package/cjs/Sidebar/CustomConversationItem/OperateBtn/image/more.svg.js +5 -0
  69. package/cjs/Sidebar/CustomConversationItem/OperateBtn/image/muted.svg.js +5 -0
  70. package/cjs/Sidebar/CustomConversationItem/OperateBtn/index.d.ts +10 -0
  71. package/cjs/Sidebar/CustomConversationItem/OperateBtn/index.js +210 -0
  72. package/cjs/Sidebar/CustomConversationItem/OperateBtn/style/index.scss +14 -0
  73. package/cjs/Sidebar/CustomConversationItem/index.d.ts +9 -0
  74. package/cjs/Sidebar/CustomConversationItem/index.js +105 -0
  75. package/cjs/Sidebar/CustomConversationItem/style/index.scss +15 -0
  76. package/cjs/Sidebar/GroupList/OperateBtn/image/delete.svg.js +5 -0
  77. package/cjs/Sidebar/GroupList/OperateBtn/image/logout.svg.js +5 -0
  78. package/cjs/Sidebar/GroupList/OperateBtn/image/more.svg.js +5 -0
  79. package/cjs/Sidebar/GroupList/OperateBtn/image/muted.svg.js +5 -0
  80. package/cjs/Sidebar/GroupList/OperateBtn/index.d.ts +11 -0
  81. package/cjs/Sidebar/GroupList/OperateBtn/index.js +238 -0
  82. package/cjs/Sidebar/GroupList/OperateBtn/style/index.scss +14 -0
  83. package/cjs/Sidebar/GroupList/index.d.ts +7 -0
  84. package/cjs/Sidebar/GroupList/index.js +142 -0
  85. package/cjs/Sidebar/GroupList/style/index.scss +40 -0
  86. package/cjs/Sidebar/MobileCreateGroup/index.d.ts +27 -0
  87. package/cjs/Sidebar/MobileCreateGroup/index.js +171 -0
  88. package/cjs/Sidebar/MobileCreateGroup/style/index.scss +14 -0
  89. package/cjs/Sidebar/Searchbox/image/ic_messages.svg.js +5 -0
  90. package/cjs/Sidebar/Searchbox/index.d.ts +31 -0
  91. package/cjs/Sidebar/Searchbox/index.js +152 -0
  92. package/cjs/Sidebar/Searchbox/style/index.scss +29 -0
  93. package/cjs/Sidebar/image/create.svg.js +5 -0
  94. package/cjs/Sidebar/image/group.svg.js +5 -0
  95. package/cjs/Sidebar/image/ic_close.svg.js +5 -0
  96. package/cjs/Sidebar/image/ic_menu.svg.js +5 -0
  97. package/cjs/Sidebar/image/ic_search.svg.js +5 -0
  98. package/cjs/Sidebar/image/message.svg.js +5 -0
  99. package/cjs/Sidebar/image/mobile_create.svg.js +5 -0
  100. package/cjs/Sidebar/index.d.ts +9 -0
  101. package/cjs/Sidebar/index.js +268 -0
  102. package/cjs/Sidebar/style/index.scss +82 -0
  103. package/cjs/TypeItem/OperateBtn/image/admin.svg.js +5 -0
  104. package/cjs/TypeItem/OperateBtn/image/ban.svg.js +5 -0
  105. package/cjs/TypeItem/OperateBtn/image/block.svg.js +5 -0
  106. package/cjs/TypeItem/OperateBtn/image/logout.svg.js +5 -0
  107. package/cjs/TypeItem/OperateBtn/image/more.svg.js +5 -0
  108. package/cjs/TypeItem/OperateBtn/index.d.ts +13 -0
  109. package/cjs/TypeItem/OperateBtn/index.js +198 -0
  110. package/cjs/TypeItem/OperateBtn/style/index.scss +0 -0
  111. package/cjs/TypeItem/index.d.ts +24 -0
  112. package/cjs/TypeItem/index.js +84 -0
  113. package/cjs/TypeItem/style/index.scss +67 -0
  114. package/cjs/UserProfile/image/ic_close.svg.js +5 -0
  115. package/cjs/UserProfile/image/ic_share.svg.js +5 -0
  116. package/cjs/UserProfile/image/icon_translation.svg.js +5 -0
  117. package/cjs/UserProfile/index.d.ts +8 -0
  118. package/cjs/UserProfile/index.js +170 -0
  119. package/cjs/UserProfile/style/index.scss +50 -0
  120. package/cjs/index.d.ts +16 -0
  121. package/cjs/index.js +23 -0
  122. package/cjs/type.d.ts +7 -0
  123. package/cjs/type.js +61 -0
  124. package/es/AddMember/image/ic_close.svg.js +3 -0
  125. package/es/AddMember/index.d.ts +7 -0
  126. package/es/AddMember/index.js +105 -0
  127. package/es/AddMember/style/index.scss +47 -0
  128. package/es/ChatBox/JoinGroupDialog/index.d.ts +10 -0
  129. package/es/ChatBox/JoinGroupDialog/index.js +100 -0
  130. package/es/ChatBox/JoinGroupDialog/style/index.scss +4 -0
  131. package/es/ChatBox/image/ic_chat_back.svg.js +3 -0
  132. package/es/ChatBox/image/ic_more.svg.js +3 -0
  133. package/es/ChatBox/index.d.ts +10 -0
  134. package/es/ChatBox/index.js +555 -0
  135. package/es/ChatBox/style/index.scss +26 -0
  136. package/es/ContactList/index.d.ts +24 -0
  137. package/es/ContactList/index.js +62 -0
  138. package/es/ContactList/style/index.scss +5 -0
  139. package/es/CustomChatView/index.d.ts +9 -0
  140. package/es/CustomChatView/index.js +387 -0
  141. package/es/Exit/index.d.ts +3 -0
  142. package/es/Exit/index.js +15 -0
  143. package/es/GroupDetail/GroupDetailEditView/index.d.ts +8 -0
  144. package/es/GroupDetail/GroupDetailEditView/index.js +267 -0
  145. package/es/GroupDetail/GroupShareView/index.d.ts +10 -0
  146. package/es/GroupDetail/GroupShareView/index.js +149 -0
  147. package/es/GroupDetail/image/ic_close.svg.js +3 -0
  148. package/es/GroupDetail/image/ic_group_edit.svg.js +3 -0
  149. package/es/GroupDetail/image/ic_messages.svg.js +3 -0
  150. package/es/GroupDetail/image/ic_share.svg.js +3 -0
  151. package/es/GroupDetail/image/icon_translation.svg.js +3 -0
  152. package/es/GroupDetail/index.d.ts +26 -0
  153. package/es/GroupDetail/index.js +263 -0
  154. package/es/GroupDetail/style/index.scss +66 -0
  155. package/es/IM/DefaultIMLayout/MobileHeader/index.d.ts +11 -0
  156. package/es/IM/DefaultIMLayout/MobileHeader/index.js +27 -0
  157. package/es/IM/DefaultIMLayout/MobileHeader/style/index.scss +11 -0
  158. package/es/IM/DefaultIMLayout/index.d.ts +3 -0
  159. package/es/IM/DefaultIMLayout/index.js +27 -0
  160. package/es/IM/DefaultIMLayout/style/index.scss +0 -0
  161. package/es/IM/MainContent/index.d.ts +8 -0
  162. package/es/IM/MainContent/index.js +85 -0
  163. package/es/IM/MainContent/style/index.scss +22 -0
  164. package/es/IM/MobileHeader/index.d.ts +11 -0
  165. package/es/IM/MobileHeader/index.js +27 -0
  166. package/es/IM/MobileHeader/style/index.scss +11 -0
  167. package/es/IM/context.d.ts +21 -0
  168. package/es/IM/context.js +12 -0
  169. package/es/IM/encryption.d.ts +22 -0
  170. package/es/IM/encryption.js +34 -0
  171. package/es/IM/hooks/useGetAgoraToken.d.ts +2 -0
  172. package/es/IM/hooks/useGetAgoraToken.js +59 -0
  173. package/es/IM/index.d.ts +20 -0
  174. package/es/IM/index.js +128 -0
  175. package/es/IM/style/index.scss +119 -0
  176. package/es/NoData/image/no-data.svg.js +3 -0
  177. package/es/NoData/index.d.ts +8 -0
  178. package/es/NoData/index.js +20 -0
  179. package/es/NoData/style/index.scss +3 -0
  180. package/es/Panelbar/index.d.ts +7 -0
  181. package/es/Panelbar/style/index.scss +3 -0
  182. package/es/Sharebox/index.d.ts +7 -0
  183. package/es/Sharebox/index.js +12 -0
  184. package/es/Sharebox/style/index.scss +0 -0
  185. package/es/Sidebar/CreateGroup/index.d.ts +21 -0
  186. package/es/Sidebar/CreateGroup/index.js +186 -0
  187. package/es/Sidebar/CreateGroup/style/index.scss +65 -0
  188. package/es/Sidebar/CustomConversationItem/OperateBtn/image/delete.svg.js +3 -0
  189. package/es/Sidebar/CustomConversationItem/OperateBtn/image/logout.svg.js +3 -0
  190. package/es/Sidebar/CustomConversationItem/OperateBtn/image/more.svg.js +3 -0
  191. package/es/Sidebar/CustomConversationItem/OperateBtn/image/muted.svg.js +3 -0
  192. package/es/Sidebar/CustomConversationItem/OperateBtn/index.d.ts +10 -0
  193. package/es/Sidebar/CustomConversationItem/OperateBtn/index.js +208 -0
  194. package/es/Sidebar/CustomConversationItem/OperateBtn/style/index.scss +14 -0
  195. package/es/Sidebar/CustomConversationItem/index.d.ts +9 -0
  196. package/es/Sidebar/CustomConversationItem/index.js +103 -0
  197. package/es/Sidebar/CustomConversationItem/style/index.scss +15 -0
  198. package/es/Sidebar/GroupList/OperateBtn/image/delete.svg.js +3 -0
  199. package/es/Sidebar/GroupList/OperateBtn/image/logout.svg.js +3 -0
  200. package/es/Sidebar/GroupList/OperateBtn/image/more.svg.js +3 -0
  201. package/es/Sidebar/GroupList/OperateBtn/image/muted.svg.js +3 -0
  202. package/es/Sidebar/GroupList/OperateBtn/index.d.ts +11 -0
  203. package/es/Sidebar/GroupList/OperateBtn/index.js +236 -0
  204. package/es/Sidebar/GroupList/OperateBtn/style/index.scss +14 -0
  205. package/es/Sidebar/GroupList/index.d.ts +7 -0
  206. package/es/Sidebar/GroupList/index.js +140 -0
  207. package/es/Sidebar/GroupList/style/index.scss +40 -0
  208. package/es/Sidebar/MobileCreateGroup/index.d.ts +27 -0
  209. package/es/Sidebar/MobileCreateGroup/index.js +169 -0
  210. package/es/Sidebar/MobileCreateGroup/style/index.scss +14 -0
  211. package/es/Sidebar/Searchbox/image/ic_messages.svg.js +3 -0
  212. package/es/Sidebar/Searchbox/index.d.ts +31 -0
  213. package/es/Sidebar/Searchbox/index.js +150 -0
  214. package/es/Sidebar/Searchbox/style/index.scss +29 -0
  215. package/es/Sidebar/image/create.svg.js +3 -0
  216. package/es/Sidebar/image/group.svg.js +3 -0
  217. package/es/Sidebar/image/ic_close.svg.js +3 -0
  218. package/es/Sidebar/image/ic_menu.svg.js +3 -0
  219. package/es/Sidebar/image/ic_search.svg.js +3 -0
  220. package/es/Sidebar/image/message.svg.js +3 -0
  221. package/es/Sidebar/image/mobile_create.svg.js +3 -0
  222. package/es/Sidebar/index.d.ts +9 -0
  223. package/es/Sidebar/index.js +266 -0
  224. package/es/Sidebar/style/index.scss +82 -0
  225. package/es/TypeItem/OperateBtn/image/admin.svg.js +3 -0
  226. package/es/TypeItem/OperateBtn/image/ban.svg.js +3 -0
  227. package/es/TypeItem/OperateBtn/image/block.svg.js +3 -0
  228. package/es/TypeItem/OperateBtn/image/logout.svg.js +3 -0
  229. package/es/TypeItem/OperateBtn/image/more.svg.js +3 -0
  230. package/es/TypeItem/OperateBtn/index.d.ts +13 -0
  231. package/es/TypeItem/OperateBtn/index.js +196 -0
  232. package/es/TypeItem/OperateBtn/style/index.scss +0 -0
  233. package/es/TypeItem/index.d.ts +24 -0
  234. package/es/TypeItem/index.js +82 -0
  235. package/es/TypeItem/style/index.scss +67 -0
  236. package/es/UserProfile/image/ic_close.svg.js +3 -0
  237. package/es/UserProfile/image/ic_share.svg.js +3 -0
  238. package/es/UserProfile/image/icon_translation.svg.js +3 -0
  239. package/es/UserProfile/index.d.ts +8 -0
  240. package/es/UserProfile/index.js +168 -0
  241. package/es/UserProfile/style/index.scss +50 -0
  242. package/es/index.d.ts +16 -0
  243. package/es/index.js +9 -0
  244. package/es/type.d.ts +7 -0
  245. package/es/type.js +58 -0
  246. package/package.json +33 -0
  247. package/types/global.d.ts +10 -0
@@ -0,0 +1,65 @@
1
+ .yuze-createGroup {
2
+ .cui-modal-content {
3
+ background-color: var(--im-modal-backgroundColor);
4
+ border-radius: 20px;
5
+ height: 520px;
6
+ .cui-modal-footer {
7
+ display: none;
8
+ }
9
+ .cui-modal-close {
10
+ display: none;
11
+ }
12
+ .cui-modal-body {
13
+ display: flex;
14
+ }
15
+ }
16
+ &-left-title {
17
+ span {
18
+ color: var(--im-main-fontColor);
19
+ }
20
+ }
21
+ &-left-list {
22
+ height: 380px;
23
+ &::-webkit-scrollbar {
24
+ display: none;
25
+ }
26
+ }
27
+
28
+ &-right-title {
29
+ span {
30
+ color: var(--im-third-fontColor);
31
+ }
32
+ }
33
+ &-right-list {
34
+ height: 380px;
35
+ &-member {
36
+ &-close {
37
+ background-color: rgba(164, 166, 168, 1);
38
+ width: 20px;
39
+ height: 20px;
40
+ border-radius: 100%;
41
+ display: flex;
42
+ align-items: center;
43
+ justify-content: center;
44
+ right: -5px;
45
+ top: 0;
46
+ img {
47
+ width: 15px;
48
+ height: 15px;
49
+ }
50
+ }
51
+ }
52
+ }
53
+ &-right-button {
54
+ button {
55
+ &:nth-child(1) {
56
+ background-color: transparent !important;
57
+ color: var(--im-main-fontColor) !important;
58
+ }
59
+ &:nth-child(2) {
60
+ background-color: var(--im-main-buttonColor) !important;
61
+ color: var(--im-five-fontColor) !important;
62
+ }
63
+ }
64
+ }
65
+ }
@@ -0,0 +1,3 @@
1
+ var img = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg clip-path='url(%23clip0_2112_36478)'%3e%3cpath d='M11.333 3.99967H14.6663V5.33301H13.333V13.9997C13.333 14.3679 13.0345 14.6663 12.6663 14.6663H3.33301C2.96482 14.6663 2.66634 14.3679 2.66634 13.9997V5.33301H1.33301V3.99967H4.66634V1.99967C4.66634 1.63149 4.96482 1.33301 5.33301 1.33301H10.6663C11.0345 1.33301 11.333 1.63149 11.333 1.99967V3.99967ZM11.9997 5.33301H3.99967V13.333H11.9997V5.33301ZM5.99967 7.33301H7.33301V11.333H5.99967V7.33301ZM8.66634 7.33301H9.99967V11.333H8.66634V7.33301ZM5.99967 2.66634V3.99967H9.99967V2.66634H5.99967Z' fill='%23E94359'/%3e%3c/g%3e%3cdefs%3e%3cclipPath id='clip0_2112_36478'%3e%3crect width='16' height='16' fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
2
+
3
+ export { img as default };
@@ -0,0 +1,3 @@
1
+ var img = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M7.99723 2H2V14H8' stroke='white' stroke-width='1.5' stroke-linecap='square'/%3e%3cpath d='M11 11L14 8L11 5' stroke='white' stroke-width='1.5' stroke-linecap='square'/%3e%3cpath d='M5.33301 7.99707H13.5' stroke='white' stroke-width='1.5' stroke-linecap='square' stroke-linejoin='round'/%3e%3c/svg%3e";
2
+
3
+ export { img as default };
@@ -0,0 +1,3 @@
1
+ var img = "data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 3C11.175 3 10.5 3.675 10.5 4.5C10.5 5.325 11.175 6 12 6C12.825 6 13.5 5.325 13.5 4.5C13.5 3.675 12.825 3 12 3ZM12 18C11.175 18 10.5 18.675 10.5 19.5C10.5 20.325 11.175 21 12 21C12.825 21 13.5 20.325 13.5 19.5C13.5 18.675 12.825 18 12 18ZM12 10.5C11.175 10.5 10.5 11.175 10.5 12C10.5 12.825 11.175 13.5 12 13.5C12.825 13.5 13.5 12.825 13.5 12C13.5 11.175 12.825 10.5 12 10.5Z' fill='white'/%3e%3c/svg%3e";
2
+
3
+ export { img as default };
@@ -0,0 +1,3 @@
1
+ var img = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg clip-path='url(%23clip0_2112_36549)'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M2.7497 4.88179C2.67324 5.24253 2.63301 5.61665 2.63301 6.00016V11.9668H1.33301H0.633008V13.3668H1.33301H2.63301H3.33301H5.66124C5.83746 14.4998 6.81732 15.3668 7.99967 15.3668C9.18203 15.3668 10.1619 14.4998 10.3381 13.3668H10.3416L9.08895 11.9668H6.33301H5.63301H4.03301V6.31607L2.7497 4.88179ZM4.29864 2.11382L5.23277 3.15785C5.9474 2.46207 6.92349 2.0335 7.99967 2.0335C10.1904 2.0335 11.9663 3.80943 11.9663 6.00016V10.6836L14.3671 13.3668H14.6663H15.3663V11.9668H14.6663H13.3663V6.00016C13.3663 3.03623 10.9636 0.633496 7.99967 0.633496C6.56484 0.633496 5.26152 1.19658 4.29864 2.11382ZM7.99967 13.9668C7.59559 13.9668 7.24941 13.7189 7.10498 13.3668H8.89437C8.74994 13.7189 8.40376 13.9668 7.99967 13.9668Z' fill='white'/%3e%3cpath d='M2.33301 2.1665L13.6663 14.8332' stroke='white' stroke-width='1.4' stroke-linecap='square'/%3e%3c/g%3e%3cdefs%3e%3cclipPath id='clip0_2112_36549'%3e%3crect width='16' height='16' fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
2
+
3
+ export { img as default };
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ import { ChatType } from "agora-chat-uikit/types/module/types/messageType";
3
+ import "./style/index.scss";
4
+ interface IOperateBtn {
5
+ conversationId: string;
6
+ silent?: boolean;
7
+ chatType: ChatType;
8
+ }
9
+ declare const OperateBtn: React.FC<IOperateBtn>;
10
+ export default OperateBtn;
@@ -0,0 +1,208 @@
1
+ import _asyncToGenerator from '@babel/runtime-corejs3/helpers/esm/asyncToGenerator';
2
+ import _slicedToArray from '@babel/runtime-corejs3/helpers/esm/slicedToArray';
3
+ import _regeneratorRuntime from '@babel/runtime-corejs3/regenerator';
4
+ import React, { useContext, useState, useCallback } from 'react';
5
+ import { Modal, Tooltip, Button } from 'antd';
6
+ import img$3 from './image/more.svg.js';
7
+ import { Context } from '../../../IM/context.js';
8
+ import { useDebounceCallback } from 'usehooks-ts';
9
+ import { useConversationContext, rootStore } from 'agora-chat-uikit';
10
+ import img from './image/muted.svg.js';
11
+ import img$1 from './image/logout.svg.js';
12
+ import img$2 from './image/delete.svg.js';
13
+ import './style/index.scss';
14
+
15
+ var OperateBtn = function OperateBtn(props) {
16
+ var conversationId = props.conversationId,
17
+ chatType = props.chatType,
18
+ silent = props.silent;
19
+ var _useContext = useContext(Context),
20
+ http = _useContext.http;
21
+ var _useConversationConte = useConversationContext(),
22
+ deleteConversation = _useConversationConte.deleteConversation;
23
+ var _useState = useState(false),
24
+ _useState2 = _slicedToArray(_useState, 2),
25
+ open = _useState2[0],
26
+ setOpen = _useState2[1];
27
+ var _Modal$useModal = Modal.useModal(),
28
+ _Modal$useModal2 = _slicedToArray(_Modal$useModal, 2),
29
+ modal = _Modal$useModal2[0],
30
+ contextHolder = _Modal$useModal2[1];
31
+ var handleMuted = useCallback(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
32
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
33
+ while (1) switch (_context.prev = _context.next) {
34
+ case 0:
35
+ if (silent) {
36
+ rootStore === null || rootStore === void 0 || rootStore.conversationStore.clearRemindTypeForConversation({
37
+ chatType: chatType,
38
+ conversationId: conversationId
39
+ });
40
+ } else {
41
+ rootStore === null || rootStore === void 0 || rootStore.conversationStore.setSilentModeForConversation({
42
+ chatType: chatType,
43
+ conversationId: conversationId
44
+ });
45
+ }
46
+ setOpen(false);
47
+ case 2:
48
+ case "end":
49
+ return _context.stop();
50
+ }
51
+ }, _callee);
52
+ })), [chatType, conversationId, silent]);
53
+ var handleDebounceMuted = useDebounceCallback(handleMuted, 100);
54
+ var handleConfirmDelete = /*#__PURE__*/function () {
55
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
56
+ return _regeneratorRuntime.wrap(function _callee2$(_context2) {
57
+ while (1) switch (_context2.prev = _context2.next) {
58
+ case 0:
59
+ setOpen(false);
60
+ _context2.next = 3;
61
+ return modal.confirm({
62
+ content: /*#__PURE__*/React.createElement("span", {
63
+ className: "text-sm "
64
+ }, "Are you sure you want to delete ?"),
65
+ footer: /*#__PURE__*/React.createElement("div", {
66
+ className: "yuze-confirm-footer flex justify-center gap-5 mt-4"
67
+ }, /*#__PURE__*/React.createElement(Button, {
68
+ type: "default",
69
+ className: "flex-1 bg-transparent",
70
+ size: "large",
71
+ onClick: function onClick() {
72
+ Modal.destroyAll();
73
+ }
74
+ }, "Close"), /*#__PURE__*/React.createElement(Button, {
75
+ type: "primary",
76
+ className: "flex-1",
77
+ size: "large",
78
+ onClick: handleDebounceDelete
79
+ }, "Confirm"))
80
+ });
81
+ case 3:
82
+ case "end":
83
+ return _context2.stop();
84
+ }
85
+ }, _callee2);
86
+ }));
87
+ return function handleConfirmDelete() {
88
+ return _ref2.apply(this, arguments);
89
+ };
90
+ }();
91
+ var handleConfirmLeave = /*#__PURE__*/function () {
92
+ var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
93
+ return _regeneratorRuntime.wrap(function _callee3$(_context3) {
94
+ while (1) switch (_context3.prev = _context3.next) {
95
+ case 0:
96
+ setOpen(false);
97
+ _context3.next = 3;
98
+ return modal.confirm({
99
+ content: /*#__PURE__*/React.createElement("span", {
100
+ className: "text-sm "
101
+ }, "Are you sure you want to delete and leave the group ?"),
102
+ footer: /*#__PURE__*/React.createElement("div", {
103
+ className: "yuze-confirm-footer flex justify-center gap-5 mt-4"
104
+ }, /*#__PURE__*/React.createElement(Button, {
105
+ type: "default",
106
+ className: "flex-1 bg-transparent",
107
+ size: "large",
108
+ onClick: function onClick() {
109
+ Modal.destroyAll();
110
+ }
111
+ }, "Close"), /*#__PURE__*/React.createElement(Button, {
112
+ type: "primary",
113
+ className: "flex-1",
114
+ size: "large",
115
+ onClick: handleDebounceLeave
116
+ }, "Confirm"))
117
+ });
118
+ case 3:
119
+ case "end":
120
+ return _context3.stop();
121
+ }
122
+ }, _callee3);
123
+ }));
124
+ return function handleConfirmLeave() {
125
+ return _ref3.apply(this, arguments);
126
+ };
127
+ }();
128
+ var handleLeave = useCallback(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {
129
+ return _regeneratorRuntime.wrap(function _callee4$(_context4) {
130
+ while (1) switch (_context4.prev = _context4.next) {
131
+ case 0:
132
+ _context4.next = 2;
133
+ return http.post("/capi/account/imchannel/exitchannel", {
134
+ sendbirdid: conversationId
135
+ });
136
+ case 2:
137
+ deleteConversation({
138
+ conversationId: conversationId,
139
+ chatType: chatType
140
+ });
141
+ Modal.destroyAll();
142
+ case 4:
143
+ case "end":
144
+ return _context4.stop();
145
+ }
146
+ }, _callee4);
147
+ })), [chatType, conversationId, deleteConversation, http]);
148
+ var handleDebounceLeave = useDebounceCallback(handleLeave, 100);
149
+ var handleDelete = useCallback(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5() {
150
+ return _regeneratorRuntime.wrap(function _callee5$(_context5) {
151
+ while (1) switch (_context5.prev = _context5.next) {
152
+ case 0:
153
+ deleteConversation({
154
+ conversationId: conversationId,
155
+ chatType: chatType
156
+ });
157
+ Modal.destroyAll();
158
+ case 2:
159
+ case "end":
160
+ return _context5.stop();
161
+ }
162
+ }, _callee5);
163
+ })), [chatType, conversationId, deleteConversation]);
164
+ var handleDebounceDelete = useDebounceCallback(handleDelete, 100);
165
+ return /*#__PURE__*/React.createElement(Tooltip, {
166
+ placement: "bottomRight",
167
+ open: open,
168
+ title: /*#__PURE__*/React.createElement("div", {
169
+ className: "flex flex-col"
170
+ }, /*#__PURE__*/React.createElement("div", {
171
+ className: "yuze-conversationList-header-right-tooltip-item flex flex-row items-center gap-3 cursor-pointer",
172
+ onClick: handleDebounceMuted
173
+ }, /*#__PURE__*/React.createElement("img", {
174
+ src: img,
175
+ alt: "",
176
+ className: "yuze-conversationItem-action-img"
177
+ }), /*#__PURE__*/React.createElement("span", {
178
+ className: "text-sm"
179
+ }, silent ? "Unmuted" : "Muted")), chatType === "groupChat" && /*#__PURE__*/React.createElement("div", {
180
+ className: "yuze-conversationList-header-right-tooltip-item flex flex-row items-center gap-3 cursor-pointer",
181
+ onClick: handleConfirmLeave
182
+ }, /*#__PURE__*/React.createElement("img", {
183
+ src: img$1,
184
+ alt: "",
185
+ className: "yuze-conversationItem-action-img"
186
+ }), /*#__PURE__*/React.createElement("span", {
187
+ className: "text-sm"
188
+ }, "Leave Group")), /*#__PURE__*/React.createElement("div", {
189
+ className: "yuze-conversationList-header-right-tooltip-item flex flex-row items-center gap-3 cursor-pointer",
190
+ onClick: handleConfirmDelete
191
+ }, /*#__PURE__*/React.createElement("img", {
192
+ src: img$2,
193
+ alt: "",
194
+ className: "yuze-conversationItem-action-img"
195
+ }), /*#__PURE__*/React.createElement("span", {
196
+ className: "text-sm delete"
197
+ }, "Delete Chat")))
198
+ }, /*#__PURE__*/React.createElement("img", {
199
+ src: img$3,
200
+ className: "cursor-pointer ml-2 yuze-conversationItem-action-img",
201
+ onClick: function onClick(event) {
202
+ event.stopPropagation();
203
+ setOpen(true);
204
+ }
205
+ }), contextHolder);
206
+ };
207
+
208
+ export { OperateBtn as default };
@@ -0,0 +1,14 @@
1
+ .yuze-conversationItem-action-img {
2
+ width: 16px;
3
+ height: 16px;
4
+ }
5
+ .yuze-conversationList-header-right-tooltip-item{
6
+ .delete{
7
+ // color: var(--im-delete-fontColor);
8
+ color: rgba(233, 67, 89, 1);
9
+ }
10
+ .yuze-conversationItem-action-img{
11
+ width: 16px;
12
+ height: 16px;
13
+ }
14
+ }
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import "./style/index.scss";
3
+ import { Conversation } from "agora-chat-uikit";
4
+ interface ICustomConversationItem {
5
+ cvs: Conversation;
6
+ onClick?: () => void;
7
+ }
8
+ declare const CustomConversationItem: React.FC<ICustomConversationItem>;
9
+ export default CustomConversationItem;
@@ -0,0 +1,103 @@
1
+ import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
2
+ import _slicedToArray from '@babel/runtime-corejs3/helpers/esm/slicedToArray';
3
+ import _findInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/find';
4
+ import _JSON$stringify from '@babel/runtime-corejs3/core-js-stable/json/stringify';
5
+ import _Object$keys from '@babel/runtime-corejs3/core-js-stable/object/keys';
6
+ import _Object$getOwnPropertySymbols from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
7
+ import _filterInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/filter';
8
+ import _Object$getOwnPropertyDescriptor from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor';
9
+ import _forEachInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/for-each';
10
+ import _Object$getOwnPropertyDescriptors from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors';
11
+ import _Object$defineProperties from '@babel/runtime-corejs3/core-js-stable/object/define-properties';
12
+ import _Object$defineProperty from '@babel/runtime-corejs3/core-js-stable/object/define-property';
13
+ import React, { useContext, useState, useEffect } from 'react';
14
+ import './style/index.scss';
15
+ import { useConversationContext, rootStore, ConversationItem, Avatar } from 'agora-chat-uikit';
16
+ import { Context } from '../../IM/context.js';
17
+ import OperateBtn from './OperateBtn/index.js';
18
+
19
+ function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
20
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys(Object(t), true)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
21
+ var CustomConversationItem = function CustomConversationItem(props) {
22
+ var cvs = props.cvs,
23
+ _onClick = props.onClick;
24
+ var _useContext = useContext(Context),
25
+ http = _useContext.http;
26
+ var _useState = useState(""),
27
+ _useState2 = _slicedToArray(_useState, 2),
28
+ avatar = _useState2[0],
29
+ setAvatar = _useState2[1];
30
+ var _useConversationConte = useConversationContext(),
31
+ setCurrentConversation = _useConversationConte.setCurrentConversation;
32
+ cvs.chatType === "groupChat" && rootStore.addressStore.getGroupInfo(cvs.conversationId);
33
+ useEffect(function () {
34
+ if (cvs.chatType === "groupChat") {
35
+ var _context;
36
+ var current = _findInstanceProperty(_context = rootStore.addressStore.groups).call(_context, function (item) {
37
+ var _item$info;
38
+ return ((_item$info = item.info) === null || _item$info === void 0 ? void 0 : _item$info.id) === cvs.conversationId;
39
+ });
40
+ if (current) {
41
+ var _current$info;
42
+ var customStr = (_current$info = current.info) === null || _current$info === void 0 ? void 0 : _current$info.custom;
43
+ if (customStr) {
44
+ var custom = JSON.parse(customStr);
45
+ setAvatar(custom.headimgurl);
46
+ } else {
47
+ var _current$info2;
48
+ setAvatar((_current$info2 = current.info) === null || _current$info2 === void 0 ? void 0 : _current$info2.avatar);
49
+ }
50
+ }
51
+ } else {
52
+ var imageUrl = "";
53
+ if (!cvs || !cvs.conversationId) {
54
+ return;
55
+ }
56
+ var appUsersInfo = rootStore.addressStore.appUsersInfo[cvs.conversationId];
57
+ if (!appUsersInfo) {
58
+ rootStore.addressStore.getUserInfo(cvs.conversationId).then(function (value) {
59
+ if (value) {
60
+ var _value$avatarurl;
61
+ console.log(_JSON$stringify(value), "appUserInfo conversationItem");
62
+ imageUrl = (_value$avatarurl = value === null || value === void 0 ? void 0 : value.avatarurl) !== null && _value$avatarurl !== void 0 ? _value$avatarurl : "";
63
+ }
64
+ });
65
+ } else {
66
+ var _appUsersInfo$avataru;
67
+ console.log(_JSON$stringify(appUsersInfo), "appUserInfo conversationItem");
68
+ imageUrl = (_appUsersInfo$avataru = appUsersInfo === null || appUsersInfo === void 0 ? void 0 : appUsersInfo.avatarurl) !== null && _appUsersInfo$avataru !== void 0 ? _appUsersInfo$avataru : "";
69
+ }
70
+ setAvatar(imageUrl);
71
+ }
72
+ }, [cvs, cvs.chatType, cvs.conversationId, http]);
73
+ return /*#__PURE__*/React.createElement(ConversationItem, {
74
+ className: "yuze-conversationItem",
75
+ avatar: /*#__PURE__*/React.createElement("div", {
76
+ className: "yuze-conversationItem-avatar relative"
77
+ }, /*#__PURE__*/React.createElement(Avatar, {
78
+ shape: cvs.chatType === "groupChat" ? "square" : "circle",
79
+ src: avatar,
80
+ style: {
81
+ background: "transparent"
82
+ }
83
+ }), cvs.unreadCount > 0 && /*#__PURE__*/React.createElement("div", {
84
+ className: "text-sm absolute yuze-conversationItem-avatar-notice"
85
+ }, cvs.unreadCount > 99 ? "99+" : cvs.unreadCount)),
86
+ data: _objectSpread({}, cvs),
87
+ moreAction: {
88
+ actions: [],
89
+ visible: true,
90
+ icon: /*#__PURE__*/React.createElement(OperateBtn, {
91
+ conversationId: cvs.conversationId,
92
+ chatType: cvs.chatType,
93
+ silent: cvs.silent
94
+ })
95
+ },
96
+ onClick: function onClick() {
97
+ _onClick && _onClick();
98
+ setCurrentConversation(_objectSpread({}, cvs));
99
+ }
100
+ });
101
+ };
102
+
103
+ export { CustomConversationItem as default };
@@ -0,0 +1,15 @@
1
+ .yuze-conversationItem {
2
+ .cui-conversationItem-nickname-silent {
3
+ right: 20px;
4
+ top: 2px;
5
+ }
6
+ .yuze-conversationItem-avatar{
7
+ .yuze-conversationItem-avatar-notice{
8
+ background-color: var(--im-conversationItem-noticeColor);
9
+ right:-9px;
10
+ top:-5px;
11
+ border-radius: 20px;
12
+ padding: 1px 7px;
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,3 @@
1
+ var img = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg clip-path='url(%23clip0_2112_36478)'%3e%3cpath d='M11.333 3.99967H14.6663V5.33301H13.333V13.9997C13.333 14.3679 13.0345 14.6663 12.6663 14.6663H3.33301C2.96482 14.6663 2.66634 14.3679 2.66634 13.9997V5.33301H1.33301V3.99967H4.66634V1.99967C4.66634 1.63149 4.96482 1.33301 5.33301 1.33301H10.6663C11.0345 1.33301 11.333 1.63149 11.333 1.99967V3.99967ZM11.9997 5.33301H3.99967V13.333H11.9997V5.33301ZM5.99967 7.33301H7.33301V11.333H5.99967V7.33301ZM8.66634 7.33301H9.99967V11.333H8.66634V7.33301ZM5.99967 2.66634V3.99967H9.99967V2.66634H5.99967Z' fill='%23E94359'/%3e%3c/g%3e%3cdefs%3e%3cclipPath id='clip0_2112_36478'%3e%3crect width='16' height='16' fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
2
+
3
+ export { img as default };
@@ -0,0 +1,3 @@
1
+ var img = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M7.99723 2H2V14H8' stroke='white' stroke-width='1.5' stroke-linecap='square'/%3e%3cpath d='M11 11L14 8L11 5' stroke='white' stroke-width='1.5' stroke-linecap='square'/%3e%3cpath d='M5.33301 7.99707H13.5' stroke='white' stroke-width='1.5' stroke-linecap='square' stroke-linejoin='round'/%3e%3c/svg%3e";
2
+
3
+ export { img as default };
@@ -0,0 +1,3 @@
1
+ var img = "data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 3C11.175 3 10.5 3.675 10.5 4.5C10.5 5.325 11.175 6 12 6C12.825 6 13.5 5.325 13.5 4.5C13.5 3.675 12.825 3 12 3ZM12 18C11.175 18 10.5 18.675 10.5 19.5C10.5 20.325 11.175 21 12 21C12.825 21 13.5 20.325 13.5 19.5C13.5 18.675 12.825 18 12 18ZM12 10.5C11.175 10.5 10.5 11.175 10.5 12C10.5 12.825 11.175 13.5 12 13.5C12.825 13.5 13.5 12.825 13.5 12C13.5 11.175 12.825 10.5 12 10.5Z' fill='white'/%3e%3c/svg%3e";
2
+
3
+ export { img as default };
@@ -0,0 +1,3 @@
1
+ var img = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg clip-path='url(%23clip0_2112_36549)'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M2.7497 4.88179C2.67324 5.24253 2.63301 5.61665 2.63301 6.00016V11.9668H1.33301H0.633008V13.3668H1.33301H2.63301H3.33301H5.66124C5.83746 14.4998 6.81732 15.3668 7.99967 15.3668C9.18203 15.3668 10.1619 14.4998 10.3381 13.3668H10.3416L9.08895 11.9668H6.33301H5.63301H4.03301V6.31607L2.7497 4.88179ZM4.29864 2.11382L5.23277 3.15785C5.9474 2.46207 6.92349 2.0335 7.99967 2.0335C10.1904 2.0335 11.9663 3.80943 11.9663 6.00016V10.6836L14.3671 13.3668H14.6663H15.3663V11.9668H14.6663H13.3663V6.00016C13.3663 3.03623 10.9636 0.633496 7.99967 0.633496C6.56484 0.633496 5.26152 1.19658 4.29864 2.11382ZM7.99967 13.9668C7.59559 13.9668 7.24941 13.7189 7.10498 13.3668H8.89437C8.74994 13.7189 8.40376 13.9668 7.99967 13.9668Z' fill='white'/%3e%3cpath d='M2.33301 2.1665L13.6663 14.8332' stroke='white' stroke-width='1.4' stroke-linecap='square'/%3e%3c/g%3e%3cdefs%3e%3cclipPath id='clip0_2112_36549'%3e%3crect width='16' height='16' fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
2
+
3
+ export { img as default };
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ import { ChatType } from "agora-chat-uikit/types/module/types/messageType";
3
+ import "./style/index.scss";
4
+ interface IOperateBtn {
5
+ conversationId: string;
6
+ silent?: boolean;
7
+ chatType: ChatType;
8
+ onDelete?: (conversationId: string) => void;
9
+ }
10
+ declare const OperateBtn: React.FC<IOperateBtn>;
11
+ export default OperateBtn;