fcr-ui-scene 3.4.0 → 3.4.2

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 (709) hide show
  1. package/lib/ scenes/base.d.ts +10 -0
  2. package/lib/ scenes/base.js +75 -0
  3. package/lib/ scenes/main-scene.d.ts +43 -0
  4. package/lib/ scenes/main-scene.js +368 -0
  5. package/lib/ scenes/waiting-scene.d.ts +31 -0
  6. package/lib/ scenes/waiting-scene.js +119 -0
  7. package/lib/base.d.ts +40 -5
  8. package/lib/base.js +237 -22
  9. package/lib/common/device-store.d.ts +12 -22
  10. package/lib/common/device-store.js +154 -247
  11. package/lib/common/device-stream-store.d.ts +4 -22
  12. package/lib/common/device-stream-store.js +113 -297
  13. package/lib/common/event-store.d.ts +10 -35
  14. package/lib/common/event-store.js +13 -64
  15. package/lib/common/room-store.js +4 -4
  16. package/lib/common/security-store.d.ts +26 -44
  17. package/lib/common/security-store.js +372 -329
  18. package/lib/common/type.d.ts +8 -0
  19. package/lib/common/type.js +6 -0
  20. package/lib/creator.d.ts +1 -1
  21. package/lib/creator.js +4 -9
  22. package/lib/electron/app.js +25 -7
  23. package/lib/electron/bootstrap-dev.js +0 -7
  24. package/lib/electron/bootstrap-sdk.js +11 -2
  25. package/lib/electron/injections.d.ts +3 -1
  26. package/lib/electron/injections.js +17 -2
  27. package/lib/electron/logger.d.ts +0 -4
  28. package/lib/electron/logger.js +2 -5
  29. package/lib/electron/main.js +1 -1
  30. package/lib/electron/plugins/devtool-shortcut.js +10 -1
  31. package/lib/electron/plugins/meeting-state.js +1 -1
  32. package/lib/electron/preload.js +3 -1
  33. package/lib/error-fallback.css +62 -0
  34. package/lib/error-fallback.d.ts +2 -0
  35. package/lib/error-fallback.js +19 -0
  36. package/lib/fragments/control-bar/cloud-recording-buttons.js +1 -1
  37. package/lib/fragments/control-bar/control-bar-store.d.ts +1 -44
  38. package/lib/fragments/control-bar/control-bar-store.js +80 -457
  39. package/lib/fragments/control-bar/device/index.js +3 -5
  40. package/lib/fragments/control-bar/index.css +10 -15
  41. package/lib/fragments/control-bar/index.js +0 -24
  42. package/lib/fragments/control-bar/more-actions/index.css +0 -53
  43. package/lib/fragments/control-bar/more-actions/index.js +38 -73
  44. package/lib/fragments/control-bar/security-content/index.css +0 -75
  45. package/lib/fragments/control-bar/security-content/index.js +19 -105
  46. package/lib/fragments/control-bar/share-state-nav/index.js +1 -1
  47. package/lib/fragments/control-bar/view.js +8 -23
  48. package/lib/fragments/live-streaming/store.d.ts +1 -1
  49. package/lib/fragments/live-streaming/store.js +1 -1
  50. package/lib/fragments/live-streaming/view.js +2 -4
  51. package/lib/fragments/share-screen-selection/selection-store.d.ts +1 -1
  52. package/lib/fragments/share-screen-selection/selection-store.js +1 -1
  53. package/lib/fragments/share-screen-selection/view.js +20 -20
  54. package/lib/fragments/toolbar/components/eraser-picker.js +1 -1
  55. package/lib/fragments/toolbar/components/pen-picker.js +1 -1
  56. package/lib/fragments/toolbar/components/shape-picker.js +1 -1
  57. package/lib/fragments/toolbar/components/wrapper.js +1 -1
  58. package/lib/fragments/toolbar/hooks.js +1 -1
  59. package/lib/fragments/toolbar/store.d.ts +1 -1
  60. package/lib/global.css +5 -0
  61. package/lib/index.d.ts +1 -0
  62. package/lib/index.js +7 -4
  63. package/lib/login-confirm-dialog.d.ts +1 -0
  64. package/lib/login-confirm-dialog.js +7 -2
  65. package/lib/modules/Interpreter/action/delete-btn/index.d.ts +2 -2
  66. package/lib/modules/Interpreter/action/edit-btn/index.d.ts +0 -1
  67. package/lib/modules/Interpreter/action/edit-btn/index.js +2 -4
  68. package/lib/modules/Interpreter/action/switch-btn/index.css +3 -0
  69. package/lib/modules/Interpreter/action/switch-btn/index.d.ts +2 -4
  70. package/lib/modules/Interpreter/action/switch-btn/index.js +8 -8
  71. package/lib/modules/Interpreter/dialog-content/index.d.ts +2 -2
  72. package/lib/modules/Interpreter/dialog-content/index.js +4 -4
  73. package/lib/modules/Interpreter/footer/index.css +4 -3
  74. package/lib/modules/Interpreter/index.d.ts +11 -19
  75. package/lib/modules/Interpreter/index.js +23 -24
  76. package/lib/modules/Interpreter/interpreter-list/index.css +5 -1
  77. package/lib/modules/Interpreter/interpreter-list/index.d.ts +1 -0
  78. package/lib/modules/Interpreter/interpreter-list/index.js +3 -1
  79. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.css +0 -6
  80. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.d.ts +2 -2
  81. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.js +3 -3
  82. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.css +1 -3
  83. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.d.ts +2 -7
  84. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.js +66 -92
  85. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/option-Item.d.ts +6 -0
  86. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/option-Item.js +58 -0
  87. package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.d.ts +2 -2
  88. package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.js +2 -2
  89. package/lib/modules/Interpreter/store.d.ts +24 -78
  90. package/lib/modules/Interpreter/store.js +212 -1255
  91. package/lib/modules/Interpreter/type.d.ts +24 -0
  92. package/lib/modules/Interpreter/type.js +12 -0
  93. package/lib/modules/Interpreter/utils.d.ts +8 -0
  94. package/lib/modules/Interpreter/utils.js +81 -0
  95. package/lib/modules/Interpreter/view.d.ts +0 -1
  96. package/lib/modules/Interpreter/view.js +20 -6
  97. package/lib/modules/action-bar/action-bar-collapes-items.d.ts +1 -4
  98. package/lib/modules/action-bar/action-bar-collapes-items.js +14 -31
  99. package/lib/modules/action-bar/apps/useInterpreter.js +4 -2
  100. package/lib/modules/action-bar/chat/index.js +8 -8
  101. package/lib/modules/action-bar/components/apps/app-item/index.css +34 -0
  102. package/lib/modules/action-bar/components/apps/app-item/index.d.ts +3 -0
  103. package/lib/modules/action-bar/components/apps/app-item/index.js +61 -0
  104. package/lib/modules/action-bar/components/apps/appitems.d.ts +3 -0
  105. package/lib/modules/action-bar/components/apps/appitems.js +45 -0
  106. package/lib/modules/action-bar/components/apps/index.css +8 -0
  107. package/lib/modules/action-bar/components/apps/index.d.ts +4 -0
  108. package/lib/modules/action-bar/components/apps/index.js +56 -0
  109. package/lib/modules/action-bar/components/apps/useAppItemOptions.d.ts +9 -0
  110. package/lib/modules/action-bar/components/apps/useAppItemOptions.js +29 -0
  111. package/lib/modules/action-bar/components/apps/useBeautyBackground.d.ts +10 -0
  112. package/lib/modules/action-bar/components/apps/useBeautyBackground.js +36 -0
  113. package/lib/modules/action-bar/components/apps/useInterpreter.d.ts +14 -0
  114. package/lib/modules/action-bar/components/apps/useInterpreter.js +37 -0
  115. package/lib/modules/action-bar/components/apps/useLiveStreaming.d.ts +16 -0
  116. package/lib/modules/action-bar/components/apps/useLiveStreaming.js +41 -0
  117. package/lib/modules/action-bar/components/board/index.d.ts +4 -0
  118. package/lib/modules/action-bar/components/board/index.js +34 -0
  119. package/lib/modules/action-bar/components/breakout-room/index.d.ts +4 -0
  120. package/lib/modules/action-bar/components/breakout-room/index.js +32 -0
  121. package/lib/modules/action-bar/components/chat/index.css +80 -0
  122. package/lib/modules/action-bar/components/chat/index.d.ts +5 -0
  123. package/lib/modules/action-bar/components/chat/index.js +154 -0
  124. package/lib/modules/action-bar/components/collapse/index.d.ts +8 -0
  125. package/lib/modules/action-bar/components/collapse/index.js +222 -0
  126. package/lib/modules/action-bar/components/device/index.css +162 -0
  127. package/lib/modules/action-bar/components/device/index.d.ts +8 -0
  128. package/lib/modules/action-bar/components/device/index.js +611 -0
  129. package/lib/modules/action-bar/components/interpreter/index.d.ts +2 -0
  130. package/lib/modules/action-bar/components/interpreter/index.js +41 -0
  131. package/lib/modules/action-bar/components/item/index.d.ts +9 -0
  132. package/lib/modules/action-bar/components/item/index.js +164 -0
  133. package/lib/modules/action-bar/components/item.d.ts +27 -0
  134. package/lib/modules/action-bar/components/item.js +164 -0
  135. package/lib/modules/action-bar/components/leave/assign-host.d.ts +3 -0
  136. package/lib/modules/action-bar/components/leave/assign-host.js +64 -0
  137. package/lib/modules/action-bar/components/leave/index.css +126 -0
  138. package/lib/modules/action-bar/components/leave/index.d.ts +3 -0
  139. package/lib/modules/action-bar/components/leave/index.js +144 -0
  140. package/lib/modules/action-bar/components/leave/leave-meeting.d.ts +3 -0
  141. package/lib/modules/action-bar/components/leave/leave-meeting.js +153 -0
  142. package/lib/modules/action-bar/components/live-streaming/index.d.ts +4 -0
  143. package/lib/modules/action-bar/components/live-streaming/index.js +39 -0
  144. package/lib/modules/action-bar/components/more/index.css +114 -0
  145. package/lib/modules/action-bar/components/more/index.d.ts +5 -0
  146. package/lib/modules/action-bar/components/more/index.js +87 -0
  147. package/lib/modules/action-bar/components/more/poppover-content.d.ts +5 -0
  148. package/lib/modules/action-bar/components/more/poppover-content.js +423 -0
  149. package/lib/modules/action-bar/components/notification-bar/assets/dome.png +0 -0
  150. package/lib/modules/action-bar/components/notification-bar/assets/fcr_translateswitch.png +0 -0
  151. package/lib/modules/action-bar/components/notification-bar/components/interpreter/index.css +58 -0
  152. package/lib/modules/action-bar/components/notification-bar/components/interpreter/index.d.ts +8 -0
  153. package/lib/modules/action-bar/components/notification-bar/components/interpreter/index.js +100 -0
  154. package/lib/modules/action-bar/components/notification-bar/components/virtual-image/index.css +56 -0
  155. package/lib/modules/action-bar/components/notification-bar/components/virtual-image/index.d.ts +5 -0
  156. package/lib/modules/action-bar/components/notification-bar/components/virtual-image/index.js +33 -0
  157. package/lib/modules/action-bar/components/notification-bar/index.css +74 -0
  158. package/lib/modules/action-bar/components/notification-bar/index.d.ts +2 -0
  159. package/lib/modules/action-bar/components/notification-bar/index.js +99 -0
  160. package/lib/modules/action-bar/components/participants/index.css +21 -0
  161. package/lib/modules/action-bar/components/participants/index.d.ts +5 -0
  162. package/lib/modules/action-bar/components/participants/index.js +83 -0
  163. package/lib/modules/action-bar/components/placement/index.d.ts +4 -0
  164. package/lib/modules/action-bar/components/placement/index.js +18 -0
  165. package/lib/modules/action-bar/components/record/index.css +39 -0
  166. package/lib/modules/action-bar/components/record/index.d.ts +5 -0
  167. package/lib/modules/action-bar/components/record/index.js +166 -0
  168. package/lib/modules/action-bar/components/record/stop-record-dialog.d.ts +3 -0
  169. package/lib/modules/action-bar/components/record/stop-record-dialog.js +48 -0
  170. package/lib/modules/action-bar/components/respond/index.d.ts +4 -0
  171. package/lib/modules/action-bar/components/respond/index.js +32 -0
  172. package/lib/modules/action-bar/components/screen-share/index.d.ts +4 -0
  173. package/lib/modules/action-bar/components/screen-share/index.js +106 -0
  174. package/lib/modules/action-bar/components/screen-share/submenu.d.ts +1 -0
  175. package/lib/modules/action-bar/components/screen-share/submenu.js +177 -0
  176. package/lib/modules/action-bar/components/security/index.d.ts +4 -0
  177. package/lib/modules/action-bar/components/security/index.js +60 -0
  178. package/lib/modules/action-bar/components/settings/index.d.ts +4 -0
  179. package/lib/modules/action-bar/components/settings/index.js +42 -0
  180. package/lib/modules/action-bar/components/smaller/index.d.ts +1 -0
  181. package/lib/modules/action-bar/components/smaller/index.js +52 -0
  182. package/lib/modules/action-bar/components/trigger-input-language-room/fcr_translateswitch.png +0 -0
  183. package/lib/modules/action-bar/components/trigger-input-language-room/index.css +86 -0
  184. package/lib/modules/action-bar/components/trigger-input-language-room/index.d.ts +3 -0
  185. package/lib/modules/action-bar/components/trigger-input-language-room/index.js +215 -0
  186. package/lib/modules/action-bar/components/trigger-output-language/fcr_translateswitch.png +0 -0
  187. package/lib/modules/action-bar/components/trigger-output-language/index.css +86 -0
  188. package/lib/modules/action-bar/components/trigger-output-language/index.d.ts +2 -0
  189. package/lib/modules/action-bar/components/trigger-output-language/index.js +230 -0
  190. package/lib/modules/action-bar/components/trigger-output-language-room/constant.d.ts +10 -0
  191. package/lib/modules/action-bar/components/trigger-output-language-room/constant.js +8 -0
  192. package/lib/modules/action-bar/components/trigger-output-language-room/guide-tooltip/index.css +22 -0
  193. package/lib/modules/action-bar/components/trigger-output-language-room/guide-tooltip/index.d.ts +3 -0
  194. package/lib/modules/action-bar/components/trigger-output-language-room/guide-tooltip/index.js +75 -0
  195. package/lib/modules/action-bar/components/trigger-output-language-room/index.d.ts +8 -0
  196. package/lib/modules/action-bar/components/trigger-output-language-room/index.js +98 -0
  197. package/lib/modules/action-bar/components/trigger-output-language-room/trigger-language-room.d.ts +5 -0
  198. package/lib/modules/action-bar/components/trigger-output-language-room/trigger-language-room.js +66 -0
  199. package/lib/modules/action-bar/components/trigger-output-language-room/trigger-main-room.d.ts +5 -0
  200. package/lib/modules/action-bar/components/trigger-output-language-room/trigger-main-room.js +37 -0
  201. package/lib/modules/action-bar/components/trigger-output-language-room/useChangeOutputRoomTool.d.ts +12 -0
  202. package/lib/modules/action-bar/components/trigger-output-language-room/useChangeOutputRoomTool.js +138 -0
  203. package/lib/modules/action-bar/components/trigger-subscribe-language/guide-tooltip/index.css +22 -0
  204. package/lib/modules/action-bar/components/trigger-subscribe-language/guide-tooltip/index.d.ts +3 -0
  205. package/lib/modules/action-bar/components/trigger-subscribe-language/guide-tooltip/index.js +70 -0
  206. package/lib/modules/action-bar/components/trigger-subscribe-language/index.d.ts +5 -0
  207. package/lib/modules/action-bar/components/trigger-subscribe-language/index.js +209 -0
  208. package/lib/modules/action-bar/device/index.css +2 -7
  209. package/lib/modules/action-bar/device/index.js +24 -22
  210. package/lib/modules/action-bar/enums.d.ts +23 -0
  211. package/lib/modules/action-bar/enums.js +35 -0
  212. package/lib/modules/action-bar/index.css +23 -1
  213. package/lib/modules/action-bar/index.d.ts +36 -26
  214. package/lib/modules/action-bar/index.dev.d.ts +0 -1
  215. package/lib/modules/action-bar/index.dev.js +94 -100
  216. package/lib/modules/action-bar/index.js +46 -18
  217. package/lib/modules/action-bar/leave/assign-host.d.ts +0 -3
  218. package/lib/modules/action-bar/leave/assign-host.js +4 -2
  219. package/lib/modules/action-bar/leave/index.css +0 -10
  220. package/lib/modules/action-bar/leave/index.js +34 -84
  221. package/lib/modules/action-bar/leave/leave-meeting.d.ts +1 -13
  222. package/lib/modules/action-bar/leave/leave-meeting.js +19 -37
  223. package/lib/modules/action-bar/live-streaming/index.js +3 -3
  224. package/lib/modules/action-bar/more/index.js +6 -9
  225. package/lib/modules/action-bar/more/poppover-content.js +16 -37
  226. package/lib/modules/action-bar/notification-bar/components/interpreter/index.css +58 -0
  227. package/lib/modules/action-bar/notification-bar/components/interpreter/index.d.ts +8 -0
  228. package/lib/modules/action-bar/notification-bar/components/interpreter/index.js +100 -0
  229. package/lib/modules/action-bar/notification-bar/components/virtual-image/index.css +56 -0
  230. package/lib/modules/action-bar/notification-bar/components/virtual-image/index.d.ts +5 -0
  231. package/lib/modules/action-bar/notification-bar/components/virtual-image/index.js +33 -0
  232. package/lib/modules/action-bar/notification-bar/dome.png +0 -0
  233. package/lib/modules/action-bar/notification-bar/fcr_translateswitch.png +0 -0
  234. package/lib/modules/action-bar/notification-bar/index.css +74 -0
  235. package/lib/modules/action-bar/notification-bar/index.d.ts +2 -0
  236. package/lib/modules/action-bar/notification-bar/index.js +99 -0
  237. package/lib/modules/action-bar/participants/index.css +0 -12
  238. package/lib/modules/action-bar/participants/index.js +16 -23
  239. package/lib/modules/action-bar/record/index.js +4 -4
  240. package/lib/modules/action-bar/screen-share/index.js +5 -9
  241. package/lib/modules/action-bar/screen-share/submenu.js +26 -20
  242. package/lib/modules/action-bar/security/drop-menu.js +22 -137
  243. package/lib/modules/action-bar/security/index.js +6 -11
  244. package/lib/modules/action-bar/settings/index.js +4 -4
  245. package/lib/modules/action-bar/smaller.js +4 -4
  246. package/lib/modules/action-bar/store.d.ts +84 -99
  247. package/lib/modules/action-bar/store.js +545 -699
  248. package/lib/modules/action-bar/trigger-input-language-room/fcr_translateswitch.png +0 -0
  249. package/lib/modules/action-bar/trigger-input-language-room/index.css +86 -0
  250. package/lib/modules/action-bar/trigger-input-language-room/index.d.ts +15 -0
  251. package/lib/modules/action-bar/trigger-input-language-room/index.js +220 -0
  252. package/lib/modules/action-bar/trigger-output-language-room/constant.d.ts +10 -0
  253. package/lib/modules/action-bar/trigger-output-language-room/constant.js +8 -0
  254. package/lib/modules/action-bar/trigger-output-language-room/guide-tooltip/index.css +22 -0
  255. package/lib/modules/action-bar/trigger-output-language-room/guide-tooltip/index.d.ts +14 -0
  256. package/lib/modules/action-bar/trigger-output-language-room/guide-tooltip/index.js +75 -0
  257. package/lib/modules/action-bar/trigger-output-language-room/index.d.ts +4 -0
  258. package/lib/modules/action-bar/trigger-output-language-room/index.js +98 -0
  259. package/lib/modules/action-bar/trigger-output-language-room/trigger-language-room.d.ts +5 -0
  260. package/lib/modules/action-bar/trigger-output-language-room/trigger-language-room.js +66 -0
  261. package/lib/modules/action-bar/trigger-output-language-room/trigger-main-room.d.ts +5 -0
  262. package/lib/modules/action-bar/trigger-output-language-room/trigger-main-room.js +36 -0
  263. package/lib/modules/action-bar/trigger-output-language-room/useChangeOutputRoomTool.d.ts +12 -0
  264. package/lib/modules/action-bar/trigger-output-language-room/useChangeOutputRoomTool.js +138 -0
  265. package/lib/modules/action-bar/types.d.ts +94 -0
  266. package/lib/modules/action-bar/types.js +6 -0
  267. package/lib/modules/action-bar/view.d.ts +1 -2
  268. package/lib/modules/action-bar/view.js +14 -14
  269. package/lib/modules/audio-stream/index.d.ts +22 -23
  270. package/lib/modules/audio-stream/index.js +79 -85
  271. package/lib/modules/chat/chat-bar/index.css +0 -1
  272. package/lib/modules/chat/chat-bar/index.d.ts +3 -3
  273. package/lib/modules/chat/chat-bar/index.js +37 -47
  274. package/lib/modules/chat/chat-room-store.d.ts +135 -0
  275. package/lib/modules/chat/chat-room-store.js +954 -0
  276. package/lib/modules/chat/chat-select/index.css +4 -21
  277. package/lib/modules/chat/chat-select/index.d.ts +1 -1
  278. package/lib/modules/chat/chat-select/index.js +4 -18
  279. package/lib/modules/chat/chat.d.ts +2 -1
  280. package/lib/modules/chat/chat.js +127 -194
  281. package/lib/modules/chat/components/chat-action/index.d.ts +1 -0
  282. package/lib/modules/chat/components/chat-action/index.js +28 -0
  283. package/lib/modules/chat/components/chat-bar/index.css +85 -0
  284. package/lib/modules/chat/components/chat-bar/index.d.ts +3 -0
  285. package/lib/modules/chat/components/chat-bar/index.js +145 -0
  286. package/lib/modules/chat/components/chat-select/index.css +185 -0
  287. package/lib/modules/chat/components/chat-select/index.d.ts +3 -0
  288. package/lib/modules/chat/components/chat-select/index.js +237 -0
  289. package/lib/modules/chat/components/message-list/index.d.ts +4 -0
  290. package/lib/modules/chat/components/message-list/index.js +650 -0
  291. package/lib/modules/chat/index.css +10 -0
  292. package/lib/modules/chat/index.d.ts +13 -15
  293. package/lib/modules/chat/index.dev.d.ts +0 -1
  294. package/lib/modules/chat/index.dev.js +72 -62
  295. package/lib/modules/chat/index.js +48 -38
  296. package/lib/modules/chat/message-list.js +51 -67
  297. package/lib/modules/chat/mock.d.ts +1 -1
  298. package/lib/modules/chat/store.d.ts +17 -162
  299. package/lib/modules/chat/store.js +95 -963
  300. package/lib/modules/chat/types.d.ts +70 -0
  301. package/lib/modules/chat/types.js +17 -0
  302. package/lib/modules/chat/view.d.ts +10 -0
  303. package/lib/modules/chat/view.js +372 -0
  304. package/lib/modules/components/device-control/components/audio-menu/index.js +6 -6
  305. package/lib/modules/components/device-control/components/microphone/index.js +7 -7
  306. package/lib/modules/components/device-control/index.css +3 -0
  307. package/lib/modules/components/device-control/store.d.ts +11 -12
  308. package/lib/modules/components/device-control/store.js +46 -49
  309. package/lib/modules/components/dialog-container/component/body.d.ts +7 -0
  310. package/lib/modules/components/dialog-container/component/body.js +47 -0
  311. package/lib/modules/components/dialog-container/index.css +78 -0
  312. package/lib/modules/components/dialog-container/index.d.ts +11 -0
  313. package/lib/modules/components/dialog-container/index.js +110 -0
  314. package/lib/modules/components/leave-meeting/components/assign-host.d.ts +3 -0
  315. package/lib/modules/components/leave-meeting/components/assign-host.js +70 -0
  316. package/lib/modules/components/leave-meeting/components/index.css +125 -0
  317. package/lib/modules/components/leave-meeting/index.d.ts +4 -0
  318. package/lib/modules/components/leave-meeting/index.js +147 -0
  319. package/lib/modules/components/leave-meeting/store.d.ts +31 -0
  320. package/lib/modules/components/leave-meeting/store.js +292 -0
  321. package/lib/modules/components/member-window/index.css +419 -0
  322. package/lib/modules/components/member-window/index.d.ts +76 -0
  323. package/lib/modules/components/member-window/index.js +894 -0
  324. package/lib/modules/components/security-menu/index.css +9 -0
  325. package/lib/modules/components/security-menu/index.d.ts +2 -0
  326. package/lib/modules/components/security-menu/index.js +108 -58
  327. package/lib/modules/components/tab-frame/index.css +40 -0
  328. package/lib/modules/components/tab-frame/index.d.ts +12 -0
  329. package/lib/modules/components/tab-frame/index.js +78 -0
  330. package/lib/modules/connection-gateway/components/computer/index.css +1 -0
  331. package/lib/modules/connection-gateway/components/computer/index.js +4 -4
  332. package/lib/modules/connection-gateway/components/phone/components/callinfo/index.d.ts +1 -1
  333. package/lib/modules/connection-gateway/components/phone/index.css +1 -1
  334. package/lib/modules/connection-gateway/components/phone/index.js +2 -2
  335. package/lib/modules/connection-gateway/components/tabs/index.js +1 -2
  336. package/lib/modules/connection-gateway/enums.d.ts +4 -0
  337. package/lib/modules/connection-gateway/enums.js +12 -0
  338. package/lib/modules/connection-gateway/index.d.ts +13 -11
  339. package/lib/modules/connection-gateway/index.js +25 -15
  340. package/lib/modules/connection-gateway/store.d.ts +19 -23
  341. package/lib/modules/connection-gateway/store.js +61 -53
  342. package/lib/modules/connection-gateway/types.d.ts +4 -0
  343. package/lib/modules/connection-gateway/types.js +6 -0
  344. package/lib/modules/connection-gateway/view.js +21 -4
  345. package/lib/modules/control-bar/components/cloud-recording-buttons.js +1 -1
  346. package/lib/modules/control-bar/components/meeting-details/index.js +30 -25
  347. package/lib/modules/control-bar/components/more-actions/index.css +18 -0
  348. package/lib/modules/control-bar/components/more-actions/index.d.ts +1 -5
  349. package/lib/modules/control-bar/components/more-actions/index.js +58 -9
  350. package/lib/modules/control-bar/components/share-state-nav/index.d.ts +1 -7
  351. package/lib/modules/control-bar/components/share-state-nav/index.js +2 -1
  352. package/lib/modules/control-bar/components/stop-live-streaming/stop-button.d.ts +1 -1
  353. package/lib/modules/control-bar/components/stop-live-streaming/stop-button.js +2 -2
  354. package/lib/modules/control-bar/components/transfer-position-icon/index.d.ts +1 -10
  355. package/lib/modules/control-bar/components/transfer-position-icon/index.js +7 -12
  356. package/lib/modules/control-bar/enums.d.ts +21 -0
  357. package/lib/modules/control-bar/enums.js +31 -0
  358. package/lib/modules/control-bar/index.d.ts +30 -21
  359. package/lib/modules/control-bar/index.js +46 -36
  360. package/lib/modules/control-bar/store.d.ts +36 -37
  361. package/lib/modules/control-bar/store.js +188 -280
  362. package/lib/modules/control-bar/types.d.ts +20 -0
  363. package/lib/modules/control-bar/types.js +6 -0
  364. package/lib/modules/control-bar/view.js +83 -42
  365. package/lib/modules/device-pretest/index.js +4 -4
  366. package/lib/modules/device-pretest/settings/video-settings-basic.js +1 -1
  367. package/lib/modules/device-pretest/settings/virtual-background-setting.js +1 -1
  368. package/lib/modules/device-pretest/store.d.ts +8 -9
  369. package/lib/modules/device-pretest/store.js +52 -36
  370. package/lib/modules/dialog/components/Interpreter/electron.js +22 -38
  371. package/lib/modules/dialog/components/Interpreter/index.js +14 -43
  372. package/lib/modules/dialog/components/chat/electron.d.ts +1 -1
  373. package/lib/modules/dialog/components/chat/electron.js +21 -19
  374. package/lib/modules/dialog/components/chat/index.d.ts +1 -4
  375. package/lib/modules/dialog/components/chat/index.js +35 -41
  376. package/lib/modules/dialog/components/confirm/electron.d.ts +1 -1
  377. package/lib/modules/dialog/components/confirm/electron.js +68 -38
  378. package/lib/modules/dialog/components/confirm/index.js +7 -8
  379. package/lib/modules/dialog/components/connection-gateway/electron.d.ts +1 -1
  380. package/lib/modules/dialog/components/connection-gateway/electron.js +13 -34
  381. package/lib/modules/dialog/components/connection-gateway/index.css +2 -0
  382. package/lib/modules/dialog/components/connection-gateway/index.d.ts +3 -2
  383. package/lib/modules/dialog/components/connection-gateway/index.js +26 -58
  384. package/lib/modules/dialog/components/connection-gateway/tabs.d.ts +6 -0
  385. package/lib/modules/dialog/components/connection-gateway/tabs.js +44 -0
  386. package/lib/modules/dialog/components/control-bar/index.d.ts +5 -1
  387. package/lib/modules/dialog/components/control-bar/index.js +123 -11
  388. package/lib/modules/dialog/components/device-setting/electron.js +7 -25
  389. package/lib/modules/dialog/components/device-setting/index.js +13 -41
  390. package/lib/modules/dialog/components/dialog-container/component/body.d.ts +7 -0
  391. package/lib/modules/dialog/components/dialog-container/component/body.js +77 -0
  392. package/lib/modules/dialog/components/dialog-container/index.css +81 -0
  393. package/lib/modules/dialog/components/dialog-container/index.d.ts +16 -0
  394. package/lib/modules/dialog/components/dialog-container/index.js +112 -0
  395. package/lib/modules/dialog/components/invite/index.js +44 -38
  396. package/lib/modules/dialog/components/live-streaming/index.js +23 -54
  397. package/lib/modules/dialog/components/participant/electron.js +12 -19
  398. package/lib/modules/dialog/components/participant/index.js +37 -27
  399. package/lib/modules/dialog/components/remove-admit-waiting-room/electron.js +3 -6
  400. package/lib/modules/dialog/components/remove-admit-waiting-room/index.d.ts +1 -1
  401. package/lib/modules/dialog/components/remove-admit-waiting-room/index.js +4 -14
  402. package/lib/modules/dialog/components/share-screen-selection/index.js +26 -7
  403. package/lib/modules/dialog/components/system-preference/electron.js +6 -9
  404. package/lib/modules/dialog/components/system-preference/index.js +4 -15
  405. package/lib/modules/dialog/components/toast/index.js +9 -13
  406. package/lib/modules/dialog/components/video-window/index.d.ts +2 -0
  407. package/lib/modules/dialog/components/video-window/index.js +148 -0
  408. package/lib/modules/dialog/components/whiteboard/index.js +2 -2
  409. package/lib/modules/dialog/dialogs.d.ts +2 -5
  410. package/lib/modules/dialog/dialogs.js +2 -156
  411. package/lib/modules/dialog/hooks/useElectron.d.ts +4 -20
  412. package/lib/modules/dialog/hooks/useElectron.js +127 -29
  413. package/lib/modules/dialog/index.css +0 -2
  414. package/lib/modules/dialog/index.d.ts +28 -17
  415. package/lib/modules/dialog/index.js +62 -6
  416. package/lib/modules/dialog/store.d.ts +43 -41
  417. package/lib/modules/dialog/store.js +158 -201
  418. package/lib/modules/dialog/types/index.d.ts +70 -0
  419. package/lib/modules/event-confirm/index.css +1 -1
  420. package/lib/modules/event-confirm/index.d.ts +13 -6
  421. package/lib/modules/event-confirm/index.js +28 -11
  422. package/lib/modules/event-confirm/store.d.ts +9 -3
  423. package/lib/modules/event-confirm/store.js +16 -7
  424. package/lib/modules/event-confirm/view.js +9 -2
  425. package/lib/modules/event-toast/index.d.ts +7 -6
  426. package/lib/modules/event-toast/index.js +19 -8
  427. package/lib/modules/event-toast/store.d.ts +8 -3
  428. package/lib/modules/event-toast/store.js +15 -6
  429. package/lib/modules/invite/components/error-tips.d.ts +4 -0
  430. package/lib/modules/invite/components/error-tips.js +18 -0
  431. package/lib/modules/invite/components/pstn-invite.d.ts +2 -0
  432. package/lib/modules/invite/components/pstn-invite.js +297 -0
  433. package/lib/modules/invite/components/voip-invite.d.ts +1 -0
  434. package/lib/modules/invite/components/voip-invite.js +276 -0
  435. package/lib/modules/invite/enums.d.ts +22 -0
  436. package/lib/modules/invite/enums.js +33 -0
  437. package/lib/modules/invite/index.d.ts +7 -8
  438. package/lib/modules/invite/index.js +17 -15
  439. package/lib/modules/invite/pstn-invite.js +9 -7
  440. package/lib/modules/invite/store.d.ts +11 -26
  441. package/lib/modules/invite/store.js +55 -25
  442. package/lib/modules/invite/types.d.ts +14 -0
  443. package/lib/modules/invite/types.js +6 -0
  444. package/lib/modules/invite/view.js +19 -27
  445. package/lib/modules/invite/voip-invite.js +3 -2
  446. package/lib/modules/layout/components/Aside.js +45 -18
  447. package/lib/modules/layout/components/Carousel.js +2 -2
  448. package/lib/modules/layout/components/Gallery.js +1 -1
  449. package/lib/modules/layout/components/Layout.js +7 -4
  450. package/lib/modules/layout/components/index.css +6 -1
  451. package/lib/modules/layout/components/index.d.ts +1 -1
  452. package/lib/modules/layout/components/index.js +4 -4
  453. package/lib/modules/layout/components/who-is-speaking.d.ts +2 -0
  454. package/lib/modules/layout/components/who-is-speaking.js +60 -0
  455. package/lib/modules/layout/index.d.ts +26 -4
  456. package/lib/modules/layout/index.dev.d.ts +0 -1
  457. package/lib/modules/layout/index.dev.js +312 -386
  458. package/lib/modules/layout/index.js +33 -17
  459. package/lib/modules/layout/member-window/index.css +10 -95
  460. package/lib/modules/layout/member-window/index.d.ts +3 -10
  461. package/lib/modules/layout/member-window/index.js +115 -214
  462. package/lib/modules/layout/store.d.ts +61 -71
  463. package/lib/modules/layout/store.js +311 -579
  464. package/lib/modules/layout/video-window-datasource.js +11 -3
  465. package/lib/modules/layout/view.d.ts +2 -0
  466. package/lib/modules/layout/view.js +127 -2
  467. package/lib/modules/live-streaming/index.d.ts +15 -7
  468. package/lib/modules/live-streaming/index.dev.js +13 -13
  469. package/lib/modules/live-streaming/index.js +20 -15
  470. package/lib/modules/live-streaming/store.d.ts +21 -14
  471. package/lib/modules/live-streaming/store.js +84 -144
  472. package/lib/modules/live-streaming/view.js +2 -2
  473. package/lib/modules/notification/index.css +1 -0
  474. package/lib/modules/notification/index.d.ts +9 -11
  475. package/lib/modules/notification/index.js +21 -14
  476. package/lib/modules/notification/interpreter-status/index.js +1 -2
  477. package/lib/modules/notification/store.d.ts +5 -11
  478. package/lib/modules/notification/store.js +12 -62
  479. package/lib/modules/notification/view.d.ts +5 -3
  480. package/lib/modules/notification/view.js +8 -5
  481. package/lib/modules/offscreen-pulling/index.js +1 -1
  482. package/lib/modules/participant/attendee/index.css +52 -0
  483. package/lib/modules/participant/attendee/index.d.ts +5 -8
  484. package/lib/modules/participant/attendee/index.js +17 -62
  485. package/lib/modules/participant/components/attendee/components/microphone-indicator/index.d.ts +6 -0
  486. package/lib/modules/participant/components/attendee/components/microphone-indicator/index.js +28 -0
  487. package/lib/modules/participant/components/attendee/components/user-avatar/index.d.ts +7 -0
  488. package/lib/modules/participant/components/attendee/components/user-avatar/index.js +39 -0
  489. package/lib/modules/participant/components/attendee/index.css +69 -0
  490. package/lib/modules/participant/components/attendee/index.d.ts +4 -0
  491. package/lib/modules/participant/components/attendee/index.js +337 -0
  492. package/lib/modules/participant/components/can-moveable/index.d.ts +1 -0
  493. package/lib/modules/participant/components/can-moveable/index.js +68 -0
  494. package/lib/modules/participant/components/drop-menu/index.css +1 -0
  495. package/lib/modules/participant/components/drop-menu/index.js +17 -17
  496. package/lib/modules/participant/components/footer/buttons.d.ts +2 -3
  497. package/lib/modules/participant/components/footer/buttons.js +2 -3
  498. package/lib/modules/participant/components/footer/index.js +2 -2
  499. package/lib/modules/participant/components/mute-all/index.d.ts +3 -4
  500. package/lib/modules/participant/components/mute-all/index.js +31 -44
  501. package/lib/modules/participant/components/operate-waitingroom-member/index.d.ts +2 -0
  502. package/lib/modules/participant/components/operate-waitingroom-member/index.js +48 -0
  503. package/lib/modules/participant/components/participants/index.js +27 -50
  504. package/lib/modules/participant/components/user-action/index.d.ts +17 -0
  505. package/lib/modules/participant/components/user-action/index.js +169 -0
  506. package/lib/modules/participant/index.css +5 -0
  507. package/lib/modules/participant/index.d.ts +34 -22
  508. package/lib/modules/participant/index.dev.d.ts +0 -1
  509. package/lib/modules/participant/index.dev.js +87 -105
  510. package/lib/modules/participant/index.js +39 -13
  511. package/lib/modules/participant/member-list-data-source.d.ts +4 -1
  512. package/lib/modules/participant/member-list-data-source.js +58 -31
  513. package/lib/modules/participant/room-control-drop-menu/index.css +0 -37
  514. package/lib/modules/participant/store.d.ts +59 -39
  515. package/lib/modules/participant/store.js +330 -307
  516. package/lib/modules/participant/type.d.ts +45 -1
  517. package/lib/modules/participant/type.js +15 -1
  518. package/lib/modules/pc-audio-connect/index.css +12 -0
  519. package/lib/modules/pc-audio-connect/index.d.ts +22 -0
  520. package/lib/modules/pc-audio-connect/index.js +68 -0
  521. package/lib/modules/pc-audio-connect/store.d.ts +46 -0
  522. package/lib/modules/pc-audio-connect/store.js +301 -0
  523. package/lib/modules/pc-audio-connect/types.d.ts +0 -0
  524. package/lib/modules/pc-audio-connect/types.js +1 -0
  525. package/lib/modules/pc-audio-connect/view.d.ts +3 -0
  526. package/lib/modules/pc-audio-connect/view.js +66 -0
  527. package/lib/modules/phone-audio-connect/components/callinfo/index.css +36 -0
  528. package/lib/modules/phone-audio-connect/components/callinfo/index.d.ts +10 -0
  529. package/lib/modules/phone-audio-connect/components/callinfo/index.js +77 -0
  530. package/lib/modules/phone-audio-connect/components/calling/index.css +72 -0
  531. package/lib/modules/phone-audio-connect/components/calling/index.d.ts +7 -0
  532. package/lib/modules/phone-audio-connect/components/calling/index.js +58 -0
  533. package/lib/modules/phone-audio-connect/components/remeber/index.css +10 -0
  534. package/lib/modules/phone-audio-connect/components/remeber/index.d.ts +5 -0
  535. package/lib/modules/phone-audio-connect/components/remeber/index.js +24 -0
  536. package/lib/modules/phone-audio-connect/components/useing/index.css +46 -0
  537. package/lib/modules/phone-audio-connect/components/useing/index.d.ts +3 -0
  538. package/lib/modules/phone-audio-connect/components/useing/index.js +36 -0
  539. package/lib/modules/phone-audio-connect/enums.d.ts +4 -0
  540. package/lib/modules/phone-audio-connect/enums.js +12 -0
  541. package/lib/modules/phone-audio-connect/index.css +56 -0
  542. package/lib/modules/phone-audio-connect/index.d.ts +16 -0
  543. package/lib/modules/phone-audio-connect/index.js +63 -0
  544. package/lib/modules/phone-audio-connect/store.d.ts +46 -0
  545. package/lib/modules/phone-audio-connect/store.js +320 -0
  546. package/lib/modules/phone-audio-connect/types.d.ts +4 -0
  547. package/lib/modules/phone-audio-connect/types.js +6 -0
  548. package/lib/modules/phone-audio-connect/view.d.ts +3 -0
  549. package/lib/modules/phone-audio-connect/view.js +184 -0
  550. package/lib/modules/setting/audio-settings/audio-settings.js +18 -15
  551. package/lib/modules/setting/audio-settings/index.css +26 -1
  552. package/lib/modules/setting/general-settings/index.css +1 -1
  553. package/lib/modules/setting/index.css +2 -1
  554. package/lib/modules/setting/index.d.ts +25 -18
  555. package/lib/modules/setting/index.dev.d.ts +0 -1
  556. package/lib/modules/setting/index.dev.js +120 -72
  557. package/lib/modules/setting/index.js +35 -9
  558. package/lib/modules/setting/minutes-settings/minutes-settings.js +1 -1
  559. package/lib/modules/setting/state/index.js +3 -3
  560. package/lib/modules/setting/store.d.ts +45 -24
  561. package/lib/modules/setting/store.js +143 -124
  562. package/lib/modules/setting/translate-settings/index.css +3 -1
  563. package/lib/modules/setting/translate-settings/translate-settings.js +3 -3
  564. package/lib/modules/setting/video-settings/index.css +5 -2
  565. package/lib/modules/setting/video-settings/video-settings-basic.js +19 -22
  566. package/lib/modules/setting/view.js +6 -35
  567. package/lib/modules/share-screen/components/selection/index.css +70 -0
  568. package/lib/modules/share-screen/components/selection/index.d.ts +2 -0
  569. package/lib/modules/share-screen/components/selection/index.js +267 -0
  570. package/lib/modules/share-screen/components/share-state-bar/index.css +76 -0
  571. package/lib/modules/share-screen/components/share-state-bar/index.d.ts +4 -0
  572. package/lib/modules/share-screen/components/share-state-bar/index.js +98 -0
  573. package/lib/modules/share-screen/index.d.ts +15 -18
  574. package/lib/modules/share-screen/index.dev.d.ts +0 -1
  575. package/lib/modules/share-screen/index.dev.js +90 -90
  576. package/lib/modules/share-screen/index.js +22 -22
  577. package/lib/modules/share-screen/selection/index.css +0 -2
  578. package/lib/modules/share-screen/selection/index.js +40 -51
  579. package/lib/modules/share-screen/share-state-bar/index.js +1 -1
  580. package/lib/modules/share-screen/store.d.ts +36 -32
  581. package/lib/modules/share-screen/store.js +264 -253
  582. package/lib/modules/share-screen/types.d.ts +27 -0
  583. package/lib/modules/share-screen/types.js +6 -0
  584. package/lib/modules/share-screen/view.js +1 -1
  585. package/lib/modules/sound-effect/index.d.ts +9 -15
  586. package/lib/modules/sound-effect/index.js +72 -41
  587. package/lib/modules/sound-effect/sound-effect-player.js +1 -1
  588. package/lib/modules/state-bar/index.css +13 -2
  589. package/lib/modules/state-bar/index.d.ts +16 -17
  590. package/lib/modules/state-bar/index.dev.d.ts +0 -1
  591. package/lib/modules/state-bar/index.dev.js +78 -83
  592. package/lib/modules/state-bar/index.js +23 -34
  593. package/lib/modules/state-bar/layout-config.js +1 -1
  594. package/lib/modules/state-bar/meeting-details.js +24 -12
  595. package/lib/modules/state-bar/meeting-network-state.css +1 -1
  596. package/lib/modules/state-bar/meeting-network-state.js +1 -1
  597. package/lib/modules/state-bar/recording.js +7 -4
  598. package/lib/modules/state-bar/store.d.ts +20 -10
  599. package/lib/modules/state-bar/store.js +84 -87
  600. package/lib/modules/state-bar/view.js +3 -3
  601. package/lib/modules/video-window/deviceState/index.d.ts +2 -2
  602. package/lib/modules/video-window/deviceState/index.js +4 -6
  603. package/lib/modules/video-window/index.css +1 -4
  604. package/lib/modules/video-window/index.d.ts +33 -6
  605. package/lib/modules/video-window/index.js +63 -15
  606. package/lib/modules/video-window/members/index.css +1 -0
  607. package/lib/modules/video-window/members/index.js +25 -11
  608. package/lib/modules/video-window/store.d.ts +58 -26
  609. package/lib/modules/video-window/store.js +166 -161
  610. package/lib/modules/waiting-room-layout/index.css +1 -3
  611. package/lib/modules/waiting-room-layout/index.d.ts +14 -5
  612. package/lib/modules/waiting-room-layout/index.js +34 -14
  613. package/lib/modules/waiting-room-layout/store.d.ts +6 -3
  614. package/lib/modules/waiting-room-layout/store.js +17 -15
  615. package/lib/modules/whiteboard/components/control-bar/store.d.ts +4 -4
  616. package/lib/modules/whiteboard/components/control-bar/store.js +8 -8
  617. package/lib/modules/whiteboard/index.d.ts +20 -25
  618. package/lib/modules/whiteboard/index.js +250 -224
  619. package/lib/modules/whiteboard/view.d.ts +2 -0
  620. package/lib/modules/whiteboard/view.js +49 -0
  621. package/lib/plugins/browser-runtime-plugin.js +5 -1
  622. package/lib/providers/chat-provider.d.ts +71 -0
  623. package/lib/providers/chat-provider.js +91 -0
  624. package/lib/providers/device-privilege-provider.d.ts +76 -0
  625. package/lib/providers/device-privilege-provider.js +415 -0
  626. package/lib/providers/device-provider.d.ts +404 -0
  627. package/lib/providers/device-provider.js +1829 -0
  628. package/lib/providers/device-stream-provider.d.ts +35 -0
  629. package/lib/providers/device-stream-provider.js +353 -0
  630. package/lib/providers/dialog-provider.d.ts +135 -0
  631. package/lib/providers/dialog-provider.js +204 -0
  632. package/lib/providers/event-provider.d.ts +88 -0
  633. package/lib/providers/event-provider.js +250 -0
  634. package/lib/providers/interpreter-provider.d.ts +236 -0
  635. package/lib/providers/interpreter-provider.js +1143 -0
  636. package/lib/providers/local-storage-provider.d.ts +17 -0
  637. package/lib/providers/local-storage-provider.js +31 -0
  638. package/lib/providers/message-provider.d.ts +69 -0
  639. package/lib/providers/message-provider.js +98 -0
  640. package/lib/providers/monitor-provider.d.ts +20 -0
  641. package/lib/providers/monitor-provider.js +29 -0
  642. package/lib/providers/phone-audio-provider.d.ts +131 -0
  643. package/lib/providers/phone-audio-provider.js +515 -0
  644. package/lib/providers/privilege-provider.d.ts +529 -0
  645. package/lib/providers/privilege-provider.js +782 -0
  646. package/lib/providers/renderer-provider.d.ts +85 -0
  647. package/lib/providers/renderer-provider.js +242 -0
  648. package/lib/providers/room-provider.d.ts +186 -0
  649. package/lib/providers/room-provider.js +1019 -0
  650. package/lib/providers/screen-share-provider.d.ts +65 -0
  651. package/lib/providers/screen-share-provider.js +238 -0
  652. package/lib/providers/session-provider.d.ts +56 -0
  653. package/lib/providers/session-provider.js +49 -0
  654. package/lib/runtime.d.ts +3 -1
  655. package/lib/scenes/base.d.ts +10 -0
  656. package/lib/scenes/base.js +75 -0
  657. package/lib/scenes/main-scene.d.ts +86 -0
  658. package/lib/scenes/main-scene.js +551 -0
  659. package/lib/scenes/waiting-scene.d.ts +61 -0
  660. package/lib/scenes/waiting-scene.js +236 -0
  661. package/lib/shared-data-source/chat-data.d.ts +14 -0
  662. package/lib/shared-data-source/chat-data.js +130 -0
  663. package/lib/shared-data-source/config.d.ts +16 -0
  664. package/lib/shared-data-source/config.js +21 -0
  665. package/lib/shared-data-source/device-privilege-data.d.ts +8 -0
  666. package/lib/shared-data-source/device-privilege-data.js +25 -0
  667. package/lib/shared-data-source/interpreter.d.ts +63 -0
  668. package/lib/shared-data-source/interpreter.js +248 -0
  669. package/lib/shared-data-source/layout-data.d.ts +29 -0
  670. package/lib/shared-data-source/layout-data.js +181 -0
  671. package/lib/shared-data-source/pin-data.d.ts +9 -0
  672. package/lib/shared-data-source/pin-data.js +24 -0
  673. package/lib/shared-data-source/setting.d.ts +32 -0
  674. package/lib/shared-data-source/setting.js +153 -0
  675. package/lib/shared-data-source/speaker-spotlight.d.ts +5 -0
  676. package/lib/shared-data-source/speaker-spotlight.js +15 -0
  677. package/lib/shared-data-source/video-window.d.ts +161 -0
  678. package/lib/shared-data-source/video-window.js +1202 -0
  679. package/lib/shared-data-source/waiting-room.d.ts +19 -0
  680. package/lib/shared-data-source/waiting-room.js +158 -0
  681. package/lib/translations/enUS.d.ts +43 -17
  682. package/lib/translations/enUS.js +59 -33
  683. package/lib/translations/zhCN.d.ts +43 -17
  684. package/lib/translations/zhCN.js +57 -31
  685. package/lib/type.d.ts +271 -1
  686. package/lib/type.js +67 -2
  687. package/lib/ui-manager.d.ts +20 -13
  688. package/lib/ui-manager.js +59 -874
  689. package/lib/ui-node.d.ts +25 -0
  690. package/lib/ui-node.js +156 -0
  691. package/lib/ui-scene.d.ts +6 -1
  692. package/lib/ui-scene.js +372 -42
  693. package/lib/utilities/constant.d.ts +63 -86
  694. package/lib/utilities/constant.js +151 -175
  695. package/lib/utilities/copyText.js +8 -7
  696. package/lib/utilities/extract.d.ts +1 -1
  697. package/lib/utilities/privilege.d.ts +4 -0
  698. package/lib/utilities/privilege.js +31 -0
  699. package/lib/utilities/setting-config-storage.d.ts +12 -0
  700. package/lib/utilities/setting-config-storage.js +102 -0
  701. package/lib/utilities/tools.d.ts +37 -3
  702. package/lib/utilities/tools.js +144 -10
  703. package/lib/utilities/video-track-render-context.d.ts +3 -4
  704. package/lib/utilities/video-track-render-context.js +1 -1
  705. package/package.json +12 -11
  706. package/public/assets/fcr_leave2.svg +58 -0
  707. package/public/assets/full-screen-error-boundary-img.png +0 -0
  708. package/public/assets/leave-meeting.png +0 -0
  709. package/public/index.html +160 -13
