fcr-ui-scene 3.4.5 → 3.5.1

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 (421) hide show
  1. package/lib/base.js +4 -1
  2. package/lib/creator.d.ts +4 -1
  3. package/lib/creator.js +66 -3
  4. package/lib/electron/app.js +0 -3
  5. package/lib/electron/bootstrap-dev.js +2 -0
  6. package/lib/electron/bootstrap-sdk.js +2 -0
  7. package/lib/electron/main.js +14 -3
  8. package/lib/electron/plugins/devtool-shortcut.js +5 -0
  9. package/lib/electron/plugins/screenshot.js +4 -1
  10. package/lib/modules/action-bar/components/apps/app-item/index.css +3 -3
  11. package/lib/modules/action-bar/components/apps/app-item/index.js +35 -24
  12. package/lib/modules/action-bar/components/apps/app-list.d.ts +3 -0
  13. package/lib/modules/action-bar/components/apps/app-list.js +45 -0
  14. package/lib/modules/action-bar/components/apps/index.css +1 -0
  15. package/lib/modules/action-bar/components/apps/index.js +7 -4
  16. package/lib/modules/action-bar/components/apps/useAppItemOptions.d.ts +10 -2
  17. package/lib/modules/action-bar/components/apps/useAppItemOptions.js +10 -6
  18. package/lib/modules/action-bar/components/apps/useBeautyBackground.d.ts +1 -1
  19. package/lib/modules/action-bar/components/apps/useBeautyBackground.js +2 -2
  20. package/lib/modules/action-bar/components/apps/useInterpreter.d.ts +1 -1
  21. package/lib/modules/action-bar/components/apps/useInterpreter.js +6 -6
  22. package/lib/modules/action-bar/components/apps/useLiveStreaming.d.ts +1 -1
  23. package/lib/modules/action-bar/components/apps/useLiveStreaming.js +2 -2
  24. package/lib/modules/action-bar/components/apps/useWidgetList.d.ts +10 -0
  25. package/lib/modules/action-bar/components/apps/useWidgetList.js +38 -0
  26. package/lib/modules/action-bar/components/chat/index.css +8 -0
  27. package/lib/modules/action-bar/components/chat/index.js +2 -1
  28. package/lib/modules/action-bar/components/collapse/index.d.ts +8 -6
  29. package/lib/modules/action-bar/components/collapse/index.js +60 -74
  30. package/lib/modules/action-bar/components/interpreter/index.js +3 -3
  31. package/lib/modules/action-bar/components/item/index.js +1 -1
  32. package/lib/modules/action-bar/components/more/index.js +13 -7
  33. package/lib/modules/action-bar/components/notification-bar/index.d.ts +1 -1
  34. package/lib/modules/action-bar/components/notification-bar/index.js +13 -6
  35. package/lib/modules/action-bar/components/participants/index.js +1 -1
  36. package/lib/modules/action-bar/components/screen-share/index.js +1 -1
  37. package/lib/modules/action-bar/components/screen-share/submenu.js +55 -18
  38. package/lib/modules/action-bar/components/security/index.js +8 -2
  39. package/lib/modules/action-bar/components/trigger-output-language/index.js +68 -55
  40. package/lib/modules/action-bar/components/trigger-subscribe-language/index.js +35 -18
  41. package/lib/modules/action-bar/index.css +8 -0
  42. package/lib/modules/action-bar/index.d.ts +8 -0
  43. package/lib/modules/action-bar/index.js +6 -3
  44. package/lib/modules/action-bar/store.d.ts +37 -22
  45. package/lib/modules/action-bar/store.js +275 -375
  46. package/lib/modules/action-bar/types.d.ts +8 -13
  47. package/lib/modules/action-bar/view.js +3 -8
  48. package/lib/modules/audio-stream/index.d.ts +6 -1
  49. package/lib/modules/audio-stream/index.js +77 -11
  50. package/lib/modules/chat/chat-room-store.d.ts +4 -7
  51. package/lib/modules/chat/chat-room-store.js +39 -62
  52. package/lib/modules/chat/components/chat-action/index.js +2 -2
  53. package/lib/modules/chat/components/chat-bar/index.css +4 -0
  54. package/lib/modules/chat/components/chat-bar/index.d.ts +1 -1
  55. package/lib/modules/chat/components/chat-bar/index.js +18 -16
  56. package/lib/modules/chat/components/chat-select/index.js +16 -147
  57. package/lib/modules/chat/components/chat-select/select-input/index.d.ts +7 -0
  58. package/lib/modules/chat/components/chat-select/select-input/index.js +35 -0
  59. package/lib/modules/chat/components/chat-select/select-item/index.d.ts +12 -0
  60. package/lib/modules/chat/components/chat-select/select-item/index.js +153 -0
  61. package/lib/modules/chat/components/chat-tabs/index.d.ts +2 -0
  62. package/lib/modules/chat/components/chat-tabs/index.js +61 -0
  63. package/lib/modules/chat/components/message-list/chat-empty/index.d.ts +2 -0
  64. package/lib/modules/chat/components/message-list/chat-empty/index.js +26 -0
  65. package/lib/modules/chat/components/message-list/history-unread-message-button/index.d.ts +7 -0
  66. package/lib/modules/chat/components/message-list/history-unread-message-button/index.js +55 -0
  67. package/lib/modules/chat/components/message-list/index.d.ts +1 -1
  68. package/lib/modules/chat/components/message-list/index.js +55 -359
  69. package/lib/modules/chat/components/message-list/message-item/index.d.ts +15 -0
  70. package/lib/modules/chat/components/message-list/message-item/index.js +309 -0
  71. package/lib/modules/chat/components/message-list/scroll-bottom-button/index.d.ts +9 -0
  72. package/lib/modules/chat/components/message-list/scroll-bottom-button/index.js +67 -0
  73. package/lib/modules/chat/index.css +9 -0
  74. package/lib/modules/chat/index.d.ts +6 -0
  75. package/lib/modules/chat/index.js +4 -1
  76. package/lib/modules/chat/store.d.ts +17 -7
  77. package/lib/modules/chat/store.js +75 -72
  78. package/lib/modules/chat/types.d.ts +7 -7
  79. package/lib/modules/chat/types.js +2 -1
  80. package/lib/modules/chat/view.js +22 -102
  81. package/lib/modules/components/device-control/store.d.ts +4 -3
  82. package/lib/modules/components/device-control/store.js +13 -24
  83. package/lib/modules/components/leave-meeting/components/assign-host.js +17 -2
  84. package/lib/modules/components/leave-meeting/index.js +8 -7
  85. package/lib/modules/components/leave-meeting/store.d.ts +15 -7
  86. package/lib/modules/components/leave-meeting/store.js +116 -95
  87. package/lib/modules/components/member-window/components/member-actions/components/audio-control.d.ts +6 -0
  88. package/lib/modules/components/member-window/components/member-actions/components/audio-control.js +36 -0
  89. package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.d.ts +40 -0
  90. package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.js +170 -0
  91. package/lib/modules/components/member-window/components/member-actions/components/icon-status.d.ts +11 -0
  92. package/lib/modules/components/member-window/components/member-actions/components/icon-status.js +105 -0
  93. package/lib/modules/components/member-window/components/member-actions/components/layout/index.d.ts +9 -0
  94. package/lib/modules/components/member-window/components/member-actions/components/layout/index.js +42 -0
  95. package/lib/modules/components/member-window/components/member-actions/components/more-actions.d.ts +11 -0
  96. package/lib/modules/components/member-window/components/member-actions/components/more-actions.js +157 -0
  97. package/lib/modules/components/member-window/components/member-actions/components/share-status.d.ts +2 -0
  98. package/lib/modules/components/member-window/components/member-actions/components/share-status.js +34 -0
  99. package/lib/modules/components/member-window/components/member-actions/components/user-info.d.ts +16 -0
  100. package/lib/modules/components/member-window/components/member-actions/components/user-info.js +130 -0
  101. package/lib/modules/components/member-window/components/member-actions/components/user-tag.d.ts +12 -0
  102. package/lib/modules/components/member-window/components/member-actions/components/user-tag.js +57 -0
  103. package/lib/modules/components/member-window/components/member-actions/index.d.ts +3 -0
  104. package/lib/modules/components/member-window/components/member-actions/index.js +122 -0
  105. package/lib/modules/components/member-window/components/member-actions/libs/index.d.ts +2 -0
  106. package/lib/modules/components/member-window/components/member-actions/libs/index.js +24 -0
  107. package/lib/modules/components/member-window/components/member-actions/provider.d.ts +21 -0
  108. package/lib/modules/components/member-window/components/member-actions/provider.js +77 -0
  109. package/lib/modules/components/member-window/components/member-actions/store.d.ts +48 -0
  110. package/lib/modules/components/member-window/components/member-actions/store.js +307 -0
  111. package/lib/modules/components/member-window/components/member-board.d.ts +2 -0
  112. package/lib/modules/components/member-window/components/member-board.js +63 -0
  113. package/lib/modules/components/member-window/components/mic-volume.d.ts +2 -0
  114. package/lib/modules/components/member-window/components/mic-volume.js +23 -0
  115. package/lib/modules/components/member-window/components/video-player/components/local-video-player.d.ts +4 -0
  116. package/lib/modules/components/member-window/components/video-player/components/local-video-player.js +40 -0
  117. package/lib/modules/components/member-window/components/video-player/components/remote-video-player.d.ts +8 -0
  118. package/lib/modules/components/member-window/components/video-player/components/remote-video-player.js +62 -0
  119. package/lib/modules/components/member-window/components/video-player/index.d.ts +9 -0
  120. package/lib/modules/components/member-window/components/video-player/index.js +38 -0
  121. package/lib/modules/components/member-window/index.css +22 -2
  122. package/lib/modules/components/member-window/index.d.ts +10 -75
  123. package/lib/modules/components/member-window/index.js +20 -738
  124. package/lib/modules/components/member-window/types.d.ts +79 -0
  125. package/lib/modules/components/member-window/types.js +6 -0
  126. package/lib/modules/components/security-menu/index.css +0 -2
  127. package/lib/modules/components/security-menu/index.d.ts +5 -1
  128. package/lib/modules/components/security-menu/index.js +37 -59
  129. package/lib/modules/connection-gateway/index.d.ts +6 -0
  130. package/lib/modules/connection-gateway/index.js +4 -1
  131. package/lib/modules/connection-gateway/store.d.ts +12 -3
  132. package/lib/modules/connection-gateway/store.js +29 -27
  133. package/lib/modules/control-bar/components/meeting-details/index.js +11 -17
  134. package/lib/modules/control-bar/components/more-actions/index.js +5 -4
  135. package/lib/modules/control-bar/components/share-state-nav/index.js +22 -10
  136. package/lib/modules/control-bar/index.css +1 -2
  137. package/lib/modules/control-bar/index.d.ts +14 -0
  138. package/lib/modules/control-bar/index.js +10 -4
  139. package/lib/modules/control-bar/store.d.ts +40 -20
  140. package/lib/modules/control-bar/store.js +156 -191
  141. package/lib/modules/control-bar/view.js +65 -25
  142. package/lib/modules/device-pretest/audio-preview/microphone-detection.js +1 -1
  143. package/lib/modules/dialog/components/control-bar/index.d.ts +1 -1
  144. package/lib/modules/dialog/components/control-bar/index.js +43 -43
  145. package/lib/modules/dialog/components/device-setting/index.js +2 -1
  146. package/lib/modules/dialog/components/dialog-container/component/body.d.ts +1 -0
  147. package/lib/modules/dialog/components/dialog-container/component/body.js +3 -2
  148. package/lib/modules/dialog/components/dialog-container/index.d.ts +2 -0
  149. package/lib/modules/dialog/components/dialog-container/index.js +19 -13
  150. package/lib/modules/dialog/components/live-streaming/index.js +4 -2
  151. package/lib/modules/dialog/components/participant/index.js +2 -2
  152. package/lib/modules/dialog/components/share-screen-selection/index.js +3 -1
  153. package/lib/modules/dialog/components/system-preference/assets/bg1.png +0 -0
  154. package/lib/modules/dialog/components/system-preference/assets/bg2.png +0 -0
  155. package/lib/modules/dialog/components/system-preference/assets/fcr_png_host.png +0 -0
  156. package/lib/modules/dialog/components/system-preference/electron.js +6 -6
  157. package/lib/modules/dialog/components/system-preference/index.css +3 -0
  158. package/lib/modules/dialog/components/system-preference/index.d.ts +17 -2
  159. package/lib/modules/dialog/components/system-preference/index.js +47 -55
  160. package/lib/modules/dialog/components/video-window/index.d.ts +1 -1
  161. package/lib/modules/dialog/components/video-window/index.js +216 -101
  162. package/lib/modules/dialog/components/widget/electron.d.ts +5 -0
  163. package/lib/modules/dialog/components/widget/electron.js +37 -0
  164. package/lib/modules/dialog/components/widget/index.d.ts +6 -0
  165. package/lib/modules/dialog/components/widget/index.js +43 -0
  166. package/lib/modules/dialog/hooks/useElectron.d.ts +7 -0
  167. package/lib/modules/dialog/hooks/useElectron.js +226 -28
  168. package/lib/modules/dialog/index.css +1 -11
  169. package/lib/modules/dialog/index.d.ts +9 -6
  170. package/lib/modules/dialog/index.js +12 -12
  171. package/lib/modules/dialog/store.d.ts +26 -10
  172. package/lib/modules/dialog/store.js +151 -82
  173. package/lib/modules/dialog/type.d.ts +84 -0
  174. package/lib/modules/dialog/type.js +6 -0
  175. package/lib/modules/dialog/view.d.ts +1 -4
  176. package/lib/modules/dialog/view.js +12 -9
  177. package/lib/modules/event-confirm/index.css +11 -0
  178. package/lib/modules/event-confirm/index.d.ts +6 -0
  179. package/lib/modules/event-confirm/index.js +3 -2
  180. package/lib/modules/event-confirm/store.d.ts +10 -4
  181. package/lib/modules/event-confirm/store.js +91 -32
  182. package/lib/modules/event-confirm/view.js +63 -24
  183. package/lib/modules/event-toast/store.js +4 -2
  184. package/lib/modules/interpreter/action/edit-btn/index.js +5 -5
  185. package/lib/modules/interpreter/action/switch-btn/index.js +7 -7
  186. package/lib/modules/interpreter/index.d.ts +5 -1
  187. package/lib/modules/interpreter/index.js +4 -2
  188. package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/index.js +3 -3
  189. package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-user/index.js +6 -5
  190. package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-user/option-Item.js +2 -2
  191. package/lib/modules/interpreter/interpreter-list/interpreter-item/index.js +2 -2
  192. package/lib/modules/interpreter/store.d.ts +8 -5
  193. package/lib/modules/interpreter/store.js +90 -39
  194. package/lib/modules/interpreter/type.d.ts +5 -1
  195. package/lib/modules/interpreter/utils.d.ts +0 -1
  196. package/lib/modules/interpreter/utils.js +2 -23
  197. package/lib/modules/interpreter/view.js +2 -6
  198. package/lib/modules/invite/index.d.ts +4 -0
  199. package/lib/modules/invite/index.js +3 -1
  200. package/lib/modules/invite/store.d.ts +11 -2
  201. package/lib/modules/invite/store.js +27 -4
  202. package/lib/modules/layout/components/Aside.js +1 -1
  203. package/lib/modules/layout/components/Carousel.js +36 -14
  204. package/lib/modules/layout/components/Gallery.js +33 -11
  205. package/lib/modules/layout/index.css +2 -2
  206. package/lib/modules/layout/index.d.ts +6 -0
  207. package/lib/modules/layout/index.js +4 -1
  208. package/lib/modules/layout/store.d.ts +23 -10
  209. package/lib/modules/layout/store.js +185 -163
  210. package/lib/modules/layout/type.d.ts +2 -0
  211. package/lib/modules/live-streaming/index.d.ts +2 -0
  212. package/lib/modules/live-streaming/index.js +2 -2
  213. package/lib/modules/live-streaming/store.d.ts +4 -8
  214. package/lib/modules/live-streaming/store.js +9 -19
  215. package/lib/modules/notification/index.css +17 -0
  216. package/lib/modules/notification/store.js +4 -2
  217. package/lib/modules/notification/view.js +7 -2
  218. package/lib/modules/offscreen-pulling/index.d.ts +1 -0
  219. package/lib/modules/offscreen-pulling/index.js +4 -0
  220. package/lib/modules/participant/components/confirm-input/index.d.ts +6 -0
  221. package/lib/modules/participant/components/confirm-input/index.js +50 -0
  222. package/lib/modules/participant/components/mute-all/index.d.ts +3 -7
  223. package/lib/modules/participant/components/mute-all/index.js +21 -33
  224. package/lib/modules/participant/components/participants/components/footer/components/buttons.d.ts +6 -0
  225. package/lib/modules/participant/components/participants/components/footer/components/buttons.js +52 -0
  226. package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.css +60 -0
  227. package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.d.ts +2 -0
  228. package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.js +166 -0
  229. package/lib/modules/participant/components/participants/components/footer/components/drop-menu/util.d.ts +5 -0
  230. package/lib/modules/participant/components/participants/components/footer/components/drop-menu/util.js +28 -0
  231. package/lib/modules/participant/components/participants/components/footer/components/footer/index.css +13 -0
  232. package/lib/modules/participant/components/participants/components/footer/components/footer/index.d.ts +5 -0
  233. package/lib/modules/participant/components/participants/components/footer/components/footer/index.js +242 -0
  234. package/lib/modules/participant/components/participants/components/footer/index.d.ts +5 -0
  235. package/lib/modules/participant/components/participants/components/footer/index.js +48 -0
  236. package/lib/modules/participant/components/participants/components/merge/index.d.ts +11 -0
  237. package/lib/modules/participant/components/participants/components/merge/index.js +49 -0
  238. package/lib/modules/participant/components/participants/components/participants/components/attendee/index.css +191 -0
  239. package/lib/modules/participant/components/participants/components/participants/components/attendee/index.d.ts +4 -0
  240. package/lib/modules/participant/components/participants/components/participants/components/attendee/index.js +204 -0
  241. package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.css +49 -0
  242. package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.d.ts +5 -0
  243. package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.js +219 -0
  244. package/lib/modules/participant/components/participants/components/participants/components/user-row/index.d.ts +5 -0
  245. package/lib/modules/participant/components/participants/components/participants/components/user-row/index.js +70 -0
  246. package/lib/modules/participant/components/participants/components/participants/index.css +104 -0
  247. package/lib/modules/participant/components/participants/components/participants/index.d.ts +3 -0
  248. package/lib/modules/participant/components/participants/components/participants/index.js +110 -0
  249. package/lib/modules/participant/components/participants/components/render-tab/index.d.ts +2 -0
  250. package/lib/modules/participant/components/participants/components/render-tab/index.js +49 -0
  251. package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/interpreter-tag/index.d.ts +3 -0
  252. package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/interpreter-tag/index.js +48 -0
  253. package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/microphone-indicator/index.d.ts +6 -0
  254. package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/microphone-indicator/index.js +28 -0
  255. package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/user-avatar/index.d.ts +7 -0
  256. package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/user-avatar/index.js +39 -0
  257. package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.css +69 -0
  258. package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.d.ts +5 -0
  259. package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.js +135 -0
  260. package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/audio-button/index.d.ts +7 -0
  261. package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/audio-button/index.js +31 -0
  262. package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-actions-popover/index.d.ts +12 -0
  263. package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-actions-popover/index.js +82 -0
  264. package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-to-mainroom-button/index.d.ts +4 -0
  265. package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-to-mainroom-button/index.js +26 -0
  266. package/lib/modules/participant/components/participants/components/render-user/components/user-action/index.d.ts +2 -0
  267. package/lib/modules/participant/components/participants/components/render-user/components/user-action/index.js +75 -0
  268. package/lib/modules/participant/components/participants/components/render-user/index.d.ts +5 -0
  269. package/lib/modules/participant/components/participants/components/render-user/index.js +21 -0
  270. package/lib/modules/participant/components/participants/index.js +18 -112
  271. package/lib/modules/participant/components/participants/types.d.ts +96 -0
  272. package/lib/modules/participant/components/participants/types.js +37 -0
  273. package/lib/modules/participant/index.css +3 -0
  274. package/lib/modules/participant/index.d.ts +12 -0
  275. package/lib/modules/participant/index.js +7 -1
  276. package/lib/modules/participant/member-list-data-source.d.ts +2 -2
  277. package/lib/modules/participant/member-list-data-source.js +11 -17
  278. package/lib/modules/participant/store.d.ts +44 -37
  279. package/lib/modules/participant/store.js +527 -536
  280. package/lib/modules/participant/type.d.ts +2 -9
  281. package/lib/modules/pc-audio-connect/store.d.ts +1 -1
  282. package/lib/modules/pc-audio-connect/store.js +9 -6
  283. package/lib/modules/setting/audio-settings/audio-settings.js +5 -4
  284. package/lib/modules/setting/audio-settings/index.css +11 -2
  285. package/lib/modules/setting/config.js +1 -1
  286. package/lib/modules/setting/store.d.ts +1 -0
  287. package/lib/modules/setting/store.js +20 -2
  288. package/lib/modules/setting/video-settings/index.css +12 -17
  289. package/lib/modules/setting/video-settings/video-settings-basic.js +40 -44
  290. package/lib/modules/share-screen/components/selection/index.js +70 -80
  291. package/lib/modules/share-screen/index.d.ts +6 -1
  292. package/lib/modules/share-screen/index.js +4 -1
  293. package/lib/modules/share-screen/store.d.ts +37 -33
  294. package/lib/modules/share-screen/store.js +330 -438
  295. package/lib/modules/sound-effect/sound-effect-player.d.ts +0 -4
  296. package/lib/modules/sound-effect/sound-effect-player.js +4 -4
  297. package/lib/modules/state-bar/index.css +2 -15
  298. package/lib/modules/state-bar/index.d.ts +10 -0
  299. package/lib/modules/state-bar/index.js +6 -1
  300. package/lib/modules/state-bar/live-streaming-state.js +0 -17
  301. package/lib/modules/state-bar/meeting-details.js +12 -24
  302. package/lib/modules/state-bar/meeting-time.js +5 -10
  303. package/lib/modules/state-bar/store.d.ts +31 -8
  304. package/lib/modules/state-bar/store.js +146 -100
  305. package/lib/modules/state-bar/view.js +63 -32
  306. package/lib/modules/video-window/components/deviceState/index.d.ts +7 -0
  307. package/lib/modules/video-window/components/deviceState/index.js +75 -0
  308. package/lib/modules/video-window/components/members/index.css +51 -0
  309. package/lib/modules/video-window/components/members/index.d.ts +2 -0
  310. package/lib/modules/video-window/components/members/index.js +131 -0
  311. package/lib/modules/video-window/components/speaking/index.css +86 -0
  312. package/lib/modules/video-window/components/speaking/index.d.ts +3 -0
  313. package/lib/modules/video-window/components/speaking/index.js +48 -0
  314. package/lib/modules/video-window/components/topControl/index.css +35 -0
  315. package/lib/modules/video-window/components/topControl/index.d.ts +3 -0
  316. package/lib/modules/video-window/components/topControl/index.js +79 -0
  317. package/lib/modules/video-window/index.d.ts +7 -0
  318. package/lib/modules/video-window/index.js +14 -20
  319. package/lib/modules/video-window/store.d.ts +19 -88
  320. package/lib/modules/video-window/store.js +98 -365
  321. package/lib/modules/video-window/type.d.ts +40 -4
  322. package/lib/modules/video-window/type.js +4 -4
  323. package/lib/modules/video-window/view.js +11 -23
  324. package/lib/modules/whiteboard/index.d.ts +1 -0
  325. package/lib/modules/whiteboard/index.js +7 -4
  326. package/lib/modules/widget/index.css +17 -0
  327. package/lib/modules/widget/index.d.ts +10 -0
  328. package/lib/modules/widget/index.js +114 -0
  329. package/lib/modules/widget/sdk.d.ts +30 -0
  330. package/lib/modules/widget/sdk.js +224 -0
  331. package/lib/modules/widget/store.d.ts +14 -0
  332. package/lib/modules/widget/store.js +28 -0
  333. package/lib/modules/widget/type.d.ts +156 -0
  334. package/lib/modules/widget/type.js +6 -0
  335. package/lib/modules/widget/view.d.ts +2 -0
  336. package/lib/modules/widget/view.js +47 -0
  337. package/lib/modules/widget/web-widget.d.ts +29 -0
  338. package/lib/modules/widget/web-widget.js +234 -0
  339. package/lib/providers/ability-provider.d.ts +24 -0
  340. package/lib/providers/ability-provider.js +38 -0
  341. package/lib/providers/chat-provider.d.ts +16 -9
  342. package/lib/providers/chat-provider.js +76 -8
  343. package/lib/providers/device-privilege-provider.d.ts +5 -1
  344. package/lib/providers/device-privilege-provider.js +21 -1
  345. package/lib/providers/device-provider.js +5 -2
  346. package/lib/providers/device-stream-provider.d.ts +15 -3
  347. package/lib/providers/device-stream-provider.js +118 -34
  348. package/lib/providers/dialog-provider.d.ts +9 -8
  349. package/lib/providers/dialog-provider.js +8 -4
  350. package/lib/providers/event-provider.js +4 -2
  351. package/lib/providers/interpreter-provider.d.ts +7 -26
  352. package/lib/providers/interpreter-provider.js +473 -706
  353. package/lib/providers/local-storage-provider.d.ts +6 -1
  354. package/lib/providers/local-storage-provider.js +15 -2
  355. package/lib/providers/message-provider.js +4 -2
  356. package/lib/providers/phone-audio-provider.js +24 -18
  357. package/lib/providers/privilege-provider.d.ts +13 -12
  358. package/lib/providers/privilege-provider.js +19 -11
  359. package/lib/providers/renderer-provider.d.ts +5 -0
  360. package/lib/providers/renderer-provider.js +8 -1
  361. package/lib/providers/room-provider.d.ts +7 -17
  362. package/lib/providers/room-provider.js +113 -161
  363. package/lib/providers/screen-share-provider.d.ts +19 -0
  364. package/lib/providers/screen-share-provider.js +102 -10
  365. package/lib/providers/widget-provider.d.ts +52 -0
  366. package/lib/providers/widget-provider.js +171 -0
  367. package/lib/scenes/main-scene.d.ts +11 -0
  368. package/lib/scenes/main-scene.js +60 -33
  369. package/lib/scenes/waiting-scene.d.ts +9 -0
  370. package/lib/scenes/waiting-scene.js +27 -26
  371. package/lib/schema.d.ts +114 -0
  372. package/lib/schema.js +77 -0
  373. package/lib/shared-data-source/chat-data.d.ts +11 -0
  374. package/lib/shared-data-source/chat-data.js +17 -6
  375. package/lib/shared-data-source/interpreter.d.ts +34 -21
  376. package/lib/shared-data-source/interpreter.js +104 -103
  377. package/lib/shared-data-source/meeting-time.d.ts +68 -0
  378. package/lib/shared-data-source/meeting-time.js +299 -0
  379. package/lib/shared-data-source/member-data.d.ts +126 -0
  380. package/lib/shared-data-source/member-data.js +451 -0
  381. package/lib/shared-data-source/pin-data.d.ts +8 -4
  382. package/lib/shared-data-source/pin-data.js +92 -4
  383. package/lib/shared-data-source/security-data.d.ts +35 -0
  384. package/lib/shared-data-source/security-data.js +156 -0
  385. package/lib/shared-data-source/setting.d.ts +3 -1
  386. package/lib/shared-data-source/setting.js +12 -1
  387. package/lib/shared-data-source/video-window.d.ts +7 -8
  388. package/lib/shared-data-source/video-window.js +97 -94
  389. package/lib/shared-data-source/waiting-room.d.ts +29 -2
  390. package/lib/shared-data-source/waiting-room.js +103 -39
  391. package/lib/translations/enUS.d.ts +25 -12
  392. package/lib/translations/enUS.js +47 -68
  393. package/lib/translations/zhCN.d.ts +26 -12
  394. package/lib/translations/zhCN.js +63 -83
  395. package/lib/type.d.ts +64 -48
  396. package/lib/type.js +14 -1
  397. package/lib/ui-manager.d.ts +3 -2
  398. package/lib/ui-manager.js +8 -7
  399. package/lib/ui-scene.d.ts +7 -1
  400. package/lib/ui-scene.js +187 -97
  401. package/lib/utilities/constant.d.ts +7 -3
  402. package/lib/utilities/constant.js +4 -0
  403. package/lib/utilities/default-config.d.ts +5 -1
  404. package/lib/utilities/default-config.js +28 -2
  405. package/lib/utilities/logger.d.ts +8 -0
  406. package/lib/utilities/logger.js +42 -0
  407. package/lib/utilities/meeting-detail.js +11 -10
  408. package/lib/utilities/parameters.d.ts +4 -0
  409. package/lib/utilities/parameters.js +13 -1
  410. package/lib/utilities/renderer.d.ts +1 -0
  411. package/lib/utilities/renderer.js +4 -1
  412. package/lib/utilities/tools.d.ts +7 -6
  413. package/lib/utilities/tools.js +2 -6
  414. package/lib/utilities/validate-params.d.ts +2 -0
  415. package/lib/utilities/validate-params.js +16 -0
  416. package/lib/waiting-room-control-manager.d.ts +28 -0
  417. package/lib/waiting-room-control-manager.js +212 -0
  418. package/lib/widget-sdk.d.ts +2 -0
  419. package/lib/widget-sdk.js +13 -0
  420. package/package.json +7 -6
  421. package/public/index.html +12 -6
