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
@@ -80,7 +80,6 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
80
80
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
81
81
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
82
82
  var _type = require("fcr-core/lib/type");
83
- var _logger = require("agora-foundation/lib/logger");
84
83
  var _mobx = require("mobx");
85
84
  var _store = require("../setting/store");
86
85
  var _decorator = require("agora-foundation/lib/decorator");
@@ -89,8 +88,10 @@ var _debounce = _interopRequireDefault(require("lodash/debounce"));
89
88
  var _type2 = require("fcr-core/lib/room-control/type");
90
89
  var _react = require("react");
91
90
  var _view = require("../layout/view");
91
+ var _logger = require("../../utilities/logger");
92
+ var _i18n = require("agora-ui-foundation/lib/i18n");
92
93
  var _StateBarStore;
93
- var _initProto, _init_networkStatus, _init_localUser, _init_roomInfo, _init_scheduleInfo, _init_isLiveStreaming, _init_liveStreamingPlayUrl, _init_galleryWidth, _init_browserWidth, _init_networkStats, _init_attendeeCount, _init_asideOpenedItem, _init_cloudRecordingState, _init_meetingId, _setNetworkStatusDecs, _setLocalUserDecs, _setRoomInfoDecs, _setScheduleInfoDecs, _stopLiveStreamingDialogDecs, _uiEventsDecs, _setBrowserWidthDecs, _onNetworkStatsUpdatedDecs, _onLiveStreamingStateUpdatedDecs, _ref;
94
+ var _initProto, _init_networkStatus, _init_roomInfo, _init_isLiveStreaming, _init_liveStreamingPlayUrl, _init_galleryWidth, _init_browserWidth, _init_networkStats, _init_attendeeCount, _init_asideOpenedItem, _init_cloudRecordingState, _setNetworkStatusDecs, _setRoomInfoDecs, _stopLiveStreamingDialogDecs, _uiEventsDecs, _setBrowserWidthDecs, _onNetworkStatsUpdatedDecs, _onLiveStreamingStateUpdatedDecs, _ref;
94
95
  function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
95
96
  function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
96
97
  function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
@@ -112,14 +113,10 @@ var _G = /*#__PURE__*/new WeakMap();
112
113
  var _H = /*#__PURE__*/new WeakMap();
113
114
  var _I = /*#__PURE__*/new WeakMap();
114
115
  var _J = /*#__PURE__*/new WeakMap();
115
- var _K = /*#__PURE__*/new WeakMap();
116
- var _L = /*#__PURE__*/new WeakMap();
117
- var _M = /*#__PURE__*/new WeakMap();
118
- _ref = (_setNetworkStatusDecs = [_mobx.action, _mobx.action.bound], _setLocalUserDecs = [_mobx.action, _mobx.action.bound], _setRoomInfoDecs = [_mobx.action, _mobx.action.bound], _setScheduleInfoDecs = [_mobx.action, _mobx.action.bound], _stopLiveStreamingDialogDecs = [_mobx.action, _mobx.action.bound], _uiEventsDecs = [_mobx.action, _mobx.action.bound], _setBrowserWidthDecs = [_mobx.action, _mobx.action.bound], _onNetworkStatsUpdatedDecs = [_mobx.action, _mobx.action.bound], _onLiveStreamingStateUpdatedDecs = [_mobx.action, _mobx.action.bound], "logger");
116
+ _ref = (_setNetworkStatusDecs = [_mobx.action, _mobx.action.bound], _setRoomInfoDecs = [_mobx.action, _mobx.action.bound], _stopLiveStreamingDialogDecs = [_mobx.action, _mobx.action.bound], _uiEventsDecs = [_mobx.action, _mobx.action.bound], _setBrowserWidthDecs = [_mobx.action, _mobx.action.bound], _onNetworkStatsUpdatedDecs = [_mobx.action, _mobx.action.bound], _onLiveStreamingStateUpdatedDecs = [_mobx.action, _mobx.action.bound], "logger");
119
117
  var StateBarStore = exports["default"] = /*#__PURE__*/function () {
120
118
  function StateBarStore(_ref2) {
121
- var _this$_roomControl$ge,
122
- _this = this;
119
+ var _this = this;
123
120
  var roomControl = _ref2.roomControl,
124
121
  uiEventStore = _ref2.uiEventStore,
125
122
  securityStore = _ref2.securityStore,
@@ -127,9 +124,16 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
127
124
  parameters = _ref2.parameters,
128
125
  sharedLayoutDataSource = _ref2.sharedLayoutDataSource,
129
126
  roomProvider = _ref2.roomProvider,
130
- sharedVideoWindowDataSource = _ref2.sharedVideoWindowDataSource;
127
+ sharedVideoWindowDataSource = _ref2.sharedVideoWindowDataSource,
128
+ messageProvider = _ref2.messageProvider,
129
+ sharedMemberDataSource = _ref2.sharedMemberDataSource,
130
+ localStorageProvider = _ref2.localStorageProvider,
131
+ abilityProvider = _ref2.abilityProvider,
132
+ sharedMeetingTimeDataSource = _ref2.sharedMeetingTimeDataSource;
131
133
  (0, _classCallCheck2["default"])(this, StateBarStore);
132
- (0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.getLogger)()));
134
+ (0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.createLogger)({
135
+ prefix: 'StateBarStore'
136
+ })));
133
137
  (0, _defineProperty2["default"])(this, "_disposer", []);