@@ -24,7 +24,6 @@ Object.defineProperty(exports, "__esModule", {
24
24
  });
25
25
  exports["default"] = exports.StoreContext = void 0;
26
26
  var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
27
- require("core-js/modules/es.array.concat.js");
28
27
  require("core-js/modules/es.array.filter.js");
29
28
  require("core-js/modules/es.array.find.js");
30
29
  require("core-js/modules/es.array.for-each.js");
@@ -94,6 +93,7 @@ require("core-js/modules/esnext.weak-map.delete-all.js");
94
93
  require("core-js/modules/esnext.weak-map.emplace.js");
95
94
  require("core-js/modules/web.dom-collections.for-each.js");
96
95
  require("core-js/modules/web.dom-collections.iterator.js");
96
+ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
97
97
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
98
98
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
99
99
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
@@ -101,11 +101,11 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
101
101
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
102
102
  var _fcrCore = require("fcr-core");
103
103
  var _type = require("fcr-core/lib/type");
104
- var _constant = require("../../utilities/constant");
105
104
  var _logger = require("agora-foundation/lib/logger");
106
105
  var _type2 = require("agora-rte-sdk/lib/type");
107
106
  var _attendee = require("agora-ui-foundation/lib/components/participants/attendee");
108
107
  var _mobx = require("mobx");