@@ -7,7 +7,6 @@ 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");
11
10
  require("core-js/modules/es.function.name.js");
12
11
  require("core-js/modules/es.number.constructor.js");
13
12
  require("core-js/modules/es.object.create.js");
@@ -21,22 +20,26 @@ Object.defineProperty(exports, "__esModule", {
21
20
  value: true
22
21
  });
23
22
  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
26
  require("core-js/modules/es.array.iterator.js");
27
27
  require("core-js/modules/es.array.push.js");
28
28
  require("core-js/modules/es.array.slice.js");
29
29
  require("core-js/modules/es.array.some.js");
30
+ require("core-js/modules/es.function.bind.js");
30
31
  require("core-js/modules/es.map.js");
31
32
  require("core-js/modules/es.object.to-string.js");
32
33
  require("core-js/modules/es.object.values.js");
33
34
  require("core-js/modules/es.set.js");
34
35
  require("core-js/modules/es.string.iterator.js");
35
36
  require("core-js/modules/es.weak-map.js");
37
+ require("core-js/modules/esnext.async-iterator.filter.js");
36
38
  require("core-js/modules/esnext.async-iterator.find.js");
37
39
  require("core-js/modules/esnext.async-iterator.for-each.js");
38
40
  require("core-js/modules/esnext.async-iterator.some.js");