134
138
  (0, _defineProperty2["default"])(this, "_roomObserver", {
135
139
  onNetworkQualityUpdated: this._onNetworkQualityUpdated.bind(this),
@@ -138,24 +142,21 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
138
142
  onCloudRecordingStateUpdated: this._onCloudRecordingStateUpdated.bind(this)
139
143
  });
140
144
  _classPrivateFieldInitSpec(this, _A, _init_networkStatus(this, 'unknown'));
141
- _classPrivateFieldInitSpec(this, _B, _init_localUser(this, undefined));
142
- _classPrivateFieldInitSpec(this, _C, _init_roomInfo(this, undefined));
143
- _classPrivateFieldInitSpec(this, _D, _init_scheduleInfo(this, undefined));
144
- _classPrivateFieldInitSpec(this, _E, _init_isLiveStreaming(this, false));
145
- _classPrivateFieldInitSpec(this, _F, _init_liveStreamingPlayUrl(this, ''));
146
- _classPrivateFieldInitSpec(this, _G, _init_galleryWidth(this, window.innerWidth));
147
- _classPrivateFieldInitSpec(this, _H, _init_browserWidth(this, window.innerWidth));
148
- _classPrivateFieldInitSpec(this, _I, _init_networkStats(this, {
145
+ _classPrivateFieldInitSpec(this, _B, _init_roomInfo(this, undefined));
146
+ _classPrivateFieldInitSpec(this, _C, _init_isLiveStreaming(this, false));
147
+ _classPrivateFieldInitSpec(this, _D, _init_liveStreamingPlayUrl(this, ''));
148
+ _classPrivateFieldInitSpec(this, _E, _init_galleryWidth(this, window.innerWidth));
149
+ _classPrivateFieldInitSpec(this, _F, _init_browserWidth(this, window.innerWidth));
150
+ _classPrivateFieldInitSpec(this, _G, _init_networkStats(this, {
149
151
  uplinkPacketLossRate: '-',
150
152
  downlinkPacketLossRate: '-',
151
153
  networkDelay: '-'
152
154
  }));
153
- _classPrivateFieldInitSpec(this, _J, _init_attendeeCount(this));
154
- _classPrivateFieldInitSpec(this, _K, _init_asideOpenedItem(this, new Set()));
155
+ _classPrivateFieldInitSpec(this, _H, _init_attendeeCount(this));
156
+ _classPrivateFieldInitSpec(this, _I, _init_asideOpenedItem(this, new Set()));
155
157
  // @observable accessor layoutSize: number;
156
158
  // @observable accessor layoutView: 'speaker' | 'gallery' = 'gallery';
157
- _classPrivateFieldInitSpec(this, _L, _init_cloudRecordingState(this, _type.FcrRecordingState.Stopped));
158
- _classPrivateFieldInitSpec(this, _M, _init_meetingId(this, undefined));
159
+ _classPrivateFieldInitSpec(this, _J, _init_cloudRecordingState(this, _type.FcrRecordingState.Stopped));
159
160
  this._config = config;
160
161
  this._roomControl = roomControl;
161
162
  this._uiEventStore = uiEventStore;
@@ -163,9 +164,17 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
163
164
  this._roomProvider = roomProvider;
164
165
  this.attendeeCount = 0;
165
166
  this.isLiveStreaming = this._roomControl.getLiveStreamingState() === _type.FcrLiveStreamingState.STARTED;
167
+ if (this.isLiveStreaming) {
168
+ this.liveStreamingPlayUrl = this._roomControl.getLiveStreamingConfig().pullStreamingUrl;
169
+ }
166
170
  this._sharedLayoutDataSource = sharedLayoutDataSource;
167
171
  this._sharedVideoWindowDataSource = sharedVideoWindowDataSource;
172
+ this._sharedMeetingTimeDataSource = sharedMeetingTimeDataSource;
173
+ this._messageProvider = messageProvider;
174
+ this._sharedMemberDataSource = sharedMemberDataSource;
175
+ this._localStorageProvider = localStorageProvider;
168
176
  this._roomControl.addObserver(this._roomObserver);
177
+ this._abilityProvider = abilityProvider;
169
178
  this._uiEventStore.addObserver({
170
179
  onEvent: this._uiEvents.bind(this)
171
180
  });
@@ -173,7 +182,7 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
173
182
  this.toggleLayout = this.toggleLayout.bind(this);
174
183
  this.toggleLayoutBarLock = this.toggleLayoutBarLock.bind(this);
175
184
  this.openVideoWindowDialog = this.openVideoWindowDialog.bind(this);
176
- this._onCloudRecordingStateUpdated(((_this$_roomControl$ge = this._roomControl.getRoomInfo()) === null || _this$_roomControl$ge === void 0 ? void 0 : _this$_roomControl$ge.roomId) || '', this._roomControl.getCloudRecordingState());
185
+ this.cloudRecordingState = this._roomControl.getCloudRecordingState();
177
186
  this._initRoomInfo();
178
187
  var resizeHandler = this._setBrowserWidth();
179
188
  window.addEventListener('resize', resizeHandler);
@@ -211,7 +220,7 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
211
220
  _classPrivateFieldSet(_A, this, v);
212
221
  }
213
222
  }, {
214
- key: "localUser",
223
+ key: "roomInfo",
215
224
  get: function get() {
216
225
  return _classPrivateFieldGet(_B, this);
217
226
  },
@@ -219,7 +228,7 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
219
228
  _classPrivateFieldSet(_B, this, v);
220
229
  }
221
230
  }, {
222
- key: "roomInfo",
231
+ key: "isLiveStreaming",
223
232
  get: function get() {
224
233
  return _classPrivateFieldGet(_C, this);
225
234
  },
@@ -227,7 +236,7 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
227
236
  _classPrivateFieldSet(_C, this, v);
228
237
  }