108
+ var _constant = require("../../utilities/constant");
109
109
  var _decorator = require("agora-foundation/lib/decorator");
110
110
  var _mobxUtils = require("mobx-utils");
111
111
  var _memberListDataSource = require("./member-list-data-source");
@@ -113,13 +113,19 @@ var _type3 = require("./type");
113
113
  var _i18n = require("agora-ui-foundation/lib/i18n");
114
114
  var _i18n2 = require("../../hooks/i18n");
115
115
  var _type4 = require("fcr-core/lib/room-control/user-control/type");
116
+ var _type5 = require("fcr-core/lib/room-control/type");
116
117
  var _react = require("react");
117
118
  var _rename = _interopRequireDefault(require("./components/rename"));
118
- var _type5 = require("fcr-core/lib/room-control/privilege-control/type");
119
+ var _type6 = require("fcr-core/lib/room-control/privilege-control/type");
119
120
  var _env = require("agora-foundation/lib/utilities/env");
121
+ var _operateWaitingroomMember = require("./components/operate-waitingroom-member");
122
+ var _muteAll = require("./components/mute-all");
120
123
  var _jsxRuntime = require("react/jsx-runtime");
121
124
  var _ParticipantStore;
122
- var _initProto, _init__mainList, _init__participantsWindowActive, _init_currentPerspectiveType, _init_audioVolumeMap, _init_enableParticipantsJoinWithMute, _init_searchText, _init_currentModal, _init_localUserRole, _init_spotlightStreamId, _init_enableSpotlight, _init_mergeConfirmDialog, _init_mergeUserId, _init_activeTab, _init_isNewWaitingRoomUserEnter, _init_waitingRoomUserCount, _init_interpreterUsers, _init_interpreterState, _init_interpreterInputLanguageList, _init_newName, _init_refreshList, _setSpotlightStreamIdDecs, _setCurrentModalDecs, _openParticipantsWindowDecs, _setParticipantsWindowActiveDecs, _handlerSearchUserDecs, _closeRemoveAdmitWaitingRoomDialogDecs, _openRemoveAdmitWaitingRoomDialogDecs, _handlerUserActionDecs, _closeChangeNameDialogDecs, _moveToWaitingRoomByUserIdsDecs, _removeWaitingRoomUserDecs, _kickOutWaitingRoomAllMemberDecs, _moveToMainRoomAllMemberDecs, _handlerRoomControlActionDecs, _handleEventDecs, _moveToMainRoomByUserIdsDecs, _handleActiveTabDecs, _getInterpreterStateDecs, _initWaitingRoomUserListDecs, _kickOutUserDecs, _setAsAttendeeDecs, _onAudioVolumeUpdatedDecs, _handleRemoteUserJoinedDecs, _handleRemoteUserLeftDecs, _handleRemoteWaitingUserJoinedDecs, _handleRemoteWaitingUserLeftDecs, _handleUserInfoUpdatedDecs, _initUserListDecs, _refreshCurrentPerspectiveTypeDecs, _onPeerSessionReceivedDecs, _updateLocalUserRoleDecs, _getOutputLanguageDecs, _ref;
125
+ var _initProto, _init__mainList, _init__isChecked, _init__participantsWindowActive, _init_currentPerspectiveType, _init_audioVolumeMap, _init_enableParticipantsJoinWithMute, _init_searchText, _init_currentModal, _init_localUserRole, _init_mergeConfirmDialog, _init_mergeUserId, _init_activeTab, _init_interpreterInputLanguageList, _init_newName, _init_refreshList, _init_allowUnmute, _init_joinWithMuteAudio, _setCurrentModalDecs, _openParticipantsWindowDecs, _setParticipantsWindowActiveDecs, _handlerSearchUserDecs, _closeRemoveAdmitWaitingRoomDialogDecs, _openRemoveAdmitWaitingRoomDialogDecs, _setMuteAllDialogValueDecs, _openMuteAllDialogDecs, _handlerUserActionDecs, _closeChangeNameDialogDecs, _moveToWaitingRoomByUserIdsDecs, _removeWaitingRoomUserDecs, _kickOutWaitingRoomAllMemberDecs, _moveToMainRoomAllMemberDecs, _handlerRoomControlActionDecs, _handleEventDecs, _moveToMainRoomByUserIdsDecs, _handleActiveTabDecs, _initWaitingRoomUserListDecs, _kickOutUserDecs, _setAsAttendeeDecs, _onAudioVolumeUpdatedDecs, _updateUserBoardStateDecs, _handleRemoteUserJoinedDecs, _handleRemoteUserLeftDecs, _handleRemoteWaitingUserJoinedDecs, _handleRemoteWaitingUserLeftDecs, _handleUserInfoUpdatedDecs, _initUserListDecs, _refreshCurrentPerspectiveTypeDecs, _onPeerSessionReceivedDecs, _updateLocalUserRoleDecs, _getOutputLanguageDecs, _ref;
126
+ /**
127
+ * seconds
128
+ */
123
129
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
124
130
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
125
131
  function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
