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
@@ -7,6 +7,7 @@ require("core-js/modules/es.error.cause.js");
7
7
  require("core-js/modules/es.error.to-string.js");
8
8
  require("core-js/modules/es.array.is-array.js");
9
9
  require("core-js/modules/es.date.to-primitive.js");
10
+ require("core-js/modules/es.function.bind.js");
10
11
  require("core-js/modules/es.function.name.js");
11
12
  require("core-js/modules/es.number.constructor.js");
12
13
  require("core-js/modules/es.object.create.js");
@@ -20,34 +21,24 @@ Object.defineProperty(exports, "__esModule", {
20
21
  value: true
21
22
  });
22
23
  exports["default"] = exports.StoreContext = void 0;
23
- require("core-js/modules/es.array.filter.js");
24
24
  require("core-js/modules/es.array.find.js");
25
25
  require("core-js/modules/es.array.for-each.js");
26
- require("core-js/modules/es.array.includes.js");
27
26
  require("core-js/modules/es.array.iterator.js");
28
- require("core-js/modules/es.array.map.js");
29
27
  require("core-js/modules/es.array.push.js");
30
28
  require("core-js/modules/es.array.slice.js");
31
29
  require("core-js/modules/es.array.some.js");
32
- require("core-js/modules/es.function.bind.js");
33
30
  require("core-js/modules/es.map.js");
34
- require("core-js/modules/es.object.entries.js");
35
31
  require("core-js/modules/es.object.to-string.js");
36
32
  require("core-js/modules/es.object.values.js");
37
33
  require("core-js/modules/es.set.js");
38
- require("core-js/modules/es.string.includes.js");
39
34
  require("core-js/modules/es.string.iterator.js");
40
35
  require("core-js/modules/es.weak-map.js");
41
- require("core-js/modules/esnext.async-iterator.filter.js");
42
36
  require("core-js/modules/esnext.async-iterator.find.js");
43
37
  require("core-js/modules/esnext.async-iterator.for-each.js");
44
- require("core-js/modules/esnext.async-iterator.map.js");
45
38
  require("core-js/modules/esnext.async-iterator.some.js");
46
39
  require("core-js/modules/esnext.iterator.constructor.js");
47
- require("core-js/modules/esnext.iterator.filter.js");
48
40
  require("core-js/modules/esnext.iterator.find.js");
49
41
  require("core-js/modules/esnext.iterator.for-each.js");
50
- require("core-js/modules/esnext.iterator.map.js");
51
42
  require("core-js/modules/esnext.iterator.some.js");
52
43
  require("core-js/modules/esnext.map.delete-all.js");
53
44
  require("core-js/modules/esnext.map.emplace.js");
@@ -101,24 +92,19 @@ var _type = require("fcr-core/lib/type");
101
92
  var _decorator = require("agora-foundation/lib/decorator");
102
93
  var _logger = require("agora-foundation/lib/logger");
103
94
  var _type2 = require("../video-window/type");
104
- var _eventStore = require("../../common/event-store");
105
- var _constant = require("../../utilities/constant");
106
95
  var _type3 = require("./type");
107
- var _Layout = require("./components/Layout");
108
- var _videoWindowDatasource = require("./video-window-datasource");
109
96
  var _type4 = require("../whiteboard/type");
110
97
  var _i18n = require("agora-ui-foundation/lib/i18n");
111
98
  var _type5 = require("fcr-core/lib/room-control/chatroom-control/type");
112
99
  var _type6 = require("agora-rte-sdk/lib/core/scene/type");
113
100
  var _attendee = require("agora-ui-foundation/lib/components/participants/attendee");
114
101
  var _type7 = require("fcr-core/lib/room-control/type");
115
- var _type8 = require("fcr-core/lib/room-control/privilege-control/type");
116
- var _get = _interopRequireDefault(require("lodash/get"));
117
- var _parameters = require("../../utilities/parameters");
118
102
  var _react = require("react");
119
103
  var _mobxUtils = require("mobx-utils");
104
+ var _constant = require("../../utilities/constant");
105
+ var _view = require("./view");
120
106
  var _LayoutStore;
121
- var _initProto, _participantDecs, _init_participant, _chatDecs, _init_chat, _chatActionDecs, _init_chatAction, _stateBarDecs, _init_stateBar, _actionBarDecs, _init_actionBar, _layersDecs, _init_layers, _whiteboardDecs, _init_whiteboard, _init_collapsed, _init_galleryMaxSize, _init_aside, _init_asideContent, _init_localUserRole, _init_barHovering, _init_barLocked, _init_barHidden, _init_asideWidth, _init_userVolumeMap, _init_chatRoomState, _init_videoWindowPreviewType, _init_whiteboardActive, _init_spotlightStreamId, _init_shouldHideNonVideoParticipants, _init_participantCount, _init_ownerUser, _init_localUser, _init_enableSpotlight, _init_isWaitingRoomNotify, _init_interpreterUsers, _init_interpreterState, _notifyParticipantShowWaitingRoomDecs, _setIsWaitingRoomNotifyDecs, _setWhiteboardActiveDecs, _setAsideWidthDecs, _updateSlotsDecs, _updateAsideContentDecs, _toggleLayoutDecs, _toggleCollapsedDecs, _setGalleryMaxSizeDecs, _toggleAsideDecs, _asideWidthChangedDecs, _toggleLayoutBarLockDecs, _toggleLayoutBarHiddenDecs, _resetLockTimerDecs, _setHoveringHandlerDecs, _setHoveringLeaveHandlerDecs, _handleLiveLayoutChangeDecs, _onUserInfoUpdatedDecs, _handleLayoutUpdatedDecs, _init__handleLayoutUpdated, _handleFoldListChangedDecs, _handleMainListChangedDecs, _setBarHoveringDecs, _onAllUserCountUpdatedDecs, _handleConnectionUpdatedDecs, _onAudioVolumeUpdatedDecs, _getInterpreterStateDecs, _ref;
107
+ var _initProto, _participantDecs, _init_participant, _chatDecs, _init_chat, _chatActionDecs, _init_chatAction, _stateBarDecs, _init_stateBar, _actionBarDecs, _init_actionBar, _layersDecs, _init_layers, _whiteboardDecs, _init_whiteboard, _init_collapsed, _init_aside, _init_localUserRole, _init_barHovering, _init_barLocked, _init_barHidden, _init_asideWidth, _init_userVolumeMap, _init_chatRoomState, _init_videoWindowPreviewType, _init_whiteboardActive, _init_participantCount, _init_ownerUser, _init_localUser, _setWhiteboardActiveDecs, _setAsideWidthDecs, _updateSlotsDecs, _toggleLayoutDecs, _toggleCollapsedDecs, _toggleAsideDecs, _asideWidthChangedDecs, _toggleLayoutBarLockDecs, _toggleLayoutBarHiddenDecs, _resetLockTimerDecs, _setHoveringHandlerDecs, _setHoveringLeaveHandlerDecs, _handleLiveLayoutChangeDecs, _onUserInfoUpdatedDecs, _handleLayoutUpdatedDecs, _init__handleLayoutUpdated, _handleFoldListChangedDecs, _handleMainListChangedDecs, _setBarHoveringDecs, _onAllUserCountUpdatedDecs, _handleConnectionUpdatedDecs, _onAudioVolumeUpdatedDecs, _ref;
122
108
  function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
123
109
  function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
124
110
  function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
@@ -150,35 +136,16 @@ var _R = /*#__PURE__*/new WeakMap();
150
136
  var _S = /*#__PURE__*/new WeakMap();
151
137
  var _T = /*#__PURE__*/new WeakMap();
152
138
  var _U = /*#__PURE__*/new WeakMap();
153
- var _V = /*#__PURE__*/new WeakMap();
154
- var _W = /*#__PURE__*/new WeakMap();
155
- var _X = /*#__PURE__*/new WeakMap();
156
- var _Y = /*#__PURE__*/new WeakMap();
157
- var _Z = /*#__PURE__*/new WeakMap();
158
- var _a = /*#__PURE__*/new WeakMap();
159
- var _b = /*#__PURE__*/new WeakMap();
160
- var _c = /*#__PURE__*/new WeakMap();
161
- _ref = (_participantDecs = [_mobx.observable, _mobx.observable.ref], _chatDecs = [_mobx.observable, _mobx.observable.ref], _chatActionDecs = [_mobx.observable, _mobx.observable.ref], _stateBarDecs = [_mobx.observable, _mobx.observable.ref], _actionBarDecs = [_mobx.observable, _mobx.observable.ref], _layersDecs = [_mobx.observable, _mobx.observable.ref], _whiteboardDecs = [_mobx.observable, _mobx.observable.ref], _notifyParticipantShowWaitingRoomDecs = [_mobx.action, _mobx.action.bound], _setIsWaitingRoomNotifyDecs = [_mobx.action, _mobx.action.bound], _setWhiteboardActiveDecs = [_mobx.action, _mobx.action.bound], _setAsideWidthDecs = [_mobx.action, _mobx.action.bound], _updateSlotsDecs = [_mobx.action, _mobx.action.bound], _updateAsideContentDecs = [_mobx.action, _mobx.action.bound], _toggleLayoutDecs = [_mobx.action, _mobx.action.bound], _toggleCollapsedDecs = [_mobx.action, _mobx.action.bound], _setGalleryMaxSizeDecs = [_mobx.action, _mobx.action.bound], _toggleAsideDecs = [_mobx.action, _mobx.action.bound], _asideWidthChangedDecs = [_mobx.action, _mobx.action.bound], _toggleLayoutBarLockDecs = [_mobx.action, _mobx.action.bound], _toggleLayoutBarHiddenDecs = [_mobx.action, _mobx.action.bound], _resetLockTimerDecs = [_mobx.action, _mobx.action.bound], _setHoveringHandlerDecs = [_mobx.action, _mobx.action.bound], _setHoveringLeaveHandlerDecs = [_mobx.action, _mobx.action.bound], _handleLiveLayoutChangeDecs = [_mobx.action, _mobx.action.bound], _onUserInfoUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleLayoutUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleFoldListChangedDecs = [_mobx.action, _mobx.action.bound], _handleMainListChangedDecs = [_mobx.action, _mobx.action.bound], _setBarHoveringDecs = [_mobx.action, _mobx.action.bound], _onAllUserCountUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleConnectionUpdatedDecs = [_mobx.action, _mobx.action.bound], _onAudioVolumeUpdatedDecs = [_mobx.action, _mobx.action.bound], _getInterpreterStateDecs = [_mobx.action, _mobx.action.bound], "logger");
139
+ _ref = (_participantDecs = [_mobx.observable, _mobx.observable.ref], _chatDecs = [_mobx.observable, _mobx.observable.ref], _chatActionDecs = [_mobx.observable, _mobx.observable.ref], _stateBarDecs = [_mobx.observable, _mobx.observable.ref], _actionBarDecs = [_mobx.observable, _mobx.observable.ref], _layersDecs = [_mobx.observable, _mobx.observable.ref], _whiteboardDecs = [_mobx.observable, _mobx.observable.ref], _setWhiteboardActiveDecs = [_mobx.action, _mobx.action.bound], _setAsideWidthDecs = [_mobx.action, _mobx.action.bound], _updateSlotsDecs = [_mobx.action, _mobx.action.bound], _toggleLayoutDecs = [_mobx.action, _mobx.action.bound], _toggleCollapsedDecs = [_mobx.action, _mobx.action.bound], _toggleAsideDecs = [_mobx.action, _mobx.action.bound], _asideWidthChangedDecs = [_mobx.action, _mobx.action.bound], _toggleLayoutBarLockDecs = [_mobx.action, _mobx.action.bound], _toggleLayoutBarHiddenDecs = [_mobx.action, _mobx.action.bound], _resetLockTimerDecs = [_mobx.action, _mobx.action.bound], _setHoveringHandlerDecs = [_mobx.action, _mobx.action.bound], _setHoveringLeaveHandlerDecs = [_mobx.action, _mobx.action.bound], _handleLiveLayoutChangeDecs = [_mobx.action, _mobx.action.bound], _onUserInfoUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleLayoutUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleFoldListChangedDecs = [_mobx.action, _mobx.action.bound], _handleMainListChangedDecs = [_mobx.action, _mobx.action.bound], _setBarHoveringDecs = [_mobx.action, _mobx.action.bound], _onAllUserCountUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleConnectionUpdatedDecs = [_mobx.action, _mobx.action.bound], _onAudioVolumeUpdatedDecs = [_mobx.action, _mobx.action.bound], "logger");
162
140
  var LayoutStore = exports["default"] = /*#__PURE__*/function () {
163
141
  function LayoutStore(params) {
164
- var _this = this,
165
- _defaultVideoGalleryS;
142
+ var _this = this;
166
143
  (0, _classCallCheck2["default"])(this, LayoutStore);
167
144
  (0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.getLogger)()));