229
238
  }, {
230
- key: "scheduleInfo",
239
+ key: "liveStreamingPlayUrl",
231
240
  get: function get() {
232
241
  return _classPrivateFieldGet(_D, this);
233
242
  },
@@ -235,7 +244,7 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
235
244
  _classPrivateFieldSet(_D, this, v);
236
245
  }
237
246
  }, {
238
- key: "isLiveStreaming",
247
+ key: "galleryWidth",
239
248
  get: function get() {
240
249
  return _classPrivateFieldGet(_E, this);
241
250
  },
@@ -243,7 +252,7 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
243
252
  _classPrivateFieldSet(_E, this, v);
244
253
  }
245
254
  }, {
246
- key: "liveStreamingPlayUrl",
255
+ key: "browserWidth",
247
256
  get: function get() {
248
257
  return _classPrivateFieldGet(_F, this);
249
258
  },
@@ -251,7 +260,7 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
251
260
  _classPrivateFieldSet(_F, this, v);
252
261
  }
253
262
  }, {
254
- key: "galleryWidth",
263
+ key: "networkStats",
255
264
  get: function get() {
256
265
  return _classPrivateFieldGet(_G, this);
257
266
  },
@@ -259,7 +268,7 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
259
268
  _classPrivateFieldSet(_G, this, v);
260
269
  }
261
270
  }, {
262
- key: "browserWidth",
271
+ key: "attendeeCount",
263
272
  get: function get() {
264
273
  return _classPrivateFieldGet(_H, this);
265
274
  },
@@ -267,7 +276,7 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
267
276
  _classPrivateFieldSet(_H, this, v);
268
277
  }
269
278
  }, {
270
- key: "networkStats",
279
+ key: "asideOpenedItem",
271
280
  get: function get() {
272
281
  return _classPrivateFieldGet(_I, this);
273
282
  },
@@ -275,7 +284,7 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
275
284
  _classPrivateFieldSet(_I, this, v);
276
285
  }
277
286
  }, {
278
- key: "attendeeCount",
287
+ key: "cloudRecordingState",
279
288
  get: function get() {
280
289
  return _classPrivateFieldGet(_J, this);
281
290
  },
@@ -283,45 +292,25 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
283
292
  _classPrivateFieldSet(_J, this, v);
284
293
  }