@@ -132,9 +138,6 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
132
138
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
133
139
  function _setFunctionName(e, t, n) { "symbol" == _typeof(t) && (t = (t = t.description) ? "[" + t + "]" : ""); try { Object.defineProperty(e, "name", { configurable: !0, value: n ? n + " " + t : t }); } catch (e) {} return e; }
134
140
  function _checkInRHS(e) { if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (null !== e ? _typeof(e) : "null")); return e; }
135
- /**
136
- * seconds
137
- */
138
141
  var SESSION_DURATION = 30;
139
142
  var _A = /*#__PURE__*/new WeakMap();
140
143
  var _B = /*#__PURE__*/new WeakMap();
@@ -153,21 +156,26 @@ var _N = /*#__PURE__*/new WeakMap();
153
156
  var _O = /*#__PURE__*/new WeakMap();
154
157
  var _P = /*#__PURE__*/new WeakMap();
155
158
  var _Q = /*#__PURE__*/new WeakMap();
156
- var _R = /*#__PURE__*/new WeakMap();
157
- var _S = /*#__PURE__*/new WeakMap();
158
- var _T = /*#__PURE__*/new WeakMap();
159
- _ref = (_setSpotlightStreamIdDecs = [_mobx.action, _mobx.action.bound], _setCurrentModalDecs = [_mobx.action, _mobx.action.bound], _openParticipantsWindowDecs = [_mobx.action, _mobx.action.bound], _setParticipantsWindowActiveDecs = [_mobx.action, _mobx.action.bound], _handlerSearchUserDecs = [_mobx.action, _mobx.action.bound], _closeRemoveAdmitWaitingRoomDialogDecs = [_mobx.action, _mobx.action.bound], _openRemoveAdmitWaitingRoomDialogDecs = [_mobx.action, _mobx.action.bound], _handlerUserActionDecs = [_mobx.action, _mobx.action.bound], _closeChangeNameDialogDecs = [_mobx.action, _mobx.action.bound], _moveToWaitingRoomByUserIdsDecs = [_mobx.action, _mobx.action.bound], _removeWaitingRoomUserDecs = [_mobx.action, _mobx.action.bound], _kickOutWaitingRoomAllMemberDecs = [_mobx.action, _mobx.action.bound], _moveToMainRoomAllMemberDecs = [_mobx.action, _mobx.action.bound], _handlerRoomControlActionDecs = [_mobx.action, _mobx.action.bound], _handleEventDecs = [_mobx.action, _mobx.action.bound], _moveToMainRoomByUserIdsDecs = [_mobx.action, _mobx.action.bound], _handleActiveTabDecs = [_mobx.action, _mobx.action.bound], _getInterpreterStateDecs = [_mobx.action, _mobx.action.bound], _initWaitingRoomUserListDecs = [_mobx.action, _mobx.action.bound], _kickOutUserDecs = [_mobx.action, _mobx.action.bound], _setAsAttendeeDecs = [_mobx.action, _mobx.action.bound], _onAudioVolumeUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleRemoteUserJoinedDecs = [_mobx.action, _mobx.action.bound], _handleRemoteUserLeftDecs = [_mobx.action, _mobx.action.bound], _handleRemoteWaitingUserJoinedDecs = [_mobx.action, _mobx.action.bound], _handleRemoteWaitingUserLeftDecs = [_mobx.action, _mobx.action.bound], _handleUserInfoUpdatedDecs = [_mobx.action, _mobx.action.bound], _initUserListDecs = [_mobx.action, _mobx.action.bound], _refreshCurrentPerspectiveTypeDecs = [_mobx.action, _mobx.action.bound], _onPeerSessionReceivedDecs = [_mobx.action, _mobx.action.bound], _updateLocalUserRoleDecs = [_mobx.action, _mobx.action.bound], _getOutputLanguageDecs = [_mobx.action, _mobx.action.bound], "logger");
159
+ _ref = (_setCurrentModalDecs = [_mobx.action, _mobx.action.bound], _openParticipantsWindowDecs = [_mobx.action, _mobx.action.bound], _setParticipantsWindowActiveDecs = [_mobx.action, _mobx.action.bound], _handlerSearchUserDecs = [_mobx.action, _mobx.action.bound], _closeRemoveAdmitWaitingRoomDialogDecs = [_mobx.action, _mobx.action.bound], _openRemoveAdmitWaitingRoomDialogDecs = [_mobx.action, _mobx.action.bound], _setMuteAllDialogValueDecs = [_mobx.action, _mobx.action.bound], _openMuteAllDialogDecs = [_mobx.action, _mobx.action.bound], _handlerUserActionDecs = [_mobx.action, _mobx.action.bound], _closeChangeNameDialogDecs = [_mobx.action, _mobx.action.bound], _moveToWaitingRoomByUserIdsDecs = [_mobx.action, _mobx.action.bound], _removeWaitingRoomUserDecs = [_mobx.action, _mobx.action.bound], _kickOutWaitingRoomAllMemberDecs = [_mobx.action, _mobx.action.bound], _moveToMainRoomAllMemberDecs = [_mobx.action, _mobx.action.bound], _handlerRoomControlActionDecs = [_mobx.action, _mobx.action.bound], _handleEventDecs = [_mobx.action, _mobx.action.bound], _moveToMainRoomByUserIdsDecs = [_mobx.action, _mobx.action.bound], _handleActiveTabDecs = [_mobx.action, _mobx.action.bound], _initWaitingRoomUserListDecs = [_mobx.action, _mobx.action.bound], _kickOutUserDecs = [_mobx.action, _mobx.action.bound], _setAsAttendeeDecs = [_mobx.action, _mobx.action.bound], _onAudioVolumeUpdatedDecs = [_mobx.action, _mobx.action.bound], _updateUserBoardStateDecs = [_mobx.action, _mobx.action.bound], _handleRemoteUserJoinedDecs = [_mobx.action, _mobx.action.bound], _handleRemoteUserLeftDecs = [_mobx.action, _mobx.action.bound], _handleRemoteWaitingUserJoinedDecs = [_mobx.action, _mobx.action.bound], _handleRemoteWaitingUserLeftDecs = [_mobx.action, _mobx.action.bound], _handleUserInfoUpdatedDecs = [_mobx.action, _mobx.action.bound], _initUserListDecs = [_mobx.action, _mobx.action.bound], _refreshCurrentPerspectiveTypeDecs = [_mobx.action, _mobx.action.bound], _onPeerSessionReceivedDecs = [_mobx.action, _mobx.action.bound], _updateLocalUserRoleDecs = [_mobx.action, _mobx.action.bound], _getOutputLanguageDecs = [_mobx.action, _mobx.action.bound], "logger");
160
160
  var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
161
161
  function ParticipantStore(_ref2) {
162
- var _this = this;
162
+ var _this = this,
163
+ _this$_roomStore;
163
164
  var _roomControl = _ref2.roomControl,
164
- peerSessionControl = _ref2.peerSessionControl,
165
165
  securityStore = _ref2.securityStore,
166
166
  uiEventStore = _ref2.uiEventStore,
167
167
  deviceStore = _ref2.deviceStore,
168
168
  deviceStreamStore = _ref2.deviceStreamStore,
169
- interpreterControl = _ref2.interpreterControl,
170
- roomStore = _ref2.roomStore;
169
+ roomStore = _ref2.roomStore,
170
+ sessionProvider = _ref2.sessionProvider,
171
+ sharedSpeakerSpotlightDataSource = _ref2.sharedSpeakerSpotlightDataSource,
172
+ sharedPinDataSource = _ref2.sharedPinDataSource,
173
+ sharedLayoutDataSource = _ref2.sharedLayoutDataSource,
174
+ sharedInterpreterDataSource = _ref2.sharedInterpreterDataSource,
175
+ sharedSettingDataSource = _ref2.sharedSettingDataSource,
176
+ sharedWaitingRoomDataSource = _ref2.sharedWaitingRoomDataSource,
177
+ chatProvider = _ref2.chatProvider,
178
+ sharedVideoWindowDataSource = _ref2.sharedVideoWindowDataSource;
171
179
  (0, _classCallCheck2["default"])(this, ParticipantStore);
172
180
  (0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.getLogger)()));
173
181
  (0, _defineProperty2["default"])(this, "_dataSource", new _memberListDataSource.FcrUIMemberListDataSourceImpl());
@@ -195,15 +203,6 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
195
203
  onUserInfoUpdated: this._handleUserInfoUpdated.bind(this),
196
204
  onUserPropertiesUpdated: this._handleUserPropertiesUpdated.bind(this)
197
205
  });
198
- (0, _defineProperty2["default"])(this, "_interpreterObserver", {
199
- onInterpreterUsersUpdated: function onInterpreterUsersUpdated(roomId, users) {
200
- _this.interpreterUsers = users;
201
- },
202
- onInterpreterStateUpdated: function onInterpreterStateUpdated() {
203
- _this.interpreterState = _this.getInterpreterState();
204
- _this.interpreterUsers = _this._interpreterControl.getInterpreterUserList();
205
- }
206
- });
207
206
  (0, _defineProperty2["default"])(this, "_waitingRoomUserObserver", {
208
207
  onRemoteUsersJoined: this._handleRemoteWaitingUserJoined.bind(this),
209
208
  onRemoteUsersLeft: this._handleRemoteWaitingUserLeft.bind(this)
@@ -215,7 +214,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
215
214
  var waitingRoomUserControl = room.getUserControl();
216
215
  _this._waitingRoomUserControl = waitingRoomUserControl;
217
216
  waitingRoomUserControl.addObserver(_this._waitingRoomUserObserver);
218
- _this.waitingRoomUserCount = _this._getWaitingRoomUserCount();
217
+ // this.waitingRoomUserCount = this._getWaitingRoomUserCount() as number;
219
218
  _this._initWaitingRoomUserList();
220
219
  }
221
220
  });