168
- (0, _defineProperty2["default"])(this, "_videoWindowDataSource", new _videoWindowDatasource.FcrUIVideoWindowDataSource());
169
145
  (0, _defineProperty2["default"])(this, "_localView", null);
170
- (0, _defineProperty2["default"])(this, "_subscriptions", []);
146
+ (0, _defineProperty2["default"])(this, "_disposers", []);
171
147
  (0, _defineProperty2["default"])(this, "_barLockTimer", 0);
172
148
  (0, _defineProperty2["default"])(this, "_liveStreamState", _type.FcrLiveStreamingState.STOPPED);
173
- (0, _defineProperty2["default"])(this, "_chatRoomObserver", {
174
- onConnectionStateUpdated: this._handleConnectionUpdated.bind(this)
175
- });
176
- (0, _defineProperty2["default"])(this, "_waitingRoomUserObserver", {
177
- onRemoteUsersLeft: this._handleRemoteWaitingUserLeft.bind(this)
178
- });
179
- (0, _defineProperty2["default"])(this, "_waitingRoomObserver", {
180
- onRoomMessageReceived: this._handleMessageReceived.bind(this)
181
- });
182
149
  (0, _defineProperty2["default"])(this, "_managerRoleUpdateForToast", new Set([_type.FcrUserRole.HOST, _type.FcrUserRole.COHOST]));
183
150
  // Slots
184
151
  _classPrivateFieldInitSpec(this, _A, _init_participant(this, null));
@@ -190,33 +157,23 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
190
157
  _classPrivateFieldInitSpec(this, _G, _init_whiteboard(this, null));
191
158
  // State
192
159
  _classPrivateFieldInitSpec(this, _H, _init_collapsed(this, true));
193
- _classPrivateFieldInitSpec(this, _I, _init_galleryMaxSize(this));
194
- _classPrivateFieldInitSpec(this, _J, _init_aside(this, false));
195
- _classPrivateFieldInitSpec(this, _K, _init_asideContent(this, {
196
- participant: false,
197
- chat: false
198
- }));
199
- _classPrivateFieldInitSpec(this, _L, _init_localUserRole(this, _type.FcrUserRole.PARTICIPANT));
200
- _classPrivateFieldInitSpec(this, _M, _init_barHovering(this, true));
201
- _classPrivateFieldInitSpec(this, _N, _init_barLocked(this, true));
202
- _classPrivateFieldInitSpec(this, _O, _init_barHidden(this, false));
203
- _classPrivateFieldInitSpec(this, _P, _init_asideWidth(this, _Layout.MinAsideWidth));
204
- _classPrivateFieldInitSpec(this, _Q, _init_userVolumeMap(this, new Map()));
205
- _classPrivateFieldInitSpec(this, _R, _init_chatRoomState(this, _type5.FcrChatRoomConnectionState.Disconnected));
206
- _classPrivateFieldInitSpec(this, _S, _init_videoWindowPreviewType(this, _type2.FcrVideoWindowPreviewType.SMALL));
207
- _classPrivateFieldInitSpec(this, _T, _init_whiteboardActive(this, false));
208
- _classPrivateFieldInitSpec(this, _U, _init_spotlightStreamId(this, ''));
209
- _classPrivateFieldInitSpec(this, _V, _init_shouldHideNonVideoParticipants(this, false));
210
- _classPrivateFieldInitSpec(this, _W, _init_participantCount(this, 0));
211
- _classPrivateFieldInitSpec(this, _X, _init_ownerUser(this, undefined));
212
- _classPrivateFieldInitSpec(this, _Y, _init_localUser(this));
213
- _classPrivateFieldInitSpec(this, _Z, _init_enableSpotlight(this, true));
214
- _classPrivateFieldInitSpec(this, _a, _init_isWaitingRoomNotify(this, true));
215
- _classPrivateFieldInitSpec(this, _b, _init_interpreterUsers(this, []));
216
- // 翻译官列表
217
- _classPrivateFieldInitSpec(this, _c, _init_interpreterState(this));
160
+ _classPrivateFieldInitSpec(this, _I, _init_aside(this, false));
161
+ _classPrivateFieldInitSpec(this, _J, _init_localUserRole(this, _type.FcrUserRole.PARTICIPANT));
162
+ _classPrivateFieldInitSpec(this, _K, _init_barHovering(this, true));
163
+ _classPrivateFieldInitSpec(this, _L, _init_barLocked(this, true));
164
+ _classPrivateFieldInitSpec(this, _M, _init_barHidden(this, false));
165
+ _classPrivateFieldInitSpec(this, _N, _init_asideWidth(this, _view.MinAsideWidth));
166
+ _classPrivateFieldInitSpec(this, _O, _init_userVolumeMap(this, new Map()));
167
+ _classPrivateFieldInitSpec(this, _P, _init_chatRoomState(this, _type5.FcrChatRoomConnectionState.Disconnected));
168
+ _classPrivateFieldInitSpec(this, _Q, _init_videoWindowPreviewType(this, _type2.FcrVideoWindowPreviewType.SMALL));
169
+ _classPrivateFieldInitSpec(this, _R, _init_whiteboardActive(this, false));
170
+ // @observable accessor spotlightStreamId = '';
171
+ // @observable accessor shouldHideNonVideoParticipants = false;
172
+ _classPrivateFieldInitSpec(this, _S, _init_participantCount(this, 0));
173
+ _classPrivateFieldInitSpec(this, _T, _init_ownerUser(this, undefined));
174
+ _classPrivateFieldInitSpec(this, _U, _init_localUser(this));
218
175
  (0, _defineProperty2["default"])(this, "getAllowedOperations", (0, _mobxUtils.computedFn)(function (targetRole, isSelf) {
219
- return _this._securityStore.getAllowedOperations(targetRole, isSelf);
176
+ return _this._privilegeProvider.getAllowedOperations(targetRole, isSelf);
220
177
  }));
221
178
  (0, _defineProperty2["default"])(this, "_handleLayoutUpdated", _init__handleLayoutUpdated(this, function (layout) {
222
179
  if (layout === _type3.FcrUIVideoWindowLayoutType.Speaker) {
@@ -224,9 +181,6 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
224
181
  } else if (layout === _type3.FcrUIVideoWindowLayoutType.Gallery) {
225
182
  _this._switchToGallery();
226
183
  }
227
- _this._uiEventStore.notifyLayoutChanged({
228
- layout: layout
229
- });
230
184
  }));
231
185
  (0, _defineProperty2["default"])(this, "_setSpotlightStream", function () {
232
186
  var spotlightStream = _this._findSpotlightStream();
@@ -234,73 +188,36 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
234
188
  var streamId = spotlightStream.streamId;
235
189
  _this._videoWindowDataSource.setSpeakerSpotlight(streamId);
236
190
  });
237
- var userControl = params.userControl,
238
- chatRoomControl = params.chatRoomControl,
239
- roomControl = params.roomControl,
240
- interpreterControl = params.interpreterControl;
241
- this._securityStore = params.securityStore;
242
- this._deviceStore = params.deviceStore;
243
- this._uiEventStore = params.uiEventStore;
244
- this._userControl = params.userControl;
245
- this._streamControl = params.streamControl;
246
- this._chatRoomControl = chatRoomControl;
247
- this._whiteBoardControl = params.whiteBoardControl;
248
- this._privilegeControl = params.privilegeControl;
249
- this._interpreterControl = interpreterControl;
191
+ var roomControl = params.roomControl,
192
+ chatProvider = params.chatProvider;
193
+ this._userControl = roomControl.getUserControl();
194
+ this._streamControl = roomControl.getStreamControl();
195
+ this._chatRoomControl = roomControl.getChatRoomControl();
196
+ this._whiteBoardControl = roomControl.getBoardControl();
250
197
  this._roomControl = roomControl;
251
- var defaultVideoGallerySize = (0, _parameters.getDefaultVideoGallerySize)(params.parameters);
252
- if (defaultVideoGallerySize) {
253
- defaultVideoGallerySize = Math.min(Math.max(defaultVideoGallerySize, 16), 25);
254
- }
255
- this.galleryMaxSize = (_defaultVideoGalleryS = defaultVideoGallerySize) !== null && _defaultVideoGalleryS !== void 0 ? _defaultVideoGalleryS : _type3.GalleryMaxSize.Normal;
256
- this.interpreterUsers = this._interpreterControl.getInterpreterUserList() || [];
257
- this.interpreterState = this.getInterpreterState();
258
- this._interpreterControl.addObserver({
259
- onInterpreterUsersUpdated: function onInterpreterUsersUpdated(roomId, users) {
260
- _this.interpreterUsers = users;
261
- },
262
- onInterpreterStateUpdated: function onInterpreterStateUpdated() {
263
- _this.interpreterState = _this.getInterpreterState();
264
- _this.interpreterUsers = _this._interpreterControl.getInterpreterUserList() || [];
265
- }
266
- });
267
- this.localUser = userControl.getLocalUser();
268
- params.roomStore.addObserver({
269
- onJoinWaitingRoom: function onJoinWaitingRoom(roomControl, securityStore) {
270
- var room = roomControl;
271
- _this._waitingRoomControl = room;
272
- _this._waitingRoomControl.addObserver(_this._waitingRoomObserver);
273
- _this._waitingRoomUserControl = room.getUserControl();
274
- _this._waitingRoomUserControl.addObserver(_this._waitingRoomUserObserver);
275
- }
276
- });
277
- roomControl.addObserver({
278
- onLiveStreamingStateUpdated: function onLiveStreamingStateUpdated(_, state, pageUrl, reason) {
279
- _this._liveStreamState = state;
280
- if (state === _type.FcrLiveStreamingState.STOPPED && reason === _type7.FcrLiveStreamingStateUpdatedReason.HOSTCHANGED) {
281
- _this._uiEventStore.showToast({
282
- type: 'info',
283
- message: (0, _i18n.transI18n)('fmt_broadcast_livestream_tips_hand_over_pc_to_mobile')
284
- });
285
- }
286
- }
287
- });
198
+ this._sharedLayoutDataSource = params.sharedLayoutDataSource;
199
+ this._eventProvider = params.eventProvider;
200
+ this._deviceProvider = params.deviceProvider;
201
+ this._privilegeProvider = params.privilegeProvider;
202
+ this._sharedSettingDataSource = params.sharedSettingDataSource;
203
+ this._sharedInterpreterDataSource = params.sharedInterpreterDataSource;
204
+ this._sharedSettingDataSource = params.sharedSettingDataSource;
205
+ this._chatProvider = chatProvider;
206
+ this._videoWindowDataSource = params.sharedVideoWindowDataSource;
207
+ this.localUser = this._userControl.getLocalUser();
208
+ this.chatRoomState = this._chatRoomControl.getConnectionState();
288
209
  this._addListeners();
289
210
  //@ts-ignore
290
211
  window.layoutStore = this;
291
- this.setLocalUserRole(userControl.getLocalUser().userRole);
212
+ this.setLocalUserRole(this._userControl.getLocalUser().userRole);
292
213
  this._initStream();
293
214
  this._handleFoldListChanged();
294
215
  this._handleMainListChanged();
295
216
  this._handleLayoutUpdated(this._videoWindowDataSource.layoutType);
296
217
  this.setWhiteboardActive(this._whiteBoardControl.getBoardActiveInfo().isActive);
297
218
  (0, _mobx.runInAction)(function () {
298
- _this.participantCount = userControl.getAllUserCount();
219
+ _this.participantCount = _this._userControl.getAllUserCount();
299
220
  });
300
- if (this.isRobot) {
301
- this.updateAsideContent(false, true);
302
- }
303
- (0, _parameters.getDefaultVideoGallerySize)(params.parameters);
304
221
  }
