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
@@ -21,7 +21,6 @@ Object.defineProperty(exports, "__esModule", {
21
21
  value: true
22
22
  });
23
23
  exports["default"] = exports.StoreContext = void 0;
24
- var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
25
24
  require("core-js/modules/es.array.filter.js");
26
25
  require("core-js/modules/es.array.find.js");
27
26
  require("core-js/modules/es.array.for-each.js");
@@ -31,7 +30,6 @@ require("core-js/modules/es.array.slice.js");
31
30
  require("core-js/modules/es.array.some.js");
32
31
  require("core-js/modules/es.map.js");
33
32
  require("core-js/modules/es.object.to-string.js");
34
- require("core-js/modules/es.object.values.js");
35
33
  require("core-js/modules/es.string.iterator.js");
36
34
  require("core-js/modules/es.weak-map.js");
37
35
  require("core-js/modules/esnext.async-iterator.filter.js");
@@ -62,25 +60,20 @@ require("core-js/modules/esnext.weak-map.emplace.js");
62
60
  require("core-js/modules/web.dom-collections.for-each.js");
63
61
  require("core-js/modules/web.dom-collections.iterator.js");
64
62
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
65
- var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
66
63
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
67
64
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
68
65
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
69
66
  var _mobx = require("mobx");
70
- var _fcrCore = require("fcr-core");
71
- var _type = require("../../type");
72
- var _type2 = require("fcr-core/lib/room-control/type");
73
67
  var _constant = require("../../utilities/constant");
74
68
  var _decorator = require("agora-foundation/lib/decorator");
75
- var _type3 = require("./type");
76
- var _type4 = require("../layout/type");
77
- var _type5 = require("agora-rte-sdk/lib/core/rtc/type");
78
- var _type6 = require("fcr-core/lib/type");
69
+ var _type = require("./type");
70
+ var _type2 = require("../layout/type");
71
+ var _type3 = require("agora-rte-sdk/lib/core/rtc/type");
79
72
  var _attendee = require("agora-ui-foundation/lib/components/participants/attendee");
80
73
  var _react = require("react");
81
- var _tools = require("../../utilities/tools");
74
+ var _type4 = require("../../type");
82
75
  var _VideoWindowStore;
83
- var _initProto, _init_userVolumeMap, _init_speakHover, _init_videoWindowPreviewType, _init_videoWindowCurrentWidth, _init_videoWindowCurrentHeight, _init_foldList, _init_workareaX, _init_workareaY, _init_workareaWidth, _init_workareaHeight, _init_localUserRole, _init__spotlightStreamId, _init_connectType, _init_bounds, _setBoundsDecs, _onAudioVolumeUpdatedDecs, _changeVideoWindowBoundsDecs, _onUserInfoUpdatedDecs, _setVideoWindowPreviewTypeDecs, _closeVideoWindowDecs, _setSpeakHoverDecs, _getAllowedOperationsDecs, _getCurrentDisplayBoundsDecs, _handleStreamsAddedOrUpdatedDecs, _ref;
76
+ var _initProto, _init_userVolumeMap, _init_wrapperHovering, _init_videoWindowPreviewType, _init_videoWindowCurrentWidth, _init_videoWindowCurrentHeight, _init_foldList, _init_innerFrameBounds, _changeVideoWindowBoundsDecs, _setVideoWindowPreviewTypeDecs, _closeVideoWindowDecs, _setWrapperHoverDecs, _getAllowedOperationsDecs, _onAudioVolumeUpdatedDecs, _ref;
84
77
  function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
85
78
  function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
86
79
  function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
@@ -98,55 +91,35 @@ var _D = /*#__PURE__*/new WeakMap();
98
91
  var _E = /*#__PURE__*/new WeakMap();
99
92
  var _F = /*#__PURE__*/new WeakMap();
100
93
  var _G = /*#__PURE__*/new WeakMap();