@@ -223,7 +222,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
223
222
  onSecurityInfoUpdated: function onSecurityInfoUpdated(roomId, event) {
224
223
  var _event$securityInfo$i;
225
224
  _this.refreshList = Math.random();
226
- if (((_event$securityInfo$i = event.securityInfo.info) === null || _event$securityInfo$i === void 0 ? void 0 : _event$securityInfo$i.action) === _type5.FcrSecurityAction.ChangeName) {
225
+ if (((_event$securityInfo$i = event.securityInfo.info) === null || _event$securityInfo$i === void 0 ? void 0 : _event$securityInfo$i.action) === _type6.FcrSecurityAction.ChangeName) {
227
226
  if (!event.securityInfo.enable) {
228
227
  _this._closeChangeNameDialog();
229
228
  }
@@ -235,33 +234,31 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
235
234
  });
236
235
  (0, _defineProperty2["default"])(this, "_whitebaordObderver", {
237
236
  onActive: function onActive(ownerId, operatorUser) {
238
- _this._updateUserBoardState(operatorUser);
237
+ _this._updateUserBoardState();
239
238
  },
240
239
  onInactive: function onInactive(reason, operatorUser) {
241
- _this._updateUserBoardState(operatorUser);
240
+ _this._updateUserBoardState();
242
241
  }
243
242
  });
244
243
  _classPrivateFieldInitSpec(this, _A, _init__mainList(this, []));
245
- _classPrivateFieldInitSpec(this, _B, _init__participantsWindowActive(this, false));
246
- _classPrivateFieldInitSpec(this, _C, _init_currentPerspectiveType(this, 'attendee'));
247
- _classPrivateFieldInitSpec(this, _D, _init_audioVolumeMap(this, new Map()));
248
- _classPrivateFieldInitSpec(this, _E, _init_enableParticipantsJoinWithMute(this, false));
249
- _classPrivateFieldInitSpec(this, _F, _init_searchText(this, ''));
250
- _classPrivateFieldInitSpec(this, _G, _init_currentModal(this, 'modal'));
251
- _classPrivateFieldInitSpec(this, _H, _init_localUserRole(this));
252
- _classPrivateFieldInitSpec(this, _I, _init_spotlightStreamId(this, ''));
253
- _classPrivateFieldInitSpec(this, _J, _init_enableSpotlight(this, true));
254
- _classPrivateFieldInitSpec(this, _K, _init_mergeConfirmDialog(this, false));
255
- _classPrivateFieldInitSpec(this, _L, _init_mergeUserId(this, ''));
256
- _classPrivateFieldInitSpec(this, _M, _init_activeTab(this, _constant.RoomType.MAIN_ROOM));
257
- _classPrivateFieldInitSpec(this, _N, _init_isNewWaitingRoomUserEnter(this, false));
258
- _classPrivateFieldInitSpec(this, _O, _init_waitingRoomUserCount(this, 0));
259
- _classPrivateFieldInitSpec(this, _P, _init_interpreterUsers(this, []));
260
- // 翻译官列表
261
- _classPrivateFieldInitSpec(this, _Q, _init_interpreterState(this));
262
- _classPrivateFieldInitSpec(this, _R, _init_interpreterInputLanguageList(this, []));
263
- _classPrivateFieldInitSpec(this, _S, _init_newName(this, ''));
264
- _classPrivateFieldInitSpec(this, _T, _init_refreshList(this, Math.random()));
244
+ _classPrivateFieldInitSpec(this, _B, _init__isChecked(this, {}));
245
+ _classPrivateFieldInitSpec(this, _C, _init__participantsWindowActive(this, false));
246
+ _classPrivateFieldInitSpec(this, _D, _init_currentPerspectiveType(this, 'attendee'));
247
+ _classPrivateFieldInitSpec(this, _E, _init_audioVolumeMap(this, new Map()));
248
+ _classPrivateFieldInitSpec(this, _F, _init_enableParticipantsJoinWithMute(this, false));
249
+ _classPrivateFieldInitSpec(this, _G, _init_searchText(this, ''));
250
+ _classPrivateFieldInitSpec(this, _H, _init_currentModal(this, 'modal'));
251
+ _classPrivateFieldInitSpec(this, _I, _init_localUserRole(this));
252
+ // @observable accessor spotlightStreamId: string = '';
253
+ // @observable accessor enableSpotlight: boolean = true;
254
+ _classPrivateFieldInitSpec(this, _J, _init_mergeConfirmDialog(this, false));
255
+ _classPrivateFieldInitSpec(this, _K, _init_mergeUserId(this, ''));
256
+ _classPrivateFieldInitSpec(this, _L, _init_activeTab(this, _type5.FcrRoomType.Mainroom));
257
+ _classPrivateFieldInitSpec(this, _M, _init_interpreterInputLanguageList(this, []));
258
+ _classPrivateFieldInitSpec(this, _N, _init_newName(this, ''));
259
+ _classPrivateFieldInitSpec(this, _O, _init_refreshList(this, Math.random()));
260
+ _classPrivateFieldInitSpec(this, _P, _init_allowUnmute(this, false));
261
+ _classPrivateFieldInitSpec(this, _Q, _init_joinWithMuteAudio(this, false));
265
262
  (0, _defineProperty2["default"])(this, "allowedOperations", (0, _mobxUtils.computedFn)(function (userId, userRole) {
266
263
  var _this$_localUser;
267
264
  return _this.getAllowedOperations(userRole, userId === ((_this$_localUser = _this._localUser) === null || _this$_localUser === void 0 ? void 0 : _this$_localUser.userId));
@@ -374,30 +371,41 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
374
371
  };
375
372
  });
376
373
  this._roomControl = _roomControl;
374
+ this._chatProvider = chatProvider;
377
375
  this._streamControl = _roomControl.getStreamControl();
378
- this._peerSessionControl = peerSessionControl;
376
+ this._peerSessionControl = sessionProvider;
379
377
  this._userControl = _roomControl.getUserControl();
378
+ this._sharedWaitingRoomDataSource = sharedWaitingRoomDataSource;
380
379
  this._securityStore = securityStore;
381
380
  this._uiEventStore = uiEventStore;
382
381
  this._deviceStore = deviceStore;
383
382
  this._deviceStreamStore = deviceStreamStore;
384
383
  this._roomStore = roomStore;
385
- this._interpreterControl = interpreterControl;
384
+ this._sharedSpeakerSpotlightDataSource = sharedSpeakerSpotlightDataSource;
385
+ this._sharedPinDataSource = sharedPinDataSource;
386
+ this._sharedLayoutDataSource = sharedLayoutDataSource;
387
+ this._sharedSettingDataSource = sharedSettingDataSource;
388
+ this._sharedVideoWindowDataSource = sharedVideoWindowDataSource;
389
+ this.allowUnmute = this._securityStore.allowUnmuteSelfAudio();
390
+ this.joinWithMuteAudio = this._securityStore.allowJoinWithMuteAudio();
386
391
  this._uiEventStore.addObserver(this._eventObserver);
387
392
  this._userControl.addObserver(this._userObserver);
388
393
  this._streamControl.addObserver(this._streamsObserver);
389
394
  this._peerSessionControl.addObserver(this._peerSessionObserver);
390
395
  this._roomControl.getBoardControl().addObserver(this._whitebaordObderver);
391
396
  this._roomControl.getPrivilegeControl().addObserver(this._privilegeControlObserver);
392
- this._interpreterControl.addObserver(this._interpreterObserver);
393
- this._roomStore.addObserver(this._roomStoreObserver);
397
+ (_this$_roomStore = this._roomStore) === null || _this$_roomStore === void 0 || _this$_roomStore.addObserver(this._roomStoreObserver);
398
+ this._sharedInterpreterDataSource = sharedInterpreterDataSource;
394
399
  this._initUserList();
395
400
  this._updateUserBoardState();
396
- this.interpreterUsers = this._interpreterControl.getInterpreterUserList();
397
- this.interpreterState = this.getInterpreterState();
398
401
  this._getOutputLanguage();
399
402
  this.localUserRole = this._localUser.userRole;
400
403
  }
404
+
405
+ // @action.bound
406
+ // setSpotlightStreamId(streamId: string) {
407
+ // this.spotlightStreamId = streamId;
408
+ // }
401
409
  return (0, _createClass2["default"])(ParticipantStore, [{
402
410
  key: "_localUser",
403
411
  get: function get() {
@@ -412,7 +420,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
412
420
  _classPrivateFieldSet(_A, this, v);
413
421
  }
414
422
  }, {
415
- key: "_participantsWindowActive",
423
+ key: "_isChecked",
416
424
  get: function get() {
417
425
  return _classPrivateFieldGet(_B, this);
418
426
  },
@@ -420,7 +428,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
420
428
  _classPrivateFieldSet(_B, this, v);
421
429
  }
422
430
  }, {
423
- key: "currentPerspectiveType",
431
+ key: "_participantsWindowActive",
424
432
  get: function get() {
425
433
  return _classPrivateFieldGet(_C, this);
426
434
  },
@@ -428,7 +436,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
428
436
  _classPrivateFieldSet(_C, this, v);
429
437
  }
430
438
  }, {
431
- key: "audioVolumeMap",
439
+ key: "currentPerspectiveType",
432
440
  get: function get() {
433
441
  return _classPrivateFieldGet(_D, this);
434
442
  },
@@ -436,7 +444,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
436
444
  _classPrivateFieldSet(_D, this, v);
437
445
  }
438
446
  }, {
439
- key: "enableParticipantsJoinWithMute",
447
+ key: "audioVolumeMap",
440
448
  get: function get() {
441
449
  return _classPrivateFieldGet(_E, this);
442
450
  },
@@ -444,7 +452,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
444
452
  _classPrivateFieldSet(_E, this, v);
445
453
  }
446
454
  }, {
447
- key: "searchText",
455
+ key: "enableParticipantsJoinWithMute",
448
456
  get: function get() {
449
457
  return _classPrivateFieldGet(_F, this);
450
458
  },
@@ -452,7 +460,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
452
460
  _classPrivateFieldSet(_F, this, v);
453
461
  }
454
462
  }, {
455
- key: "currentModal",
463
+ key: "searchText",
456
464
  get: function get() {
457
465
  return _classPrivateFieldGet(_G, this);
458
466
  },
@@ -460,7 +468,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
460
468
  _classPrivateFieldSet(_G, this, v);
461
469
  }
462
470
  }, {
463
- key: "localUserRole",
471
+ key: "currentModal",
464
472
  get: function get() {
465
473
  return _classPrivateFieldGet(_H, this);
466
474
  },
@@ -468,7 +476,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
468
476
  _classPrivateFieldSet(_H, this, v);
469
477
  }
470
478
  }, {
471
- key: "spotlightStreamId",
479
+ key: "localUserRole",
472
480
  get: function get() {
473
481
  return _classPrivateFieldGet(_I, this);
474
482
  },
@@ -476,7 +484,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
476
484
  _classPrivateFieldSet(_I, this, v);
477
485
  }
478
486
  }, {
479
- key: "enableSpotlight",
487
+ key: "mergeConfirmDialog",
480
488
  get: function get() {
481
489
  return _classPrivateFieldGet(_J, this);
482
490
  },
@@ -484,7 +492,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
484
492
  _classPrivateFieldSet(_J, this, v);
485
493
  }
486
494
  }, {
487
- key: "mergeConfirmDialog",
495
+ key: "mergeUserId",
488
496
  get: function get() {
489
497
  return _classPrivateFieldGet(_K, this);
490
498
  },
@@ -492,7 +500,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
492
500
  _classPrivateFieldSet(_K, this, v);
493
501
  }
494
502
  }, {
495
- key: "mergeUserId",
503
+ key: "activeTab",
496
504
  get: function get() {
497
505
  return _classPrivateFieldGet(_L, this);
498
506
  },
@@ -500,7 +508,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
500
508
  _classPrivateFieldSet(_L, this, v);
501
509
  }
502
510
  }, {
503
- key: "activeTab",
511
+ key: "interpreterInputLanguageList",
504
512
  get: function get() {
505
513
  return _classPrivateFieldGet(_M, this);
506
514
  },
@@ -508,7 +516,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
508
516
  _classPrivateFieldSet(_M, this, v);
509
517
  }
510
518
  }, {
511
- key: "isNewWaitingRoomUserEnter",
519
+ key: "newName",
512
520
  get: function get() {
513
521
  return _classPrivateFieldGet(_N, this);
514
522
  },
@@ -516,7 +524,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
516
524
  _classPrivateFieldSet(_N, this, v);
517
525
  }
518
526
  }, {
519
- key: "waitingRoomUserCount",
527
+ key: "refreshList",
520
528
  get: function get() {
521
529
  return _classPrivateFieldGet(_O, this);
522
530
  },
@@ -524,7 +532,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
524
532
  _classPrivateFieldSet(_O, this, v);
525
533
  }
526
534
  }, {
527
- key: "interpreterUsers",
535
+ key: "allowUnmute",
528
536
  get: function get() {
529
537
  return _classPrivateFieldGet(_P, this);
530
538
  },
@@ -532,7 +540,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
532
540
  _classPrivateFieldSet(_P, this, v);
533
541
  }
534
542
  }, {
535
- key: "interpreterState",
543
+ key: "joinWithMuteAudio",
536
544
  get: function get() {
537
545
  return _classPrivateFieldGet(_Q, this);
538
546
  },
@@ -540,38 +548,24 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
540
548
  _classPrivateFieldSet(_Q, this, v);
541
549
  }
542
550
  }, {
543
- key: "interpreterInputLanguageList",
544
- get: function get() {
545
- return _classPrivateFieldGet(_R, this);
546
- },
547
- set: function set(v) {
548
- _classPrivateFieldSet(_R, this, v);
549
- }
550
- }, {
551
- key: "newName",
552
- get: function get() {
553
- return _classPrivateFieldGet(_S, this);
554
- },
555
- set: function set(v) {
556
- _classPrivateFieldSet(_S, this, v);
557
- }
558
- }, {
559
- key: "refreshList",
551
+ key: "enableSpotlight",
560
552
  get: function get() {
561
- return _classPrivateFieldGet(_T, this);
562
- },
563
- set: function set(v) {
564
- _classPrivateFieldSet(_T, this, v);
553
+ return this._sharedSettingDataSource.setting.spotlightEnabled;
565
554
  }
566
555
  }, {
567
556
  key: "userListSource",
568
557
  get: function get() {
569
- if (this.activeTab === _constant.RoomType.MAIN_ROOM) {
558
+ if (this.activeTab === _type5.FcrRoomType.Mainroom) {
570
559
  return this._dataSource.list;
571
560
  } else {
572
561
  return this._waitingRoomDataSource.list;
573
562
  }
574
563
  }
564
+ }, {
565
+ key: "spotlightStreamId",
566
+ get: function get() {
567
+ return this._sharedVideoWindowDataSource.spotlightStreamId;
568
+ }
575
569
  }, {
576
570
  key: "mergeUserInfo",
577
571
  get: function get() {
@@ -672,21 +666,35 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
672
666
  return this._securityStore.hasRevokeHostPermission() && this.localUserRole !== _type.FcrUserRole.HOST;
673
667
  }
674
668
  }, {
675
- key: "setSpotlightStreamId",
676
- value: function setSpotlightStreamId(streamId) {
677
- this.spotlightStreamId = streamId;
669
+ key: "interpreterUsers",
670
+ get: function get() {
671
+ return this._sharedInterpreterDataSource.interpreterUsers;
672
+ }
673
+ }, {
674
+ key: "interpreterState",
675
+ get: function get() {
676
+ return this._sharedInterpreterDataSource.interpreterOff;
677
+ }
678
+ }, {
679
+ key: "waitingRoomUserCount",
680
+ get: function get() {
681
+ return this._sharedWaitingRoomDataSource.totalWaitingRoomUser;
682
+ }
683
+ }, {
684
+ key: "isNewWaitingRoomUserEnter",
685
+ get: function get() {
686
+ return this._sharedWaitingRoomDataSource.unReadState;
678
687
  }
679
688
  }, {
680
689
  key: "release",
681
690
  value: function release() {
682
- this._uiEventStore.addObserver(this._eventObserver);
683
- this._userControl.addObserver(this._userObserver);
684
- this._streamControl.addObserver(this._streamsObserver);
685
- this._peerSessionControl.addObserver(this._peerSessionObserver);
686
- this._roomControl.getBoardControl().addObserver(this._whitebaordObderver);
687
- this._interpreterControl.addObserver(this._interpreterObserver);
688
- this._roomControl.getPrivilegeControl().addObserver(this._privilegeControlObserver);
689
- this._roomStore.addObserver(this._roomStoreObserver);
691
+ this._uiEventStore.removeObserver(this._eventObserver);
692
+ this._userControl.removeObserver(this._userObserver);
693
+ this._streamControl.removeObserver(this._streamsObserver);
694
+ this._peerSessionControl.removeObserver(this._peerSessionObserver);
695
+ this._roomControl.getBoardControl().removeObserver(this._whitebaordObderver);
696
+ this._roomControl.getPrivilegeControl().removeObserver(this._privilegeControlObserver);
697
+ this._roomStore.removeObserver(this._roomStoreObserver);
690
698
  this._disposers.forEach(function (disposer) {
691
699
  return disposer();
692
700
  });
@@ -719,7 +727,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
719
727
  }, {
720
728
  key: "closeParticipantsAside",
721
729
  value: function closeParticipantsAside() {
722
- this._uiEventStore.updateAside({
730
+ this._sharedLayoutDataSource.setAsideLayout({
723
731
  participant: false
724
732
  });
725
733
  }
@@ -751,7 +759,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
751
759
  }, {
752
760
  key: "openDialog",
753
761
  value: function openDialog() {
754
- this._dialogId = this._uiEventStore.openDialog(_constant.DialogKey.PARTICIPANT);
762
+ this._dialogId = this._uiEventStore.openDialog(_constant.FcrUIDialogKey.PARTICIPANT);
755
763
  }
756
764
  }, {
757
765
  key: "openConfirmDialog",
@@ -814,10 +822,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
814
822
  return stream.videoSourceType === _type2.AgoraRteVideoSourceType.CAMERA;
815
823
  })) === null || _this$userMap$get3 === void 0 ? void 0 : _this$userMap$get3.streamId;
816
824
  if (streamId) {
817
- this._uiEventStore.sendEvent(_constant.UIAction.VIDEO_WINDOW_PIN_ACTION, {
818
- action: _constant.VideoWindowPinType.REMOVE_PIN,
819
- streamId: streamId
820
- });
825
+ this._sharedVideoWindowDataSource.removePinToast(streamId, (0, _i18n.transI18n)('fmt_settings_tips_screenunlock'));
821
826
  }
822
827
  }
823
828
  }, {
@@ -828,10 +833,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
828
833
  return stream.videoSourceType === _type2.AgoraRteVideoSourceType.CAMERA;
829
834
  })) === null || _this$userMap$get4 === void 0 ? void 0 : _this$userMap$get4.streamId;
830
835
  if (streamId) {
831
- this._uiEventStore.sendEvent(_constant.UIAction.VIDEO_WINDOW_PIN_ACTION, {
832
- action: _constant.VideoWindowPinType.ADD_PIN,
833
- streamId: streamId
834
- });
836
+ this._sharedVideoWindowDataSource.addPinToast(streamId);
835
837
  }