39
41
  require("core-js/modules/esnext.iterator.constructor.js");
42
+ require("core-js/modules/esnext.iterator.filter.js");
40
43
  require("core-js/modules/esnext.iterator.find.js");
41
44
  require("core-js/modules/esnext.iterator.for-each.js");
42
45
  require("core-js/modules/esnext.iterator.some.js");
@@ -90,21 +93,21 @@ var _mobx = require("mobx");
90
93
  var _fcrCore = require("fcr-core");
91
94
  var _type = require("fcr-core/lib/type");
92
95
  var _decorator = require("agora-foundation/lib/decorator");
93
- var _logger = require("agora-foundation/lib/logger");
94
- var _type2 = require("../video-window/type");
95
- var _type3 = require("./type");
96
- var _type4 = require("../whiteboard/type");
96
+ var _type2 = require("./type");
97
+ var _type3 = require("../whiteboard/type");
97
98
  var _i18n = require("agora-ui-foundation/lib/i18n");
98
- var _type5 = require("fcr-core/lib/room-control/chatroom-control/type");
99
- var _type6 = require("agora-rte-sdk/lib/core/scene/type");
99
+ var _type4 = require("fcr-core/lib/room-control/chatroom-control/type");
100
100
  var _attendee = require("agora-ui-foundation/lib/components/participants/attendee");