101
- var _H = /*#__PURE__*/new WeakMap();
102
- var _I = /*#__PURE__*/new WeakMap();
103
- var _J = /*#__PURE__*/new WeakMap();
104
- var _K = /*#__PURE__*/new WeakMap();
105
- var _L = /*#__PURE__*/new WeakMap();
106
- var _M = /*#__PURE__*/new WeakMap();
107
- var _N = /*#__PURE__*/new WeakMap();
108
- _ref = (_setBoundsDecs = [_mobx.action, _mobx.action.bound], _onAudioVolumeUpdatedDecs = [_mobx.action, _mobx.action.bound], _changeVideoWindowBoundsDecs = [_mobx.action, _mobx.action.bound], _onUserInfoUpdatedDecs = [_mobx.action, _mobx.action.bound], _setVideoWindowPreviewTypeDecs = [_mobx.action, _mobx.action.bound], _closeVideoWindowDecs = [_mobx.action, _mobx.action.bound], _setSpeakHoverDecs = [_mobx.action, _mobx.action.bound], _getAllowedOperationsDecs = [_mobx.action, _mobx.action.bound], _getCurrentDisplayBoundsDecs = [_mobx.action, _mobx.action.bound], _handleStreamsAddedOrUpdatedDecs = [_mobx.action, _mobx.action.bound], "_uiEventStore");
94
+ _ref = (_changeVideoWindowBoundsDecs = [_mobx.action, _mobx.action.bound], _setVideoWindowPreviewTypeDecs = [_mobx.action, _mobx.action.bound], _closeVideoWindowDecs = [_mobx.action, _mobx.action.bound], _setWrapperHoverDecs = [_mobx.action, _mobx.action.bound], _getAllowedOperationsDecs = [_mobx.action, _mobx.action.bound], _onAudioVolumeUpdatedDecs = [_mobx.action, _mobx.action.bound], "_uiEventStore");
109
95
  var VideoWindowStore = exports["default"] = /*#__PURE__*/function () {
110
96
  function VideoWindowStore(params) {
111
97
  var _this = this;
112
98
  (0, _classCallCheck2["default"])(this, VideoWindowStore);
113
99
  (0, _defineProperty2["default"])(this, _ref, void _initProto(this));
114
100
  (0, _defineProperty2["default"])(this, "_subscriptions", []);
115
- (0, _defineProperty2["default"])(this, "_isPopoverVisible", false);
116
101
  _classPrivateFieldInitSpec(this, _A, _init_userVolumeMap(this, new Map()));
117
- _classPrivateFieldInitSpec(this, _B, _init_speakHover(this));
118
- _classPrivateFieldInitSpec(this, _C, _init_videoWindowPreviewType(this, _type3.FcrVideoWindowPreviewType.SMALL));
102
+ _classPrivateFieldInitSpec(this, _B, _init_wrapperHovering(this));
103
+ _classPrivateFieldInitSpec(this, _C, _init_videoWindowPreviewType(this, _type.FcrVideoWindowPreviewType.SMALL));
119
104
  _classPrivateFieldInitSpec(this, _D, _init_videoWindowCurrentWidth(this));
120
105
  _classPrivateFieldInitSpec(this, _E, _init_videoWindowCurrentHeight(this));
121
106
  _classPrivateFieldInitSpec(this, _F, _init_foldList(this, []));
122
- _classPrivateFieldInitSpec(this, _G, _init_workareaX(this, 0));
123
- _classPrivateFieldInitSpec(this, _H, _init_workareaY(this, 0));
124
- _classPrivateFieldInitSpec(this, _I, _init_workareaWidth(this, 0));
125
- _classPrivateFieldInitSpec(this, _J, _init_workareaHeight(this, 0));
126
- _classPrivateFieldInitSpec(this, _K, _init_localUserRole(this, _type6.FcrUserRole.PARTICIPANT));
127
- // @observable accessor _spotlightStreamId: string = '';
128
- // @observable accessor shouldHideNonVideoParticipants = false;
129
- _classPrivateFieldInitSpec(this, _L, _init__spotlightStreamId(this, ''));
130
- _classPrivateFieldInitSpec(this, _M, _init_connectType(this, _type.FcrUIConnectType.COMPUTER));
131
- _classPrivateFieldInitSpec(this, _N, _init_bounds(this, {
107
+ _classPrivateFieldInitSpec(this, _G, _init_innerFrameBounds(this, {
132
108
  width: 0,
133
109
  height: 0
134
110
  }));
135
111
  var uiEventStore = params.uiEventStore,
136
- userControl = params.userControl,
137
112
  streamControl = params.streamControl,
138
113
  securityStore = params.securityStore,
139
114
  deviceStore = params.deviceStore,
140
- deviceStreamStore = params.deviceStreamStore,
141
115
  sharedLayoutDataSource = params.sharedLayoutDataSource,
142
116
  sharedInterpreterDataSource = params.sharedInterpreterDataSource,
143
117
  sharedSettingDataSource = params.sharedSettingDataSource,
144
118
  chatProvider = params.chatProvider,
145
119
  sharedVideoWindowDataSource = params.sharedVideoWindowDataSource,
146
- remoteRenderProvider = params.remoteRenderProvider;
120
+ sharedMemberDataSource = params.sharedMemberDataSource;
147
121
  this._uiEventStore = uiEventStore;
148
122
  this._deviceStore = deviceStore;
149
- this._deviceStreamStore = deviceStreamStore;
150
123
  this._streamControl = streamControl;
151
124
  this._securityStore = securityStore;
152
125
  this._sharedLayoutDataSource = sharedLayoutDataSource;
@@ -154,24 +127,13 @@ var VideoWindowStore = exports["default"] = /*#__PURE__*/function () {
154
127
  this._sharedSettingDataSource = sharedSettingDataSource;
155
128
  this._chatProvider = chatProvider;
156
129
  this._sharedVideoWindowDataSource = sharedVideoWindowDataSource;
157
- this._remoteRenderProvider = remoteRenderProvider;
158
- // this._uiEventStore.addObserver({
159
- // onEvent: this.onEvent,
160
- // });
130
+ this._sharedMemberDataSource = sharedMemberDataSource;
161
131
  this._streamControl.addObserver({
162
- onStreamVolumeIndicationUpdated: this._onAudioVolumeUpdated,
163
- onStreamsAdded: this._handleStreamsAddedOrUpdated,
164
- onStreamsUpdated: this._handleStreamsAddedOrUpdated,
165
- onStreamsRemoved: this._handleStreamsAddedOrUpdated
132
+ onStreamVolumeIndicationUpdated: this._onAudioVolumeUpdated
166
133
  });
167
- this._userControl = userControl;
168
- this._userControl.addObserver({
169
- onUserInfoUpdated: this.onUserInfoUpdated
170
- });
171
- this.setLocalUserRole(userControl.getLocalUser().userRole);
172
- this.speakHover = false;
173
- this.videoWindowCurrentHeight = _type3.DefaultVideoWindowSmallTypeHeight;
174
- this.videoWindowCurrentWidth = _type3.DefaultVideoWindowWidth;
134
+ this.videoWindowCurrentHeight = _type.DefaultVideoWindowSmallTypeHeight;
135
+ this.videoWindowCurrentWidth = _type.DefaultVideoWindowWidth;
136
+ this.wrapperHovering = false;
175
137
  this._subscriptions.push((0, _mobx.reaction)(function () {
176
138
  return _this._deviceStore.microphoneVolumeLevel;
177
139
  }, function (volume) {
@@ -189,7 +151,7 @@ var VideoWindowStore = exports["default"] = /*#__PURE__*/function () {
189
151
  _classPrivateFieldSet(_A, this, v);
190
152
  }
191
153
  }, {
192
- key: "speakHover",
154
+ key: "wrapperHovering",
193
155
  get: function get() {
194
156
  return _classPrivateFieldGet(_B, this);
195
157
  },
@@ -229,7 +191,7 @@ var VideoWindowStore = exports["default"] = /*#__PURE__*/function () {
229
191
  _classPrivateFieldSet(_F, this, v);
230
192
  }
231
193
  }, {
232
- key: "workareaX",
194
+ key: "innerFrameBounds",
233
195
  get: function get() {
234
196
  return _classPrivateFieldGet(_G, this);
235
197
  },
@@ -237,131 +199,84 @@ var VideoWindowStore = exports["default"] = /*#__PURE__*/function () {
237
199
  _classPrivateFieldSet(_G, this, v);
238
200
  }
239
201
  }, {
240
- key: "workareaY",
202
+ key: "shouldHideNonVideoParticipants",
241
203
  get: function get() {
242
- return _classPrivateFieldGet(_H, this);
243
- },
244
- set: function set(v) {
245
- _classPrivateFieldSet(_H, this, v);
204
+ return this._sharedSettingDataSource.setting.shouldHideNonVideoParticipants;
246
205
  }
247
206
  }, {
248
- key: "workareaWidth",
207
+ key: "foldListRenderData",
249
208
  get: function get() {
250
- return _classPrivateFieldGet(_I, this);
251
- },
252
- set: function set(v) {
253
- _classPrivateFieldSet(_I, this, v);
209
+ return this._sliceFoldList();
254
210
  }
255
211
  }, {
256
- key: "workareaHeight",
212
+ key: "spotlightStreamId",
257
213
  get: function get() {
258
- return _classPrivateFieldGet(_J, this);
259
- },
260
- set: function set(v) {
261
- _classPrivateFieldSet(_J, this, v);
214
+ return this._sharedVideoWindowDataSource.spotlightStreamId;
262
215
  }
263
216
  }, {
264
- key: "localUserRole",
217
+ key: "findSpotlightUser",
265
218
  get: function get() {
266
- return _classPrivateFieldGet(_K, this);
267
- },
268
- set: function set(v) {
269
- _classPrivateFieldSet(_K, this, v);
219
+ var _this2 = this;
220
+ return this.spotlightStreamId ? this.foldList.find(function (item) {
221
+ return item.videoStreamId === _this2.spotlightStreamId || item.audioStreamId === _this2.spotlightStreamId;
222
+ }) : null;
270
223
  }
271
224
  }, {
272
- key: "_spotlightStreamId",
225
+ key: "hasPinnedStream",
273
226
  get: function get() {
274
- return _classPrivateFieldGet(_L, this);
275
- },
276
- set: function set(v) {
277
- _classPrivateFieldSet(_L, this, v);
227
+ var filterList = this.filterFoldList;
228
+ return filterList.some(function (item) {
229
+ return item.isPin;
230
+ });
278
231
  }
279
232
  }, {
280
- key: "connectType",
233
+ key: "videoWindowHeight",
281
234
  get: function get() {
282
- return _classPrivateFieldGet(_M, this);
283
- },
284
- set: function set(v) {
285
- _classPrivateFieldSet(_M, this, v);
235
+ var list = this._sliceFoldList();
236
+ return _type.DefaultVideoWindowHeight + list.length * _type.VideoWindowItemHeight;
286
237
  }
287
238
  }, {
288
- key: "bounds",
239
+ key: "interpreterUserList",
289
240
  get: function get() {
290
- return _classPrivateFieldGet(_N, this);
291
- },
292
- set: function set(v) {
293
- _classPrivateFieldSet(_N, this, v);
294
- }
295
- }, {
296
- key: "setPopoverVisible",
297
- value: function setPopoverVisible(visible) {
298
- this._isPopoverVisible = visible;
241
+ return this._sharedInterpreterDataSource.interpreterUserList;
299
242
  }
300
243
  }, {
301
- key: "setBounds",
302
- value: function setBounds(width, height) {
303
- // 如果当前popover区域展开了,宽高不能为0,否则会超出渲染区域
304
- if (this.videoWindowPreviewType !== _type3.FcrVideoWindowPreviewType.SMALL && this._isPopoverVisible && width === 0 && height === 0) {
305
- return;
306
- }
307
- this.bounds = {
308
- width: width,
309
- height: height
310
- };
311
- }
312
- }, {
313
- key: "setVideoOrientation",
314
- value: function setVideoOrientation() {
315
- this._deviceStore.setVideoOrientation();
316
- }
317
- }, {
318
- key: "release",
319
- value: function release() {
320
- this._subscriptions.forEach(function (fn) {
321
- return fn();
322
- });
323
- }
324
- }, {
325
- key: "shouldHideNonVideoParticipants",
244
+ key: "isInterpreterEnabled",
326
245
  get: function get() {
327
- return this._sharedSettingDataSource.setting.shouldHideNonVideoParticipants;
328
- }
329
- }, {
330
- key: "_onAudioVolumeUpdated",
331
- value: function _onAudioVolumeUpdated(roomId, streamId, volume) {
332
- this.userVolumeMap.set(streamId, Math.floor(volume / 255 * 100));
246
+ return this._sharedInterpreterDataSource.isInterpreterEnabled;
333
247
  }
334
248
  }, {
335
- key: "foldListRenderData",
249
+ key: "filterFoldList",
336
250
  get: function get() {
337
- var filterList = this.filterFoldList(this.foldList, this.shouldHideNonVideoParticipants);
338
- return this.sliceFoldList(filterList, this.videoWindowPreviewType);
251
+ var sourceList = this.foldList.filter(function (i) {
252
+ return !i.isMySelf || i.videoSourceType !== _type3.AgoraRtcVideoSourceType.SCREEN;
253
+ });
254
+ var _list = this.shouldHideNonVideoParticipants ? sourceList.filter(function (i) {
255
+ return i.isMySelf || i.hasVideoStream || i.videoSourceType === _type3.AgoraRtcVideoSourceType.SCREEN || i.type === _type2.FcrUIWindowType.BOARD;
256
+ }) : sourceList;
257
+ return _list;
339
258
  }
340
259
  }, {
341
- key: "spotlightStreamId",
260
+ key: "shouldHaveListView",
342
261
  get: function get() {
343
- return this._sharedVideoWindowDataSource.spotlightStreamId;
262
+ return this.filterFoldList.length > 1;
344
263
  }
345
264
  }, {
346
- key: "findSpotlightUser",
265
+ key: "localUserRole",
347
266
  get: function get() {
348
- var _this2 = this;
349
- return this.spotlightStreamId ? this.foldList.find(function (item) {
350
- return item.videoStreamId === _this2.spotlightStreamId || item.audioStreamId === _this2.spotlightStreamId;
351
- }) : null;
267
+ return this._sharedMemberDataSource.localUserRole;
352
268
  }
353
269
  }, {
354
- key: "hasPinnedStream",
355
- get: function get() {
356
- var filterList = this.filterFoldList(this.foldList, this.shouldHideNonVideoParticipants);
357
- return filterList.some(function (item) {
358
- return item.isPin;
359
- });
270
+ key: "setVideoOrientation",
271
+ value: function setVideoOrientation() {
272
+ this._deviceStore.setVideoOrientation();
360
273
  }
361
274
  }, {
362
- key: "getLocalUserId",
363
- value: function getLocalUserId() {
364
- return this._userControl.getLocalUser().userId;
275
+ key: "release",
276
+ value: function release() {
277
+ this._subscriptions.forEach(function (fn) {
278
+ return fn();
279
+ });
365
280
  }
366
281
  }, {
367
282
  key: "removePin",
@@ -373,29 +288,6 @@ var VideoWindowStore = exports["default"] = /*#__PURE__*/function () {
373
288
  value: function addPin(streamId) {
374
289
  this._sharedVideoWindowDataSource.addPin(streamId);
375
290
  }
376
- }, {
377
- key: "startPlayLocalVideo",
378
- value: function startPlayLocalVideo(element, isMirror) {
379
- this._deviceStore.startPlayLocalVideo(element, isMirror);
380
- }
381
- }, {
382
- key: "stopPlayLocalVideo",
383
- value: function stopPlayLocalVideo(element) {
384
- this._deviceStore.stopPlayLocalVideo(element);
385
- }
386
- }, {
387
- key: "startRenderRemoteVideo",
388
- value: function startRenderRemoteVideo(streamId, type, renderMode, isMirror, element) {
389
- return this._remoteRenderProvider.startRenderRemoteVideo(streamId, type, {
390
- renderMode: renderMode,
391
- isMirror: isMirror
392
- }, element);
393
- }
394
- }, {
395
- key: "stopRenderRemoteVideo",
396
- value: function stopRenderRemoteVideo(streamId, element) {
397
- this._remoteRenderProvider.stopRenderRemoteVideo(streamId, element);
398
- }
399
291
  }, {
400
292
  key: "sendParticipantEvent",
401
293
  value: function sendParticipantEvent(payload) {
@@ -409,64 +301,45 @@ var VideoWindowStore = exports["default"] = /*#__PURE__*/function () {
409
301
  userId: userId
410
302
  });
411
303
  }
412
- }, {
413
- key: "setLocalUserRole",
414
- value: function setLocalUserRole(role) {
415
- this.localUserRole = role;
416
- }
417
304
  }, {
418
305
  key: "computedVideoWindowHeight",
419
- value: function computedVideoWindowHeight(list, previewType) {
420
- var _height = _type3.DefaultVideoWindowHeight;
421
- var listCount = list.length > 4 ? 4 : list.length;
422
- if (previewType !== _type3.FcrVideoWindowPreviewType.MIX) {
423
- if (previewType === _type3.FcrVideoWindowPreviewType.SMALL) {
424
- _height = _type3.DefaultVideoWindowHeight + _type3.VideoWindowItemHeight;
425
- } else if (previewType === _type3.FcrVideoWindowPreviewType.MIDDLE) {
426
- _height = _type3.DefaultVideoWindowHeight + listCount * _type3.VideoWindowItemHeight;
427
- }
306
+ value: function computedVideoWindowHeight() {
307
+ var length = this.filterFoldList.length;
308
+ var listCount = length > 4 ? 4 : length;
309
+ switch (this.videoWindowPreviewType) {
310
+ case _type.FcrVideoWindowPreviewType.MINI:
311
+ return _type.DefaultVideoWindowHeight;
312
+ case _type.FcrVideoWindowPreviewType.SMALL:
313
+ return _type.DefaultVideoWindowSmallTypeHeight;
314
+ case _type.FcrVideoWindowPreviewType.LIST:
315
+ return _type.DefaultVideoWindowHeight + listCount * _type.VideoWindowItemHeight;
316
+ default:
317
+ return _type.DefaultVideoWindowHeight;
428
318
  }
429
- return _height;
430
- }
431
- }, {
432
- key: "sliceFoldList",
433
- value: function sliceFoldList(list, previewType) {
434
- return previewType === _type3.FcrVideoWindowPreviewType.MIDDLE ? list.slice(0, 4) : previewType === _type3.FcrVideoWindowPreviewType.SMALL ? list.slice(0, 1) : [];
435
319
  }
436
320
  }, {
437
321
  key: "changeVideoWindowBounds",
438
- value: function changeVideoWindowBounds(x, y, width, height, list) {
439
- var previewType = this.videoWindowPreviewType;
322
+ value: function changeVideoWindowBounds() {
323
+ var videoWindowPreviewType = this.videoWindowPreviewType;
324
+ var videoWindowHeight = this.computedVideoWindowHeight();
440
325
  this._uiEventStore.sendEvent(_constant.FcrUIAction.VIDEO_WINDOW_BOUNDS, {
441
- videoWindowHeight: this.computedVideoWindowHeight(list, previewType),
442
- videoWindowPreviewType: previewType,
443
- workareaX: x,
444
- workareaY: y,
445
- workareaWidth: width || this.workareaWidth,
446
- workareaHeight: height || this.workareaHeight
326
+ videoWindowHeight: videoWindowHeight,
327
+ videoWindowPreviewType: videoWindowPreviewType
447
328
  });
448
329
  // 判断当前是否展开了popover区域,实际上只有展开了popover区域,这里的width和height才会有值
449
- if (this.bounds.width && this.bounds.width >= _type3.DefaultVideoWindowWidth) {
450
- this.setBounds(this.bounds.width, this.bounds.height);
451
- } else {
452
- this.setBounds(0, 0);
453
- }
454
330
  }
455
331
  }, {
456
332
  key: "openPrivateChat",
457
333
  value: function openPrivateChat(userId) {
458
- var _this$_userControl;
459
- if (!this._securityStore.permitPrivateChat(userId)) {
460
- return;
461
- }
334
+ if (!this._securityStore.permitPrivateChat(userId)) return;
462
335
  this._sharedLayoutDataSource.setAsideLayout({
463
336
  chat: true
464
337
  });
465
- 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) {
338
+ var user = this._sharedMemberDataSource.memberUserInfoList.find(function (u) {
466
339
  return u.userId === userId;
467
340
  });
468
341
  // user && this._uiEventStore.notifyChatUpdateTarget(user, FcrRoomType.Mainroom);
469
- user && this._chatProvider.setPrivateChatTargetUser(user, _type2.FcrRoomType.Mainroom);
342
+ user && this._chatProvider.setPrivateChatTargetUser(user, _type4.FcrUIRoomType.MAIN_ROOM);
470
343
  }
471
344
  }, {
472
345
  key: "openRenameDialog",
@@ -491,11 +364,6 @@ var VideoWindowStore = exports["default"] = /*#__PURE__*/function () {
491
364
  value: function hasRequestStartAudioPermission(targetRole) {
492
365
  return this._securityStore.hasRequestStartAudioPermission(targetRole);
493
366
  }
494
- }, {
495
- key: "onUserInfoUpdated",
496
- value: function onUserInfoUpdated(roomId, event) {
497
- this.setLocalUserRole(this._userControl.getLocalUser().userRole);
498
- }
499
367
  }, {
500
368
  key: "setVideoWindowPreviewType",
501
369
  value: function setVideoWindowPreviewType(type) {
@@ -505,63 +373,23 @@ var VideoWindowStore = exports["default"] = /*#__PURE__*/function () {
505
373
  }, {
506
374
  key: "handleFoldListChanged",
507
375
  value: function handleFoldListChanged() {
508
- var list = this.filterFoldList(this.foldList, this.shouldHideNonVideoParticipants);
509
- this.changeVideoWindowBounds(this.workareaX, this.workareaY, this.workareaWidth, this.workareaHeight, list);
510
- var height = this.computedVideoWindowHeight(list, this.videoWindowPreviewType);
511
- this.setBounds(_type3.DefaultVideoWindowWidth, height);
376
+ this.changeVideoWindowBounds();
377
+ var height = this.computedVideoWindowHeight();
512
378
  this._uiEventStore.sendEvent(_constant.FcrUIAction.VIDEO_WINDOW_RESIZE, {
513
- width: _type3.DefaultVideoWindowWidth,
379
+ width: _type.DefaultVideoWindowWidth,
514
380
  height: height
515
381
  });
516
382
  }
517
383
  }, {
518
384
  key: "closeVideoWindow",
519
385
  value: function closeVideoWindow() {
520
- this.videoWindowPreviewType = _type3.FcrVideoWindowPreviewType.SMALL;
521
- this.setVideoWindowPreviewType(_type3.FcrVideoWindowPreviewType.SMALL);
522
- }
523
- }, {
524
- key: "microphoneEnabled",
525
- get: function get() {
526
- return this._deviceStore.microphoneEnabled;
527
- }
528
- }, {
529
- key: "microphoneVolumeLevel",
530
- get: function get() {
531
- return this._deviceStore.microphoneVolumeLevel;
532
- }
533
- }, {
534
- key: "filterFoldList",
535
- value: function filterFoldList(list, shouldHideNonVideoParticipants) {
536
- var sourceList = list.filter(function (i) {
537
- return !i.isMySelf || i.videoSourceType !== _type5.AgoraRtcVideoSourceType.SCREEN;
538
- });
539
- var _list = shouldHideNonVideoParticipants ? sourceList.filter(function (i) {
540
- return i.isMySelf || i.hasVideoStream || i.videoSourceType === _type5.AgoraRtcVideoSourceType.SCREEN || i.type === _type4.FcrUIWindowType.BOARD;
541
- }) : sourceList;
542
- return _list;
543
- }
544
- }, {
545
- key: "videoWindowHeight",
546
- get: function get() {
547
- var filterList = this.filterFoldList(this.foldList, this.shouldHideNonVideoParticipants);
548
- var list = this.sliceFoldList(filterList, this.videoWindowPreviewType);
549
- return _type3.DefaultVideoWindowHeight + list.length * _type3.VideoWindowItemHeight;
550
- }
551
- }, {
552
- key: "interpreterUsers",
553
- get: function get() {
554
- return this._sharedInterpreterDataSource.interpreterUsers;
386
+ this.videoWindowPreviewType = _type.FcrVideoWindowPreviewType.SMALL;
387
+ this.setVideoWindowPreviewType(_type.FcrVideoWindowPreviewType.SMALL);
555
388
  }
556
389
  }, {
557
- key: "interpreterState",
558
- get: function get() {
559
- return this._sharedInterpreterDataSource.interpreterOff;
560
- }
561
- }, {
562
- key: "setSpeakHover",
563
- value: function setSpeakHover(hover) {
564
- this.speakHover = hover;
390
+ key: "setWrapperHover",
391
+ value: function setWrapperHover(hover) {
392
+ this.wrapperHovering = hover;
565
393
  }
566
394
  }, {
567
395
  key: "getAllowedOperations",
@@ -569,120 +397,25 @@ var VideoWindowStore = exports["default"] = /*#__PURE__*/function () {
569
397
  return this._securityStore.getAllowedOperations(targetRole, isSelf);
570
398
  }
571
399
  }, {
572
- key: "shouldHaveMiddleView",
573
- get: function get() {
574
- var _this$filterFoldList;
575
- return ((_this$filterFoldList = this.filterFoldList(this.foldList, this.shouldHideNonVideoParticipants)) === null || _this$filterFoldList === void 0 ? void 0 : _this$filterFoldList.length) > 1;
576
- }
577
- }, {
578
- key: "getCurrentDisplayBounds",
579
- value: function () {
580
- var _getCurrentDisplayBounds = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(id, type, bounds) {
581
- var allApplicationWindows, filterList, _getCurrentSharingWor, x, y, width, height;
582
- return _regenerator["default"].wrap(function _callee$(_context) {
583
- while (1) switch (_context.prev = _context.next) {
584
- case 0:
585
- _context.next = 2;
586
- return this._deviceStore.getWindowList();
587
- case 2:
588
- allApplicationWindows = _context.sent;
589
- filterList = this.filterFoldList(this.foldList, this.shouldHideNonVideoParticipants);
590
- _getCurrentSharingWor = (0, _tools.getCurrentSharingWorkArea)({
591
- currentShareId: id,
592
- currentShareType: type,
593
- currentShareBounds: bounds,
594
- allApplicationWindows: allApplicationWindows
595
- }), x = _getCurrentSharingWor.x, y = _getCurrentSharingWor.y, width = _getCurrentSharingWor.width, height = _getCurrentSharingWor.height;
596
- this.workareaX = x;
597
- this.workareaY = y;
598
- this.workareaWidth = width;
599
- this.workareaHeight = height;
600
- this.changeVideoWindowBounds(x, y, width, height, filterList);
601
- case 10:
602
- case "end":
603
- return _context.stop();
604
- }
605
- }, _callee, this);
606
- }));
607
- function getCurrentDisplayBounds(_x, _x2, _x3) {
608
- return _getCurrentDisplayBounds.apply(this, arguments);
609
- }
610
- return getCurrentDisplayBounds;
611
- }()
612
- }, {
613
- key: "_handleStreamsAddedOrUpdated",
614
- value: function _handleStreamsAddedOrUpdated() {
615
- var _this$_userControl$ge = this._userControl.getLocalUser(),
616
- userId = _this$_userControl$ge.userId;
617
- var streams = this._streamControl.getStreamsByUserId(userId);
618
- var hasPstnStream = streams.some(function (_ref2) {
619
- var connectorType = _ref2.connectorType;
620
- return connectorType === _fcrCore.FcrRoomConnectorType.PSTN;
621
- });
622
- this.connectType = hasPstnStream ? _type.FcrUIConnectType.PHONE : _type.FcrUIConnectType.COMPUTER;
400
+ key: "_onAudioVolumeUpdated",
401
+ value: function _onAudioVolumeUpdated(roomId, streamId, volume) {
402
+ this.userVolumeMap.set(streamId, Math.floor(volume / 255 * 100));
623
403
  }
624
404
  }, {
625
- key: "openConnection",
626
- value: function openConnection(type) {
627
- this._uiEventStore.openDialog(_constant.FcrUIDialogKey.CONNECTION_GATEWAY, '', {
628
- type: type
629
- });
405
+ key: "_sliceFoldList",
406
+ value: function _sliceFoldList() {
407
+ return this.videoWindowPreviewType === _type.FcrVideoWindowPreviewType.LIST ? this.filterFoldList.slice(0, 4) : this.videoWindowPreviewType === _type.FcrVideoWindowPreviewType.SMALL ? this.filterFoldList.slice(0, 1) : [];
630
408
  }
631
- }, {
632
- key: "enableMicrophone",
633
- value: function enableMicrophone(enable) {
634
- this._deviceStreamStore.enableMicrophoneWithPreCheck(enable);
635
- }
636
- // @bound
637
- // onEvent(action: FcrUIAction, payload: unknown) {
638
- // if (action === FcrUIAction.SET_CURRENT_SHARE_SCREEN) {
639
- // const { id, type, bounds } = payload as CurrentShareScreenTypes;
640
- // isElectron() && this.getCurrentDisplayBounds(id, type, bounds);
641
- // }
642
- // if (action === FcrUIAction.VIDEO_WINDOW_RESIZE) {
643
- // const { width, height } = payload as { width: number; height: number };
644
- // this.videoWindowCurrentHeight = height;
645
- // this.videoWindowCurrentWidth = width;
646
- // }
647
- // if (action === FcrUIAction.FOLD_LIST_CHANGED) {
648
- // this.foldList = (payload as FcrUIVideoWindowData[]) || [];
649
-
650
- // // 没有远端可以看了,如果当前在middle模式,切换到small模式
651
- // if (
652
- // !this.shouldHaveMiddleView &&
653
- // this.videoWindowPreviewType === FcrVideoWindowPreviewType.MIDDLE
654
- // ) {
655
- // this.setVideoWindowPreviewType(FcrVideoWindowPreviewType.SMALL);
656
- // } else {
657
- // this.handleFoldListChanged();
658
- // }
659
- // }
660
- // // if (action === FcrUIAction.SPOTLIGHT_STREAM_CHANGED) {
661
- // // const { type, streamId } = payload as FcrUISpotlightStreamChangedParams;
662
- // // if (type === 'add') {
663
- // // this._spotlightStreamId = streamId;
664
- // // } else {
665
- // // this._spotlightStreamId = '';
666
- // // }
667
- // // }
668
- // }
669
409
  }]);
670
410
  }();
671
411
  _VideoWindowStore = VideoWindowStore;
672
- var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_VideoWindowStore, [[_mobx.observable, 1, "userVolumeMap"], [_mobx.observable, 1, "speakHover"], [_mobx.observable, 1, "videoWindowPreviewType"], [_mobx.observable, 1, "videoWindowCurrentWidth"], [_mobx.observable, 1, "videoWindowCurrentHeight"], [_mobx.observable, 1, "foldList"], [_mobx.observable, 1, "workareaX"], [_mobx.observable, 1, "workareaY"], [_mobx.observable, 1, "workareaWidth"], [_mobx.observable, 1, "workareaHeight"], [_mobx.observable, 1, "localUserRole"], [_mobx.observable, 1, "_spotlightStreamId"], [_mobx.observable, 1, "connectType"], [_mobx.observable, 1, "bounds"], [_decorator.bound, 2, "setPopoverVisible"], [_setBoundsDecs, 18, "setBounds"], [_decorator.bound, 2, "setVideoOrientation"], [_onAudioVolumeUpdatedDecs, 18, "_onAudioVolumeUpdated"], [_mobx.computed, 3, "foldListRenderData"], [_mobx.computed, 3, "spotlightStreamId"], [_mobx.computed, 3, "findSpotlightUser"], [_mobx.computed, 3, "hasPinnedStream"], [_decorator.bound, 2, "removePin"], [_decorator.bound, 2, "addPin"], [_decorator.bound, 2, "startPlayLocalVideo"], [_decorator.bound, 2, "stopPlayLocalVideo"], [_decorator.bound, 2, "startRenderRemoteVideo"], [_decorator.bound, 2, "stopRenderRemoteVideo"], [_decorator.bound, 2, "sendParticipantEvent"], [_decorator.bound, 2, "muteAudio"], [_mobx.action, 2, "setLocalUserRole"], [_decorator.bound, 2, "computedVideoWindowHeight"], [_decorator.bound, 2, "sliceFoldList"], [_changeVideoWindowBoundsDecs, 18, "changeVideoWindowBounds"], [_decorator.bound, 2, "openPrivateChat"], [_decorator.bound, 2, "openRenameDialog"], [_decorator.bound, 2, "hasMutePermission"], [_decorator.bound, 2, "hasUnmutePermission"], [_decorator.bound, 2, "hasRequestStartAudioPermission"], [_onUserInfoUpdatedDecs, 18, "onUserInfoUpdated"], [_setVideoWindowPreviewTypeDecs, 18, "setVideoWindowPreviewType"], [_closeVideoWindowDecs, 18, "closeVideoWindow"], [_decorator.bound, 2, "filterFoldList"], [_mobx.computed, 3, "videoWindowHeight"], [_setSpeakHoverDecs, 18, "setSpeakHover"], [_getAllowedOperationsDecs, 18, "getAllowedOperations"], [_mobx.computed, 3, "shouldHaveMiddleView"], [_getCurrentDisplayBoundsDecs, 18, "getCurrentDisplayBounds"], [_handleStreamsAddedOrUpdatedDecs, 18, "_handleStreamsAddedOrUpdated"], [_decorator.bound, 2, "openConnection"], [_decorator.bound, 2, "enableMicrophone"]], []).e, 15);
412
+ var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_VideoWindowStore, [[_mobx.observable, 1, "userVolumeMap"], [_mobx.observable, 1, "wrapperHovering"], [_mobx.observable, 1, "videoWindowPreviewType"], [_mobx.observable, 1, "videoWindowCurrentWidth"], [_mobx.observable, 1, "videoWindowCurrentHeight"], [_mobx.observable, 1, "foldList"], [_mobx.observable, 1, "innerFrameBounds"], [_mobx.computed, 3, "foldListRenderData"], [_mobx.computed, 3, "spotlightStreamId"], [_mobx.computed, 3, "findSpotlightUser"], [_mobx.computed, 3, "hasPinnedStream"], [_mobx.computed, 3, "videoWindowHeight"], [_mobx.computed, 3, "shouldHaveListView"], [_decorator.bound, 2, "setVideoOrientation"], [_decorator.bound, 2, "removePin"], [_decorator.bound, 2, "addPin"], [_decorator.bound, 2, "sendParticipantEvent"], [_decorator.bound, 2, "muteAudio"], [_decorator.bound, 2, "computedVideoWindowHeight"], [_changeVideoWindowBoundsDecs, 18, "changeVideoWindowBounds"], [_decorator.bound, 2, "openPrivateChat"], [_decorator.bound, 2, "openRenameDialog"], [_decorator.bound, 2, "hasMutePermission"], [_decorator.bound, 2, "hasUnmutePermission"], [_decorator.bound, 2, "hasRequestStartAudioPermission"], [_setVideoWindowPreviewTypeDecs, 18, "setVideoWindowPreviewType"], [_closeVideoWindowDecs, 18, "closeVideoWindow"], [_setWrapperHoverDecs, 18, "setWrapperHover"], [_getAllowedOperationsDecs, 18, "getAllowedOperations"], [_onAudioVolumeUpdatedDecs, 18, "_onAudioVolumeUpdated"], [_decorator.bound, 2, "_sliceFoldList"]], []).e, 8);
673
413
  _init_userVolumeMap = _applyDecs$e[0];
674
- _init_speakHover = _applyDecs$e[1];
414
+ _init_wrapperHovering = _applyDecs$e[1];
675
415
  _init_videoWindowPreviewType = _applyDecs$e[2];
676
416
  _init_videoWindowCurrentWidth = _applyDecs$e[3];
677
417
  _init_videoWindowCurrentHeight = _applyDecs$e[4];
678
418
  _init_foldList = _applyDecs$e[5];
679
- _init_workareaX = _applyDecs$e[6];
680
- _init_workareaY = _applyDecs$e[7];
681
- _init_workareaWidth = _applyDecs$e[8];
682
- _init_workareaHeight = _applyDecs$e[9];
683
- _init_localUserRole = _applyDecs$e[10];
684
- _init__spotlightStreamId = _applyDecs$e[11];
685
- _init_connectType = _applyDecs$e[12];
686
- _init_bounds = _applyDecs$e[13];
687
- _initProto = _applyDecs$e[14];
419
+ _init_innerFrameBounds = _applyDecs$e[6];
420
+ _initProto = _applyDecs$e[7];
688
421
  var StoreContext = exports.StoreContext = /*#__PURE__*/(0, _react.createContext)(null);