285
294
  }, {
286
- key: "asideOpenedItem",
287
- get: function get() {
288
- return _classPrivateFieldGet(_K, this);
289
- },
290
- set: function set(v) {
291
- _classPrivateFieldSet(_K, this, v);
292
- }
293
- }, {
294
- key: "cloudRecordingState",
295
+ key: "localUser",
295
296
  get: function get() {
296
- return _classPrivateFieldGet(_L, this);
297
- },
298
- set: function set(v) {
299
- _classPrivateFieldSet(_L, this, v);
300
- }
301
- }, {
302
- key: "meetingId",
303
- get: function get() {
304
- return _classPrivateFieldGet(_M, this);
305
- },
306
- set: function set(v) {
307
- _classPrivateFieldSet(_M, this, v);
297
+ return this._sharedMemberDataSource.localUser;
308
298
  }
309
299
  }, {
310
300
  key: "isUserHost",
311
301
  get: function get() {
312
- var _this$localUser;
313
- return ((_this$localUser = this.localUser) === null || _this$localUser === void 0 ? void 0 : _this$localUser.userRole) === _type.FcrUserRole.HOST;
302
+ return this._sharedMemberDataSource.isLocalUserHost;
314
303
  }
315
304
  }, {
316
305
  key: "shouldShowMeetingTime",
317
306
  get: function get() {
318
- return this.scheduleInfo && this.scheduleInfo.duration;
307
+ return Boolean(this.scheduleInfo && this.scheduleInfo.duration > 0);
319
308
  }
320
309
  }, {
321
310
  key: "isMainRoom",
322
311
  get: function get() {
323
- var _this$_roomControl$ge2;
324
- return ((_this$_roomControl$ge2 = this._roomControl.getRoomInfo()) === null || _this$_roomControl$ge2 === void 0 ? void 0 : _this$_roomControl$ge2.roomType) === _type2.FcrRoomType.Mainroom;
312
+ var _this$_roomControl$ge;
313
+ return ((_this$_roomControl$ge = this._roomControl.getRoomInfo()) === null || _this$_roomControl$ge === void 0 ? void 0 : _this$_roomControl$ge.roomType) === _type2.FcrRoomType.Mainroom;
325
314
  }
326
315
  }, {
327
316
  key: "hasStartCloudRecordingPermission",
@@ -338,11 +327,31 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
338
327
  get: function get() {
339
328
  return this._securityStore.hasGetLiveStreamingLinkPermission();
340
329
  }
330
+ }, {
331
+ key: "totalHourText",
332
+ get: function get() {
333
+ return this._sharedMeetingTimeDataSource.totalHourText;
334
+ }
335
+ }, {
336
+ key: "totalMinuteText",
337
+ get: function get() {
338
+ return this._sharedMeetingTimeDataSource.totalMinuteText;
339
+ }
340
+ }, {
341
+ key: "meetingTimeStatus",
342
+ get: function get() {
343
+ return this._sharedMeetingTimeDataSource.status;
344
+ }
345
+ }, {
346
+ key: "meetingTime",
347
+ get: function get() {
348
+ return this._sharedMeetingTimeDataSource.meetingTime;
349
+ }
341
350
  }, {
342
351
  key: "password",
343
352
  get: function get() {
344
- var _this$_roomControl$ge3;
345
- return (_this$_roomControl$ge3 = this._roomControl.getRoomInfo()) === null || _this$_roomControl$ge3 === void 0 ? void 0 : _this$_roomControl$ge3.password;
353
+ var _this$_roomControl$ge2;
354
+ return (_this$_roomControl$ge2 = this._roomControl.getRoomInfo()) === null || _this$_roomControl$ge2 === void 0 ? void 0 : _this$_roomControl$ge2.password;
346
355
  }
347
356
  }, {
348
357
  key: "layoutSize",
@@ -362,6 +371,29 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
362
371
  var _this$_sharedLayoutDa2;
363
372
  return (_this$_sharedLayoutDa2 = this._sharedLayoutDataSource) === null || _this$_sharedLayoutDa2 === void 0 ? void 0 : _this$_sharedLayoutDa2.asideLayout;
364
373
  }