836
838
  }
837
839
  }, {
@@ -841,18 +843,82 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
841
843
  }
842
844
  }, {
843
845
  key: "openRemoveAdmitWaitingRoomDialog",
844
- value: function openRemoveAdmitWaitingRoomDialog(dialogKey, params) {
845
- this._uiEventStore.openDialog(dialogKey, '', {
846
- userId: params.userId,
847
- type: params.type,
846
+ value: function openRemoveAdmitWaitingRoomDialog(params) {
847
+ var _this5 = this;
848
+ var buttonTextMap = {
849
+ removeAll: (0, _i18n.transI18n)('fmt_waitingroom_sidebar_button_removeall'),
850
+ admitAll: (0, _i18n.transI18n)('fmt_waitingroom_sidebar_button_admitall'),
851
+ remove: (0, _i18n.transI18n)('fmt_waitingroom_sidebar_popup_button_remove')
852
+ };
853
+ this._isChecked[params.type] = false;
854
+ var key = this.openConfirmDialog({
848
855
  title: params.title,
849
- tooltip: params.tooltip
856
+ alignCenter: true,
857
+ content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_operateWaitingroomMember.OperateWaitingRoomMemberDialog, {
858
+ type: params.type,
859
+ userId: params.userId,
860
+ tooltip: params.tooltip,
861
+ title: params.title,
862
+ onChecked: function onChecked(isChecked) {
863
+ _this5._isChecked[params.type] = isChecked;
864
+ }
865
+ }),
866
+ onOk: function onOk() {
867
+ if (params.type === 'remove') {
868
+ _this5.removeWaitingRoomUser(params.userId, _this5._isChecked[params.type] ? _type4.FcrUserKickedOutType.Forever : _type4.FcrUserKickedOutType.Once);
869
+ }
870
+ if (params.type === 'removeAll') {
871
+ _this5.kickOutWaitingRoomAllMember(_this5._isChecked[params.type] ? _type4.FcrUserKickedOutType.Forever : _type4.FcrUserKickedOutType.Once);
872
+ }
873
+ if (params.type === 'admitAll') {
874
+ _this5.moveToMainRoomAllMember();
875
+ }
876
+ _this5._uiEventStore.closeConfirm(key);
877
+ },
878
+ okText: buttonTextMap[params.type]
879
+ });
880
+ }
881
+ }, {
882
+ key: "setMuteAllDialogValue",
883
+ value: function setMuteAllDialogValue(allowUnmuteSelfAudio, allowJoinWithMuteAudio) {
884
+ this.allowUnmute = allowUnmuteSelfAudio;
885
+ this.joinWithMuteAudio = allowJoinWithMuteAudio;
886
+ }
887
+ }, {
888
+ key: "openMuteAllDialog",
889
+ value: function openMuteAllDialog(params) {
890
+ var _this6 = this;
891
+ this.openConfirmDialog({
892
+ title: (0, _i18n.transI18n)('fmt_attendies_options_muteall'),
893
+ content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
894
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_muteAll.MuteAllDialog, {
895
+ allowUnmuteSelfAudio: this.allowUnmuteSelfAudio,
896
+ allowJoinWithMuteAudio: this.allowJoinWithMuteAudio,
897
+ open: params.open,
898
+ setMuteAllDialogValue: this.setMuteAllDialogValue
899
+ })
900
+ }),
901
+ okButtonProps: {
902
+ styleType: 'danger',
903
+ shape: 'rounded'
904
+ },
905
+ cancelButtonProps: {
906
+ shape: 'rounded'
907
+ },
908
+ okText: (0, _i18n.transI18n)('fmt_attendies_button_muteall'),
909
+ cancelText: (0, _i18n.transI18n)('fmt_attendies_button_cancel'),
910
+ onOk: function onOk() {
911
+ _this6.handlerRoomControlAction(_constant.FcrUIRoomControlType.MUTE_ALL_AUDIO, {
912
+ allowUnmute: _this6.allowUnmute,
913
+ joinWithMuteAudio: _this6.joinWithMuteAudio
914
+ });
915
+ }
850
916
  });
851
917
  }