101
- var _type7 = require("fcr-core/lib/room-control/type");
101
+ var _type5 = require("fcr-core/lib/room-control/type");
102
102
  var _react = require("react");
103
103
  var _mobxUtils = require("mobx-utils");
104
104
  var _constant = require("../../utilities/constant");
105
+ var _type6 = require("../../type");
105
106
  var _view = require("./view");
107
+ var _logger = require("../../utilities/logger");
108
+ var _env = require("agora-foundation/lib/utilities/env");
106
109
  var _LayoutStore;
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;
110
+ 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_barHovering, _init_barLocked, _init_barHidden, _init_asideWidth, _init_userVolumeMap, _init_chatRoomState, _init_whiteboardActive, _init_participantCount, _init_ownerUser, _addPinMessageDecs, _cancelPinMessageDecs, _setWhiteboardActiveDecs, _setAsideWidthDecs, _updateSlotsDecs, _toggleLayoutDecs, _toggleCollapsedDecs, _toggleAsideDecs, _asideWidthChangedDecs, _toggleLayoutBarLockDecs, _toggleLayoutBarHiddenDecs, _resetLockTimerDecs, _setHoveringHandlerDecs, _setHoveringLeaveHandlerDecs, _handleLiveLayoutChangeDecs, _onUserInfoUpdatedDecs, _handleLayoutUpdatedDecs, _init__handleLayoutUpdated, _handleFoldListChangedDecs, _handleMainListLengthChangedDecs, _handleMainListChangedDecs, _setBarHoveringDecs, _onAllUserCountUpdatedDecs, _handleConnectionUpdatedDecs, _onAudioVolumeUpdatedDecs, _ref;
108
111
  function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
109
112
  function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
110
113
  function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
@@ -133,15 +136,14 @@ var _O = /*#__PURE__*/new WeakMap();
133
136
  var _P = /*#__PURE__*/new WeakMap();
134
137
  var _Q = /*#__PURE__*/new WeakMap();
135
138
  var _R = /*#__PURE__*/new WeakMap();
136
- var _S = /*#__PURE__*/new WeakMap();
137
- var _T = /*#__PURE__*/new WeakMap();
138
- var _U = /*#__PURE__*/new WeakMap();
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");
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], _addPinMessageDecs = [_mobx.action, _mobx.action.bound], _cancelPinMessageDecs = [_mobx.action, _mobx.action.bound], _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], _handleMainListLengthChangedDecs = [_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");
140
140
  var LayoutStore = exports["default"] = /*#__PURE__*/function () {
141
141
  function LayoutStore(params) {
142
142
  var _this = this;
143
143
  (0, _classCallCheck2["default"])(this, LayoutStore);
144
- (0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.getLogger)()));
144
+ (0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.createLogger)({
145
+ prefix: 'LayoutStore'
146
+ })));
145
147
  (0, _defineProperty2["default"])(this, "_localView", null);
146
148
  (0, _defineProperty2["default"])(this, "_disposers", []);