374
+ }, {
375
+ key: "isRoomDetailSupported",
376
+ get: function get() {
377
+ return this._abilityProvider.isRoomDetailSupported();
378
+ }
379
+ }, {
380
+ key: "roomId",
381
+ get: function get() {
382
+ var _this$_roomControl;
383
+ return (_this$_roomControl = this._roomControl) === null || _this$_roomControl === void 0 || (_this$_roomControl = _this$_roomControl.getRoomInfo()) === null || _this$_roomControl === void 0 ? void 0 : _this$_roomControl.roomId;
384
+ }
385
+ }, {
386
+ key: "meetingId",
387
+ get: function get() {
388
+ var _ref3;
389
+ var mainRoomControl = this._roomControl;
390
+ return (_ref3 = mainRoomControl === null || mainRoomControl === void 0 ? void 0 : mainRoomControl.getRoomPropertiesByKeyPath('meetingId')) !== null && _ref3 !== void 0 ? _ref3 : this.roomId;
391
+ }
392
+ }, {
393
+ key: "scheduleInfo",
394
+ get: function get() {
395
+ return this._roomControl.getRoomSchedule();
396
+ }
365
397
  }, {
366
398
  key: "isLockRoomEnabled",
367
399
  value: function isLockRoomEnabled() {
@@ -372,15 +404,6 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
372
404
  value: function setNetworkStatus(networkStatus) {
373
405
  this.networkStatus = networkStatus;
374
406
  }
375
- }, {
376
- key: "setLocalUser",
377
- value: function setLocalUser(localUser) {
378
- if (!this.localUser) {
379
- this.localUser = localUser;
380
- } else {
381
- Object.assign(this.localUser, localUser);
382
- }
383
- }
384
407
  }, {
385
408
  key: "setRoomInfo",
386
409
  value: function setRoomInfo(roomInfo) {
@@ -390,15 +413,6 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
390
413
  Object.assign(this.roomInfo, roomInfo);
391
414
  }
392
415
  }
393
- }, {
394
- key: "setScheduleInfo",
395
- value: function setScheduleInfo(scheduleInfo) {
396
- if (!this.scheduleInfo) {
397
- this.scheduleInfo = scheduleInfo;
398
- } else {
399
- Object.assign(this.scheduleInfo, scheduleInfo);
400
- }
401
- }
402
416
  }, {
403
417
  key: "toggleLayout",
404
418
  value: function toggleLayout(layout) {
@@ -459,11 +473,11 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
459
473
  }, {
460
474
  key: "getShareLink",
461
475
  value: function getShareLink() {
462
- var _this$roomInfo, _this$roomInfo2, _this$localUser2, _this$roomInfo3;
476
+ var _this$roomInfo, _this$roomInfo2, _this$localUser, _this$roomInfo3;
463
477
  var info = {
464
478
  roomId: (_this$roomInfo = this.roomInfo) === null || _this$roomInfo === void 0 ? void 0 : _this$roomInfo.roomId,
465
479
  roomName: (_this$roomInfo2 = this.roomInfo) === null || _this$roomInfo2 === void 0 ? void 0 : _this$roomInfo2.roomName,
466
- userName: (_this$localUser2 = this.localUser) === null || _this$localUser2 === void 0 ? void 0 : _this$localUser2.userName
480
+ userName: (_this$localUser = this.localUser) === null || _this$localUser === void 0 ? void 0 : _this$localUser.userName
467
481
  };
468
482
  var baseLink = "".concat((_this$roomInfo3 = this.roomInfo) === null || _this$roomInfo3 === void 0 ? void 0 : _this$roomInfo3.inviteLink);
469
483
  return baseLink;
@@ -473,6 +487,16 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
473
487
  value: function showToast(params) {
474
488
  this._uiEventStore.showToast(params);
475
489
  }
490
+ }, {
491
+ key: "showNotification",
492
+ value: function showNotification(params) {
493
+ this._messageProvider.showNotification(params);
494
+ }
495
+ }, {
496
+ key: "closeNotification",
497
+ value: function closeNotification(key) {
498
+ this._messageProvider.closeNotification(key);
499
+ }
476
500
  }, {
477
501
  key: "_onNetworkQualityUpdated",
478
502
  value: function _onNetworkQualityUpdated(_roomId, event) {
@@ -553,36 +577,58 @@ var StateBarStore = exports["default"] = /*#__PURE__*/function () {
553
577
  }, {
554
578
  key: "_onCloudRecordingStateUpdated",
555
579
  value: function _onCloudRecordingStateUpdated(roomId, state) {
580
+ if (state === _type.FcrRecordingState.Starting) {
581
+ this._messageProvider.showToast({
582
+ type: 'normal',
583
+ message: (0, _i18n.transI18n)('fmt_record_tips_Cloudrecording_Start')
584
+ });
585
+ } else if (state === _type.FcrRecordingState.Started) {
586
+ this._messageProvider.showToast({
587
+ type: 'normal',
588
+ message: (0, _i18n.transI18n)('fmt_localrecord_tips_already_start')
589
+ });
590
+ } else if (state === _type.FcrRecordingState.Paused) {
591
+ this._messageProvider.showToast({
592
+ type: 'normal',
593
+ message: (0, _i18n.transI18n)('fmt_record_toast_record_paused')
594
+ });
595
+ } else if (state === _type.FcrRecordingState.Stopped) {
596
+ this._messageProvider.showToast({
597
+ type: 'normal',
598
+ message: (0, _i18n.transI18n)('fmt_record_record_stoped')
599
+ });
600
+ }
556
601
  this.cloudRecordingState = state;
557
602
  }
558
603
  }, {
559
604
  key: "_initRoomInfo",
560
605
  value: function _initRoomInfo() {
561
- var _this$_roomControl$ge4;
562
606
  var info = this._roomControl.getRoomInfo();
563
- this.meetingId = this._roomControl.getRoomPropertiesByKeyPath('meetingId');
564
607
  this.setRoomInfo(info);
565
- var user = (_this$_roomControl$ge4 = this._roomControl.getUserControl()) === null || _this$_roomControl$ge4 === void 0 ? void 0 : _this$_roomControl$ge4.getLocalUser();
566
- this.setLocalUser(user);
567
- var scheduleInfo = this._roomControl.getRoomSchedule();
568
- scheduleInfo && this.setScheduleInfo(scheduleInfo);
608
+ }
609
+ }, {
610
+ key: "meetingTimeKey",
611
+ get: function get() {
612
+ return "enter-room-".concat(this.roomId);
613
+ }
614
+ }, {
615
+ key: "getLocalMeetingTime",
616
+ value: function getLocalMeetingTime() {
617
+ return this._localStorageProvider.read(this.meetingTimeKey);
569
618
  }
570
619
  }]);
571
620
  }();
572
621
  _StateBarStore = StateBarStore;
573
- var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_StateBarStore, [[_mobx.observable, 1, "networkStatus"], [_mobx.observable, 1, "localUser"], [_mobx.observable, 1, "roomInfo"], [_mobx.observable, 1, "scheduleInfo"], [_mobx.observable, 1, "isLiveStreaming"], [_mobx.observable, 1, "liveStreamingPlayUrl"], [_mobx.observable, 1, "galleryWidth"], [_mobx.observable, 1, "browserWidth"], [_mobx.observable, 1, "networkStats"], [_mobx.observable, 1, "attendeeCount"], [_mobx.observable, 1, "asideOpenedItem"], [_mobx.observable, 1, "cloudRecordingState"], [_mobx.observable, 1, "meetingId"], [_mobx.computed, 3, "isUserHost"], [_mobx.computed, 3, "shouldShowMeetingTime"], [_mobx.computed, 3, "isMainRoom"], [_mobx.computed, 3, "hasStartCloudRecordingPermission"], [_mobx.computed, 3, "hasStopLiveStreamingPermission"], [_mobx.computed, 3, "hasGetLiveStreamingLinkPermission"], [_mobx.computed, 3, "password"], [_decorator.bound, 2, "isLockRoomEnabled"], [_setNetworkStatusDecs, 18, "setNetworkStatus"], [_setLocalUserDecs, 18, "setLocalUser"], [_setRoomInfoDecs, 18, "setRoomInfo"], [_setScheduleInfoDecs, 18, "setScheduleInfo"], [_decorator.bound, 2, "openDeviceSettingDialog"], [_stopLiveStreamingDialogDecs, 18, "stopLiveStreamingDialog"], [_decorator.bound, 2, "startCloudRecording"], [_decorator.bound, 2, "pauseCloudRecording"], [_decorator.bound, 2, "resumeCloudRecording"], [_decorator.bound, 2, "stopCloudRecording"], [_decorator.bound, 2, "getShareLink"], [_decorator.bound, 2, "showToast"], [_uiEventsDecs, 18, "_uiEvents"], [_setBrowserWidthDecs, 18, "_setBrowserWidth"], [_onNetworkStatsUpdatedDecs, 18, "_onNetworkStatsUpdated"], [_onLiveStreamingStateUpdatedDecs, 18, "_onLiveStreamingStateUpdated"]], []).e, 14);
622
+ var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_StateBarStore, [[_mobx.observable, 1, "networkStatus"], [_mobx.observable, 1, "roomInfo"], [_mobx.observable, 1, "isLiveStreaming"], [_mobx.observable, 1, "liveStreamingPlayUrl"], [_mobx.observable, 1, "galleryWidth"], [_mobx.observable, 1, "browserWidth"], [_mobx.observable, 1, "networkStats"], [_mobx.observable, 1, "attendeeCount"], [_mobx.observable, 1, "asideOpenedItem"], [_mobx.observable, 1, "cloudRecordingState"], [_mobx.computed, 3, "localUser"], [_mobx.computed, 3, "isUserHost"], [_mobx.computed, 3, "shouldShowMeetingTime"], [_mobx.computed, 3, "isMainRoom"], [_mobx.computed, 3, "hasStartCloudRecordingPermission"], [_mobx.computed, 3, "hasStopLiveStreamingPermission"], [_mobx.computed, 3, "hasGetLiveStreamingLinkPermission"], [_mobx.computed, 3, "totalHourText"], [_mobx.computed, 3, "totalMinuteText"], [_mobx.computed, 3, "meetingTimeStatus"], [_mobx.computed, 3, "meetingTime"], [_mobx.computed, 3, "password"], [_mobx.computed, 3, "roomId"], [_mobx.computed, 3, "meetingId"], [_mobx.computed, 3, "scheduleInfo"], [_decorator.bound, 2, "isLockRoomEnabled"], [_setNetworkStatusDecs, 18, "setNetworkStatus"], [_setRoomInfoDecs, 18, "setRoomInfo"], [_decorator.bound, 2, "openDeviceSettingDialog"], [_stopLiveStreamingDialogDecs, 18, "stopLiveStreamingDialog"], [_decorator.bound, 2, "startCloudRecording"], [_decorator.bound, 2, "pauseCloudRecording"], [_decorator.bound, 2, "resumeCloudRecording"], [_decorator.bound, 2, "stopCloudRecording"], [_decorator.bound, 2, "getShareLink"], [_decorator.bound, 2, "showToast"], [_decorator.bound, 2, "showNotification"], [_decorator.bound, 2, "closeNotification"], [_uiEventsDecs, 18, "_uiEvents"], [_setBrowserWidthDecs, 18, "_setBrowserWidth"], [_onNetworkStatsUpdatedDecs, 18, "_onNetworkStatsUpdated"], [_onLiveStreamingStateUpdatedDecs, 18, "_onLiveStreamingStateUpdated"], [_decorator.bound, 2, "getLocalMeetingTime"]], []).e, 11);
574
623
  _init_networkStatus = _applyDecs$e[0];
