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,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,13 @@
1
+ import React from "react";
2
+ interface IOperateBtn {
3
+ userId: string;
4
+ roletype?: number;
5
+ sendbirdid: string;
6
+ isprohibition?: number;
7
+ onRoletype?: (value: number) => void;
8
+ onDelete?: (memberid: string) => void;
9
+ onBlock?: (memberid: string) => void;
10
+ onBan?: (value: number) => void;
11
+ }
12
+ declare const OperateBtn: React.FC<IOperateBtn>;
13
+ export default OperateBtn;
@@ -0,0 +1,198 @@
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 admin = require('./image/admin.svg.js');
10
+ var logout = require('./image/logout.svg.js');
11
+ var block = require('./image/block.svg.js');
12
+ var ban = require('./image/ban.svg.js');
13
+ var context = require('../../IM/context.js');
14
+ var usehooksTs = require('usehooks-ts');
15
+
16
+ var OperateBtn = function OperateBtn(props) {
17
+ var userId = props.userId,
18
+ roletype = props.roletype,
19
+ sendbirdid = props.sendbirdid,
20
+ onRoletype = props.onRoletype,
21
+ onDelete = props.onDelete,
22
+ onBlock = props.onBlock,
23
+ isprohibition = props.isprohibition,
24
+ onBan = props.onBan;
25
+ var _useContext = React.useContext(context.Context),
26
+ http = _useContext.http;
27
+ var _Modal$useModal = antd.Modal.useModal(),
28
+ _Modal$useModal2 = _slicedToArray(_Modal$useModal, 2),
29
+ modal = _Modal$useModal2[0],
30
+ contextHolder = _Modal$useModal2[1];
31
+ var handleUpdateAdmin = React.useCallback(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
32
+ var iroletype;
33
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
34
+ while (1) switch (_context.prev = _context.next) {
35
+ case 0:
36
+ iroletype = roletype === 0 ? 1 : 0;
37
+ http.post("/capi/account/imchannel/updatechanneluserrole", {
38
+ sendbirdid: sendbirdid,
39
+ memberid: userId,
40
+ roletype: iroletype
41
+ });
42
+ onRoletype && onRoletype(iroletype);
43
+ case 3:
44
+ case "end":
45
+ return _context.stop();
46
+ }
47
+ }, _callee);
48
+ })), [http, userId, sendbirdid, onRoletype, roletype]);
49
+ var handleDebounceUpdateAdmin = usehooksTs.useDebounceCallback(handleUpdateAdmin, 100);
50
+ var handleConfirmRemove = /*#__PURE__*/function () {
51
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
52
+ return _regeneratorRuntime.wrap(function _callee2$(_context2) {
53
+ while (1) switch (_context2.prev = _context2.next) {
54
+ case 0:
55
+ _context2.next = 2;
56
+ return modal.confirm({
57
+ content: /*#__PURE__*/React.createElement("span", {
58
+ className: "text-sm "
59
+ }, "Are you sure you want to delete ?"),
60
+ footer: /*#__PURE__*/React.createElement("div", {
61
+ className: "yuze-confirm-footer flex justify-center gap-5 mt-4"
62
+ }, /*#__PURE__*/React.createElement(antd.Button, {
63
+ type: "default",
64
+ className: "flex-1 bg-transparent",
65
+ size: "large",
66
+ onClick: function onClick() {
67
+ antd.Modal.destroyAll();
68
+ }
69
+ }, "Close"), /*#__PURE__*/React.createElement(antd.Button, {
70
+ type: "primary",
71
+ className: "flex-1",
72
+ size: "large",
73
+ onClick: handleDebounceRemoveMember
74
+ }, "Confirm"))
75
+ });
76
+ case 2:
77
+ case "end":
78
+ return _context2.stop();
79
+ }
80
+ }, _callee2);
81
+ }));
82
+ return function handleConfirmRemove() {
83
+ return _ref2.apply(this, arguments);
84
+ };
85
+ }();
86
+ var handleRemoveMember = React.useCallback(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
87
+ return _regeneratorRuntime.wrap(function _callee3$(_context3) {
88
+ while (1) switch (_context3.prev = _context3.next) {
89
+ case 0:
90
+ http.post("/capi/account/imchannel/removeuser", {
91
+ sendbirdid: sendbirdid,
92
+ memberids: [userId]
93
+ });
94
+ onDelete && onDelete(userId);
95
+ case 2:
96
+ case "end":
97
+ return _context3.stop();
98
+ }
99
+ }, _callee3);
100
+ })), [http, sendbirdid, userId, onDelete]);
101
+ var handleDebounceRemoveMember = usehooksTs.useDebounceCallback(handleRemoveMember, 100);
102
+ // /capi/account/imchannelblocks/save
103
+ var handleBlockMember = React.useCallback(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {
104
+ return _regeneratorRuntime.wrap(function _callee4$(_context4) {
105
+ while (1) switch (_context4.prev = _context4.next) {
106
+ case 0:
107
+ http.post("/capi/account/imchannelblocks/save", {
108
+ sendbirdid: sendbirdid,
109
+ userid: userId,
110
+ memo: "xixi"
111
+ });
112
+ onBlock && onBlock(userId);
113
+ case 2:
114
+ case "end":
115
+ return _context4.stop();
116
+ }
117
+ }, _callee4);
118
+ })), [http, sendbirdid, userId, onBlock]);
119
+ var handleDebounceBlockMember = usehooksTs.useDebounceCallback(handleBlockMember, 100);
120
+ var handleBanMember = React.useCallback(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5() {
121
+ var iisprohibition;
122
+ return _regeneratorRuntime.wrap(function _callee5$(_context5) {
123
+ while (1) switch (_context5.prev = _context5.next) {
124
+ case 0:
125
+ iisprohibition = isprohibition === 0 ? 1 : 0;
126
+ http.post("/capi/account/imchannel/updateprohibition", {
127
+ sendbirdid: sendbirdid,
128
+ memberid: userId,
129
+ isprohibition: iisprohibition
130
+ });
131
+ onBan && onBan(iisprohibition);
132
+ case 3:
133
+ case "end":
134
+ return _context5.stop();
135
+ }
136
+ }, _callee5);
137
+ })), [isprohibition, http, sendbirdid, userId, onBan]);
138
+ var handleDebounceBanMember = usehooksTs.useDebounceCallback(handleBanMember, 100);
139
+ return /*#__PURE__*/React.createElement(antd.Tooltip, {
140
+ placement: "bottomLeft",
141
+ title: /*#__PURE__*/React.createElement("div", {
142
+ className: "flex flex-col"
143
+ }, /*#__PURE__*/React.createElement("div", {
144
+ className: "yuze-conversationList-header-right-tooltip-item flex flex-row items-center gap-3 cursor-pointer",
145
+ onClick: handleDebounceUpdateAdmin
146
+ }, /*#__PURE__*/React.createElement("img", {
147
+ src: admin,
148
+ alt: "",
149
+ style: {
150
+ width: "14px",
151
+ height: "14px"
152
+ }
153
+ }), /*#__PURE__*/React.createElement("span", {
154
+ className: "text-sm"
155
+ }, roletype === 1 ? "Remove Admin" : "Set Admin")), /*#__PURE__*/React.createElement("div", {
156
+ className: "yuze-conversationList-header-right-tooltip-item flex flex-row items-center gap-3 cursor-pointer",
157
+ onClick: handleConfirmRemove
158
+ }, /*#__PURE__*/React.createElement("img", {
159
+ src: logout,
160
+ alt: "",
161
+ style: {
162
+ width: "14px",
163
+ height: "14px"
164
+ }
165
+ }), /*#__PURE__*/React.createElement("span", {
166
+ className: "text-sm"
167
+ }, "Remove")), /*#__PURE__*/React.createElement("div", {
168
+ className: "yuze-conversationList-header-right-tooltip-item flex flex-row items-center gap-3 cursor-pointer",
169
+ onClick: handleDebounceBlockMember
170
+ }, /*#__PURE__*/React.createElement("img", {
171
+ src: block,
172
+ alt: "",
173
+ style: {
174
+ width: "14px",
175
+ height: "14px"
176
+ }
177
+ }), /*#__PURE__*/React.createElement("span", {
178
+ className: "text-sm"
179
+ }, "Block")), /*#__PURE__*/React.createElement("div", {
180
+ className: "yuze-conversationList-header-right-tooltip-item flex flex-row items-center gap-3 cursor-pointer",
181
+ onClick: handleDebounceBanMember
182
+ }, /*#__PURE__*/React.createElement("img", {
183
+ src: ban,
184
+ alt: "",
185
+ style: {
186
+ width: "14px",
187
+ height: "14px"
188
+ }
189
+ }), /*#__PURE__*/React.createElement("span", {
190
+ className: "text-sm"
191
+ }, isprohibition == 1 ? "unBan" : "Ban")))
192
+ }, contextHolder, /*#__PURE__*/React.createElement("img", {
193
+ src: more,
194
+ className: "cursor-pointer ml-2"
195
+ }));
196
+ };
197
+
198
+ module.exports = OperateBtn;
File without changes
@@ -0,0 +1,24 @@
1
+ import React from "react";
2
+ import "./style/index.scss";
3
+ export interface ITypeItem {
4
+ name?: string;
5
+ rightNode?: React.ReactElement;
6
+ avatar?: string;
7
+ description?: string;
8
+ type?: "1" | "2";
9
+ roletype?: number;
10
+ groupId?: string;
11
+ onClick?: () => void;
12
+ isSelectable?: boolean;
13
+ onSelected?: () => void;
14
+ onCancel?: () => void;
15
+ isChecked?: boolean;
16
+ userId?: string;
17
+ sendbirdid?: string;
18
+ showMore?: boolean;
19
+ onDelete?: (memberid: string) => void;
20
+ onBlock?: (memberid: string) => void;
21
+ isprohibition?: number;
22
+ }
23
+ declare const TypeItem: React.FC<ITypeItem>;
24
+ export default TypeItem;
@@ -0,0 +1,84 @@
1
+ 'use strict';
2
+
3
+ var _slicedToArray = require('@babel/runtime-corejs3/helpers/esm/slicedToArray');
4
+ var React = require('react');
5
+ var agoraChatUikit = require('agora-chat-uikit');
6
+ var classNames = require('classnames');
7
+ var index = require('./OperateBtn/index.js');
8
+ require('./style/index.scss');
9
+
10
+ var TypeItem = function TypeItem(props) {
11
+ var rightNode = props.rightNode,
12
+ avatar = props.avatar,
13
+ name = props.name,
14
+ description = props.description,
15
+ onClick = props.onClick,
16
+ _props$isSelectable = props.isSelectable,
17
+ isSelectable = _props$isSelectable === void 0 ? false : _props$isSelectable,
18
+ onSelected = props.onSelected,
19
+ onCancel = props.onCancel,
20
+ isChecked = props.isChecked,
21
+ roletype = props.roletype,
22
+ userId = props.userId,
23
+ sendbirdid = props.sendbirdid,
24
+ _props$showMore = props.showMore,
25
+ showMore = _props$showMore === void 0 ? false : _props$showMore,
26
+ onDelete = props.onDelete,
27
+ isprohibition = props.isprohibition,
28
+ onBlock = props.onBlock;
29
+ var _useState = React.useState(roletype),
30
+ _useState2 = _slicedToArray(_useState, 2),
31
+ iroletype = _useState2[0],
32
+ setIRoletype = _useState2[1];
33
+ var _useState3 = React.useState(isprohibition),
34
+ _useState4 = _slicedToArray(_useState3, 2),
35
+ iisprohibition = _useState4[0],
36
+ setIisprohibition = _useState4[1];
37
+ return /*#__PURE__*/React.createElement("div", {
38
+ className: "yuze-typeItem w-full flex flex-row justify-between items-center px-2 cursor-pointer",
39
+ onClick: onClick
40
+ }, /*#__PURE__*/React.createElement("div", {
41
+ className: "yuze-typeItem-left flex flex-row items-center gap-3 flex-1 w-[100px]"
42
+ }, isSelectable && /*#__PURE__*/React.createElement(agoraChatUikit.Checkbox, {
43
+ className: "yuze-typeItem-left-checkbox",
44
+ onChange: function onChange(event) {
45
+ if (event.target.checked) {
46
+ onSelected && onSelected();
47
+ } else {
48
+ onCancel && onCancel();
49
+ }
50
+ },
51
+ checked: isChecked
52
+ }), /*#__PURE__*/React.createElement(agoraChatUikit.Avatar, {
53
+ className: "yuze-typeItem-left-avatar",
54
+ src: avatar
55
+ }), /*#__PURE__*/React.createElement("div", {
56
+ className: "yuze-typeItem-left-information flex flex-col justify-center gap-1 flex-1 min-w-0"
57
+ }, /*#__PURE__*/React.createElement("span", {
58
+ className: "text-base ellipsis"
59
+ }, name), description && /*#__PURE__*/React.createElement("span", {
60
+ className: "text-sm ellipsis"
61
+ }, description)), iroletype !== undefined && iroletype !== 0 && /*#__PURE__*/React.createElement("div", {
62
+ className: classNames("yuze-typeItem-left-remark flex items-center justify-center mr-4", {
63
+ owner: iroletype === 2,
64
+ admin: iroletype === 1
65
+ })
66
+ }, /*#__PURE__*/React.createElement("span", null, iroletype === 2 ? "Owner" : "Admin"))), /*#__PURE__*/React.createElement("div", {
67
+ className: "yuze-TypeItem-right shrink-0 flex items-center justify-center"
68
+ }, rightNode, roletype !== 2 && userId && sendbirdid && showMore && /*#__PURE__*/React.createElement(index, {
69
+ userId: userId,
70
+ roletype: iroletype,
71
+ sendbirdid: sendbirdid,
72
+ isprohibition: iisprohibition,
73
+ onRoletype: function onRoletype(value) {
74
+ setIRoletype(value);
75
+ },
76
+ onBlock: onBlock,
77
+ onDelete: onDelete,
78
+ onBan: function onBan(value) {
79
+ setIisprohibition(value);
80
+ }
81
+ })));
82
+ };
83
+
84
+ module.exports = TypeItem;
@@ -0,0 +1,67 @@
1
+ .yuze-typeItem {
2
+ height: 72px;
3
+ &:hover {
4
+ background-color: rgba(255, 255, 255, 0.05);
5
+ }
6
+ &-right {
7
+ width: 32px;
8
+ height: 32px;
9
+ img {
10
+ width: 24px;
11
+ height: 24px;
12
+ }
13
+ }
14
+ &-left {
15
+ &-checkbox {
16
+ .cui-checkbox--mark {
17
+ width: 20px;
18
+ height: 20px;
19
+ border-radius: 10px;
20
+ background-color: transparent;
21
+ display: flex;
22
+ align-items: center;
23
+ justify-content: center;
24
+ box-shadow: none !important;
25
+ &::after {
26
+ position: relative;
27
+ left: 0;
28
+ right: 0;
29
+ }
30
+ }
31
+ input:checked ~ .cui-checkbox--mark {
32
+ background-color: var(--im-checkbox-backgroundColor);
33
+ border: none;
34
+ }
35
+ }
36
+ &-information {
37
+ span {
38
+ display: block;
39
+ width: 100%;
40
+ &:nth-child(1) {
41
+ color: var(--im-main-fontColor);
42
+ }
43
+ &:nth-child(2) {
44
+ color: var(--im-third-fontColor);
45
+ }
46
+ }
47
+ }
48
+ &-avatar {
49
+ width: 48px;
50
+ height: 48px;
51
+ }
52
+ &-remark {
53
+ border-radius: 5px;
54
+ width: 60px;
55
+ height: 24px;
56
+ text-align: center;
57
+ font-size: 12px;
58
+ color: var(--im-member-remark-fontColor);
59
+ &.owner {
60
+ background-color: var(--im-member-remark-owner-backgroundColor);
61
+ }
62
+ &.admin {
63
+ background-color: var(--im-member-remark-admin-backgroundColor);
64
+ }
65
+ }
66
+ }
67
+ }
@@ -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.0007 10.5865L16.9504 5.63672L18.3646 7.05093L13.4149 12.0007L18.3646 16.9504L16.9504 18.3646L12.0007 13.4149L7.05093 18.3646L5.63672 16.9504L10.5865 12.0007L5.63672 7.05093L7.05093 5.63672L12.0007 10.5865Z' fill='white' fill-opacity='0.4'/%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 fill-rule='evenodd' clip-rule='evenodd' d='M10 16.1634C10.6309 16.0558 11.2963 15.9998 12 15.9998V19.5857C12 20.4766 13.0771 20.9228 13.7071 20.2928L21.2929 12.707C21.6834 12.3165 21.6834 11.6833 21.2929 11.2928L13.7071 3.70701C13.0771 3.07704 12 3.52321 12 4.41412V7.99984C5.92487 7.99984 2 12.9247 2 18.9998C2 19.1334 2.00238 19.2663 2.0071 19.3987C2.03783 20.261 3.10557 20.4916 3.67853 19.8464C5.37683 17.9341 7.39449 16.6078 10 16.1634ZM14 6.82833V8.99984C14 9.55213 13.5523 9.99984 13 9.99984H12C8.04219 9.99984 5.10357 12.6421 4.2521 16.5726C6.33295 14.969 8.85527 13.9998 12 13.9998H13C13.5523 13.9998 14 14.4476 14 14.9998V17.1715L19.1716 11.9999L14 6.82833Z' fill='white' fill-opacity='0.4'/%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='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M2.02273 10C2.02273 5.59427 5.59427 2.02273 10 2.02273C12.7648 2.02273 15.2025 3.42934 16.6342 5.56818H15.3182V7.34091H19.75V2.90909H17.9773V4.39303C16.2134 1.88804 13.2987 0.25 10 0.25C4.61522 0.25 0.25 4.61522 0.25 10H2.02273Z' fill='white' fill-opacity='0.4'/%3e%3cpath d='M9.99995 19.75C15.3847 19.75 19.75 15.3848 19.75 10H17.9772C17.9772 14.4057 14.4057 17.9773 9.99995 17.9773C7.23516 17.9773 4.79749 16.5707 3.36579 14.4318H4.68182V12.6591H0.25V17.0909H2.02273V15.607C3.7866 18.112 6.70132 19.75 9.99995 19.75Z' fill='white' fill-opacity='0.4'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.30758 5.23249L6.40385 13.4225C6.37904 13.5052 6.40799 13.5466 6.49072 13.5466H8.11631C8.19904 13.5466 8.25281 13.5052 8.27763 13.4225L8.74917 11.9458H11.7025L12.1865 13.4225C12.2113 13.5052 12.2651 13.5466 12.3478 13.5466H13.961C14.0437 13.5466 14.0727 13.5052 14.0479 13.4225L11.1938 5.23249C11.1689 5.14976 11.1152 5.1084 11.0324 5.1084H9.4689C9.38617 5.1084 9.3324 5.14976 9.30758 5.23249ZM11.2062 10.3947H9.25795L10.2134 7.44131H10.2507L11.2062 10.3947Z' fill='white' fill-opacity='0.4'/%3e%3c/svg%3e";
4
+
5
+ module.exports = img;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import "./style/index.scss";
3
+ export interface IUserProfile {
4
+ userId: string;
5
+ onClickClose?: () => void;
6
+ }
7
+ declare const UserProfile: React.FC<IUserProfile>;
8
+ export default UserProfile;
@@ -0,0 +1,170 @@
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 classNames = require('classnames');
8
+ var agoraChatUikit = require('agora-chat-uikit');
9
+ var ic_close = require('./image/ic_close.svg.js');
10
+ var ic_share = require('./image/ic_share.svg.js');
11
+ var icon_translation = require('./image/icon_translation.svg.js');
12
+ require('./style/index.scss');
13
+ var context = require('../IM/context.js');
14
+ var index = require('../GroupDetail/GroupShareView/index.js');
15
+
16
+ var UserProfile = function UserProfile(props) {
17
+ var _useState = React.useState(""),
18
+ _useState2 = _slicedToArray(_useState, 2),
19
+ avatar = _useState2[0],
20
+ setAvatar = _useState2[1];
21
+ var _useContext = React.useContext(context.Context),
22
+ http = _useContext.http,
23
+ setRightComponent = _useContext.setRightComponent;
24
+ var _useState3 = React.useState(0),
25
+ _useState4 = _slicedToArray(_useState3, 2),
26
+ isautomatictranslate = _useState4[0],
27
+ setIsautomatictranslate = _useState4[1];
28
+ var getUserInfo = React.useCallback(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
29
+ var imageUrl, cvs, appUsersInfo, _appUsersInfo$avataru, result;
30
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
31
+ while (1) switch (_context.prev = _context.next) {
32
+ case 0:
33
+ imageUrl = "";
34
+ cvs = agoraChatUikit.rootStore.conversationStore.currentCvs;
35
+ if (!(!cvs || !cvs.conversationId)) {
36
+ _context.next = 4;
37
+ break;
38
+ }
39
+ return _context.abrupt("return");
40
+ case 4:
41
+ appUsersInfo = agoraChatUikit.rootStore.addressStore.appUsersInfo[cvs.conversationId];
42
+ if (!appUsersInfo) {
43
+ agoraChatUikit.rootStore.addressStore.getUserInfo(cvs.conversationId).then(function (value) {
44
+ if (value) {
45
+ var _value$avatarurl;
46
+ imageUrl = (_value$avatarurl = value === null || value === void 0 ? void 0 : value.avatarurl) !== null && _value$avatarurl !== void 0 ? _value$avatarurl : "";
47
+ }
48
+ });
49
+ } else {
50
+ imageUrl = (_appUsersInfo$avataru = appUsersInfo === null || appUsersInfo === void 0 ? void 0 : appUsersInfo.avatarurl) !== null && _appUsersInfo$avataru !== void 0 ? _appUsersInfo$avataru : "";
51
+ }
52
+ _context.next = 8;
53
+ return http.post("/capi/account/imchannel/getautomatictranslate", {
54
+ sendbirdid: cvs.conversationId,
55
+ type: 1
56
+ });
57
+ case 8:
58
+ result = _context.sent;
59
+ setIsautomatictranslate(result.data.data.isautomatictranslate);
60
+ setAvatar(imageUrl);
61
+ case 11:
62
+ case "end":
63
+ return _context.stop();
64
+ }
65
+ }, _callee);
66
+ })), []);
67
+ var handleTranslate = React.useCallback(/*#__PURE__*/function () {
68
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(checked) {
69
+ var groupid;
70
+ return _regeneratorRuntime.wrap(function _callee2$(_context2) {
71
+ while (1) switch (_context2.prev = _context2.next) {
72
+ case 0:
73
+ _context2.prev = 0;
74
+ groupid = agoraChatUikit.rootStore.conversationStore.currentCvs.conversationId;
75
+ _context2.next = 4;
76
+ return http.post("/capi/account/imchannel/setautomatictranslate", {
77
+ sendbirdid: groupid,
78
+ type: 1,
79
+ isautomatictranslate: checked ? 1 : 0
80
+ });
81
+ case 4:
82
+ _context2.next = 9;
83
+ break;
84
+ case 6:
85
+ _context2.prev = 6;
86
+ _context2.t0 = _context2["catch"](0);
87
+ console.log(_context2.t0);
88
+ case 9:
89
+ case "end":
90
+ return _context2.stop();
91
+ }
92
+ }, _callee2, null, [[0, 6]]);
93
+ }));
94
+ return function (_x) {
95
+ return _ref2.apply(this, arguments);
96
+ };
97
+ }(), [http]);
98
+ React.useEffect(function () {
99
+ getUserInfo();
100
+ }, [getUserInfo]);
101
+ return /*#__PURE__*/React.createElement("div", {
102
+ className: classNames("yuze-userProfile w-full h-full")
103
+ }, /*#__PURE__*/React.createElement("div", {
104
+ className: classNames("yuze-userProfile-header flex flex-row items-center justify-between")
105
+ }, /*#__PURE__*/React.createElement("div", {
106
+ className: classNames("yuze-userProfile-header-left flex flex-row gap-5")
107
+ }, /*#__PURE__*/React.createElement("img", {
108
+ src: ic_close,
109
+ className: "cursor-pointer",
110
+ onClick: function onClick() {
111
+ if (props.onClickClose) {
112
+ props.onClickClose();
113
+ }
114
+ }
115
+ }), /*#__PURE__*/React.createElement("span", {
116
+ className: "text-base"
117
+ }, "Profile")), /*#__PURE__*/React.createElement("div", {
118
+ className: classNames("yuze-userProfile-header-right")
119
+ }, /*#__PURE__*/React.createElement("img", {
120
+ src: ic_share,
121
+ onClick: function onClick() {
122
+ if (setRightComponent) {
123
+ var _rootStore$conversati;
124
+ setRightComponent(/*#__PURE__*/React.createElement(index, {
125
+ shareObjId: agoraChatUikit.rootStore.conversationStore.currentCvs.conversationId,
126
+ shareObjImageurl: avatar,
127
+ shareObjName: (_rootStore$conversati = agoraChatUikit.rootStore.conversationStore.currentCvs.name) !== null && _rootStore$conversati !== void 0 ? _rootStore$conversati : '',
128
+ onClickClose: function onClickClose() {
129
+ return setRightComponent(undefined);
130
+ }
131
+ }));
132
+ }
133
+ },
134
+ className: "cursor-pointer"
135
+ }))), /*#__PURE__*/React.createElement("div", {
136
+ className: classNames("yuze-userProfile-content flex flex-col items-center justify-between p-4")
137
+ }, /*#__PURE__*/React.createElement("div", {
138
+ className: classNames("yuze-userProfile-content-avatar flex flex-col items-center")
139
+ }, /*#__PURE__*/React.createElement("img", {
140
+ src: avatar,
141
+ alt: ""
142
+ }), /*#__PURE__*/React.createElement("span", {
143
+ className: "text-base mt-1"
144
+ }, agoraChatUikit.rootStore.conversationStore.currentCvs.name)), /*#__PURE__*/React.createElement("div", {
145
+ className: classNames("yuze-userProfile-content-username flex gap-4 w-full mt-10")
146
+ }, /*#__PURE__*/React.createElement("img", {
147
+ src: icon_translation,
148
+ alt: "",
149
+ className: "relative top-1"
150
+ }), /*#__PURE__*/React.createElement("div", {
151
+ className: "flex flex-col"
152
+ }, /*#__PURE__*/React.createElement("span", null, agoraChatUikit.rootStore.conversationStore.currentCvs.name), /*#__PURE__*/React.createElement("span", {
153
+ className: "text-sm"
154
+ }, "Username"))), /*#__PURE__*/React.createElement("div", {
155
+ className: classNames("yuze-userProfile-content-translation flex items-center justify-between w-full mt-4")
156
+ }, /*#__PURE__*/React.createElement("div", {
157
+ className: "flex gap-4 items-center flex-row"
158
+ }, /*#__PURE__*/React.createElement("img", {
159
+ src: icon_translation,
160
+ alt: ""
161
+ }), /*#__PURE__*/React.createElement("span", null, "Enable auto-translation")), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(agoraChatUikit.Switch, {
162
+ checked: isautomatictranslate === 1,
163
+ onChange: function onChange(event) {
164
+ setIsautomatictranslate(event.target.checked ? 1 : 0);
165
+ handleTranslate(event.target.checked);
166
+ }
167
+ })))));
168
+ };
169
+
170
+ module.exports = UserProfile;
@@ -0,0 +1,50 @@
1
+ .yuze-userProfile {
2
+ background-color: var(--im-main-backgroundColor);
3
+ .yuze-userProfile-header {
4
+ height: 64px;
5
+ box-sizing: border-box;
6
+ padding: 0 10px;
7
+ .yuze-userProfile-header-left {
8
+ span {
9
+ color: var(--im-main-fontColor);
10
+ }
11
+ }
12
+ }
13
+ .yuze-userProfile-content {
14
+ .yuze-userProfile-content-avatar {
15
+ img {
16
+ width: 80px;
17
+ height: 80px;
18
+ object-fit: cover;
19
+ }
20
+ span {
21
+ color: var(--im-main-fontColor);
22
+ }
23
+ }
24
+ .yuze-userProfile-content-username {
25
+ img {
26
+ width: 20px;
27
+ height: 20px;
28
+ }
29
+ span {
30
+ color: var(--im-main-fontColor);
31
+
32
+ &:nth-child(2) {
33
+ color: #707579;
34
+ }
35
+ }
36
+ }
37
+ .yuze-userProfile-content-translation {
38
+ img {
39
+ width: 20px;
40
+ height: 20px;
41
+ }
42
+ span {
43
+ color: var(--im-main-fontColor);
44
+ }
45
+ .cui-switch .cui-switch-container-checked {
46
+ background-color: var(--im-main-switchColor);
47
+ }
48
+ }
49
+ }
50
+ }
package/cjs/index.d.ts ADDED
@@ -0,0 +1,16 @@
1
+ export { default as IM } from "./IM";
2
+ export { Context } from './IM/context';
3
+ export type { IIMProps } from "./IM";
4
+ export { default as DefaultIMLayout } from "./IM/DefaultIMLayout";
5
+ export { default as CreateGroup } from "./Sidebar/CreateGroup";
6
+ export type { ICreateGroup } from "./Sidebar/CreateGroup";
7
+ export { default as UserProfile } from "./UserProfile";
8
+ export type { IUserProfile } from "./UserProfile";
9
+ export { default as Sharebox } from "./Sharebox";
10
+ export type { ISharebox } from "./Sharebox";
11
+ export { default as GroupDetail } from "./GroupDetail";
12
+ export type { IGroupDetail } from "./GroupDetail";
13
+ export { default as ChatBox } from './ChatBox';
14
+ export type { IChatbox } from './ChatBox';
15
+ export { default as CustomChatView } from './CustomChatView';
16
+ export type { ICustomChatbox } from './CustomChatView';