147
149
  (0, _defineProperty2["default"])(this, "_barLockTimer", 0);
@@ -158,27 +160,24 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
158
160
  // State
159
161
  _classPrivateFieldInitSpec(this, _H, _init_collapsed(this, true));
160
162
  _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));
163
+ _classPrivateFieldInitSpec(this, _J, _init_barHovering(this, true));
164
+ _classPrivateFieldInitSpec(this, _K, _init_barLocked(this, true));
165
+ _classPrivateFieldInitSpec(this, _L, _init_barHidden(this, false));
166
+ _classPrivateFieldInitSpec(this, _M, _init_asideWidth(this, _view.MinAsideWidth));
167
+ _classPrivateFieldInitSpec(this, _N, _init_userVolumeMap(this, new Map()));
168
+ _classPrivateFieldInitSpec(this, _O, _init_chatRoomState(this, _type4.FcrChatRoomConnectionState.Disconnected));
169
+ _classPrivateFieldInitSpec(this, _P, _init_whiteboardActive(this, false));
170
170
  // @observable accessor spotlightStreamId = '';
171
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));
172
+ _classPrivateFieldInitSpec(this, _Q, _init_participantCount(this, 0));
173
+ _classPrivateFieldInitSpec(this, _R, _init_ownerUser(this, undefined));
175
174
  (0, _defineProperty2["default"])(this, "getAllowedOperations", (0, _mobxUtils.computedFn)(function (targetRole, isSelf) {
176
175
  return _this._privilegeProvider.getAllowedOperations(targetRole, isSelf);
177
176
  }));
178
177
  (0, _defineProperty2["default"])(this, "_handleLayoutUpdated", _init__handleLayoutUpdated(this, function (layout) {
179
- if (layout === _type3.FcrUIVideoWindowLayoutType.Speaker) {
178
+ if (layout === _type2.FcrUIVideoWindowLayoutType.Speaker) {
180
179
  _this._switchToSpeaker();
181
- } else if (layout === _type3.FcrUIVideoWindowLayoutType.Gallery) {
180
+ } else if (layout === _type2.FcrUIVideoWindowLayoutType.Gallery) {
182
181
  _this._switchToGallery();
183
182
  }
184
183
  }));
@@ -204,15 +203,17 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
204
203
  this._sharedSettingDataSource = params.sharedSettingDataSource;
205
204
  this._chatProvider = chatProvider;
206
205
  this._videoWindowDataSource = params.sharedVideoWindowDataSource;
207
- this.localUser = this._userControl.getLocalUser();
206
+ this._sharedMemberDataSource = params.sharedMemberDataSource;
207
+ this._screenShareProvider = params.screenShareProvider;
208
+ this._pinDataSource = params.sharedPinDataSource;
208
209
  this.chatRoomState = this._chatRoomControl.getConnectionState();
209
210
  this._addListeners();
210
211
  //@ts-ignore
211
212
  window.layoutStore = this;
212
- this.setLocalUserRole(this._userControl.getLocalUser().userRole);
213
213
  this._initStream();
214
214
  this._handleFoldListChanged();
215
215
  this._handleMainListChanged();
216
+ this._handleMainListLengthChanged();
216
217
  this._handleLayoutUpdated(this._videoWindowDataSource.layoutType);
217
218
  this.setWhiteboardActive(this._whiteBoardControl.getBoardActiveInfo().isActive);
218
219
  (0, _mobx.runInAction)(function () {
@@ -292,7 +293,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
292
293
  _classPrivateFieldSet(_I, this, v);
293
294
  }
294
295
  }, {
295
- key: "localUserRole",
296
+ key: "barHovering",
296
297
  get: function get() {
297
298
  return _classPrivateFieldGet(_J, this);
298
299
  },
@@ -300,7 +301,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
300
301
  _classPrivateFieldSet(_J, this, v);
301
302
  }
302
303
  }, {
303
- key: "barHovering",
304
+ key: "barLocked",
304
305
  get: function get() {
305
306
  return _classPrivateFieldGet(_K, this);
306
307
  },
@@ -308,7 +309,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
308
309
  _classPrivateFieldSet(_K, this, v);
309
310
  }
310
311
  }, {
311
- key: "barLocked",
312
+ key: "barHidden",
312
313
  get: function get() {
313
314
  return _classPrivateFieldGet(_L, this);
314
315
  },
@@ -316,7 +317,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
316
317
  _classPrivateFieldSet(_L, this, v);
317
318
  }
318
319
  }, {
319
- key: "barHidden",
320
+ key: "asideWidth",
320
321
  get: function get() {
321
322
  return _classPrivateFieldGet(_M, this);
322
323
  },
@@ -324,7 +325,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
324
325
  _classPrivateFieldSet(_M, this, v);
325
326
  }
326
327
  }, {
327
- key: "asideWidth",
328
+ key: "userVolumeMap",
328
329
  get: function get() {
329
330
  return _classPrivateFieldGet(_N, this);
330
331
  },
@@ -332,7 +333,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
332
333
  _classPrivateFieldSet(_N, this, v);
333
334
  }
334
335
  }, {
335
- key: "userVolumeMap",
336
+ key: "chatRoomState",
336
337
  get: function get() {
337
338
  return _classPrivateFieldGet(_O, this);
338
339
  },
@@ -340,7 +341,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
340
341
  _classPrivateFieldSet(_O, this, v);
341
342
  }
342
343
  }, {
343
- key: "chatRoomState",
344
+ key: "whiteboardActive",
344
345
  get: function get() {
345
346
  return _classPrivateFieldGet(_P, this);
346
347
  },
@@ -348,7 +349,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
348
349
  _classPrivateFieldSet(_P, this, v);
349
350
  }
350
351
  }, {
351
- key: "videoWindowPreviewType",
352
+ key: "participantCount",
352
353
  get: function get() {
353
354
  return _classPrivateFieldGet(_Q, this);
354
355
  },
@@ -356,7 +357,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
356
357
  _classPrivateFieldSet(_Q, this, v);
357
358
  }
358
359
  }, {
359
- key: "whiteboardActive",
360
+ key: "ownerUser",
360
361
  get: function get() {
361
362
  return _classPrivateFieldGet(_R, this);
362
363
  },
@@ -364,33 +365,19 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
364
365
  _classPrivateFieldSet(_R, this, v);
365
366
  }
366
367
  }, {
367
- key: "participantCount",
368
+ key: "streamControl",
368
369
  get: function get() {
369
- return _classPrivateFieldGet(_S, this);
370
- },
371
- set: function set(v) {
372
- _classPrivateFieldSet(_S, this, v);
370
+ return this._streamControl;
373
371
  }
374
372
  }, {
375
- key: "ownerUser",
373
+ key: "localUserRole",
376
374
  get: function get() {
377
- return _classPrivateFieldGet(_T, this);
378
- },
379
- set: function set(v) {
380
- _classPrivateFieldSet(_T, this, v);
375
+ return this._sharedMemberDataSource.localUserRole;
381
376
  }
382
377
  }, {
383
378
  key: "localUser",
384
379
  get: function get() {
385
- return _classPrivateFieldGet(_U, this);
386
- },
387
- set: function set(v) {
388
- _classPrivateFieldSet(_U, this, v);
389
- }
390
- }, {
391
- key: "streamControl",
392
- get: function get() {
393
- return this._streamControl;
380
+ return this._sharedMemberDataSource.localUser;
394
381
  }
395
382
  }, {
396
383
  key: "shouldHideNonVideoParticipants",
@@ -422,10 +409,26 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
422
409
  get: function get() {
423
410
  return this._videoWindowDataSource.manualLayout;
424
411
  }
412
+ }, {
413
+ key: "sourceList",
414
+ get: function get() {
415
+ return this._videoWindowDataSource.mainList.filter(function (i) {
416
+ return !i.isMySelf || i.videoSourceType !== _fcrCore.FcrVideoSourceType.SCREEN;
417
+ });
418
+ }
419
+ }, {
420
+ key: "layoutMainList",
421
+ get: function get() {
422
+ var _this2 = this;
423
+ var nonVideoStreamParticipantList = this.sourceList.filter(function (i) {
424
+ return _this2._isVideoParticipantVisible(i);
425
+ });
426
+ return this.shouldHideNonVideoParticipants ? nonVideoStreamParticipantList : this.sourceList;
427
+ }
425
428
  }, {
426
429
  key: "mainList",
427
430
  get: function get() {
428
- return this._videoWindowDataSource.layoutMainList;
431
+ return this.layoutMainList;
429
432
  }
430
433
  }, {
431
434
  key: "mainListMapByAudioStreamId",
@@ -454,13 +457,13 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
454
457
  key: "currentShareData",
455
458
  get: function get() {
456
459
  return this.mainList.find(function (item) {
457
- return item.videoSourceType === _fcrCore.FcrVideoSourceType.SCREEN || item.type === _type3.FcrUIWindowType.BOARD;
460
+ return item.videoSourceType === _fcrCore.FcrVideoSourceType.SCREEN || item.type === _type2.FcrUIWindowType.BOARD;
458
461
  });
459
462
  }
460
463
  }, {
461
464
  key: "galleryList",
462
465
  get: function get() {
463
- return this._videoWindowDataSource.layoutType === _type3.FcrUIVideoWindowLayoutType.Speaker ? this.mainList.slice(0, 1) : this.mainList;
466
+ return this._videoWindowDataSource.layoutType === _type2.FcrUIVideoWindowLayoutType.Speaker ? this.mainList.slice(0, 1) : this.mainList;
464
467
  }
465
468
  }, {
466
469
  key: "asideLayout",
@@ -471,7 +474,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
471
474
  }, {
472
475
  key: "carouselList",
473
476
  get: function get() {
474
- return this._videoWindowDataSource.layoutType === _type3.FcrUIVideoWindowLayoutType.Speaker ? this.mainList.slice(1) : this.mainList;
477
+ return this._videoWindowDataSource.layoutType === _type2.FcrUIVideoWindowLayoutType.Speaker ? this.mainList.slice(1) : this.mainList;
475
478
  }
476
479
  }, {
477
480
  key: "hasPinnedStream",
@@ -480,11 +483,6 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
480
483
  return u.isPin;
481
484
  });