575
- _init_localUser = _applyDecs$e[1];
576
- _init_roomInfo = _applyDecs$e[2];
577
- _init_scheduleInfo = _applyDecs$e[3];
578
- _init_isLiveStreaming = _applyDecs$e[4];
579
- _init_liveStreamingPlayUrl = _applyDecs$e[5];
580
- _init_galleryWidth = _applyDecs$e[6];
581
- _init_browserWidth = _applyDecs$e[7];
582
- _init_networkStats = _applyDecs$e[8];
583
- _init_attendeeCount = _applyDecs$e[9];
584
- _init_asideOpenedItem = _applyDecs$e[10];
585
- _init_cloudRecordingState = _applyDecs$e[11];
586
- _init_meetingId = _applyDecs$e[12];
587
- _initProto = _applyDecs$e[13];
624
+ _init_roomInfo = _applyDecs$e[1];
625
+ _init_isLiveStreaming = _applyDecs$e[2];
626
+ _init_liveStreamingPlayUrl = _applyDecs$e[3];
627
+ _init_galleryWidth = _applyDecs$e[4];
628
+ _init_browserWidth = _applyDecs$e[5];
629
+ _init_networkStats = _applyDecs$e[6];
630
+ _init_attendeeCount = _applyDecs$e[7];
631
+ _init_asideOpenedItem = _applyDecs$e[8];
632
+ _init_cloudRecordingState = _applyDecs$e[9];
633
+ _initProto = _applyDecs$e[10];
588
634
  var StoreContext = exports.StoreContext = /*#__PURE__*/(0, _react.createContext)(null);
