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,5 @@
1
+ 'use strict';
2
+
3
+ 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";
4
+
5
+ module.exports = img;
@@ -0,0 +1,5 @@
1
+ 'use strict';
2
+
3
+ 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";
4
+
5
+ module.exports = img;
@@ -0,0 +1,5 @@
1
+ 'use strict';
2
+
3
+ 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";
4
+
5
+ module.exports = img;
@@ -0,0 +1,5 @@
1
+ 'use strict';
2
+
3
+ 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";
4
+
5
+ module.exports = img;
@@ -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,210 @@
1
+ 'use strict';
2
+
3
+ var _asyncToGenerator = require('@babel/runtime-corejs3/helpers/esm/asyncToGenerator');
4
+ var _slicedToArray = require('@babel/runtime-corejs3/helpers/esm/slicedToArray');
5
+ var _regeneratorRuntime = require('@babel/runtime-corejs3/regenerator');
6
+ var React = require('react');
7
+ var antd = require('antd');
8
+ var more = require('./image/more.svg.js');
9
+ var context = require('../../../IM/context.js');
10
+ var usehooksTs = require('usehooks-ts');
11
+ var agoraChatUikit = require('agora-chat-uikit');
12
+ var muted = require('./image/muted.svg.js');
13
+ var logout = require('./image/logout.svg.js');
14
+ var _delete = require('./image/delete.svg.js');
15
+ require('./style/index.scss');
16
+
17
+ var OperateBtn = function OperateBtn(props) {
18
+ var conversationId = props.conversationId,
19
+ chatType = props.chatType,
20
+ silent = props.silent;
21
+ var _useContext = React.useContext(context.Context),
22
+ http = _useContext.http;
23
+ var _useConversationConte = agoraChatUikit.useConversationContext(),
24
+ deleteConversation = _useConversationConte.deleteConversation;
25
+ var _useState = React.useState(false),
26
+ _useState2 = _slicedToArray(_useState, 2),
27
+ open = _useState2[0],
28
+ setOpen = _useState2[1];
29
+ var _Modal$useModal = antd.Modal.useModal(),
30
+ _Modal$useModal2 = _slicedToArray(_Modal$useModal, 2),
31
+ modal = _Modal$useModal2[0],
32
+ contextHolder = _Modal$useModal2[1];
33
+ var handleMuted = React.useCallback(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
34
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
35
+ while (1) switch (_context.prev = _context.next) {
36
+ case 0:
37
+ if (silent) {
38
+ agoraChatUikit.rootStore === null || agoraChatUikit.rootStore === void 0 || agoraChatUikit.rootStore.conversationStore.clearRemindTypeForConversation({
39
+ chatType: chatType,
40
+ conversationId: conversationId
41
+ });
42
+ } else {
43
+ agoraChatUikit.rootStore === null || agoraChatUikit.rootStore === void 0 || agoraChatUikit.rootStore.conversationStore.setSilentModeForConversation({
44
+ chatType: chatType,
45
+ conversationId: conversationId
46
+ });
47
+ }
48
+ setOpen(false);
49
+ case 2:
50
+ case "end":
51
+ return _context.stop();
52
+ }
53
+ }, _callee);
54
+ })), [chatType, conversationId, silent]);
55
+ var handleDebounceMuted = usehooksTs.useDebounceCallback(handleMuted, 100);
56
+ var handleConfirmDelete = /*#__PURE__*/function () {
57
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
58
+ return _regeneratorRuntime.wrap(function _callee2$(_context2) {
59
+ while (1) switch (_context2.prev = _context2.next) {
60
+ case 0:
61
+ setOpen(false);
62
+ _context2.next = 3;
63
+ return modal.confirm({
64
+ content: /*#__PURE__*/React.createElement("span", {
65
+ className: "text-sm "
66
+ }, "Are you sure you want to delete ?"),
67
+ footer: /*#__PURE__*/React.createElement("div", {
68
+ className: "yuze-confirm-footer flex justify-center gap-5 mt-4"
69
+ }, /*#__PURE__*/React.createElement(antd.Button, {
70
+ type: "default",
71
+ className: "flex-1 bg-transparent",
72
+ size: "large",
73
+ onClick: function onClick() {
74
+ antd.Modal.destroyAll();
75
+ }
76
+ }, "Close"), /*#__PURE__*/React.createElement(antd.Button, {
77
+ type: "primary",
78
+ className: "flex-1",
79
+ size: "large",
80
+ onClick: handleDebounceDelete
81
+ }, "Confirm"))
82
+ });
83
+ case 3:
84
+ case "end":
85
+ return _context2.stop();
86
+ }
87
+ }, _callee2);
88
+ }));
89
+ return function handleConfirmDelete() {
90
+ return _ref2.apply(this, arguments);
91
+ };
92
+ }();
93
+ var handleConfirmLeave = /*#__PURE__*/function () {
94
+ var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
95
+ return _regeneratorRuntime.wrap(function _callee3$(_context3) {
96
+ while (1) switch (_context3.prev = _context3.next) {
97
+ case 0:
98
+ setOpen(false);
99
+ _context3.next = 3;
100
+ return modal.confirm({
101
+ content: /*#__PURE__*/React.createElement("span", {
102
+ className: "text-sm "
103
+ }, "Are you sure you want to delete and leave the group ?"),
104
+ footer: /*#__PURE__*/React.createElement("div", {
105
+ className: "yuze-confirm-footer flex justify-center gap-5 mt-4"
106
+ }, /*#__PURE__*/React.createElement(antd.Button, {
107
+ type: "default",
108
+ className: "flex-1 bg-transparent",
109
+ size: "large",
110
+ onClick: function onClick() {
111
+ antd.Modal.destroyAll();
112
+ }
113
+ }, "Close"), /*#__PURE__*/React.createElement(antd.Button, {
114
+ type: "primary",
115
+ className: "flex-1",
116
+ size: "large",
117
+ onClick: handleDebounceLeave
118
+ }, "Confirm"))
119
+ });
120
+ case 3:
121
+ case "end":
122
+ return _context3.stop();
123
+ }
124
+ }, _callee3);
125
+ }));
126
+ return function handleConfirmLeave() {
127
+ return _ref3.apply(this, arguments);
128
+ };
129
+ }();
130
+ var handleLeave = React.useCallback(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {
131
+ return _regeneratorRuntime.wrap(function _callee4$(_context4) {
132
+ while (1) switch (_context4.prev = _context4.next) {
133
+ case 0:
134
+ _context4.next = 2;
135
+ return http.post("/capi/account/imchannel/exitchannel", {
136
+ sendbirdid: conversationId
137
+ });
138
+ case 2:
139
+ deleteConversation({
140
+ conversationId: conversationId,
141
+ chatType: chatType
142
+ });
143
+ antd.Modal.destroyAll();
144
+ case 4:
145
+ case "end":
146
+ return _context4.stop();
147
+ }
148
+ }, _callee4);
149
+ })), [chatType, conversationId, deleteConversation, http]);
150
+ var handleDebounceLeave = usehooksTs.useDebounceCallback(handleLeave, 100);
151
+ var handleDelete = React.useCallback(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5() {
152
+ return _regeneratorRuntime.wrap(function _callee5$(_context5) {
153
+ while (1) switch (_context5.prev = _context5.next) {
154
+ case 0:
155
+ deleteConversation({
156
+ conversationId: conversationId,
157
+ chatType: chatType
158
+ });
159
+ antd.Modal.destroyAll();
160
+ case 2:
161
+ case "end":
162
+ return _context5.stop();
163
+ }
164
+ }, _callee5);
165
+ })), [chatType, conversationId, deleteConversation]);
166
+ var handleDebounceDelete = usehooksTs.useDebounceCallback(handleDelete, 100);
167
+ return /*#__PURE__*/React.createElement(antd.Tooltip, {
168
+ placement: "bottomRight",
169
+ open: open,
170
+ title: /*#__PURE__*/React.createElement("div", {
171
+ className: "flex flex-col"
172
+ }, /*#__PURE__*/React.createElement("div", {
173
+ className: "yuze-conversationList-header-right-tooltip-item flex flex-row items-center gap-3 cursor-pointer",
174
+ onClick: handleDebounceMuted
175
+ }, /*#__PURE__*/React.createElement("img", {
176
+ src: muted,
177
+ alt: "",
178
+ className: "yuze-conversationItem-action-img"
179
+ }), /*#__PURE__*/React.createElement("span", {
180
+ className: "text-sm"
181
+ }, silent ? "Unmuted" : "Muted")), chatType === "groupChat" && /*#__PURE__*/React.createElement("div", {
182
+ className: "yuze-conversationList-header-right-tooltip-item flex flex-row items-center gap-3 cursor-pointer",
183
+ onClick: handleConfirmLeave
184
+ }, /*#__PURE__*/React.createElement("img", {
185
+ src: logout,
186
+ alt: "",
187
+ className: "yuze-conversationItem-action-img"
188
+ }), /*#__PURE__*/React.createElement("span", {
189
+ className: "text-sm"
190
+ }, "Leave Group")), /*#__PURE__*/React.createElement("div", {
191
+ className: "yuze-conversationList-header-right-tooltip-item flex flex-row items-center gap-3 cursor-pointer",
192
+ onClick: handleConfirmDelete
193
+ }, /*#__PURE__*/React.createElement("img", {
194
+ src: _delete,
195
+ alt: "",
196
+ className: "yuze-conversationItem-action-img"
197
+ }), /*#__PURE__*/React.createElement("span", {
198
+ className: "text-sm delete"
199
+ }, "Delete Chat")))
200
+ }, /*#__PURE__*/React.createElement("img", {
201
+ src: more,
202
+ className: "cursor-pointer ml-2 yuze-conversationItem-action-img",
203
+ onClick: function onClick(event) {
204
+ event.stopPropagation();
205
+ setOpen(true);
206
+ }
207
+ }), contextHolder);
208
+ };
209
+
210
+ module.exports = OperateBtn;
@@ -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,105 @@
1
+ 'use strict';
2
+
3
+ var _defineProperty = require('@babel/runtime-corejs3/helpers/esm/defineProperty');
4
+ var _slicedToArray = require('@babel/runtime-corejs3/helpers/esm/slicedToArray');
5
+ var _findInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/find');
6
+ var _JSON$stringify = require('@babel/runtime-corejs3/core-js-stable/json/stringify');
7
+ var _Object$keys = require('@babel/runtime-corejs3/core-js-stable/object/keys');
8
+ var _Object$getOwnPropertySymbols = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
9
+ var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/filter');
10
+ var _Object$getOwnPropertyDescriptor = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor');
11
+ var _forEachInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/for-each');
12
+ var _Object$getOwnPropertyDescriptors = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors');
13
+ var _Object$defineProperties = require('@babel/runtime-corejs3/core-js-stable/object/define-properties');
14
+ var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/object/define-property');
15
+ var React = require('react');
16
+ require('./style/index.scss');
17
+ var agoraChatUikit = require('agora-chat-uikit');
18
+ var context = require('../../IM/context.js');
19
+ var index = require('./OperateBtn/index.js');
20
+
21
+ 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; }
22
+ 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; }
23
+ var CustomConversationItem = function CustomConversationItem(props) {
24
+ var cvs = props.cvs,
25
+ _onClick = props.onClick;
26
+ var _useContext = React.useContext(context.Context),
27
+ http = _useContext.http;
28
+ var _useState = React.useState(""),
29
+ _useState2 = _slicedToArray(_useState, 2),
30
+ avatar = _useState2[0],
31
+ setAvatar = _useState2[1];
32
+ var _useConversationConte = agoraChatUikit.useConversationContext(),
33
+ setCurrentConversation = _useConversationConte.setCurrentConversation;
34
+ cvs.chatType === "groupChat" && agoraChatUikit.rootStore.addressStore.getGroupInfo(cvs.conversationId);
35
+ React.useEffect(function () {
36
+ if (cvs.chatType === "groupChat") {
37
+ var _context;
38
+ var current = _findInstanceProperty(_context = agoraChatUikit.rootStore.addressStore.groups).call(_context, function (item) {
39
+ var _item$info;
40
+ return ((_item$info = item.info) === null || _item$info === void 0 ? void 0 : _item$info.id) === cvs.conversationId;
41
+ });
42
+ if (current) {
43
+ var _current$info;
44
+ var customStr = (_current$info = current.info) === null || _current$info === void 0 ? void 0 : _current$info.custom;
45
+ if (customStr) {
46
+ var custom = JSON.parse(customStr);
47
+ setAvatar(custom.headimgurl);
48
+ } else {
49
+ var _current$info2;
50
+ setAvatar((_current$info2 = current.info) === null || _current$info2 === void 0 ? void 0 : _current$info2.avatar);
51
+ }
52
+ }
53
+ } else {
54
+ var imageUrl = "";
55
+ if (!cvs || !cvs.conversationId) {
56
+ return;
57
+ }
58
+ var appUsersInfo = agoraChatUikit.rootStore.addressStore.appUsersInfo[cvs.conversationId];
59
+ if (!appUsersInfo) {
60
+ agoraChatUikit.rootStore.addressStore.getUserInfo(cvs.conversationId).then(function (value) {
61
+ if (value) {
62
+ var _value$avatarurl;
63
+ console.log(_JSON$stringify(value), "appUserInfo conversationItem");
64
+ imageUrl = (_value$avatarurl = value === null || value === void 0 ? void 0 : value.avatarurl) !== null && _value$avatarurl !== void 0 ? _value$avatarurl : "";
65
+ }
66
+ });
67
+ } else {
68
+ var _appUsersInfo$avataru;
69
+ console.log(_JSON$stringify(appUsersInfo), "appUserInfo conversationItem");
70
+ imageUrl = (_appUsersInfo$avataru = appUsersInfo === null || appUsersInfo === void 0 ? void 0 : appUsersInfo.avatarurl) !== null && _appUsersInfo$avataru !== void 0 ? _appUsersInfo$avataru : "";
71
+ }
72
+ setAvatar(imageUrl);
73
+ }
74
+ }, [cvs, cvs.chatType, cvs.conversationId, http]);
75
+ return /*#__PURE__*/React.createElement(agoraChatUikit.ConversationItem, {
76
+ className: "yuze-conversationItem",
77
+ avatar: /*#__PURE__*/React.createElement("div", {
78
+ className: "yuze-conversationItem-avatar relative"
79
+ }, /*#__PURE__*/React.createElement(agoraChatUikit.Avatar, {
80
+ shape: cvs.chatType === "groupChat" ? "square" : "circle",
81
+ src: avatar,
82
+ style: {
83
+ background: "transparent"
84
+ }
85
+ }), cvs.unreadCount > 0 && /*#__PURE__*/React.createElement("div", {
86
+ className: "text-sm absolute yuze-conversationItem-avatar-notice"
87
+ }, cvs.unreadCount > 99 ? "99+" : cvs.unreadCount)),
88
+ data: _objectSpread({}, cvs),
89
+ moreAction: {
90
+ actions: [],
91
+ visible: true,
92
+ icon: /*#__PURE__*/React.createElement(index, {
93
+ conversationId: cvs.conversationId,
94
+ chatType: cvs.chatType,
95
+ silent: cvs.silent
96
+ })
97
+ },
98
+ onClick: function onClick() {
99
+ _onClick && _onClick();
100
+ setCurrentConversation(_objectSpread({}, cvs));
101
+ }
102
+ });
103
+ };
104
+
105
+ module.exports = CustomConversationItem;
@@ -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,5 @@
1
+ 'use strict';
2
+
3
+ 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";
4
+
5
+ module.exports = img;
@@ -0,0 +1,5 @@
1
+ 'use strict';
2
+
3
+ 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";
4
+
5
+ module.exports = img;
@@ -0,0 +1,5 @@
1
+ 'use strict';
2
+
3
+ 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";
4
+
5
+ module.exports = img;
@@ -0,0 +1,5 @@
1
+ 'use strict';
2
+
3
+ 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";
4
+
5
+ module.exports = img;
@@ -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;