852
918
  }, {
853
919
  key: "handlerUserAction",
854
920
  value: function handlerUserAction(action, userId) {
855
- var _this5 = this;
921
+ var _this7 = this;
856
922
  switch (action) {
857
923
  case _attendee.ParticipantActionType.MUTE_AUDIO:
858
924
  this._muteUserAudio(userId);
@@ -870,17 +936,20 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
870
936
  this._privateChat(userId);
871
937
  break;
872
938
  case _attendee.ParticipantActionType.KICK_OUT:
873
- if (this.activeTab === _constant.RoomType.MAIN_ROOM) {
939
+ if (this.activeTab === _type5.FcrRoomType.Mainroom) {
874
940
  this._kickOutUser(userId);
875
941
  } else {
876
942
  var _this$userMap$get5;
877
- this.openRemoveAdmitWaitingRoomDialog(_constant.DialogKey.WAITING_ROOM_SINGLE_REMOVE, {
943
+ this.openRemoveAdmitWaitingRoomDialog({
878
944
  userId: userId,
879
945
  type: 'remove',
880
946
  title: (0, _i18n.transI18n)('fmt_waitingroom_sidebar_popup_removeall'),
881
947
  tooltip: (0, _i18n.transI18n)('fmt_waitingroom_sidebar_popup_label_remove', {
882
948
  reason1: (_this$userMap$get5 = this.userMap.get(userId)) === null || _this$userMap$get5 === void 0 ? void 0 : _this$userMap$get5.userInfo.userName
883
- })
949
+ }),
950
+ onChecked: function onChecked(isChecked) {
951
+ _this7._isChecked['remove'] = isChecked;
952
+ }
884
953
  });
885
954
  }
886
955
  break;
@@ -918,7 +987,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
918
987
  title: (0, _i18n.transI18n)('fmt_additional_option_rename_in_meeting'),
919
988
  content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_rename["default"], {
920
989
  onChange: function onChange(value) {
921
- return _this5.newName = value;
990
+ return _this7.newName = value;
922
991
  }
923
992
  }),
924
993
  onOk: function () {
@@ -927,11 +996,11 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
927
996
  while (1) switch (_context.prev = _context.next) {
928
997
  case 0:
929
998
  _context.next = 2;
930
- return _this5._userControl.updateUserName(userId, _this5.newName);
999
+ return _this7._userControl.updateUserName(userId, _this7.newName);
931
1000
  case 2:
932
1001
  (0, _mobx.runInAction)(function () {
933
- _this5._closeChangeNameDialog();
934
- _this5._uiEventStore.showToast({
1002
+ _this7._closeChangeNameDialog();
1003
+ _this7._uiEventStore.showToast({
935
1004
  type: 'normal',
936
1005
  message: (0, _i18n.transI18n)('fmt_additional_tips_nickname_change_success')
937
1006
  });
@@ -949,8 +1018,9 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
949
1018
  }(),
950
1019
  alignCenter: true,
951
1020
  onCancel: function onCancel() {
952
- _this5._closeChangeNameDialog();
1021
+ _this7._closeChangeNameDialog();
953
1022
  },
1023
+ closable: false,
954
1024
  height: 190
955
1025
  });
956
1026
  this._changeNameDialogKey.push(key);
@@ -959,10 +1029,10 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
959
1029
  }, {
960
1030
  key: "_closeChangeNameDialog",
961
1031
  value: function _closeChangeNameDialog() {
962
- var _this6 = this;
1032
+ var _this8 = this;
963
1033
  if (this._changeNameDialogKey.length > 0) {
964
1034
  this._changeNameDialogKey.forEach(function (key) {
965
- _this6._uiEventStore.closeConfirm(key);
1035
+ _this8._uiEventStore.closeConfirm(key);
966
1036
  });
967
1037
  this._changeNameDialogKey = [];
968
1038
  }
@@ -1084,34 +1154,34 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1084
1154
  key: "handlerRoomControlAction",
1085
1155
  value: function handlerRoomControlAction(action, data) {
1086
1156
  switch (action) {
1087
- case _constant.RoomControlType.MUTE_ALL_AUDIO:
1157
+ case _constant.FcrUIRoomControlType.MUTE_ALL_AUDIO:
1088
1158
  this._muteAllAudio(data.allowUnmute, data.joinWithMuteAudio);
1089
1159
  break;
1090
- case _constant.RoomControlType.UNMUTE_ALL_AUDIO:
1160
+ case _constant.FcrUIRoomControlType.UNMUTE_ALL_AUDIO:
1091
1161
  this._unmuteAllAudio();
1092
1162
  break;
1093
- case _constant.RoomControlType.ALLOW_ATTENDEE_TO_UNMUTE:
1163
+ case _constant.FcrUIRoomControlType.ALLOW_ATTENDEE_TO_UNMUTE:
1094
1164
  this._enableSelfUnmute(data);
1095
1165
  break;
1096
- case _constant.RoomControlType.ALLOW_ATTENDEE_TO_OPEN_CAMERA:
1166
+ case _constant.FcrUIRoomControlType.ALLOW_ATTENDEE_TO_OPEN_CAMERA:
1097
1167
  this._enableOpenVideo(data);
1098
1168
  break;
1099
- case _constant.RoomControlType.REVOKE_HOST:
1169
+ case _constant.FcrUIRoomControlType.REVOKE_HOST:
1100
1170
  this._revokeHost();
1101
1171
  break;
1102
- case _constant.RoomControlType.PLAY_JOIN_LEAVE_SOUND:
1172
+ case _constant.FcrUIRoomControlType.PLAY_JOIN_LEAVE_SOUND:
1103
1173
  this._playJoinLeaveSound();
1104
1174
  break;
1105
- case _constant.RoomControlType.LOCK_ROOM:
1175
+ case _constant.FcrUIRoomControlType.LOCK_ROOM:
1106
1176
  this._lockRoom(data);
1107
1177
  break;
1108
- case _constant.RoomControlType.ENABLE_WAITING_ROOM:
1178
+ case _constant.FcrUIRoomControlType.ENABLE_WAITING_ROOM:
1109
1179
  this._enableWaitingRoom(data);
1110
1180
  break;
1111
- case _constant.RoomControlType.RENAME:
1181
+ case _constant.FcrUIRoomControlType.RENAME:
1112
1182
  this._enableRename();
1113
1183
  break;
1114
- case _constant.RoomControlType.JOIN_WITH_MUTE_AUDIO:
1184
+ case _constant.FcrUIRoomControlType.JOIN_WITH_MUTE_AUDIO:
1115
1185
  this.enableJoinWithMuteAudio(data);
1116
1186
  break;
1117
1187
  }
@@ -1119,42 +1189,31 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1119
1189
  }, {
1120
1190
  key: "_handleEvent",
1121
1191
  value: function _handleEvent(action, payload) {
1122
- if (action === _constant.UIAction.MAIN_LIST_CHANGED) {
1192
+ if (action === _constant.FcrUIAction.MAIN_LIST_CHANGED) {
1123
1193
  this._mainList = payload || [];
1124
1194
  }
1125
- if (action === _constant.UIAction.SPOTLIGHT_STREAM_CHANGED) {
1195
+ if (action === _constant.FcrUIAction.CUSTOM_SETTINGS_CHANGED) {
1126
1196
  var _ref6 = payload,
1127
- type = _ref6.type,
1128
- streamId = _ref6.streamId;
1129
- if (type === 'add') {
1130
- this.setSpotlightStreamId(streamId);
1131
- } else {
1132
- this.setSpotlightStreamId('');
1133
- }
1134
- }
1135
- if (action === _constant.UIAction.CUSTOM_SETTINGS_CHANGED) {
1136
- var _ref7 = payload,
1137
- spotlightEnabled = _ref7.spotlightEnabled;
1138
- this.enableSpotlight = spotlightEnabled;
1197
+ spotlightEnabled = _ref6.spotlightEnabled;
1198
+ // this.enableSpotlight = spotlightEnabled;
1139
1199
  }
1140
- if (action === _constant.UIAction.CHANGE_PARTICIPANT_TAB) {
1200
+ if (action === _constant.FcrUIAction.CHANGE_PARTICIPANT_TAB) {
1141
1201
  this.handleActiveTab(payload);
1142
1202
  }
1143
- if (action === _constant.UIAction.WAITING_ROOM_DESTROYED) {
1203
+ if (action === _constant.FcrUIAction.WAITING_ROOM_DESTROYED) {
1144
1204
  var _this$_waitingRoomUse3;
1145
1205
  (_this$_waitingRoomUse3 = this._waitingRoomUserControl) === null || _this$_waitingRoomUse3 === void 0 || _this$_waitingRoomUse3.removeObserver(this._waitingRoomUserObserver);
1146
1206
  this._waitingRoomControl = undefined;
1147
1207
  this._waitingRoomUserControl = undefined;
1148
- this.waitingRoomUserCount = 0;
1149
- this.handleActiveTab(_constant.RoomType.MAIN_ROOM);
1208
+ this.handleActiveTab(_type5.FcrRoomType.Mainroom);
1150
1209
  }
1151
- if (action === _constant.UIAction.START_SHARE_SCREEN) {
1210
+ if (action === _constant.FcrUIAction.START_SHARE_SCREEN) {
1152
1211
  this._screenSharingState = _fcrCore.FcrMediaSourceState.OPEN;
1153
1212
  }
1154
- if (action === _constant.UIAction.STOP_SHARE_SCREEN) {
1213
+ if (action === _constant.FcrUIAction.STOP_SHARE_SCREEN) {
1155
1214
  this._screenSharingState = _fcrCore.FcrMediaSourceState.CLOSE;
1156
1215
  }
1157
- if (action === _constant.UIAction.PARTICIPANT_ACTION) {
1216
+ if (action === _constant.FcrUIAction.PARTICIPANT_ACTION) {
1158
1217
  this.handlerUserAction(payload.action, payload.userId);
1159
1218
  }
1160
1219
  }
@@ -1169,16 +1228,12 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1169
1228
  key: "handleActiveTab",
1170
1229
  value: function handleActiveTab(tab) {
1171
1230
  this.activeTab = tab;
1172
- this._uiEventStore.sendEvent(_constant.UIAction.CURRENT_PARTITIPANT_TAB, tab);
1173
- if (this.activeTab === _constant.RoomType.WAITING_ROOM) {
1174
- this.isNewWaitingRoomUserEnter = false;
1231
+ this.refreshList = Math.random();
1232
+ // this._uiEventStore.sendEvent(FcrUIAction.CURRENT_PARTITIPANT_TAB, tab);
1233
+ if (this.activeTab === _type5.FcrRoomType.Waitingroom) {
1234
+ this._sharedWaitingRoomDataSource.unReadState = false;
1175
1235
  }
1176
1236
  }
1177
- }, {
1178
- key: "getInterpreterState",
1179
- value: function getInterpreterState() {
1180
- return this._interpreterControl.getState().enable;
1181
- }
1182
1237
  }, {
1183
1238
  key: "_initWaitingRoomUserList",
1184
1239
  value: function _initWaitingRoomUserList() {
@@ -1200,7 +1255,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1200
1255
  function _muteUserAudio(user) {
1201
1256
  var isSelf = user === this._localUser.userId;
1202
1257
  if (isSelf) {
1203
- this._deviceStreamStore.enableMicrophoneWithStream(false);
1258
+ this._deviceStreamStore.enableMicrophoneWithPreCheck(false);
1204
1259
  } else {
1205
1260
  var targetUsers = this._streamControl.getStreamsByUserId(user);
1206
1261
  var targetUser = targetUsers.find(function (user) {
@@ -1220,7 +1275,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1220
1275
  value: function _unmuteUserAudio(userId) {
1221
1276
  var isSelf = userId === this._localUser.userId;
1222
1277
  if (isSelf) {
1223
- this._deviceStreamStore.enableMicrophoneWithStream(true);
1278
+ this._deviceStreamStore.enableMicrophoneWithPreCheck(true);
1224
1279
  } else {
1225
1280
  var _this$_unmuteAudioTim;
1226
1281
  var targetUsers = this._streamControl.getStreamsByUserId(userId);
@@ -1250,7 +1305,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1250
1305
  value: function _muteUserVideo(user) {
1251
1306
  var isSelf = user === this._localUser.userId;
1252
1307
  if (isSelf) {
1253
- this._deviceStreamStore.enableCameraWithStream(false);
1308
+ this._deviceStreamStore.enableCameraWithPreCheck(false);
1254
1309
  } else {
1255
1310
  var targetUsers = this._streamControl.getStreamsByUserId(user);
1256
1311
  var targetUser = targetUsers.find(function (user) {
@@ -1272,13 +1327,13 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1272
1327
  value: function _unmuteUserVideo(userId) {
1273
1328
  var isSelf = userId === this._localUser.userId;
1274
1329
  if (isSelf) {
1275
- this._deviceStreamStore.enableCameraWithStream(true);
1330
+ this._deviceStreamStore.enableCameraWithPreCheck(true);
1276
1331
  } else {
1277
1332
  var localUser = this._localUser;
1278
1333
  var targetUsers = this._streamControl.getStreamsByUserId(userId);
1279
1334
  var targetUser = targetUsers[0];
1280
1335
  if (localUser.userId === userId) {
1281
- this._deviceStreamStore.enableCameraWithStream(true);
1336
+ this._deviceStreamStore.enableCameraWithPreCheck(true);
1282
1337
  } else {
1283
1338
  var _this$_unmuteVideoTim;
1284
1339
  var now = Date.now();
@@ -1303,34 +1358,36 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1303
1358
  if (!this._securityStore.permitPrivateChat(userId)) {
1304
1359
  return;
1305
1360
  }
1306
- this._uiEventStore.updateAside({
1307
- chat: true
1308
- });
1309
- this._uiEventStore.sendEvent(_constant.UIAction.TOGGLE_CHAT_ROOM_TAB, this.activeTab);
1361
+ if (this._sharedLayoutDataSource.chatRenderAt !== 'dialog') {
1362
+ this._sharedLayoutDataSource.setAsideLayout({
1363
+ chat: true
1364
+ });
1365
+ this._uiEventStore.sendEvent(_constant.FcrUIAction.TOGGLE_CHAT_ROOM_TAB, this.activeTab);
1366
+ }
1310
1367
  var userData = this.userListSource.find(function (u) {
1311
1368
  return u.userId === userId;
1312
1369
  });
1313
- userData && this._uiEventStore.notifyChatUpdateTarget(userData.userInfo, this.activeTab);
1370
+ userData && this._chatProvider.setPrivateChatTargetUser(userData.userInfo, this.activeTab);
1314
1371
  if ((0, _env.isElectron)() && this._screenSharingState === _fcrCore.FcrMediaSourceState.OPEN) {
1315
- this._uiEventStore.openDialog(_constant.DialogKey.CHAT);
1372
+ this._uiEventStore.openDialog(_constant.FcrUIDialogKey.CHAT);
1316
1373
  }
1317
1374
  }
1318
1375
  }, {
1319
1376
  key: "_kickOutUser",
1320
1377
  value: function _kickOutUser(userId) {
1321
- var _this7 = this,
1378
+ var _this9 = this,
1322
1379
  _this$userMap$get7;
1323
1380
  var dialogId = this.openConfirmDialog({
1324
1381
  title: '',
1325
1382
  onCancel: function onCancel() {
1326
- _this7._uiEventStore.closeConfirm(dialogId);
1383
+ _this9._uiEventStore.closeConfirm(dialogId);
1327
1384
  },
1328
1385
  content: (0, _i18n.transI18n)('fmt_uimanager_tips_Remove', {
1329
1386
  reason2: (_this$userMap$get7 = this.userMap.get(userId)) === null || _this$userMap$get7 === void 0 ? void 0 : _this$userMap$get7.userInfo.userName
1330
1387
  }),
1331
1388
  onOk: function onOk() {
1332
- _this7._userControl.kickOut(userId, _type4.FcrUserKickedOutType.Once);
1333
- _this7._uiEventStore.closeConfirm(dialogId);
1389
+ _this9._userControl.kickOut(userId, _type4.FcrUserKickedOutType.Once);
1390
+ _this9._uiEventStore.closeConfirm(dialogId);
1334
1391
  },
1335
1392
  height: 160
1336
1393
  }, 'KICK_OUT');
@@ -1339,7 +1396,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1339
1396
  key: "_handleSetHostOrCoHost",
1340
1397
  value: function _handleSetHostOrCoHost(userId, type) {
1341
1398
  var _this$userMap$get8,
1342
- _this8 = this;
1399
+ _this10 = this;
1343
1400
  var username = (_this$userMap$get8 = this.userMap.get(userId)) === null || _this$userMap$get8 === void 0 ? void 0 : _this$userMap$get8.userInfo.userName;
1344
1401
  var targetRole = type === 'host' ? (0, _i18n.transI18n)('fmt_role_host') : (0, _i18n.transI18n)('fmt_role_cohost');
1345
1402
  var dialogId = this.openConfirmDialog({
@@ -1347,22 +1404,22 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1347
1404
  reason1: targetRole
1348
1405
  }),
1349
1406
  onCancel: function onCancel() {
1350
- _this8._uiEventStore.closeConfirm(dialogId);
1407
+ _this10._uiEventStore.closeConfirm(dialogId);
1351
1408
  },
1352
1409
  content: (0, _i18n.transI18n)('fmt_uimanager_tips_designedas', {
1353
1410
  reason1: username,
1354
1411
  reason2: targetRole
1355
1412
  }),
1356
1413
  onOk: function onOk() {
1357
- if (!_this8.userMap.has(userId)) {
1358
- _this8._uiEventStore.showToast({
1414
+ if (!_this10.userMap.has(userId)) {
1415
+ _this10._uiEventStore.showToast({
1359
1416
  type: 'error',
1360
1417
  message: (0, _i18n.transI18n)('fmt_uimanager_tips_userleaft')
1361
1418
  });
1362
1419
  return;
1363
1420
  }
1364
- _this8._userControl.updateRemoteUserRole(userId, type === 'host' ? _type.FcrUserRole.HOST : _type.FcrUserRole.COHOST);
1365
- _this8._uiEventStore.closeConfirm(dialogId);
1421
+ _this10._userControl.updateRemoteUserRole(userId, type === 'host' ? _type.FcrUserRole.HOST : _type.FcrUserRole.COHOST);
1422
+ _this10._uiEventStore.closeConfirm(dialogId);
1366
1423
  },
1367
1424
  okText: (0, _i18n.transI18n)('fmt_uimanager_labels_Setas', {
1368
1425
  reason1: targetRole
@@ -1428,9 +1485,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1428
1485
  }
1429
1486
  }, {
1430
1487
  key: "_playJoinLeaveSound",
1431
- value: function _playJoinLeaveSound() {
1432
- // TODO
1433
- }
1488
+ value: function _playJoinLeaveSound() {}
1434
1489
  }, {
1435
1490
  key: "_lockRoom",
1436
1491
  value: function _lockRoom(enable) {
@@ -1469,111 +1524,81 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1469
1524
  }
1470
1525
  }, {
1471
1526
  key: "_updateUserBoardState",
1472
- value: function _updateUserBoardState(modifiedUser) {
1473
- var _this$_roomControl$ge = this._roomControl.getBoardControl().getBoardActiveInfo(),
1474
- isActive = _this$_roomControl$ge.isActive,
1475
- ownerUserId = _this$_roomControl$ge.ownerUserId;
1476
- if (!ownerUserId && !modifiedUser) return;
1477
- var ownerUser = this._userControl.getUser(ownerUserId);
1478
- var targetUser = modifiedUser || ownerUser;
1479
- this._dataSource.update(!isActive ? ownerUser : targetUser, !isActive ? isActive : ownerUserId === (targetUser === null || targetUser === void 0 ? void 0 : targetUser.userId) && isActive);
1527
+ value: function _updateUserBoardState() {
1528
+ var _boardInfo = this._roomControl.getBoardControl().getBoardActiveInfo();
1529
+ var isActive = _boardInfo.isActive,
1530
+ ownerUserId = _boardInfo.ownerUserId;
1531
+ this._dataSource.list.forEach(function (user) {
1532
+ var isBoardActive = isActive && user.userId === ownerUserId;
1533
+ user.setUserInfo(_objectSpread(_objectSpread({}, user.userInfo), {}, {
1534
+ isBoardActive: isBoardActive
1535
+ }));
1536
+ });
1537
+ this._dataSource.list = (0, _toConsumableArray2["default"])(this._dataSource.list);
1480
1538
  }
1481
1539
  }, {
1482
1540
  key: "_handleRemoteUserJoined",
1483
1541
  value: function _handleRemoteUserJoined(roomId, events) {
1484
- var _this9 = this;
1542
+ var _this11 = this;
1485
1543
  events.forEach(function (event) {
1486
1544
  var modifiedUser = event.modifiedUser;
1487
- _this9._dataSource.add(modifiedUser, _this9._streamControl.getStreamsByUserId(modifiedUser.userId), modifiedUser.userId === _this9._localUser.userId);
1488
- _this9._updateUserBoardState(modifiedUser);
1545
+ _this11._dataSource.add(modifiedUser, _this11._streamControl.getStreamsByUserId(modifiedUser.userId), modifiedUser.userId === _this11._localUser.userId);
1546
+ _this11._updateUserBoardState();
1489
1547
  });
1490
1548
  }
1491
1549
  }, {
1492
1550
  key: "_handleRemoteUserLeft",
1493
1551
  value: function _handleRemoteUserLeft(roomId, events) {
1494
- var _this10 = this;
1552
+ var _this12 = this;
1495
1553
  events.forEach(function (event) {
1496
1554
  var modifiedUser = event.modifiedUser;
1497
- _this10._dataSource["delete"](modifiedUser);
1498
- _this10._updateUserBoardState(modifiedUser);
1555
+ _this12._dataSource["delete"](modifiedUser);
1556
+ _this12._updateUserBoardState();
1499
1557
  });
1500
1558
  }
1501
1559
  }, {
1502
1560
  key: "_handleRemoteWaitingUserJoined",
1503
1561
  value: function _handleRemoteWaitingUserJoined(roomId, events) {
1504
- var _this11 = this;
1562
+ var _this13 = this;
1505
1563
  events.forEach(function (event) {
1506
1564
  var modifiedUser = event.modifiedUser;
1507
1565
  if (modifiedUser.userRole === _type.FcrUserRole.PARTICIPANT) {
1508
- _this11._waitingRoomDataSource.add(modifiedUser, _this11._streamControl.getStreamsByUserId(modifiedUser.userId), modifiedUser.userId === _this11._localUser.userId);
1566
+ _this13._waitingRoomDataSource.add(modifiedUser, _this13._streamControl.getStreamsByUserId(modifiedUser.userId), modifiedUser.userId === _this13._localUser.userId);
1509
1567
  // this._updateUserBoardState(modifiedUser);
1510
1568
  }
1511
1569
  });
1512
- if (this.activeTab === _constant.RoomType.MAIN_ROOM) {
1513
- this.isNewWaitingRoomUserEnter = true;
1514
- }
1515
- this.waitingRoomUserCount = this._getWaitingRoomUserCount();
1516
- }
1517
- }, {
1518
- key: "_getWaitingRoomUserCount",
1519
- value: function _getWaitingRoomUserCount() {
1520
- var _this$_waitingRoomUse4;
1521
- return (_this$_waitingRoomUse4 = this._waitingRoomUserControl) === null || _this$_waitingRoomUse4 === void 0 ? void 0 : _this$_waitingRoomUse4.getUserList().filter(function (user) {
1522
- return user.userRole === _type.FcrUserRole.PARTICIPANT;
1523
- }).length;
1570
+ // if (this.activeTab === FcrRoomType.Mainroom) {
1571
+ // this.isNewWaitingRoomUserEnter = true;
1572
+ // }
1573
+ // this.waitingRoomUserCount = this._getWaitingRoomUserCount() as number;
1524
1574
  }
1575
+
1576
+ // private _getWaitingRoomUserCount() {
1577
+ // return this._waitingRoomUserControl
1578
+ // ?.getUserList()
1579
+ // .filter((user) => user.userRole === FcrUserRole.PARTICIPANT).length;
1580
+ // }
1525
1581
  }, {
1526
1582
  key: "_handleRemoteWaitingUserLeft",
1527
1583
  value: function _handleRemoteWaitingUserLeft(roomId, events) {
1528
- var _this12 = this;
1584
+ var _this14 = this;
1529
1585
  events.forEach(function (event) {
1530
1586
  var modifiedUser = event.modifiedUser;
1531
- _this12._waitingRoomDataSource["delete"](modifiedUser);
1532
- _this12._updateUserBoardState(modifiedUser);
1587
+ _this14._waitingRoomDataSource["delete"](modifiedUser);
1588
+ // this._updateUserBoardState(modifiedUser);
1533
1589
  });
1534
- this.waitingRoomUserCount = this._getWaitingRoomUserCount();
1535
- if (this._getWaitingRoomUserCount() === 0) {
1536
- this.handleActiveTab(_constant.RoomType.MAIN_ROOM);
1537
- }
1590
+ // this.waitingRoomUserCount = this._getWaitingRoomUserCount() as number;
1591
+ // if (this._getWaitingRoomUserCount() === 0) {
1592
+ // this.handleActiveTab(FcrRoomType.Mainroom);
1593
+ // }
1538
1594
  }
1539
1595
  }, {
1540
1596
  key: "_handleUserInfoUpdated",
1541
1597
  value: function _handleUserInfoUpdated(roomId, event) {
1542
- var _this$userMap$get9;
1598
+ this.refreshList = Math.random();
1543
1599
  var targetUser = event.modifiedUser;
1544
- this._updateUserBoardState(targetUser);
1545
- this._dataSource.update(targetUser);
1546
- var originUser = (_this$userMap$get9 = this.userMap.get(targetUser.userId)) === null || _this$userMap$get9 === void 0 ? void 0 : _this$userMap$get9.userInfo;
1547
- var _this$_localUser3 = this._localUser,
1548
- localUserId = _this$_localUser3.userId,
1549
- localUserRole = _this$_localUser3.userRole;
1550
- var effectSelf = targetUser.userId === localUserId;
1551
- if ((originUser === null || originUser === void 0 ? void 0 : originUser.userRole) !== targetUser.userRole) {
1552
- // 参会者变管理
1553
- if (targetUser.userRole === _type.FcrUserRole.HOST || targetUser.userRole === _type.FcrUserRole.COHOST) {
1554
- var userTxt = targetUser.userRole === _type.FcrUserRole.HOST ? (0, _i18n.transI18n)('fmt_role_host') : (0, _i18n.transI18n)('fmt_role_cohost');
1555
- this._uiEventStore.showToast({
1556
- type: effectSelf ? 'info' : 'normal',
1557
- message: effectSelf ? "".concat((0, _i18n.transI18n)('fmt_uimanager_labels_designate')).concat(userTxt) : (0, _i18n.transI18n)('fmt_uimanager_labels_Becoming', {
1558
- reason1: "".concat(targetUser.userName, " ").concat(this._isHost(localUserRole) ? '' : (0, _i18n.transI18n)('fmt_pairicipant_label_Now')),
1559
- reason2: userTxt
1560
- })
1561
- });
1562
- }
1563
-
1564
- // 管理变参会者
1565
- if ((originUser === null || originUser === void 0 ? void 0 : originUser.userRole) === _type.FcrUserRole.COHOST && targetUser.userRole !== _type.FcrUserRole.COHOST) {
1566
- this._uiEventStore.showToast({
1567
- type: effectSelf ? 'error' : 'normal',
1568
- message: effectSelf ? (0, _i18n.transI18n)('fmt_additional_tips_cohostbeenrevoke') : this._isHost(localUserRole) ? (0, _i18n.transI18n)('fmt_additional_tips_cohostbeenrevoke', {
1569
- reason1: targetUser.userName
1570
- }) : (0, _i18n.transI18n)('fmt_additional_tips_nolongercohost', {
1571
- reason1: targetUser.userName
1572
- }),
1573
- duration: 3000
1574
- });
1575
- }
1576
- }
1600
+ this._dataSource.updateUserInfo(targetUser, true);
1601
+ var localUserRole = this._localUser.userRole;
1577
1602
  this._updateLocalUserRole(localUserRole);
1578
1603
  this._refreshCurrentPerspectiveType();
1579
1604
  }
@@ -1597,35 +1622,36 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1597
1622
  }, {
1598
1623
  key: "_handleStreamsAdded",
1599
1624
  value: function _handleStreamsAdded(roomId, events) {
1600
- var _this13 = this;
1625
+ var _this15 = this;
1601
1626
  events.forEach(function (e) {
1602
1627
  var modifiedStream = e.modifiedStream;
1603
- _this13._dataSource.updateWithStreamAdd(modifiedStream);
1628
+ _this15._dataSource.updateWithStreamAdd(modifiedStream);
1604
1629
  });
1605
1630
  }
1606
1631
  }, {
1607
1632
  key: "_handleStreamsUpdated",
1608
1633
  value: function _handleStreamsUpdated(roomId, events) {
1609
- var _this14 = this;
1634
+ var _this16 = this;
1635
+ this.refreshList = Math.random();
1610
1636
  events.forEach(function (e) {
1611
1637
  var modifiedStream = e.modifiedStream;
1612
- _this14._dataSource.update(modifiedStream);
1638
+ _this16._dataSource.updateStreamInfo(modifiedStream);
1613
1639
  });
1614
1640
  }
1615
1641
  }, {
1616
1642
  key: "_handleStreamsRemoved",
1617
1643
  value: function _handleStreamsRemoved(roomId, events) {
1618
- var _this15 = this;
1644
+ var _this17 = this;
1619
1645
  events.forEach(function (e) {
1620
1646
  var modifiedStream = e.modifiedStream;
1621
- _this15._dataSource.updateWithStreamRemove(modifiedStream);
1647
+ _this17._dataSource.updateWithStreamRemove(modifiedStream);
1622
1648
  });
1623
1649
  }
1624
1650
  }, {
1625
1651
  key: "_refreshCurrentPerspectiveType",
1626
1652
  value: function _refreshCurrentPerspectiveType() {
1627
- var _this$_localUser4;
1628
- var localUserUid = (_this$_localUser4 = this._localUser) === null || _this$_localUser4 === void 0 ? void 0 : _this$_localUser4.userId;
1653
+ var _this$_localUser3;
1654
+ var localUserUid = (_this$_localUser3 = this._localUser) === null || _this$_localUser3 === void 0 ? void 0 : _this$_localUser3.userId;
1629
1655
  if (!localUserUid) {
1630
1656
  this.currentPerspectiveType = 'attendee';
1631
1657
  return;
@@ -1648,13 +1674,13 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1648
1674
  }, {
1649
1675
  key: "_onPeerSessionReceived",
1650
1676
  value: function _onPeerSessionReceived(session) {
1651
- var _this$_localUser5,
1652
- _this16 = this;
1677
+ var _this$_localUser4,
1678
+ _this18 = this;
1653
1679
  if (session.sessionId && this._processedUserOpenDeviceRequests.has(session.sessionId)) {
1654
1680
  return;
1655
1681
  }
1656
1682
  this._processedUserOpenDeviceRequests.add(session.sessionId);
1657
- var localUserUid = (_this$_localUser5 = this._localUser) === null || _this$_localUser5 === void 0 ? void 0 : _this$_localUser5.userId;
1683
+ var localUserUid = (_this$_localUser4 = this._localUser) === null || _this$_localUser4 === void 0 ? void 0 : _this$_localUser4.userId;
1658
1684
  if (!localUserUid) {
1659
1685
  return;
1660
1686
  }
@@ -1673,8 +1699,8 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1673
1699
  this._peerSessionControl.acceptPeerSession(session);
1674
1700
  return;
1675
1701
  }
1676
- var _ref8 = payload,
1677
- sender = _ref8.sender;
1702
+ var _ref7 = payload,
1703
+ sender = _ref7.sender;
1678
1704
  var dialogId = this.openConfirmDialog({
1679
1705
  width: 400,
1680
1706
  height: 166,
@@ -1685,13 +1711,13 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1685
1711
  okText: (0, _i18n.transI18n)('fmt_additional_button_accept'),
1686
1712
  cancelText: (0, _i18n.transI18n)('fmt_additional_button_refuse'),
1687
1713
  onOk: function onOk() {
1688
- _this16._peerSessionControl.acceptPeerSession(session);
1689
- _this16._deviceStreamStore.enableCameraWithStream(true);
1690
- _this16._uiEventStore.closeConfirm(dialogId);
1714
+ _this18._peerSessionControl.acceptPeerSession(session);
1715
+ _this18._deviceStreamStore.enableCameraWithPreCheck(true);
1716
+ _this18._uiEventStore.closeConfirm(dialogId);
1691
1717
  },
1692
1718
  onCancel: function onCancel() {
1693
- _this16._peerSessionControl.rejectPeerSession(session);
1694
- _this16._uiEventStore.closeConfirm(dialogId);
1719
+ _this18._peerSessionControl.rejectPeerSession(session);
1720
+ _this18._uiEventStore.closeConfirm(dialogId);
1695
1721
  }
1696
1722
  }, _type3.FcrUISessionKey.REQUEST_OPEN_CAMERA);
1697
1723
  return;
@@ -1701,8 +1727,8 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1701
1727
  this._peerSessionControl.acceptPeerSession(session);
1702
1728
  return;
1703
1729
  }
1704
- var _ref9 = payload,
1705
- _sender = _ref9.sender;
1730
+ var _ref8 = payload,
1731
+ _sender = _ref8.sender;
1706
1732
  var _dialogId = this.openConfirmDialog({
1707
1733
  title: (0, _i18n.transI18n)('fmt_attendies_tips_apply_audio_title', {
1708
1734
  reason1: (0, _i18n.transI18n)(_i18n2.userRoleI18nKey[_sender.userRole])
@@ -1711,13 +1737,13 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1711
1737
  okText: (0, _i18n.transI18n)('fmt_device_label_audio_unmute'),
1712
1738
  cancelText: (0, _i18n.transI18n)('fmt_additional_options_Keepsilent'),
1713
1739
  onOk: function onOk() {
1714
- _this16._peerSessionControl.acceptPeerSession(session);
1715
- _this16._deviceStreamStore.enableMicrophoneWithStream(true);
1716
- _this16._uiEventStore.closeConfirm(_dialogId);
1740
+ _this18._peerSessionControl.acceptPeerSession(session);
1741
+ _this18._deviceStreamStore.enableMicrophoneWithPreCheck(true);
1742
+ _this18._uiEventStore.closeConfirm(_dialogId);
1717
1743
  },
1718
1744
  onCancel: function onCancel() {
1719
- _this16._peerSessionControl.rejectPeerSession(session);
1720
- _this16._uiEventStore.closeConfirm(_dialogId);
1745
+ _this18._peerSessionControl.rejectPeerSession(session);
1746
+ _this18._uiEventStore.closeConfirm(_dialogId);
1721
1747
  },
1722
1748
  width: 400,
1723
1749
  height: 166
@@ -1792,26 +1818,23 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
1792
1818
  }]);
1793
1819
  }();
1794
1820
  _ParticipantStore = ParticipantStore;
1795
- var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ParticipantStore, [[_mobx.observable, 1, "_mainList"], [_mobx.observable, 1, "_participantsWindowActive"], [_mobx.observable, 1, "currentPerspectiveType"], [_mobx.observable, 1, "audioVolumeMap"], [_mobx.observable, 1, "enableParticipantsJoinWithMute"], [_mobx.observable, 1, "searchText"], [_mobx.observable, 1, "currentModal"], [_mobx.observable, 1, "localUserRole"], [_mobx.observable, 1, "spotlightStreamId"], [_mobx.observable, 1, "enableSpotlight"], [_mobx.observable, 1, "mergeConfirmDialog"], [_mobx.observable, 1, "mergeUserId"], [_mobx.observable, 1, "activeTab"], [_mobx.observable, 1, "isNewWaitingRoomUserEnter"], [_mobx.observable, 1, "waitingRoomUserCount"], [_mobx.observable, 1, "interpreterUsers"], [_mobx.observable, 1, "interpreterState"], [_mobx.observable, 1, "interpreterInputLanguageList"], [_mobx.observable, 1, "newName"], [_mobx.observable, 1, "refreshList"], [_mobx.computed, 3, "userListSource"], [_mobx.computed, 3, "mergeUserInfo"], [_mobx.computed, 3, "userMap"], [_mobx.computed, 3, "pinedStreamIds"], [_mobx.computed, 3, "hasPinnedStream"], [_mobx.computed, 3, "userList"], [_mobx.computed, 3, "localMicVolume"], [_mobx.computed, 3, "hasRevokeHostPermission"], [_setSpotlightStreamIdDecs, 18, "setSpotlightStreamId"], [_decorator.bound, 2, "hasMutePermission"], [_decorator.bound, 2, "hasWaitingRoomPermission"], [_decorator.bound, 2, "hasUnmutePermission"], [_decorator.bound, 2, "hasRequestStartAudioPermission"], [_setCurrentModalDecs, 18, "setCurrentModal"], [_decorator.bound, 2, "closeParticipantsAside"], [_openParticipantsWindowDecs, 18, "openParticipantsWindow"], [_setParticipantsWindowActiveDecs, 18, "setParticipantsWindowActive"], [_handlerSearchUserDecs, 18, "handlerSearchUser"], [_decorator.bound, 2, "onInvite"], [_decorator.bound, 2, "setMergeConfirmDialog"], [_decorator.bound, 2, "mergeConfirmDialogOk"], [_decorator.bound, 2, "removePin"], [_decorator.bound, 2, "addPin"], [_closeRemoveAdmitWaitingRoomDialogDecs, 18, "closeRemoveAdmitWaitingRoomDialog"], [_openRemoveAdmitWaitingRoomDialogDecs, 18, "openRemoveAdmitWaitingRoomDialog"], [_handlerUserActionDecs, 18, "handlerUserAction"], [_closeChangeNameDialogDecs, 18, "_closeChangeNameDialog"], [_moveToWaitingRoomByUserIdsDecs, 18, "_moveToWaitingRoomByUserIds"], [_removeWaitingRoomUserDecs, 18, "removeWaitingRoomUser"], [_kickOutWaitingRoomAllMemberDecs, 18, "kickOutWaitingRoomAllMember"], [_moveToMainRoomAllMemberDecs, 18, "moveToMainRoomAllMember"], [_decorator.bound, 2, "getMicStreamVolume"], [_handlerRoomControlActionDecs, 18, "handlerRoomControlAction"], [_handleEventDecs, 18, "_handleEvent"], [_moveToMainRoomByUserIdsDecs, 18, "moveToMainRoomByUserIds"], [_handleActiveTabDecs, 18, "handleActiveTab"], [_getInterpreterStateDecs, 18, "getInterpreterState"], [_initWaitingRoomUserListDecs, 18, "_initWaitingRoomUserList"], [_kickOutUserDecs, 18, "_kickOutUser"], [_setAsAttendeeDecs, 18, "_setAsAttendee"], [_onAudioVolumeUpdatedDecs, 18, "_onAudioVolumeUpdated"], [_handleRemoteUserJoinedDecs, 18, "_handleRemoteUserJoined"], [_handleRemoteUserLeftDecs, 18, "_handleRemoteUserLeft"], [_handleRemoteWaitingUserJoinedDecs, 18, "_handleRemoteWaitingUserJoined"], [_handleRemoteWaitingUserLeftDecs, 18, "_handleRemoteWaitingUserLeft"], [_handleUserInfoUpdatedDecs, 18, "_handleUserInfoUpdated"], [_initUserListDecs, 18, "_initUserList"], [_decorator.bound, 2, "_handleStreamsAdded"], [_decorator.bound, 2, "_handleStreamsUpdated"], [_decorator.bound, 2, "_handleStreamsRemoved"], [_refreshCurrentPerspectiveTypeDecs, 18, "_refreshCurrentPerspectiveType"], [_onPeerSessionReceivedDecs, 18, "_onPeerSessionReceived"], [_updateLocalUserRoleDecs, 18, "_updateLocalUserRole"], [_getOutputLanguageDecs, 18, "_getOutputLanguage"]], []).e, 21);
1821
+ var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ParticipantStore, [[_mobx.observable, 1, "_mainList"], [_mobx.observable, 1, "_isChecked"], [_mobx.observable, 1, "_participantsWindowActive"], [_mobx.observable, 1, "currentPerspectiveType"], [_mobx.observable, 1, "audioVolumeMap"], [_mobx.observable, 1, "enableParticipantsJoinWithMute"], [_mobx.observable, 1, "searchText"], [_mobx.observable, 1, "currentModal"], [_mobx.observable, 1, "localUserRole"], [_mobx.observable, 1, "mergeConfirmDialog"], [_mobx.observable, 1, "mergeUserId"], [_mobx.observable, 1, "activeTab"], [_mobx.observable, 1, "interpreterInputLanguageList"], [_mobx.observable, 1, "newName"], [_mobx.observable, 1, "refreshList"], [_mobx.observable, 1, "allowUnmute"], [_mobx.observable, 1, "joinWithMuteAudio"], [_mobx.computed, 3, "enableSpotlight"], [_mobx.computed, 3, "userListSource"], [_mobx.computed, 3, "spotlightStreamId"], [_mobx.computed, 3, "mergeUserInfo"], [_mobx.computed, 3, "userMap"], [_mobx.computed, 3, "pinedStreamIds"], [_mobx.computed, 3, "hasPinnedStream"], [_mobx.computed, 3, "userList"], [_mobx.computed, 3, "localMicVolume"], [_mobx.computed, 3, "hasRevokeHostPermission"], [_mobx.computed, 3, "waitingRoomUserCount"], [_mobx.computed, 3, "isNewWaitingRoomUserEnter"], [_decorator.bound, 2, "hasMutePermission"], [_decorator.bound, 2, "hasWaitingRoomPermission"], [_decorator.bound, 2, "hasUnmutePermission"], [_decorator.bound, 2, "hasRequestStartAudioPermission"], [_setCurrentModalDecs, 18, "setCurrentModal"], [_decorator.bound, 2, "closeParticipantsAside"], [_openParticipantsWindowDecs, 18, "openParticipantsWindow"], [_setParticipantsWindowActiveDecs, 18, "setParticipantsWindowActive"], [_handlerSearchUserDecs, 18, "handlerSearchUser"], [_decorator.bound, 2, "onInvite"], [_decorator.bound, 2, "setMergeConfirmDialog"], [_decorator.bound, 2, "mergeConfirmDialogOk"], [_decorator.bound, 2, "removePin"], [_decorator.bound, 2, "addPin"], [_closeRemoveAdmitWaitingRoomDialogDecs, 18, "closeRemoveAdmitWaitingRoomDialog"], [_openRemoveAdmitWaitingRoomDialogDecs, 18, "openRemoveAdmitWaitingRoomDialog"], [_setMuteAllDialogValueDecs, 18, "setMuteAllDialogValue"], [_openMuteAllDialogDecs, 18, "openMuteAllDialog"], [_handlerUserActionDecs, 18, "handlerUserAction"], [_closeChangeNameDialogDecs, 18, "_closeChangeNameDialog"], [_moveToWaitingRoomByUserIdsDecs, 18, "_moveToWaitingRoomByUserIds"], [_removeWaitingRoomUserDecs, 18, "removeWaitingRoomUser"], [_kickOutWaitingRoomAllMemberDecs, 18, "kickOutWaitingRoomAllMember"], [_moveToMainRoomAllMemberDecs, 18, "moveToMainRoomAllMember"], [_decorator.bound, 2, "getMicStreamVolume"], [_handlerRoomControlActionDecs, 18, "handlerRoomControlAction"], [_handleEventDecs, 18, "_handleEvent"], [_moveToMainRoomByUserIdsDecs, 18, "moveToMainRoomByUserIds"], [_handleActiveTabDecs, 18, "handleActiveTab"], [_initWaitingRoomUserListDecs, 18, "_initWaitingRoomUserList"], [_kickOutUserDecs, 18, "_kickOutUser"], [_setAsAttendeeDecs, 18, "_setAsAttendee"], [_onAudioVolumeUpdatedDecs, 18, "_onAudioVolumeUpdated"], [_updateUserBoardStateDecs, 18, "_updateUserBoardState"], [_handleRemoteUserJoinedDecs, 18, "_handleRemoteUserJoined"], [_handleRemoteUserLeftDecs, 18, "_handleRemoteUserLeft"], [_handleRemoteWaitingUserJoinedDecs, 18, "_handleRemoteWaitingUserJoined"], [_handleRemoteWaitingUserLeftDecs, 18, "_handleRemoteWaitingUserLeft"], [_handleUserInfoUpdatedDecs, 18, "_handleUserInfoUpdated"], [_initUserListDecs, 18, "_initUserList"], [_decorator.bound, 2, "_handleStreamsAdded"], [_decorator.bound, 2, "_handleStreamsUpdated"], [_decorator.bound, 2, "_handleStreamsRemoved"], [_refreshCurrentPerspectiveTypeDecs, 18, "_refreshCurrentPerspectiveType"], [_onPeerSessionReceivedDecs, 18, "_onPeerSessionReceived"], [_updateLocalUserRoleDecs, 18, "_updateLocalUserRole"], [_getOutputLanguageDecs, 18, "_getOutputLanguage"]], []).e, 18);
1796
1822
  _init__mainList = _applyDecs$e[0];
1797
- _init__participantsWindowActive = _applyDecs$e[1];
1798
- _init_currentPerspectiveType = _applyDecs$e[2];
1799
- _init_audioVolumeMap = _applyDecs$e[3];
1800
- _init_enableParticipantsJoinWithMute = _applyDecs$e[4];
1801
- _init_searchText = _applyDecs$e[5];
1802
- _init_currentModal = _applyDecs$e[6];
1803
- _init_localUserRole = _applyDecs$e[7];
1804
- _init_spotlightStreamId = _applyDecs$e[8];
1805
- _init_enableSpotlight = _applyDecs$e[9];
1806
- _init_mergeConfirmDialog = _applyDecs$e[10];
1807
- _init_mergeUserId = _applyDecs$e[11];
1808
- _init_activeTab = _applyDecs$e[12];
1809
- _init_isNewWaitingRoomUserEnter = _applyDecs$e[13];
1810
- _init_waitingRoomUserCount = _applyDecs$e[14];
1811
- _init_interpreterUsers = _applyDecs$e[15];
1812
- _init_interpreterState = _applyDecs$e[16];
1813
- _init_interpreterInputLanguageList = _applyDecs$e[17];
1814
- _init_newName = _applyDecs$e[18];
1815
- _init_refreshList = _applyDecs$e[19];
1816
- _initProto = _applyDecs$e[20];
1823
+ _init__isChecked = _applyDecs$e[1];
1824
+ _init__participantsWindowActive = _applyDecs$e[2];
1825
+ _init_currentPerspectiveType = _applyDecs$e[3];
1826
+ _init_audioVolumeMap = _applyDecs$e[4];
1827
+ _init_enableParticipantsJoinWithMute = _applyDecs$e[5];
1828
+ _init_searchText = _applyDecs$e[6];
1829
+ _init_currentModal = _applyDecs$e[7];
1830
+ _init_localUserRole = _applyDecs$e[8];
1831
+ _init_mergeConfirmDialog = _applyDecs$e[9];
1832
+ _init_mergeUserId = _applyDecs$e[10];
1833
+ _init_activeTab = _applyDecs$e[11];
1834
+ _init_interpreterInputLanguageList = _applyDecs$e[12];
1835
+ _init_newName = _applyDecs$e[13];
1836
+ _init_refreshList = _applyDecs$e[14];
1837
+ _init_allowUnmute = _applyDecs$e[15];
1838
+ _init_joinWithMuteAudio = _applyDecs$e[16];
1839
+ _initProto = _applyDecs$e[17];
1817
1840
  var StoreContext = exports.StoreContext = /*#__PURE__*/(0, _react.createContext)(null);