@@ -21,6 +21,7 @@ var _type = require("agora-ui-foundation/lib/components/icon/type");
21
21
  var _tooltip = require("agora-ui-foundation/lib/components/tooltip");
22
22
  var _networkQuality = require("./network-quality");
23
23
  var _layoutConfig = require("./layout-config");
24
+ var _meetingTime = require("./meeting-time");
24
25
  var _react = require("react");
25
26
  var _copyText = require("../../utilities/copyText");
26
27
  var _tools = require("../../utilities/tools");
@@ -36,6 +37,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
36
37
  var _type3 = require("fcr-core/lib/room-control/type");
37
38
  var _rendererEvent = require("../../utilities/renderer-event");
38
39
  var _constant = require("../../utilities/constant");
40
+ var _type4 = require("../../type");
39
41
  var _jsxRuntime = require("react/jsx-runtime");
40
42
  var MyFcrToolTip = exports.MyFcrToolTip = function MyFcrToolTip(props) {
41
43
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
@@ -61,7 +63,10 @@ var View = exports.View = (0, _mobxReact.observer)(function () {
61
63
  galleryWidth = _useContext.galleryWidth,
62
64
  isMainRoom = _useContext.isMainRoom,
63
65
  meetingId = _useContext.meetingId,
64
- showToast = _useContext.showToast;
66
+ showToast = _useContext.showToast,
67
+ showNotification = _useContext.showNotification,
68
+ closeNotification = _useContext.closeNotification,
69
+ isRoomDetailSupported = _useContext.isRoomDetailSupported;
65
70
  var _useState = (0, _react.useState)(false),
66
71
  _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
67
72
  isFullScreen = _useState2[0],
@@ -69,6 +74,16 @@ var View = exports.View = (0, _mobxReact.observer)(function () {
69
74
  var displayMeetingId = meetingId ? (0, _tools.renderMeetingId)(meetingId, (roomInfo === null || roomInfo === void 0 ? void 0 : roomInfo.roomId) || '') : (0, _tools.renderMeetingId)(meetingId, (roomInfo === null || roomInfo === void 0 ? void 0 : roomInfo.roomId) || '').replace(/\s+/g, '');
70
75
  (0, _react.useEffect)(function () {
71
76
  isFullScreen ? (0, _screen.enterFullScreen)() : (0, _screen.exitFullScreen)();
77
+ if (isFullScreen) {
78
+ showNotification({
79
+ type: _type4.FcrUINotificationContentType.TOAST,
80
+ placement: 'bottom',
81
+ onClose: function onClose() {
82
+ closeNotification(_type4.FcrUINotificationContentType.TOAST);
83
+ },
84
+ data: '点击键盘ESC 可退出全屏'
85
+ });
86
+ }
72
87
  }, [isFullScreen]);
73
88
  var screenHandler = function screenHandler(event) {
74
89
  if (event.action === _constant.FcrUIRendererEventAction.ENTER_FULL_SCREEN) {
@@ -84,6 +99,17 @@ var View = exports.View = (0, _mobxReact.observer)(function () {
84
99
  (0, _rendererEvent.removeEventListener)(screenHandler);
85
100
  };
86
101
  }, []);
102
+ var handleKeydown = function handleKeydown(event) {
103
+ if (event.key === 'Escape') {
104
+ isFullScreen && setIsFullScreen(false);
105
+ }
106
+ };
107
+ (0, _react.useEffect)(function () {
108
+ document.addEventListener('keydown', handleKeydown);
109
+ return function () {
110
+ document.removeEventListener('keydown', handleKeydown);
111
+ };
112
+ }, [isFullScreen]);
87
113
  var onMeetingIdCopy = function onMeetingIdCopy() {
88
114
  if (!displayMeetingId) return;
89
115
  (0, _copyText.copyText)(displayMeetingId).then(function () {
@@ -132,42 +158,47 @@ var View = exports.View = (0, _mobxReact.observer)(function () {
132
158
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_networkQuality.NetworkQuality, {})
133
159
  })
134
160
  })
135
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
136
- src: _stepGradient["default"],
137
- alt: "step divider",
138
- className: ns.e('step-divider')
139
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(MyFcrToolTip, {
140
- content: t('fmt_information_options_sharedetail'),
141
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_popover.FcrPopover, {
142
- trigger: "click",
143
- content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_meetingDetails.MeetingDetails, {}),
144
- placement: "bottomLeft",
145
- onVisibleChange: toggleLayoutBarLock,
146
- overlayClassName: ns.e('popover'),
147
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
148
- className: (0, _classnames["default"])(ns.e('info-detail'), (0, _defineProperty2["default"])({}, ns.e('inwaitingroom-disable-action'), (roomInfo === null || roomInfo === void 0 ? void 0 : roomInfo.roomType) === _type3.FcrRoomType.Waitingroom)),
149
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
150
- type: _type.FcrIconType.FCR_V2_TANHAO_ALART,
151
- className: ns.e('info-detail-icon'),
152
- size: 20
153
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
154
- className: ns.e('lock-meeting-text'),
155
- children: t('fmt_meetingInfo_label')
156
- })]
161
+ }), isRoomDetailSupported && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
162
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
163
+ src: _stepGradient["default"],
164
+ alt: "step divider",
165
+ className: ns.e('step-divider')
166
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(MyFcrToolTip, {
167
+ content: t('fmt_information_options_sharedetail'),
168
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_popover.FcrPopover, {
169
+ trigger: "click",
170
+ content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_meetingDetails.MeetingDetails, {}),
171
+ placement: "bottomLeft",
172
+ onVisibleChange: toggleLayoutBarLock,
173
+ overlayClassName: ns.e('popover'),
174
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
175
+ className: (0, _classnames["default"])(ns.e('info-detail'), (0, _defineProperty2["default"])({}, ns.e('inwaitingroom-disable-action'), (roomInfo === null || roomInfo === void 0 ? void 0 : roomInfo.roomType) === _type3.FcrRoomType.Waitingroom)),
176
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
177
+ type: _type.FcrIconType.FCR_V2_TANHAO_ALART,
178
+ className: ns.e('info-detail-icon'),
179
+ size: 20
180
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
181
+ className: ns.e('lock-meeting-text'),
182
+ children: t('fmt_meetingInfo_label')
183
+ })]
184
+ })
157
185
  })