305
222
  return (0, _createClass2["default"])(LayoutStore, [{
306
223
  key: "participant",
@@ -367,7 +284,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
367
284
  _classPrivateFieldSet(_H, this, v);
368
285
  }
369
286
  }, {
370
- key: "galleryMaxSize",
287
+ key: "aside",
371
288
  get: function get() {
372
289
  return _classPrivateFieldGet(_I, this);
373
290
  },
@@ -375,7 +292,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
375
292
  _classPrivateFieldSet(_I, this, v);
376
293
  }
377
294
  }, {
378
- key: "aside",
295
+ key: "localUserRole",
379
296
  get: function get() {
380
297
  return _classPrivateFieldGet(_J, this);
381
298
  },
@@ -383,7 +300,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
383
300
  _classPrivateFieldSet(_J, this, v);
384
301
  }
385
302
  }, {
386
- key: "asideContent",
303
+ key: "barHovering",
387
304
  get: function get() {
388
305
  return _classPrivateFieldGet(_K, this);
389
306
  },
@@ -391,7 +308,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
391
308
  _classPrivateFieldSet(_K, this, v);
392
309
  }
393
310
  }, {
394
- key: "localUserRole",
311
+ key: "barLocked",
395
312
  get: function get() {
396
313
  return _classPrivateFieldGet(_L, this);
397
314
  },
@@ -399,7 +316,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
399
316
  _classPrivateFieldSet(_L, this, v);
400
317
  }
401
318
  }, {
402
- key: "barHovering",
319
+ key: "barHidden",
403
320
  get: function get() {
404
321
  return _classPrivateFieldGet(_M, this);
405
322
  },
@@ -407,7 +324,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
407
324
  _classPrivateFieldSet(_M, this, v);
408
325
  }
409
326
  }, {
410
- key: "barLocked",
327
+ key: "asideWidth",
411
328
  get: function get() {
412
329
  return _classPrivateFieldGet(_N, this);
413
330
  },
@@ -415,7 +332,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
415
332
  _classPrivateFieldSet(_N, this, v);
416
333
  }
417
334
  }, {
418
- key: "barHidden",
335
+ key: "userVolumeMap",
419
336
  get: function get() {
420
337
  return _classPrivateFieldGet(_O, this);
421
338
  },
@@ -423,7 +340,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
423
340
  _classPrivateFieldSet(_O, this, v);
424
341
  }
425
342
  }, {
426
- key: "asideWidth",
343
+ key: "chatRoomState",
427
344
  get: function get() {
428
345
  return _classPrivateFieldGet(_P, this);
429
346
  },
@@ -431,7 +348,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
431
348
  _classPrivateFieldSet(_P, this, v);
432
349
  }
433
350
  }, {
434
- key: "userVolumeMap",
351
+ key: "videoWindowPreviewType",
435
352
  get: function get() {
436
353
  return _classPrivateFieldGet(_Q, this);
437
354
  },
@@ -439,7 +356,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
439
356
  _classPrivateFieldSet(_Q, this, v);
440
357
  }
441
358
  }, {
442
- key: "chatRoomState",
359
+ key: "whiteboardActive",
443
360
  get: function get() {
444
361
  return _classPrivateFieldGet(_R, this);
445
362
  },
@@ -447,7 +364,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
447
364
  _classPrivateFieldSet(_R, this, v);
448
365
  }
449
366
  }, {
450
- key: "videoWindowPreviewType",
367
+ key: "participantCount",
451
368
  get: function get() {
452
369
  return _classPrivateFieldGet(_S, this);
453
370
  },
@@ -455,7 +372,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
455
372
  _classPrivateFieldSet(_S, this, v);
456
373
  }
457
374
  }, {
458
- key: "whiteboardActive",
375
+ key: "ownerUser",
459
376
  get: function get() {
460
377
  return _classPrivateFieldGet(_T, this);
461
378
  },
@@ -463,7 +380,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
463
380
  _classPrivateFieldSet(_T, this, v);
464
381
  }
465
382
  }, {
466
- key: "spotlightStreamId",
383
+ key: "localUser",
467
384
  get: function get() {
468
385
  return _classPrivateFieldGet(_U, this);
469
386
  },
@@ -471,88 +388,29 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
471
388
  _classPrivateFieldSet(_U, this, v);
472
389
  }
473
390
  }, {
474
- key: "shouldHideNonVideoParticipants",
475
- get: function get() {
476
- return _classPrivateFieldGet(_V, this);
477
- },
478
- set: function set(v) {
479
- _classPrivateFieldSet(_V, this, v);
480
- }
481
- }, {
482
- key: "participantCount",
483
- get: function get() {
484
- return _classPrivateFieldGet(_W, this);
485
- },
486
- set: function set(v) {
487
- _classPrivateFieldSet(_W, this, v);
488
- }
489
- }, {
490
- key: "ownerUser",
391
+ key: "streamControl",
491
392
  get: function get() {
492
- return _classPrivateFieldGet(_X, this);
493
- },
494
- set: function set(v) {
495
- _classPrivateFieldSet(_X, this, v);
393
+ return this._streamControl;
496
394
  }
497
395
  }, {
498
- key: "localUser",
396
+ key: "shouldHideNonVideoParticipants",
499
397
  get: function get() {
500
- return _classPrivateFieldGet(_Y, this);
501
- },
502
- set: function set(v) {
503
- _classPrivateFieldSet(_Y, this, v);
398
+ return this._sharedSettingDataSource.setting.shouldHideNonVideoParticipants || false;
504
399
  }
505
400
  }, {
506
401
  key: "enableSpotlight",
507
402
  get: function get() {
508
- return _classPrivateFieldGet(_Z, this);
509
- },
510
- set: function set(v) {
511
- _classPrivateFieldSet(_Z, this, v);
512
- }
513
- }, {
514
- key: "isWaitingRoomNotify",
515
- get: function get() {
516
- return _classPrivateFieldGet(_a, this);
517
- },
518
- set: function set(v) {
519
- _classPrivateFieldSet(_a, this, v);
520
- }
521
- }, {
522
- key: "interpreterUsers",
523
- get: function get() {
524
- return _classPrivateFieldGet(_b, this);
525
- },
526
- set: function set(v) {
527
- _classPrivateFieldSet(_b, this, v);
528
- }
529
- }, {
530
- key: "interpreterState",
531
- get: function get() {
532
- return _classPrivateFieldGet(_c, this);
533
- },
534
- set: function set(v) {
535
- _classPrivateFieldSet(_c, this, v);
536
- }
537
- }, {
538
- key: "deviceStore",
539
- get: function get() {
540
- return this._deviceStore;
541
- }
542
- }, {
543
- key: "streamControl",
544
- get: function get() {
545
- return this._streamControl;
403
+ return this._sharedSettingDataSource.setting.spotlightEnabled;
546
404
  }
547
405
  }, {
548
406
  key: "isWaterMarkEnabled",
549
407
  get: function get() {
550
- return this._securityStore.isWaterMarkEnabled();
408
+ return this._privilegeProvider.isWaterMarkEnabled();
551
409
  }
552
410
  }, {
553
411
  key: "isMulti",
554
412
  get: function get() {
555
- return this._securityStore.isMulti();
413
+ return this._privilegeProvider.isMulti();
556
414
  }
557
415
  }, {
558
416
  key: "layout",
@@ -567,20 +425,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
567
425
  }, {
568
426
  key: "mainList",
569
427
  get: function get() {
570
- var _this2 = this;
571
- var sourceList = this._videoWindowDataSource.mainList.filter(function (i) {
572
- return !i.isMySelf || i.videoSourceType !== _fcrCore.FcrVideoSourceType.SCREEN;
573
- });
574
- var existHasVideoStreamUser = sourceList.some(function (i) {
575
- return i.hasVideoStream;
576
- });
577
- return this.shouldHideNonVideoParticipants ? sourceList.filter(function (i) {
578
- var visible = i.isMySelf && !existHasVideoStreamUser || i.hasVideoStream || i.videoSourceType === _fcrCore.FcrVideoSourceType.SCREEN || i.type === _type3.FcrUIWindowType.BOARD;
579
- if (!visible && i.isPin) {
580
- _this2.removePin(i.windowId, (0, _i18n.transI18n)('fmt_internalsetting_other_hide_no_video_pin_cancelled'));
581
- }
582
- return visible;
583
- }) : sourceList;
428
+ return this._videoWindowDataSource.layoutMainList;
584
429
  }
585
430
  }, {
586
431
  key: "mainListMapByAudioStreamId",
@@ -595,6 +440,11 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
595
440
  });
596
441
  return map;
597
442
  }