482
485
  }
483
- }, {
484
- key: "isManager",
485
- get: function get() {
486
- return this.localUserRole === _type.FcrUserRole.HOST;
487
- }
488
486
  }, {
489
487
  key: "isRobot",
490
488
  get: function get() {
@@ -493,9 +491,9 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
493
491
  }, {
494
492
  key: "findSpotlightUser",
495
493
  get: function get() {
496
- var _this2 = this;
494
+ var _this3 = this;
497
495
  return this.spotlightStreamId ? this.mainList.find(function (item) {
498
- return item.videoStreamId === _this2.spotlightStreamId || item.audioStreamId === _this2.spotlightStreamId;
496
+ return item.videoStreamId === _this3.spotlightStreamId || item.audioStreamId === _this3.spotlightStreamId;
499
497
  }) : null;
500
498
  }
501
499
  }, {
@@ -521,7 +519,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
521
519
  }, {
522
520
  key: "isHostOrCoHost",
523
521
  get: function get() {
524
- return this.localUserRole === _type.FcrUserRole.HOST || this.localUserRole === _type.FcrUserRole.COHOST;
522
+ return this._sharedMemberDataSource.isLocalUserHost;
525
523
  }
526
524
  }, {
527
525
  key: "galleryMaxSize",
@@ -557,18 +555,28 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
557
555
  }, {
558
556
  key: "localUserId",
559
557
  get: function get() {
560
- var _this$_userControl$ge;
561
- return (_this$_userControl$ge = this._userControl.getLocalUser()) === null || _this$_userControl$ge === void 0 ? void 0 : _this$_userControl$ge.userId;
558
+ return this._sharedMemberDataSource.localUser.userId;
559
+ }
560
+ }, {
561
+ key: "interpreterUserList",
562
+ get: function get() {
563
+ return this._sharedInterpreterDataSource.interpreterUserList;
562
564
  }
563
565
  }, {
564
- key: "interpreterUsers",
566
+ key: "isInterpreterEnabled",
565
567
  get: function get() {
566
- return this._sharedInterpreterDataSource.interpreterUsers;
568
+ return this._sharedInterpreterDataSource.isInterpreterEnabled;
567
569
  }
568
570
  }, {
569
- key: "interpreterState",
571
+ key: "isVideoSuspended",
570
572
  get: function get() {
571
- return this._sharedInterpreterDataSource.interpreterOff;
573
+ var isSharingScreen = this._screenShareProvider.isSharingScreen;
574
+ var shareScreenOwner = this._screenShareProvider.screenSharingOwner;
575
+ var isSharingScreenBySelf = this.localUserId === (shareScreenOwner === null || shareScreenOwner === void 0 ? void 0 : shareScreenOwner.userId);
576
+ if ((0, _env.isElectron)() && isSharingScreen && isSharingScreenBySelf) {
577
+ return true;
578
+ }
579
+ return false;
572
580
  }
573
581
  }, {
574
582
  key: "asideContent",
@@ -610,21 +618,30 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
610
618
  value: function toggleMainStream(streamId) {
611
619
  var success = this._videoWindowDataSource.toggleMainStream(streamId);
612
620
  if (success) {
613
- if (this.layout === _type3.FcrUIVideoWindowLayoutType.Gallery) {
614
- this.toggleLayout(_type3.FcrUIVideoWindowLayoutType.Speaker, true);
621
+ if (this.layout === _type2.FcrUIVideoWindowLayoutType.Gallery) {
622
+ this.toggleLayout(_type2.FcrUIVideoWindowLayoutType.Speaker, true);
615
623
  }
616
624
  }
617
625
  }
626
+ }, {
627
+ key: "addPinMessage",
628
+ value: function addPinMessage(streamId) {
629
+ this._pinDataSource.addPin(streamId);
630
+ }
631
+ }, {
632
+ key: "cancelPinMessage",
633
+ value: function cancelPinMessage(streamId) {
634
+ this._pinDataSource.removePin(streamId);
635
+ }
618
636
  }, {
619
637
  key: "addPin",
620
638
  value: function addPin(streamId) {
621
- this._videoWindowDataSource.addPinToast(streamId);
639
+ this.addPinMessage(streamId);
622
640
  }
623
641
  }, {
624
642
  key: "removePin",
625
643
  value: function removePin(streamId) {
626
- var toastText = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (0, _i18n.transI18n)('fmt_settings_tips_screenunlock');
627
- this._videoWindowDataSource.removePinToast(streamId, toastText);
644
+ this.cancelPinMessage(streamId);
628
645
  }
629
646
  }, {
630
647
  key: "setVideoOrientation",
@@ -655,10 +672,6 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
655
672
  key: "setWhiteboardActive",
656
673
  value: function setWhiteboardActive(active) {
657
674
  this.whiteboardActive = active;
658
- if (!active && this.manualLayout) {
659
- this._videoWindowDataSource.setLayout(this.manualLayout);
660
- // this._sharedLayoutDataSource.toggleLayout(this.manualLayout);
661
- }
662
675
  }
663
676
  }, {
664
677
  key: "setAsideWidth",
@@ -667,12 +680,6 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
667
680
  !this.aside && this.toggleAside(true);
668
681
  this.asideWidth = val;
669
682
  }
670
- }, {
671
- key: "getLocalUserId",
672
- value: function getLocalUserId() {
673
- return this._userControl.getLocalUser().userId;
674
- }
675
-
676
683
  /**
677
684
  * Partially update slots, use `null` to delete the slot.
678
685
  * `undefined` is ignored.
@@ -740,7 +747,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
740
747
  return u.userId === userId;
741
748
  });
742
749
  // user && this._eventProvider.notifyChatUpdateTarget(user, FcrRoomType.Mainroom);
743
- user && this._chatProvider.setPrivateChatTargetUser(user, _type7.FcrRoomType.Mainroom);
750
+ user && this._chatProvider.setPrivateChatTargetUser(user, _type6.FcrUIRoomType.MAIN_ROOM);
744
751
  }
745
752
  }, {
746
753
  key: "openRenameDialog",
@@ -793,12 +800,12 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
793
800
  }, {
794
801
  key: "setHoveringHandler",
795
802
  value: function setHoveringHandler() {
796
- var _this3 = this;
803
+ var _this4 = this;
797
804
  this._setBarHovering(true);
798
805
  if (!this._barLockTimer && !this.barLocked) {
799
806
  this._barLockTimer = window.setTimeout(function () {
800
- _this3._setBarHovering(false);
801
- _this3.resetLockTimer();
807
+ _this4._setBarHovering(false);
808
+ _this4.resetLockTimer();
802
809
  }, 3000);
803
810
  }
804
811
  }
@@ -810,11 +817,11 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
810
817
  }, {
811
818
  key: "handleLiveLayoutChange",
812
819
  value: function handleLiveLayoutChange(modifiedUser) {
813
- if (modifiedUser.userId === this.getLocalUserId() && modifiedUser.userRole === _type.FcrUserRole.HOST) {
820
+ if (modifiedUser.userId === this.localUserId && modifiedUser.userRole === _type.FcrUserRole.HOST) {
814
821
  // 当本人变成主持人时
815
822
  if (this._liveStreamState === _type.FcrLiveStreamingState.STARTED) {
816
823
  // 直播中,切换布局
817
- this._roomControl.updateLiveStreamingLayout(this.layout === _type3.FcrUIVideoWindowLayoutType.Speaker ? _type.FcrLiveStreamingLayoutType.SPEAKER : _type.FcrLiveStreamingLayoutType.GALLERY);
824
+ this._roomControl.updateLiveStreamingLayout(this.layout === _type2.FcrUIVideoWindowLayoutType.Speaker ? _type.FcrLiveStreamingLayoutType.SPEAKER : _type.FcrLiveStreamingLayoutType.GALLERY);
818
825
  }
819
826
  }
820
827
  }
@@ -829,20 +836,8 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
829
836
  }, {
830
837
  key: "onUserInfoUpdated",
831
838
  value: function onUserInfoUpdated(roomId, event) {
832
- var _this4 = this;
833
839
  this._videoWindowDataSource.update(event.modifiedUser);
834
- this.setLocalUserRole(this._userControl.getLocalUser().userRole);
835
840
  this.handleLiveLayoutChange(event.modifiedUser);
836
- if (event.reason === _type6.AgoraRteUserUpdatedReason.NAME) {
837
- setTimeout(function () {
838
- _this4.localUser = _this4._userControl.getLocalUser();
839
- }, 1000);
840
- }
841
- }
842
- }, {
843
- key: "setLocalUserRole",
844
- value: function setLocalUserRole(role) {
845
- this.localUserRole = role;
846
841
  }
847
842
  }, {
848
843
  key: "stopLocalPreview",
@@ -903,19 +898,14 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
903
898
  if (action === _constant.FcrUIAction.TOGGLE_LAYOUT_BAR_LOCK) {
904
899
  this.toggleLayoutBarLock(payload);
905
900
  }
906
- if (action === _constant.FcrUIAction.VIDEO_WINDOW_BOUNDS) {
907
- var _ref4 = payload,
908
- videoWindowPreviewType = _ref4.videoWindowPreviewType;
909
- this.videoWindowPreviewType = videoWindowPreviewType;
910
- }
911
901
  if (action === _constant.FcrUIAction.TOGGLE_LAYOUT_ACTIONBAR_HIDDEN) {
912
902
  this.toggleLayoutBarHidden();
913
903
  }
914
904
  if (action === _constant.FcrUIAction.WHITEBOARD_CHANGED) {
915
- var _ref5 = payload,
916
- changeAction = _ref5.action,
917
- isLoneyWindow = _ref5.payload;
918
- if (changeAction === _type4.WhiteboardControlbarEvents.LONEYWINDOW) {
905
+ var _ref4 = payload,
906
+ changeAction = _ref4.action,
907
+ isLoneyWindow = _ref4.payload;
908
+ if (changeAction === _type3.WhiteboardControlbarEvents.LONEYWINDOW) {
919
909
  if (isLoneyWindow) {
920
910
  this._videoWindowDataSource.removeBoard();
921
911
  } else {
@@ -924,9 +914,9 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
924
914
  this._videoWindowDataSource.addBoard(ownerUser, ownerUserId === this.localUserId, this._privilegeProvider.hasWriteBoardPermission());
925
915
  }
926
916
  }
927
- if (changeAction === _type4.WhiteboardBaseEvents.SET_OWNER_USER_ID) {
928
- var _ref6 = payload,
929
- _ownerUserId = _ref6.payload;
917
+ if (changeAction === _type3.WhiteboardBaseEvents.SET_OWNER_USER_ID) {
918
+ var _ref5 = payload,
919
+ _ownerUserId = _ref5.payload;
930
920
  this.ownerUser = _ownerUserId ? this._userControl.getUser(_ownerUserId) : undefined;
931
921
  }
932
922
  }
@@ -990,11 +980,11 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
990
980
  return _this5.mainList.length;
991
981
  }, function (length) {
992
982
  if (length < 2) {
993
- if (_this5.layout === _type3.FcrUIVideoWindowLayoutType.Speaker) {
994
- _this5.toggleLayout(_type3.FcrUIVideoWindowLayoutType.Gallery);
983
+ if (_this5.layout === _type2.FcrUIVideoWindowLayoutType.Speaker) {
984
+ _this5.toggleLayout(_type2.FcrUIVideoWindowLayoutType.Gallery);
995
985
  }
996
986
  }
997
- _this5._eventProvider.sendEvent(_constant.FcrUIAction.MAIN_LIST_LENGTH_CHANGED, length);
987
+ _this5._handleMainListLengthChanged();
998
988
  }), (0, _mobx.reaction)(function () {
999
989
  return _this5.whiteboardActive;
1000
990
  }, function (opened) {
@@ -1002,17 +992,22 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
1002
992
  var ownerUserId = _this5._whiteBoardControl.getBoardActiveInfo().ownerUserId;
1003
993
  var ownerUser = _this5._userControl.getUser(ownerUserId);
1004
994
  _this5._videoWindowDataSource.addBoard(ownerUser, ownerUserId === _this5.localUserId);
1005
- if (_this5.layout === _type3.FcrUIVideoWindowLayoutType.Gallery) {
1006
- _this5.toggleLayout(_type3.FcrUIVideoWindowLayoutType.Speaker);
995
+ if (_this5.layout === _type2.FcrUIVideoWindowLayoutType.Gallery) {
996
+ _this5.toggleLayout(_type2.FcrUIVideoWindowLayoutType.Speaker);
1007
997
  }
1008
998
  } else {
1009
999
  _this5._videoWindowDataSource.removeBoard();
1000
+ if (_this5.manualLayout) {
1001
+ _this5.toggleLayout(_this5.manualLayout);
1002
+ } else {
1003
+ _this5.toggleLayout(_type2.FcrUIVideoWindowLayoutType.Gallery);
1004
+ }
1010
1005
  }
1011
1006
  }), (0, _mobx.reaction)(function () {
1012
1007
  return _this5._privilegeProvider.hasWriteBoardPermission();
1013
1008
  }, function (canEdit) {
1014
1009
  if (!_this5.mainList.some(function (u) {
1015
- return u.type === _type3.FcrUIWindowType.BOARD;
1010
+ return u.type === _type2.FcrUIWindowType.BOARD;
1016
1011
  })) return;
1017
1012
  _this5._videoWindowDataSource.updateBoard(canEdit);
1018
1013
  }), (0, _mobx.reaction)(function () {
@@ -1031,9 +1026,9 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
1031
1026
  cameraEnabled: _this5._deviceProvider.cameraEnabled,
1032
1027
  cameraId: _this5._deviceProvider.cameraId
1033
1028
  };
1034
- }, function (_ref7) {
1035
- var cameraEnabled = _ref7.cameraEnabled,
1036
- cameraId = _ref7.cameraId;
1029
+ }, function (_ref6) {
1030
+ var cameraEnabled = _ref6.cameraEnabled,
1031
+ cameraId = _ref6.cameraId;
1037
1032
  if (!cameraEnabled && _this5._localView) {
1038
1033
  _this5.stopLocalPreview(_this5._localView);
1039
1034
  }
@@ -1059,9 +1054,9 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
1059
1054
  count: _this5.participantCount,
1060
1055
  enableSpotlight: _this5.enableSpotlight
1061
1056
  };
1062
- }, function (_ref8) {
1063
- var count = _ref8.count,
1064
- enableSpotlight = _ref8.enableSpotlight;
1057
+ }, function (_ref7) {
1058
+ var count = _ref7.count,
1059
+ enableSpotlight = _ref7.enableSpotlight;
1065
1060
  var enableSetSpotlight = _this5._isSetSpotlightEnable(count, enableSpotlight);
1066
1061
  _this5._videoWindowDataSource.setSpotlightEnabled(enableSetSpotlight);
1067
1062
  }),
@@ -1075,21 +1070,51 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
1075
1070
  if (_this5.isRobot) {
1076
1071
  if (hasScreenSharing) {
1077
1072
  _this5.logger.info('set layout to speaker for robot');
1078
- _this5.toggleLayout(_type3.FcrUIVideoWindowLayoutType.Speaker);
1073
+ _this5.toggleLayout(_type2.FcrUIVideoWindowLayoutType.Speaker);
1079
1074
  } else {
1080
1075
  _this5.logger.info('set layout to gallery for robot');
1081
- _this5.toggleLayout(_type3.FcrUIVideoWindowLayoutType.Gallery);
1076
+ _this5.toggleLayout(_type2.FcrUIVideoWindowLayoutType.Gallery);
1082
1077
  }
1083
1078
  }
1084
1079
  }, {
1085
1080
  fireImmediately: true
1081
+ }), (0, _mobx.reaction)(function () {
1082
+ return _this5._videoWindowDataSource.mainList.filter(_this5._shouldUnpin.bind(_this5));
1083
+ }, function (list) {
1084
+ list.forEach(function (item) {
1085
+ if (_this5._videoWindowDataSource.shouldHideNonVideoParticipants) {
1086
+ _this5._pinDataSource.removePin(item.windowId, (0, _i18n.transI18n)('fmt_internalsetting_other_hide_no_video_pin_cancelled'));
1087
+ }
1088
+ });
1086
1089
  }));
1087
1090
  }
1091
+ }, {
1092
+ key: "_hasVideoStreamUser",
1093
+ get: function get() {
1094
+ return this.sourceList.some(function (i) {
1095
+ return i.hasVideoStream;
1096
+ });
1097
+ }
1098
+ }, {
1099
+ key: "_shouldUnpin",
1100
+ value: function _shouldUnpin(item) {
1101
+ return !this._isVideoParticipantVisible(item) && item.isPin;
1102
+ }
1103
+ }, {
1104
+ key: "_isVideoParticipantVisible",
1105
+ value: function _isVideoParticipantVisible(item) {
1106
+ return item.isMySelf && !this._hasVideoStreamUser || item.hasVideoStream || item.videoSourceType === _fcrCore.FcrVideoSourceType.SCREEN || item.type === _type2.FcrUIWindowType.BOARD;
1107
+ }
1088
1108
  }, {
1089
1109
  key: "_handleFoldListChanged",
1090
1110
  value: function _handleFoldListChanged() {
1091
1111
  this._eventProvider.sendEvent(_constant.FcrUIAction.FOLD_LIST_CHANGED, this.foldList);
1092
1112
  }
1113
+ }, {
1114
+ key: "_handleMainListLengthChanged",
1115
+ value: function _handleMainListLengthChanged() {
1116
+ this._eventProvider.sendEvent(_constant.FcrUIAction.MAIN_LIST_LENGTH_CHANGED, this.mainList.length);
1117
+ }
1093
1118
  }, {
1094
1119
  key: "_handleMainListChanged",
1095
1120
  value: function _handleMainListChanged() {
@@ -1126,8 +1151,8 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
1126
1151
  }
1127
1152
  _this6._handleStreamAdded(stream);
1128
1153
  });
1129
- if (isSharingScreen && this.layout === _type3.FcrUIVideoWindowLayoutType.Gallery) {
1130
- this.toggleLayout(_type3.FcrUIVideoWindowLayoutType.Speaker);
1154
+ if (isSharingScreen && this.layout === _type2.FcrUIVideoWindowLayoutType.Gallery) {
1155
+ this.toggleLayout(_type2.FcrUIVideoWindowLayoutType.Speaker);
1131
1156
  }
1132
1157
  }
1133
1158
  }, {
@@ -1145,7 +1170,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
1145
1170
  key: "_handleLiveStreamingStateUpdated",
1146
1171
  value: function _handleLiveStreamingStateUpdated(_, state, url, reason) {
1147
1172
  this._liveStreamState = state;
1148
- if (state === _type.FcrLiveStreamingState.STOPPED && reason === _type7.FcrLiveStreamingStateUpdatedReason.HOSTCHANGED) {
1173
+ if (state === _type.FcrLiveStreamingState.STOPPED && reason === _type5.FcrLiveStreamingStateUpdatedReason.HOSTCHANGED) {
1149
1174
  this._eventProvider.showToast({
1150
1175
  type: 'info',
1151
1176
  message: (0, _i18n.transI18n)('fmt_broadcast_livestream_tips_hand_over_pc_to_mobile')
@@ -1156,18 +1181,18 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
1156
1181
  key: "_handleStreamAdded",
1157
1182
  value: function _handleStreamAdded(modifiedStream) {
1158
1183
  if (modifiedStream.videoSourceType === _fcrCore.FcrVideoSourceType.SCREEN) {
1159
- if (this.layout === _type3.FcrUIVideoWindowLayoutType.Gallery) {
1160
- this.toggleLayout(_type3.FcrUIVideoWindowLayoutType.Speaker);
1184
+ if (this.layout === _type2.FcrUIVideoWindowLayoutType.Gallery) {
1185
+ this.toggleLayout(_type2.FcrUIVideoWindowLayoutType.Speaker);
1161
1186
  }
1162
1187
  }
1163
- this._videoWindowDataSource.add(modifiedStream, modifiedStream.owner.userId === this.getLocalUserId());
1188
+ this._videoWindowDataSource.add(modifiedStream, modifiedStream.owner.userId === this.localUserId);
1164
1189
  }
1165
1190
  }, {
1166
1191
  key: "_onStreamsAdded",
1167
1192
  value: function _onStreamsAdded(roomId, events) {
1168
1193
  var _this7 = this;
1169
- events.forEach(function (_ref9) {
1170
- var modifiedStream = _ref9.modifiedStream;
1194
+ events.forEach(function (_ref8) {
1195
+ var modifiedStream = _ref8.modifiedStream;
1171
1196
  _this7._handleStreamAdded(modifiedStream);
1172
1197
  });
1173
1198
  }
@@ -1175,8 +1200,8 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
1175
1200
  key: "_onStreamsUpdated",
1176
1201
  value: function _onStreamsUpdated(roomId, events) {
1177
1202
  var _this8 = this;
1178
- events.forEach(function (_ref10) {
1179
- var modifiedStream = _ref10.modifiedStream;
1203
+ events.forEach(function (_ref9) {
1204
+ var modifiedStream = _ref9.modifiedStream;
1180
1205
  _this8._videoWindowDataSource.update(modifiedStream);
1181
1206
  });
1182
1207
  }
@@ -1184,8 +1209,8 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
1184
1209
  key: "_onStreamsRemoved",
1185
1210
  value: function _onStreamsRemoved(roomId, events) {
1186
1211
  var _this9 = this;
1187
- events.forEach(function (_ref11) {
1188
- var modifiedStream = _ref11.modifiedStream;
1212
+ events.forEach(function (_ref10) {
1213
+ var modifiedStream = _ref10.modifiedStream;
1189
1214
  _this9._videoWindowDataSource["delete"](modifiedStream);
1190
1215
  });
1191
1216
  var hasScreenStream = events === null || events === void 0 ? void 0 : events.find(function (event) {
@@ -1196,7 +1221,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
1196
1221
  if (this.manualLayout) {
1197
1222
  this._videoWindowDataSource.setLayout(this.manualLayout);
1198
1223
  } else {
1199
- this._videoWindowDataSource.setLayout(_type3.FcrUIVideoWindowLayoutType.Gallery);
1224
+ this._videoWindowDataSource.setLayout(_type2.FcrUIVideoWindowLayoutType.Gallery);
1200
1225
  }
1201
1226
  }
1202
1227
  }
@@ -1229,7 +1254,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
1229
1254
  }]);
1230
1255
  }();
1231
1256
  _LayoutStore = LayoutStore;
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);
1257
+ 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, "barHovering"], [_mobx.observable, 1, "barLocked"], [_mobx.observable, 1, "barHidden"], [_mobx.observable, 1, "asideWidth"], [_mobx.observable, 1, "userVolumeMap"], [_mobx.observable, 1, "chatRoomState"], [_mobx.observable, 1, "whiteboardActive"], [_mobx.observable, 1, "participantCount"], [_mobx.observable, 1, "ownerUser"], [_mobx.computed, 3, "localUserRole"], [_mobx.computed, 3, "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, "sourceList"], [_mobx.computed, 3, "layoutMainList"], [_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, "isRobot"], [_mobx.computed, 3, "findSpotlightUser"], [_mobx.computed, 3, "microphoneEnabled"], [_mobx.computed, 3, "isHostOrCoHost"], [_mobx.computed, 3, "galleryMaxSize"], [_mobx.computed, 3, "localUserId"], [_mobx.computed, 3, "isVideoSuspended"], [_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"], [_addPinMessageDecs, 18, "addPinMessage"], [_cancelPinMessageDecs, 18, "cancelPinMessage"], [_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"], [_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"], [_mobx.computed, 3, "_hasVideoStreamUser"], [_handleFoldListChangedDecs, 18, "_handleFoldListChanged"], [_handleMainListLengthChangedDecs, 18, "_handleMainListLengthChanged"], [_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, 20);
1233
1258
  _init_participant = _applyDecs$e[0];
1234
1259
  _init_chat = _applyDecs$e[1];
1235
1260
  _init_chatAction = _applyDecs$e[2];
@@ -1239,19 +1264,16 @@ _init_layers = _applyDecs$e[5];
1239
1264
  _init_whiteboard = _applyDecs$e[6];
1240
1265
  _init_collapsed = _applyDecs$e[7];
1241
1266
  _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];
1267
+ _init_barHovering = _applyDecs$e[9];
1268
+ _init_barLocked = _applyDecs$e[10];
1269
+ _init_barHidden = _applyDecs$e[11];
1270
+ _init_asideWidth = _applyDecs$e[12];
1271
+ _init_userVolumeMap = _applyDecs$e[13];
1272
+ _init_chatRoomState = _applyDecs$e[14];
1273
+ _init_whiteboardActive = _applyDecs$e[15];
1274
+ _init_participantCount = _applyDecs$e[16];
1275
+ _init_ownerUser = _applyDecs$e[17];
1276
+ _init__handleLayoutUpdated = _applyDecs$e[18];
1277
+ _initProto = _applyDecs$e[19];
1256
1278
  (0, _defineProperty2["default"])(LayoutStore, "MIN_USERS_TO_ENABLE_SPOTLIGHT", 2);
1257
1279
  var StoreContext = exports.StoreContext = /*#__PURE__*/(0, _react.createContext)(null);