158
- })
159
- }), galleryWidth >= _store.GALLERY_MIN_SIZE && /*#__PURE__*/(0, _jsxRuntime.jsx)(MyFcrToolTip, {
160
- content: t('fmt_information_label_clicktocopy'),
161
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
162
- className: ns.e('info-meeting-id'),
163
- onClick: onMeetingIdCopy,
164
- children: displayMeetingId
165
- })
186
+ }), galleryWidth >= _store.GALLERY_MIN_SIZE && /*#__PURE__*/(0, _jsxRuntime.jsx)(MyFcrToolTip, {
187
+ content: t('fmt_information_label_clicktocopy'),
188
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
189
+ className: ns.e('info-meeting-id'),
190
+ onClick: onMeetingIdCopy,
191
+ children: displayMeetingId
192
+ })
193
+ })]
166
194
  })]
167
195
  }), isLiveStreaming && /*#__PURE__*/(0, _jsxRuntime.jsx)(_liveStreamingState.LiveStreamingState, {})]
168
196
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
169
197
  className: ns.e('right-nav'),
170
- children: [isRecording && /*#__PURE__*/(0, _jsxRuntime.jsx)(_recording.Recording, {}), attendeeCount > 1 && /*#__PURE__*/(0, _jsxRuntime.jsx)(MyFcrToolTip, {
198
+ children: [isRecording && /*#__PURE__*/(0, _jsxRuntime.jsx)(_recording.Recording, {}), isMainRoom && shouldShowMeetingTime && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
199
+ className: ns.e('time'),
200
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_meetingTime.MeetingTime, {})
201
+ }), attendeeCount > 1 && /*#__PURE__*/(0, _jsxRuntime.jsx)(MyFcrToolTip, {
171
202
  content: t('fmt_statusbar_label_switchlayout'),
172
203
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
173
204
  className: ns.e('layout'),
@@ -0,0 +1,7 @@
1
+ import { DeviceStateProps } from '../../type';
2
+ export declare const DeviceState: ({ connectType, openConnection, microphoneVolumeLevel, enableMicrophone, microphoneEnabled, }: DeviceStateProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const AudioRecordinDeviceIcon: ({ size, micEnabled, volume, }: {
4
+ size?: number;
5
+ micEnabled?: boolean;
6
+ volume?: number;
7
+ }) => import("react/jsx-runtime").JSX.Element;