443
+ }, {
444
+ key: "spotlightStreamId",
445
+ get: function get() {
446
+ return this._videoWindowDataSource.spotlightStreamId;
447
+ }
598
448
  }, {
599
449
  key: "foldList",
600
450
  get: function get() {
@@ -612,6 +462,12 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
612
462
  get: function get() {
613
463
  return this._videoWindowDataSource.layoutType === _type3.FcrUIVideoWindowLayoutType.Speaker ? this.mainList.slice(0, 1) : this.mainList;
614
464
  }
465
+ }, {
466
+ key: "asideLayout",
467
+ get: function get() {
468
+ var _this$_sharedLayoutDa;
469
+ return (_this$_sharedLayoutDa = this._sharedLayoutDataSource) === null || _this$_sharedLayoutDa === void 0 ? void 0 : _this$_sharedLayoutDa.asideLayout;
470
+ }
615
471
  }, {
616
472
  key: "carouselList",
617
473
  get: function get() {
@@ -637,60 +493,66 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
637
493
  }, {
638
494
  key: "findSpotlightUser",
639
495
  get: function get() {
640
- var _this3 = this;
496
+ var _this2 = this;
641
497
  return this.spotlightStreamId ? this.mainList.find(function (item) {
642
- return item.videoStreamId === _this3.spotlightStreamId || item.audioStreamId === _this3.spotlightStreamId;
498
+ return item.videoStreamId === _this2.spotlightStreamId || item.audioStreamId === _this2.spotlightStreamId;
643
499
  }) : null;
644
500
  }
645
501
  }, {
646
502
  key: "microphoneEnabled",
647
503
  get: function get() {
648
- return this._deviceStore.microphoneEnabled;
504
+ return this._deviceProvider.microphoneEnabled;
649
505
  }
650
506
  }, {
651
507
  key: "allowChat",
652
508
  get: function get() {
653
- return this._securityStore.allowChat();
509
+ return this._privilegeProvider.allowChat();
654
510
  }
655
511
  }, {
656
512
  key: "allowUnmuteSelfAudio",
657
513
  get: function get() {
658
- return this._securityStore.allowUnmuteSelfAudio();
514
+ return this._privilegeProvider.allowUnmuteSelfAudio();
659
515
  }
660
516
  }, {
661
517
  key: "allowUnmuteSelfVideo",
662
518
  get: function get() {
663
- return this._securityStore.allowUnmuteSelfVideo();
519
+ return this._privilegeProvider.allowUnmuteSelfVideo();
664
520
  }
665
521
  }, {
666
522
  key: "isHostOrCoHost",
667
523
  get: function get() {
668
524
  return this.localUserRole === _type.FcrUserRole.HOST || this.localUserRole === _type.FcrUserRole.COHOST;
669
525
  }
526
+ }, {
527
+ key: "galleryMaxSize",
528
+ get: function get() {
529
+ var _this$_sharedLayoutDa2;
530
+ return (_this$_sharedLayoutDa2 = this._sharedLayoutDataSource) === null || _this$_sharedLayoutDa2 === void 0 ? void 0 : _this$_sharedLayoutDa2.layoutSize;
531
+ }
670
532
  }, {
671
533
  key: "allowedAllChat",
672
534
  get: function get() {
673
- return this._securityStore.allowedAllChat();
535
+ return this._privilegeProvider.allowedAllChat();
674
536
  }
675
537
  }, {
676
538
  key: "allowedPublicChatAndDisallowedPrivateChat",
677
539
  get: function get() {
678
- return this._securityStore.allowedPublicChatAndDisallowedPrivateChat();
540
+ return this._privilegeProvider.allowedPublicChatAndDisallowedPrivateChat();
679
541
  }
680
542
  }, {
681
543
  key: "disallowedPublicChatAndDisallowedPrivateChatToParticipant",
682
544
  get: function get() {
683
- return this._securityStore.disallowedPublicChatAndDisallowedPrivateChatToParticipant();
545
+ return this._privilegeProvider.disallowedPublicChatAndDisallowedPrivateChatToParticipant();
684
546
  }
685
547
  }, {
686
548
  key: "disallowedAllChat",
687
549
  get: function get() {
688
- return this._securityStore.disallowedAllChat();
550
+ return this._privilegeProvider.disallowedAllChat();
689
551
  }
690
552
  }, {
691
553
  key: "privilegeOperator",
692
554
  get: function get() {
693
- return this._securityStore.privilegeOperator;
555
+ return this._privilegeProvider.privilegeOperator;
694
556
  }
695
557
  }, {
696
558
  key: "localUserId",
@@ -699,37 +561,49 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
699
561
  return (_this$_userControl$ge = this._userControl.getLocalUser()) === null || _this$_userControl$ge === void 0 ? void 0 : _this$_userControl$ge.userId;
700
562
  }
701
563
  }, {
702
- key: "getWaterMarkContent",
703
- value: function getWaterMarkContent() {
704
- return this._securityStore.getWaterMarkContent();
564
+ key: "interpreterUsers",
565
+ get: function get() {
566
+ return this._sharedInterpreterDataSource.interpreterUsers;
567
+ }
568
+ }, {
569
+ key: "interpreterState",
570
+ get: function get() {
571
+ return this._sharedInterpreterDataSource.interpreterOff;
572
+ }
573
+ }, {
574
+ key: "asideContent",
575
+ get: function get() {
576
+ return this._sharedLayoutDataSource.asideLayout;
705
577
  }
706
578
  }, {
707
- key: "notifyParticipantShowWaitingRoom",
708
- value: function notifyParticipantShowWaitingRoom() {
709
- this._uiEventStore.sendEvent(_constant.UIAction.TOGGLE_PARTICIPANT_TAB, _constant.RoomType.WAITING_ROOM);
710
- this._uiEventStore.sendEvent(_constant.UIAction.CHANGE_PARTICIPANT_TAB, _constant.RoomType.WAITING_ROOM);
711
- this._uiEventStore.sendEvent(_constant.UIAction.COLSE_NOTIFICATION, _eventStore.NotificationContentType.WAITING_ROOM);
579
+ key: "participantsRenderAt",
580
+ get: function get() {
581
+ return this._sharedLayoutDataSource.participantsRenderAt;
712
582
  }
713
583
  }, {
714
- key: "setIsWaitingRoomNotify",
715
- value: function setIsWaitingRoomNotify() {
716
- this.isWaitingRoomNotify = false;
717
- this._uiEventStore.sendEvent(_constant.UIAction.COLSE_NOTIFICATION, _eventStore.NotificationContentType.WAITING_ROOM);
584
+ key: "chatRenderAt",
585
+ get: function get() {
586
+ return this._sharedLayoutDataSource.chatRenderAt;
587
+ }
588
+ }, {
589
+ key: "getWaterMarkContent",
590
+ value: function getWaterMarkContent() {
591
+ return this._privilegeProvider.getWaterMarkContent();
718
592
  }
719
593
  }, {
720
594
  key: "hasMutePermission",
721
595
  value: function hasMutePermission(targetRole) {
722
- return this._securityStore.hasMutePermission(targetRole);
596
+ return this._privilegeProvider.hasMutePermission(targetRole);
723
597
  }
724
598
  }, {
725
599
  key: "hasUnmutePermission",
726
600
  value: function hasUnmutePermission(targetRole) {
727
- return this._securityStore.hasUnmutePermission(targetRole);
601
+ return this._privilegeProvider.hasUnmutePermission(targetRole);
728
602
  }
729
603
  }, {
730
604
  key: "hasRequestStartAudioPermission",
731
605
  value: function hasRequestStartAudioPermission(targetRole) {
732
- return this._securityStore.hasRequestStartAudioPermission(targetRole);
606
+ return this._privilegeProvider.hasRequestStartAudioPermission(targetRole);
733
607
  }
734
608
  }, {
735
609
  key: "toggleMainStream",
@@ -744,48 +618,23 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
744
618
  }, {
745
619
  key: "addPin",
746
620
  value: function addPin(streamId) {
747
- if (this.shouldHideNonVideoParticipants) {
748
- var stream = this.mainList.find(function (u) {
749
- return u.windowId === streamId;
750
- });
751
- if (!(stream !== null && stream !== void 0 && stream.hasVideoStream)) {
752
- this._uiEventStore.showToast({
753
- type: 'error',
754
- message: (0, _i18n.transI18n)('fmt_internalsetting_other_hide_no_video_pin_cancelled')
755
- });
756
- return;
757
- }
758
- }
759
- var success = this._videoWindowDataSource.addPin(streamId);
760
- if (success) {
761
- this._uiEventStore.showToast({
762
- type: 'normal',
763
- message: (0, _i18n.transI18n)('fmt_settings_tips_screenlocked')
764
- });
765
- if (this.layout === _type3.FcrUIVideoWindowLayoutType.Gallery) {
766
- this.toggleLayout(_type3.FcrUIVideoWindowLayoutType.Speaker);
767
- }
768
- }
621
+ this._videoWindowDataSource.addPinToast(streamId);
769
622
  }
770
623
  }, {
771
624
  key: "removePin",
772
625
  value: function removePin(streamId) {
773
626
  var toastText = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (0, _i18n.transI18n)('fmt_settings_tips_screenunlock');
774
- this._videoWindowDataSource.removePin(streamId);
775
- this._uiEventStore.showToast({
776
- type: 'normal',
777
- message: toastText
778
- });
627
+ this._videoWindowDataSource.removePinToast(streamId, toastText);
779
628
  }
780
629
  }, {
781
630
  key: "setVideoOrientation",
782
631
  value: function setVideoOrientation() {
783
- this._deviceStore.setVideoOrientation();
632
+ this._deviceProvider.setVideoOrientation();
784
633
  }
785
634
  }, {
786
635
  key: "setAllowChat",
787
636
  value: function setAllowChat(allowChat) {
788
- this._securityStore.setAllowChat(allowChat);
637
+ this._privilegeProvider.setAllowChat(allowChat);
789
638
  }
790
639
  }, {
791
640
  key: "handleSetPinState",
@@ -807,9 +656,8 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
807
656
  value: function setWhiteboardActive(active) {
808
657
  this.whiteboardActive = active;
809
658
  if (!active && this.manualLayout) {
810
- this._uiEventStore.sendEvent(_constant.UIAction.TOGGLE_LAYOUT, {
811
- layout: this.manualLayout
812
- });
659
+ this._videoWindowDataSource.setLayout(this.manualLayout);
660
+ // this._sharedLayoutDataSource.toggleLayout(this.manualLayout);
813
661
  }
814
662
  }
815
663
  }, {
@@ -839,21 +687,10 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
839
687
  }
840
688
  }
841
689
  }
842
- }, {
843
- key: "updateAsideContent",
844
- value: function updateAsideContent(participant, chat) {
845
- if (participant === undefined) participant = this.asideContent.participant;
846
- if (chat === undefined) chat = this.asideContent.chat;
847
- if (participant === this.asideContent.participant && chat === this.asideContent.chat) return;
848
- this.asideContent = {
849
- participant: participant,
850
- chat: chat
851
- };
852
- }
853
690
  }, {
854
691
  key: "closeParticipantFromAside",
855
692
  value: function closeParticipantFromAside() {
856
- this._uiEventStore.updateAside({
693
+ this._sharedLayoutDataSource.setAsideLayout({
857
694
  participant: false
858
695
  });
859
696
  }
@@ -861,12 +698,13 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
861
698
  key: "moveParticipantFromAsideToDialog",
862
699
  value: function moveParticipantFromAsideToDialog() {
863
700
  this.closeParticipantFromAside();
864
- this._uiEventStore.openDialog(_constant.DialogKey.PARTICIPANT);
701
+ this._sharedLayoutDataSource.setParticipantsRenderAt('dialog');
702
+ this._eventProvider.openDialog(_constant.FcrUIDialogKey.PARTICIPANT);
865
703
  }
866
704
  }, {
867
705
  key: "closeChatFromAside",
868
706
  value: function closeChatFromAside() {
869
- this._uiEventStore.updateAside({
707
+ this._sharedLayoutDataSource.setAsideLayout({
870
708
  chat: false
871
709
  });
872
710
  }
@@ -874,33 +712,40 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
874
712
  key: "closeAsideChat",
875
713
  value: function closeAsideChat() {
876
714
  this.closeChatFromAside();
877
- this._uiEventStore.notifyChatResetTarget();
715
+ this._eventProvider.notifyChatResetTarget();
878
716
  }
879
717
  }, {
880
718
  key: "moveChatFromAsideToDialog",
881
719
  value: function moveChatFromAsideToDialog() {
882
720
  this.closeChatFromAside();
883
- this._uiEventStore.openDialog(_constant.DialogKey.CHAT);
721
+ this._sharedLayoutDataSource.setChatRenderAt('dialog');
722
+ this._eventProvider.openDialog(_constant.FcrUIDialogKey.CHAT);
723
+ this._sharedLayoutDataSource.setAsideLayout({
724
+ chat: true
725
+ });
884
726
  }
885
727
  }, {
886
728
  key: "openPrivateChat",
887
729
  value: function openPrivateChat(userId) {
888
730
  var _this$_userControl;
889
- if (!this._securityStore.permitPrivateChat(userId)) {
731
+ if (!this._privilegeProvider.permitPrivateChat(userId)) {
890
732
  return;
891
733
  }
892
- this._uiEventStore.updateAside({
893
- chat: true
894
- });
734
+ if (!this.asideContent.chat) {
735
+ this._sharedLayoutDataSource.setAsideLayout({
736
+ chat: true
737
+ });
738
+ }
895
739
  var user = Object.values(this === null || this === void 0 || (_this$_userControl = this._userControl) === null || _this$_userControl === void 0 ? void 0 : _this$_userControl.getUsers()).find(function (u) {
896
740
  return u.userId === userId;
897
741
  });
898
- user && this._uiEventStore.notifyChatUpdateTarget(user, _constant.RoomType.MAIN_ROOM);
742
+ // user && this._eventProvider.notifyChatUpdateTarget(user, FcrRoomType.Mainroom);
743
+ user && this._chatProvider.setPrivateChatTargetUser(user, _type7.FcrRoomType.Mainroom);
899
744
  }
900
745
  }, {
901
746
  key: "openRenameDialog",
902
747
  value: function openRenameDialog(userId) {
903
- this._uiEventStore.sendEvent(_constant.UIAction.PARTICIPANT_ACTION, {
748
+ this._eventProvider.sendEvent(_constant.FcrUIAction.PARTICIPANT_ACTION, {
904
749
  action: _attendee.ParticipantActionType.RENAME_IN_MEETING,
905
750
  userId: userId
906
751
  });
@@ -915,12 +760,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
915
760
  value: function toggleCollapsed() {
916
761
  var collapsed = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !this.collapsed;
917
762
  this.collapsed = collapsed;
918
- this._uiEventStore.sendEvent(_constant.UIAction.CAROUSEL_COLLAPSED, collapsed);
919
- }
920
- }, {
921
- key: "setGalleryMaxSize",
922
- value: function setGalleryMaxSize(size) {
923
- this.galleryMaxSize = size;
763
+ this._eventProvider.sendEvent(_constant.FcrUIAction.CAROUSEL_COLLAPSED, collapsed);
924
764
  }
925
765
  }, {
926
766
  key: "toggleAside",
@@ -931,7 +771,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
931
771
  }, {
932
772
  key: "asideWidthChanged",
933
773
  value: function asideWidthChanged(width) {
934
- this._uiEventStore.sendEvent(_constant.UIAction.ASIDE_WIDTH_CHANGED, width);
774
+ this._eventProvider.sendEvent(_constant.FcrUIAction.ASIDE_WIDTH_CHANGED, width);
935
775
  }
936
776
  }, {
937
777
  key: "toggleLayoutBarLock",
@@ -953,12 +793,12 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
953
793
  }, {
954
794
  key: "setHoveringHandler",
955
795
  value: function setHoveringHandler() {
956
- var _this4 = this;
796
+ var _this3 = this;
957
797
  this._setBarHovering(true);
958
798
  if (!this._barLockTimer && !this.barLocked) {
959
799
  this._barLockTimer = window.setTimeout(function () {
960
- _this4._setBarHovering(false);
961
- _this4.resetLockTimer();
800
+ _this3._setBarHovering(false);
801
+ _this3.resetLockTimer();
962
802
  }, 3000);
963
803
  }
964
804
  }
@@ -981,44 +821,21 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
981
821
  }, {
982
822
  key: "release",
983
823
  value: function release() {
984
- this._subscriptions.forEach(function (fn) {
824
+ this._disposers.forEach(function (fn) {
985
825
  return fn();
986
826
  });
987
- this._chatRoomControl.removeObserver(this._chatRoomObserver);
827
+ this._disposers = [];
988
828
  }
989
829
  }, {
990
830
  key: "onUserInfoUpdated",
991
831
  value: function onUserInfoUpdated(roomId, event) {
992
- var _this5 = this;
832
+ var _this4 = this;
993
833
  this._videoWindowDataSource.update(event.modifiedUser);
994
834
  this.setLocalUserRole(this._userControl.getLocalUser().userRole);
995
835
  this.handleLiveLayoutChange(event.modifiedUser);
996
- if (this._managerRoleUpdateForToast.has(event.modifiedUser.userRole) && event.reason === _type6.AgoraRteUserUpdatedReason.ROLE) {
997
- var userName = event.modifiedUser.userName;
998
- var isMe = event.modifiedUser.userId === this.getLocalUserId();
999
- var toastContent = function toastContent() {
1000
- var contentText = '';
1001
- if (event.modifiedUser.userRole === _type.FcrUserRole.HOST) {
1002
- contentText = isMe ? (0, _i18n.transI18n)('fmt_attendies_tips_mine_new_host', {
1003
- reason1: userName
1004
- }) : (0, _i18n.transI18n)('fmt_attendies_tips_new_host', {
1005
- reason1: userName
1006
- });
1007
- } else if (event.modifiedUser.userRole === _type.FcrUserRole.COHOST) {
1008
- contentText = isMe ? (0, _i18n.transI18n)('fmt_attendies_tips_mine_new_co_host') : (0, _i18n.transI18n)('fmt_attendies_tips_new_co_host', {
1009
- reason1: userName
1010
- });
1011
- }
1012
- return contentText;
1013
- };
1014
- this._uiEventStore.showToast({
1015
- type: 'info',
1016
- message: toastContent()
1017
- });
1018
- }
1019
836
  if (event.reason === _type6.AgoraRteUserUpdatedReason.NAME) {
1020
837
  setTimeout(function () {
1021
- _this5.localUser = _this5._userControl.getLocalUser();
838
+ _this4.localUser = _this4._userControl.getLocalUser();
1022
839
  }, 1000);
1023
840
  }
1024
841
  }
@@ -1030,13 +847,13 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
1030
847
  }, {
1031
848
  key: "stopLocalPreview",
1032
849
  value: function stopLocalPreview(view) {
1033
- this._deviceStore.stopPlayLocalVideo(view);
850
+ this._deviceProvider.stopPlayLocalVideo(view);
1034
851
  }
1035
852
  }, {
1036
853
  key: "startLocalPreview",
1037
854
  value: function startLocalPreview(div) {
1038
855
  if (div) {
1039
- this._deviceStore.startPlayLocalVideo(div);
856
+ this._deviceProvider.startPlayLocalVideo(div);
1040
857
  }
1041
858
  }
1042
859
  }, {
@@ -1044,17 +861,17 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
1044
861
  value: function setAllowChatWithPayload(type) {
1045
862
  switch (type) {
1046
863
  case 'public':
1047
- this._securityStore.setAllowedPublicChatAndDisallowedPrivateChat();
864
+ this._privilegeProvider.setAllowedPublicChatAndDisallowedPrivateChat();
1048
865
  break;
1049
866
  case 'private_to_manager':
1050
- this._securityStore.setDisallowedPublicChatAndDisallowedPrivateChatToParticipant();
867
+ this._privilegeProvider.setDisallowedPublicChatAndDisallowedPrivateChatToParticipant();
1051
868
  break;
1052
869
  }
1053
870
  }
1054
871
  }, {
1055
872
  key: "muteAudio",
1056
873
  value: function muteAudio(mute, userId) {
1057
- this._uiEventStore.sendEvent(_constant.UIAction.PARTICIPANT_ACTION, {
874
+ this._eventProvider.sendEvent(_constant.FcrUIAction.PARTICIPANT_ACTION, {
1058
875
  action: mute ? _attendee.ParticipantActionType.MUTE_AUDIO : _attendee.ParticipantActionType.UNMUTE_AUDIO,
1059
876
  userId: userId
1060
877
  });
@@ -1062,103 +879,54 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
1062
879
  }, {
1063
880
  key: "sendParticipantEvent",
1064
881
  value: function sendParticipantEvent(payload) {
1065
- this._uiEventStore.sendEvent(_constant.UIAction.PARTICIPANT_ACTION, payload);
882
+ this._eventProvider.sendEvent(_constant.FcrUIAction.PARTICIPANT_ACTION, payload);
1066
883
  }
884
+
885
+ // onEvent(action: FcrUIAction.UPDATE_ASIDE, payload: FcrUIUpdateAsideParams): void;
1067
886
  }, {
1068
887
  key: "onEvent",
1069
888
  value:
1070
889
  // onEvent(
1071
- // action: UIAction.WHITEBOARD_CHANGED,
890
+ // action: FcrUIAction.WHITEBOARD_CHANGED,
1072
891
  // payload: { action: WhiteboardControlbarEvents; payload: boolean },
1073
892
  // ): void;
1074
893
  function onEvent(action, payload) {
1075
- if (action === _constant.UIAction.UPDATE_ASIDE) {
894
+ if (action === _constant.FcrUIAction.SET_MAIN_SPEAKER) {
1076
895
  var _ref2 = payload,
1077
- participant = _ref2.participant,
1078
- chat = _ref2.chat;
1079
- // this._uiEventStore.sendEvent(UIAction.ASIDE_WIDTH_CHANGED, this.asideWidth);
1080
- this.updateAsideContent(participant, chat);
896
+ userId = _ref2.userId;
1081
897
  }
1082
- if (action === _constant.UIAction.TOGGLE_LAYOUT) {
898
+ if (action === _constant.FcrUIAction.SET_USER_PIN_STATE) {
1083
899
  var _ref3 = payload,
1084
- layout = _ref3.layout,
1085
- manual = _ref3.manual;
1086
- this.toggleLayout(layout, manual);
1087
- }
1088
- if (action === _constant.UIAction.TOGGLE_LAYOUT_SIZE) {
1089
- var _ref4 = payload,
1090
- size = _ref4.size;
1091
- this.setGalleryMaxSize(size);
1092
- }
1093
- if (action === _constant.UIAction.SET_MAIN_SPEAKER) {
1094
- var _ref5 = payload,
1095
- userId = _ref5.userId;
1096
- }
1097
- if (action === _constant.UIAction.SET_USER_PIN_STATE) {
1098
- var _ref6 = payload,
1099
- _userId = _ref6.userId;
900
+ _userId = _ref3.userId;
1100
901
  this.handleSetPinState(_userId);
1101
902
  }
1102
- if (action === _constant.UIAction.TOGGLE_LAYOUT_BAR_LOCK) {
903
+ if (action === _constant.FcrUIAction.TOGGLE_LAYOUT_BAR_LOCK) {
1103
904
  this.toggleLayoutBarLock(payload);
1104
905
  }
1105
- if (action === _constant.UIAction.VIDEO_WINDOW_BOUNDS) {
1106
- var _ref7 = payload,
1107
- videoWindowPreviewType = _ref7.videoWindowPreviewType;
906
+ if (action === _constant.FcrUIAction.VIDEO_WINDOW_BOUNDS) {
907
+ var _ref4 = payload,
908
+ videoWindowPreviewType = _ref4.videoWindowPreviewType;
1108
909
  this.videoWindowPreviewType = videoWindowPreviewType;
1109
910
  }
1110
- if (action === _constant.UIAction.TOGGLE_LAYOUT_ACTIONBAR_HIDDEN) {
911
+ if (action === _constant.FcrUIAction.TOGGLE_LAYOUT_ACTIONBAR_HIDDEN) {
1111
912
  this.toggleLayoutBarHidden();
1112
913
  }
1113
- if (action === _constant.UIAction.VIDEO_WINDOW_PIN_ACTION) {
1114
- var _ref8 = payload,
1115
- _action = _ref8.action,
1116
- streamId = _ref8.streamId;
1117
- if (_action === _constant.VideoWindowPinType.REMOVE_PIN) {
1118
- this.removePin(streamId);
1119
- } else if (_action === _constant.VideoWindowPinType.ADD_PIN) {
1120
- this.addPin(streamId);
1121
- }
1122
- }
1123
- if (action === _constant.UIAction.SPOTLIGHT_STREAM_CHANGED) {
1124
- var _ref9 = payload,
1125
- type = _ref9.type,
1126
- _streamId = _ref9.streamId;
1127
- if (type === 'add') {
1128
- this.spotlightStreamId = _streamId;
1129
- } else {
1130
- this.spotlightStreamId = '';
1131
- }
1132
- }
1133
- if (action === _constant.UIAction.CUSTOM_SETTINGS_CHANGED) {
1134
- var _ref10 = payload,
1135
- spotlightEnabled = _ref10.spotlightEnabled,
1136
- shouldHideNonVideoParticipants = _ref10.shouldHideNonVideoParticipants;
1137
- this.shouldHideNonVideoParticipants = shouldHideNonVideoParticipants;
1138
- this.enableSpotlight = spotlightEnabled;
1139
- if (shouldHideNonVideoParticipants) {
1140
- this._uiEventStore.showToast({
1141
- type: 'info',
1142
- message: (0, _i18n.transI18n)('fmt_internalsetting_other_hide_no_video_toast')
1143
- });
1144
- }
1145
- }
1146
- if (action === _constant.UIAction.WHITEBOARD_CHANGED) {
1147
- var _ref11 = payload,
1148
- changeAction = _ref11.action,
1149
- isLoneyWindow = _ref11.payload;
914
+ if (action === _constant.FcrUIAction.WHITEBOARD_CHANGED) {
915
+ var _ref5 = payload,
916
+ changeAction = _ref5.action,
917
+ isLoneyWindow = _ref5.payload;
1150
918
  if (changeAction === _type4.WhiteboardControlbarEvents.LONEYWINDOW) {
1151
919
  if (isLoneyWindow) {
1152
920
  this._videoWindowDataSource.removeBoard();
1153
921
  } else {
1154
922
  var ownerUserId = this._whiteBoardControl.getBoardActiveInfo().ownerUserId;
1155
923
  var ownerUser = this._userControl.getUser(ownerUserId);
1156
- this._videoWindowDataSource.addBoard(ownerUser, ownerUserId === this.localUserId, this._securityStore.hasWriteBoardPermission());
924
+ this._videoWindowDataSource.addBoard(ownerUser, ownerUserId === this.localUserId, this._privilegeProvider.hasWriteBoardPermission());
1157
925
  }
1158
926
  }
1159
927
  if (changeAction === _type4.WhiteboardBaseEvents.SET_OWNER_USER_ID) {
1160
- var _ref12 = payload,
1161
- _ownerUserId = _ref12.payload;
928
+ var _ref6 = payload,
929
+ _ownerUserId = _ref6.payload;
1162
930
  this.ownerUser = _ownerUserId ? this._userControl.getUser(_ownerUserId) : undefined;
1163
931
  }
1164
932
  }
@@ -1166,139 +934,151 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
1166
934
  }, {
1167
935
  key: "_addListeners",
1168
936
  value: function _addListeners() {
1169
- var _this6 = this;
1170
- this._uiEventStore.addObserver({
937
+ var _this5 = this;
938
+ var chatRoomObserver = {
939
+ onConnectionStateUpdated: this._handleConnectionUpdated
940
+ };
941
+ var roomObserver = {
942
+ onLiveStreamingStateUpdated: this._handleLiveStreamingStateUpdated
943
+ };
944
+ var eventObserver = {
1171
945
  onEvent: this.onEvent
1172
- });
1173
- this._streamControl.addObserver({
946
+ };
947
+ var streamObserver = {
1174
948
  onStreamsAdded: this._onStreamsAdded,
1175
949
  onStreamsUpdated: this._onStreamsUpdated,
1176
950
  onStreamsRemoved: this._onStreamsRemoved,
1177
951
  onStreamVolumeIndicationUpdated: this._onAudioVolumeUpdated
1178
- });
1179
- this._userControl.addObserver({
952
+ };
953
+ var userObserver = {
1180
954
  onUserInfoUpdated: this.onUserInfoUpdated,
1181
955
  onAllUserCountUpdated: this._onAllUserCountUpdated
1182
- });
1183
- this._videoWindowDataSource.addObserver({
956
+ };
957
+ var videoWindowObserver = {
1184
958
  onLayoutUpdated: this._handleLayoutUpdated,
1185
959
  onFoldListAdded: this._handleFoldListChanged,
1186
960
  onFoldListRemoved: this._handleFoldListChanged,
1187
961
  onFoldListUpdated: this._handleFoldListChanged,
1188
962
  onMainListAdded: this._handleMainListChanged,
1189
963
  onMainListUpdated: this._handleMainListChanged,
1190
- onMainListRemoved: this._handleMainListChanged,
1191
- onSpotlightAdded: this._handleSpotlightAdded,
1192
- onSpotlightRemoved: this._handleSpotlightRemoved
1193
- });
1194
- this._whiteBoardControl.addObserver({
964
+ onMainListRemoved: this._handleMainListChanged
965
+ };
966
+ var whiteboardObserver = {
1195
967
  onActive: function onActive() {
1196
- return _this6.setWhiteboardActive(true);
968
+ return _this5.setWhiteboardActive(true);
1197
969
  },
1198
970
  onInactive: function onInactive() {
1199
- return _this6.setWhiteboardActive(false);
971
+ return _this5.setWhiteboardActive(false);
1200
972
  }
1201
- });
1202
- this._chatRoomControl.addObserver(this._chatRoomObserver);
1203
- this._subscriptions.push((0, _mobx.reaction)(function () {
1204
- return _this6.mainList.length;
973
+ };
974
+ this._roomControl.addObserver(roomObserver);
975
+ this._eventProvider.addObserver(eventObserver);
976
+ this._streamControl.addObserver(streamObserver);
977
+ this._userControl.addObserver(userObserver);
978
+ this._videoWindowDataSource.addObserver(videoWindowObserver);
979
+ this._whiteBoardControl.addObserver(whiteboardObserver);
980
+ this._chatRoomControl.addObserver(chatRoomObserver);
981
+ this._disposers.push(function () {
982
+ _this5._roomControl.addObserver(roomObserver);
983
+ _this5._eventProvider.addObserver(eventObserver);
984
+ _this5._streamControl.addObserver(streamObserver);
985
+ _this5._userControl.addObserver(userObserver);
986
+ _this5._videoWindowDataSource.addObserver(videoWindowObserver);
987
+ _this5._whiteBoardControl.addObserver(whiteboardObserver);
988
+ _this5._chatRoomControl.addObserver(chatRoomObserver);
989
+ }, (0, _mobx.reaction)(function () {
990
+ return _this5.mainList.length;
1205
991
  }, function (length) {
1206
992
  if (length < 2) {
1207
- if (_this6.layout === _type3.FcrUIVideoWindowLayoutType.Speaker) {
1208
- _this6.toggleLayout(_type3.FcrUIVideoWindowLayoutType.Gallery);
993
+ if (_this5.layout === _type3.FcrUIVideoWindowLayoutType.Speaker) {
994
+ _this5.toggleLayout(_type3.FcrUIVideoWindowLayoutType.Gallery);
1209
995
  }
1210
996
  }
1211
- _this6._uiEventStore.sendEvent(_constant.UIAction.MAIN_LIST_LENGTH_CHANGED, length);
997
+ _this5._eventProvider.sendEvent(_constant.FcrUIAction.MAIN_LIST_LENGTH_CHANGED, length);
1212
998
  }), (0, _mobx.reaction)(function () {
1213
- return _this6.whiteboardActive;
999
+ return _this5.whiteboardActive;
1214
1000
  }, function (opened) {
1215
1001
  if (opened) {
1216
- var ownerUserId = _this6._whiteBoardControl.getBoardActiveInfo().ownerUserId;
1217
- var ownerUser = _this6._userControl.getUser(ownerUserId);
1218
- _this6._videoWindowDataSource.addBoard(ownerUser, ownerUserId === _this6.localUserId);
1219
- if (_this6.layout === _type3.FcrUIVideoWindowLayoutType.Gallery) {
1220
- _this6.toggleLayout(_type3.FcrUIVideoWindowLayoutType.Speaker);
1002
+ var ownerUserId = _this5._whiteBoardControl.getBoardActiveInfo().ownerUserId;
1003
+ var ownerUser = _this5._userControl.getUser(ownerUserId);
1004
+ _this5._videoWindowDataSource.addBoard(ownerUser, ownerUserId === _this5.localUserId);
1005
+ if (_this5.layout === _type3.FcrUIVideoWindowLayoutType.Gallery) {
1006
+ _this5.toggleLayout(_type3.FcrUIVideoWindowLayoutType.Speaker);
1221
1007
  }
1222
1008
  } else {
1223
- _this6._videoWindowDataSource.removeBoard();
1009
+ _this5._videoWindowDataSource.removeBoard();
1224
1010
  }
1225
1011
  }), (0, _mobx.reaction)(function () {
1226
- return _this6._securityStore.hasWriteBoardPermission();
1012
+ return _this5._privilegeProvider.hasWriteBoardPermission();
1227
1013
  }, function (canEdit) {
1228
- if (!_this6.mainList.some(function (u) {
1014
+ if (!_this5.mainList.some(function (u) {
1229
1015
  return u.type === _type3.FcrUIWindowType.BOARD;
1230
1016
  })) return;
1231
- _this6._videoWindowDataSource.updateBoard(canEdit);
1232
- }), (0, _mobx.reaction)(function () {
1233
- return _this6.galleryMaxSize;
1234
- }, function (size) {
1235
- _this6._uiEventStore.notifyLayoutSizeChanged({
1236
- size: size
1237
- });
1017
+ _this5._videoWindowDataSource.updateBoard(canEdit);
1238
1018
  }), (0, _mobx.reaction)(function () {
1239
- return _this6.asideContent;
1019
+ return _this5.asideContent;
1240
1020
  }, function (asideContent) {
1241
1021
  if (asideContent.participant || asideContent.chat) {
1242
- _this6.toggleAside(true);
1022
+ _this5.toggleAside(true);
1243
1023
  }
1244
1024
  if (!asideContent.participant && !asideContent.chat) {
1245
- _this6.toggleAside(false);
1025
+ _this5.toggleAside(false);
1246
1026
  }
1247
1027
  }, {
1248
1028
  fireImmediately: true
1249
1029
  }), (0, _mobx.reaction)(function () {
1250
1030
  return {
1251
- cameraEnabled: _this6._deviceStore.cameraEnabled,
1252
- cameraId: _this6._deviceStore.cameraId
1031
+ cameraEnabled: _this5._deviceProvider.cameraEnabled,
1032
+ cameraId: _this5._deviceProvider.cameraId
1253
1033
  };
1254
- }, function (_ref13) {
1255
- var cameraEnabled = _ref13.cameraEnabled,
1256
- cameraId = _ref13.cameraId;
1257
- if (!cameraEnabled && _this6._localView) {
1258
- _this6.stopLocalPreview(_this6._localView);
1034
+ }, function (_ref7) {
1035
+ var cameraEnabled = _ref7.cameraEnabled,
1036
+ cameraId = _ref7.cameraId;
1037
+ if (!cameraEnabled && _this5._localView) {
1038
+ _this5.stopLocalPreview(_this5._localView);
1259
1039
  }
1260
- if (cameraEnabled && cameraId && _this6._localView) {
1261
- _this6.startLocalPreview(_this6._localView);
1040
+ if (cameraEnabled && cameraId && _this5._localView) {
1041
+ _this5.startLocalPreview(_this5._localView);
1262
1042
  }
1263
1043
  }), (0, _mobx.reaction)(function () {
1264
- return _this6.barLocked;
1044
+ return _this5.barLocked;
1265
1045
  }, function (barLocked) {
1266
- if (_this6._barLockTimer && barLocked) {
1267
- _this6.resetLockTimer();
1046
+ if (_this5._barLockTimer && barLocked) {
1047
+ _this5.resetLockTimer();
1268
1048
  } else {
1269
- _this6.setHoveringHandler();
1049
+ _this5.setHoveringHandler();
1270
1050
  }
1271
1051
  }), (0, _mobx.reaction)(function () {
1272
- return _this6._deviceStore.microphoneVolumeLevel;
1052
+ return _this5._deviceProvider.microphoneVolumeLevel;
1273
1053
  }, function (volume) {
1274
1054
  (0, _mobx.runInAction)(function () {
1275
- _this6.userVolumeMap.set('0', volume);
1055
+ _this5.userVolumeMap.set('0', volume);
1276
1056
  });
1277
1057
  }), (0, _mobx.reaction)(function () {
1278
1058
  return {
1279
- count: _this6.participantCount,
1280
- enableSpotlight: _this6.enableSpotlight
1059
+ count: _this5.participantCount,
1060
+ enableSpotlight: _this5.enableSpotlight
1281
1061
  };
1282
- }, function (_ref14) {
1283
- var count = _ref14.count,
1284
- enableSpotlight = _ref14.enableSpotlight;
1285
- var enableSetSpotlight = _this6._isSetSpotlightEnable(count, enableSpotlight);
1286
- _this6._videoWindowDataSource.setSpotlightEnabled(enableSetSpotlight);
1062
+ }, function (_ref8) {
1063
+ var count = _ref8.count,
1064
+ enableSpotlight = _ref8.enableSpotlight;
1065
+ var enableSetSpotlight = _this5._isSetSpotlightEnable(count, enableSpotlight);
1066
+ _this5._videoWindowDataSource.setSpotlightEnabled(enableSetSpotlight);
1287
1067
  }),
1288
1068
  // 录制的特殊逻辑:
1289
1069
  // 因为录制机器人不发流,且当前切换布局的逻辑是有多个人的视频窗口才切换到 speaker layout
1290
1070
  // 所以当房间只有主持人的时候录制机器人的视角不会切换到 speaker layout,故加上以下逻辑
1291
1071
  (0, _mobx.reaction)(function () {
1292
- var _this6$currentShareDa;
1293
- return (_this6$currentShareDa = _this6.currentShareData) === null || _this6$currentShareDa === void 0 ? void 0 : _this6$currentShareDa.hasScreenSharing;
1072
+ var _this5$currentShareDa;
1073
+ return (_this5$currentShareDa = _this5.currentShareData) === null || _this5$currentShareDa === void 0 ? void 0 : _this5$currentShareDa.hasScreenSharing;
1294
1074
  }, function (hasScreenSharing) {
1295
- if (_this6.isRobot) {
1075
+ if (_this5.isRobot) {
1296
1076
  if (hasScreenSharing) {
1297
- _this6.logger.info('set layout to speaker for robot');
1298
- _this6.toggleLayout(_type3.FcrUIVideoWindowLayoutType.Speaker);
1077
+ _this5.logger.info('set layout to speaker for robot');
1078
+ _this5.toggleLayout(_type3.FcrUIVideoWindowLayoutType.Speaker);
1299
1079
  } else {
1300
- _this6.logger.info('set layout to gallery for robot');
1301
- _this6.toggleLayout(_type3.FcrUIVideoWindowLayoutType.Gallery);
1080
+ _this5.logger.info('set layout to gallery for robot');
1081
+ _this5.toggleLayout(_type3.FcrUIVideoWindowLayoutType.Gallery);
1302
1082
  }
1303
1083
  }
1304
1084
  }, {
@@ -1308,12 +1088,12 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
1308
1088
  }, {
1309
1089
  key: "_handleFoldListChanged",
1310
1090
  value: function _handleFoldListChanged() {
1311
- this._uiEventStore.sendEvent(_constant.UIAction.FOLD_LIST_CHANGED, this.foldList);
1091
+ this._eventProvider.sendEvent(_constant.FcrUIAction.FOLD_LIST_CHANGED, this.foldList);
1312
1092
  }
1313
1093
  }, {
1314
1094
  key: "_handleMainListChanged",
1315
1095
  value: function _handleMainListChanged() {
1316
- this._uiEventStore.sendEvent(_constant.UIAction.MAIN_LIST_CHANGED, this.mainList);
1096
+ this._eventProvider.sendEvent(_constant.FcrUIAction.MAIN_LIST_CHANGED, this.mainList);
1317
1097
  }
1318
1098
  }, {
1319
1099
  key: "_switchToSpeaker",
@@ -1338,13 +1118,13 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
1338
1118
  }, {
1339
1119
  key: "_initStream",
1340
1120
  value: function _initStream() {
1341
- var _this7 = this;
1121
+ var _this6 = this;
1342
1122
  var isSharingScreen = false;
1343
1123
  this._streamControl.getStreamList().forEach(function (stream) {
1344
1124
  if (stream.videoSourceType === _fcrCore.FcrVideoSourceType.SCREEN) {
1345
1125
  isSharingScreen = true;
1346
1126
  }
1347
- _this7._handleStreamAdded(stream);
1127
+ _this6._handleStreamAdded(stream);
1348
1128
  });
1349
1129
  if (isSharingScreen && this.layout === _type3.FcrUIVideoWindowLayoutType.Gallery) {
1350
1130
  this.toggleLayout(_type3.FcrUIVideoWindowLayoutType.Speaker);
@@ -1356,27 +1136,22 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
1356
1136
  var setSpotlightEnable = count > LayoutStore.MIN_USERS_TO_ENABLE_SPOTLIGHT;
1357
1137
  return setSpotlightEnable && enableSpotlight;
1358
1138
  }
1359
- }, {
1360
- key: "_handleSpotlightAdded",
1361
- value: function _handleSpotlightAdded(streamId) {
1362
- this._uiEventStore.notifySpotlightStreamChanged({
1363
- type: 'add',
1364
- streamId: streamId
1365
- });
1366
- }
1367
- }, {
1368
- key: "_handleSpotlightRemoved",
1369
- value: function _handleSpotlightRemoved(streamId) {
1370
- this._uiEventStore.notifySpotlightStreamChanged({
1371
- type: 'remove',
1372
- streamId: streamId
1373
- });
1374
- }
1375
1139
  }, {
1376
1140
  key: "_handleConnectionUpdated",
1377
1141
  value: function _handleConnectionUpdated(_, state) {
1378
1142
  this.chatRoomState = state;
1379
1143
  }
1144
+ }, {
1145
+ key: "_handleLiveStreamingStateUpdated",
1146
+ value: function _handleLiveStreamingStateUpdated(_, state, url, reason) {
1147
+ this._liveStreamState = state;
1148
+ if (state === _type.FcrLiveStreamingState.STOPPED && reason === _type7.FcrLiveStreamingStateUpdatedReason.HOSTCHANGED) {
1149
+ this._eventProvider.showToast({
1150
+ type: 'info',
1151
+ message: (0, _i18n.transI18n)('fmt_broadcast_livestream_tips_hand_over_pc_to_mobile')
1152
+ });
1153
+ }
1154
+ }
1380
1155
  }, {
1381
1156
  key: "_handleStreamAdded",
1382
1157
  value: function _handleStreamAdded(modifiedStream) {
@@ -1390,37 +1165,39 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
1390
1165
  }, {
1391
1166
  key: "_onStreamsAdded",
1392
1167
  value: function _onStreamsAdded(roomId, events) {
1393
- var _this8 = this;
1394
- events.forEach(function (_ref15) {
1395
- var modifiedStream = _ref15.modifiedStream;
1396
- _this8._handleStreamAdded(modifiedStream);
1168
+ var _this7 = this;
1169
+ events.forEach(function (_ref9) {
1170
+ var modifiedStream = _ref9.modifiedStream;
1171
+ _this7._handleStreamAdded(modifiedStream);
1397
1172
  });
1398
1173
  }
1399
1174
  }, {
1400
1175
  key: "_onStreamsUpdated",
1401
1176
  value: function _onStreamsUpdated(roomId, events) {
1402
- var _this9 = this;
1403
- events.forEach(function (_ref16) {
1404
- var modifiedStream = _ref16.modifiedStream;
1405
- _this9._videoWindowDataSource.update(modifiedStream);
1177
+ var _this8 = this;
1178
+ events.forEach(function (_ref10) {
1179
+ var modifiedStream = _ref10.modifiedStream;
1180
+ _this8._videoWindowDataSource.update(modifiedStream);
1406
1181
  });
1407
1182
  }
1408
1183
  }, {
1409
1184
  key: "_onStreamsRemoved",
1410
1185
  value: function _onStreamsRemoved(roomId, events) {
1411
- var _this10 = this;
1412
- events.forEach(function (_ref17) {
1413
- var modifiedStream = _ref17.modifiedStream;
1414
- _this10._videoWindowDataSource["delete"](modifiedStream);
1186
+ var _this9 = this;
1187
+ events.forEach(function (_ref11) {
1188
+ var modifiedStream = _ref11.modifiedStream;
1189
+ _this9._videoWindowDataSource["delete"](modifiedStream);
1415
1190
  });
1416
1191
  var hasScreenStream = events === null || events === void 0 ? void 0 : events.find(function (event) {
1417
1192
  var videoType = event.modifiedStream.videoSourceType;
1418
1193
  return videoType === _fcrCore.FcrVideoSourceType.SCREEN;
1419
1194
  });
1420
- if (hasScreenStream && this.manualLayout) {
1421
- this._uiEventStore.sendEvent(_constant.UIAction.TOGGLE_LAYOUT, {
1422
- layout: this.manualLayout
1423
- });
1195
+ if (hasScreenStream) {
1196
+ if (this.manualLayout) {
1197
+ this._videoWindowDataSource.setLayout(this.manualLayout);
1198
+ } else {
1199
+ this._videoWindowDataSource.setLayout(_type3.FcrUIVideoWindowLayoutType.Gallery);
1200
+ }
1424
1201
  }
1425
1202
  }
1426
1203
  }, {
@@ -1432,15 +1209,15 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
1432
1209
  }, {
1433
1210
  key: "_findSpotlightStream",
1434
1211
  value: function _findSpotlightStream() {
1435
- var _this11 = this;
1212
+ var _this10 = this;
1436
1213
  //find the max volume stream
1437
1214
  var res = {
1438
1215
  streamId: '',
1439
1216
  volume: 0
1440
1217
  };
1441
1218
  this.userVolumeMap.forEach(function (volume, id) {
1442
- var windowData = _this11.mainListMapByAudioStreamId.get(id);
1443
- if (id !== '0' && !res.streamId && volume > 0 && windowData !== null && windowData !== void 0 && windowData.hasMicrophoneAudioStream) {
1219
+ var windowData = _this10.mainListMapByAudioStreamId.get(id);
1220
+ if (id !== '0' && !res.streamId && volume > 0 && windowData !== null && windowData !== void 0 && windowData.hasMicrophoneAudioStream && windowData.videoSourceType !== _fcrCore.FcrVideoSourceType.SCREEN) {
1444
1221
  res = {
1445
1222
  streamId: windowData.windowId,
1446
1223
  volume: volume
@@ -1449,47 +1226,10 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
1449
1226
  });
1450
1227
  return res;
1451
1228
  }
1452
- }, {
1453
- key: "_handleRemoteWaitingUserLeft",
1454
- value: function _handleRemoteWaitingUserLeft(roomId, events) {
1455
- var _this$_privilegeContr;
1456
- var targetRoles = (_this$_privilegeContr = this._privilegeControl.getSecurityInfo(_type8.FcrSecurityAction.WaitingRoom).info) === null || _this$_privilegeContr === void 0 ? void 0 : _this$_privilegeContr.targetRoles;
1457
- if (this._waitingRoomUserControl) {
1458
- var users = this._waitingRoomUserControl.getUsers();
1459
- var userCount = Object.entries(users).map(function (_ref18) {
1460
- var _ref19 = (0, _slicedToArray2["default"])(_ref18, 2),
1461
- userId = _ref19[0],
1462
- user = _ref19[1];
1463
- return user;
1464
- }).filter(function (user) {
1465
- return targetRoles.includes(user.userRole);
1466
- }).length;
1467
- if (userCount === 0) {
1468
- this._uiEventStore.sendEvent(_constant.UIAction.COLSE_NOTIFICATION, _eventStore.NotificationContentType.WAITING_ROOM);
1469
- }
1470
- }
1471
- }
1472
- }, {
1473
- key: "_handleMessageReceived",
1474
- value: function _handleMessageReceived(roomId, message) {
1475
- if ((0, _get["default"])(message, 'payload.data.messageKey') === _type.RoomMessageKey.USER_WAITING_ROOM_JOINED && this.isWaitingRoomNotify) {
1476
- this._uiEventStore.showNotification({
1477
- type: _eventStore.NotificationContentType.WAITING_ROOM,
1478
- onOk: this.notifyParticipantShowWaitingRoom,
1479
- onClose: this.setIsWaitingRoomNotify,
1480
- placement: 'topLeft'
1481
- });
1482
- }
1483
- }
1484
- }, {
1485
- key: "getInterpreterState",
1486
- value: function getInterpreterState() {
1487
- return this._interpreterControl.getState().enable;
1488
- }
1489
1229
  }]);
1490
1230
  }();
1491
1231
  _LayoutStore = LayoutStore;
1492
- var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_LayoutStore, [[_participantDecs, 17, "participant"], [_chatDecs, 17, "chat"], [_chatActionDecs, 17, "chatAction"], [_stateBarDecs, 17, "stateBar"], [_actionBarDecs, 17, "actionBar"], [_layersDecs, 17, "layers"], [_whiteboardDecs, 17, "whiteboard"], [_mobx.observable, 1, "collapsed"], [_mobx.observable, 1, "galleryMaxSize"], [_mobx.observable, 1, "aside"], [_mobx.observable, 1, "asideContent"], [_mobx.observable, 1, "localUserRole"], [_mobx.observable, 1, "barHovering"], [_mobx.observable, 1, "barLocked"], [_mobx.observable, 1, "barHidden"], [_mobx.observable, 1, "asideWidth"], [_mobx.observable, 1, "userVolumeMap"], [_mobx.observable, 1, "chatRoomState"], [_mobx.observable, 1, "videoWindowPreviewType"], [_mobx.observable, 1, "whiteboardActive"], [_mobx.observable, 1, "spotlightStreamId"], [_mobx.observable, 1, "shouldHideNonVideoParticipants"], [_mobx.observable, 1, "participantCount"], [_mobx.observable, 1, "ownerUser"], [_mobx.observable, 1, "localUser"], [_mobx.observable, 1, "enableSpotlight"], [_mobx.observable, 1, "isWaitingRoomNotify"], [_mobx.observable, 1, "interpreterUsers"], [_mobx.observable, 1, "interpreterState"], [_mobx.computed, 3, "isWaterMarkEnabled"], [_mobx.computed, 3, "isMulti"], [_mobx.computed, 3, "layout"], [_mobx.computed, 3, "manualLayout"], [_mobx.computed, 3, "mainList"], [_mobx.computed, 3, "mainListMapByAudioStreamId"], [_mobx.computed, 3, "foldList"], [_mobx.computed, 3, "galleryList"], [_mobx.computed, 3, "carouselList"], [_mobx.computed, 3, "hasPinnedStream"], [_mobx.computed, 3, "isManager"], [_mobx.computed, 3, "isRobot"], [_mobx.computed, 3, "findSpotlightUser"], [_mobx.computed, 3, "microphoneEnabled"], [_mobx.computed, 3, "isHostOrCoHost"], [_decorator.bound, 2, "getWaterMarkContent"], [_notifyParticipantShowWaitingRoomDecs, 18, "notifyParticipantShowWaitingRoom"], [_setIsWaitingRoomNotifyDecs, 18, "setIsWaitingRoomNotify"], [_decorator.bound, 2, "hasMutePermission"], [_decorator.bound, 2, "hasUnmutePermission"], [_decorator.bound, 2, "hasRequestStartAudioPermission"], [_decorator.bound, 2, "toggleMainStream"], [_decorator.bound, 2, "addPin"], [_decorator.bound, 2, "removePin"], [_decorator.bound, 2, "setVideoOrientation"], [_decorator.bound, 2, "setAllowChat"], [_decorator.bound, 2, "handleSetPinState"], [_setWhiteboardActiveDecs, 18, "setWhiteboardActive"], [_setAsideWidthDecs, 18, "setAsideWidth"], [_updateSlotsDecs, 18, "updateSlots"], [_updateAsideContentDecs, 18, "updateAsideContent"], [_decorator.bound, 2, "closeParticipantFromAside"], [_decorator.bound, 2, "moveParticipantFromAsideToDialog"], [_decorator.bound, 2, "closeChatFromAside"], [_decorator.bound, 2, "closeAsideChat"], [_decorator.bound, 2, "moveChatFromAsideToDialog"], [_decorator.bound, 2, "openPrivateChat"], [_decorator.bound, 2, "openRenameDialog"], [_toggleLayoutDecs, 18, "toggleLayout"], [_toggleCollapsedDecs, 18, "toggleCollapsed"], [_setGalleryMaxSizeDecs, 18, "setGalleryMaxSize"], [_toggleAsideDecs, 18, "toggleAside"], [_asideWidthChangedDecs, 18, "asideWidthChanged"], [_toggleLayoutBarLockDecs, 18, "toggleLayoutBarLock"], [_toggleLayoutBarHiddenDecs, 18, "toggleLayoutBarHidden"], [_resetLockTimerDecs, 18, "resetLockTimer"], [_setHoveringHandlerDecs, 18, "setHoveringHandler"], [_setHoveringLeaveHandlerDecs, 18, "setHoveringLeaveHandler"], [_handleLiveLayoutChangeDecs, 18, "handleLiveLayoutChange"], [_onUserInfoUpdatedDecs, 18, "onUserInfoUpdated"], [_mobx.action, 2, "setLocalUserRole"], [_decorator.bound, 2, "stopLocalPreview"], [_decorator.bound, 2, "startLocalPreview"], [_decorator.bound, 2, "setAllowChatWithPayload"], [_decorator.bound, 2, "muteAudio"], [_decorator.bound, 2, "sendParticipantEvent"], [_decorator.bound, 2, "onEvent"], [_decorator.bound, 2, "_addListeners"], [_handleFoldListChangedDecs, 18, "_handleFoldListChanged"], [_handleMainListChangedDecs, 18, "_handleMainListChanged"], [_mobx.action, 2, "_switchToSpeaker"], [_mobx.action, 2, "_switchToGallery"], [_setBarHoveringDecs, 18, "_setBarHovering"], [_onAllUserCountUpdatedDecs, 18, "_onAllUserCountUpdated"], [_decorator.bound, 2, "_initStream"], [_decorator.bound, 2, "_isSetSpotlightEnable"], [_decorator.bound, 2, "_handleSpotlightAdded"], [_decorator.bound, 2, "_handleSpotlightRemoved"], [_handleConnectionUpdatedDecs, 18, "_handleConnectionUpdated"], [_decorator.bound, 2, "_handleStreamAdded"], [_decorator.bound, 2, "_onStreamsAdded"], [_decorator.bound, 2, "_onStreamsUpdated"], [_decorator.bound, 2, "_onStreamsRemoved"], [_onAudioVolumeUpdatedDecs, 18, "_onAudioVolumeUpdated"], [_decorator.bound, 2, "_handleRemoteWaitingUserLeft"], [_decorator.bound, 2, "_handleMessageReceived"], [_getInterpreterStateDecs, 18, "getInterpreterState"], [_handleLayoutUpdatedDecs, 16, "_handleLayoutUpdated"]], []).e, 31);
1232
+ var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_LayoutStore, [[_participantDecs, 17, "participant"], [_chatDecs, 17, "chat"], [_chatActionDecs, 17, "chatAction"], [_stateBarDecs, 17, "stateBar"], [_actionBarDecs, 17, "actionBar"], [_layersDecs, 17, "layers"], [_whiteboardDecs, 17, "whiteboard"], [_mobx.observable, 1, "collapsed"], [_mobx.observable, 1, "aside"], [_mobx.observable, 1, "localUserRole"], [_mobx.observable, 1, "barHovering"], [_mobx.observable, 1, "barLocked"], [_mobx.observable, 1, "barHidden"], [_mobx.observable, 1, "asideWidth"], [_mobx.observable, 1, "userVolumeMap"], [_mobx.observable, 1, "chatRoomState"], [_mobx.observable, 1, "videoWindowPreviewType"], [_mobx.observable, 1, "whiteboardActive"], [_mobx.observable, 1, "participantCount"], [_mobx.observable, 1, "ownerUser"], [_mobx.observable, 1, "localUser"], [_mobx.computed, 3, "shouldHideNonVideoParticipants"], [_mobx.computed, 3, "enableSpotlight"], [_mobx.computed, 3, "isWaterMarkEnabled"], [_mobx.computed, 3, "isMulti"], [_mobx.computed, 3, "layout"], [_mobx.computed, 3, "manualLayout"], [_mobx.computed, 3, "mainList"], [_mobx.computed, 3, "mainListMapByAudioStreamId"], [_mobx.computed, 3, "spotlightStreamId"], [_mobx.computed, 3, "foldList"], [_mobx.computed, 3, "galleryList"], [_mobx.computed, 3, "asideLayout"], [_mobx.computed, 3, "carouselList"], [_mobx.computed, 3, "hasPinnedStream"], [_mobx.computed, 3, "isManager"], [_mobx.computed, 3, "isRobot"], [_mobx.computed, 3, "findSpotlightUser"], [_mobx.computed, 3, "microphoneEnabled"], [_mobx.computed, 3, "isHostOrCoHost"], [_mobx.computed, 3, "galleryMaxSize"], [_mobx.computed, 3, "asideContent"], [_mobx.computed, 3, "participantsRenderAt"], [_mobx.computed, 3, "chatRenderAt"], [_decorator.bound, 2, "getWaterMarkContent"], [_decorator.bound, 2, "hasMutePermission"], [_decorator.bound, 2, "hasUnmutePermission"], [_decorator.bound, 2, "hasRequestStartAudioPermission"], [_decorator.bound, 2, "toggleMainStream"], [_decorator.bound, 2, "addPin"], [_decorator.bound, 2, "removePin"], [_decorator.bound, 2, "setVideoOrientation"], [_decorator.bound, 2, "setAllowChat"], [_decorator.bound, 2, "handleSetPinState"], [_setWhiteboardActiveDecs, 18, "setWhiteboardActive"], [_setAsideWidthDecs, 18, "setAsideWidth"], [_updateSlotsDecs, 18, "updateSlots"], [_decorator.bound, 2, "closeParticipantFromAside"], [_decorator.bound, 2, "moveParticipantFromAsideToDialog"], [_decorator.bound, 2, "closeChatFromAside"], [_decorator.bound, 2, "closeAsideChat"], [_decorator.bound, 2, "moveChatFromAsideToDialog"], [_decorator.bound, 2, "openPrivateChat"], [_decorator.bound, 2, "openRenameDialog"], [_toggleLayoutDecs, 18, "toggleLayout"], [_toggleCollapsedDecs, 18, "toggleCollapsed"], [_toggleAsideDecs, 18, "toggleAside"], [_asideWidthChangedDecs, 18, "asideWidthChanged"], [_toggleLayoutBarLockDecs, 18, "toggleLayoutBarLock"], [_toggleLayoutBarHiddenDecs, 18, "toggleLayoutBarHidden"], [_resetLockTimerDecs, 18, "resetLockTimer"], [_setHoveringHandlerDecs, 18, "setHoveringHandler"], [_setHoveringLeaveHandlerDecs, 18, "setHoveringLeaveHandler"], [_handleLiveLayoutChangeDecs, 18, "handleLiveLayoutChange"], [_onUserInfoUpdatedDecs, 18, "onUserInfoUpdated"], [_mobx.action, 2, "setLocalUserRole"], [_decorator.bound, 2, "stopLocalPreview"], [_decorator.bound, 2, "startLocalPreview"], [_decorator.bound, 2, "setAllowChatWithPayload"], [_decorator.bound, 2, "muteAudio"], [_decorator.bound, 2, "sendParticipantEvent"], [_decorator.bound, 2, "onEvent"], [_decorator.bound, 2, "_addListeners"], [_handleFoldListChangedDecs, 18, "_handleFoldListChanged"], [_handleMainListChangedDecs, 18, "_handleMainListChanged"], [_mobx.action, 2, "_switchToSpeaker"], [_mobx.action, 2, "_switchToGallery"], [_setBarHoveringDecs, 18, "_setBarHovering"], [_onAllUserCountUpdatedDecs, 18, "_onAllUserCountUpdated"], [_decorator.bound, 2, "_initStream"], [_decorator.bound, 2, "_isSetSpotlightEnable"], [_handleConnectionUpdatedDecs, 18, "_handleConnectionUpdated"], [_decorator.bound, 2, "_handleLiveStreamingStateUpdated"], [_decorator.bound, 2, "_handleStreamAdded"], [_decorator.bound, 2, "_onStreamsAdded"], [_decorator.bound, 2, "_onStreamsUpdated"], [_decorator.bound, 2, "_onStreamsRemoved"], [_onAudioVolumeUpdatedDecs, 18, "_onAudioVolumeUpdated"], [_handleLayoutUpdatedDecs, 16, "_handleLayoutUpdated"]], []).e, 23);
1493
1233
  _init_participant = _applyDecs$e[0];
1494
1234
  _init_chat = _applyDecs$e[1];
1495
1235
  _init_chatAction = _applyDecs$e[2];
@@ -1498,28 +1238,20 @@ _init_actionBar = _applyDecs$e[4];
1498
1238
  _init_layers = _applyDecs$e[5];
1499
1239
  _init_whiteboard = _applyDecs$e[6];
1500
1240
  _init_collapsed = _applyDecs$e[7];
1501
- _init_galleryMaxSize = _applyDecs$e[8];
1502
- _init_aside = _applyDecs$e[9];
1503
- _init_asideContent = _applyDecs$e[10];
1504
- _init_localUserRole = _applyDecs$e[11];
1505
- _init_barHovering = _applyDecs$e[12];
1506
- _init_barLocked = _applyDecs$e[13];
1507
- _init_barHidden = _applyDecs$e[14];
1508
- _init_asideWidth = _applyDecs$e[15];
1509
- _init_userVolumeMap = _applyDecs$e[16];
1510
- _init_chatRoomState = _applyDecs$e[17];
1511
- _init_videoWindowPreviewType = _applyDecs$e[18];
1512
- _init_whiteboardActive = _applyDecs$e[19];
1513
- _init_spotlightStreamId = _applyDecs$e[20];
1514
- _init_shouldHideNonVideoParticipants = _applyDecs$e[21];
1515
- _init_participantCount = _applyDecs$e[22];
1516
- _init_ownerUser = _applyDecs$e[23];
1517
- _init_localUser = _applyDecs$e[24];
1518
- _init_enableSpotlight = _applyDecs$e[25];
1519
- _init_isWaitingRoomNotify = _applyDecs$e[26];
1520
- _init_interpreterUsers = _applyDecs$e[27];
1521
- _init_interpreterState = _applyDecs$e[28];
1522
- _init__handleLayoutUpdated = _applyDecs$e[29];
1523
- _initProto = _applyDecs$e[30];
1241
+ _init_aside = _applyDecs$e[8];
1242
+ _init_localUserRole = _applyDecs$e[9];
1243
+ _init_barHovering = _applyDecs$e[10];
1244
+ _init_barLocked = _applyDecs$e[11];
1245
+ _init_barHidden = _applyDecs$e[12];
1246
+ _init_asideWidth = _applyDecs$e[13];
1247
+ _init_userVolumeMap = _applyDecs$e[14];
1248
+ _init_chatRoomState = _applyDecs$e[15];
1249
+ _init_videoWindowPreviewType = _applyDecs$e[16];
1250
+ _init_whiteboardActive = _applyDecs$e[17];
1251
+ _init_participantCount = _applyDecs$e[18];
1252
+ _init_ownerUser = _applyDecs$e[19];
1253
+ _init_localUser = _applyDecs$e[20];
1254
+ _init__handleLayoutUpdated = _applyDecs$e[21];
1255
+ _initProto = _applyDecs$e[22];
1524
1256
  (0, _defineProperty2["default"])(LayoutStore, "MIN_USERS_TO_ENABLE_SPOTLIGHT", 2);
1525
1257
  var StoreContext = exports.StoreContext = /*#__PURE__*/(0, _react.createContext)(null);