fcr-ui-scene 3.4.0 → 3.4.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 (324) hide show
  1. package/lib/ scenes/base.d.ts +10 -0
  2. package/lib/ scenes/base.js +75 -0
  3. package/lib/ scenes/main-scene.d.ts +43 -0
  4. package/lib/ scenes/main-scene.js +368 -0
  5. package/lib/ scenes/waiting-scene.d.ts +31 -0
  6. package/lib/ scenes/waiting-scene.js +119 -0
  7. package/lib/common/device-store.d.ts +1 -2
  8. package/lib/common/device-store.js +169 -153
  9. package/lib/common/device-stream-store.d.ts +5 -29
  10. package/lib/common/device-stream-store.js +47 -93
  11. package/lib/common/room-store.js +4 -4
  12. package/lib/common/security-store.d.ts +6 -16
  13. package/lib/common/security-store.js +16 -17
  14. package/lib/common/type.d.ts +8 -0
  15. package/lib/common/type.js +6 -0
  16. package/lib/creator.js +3 -3
  17. package/lib/electron/app.js +21 -5
  18. package/lib/electron/bootstrap-sdk.js +1 -2
  19. package/lib/electron/injections.d.ts +1 -1
  20. package/lib/error-fallback.css +62 -0
  21. package/lib/error-fallback.d.ts +2 -0
  22. package/lib/error-fallback.js +19 -0
  23. package/lib/modules/Interpreter/action/delete-btn/index.d.ts +1 -1
  24. package/lib/modules/Interpreter/action/edit-btn/index.d.ts +0 -1
  25. package/lib/modules/Interpreter/action/edit-btn/index.js +0 -2
  26. package/lib/modules/Interpreter/action/switch-btn/index.css +3 -0
  27. package/lib/modules/Interpreter/action/switch-btn/index.d.ts +2 -4
  28. package/lib/modules/Interpreter/action/switch-btn/index.js +3 -3
  29. package/lib/modules/Interpreter/footer/index.css +4 -3
  30. package/lib/modules/Interpreter/index.d.ts +2 -17
  31. package/lib/modules/Interpreter/index.js +2 -18
  32. package/lib/modules/Interpreter/interpreter-list/index.css +5 -1
  33. package/lib/modules/Interpreter/interpreter-list/index.d.ts +1 -0
  34. package/lib/modules/Interpreter/interpreter-list/index.js +3 -1
  35. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.css +0 -6
  36. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.d.ts +1 -1
  37. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.css +1 -3
  38. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.d.ts +1 -6
  39. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.js +55 -81
  40. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/option-Item.d.ts +6 -0
  41. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/option-Item.js +58 -0
  42. package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.d.ts +1 -1
  43. package/lib/modules/Interpreter/store.d.ts +36 -29
  44. package/lib/modules/Interpreter/store.js +575 -606
  45. package/lib/modules/Interpreter/type.d.ts +41 -0
  46. package/lib/modules/Interpreter/type.js +20 -0
  47. package/lib/modules/Interpreter/utils.d.ts +12 -0
  48. package/lib/modules/Interpreter/utils.js +139 -0
  49. package/lib/modules/Interpreter/view.d.ts +0 -1
  50. package/lib/modules/Interpreter/view.js +3 -5
  51. package/lib/modules/action-bar/action-bar-collapes-items.d.ts +1 -1
  52. package/lib/modules/action-bar/action-bar-collapes-items.js +11 -11
  53. package/lib/modules/action-bar/apps/useInterpreter.js +4 -2
  54. package/lib/modules/action-bar/components/apps/app-item/index.css +35 -0
  55. package/lib/modules/action-bar/components/apps/app-item/index.d.ts +12 -0
  56. package/lib/modules/action-bar/components/apps/app-item/index.js +61 -0
  57. package/lib/modules/action-bar/components/apps/appitems.d.ts +5 -0
  58. package/lib/modules/action-bar/components/apps/appitems.js +45 -0
  59. package/lib/modules/action-bar/components/apps/index.css +8 -0
  60. package/lib/modules/action-bar/components/apps/index.d.ts +4 -0
  61. package/lib/modules/action-bar/components/apps/index.js +57 -0
  62. package/lib/modules/action-bar/components/apps/useAppItemOptions.d.ts +9 -0
  63. package/lib/modules/action-bar/components/apps/useAppItemOptions.js +29 -0
  64. package/lib/modules/action-bar/components/apps/useBeautyBackground.d.ts +10 -0
  65. package/lib/modules/action-bar/components/apps/useBeautyBackground.js +36 -0
  66. package/lib/modules/action-bar/components/apps/useInterpreter.d.ts +14 -0
  67. package/lib/modules/action-bar/components/apps/useInterpreter.js +37 -0
  68. package/lib/modules/action-bar/components/apps/useLiveStreaming.d.ts +16 -0
  69. package/lib/modules/action-bar/components/apps/useLiveStreaming.js +41 -0
  70. package/lib/modules/action-bar/components/board/index.d.ts +4 -0
  71. package/lib/modules/action-bar/components/board/index.js +34 -0
  72. package/lib/modules/action-bar/components/breakout-room/index.d.ts +4 -0
  73. package/lib/modules/action-bar/components/breakout-room/index.js +32 -0
  74. package/lib/modules/action-bar/components/chat/index.css +80 -0
  75. package/lib/modules/action-bar/components/chat/index.d.ts +5 -0
  76. package/lib/modules/action-bar/components/chat/index.js +154 -0
  77. package/lib/modules/action-bar/components/device/index.css +162 -0
  78. package/lib/modules/action-bar/components/device/index.d.ts +8 -0
  79. package/lib/modules/action-bar/components/device/index.js +611 -0
  80. package/lib/modules/action-bar/components/interpreter/index.d.ts +6 -0
  81. package/lib/modules/action-bar/components/interpreter/index.js +41 -0
  82. package/lib/modules/action-bar/components/item.d.ts +27 -0
  83. package/lib/modules/action-bar/components/item.js +164 -0
  84. package/lib/modules/action-bar/components/leave/assign-host.d.ts +10 -0
  85. package/lib/modules/action-bar/components/leave/assign-host.js +64 -0
  86. package/lib/modules/action-bar/components/leave/index.css +126 -0
  87. package/lib/modules/action-bar/components/leave/index.d.ts +3 -0
  88. package/lib/modules/action-bar/components/leave/index.js +159 -0
  89. package/lib/modules/action-bar/components/leave/leave-meeting.d.ts +18 -0
  90. package/lib/modules/action-bar/components/leave/leave-meeting.js +153 -0
  91. package/lib/modules/action-bar/components/live-streaming/index.d.ts +4 -0
  92. package/lib/modules/action-bar/components/live-streaming/index.js +39 -0
  93. package/lib/modules/action-bar/components/more/index.css +114 -0
  94. package/lib/modules/action-bar/components/more/index.d.ts +5 -0
  95. package/lib/modules/action-bar/components/more/index.js +83 -0
  96. package/lib/modules/action-bar/components/more/poppover-content.d.ts +8 -0
  97. package/lib/modules/action-bar/components/more/poppover-content.js +400 -0
  98. package/lib/modules/action-bar/components/participants/index.css +21 -0
  99. package/lib/modules/action-bar/components/participants/index.d.ts +5 -0
  100. package/lib/modules/action-bar/components/participants/index.js +83 -0
  101. package/lib/modules/action-bar/components/record/index.css +39 -0
  102. package/lib/modules/action-bar/components/record/index.d.ts +5 -0
  103. package/lib/modules/action-bar/components/record/index.js +166 -0
  104. package/lib/modules/action-bar/components/record/stop-record-dialog.d.ts +5 -0
  105. package/lib/modules/action-bar/components/record/stop-record-dialog.js +48 -0
  106. package/lib/modules/action-bar/components/respond/index.d.ts +4 -0
  107. package/lib/modules/action-bar/components/respond/index.js +32 -0
  108. package/lib/modules/action-bar/components/screen-share/index.d.ts +4 -0
  109. package/lib/modules/action-bar/components/screen-share/index.js +106 -0
  110. package/lib/modules/action-bar/components/screen-share/submenu.d.ts +1 -0
  111. package/lib/modules/action-bar/components/screen-share/submenu.js +154 -0
  112. package/lib/modules/action-bar/components/security/index.d.ts +4 -0
  113. package/lib/modules/action-bar/components/security/index.js +58 -0
  114. package/lib/modules/action-bar/components/settings/index.d.ts +4 -0
  115. package/lib/modules/action-bar/components/settings/index.js +42 -0
  116. package/lib/modules/action-bar/index.css +23 -1
  117. package/lib/modules/action-bar/index.d.ts +2 -22
  118. package/lib/modules/action-bar/index.dev.js +37 -16
  119. package/lib/modules/action-bar/notification-bar/components/interpreter/index.css +58 -0
  120. package/lib/modules/action-bar/notification-bar/components/interpreter/index.d.ts +8 -0
  121. package/lib/modules/action-bar/notification-bar/components/interpreter/index.js +100 -0
  122. package/lib/modules/action-bar/notification-bar/components/virtual-image/index.css +56 -0
  123. package/lib/modules/action-bar/notification-bar/components/virtual-image/index.d.ts +5 -0
  124. package/lib/modules/action-bar/notification-bar/components/virtual-image/index.js +33 -0
  125. package/lib/modules/action-bar/notification-bar/dome.png +0 -0
  126. package/lib/modules/action-bar/notification-bar/fcr_translateswitch.png +0 -0
  127. package/lib/modules/action-bar/notification-bar/index.css +74 -0
  128. package/lib/modules/action-bar/notification-bar/index.d.ts +2 -0
  129. package/lib/modules/action-bar/notification-bar/index.js +99 -0
  130. package/lib/modules/action-bar/screen-share/index.js +5 -0
  131. package/lib/modules/action-bar/security/index.js +1 -0
  132. package/lib/modules/action-bar/smaller.js +2 -2
  133. package/lib/modules/action-bar/store.d.ts +6 -7
  134. package/lib/modules/action-bar/store.js +114 -128
  135. package/lib/modules/action-bar/trigger-input-language-room/fcr_translateswitch.png +0 -0
  136. package/lib/modules/action-bar/trigger-input-language-room/index.css +86 -0
  137. package/lib/modules/action-bar/trigger-input-language-room/index.d.ts +15 -0
  138. package/lib/modules/action-bar/trigger-input-language-room/index.js +220 -0
  139. package/lib/modules/action-bar/trigger-output-language-room/constant.d.ts +10 -0
  140. package/lib/modules/action-bar/trigger-output-language-room/constant.js +8 -0
  141. package/lib/modules/action-bar/trigger-output-language-room/guide-tooltip/index.css +22 -0
  142. package/lib/modules/action-bar/trigger-output-language-room/guide-tooltip/index.d.ts +14 -0
  143. package/lib/modules/action-bar/trigger-output-language-room/guide-tooltip/index.js +75 -0
  144. package/lib/modules/action-bar/trigger-output-language-room/index.d.ts +4 -0
  145. package/lib/modules/action-bar/trigger-output-language-room/index.js +98 -0
  146. package/lib/modules/action-bar/trigger-output-language-room/trigger-language-room.d.ts +5 -0
  147. package/lib/modules/action-bar/trigger-output-language-room/trigger-language-room.js +66 -0
  148. package/lib/modules/action-bar/trigger-output-language-room/trigger-main-room.d.ts +5 -0
  149. package/lib/modules/action-bar/trigger-output-language-room/trigger-main-room.js +36 -0
  150. package/lib/modules/action-bar/trigger-output-language-room/useChangeOutputRoomTool.d.ts +12 -0
  151. package/lib/modules/action-bar/trigger-output-language-room/useChangeOutputRoomTool.js +138 -0
  152. package/lib/modules/action-bar/view.js +6 -6
  153. package/lib/modules/audio-stream/index.d.ts +2 -15
  154. package/lib/modules/audio-stream/index.js +1 -3
  155. package/lib/modules/chat/chat-bar/index.css +5 -0
  156. package/lib/modules/chat/chat-bar/index.js +16 -14
  157. package/lib/modules/chat/chat-select/index.css +6 -3
  158. package/lib/modules/chat/chat.js +7 -6
  159. package/lib/modules/chat/index.css +10 -0
  160. package/lib/modules/chat/index.d.ts +2 -12
  161. package/lib/modules/chat/index.dev.js +14 -3
  162. package/lib/modules/chat/index.js +7 -20
  163. package/lib/modules/chat/message-list.js +1 -0
  164. package/lib/modules/chat/store.js +1 -1
  165. package/lib/modules/components/device-control/components/audio-menu/index.js +4 -4
  166. package/lib/modules/components/device-control/index.css +3 -0
  167. package/lib/modules/components/dialog-container/component/body.d.ts +7 -0
  168. package/lib/modules/components/dialog-container/component/body.js +46 -0
  169. package/lib/modules/components/dialog-container/index.css +78 -0
  170. package/lib/modules/components/dialog-container/index.d.ts +11 -0
  171. package/lib/modules/components/dialog-container/index.js +110 -0
  172. package/lib/modules/components/member-window/index.css +419 -0
  173. package/lib/modules/components/member-window/index.d.ts +76 -0
  174. package/lib/modules/components/member-window/index.js +888 -0
  175. package/lib/modules/components/security-menu/index.css +9 -0
  176. package/lib/modules/components/security-menu/index.js +74 -23
  177. package/lib/modules/components/tab-frame/index.css +40 -0
  178. package/lib/modules/components/tab-frame/index.d.ts +12 -0
  179. package/lib/modules/components/tab-frame/index.js +57 -0
  180. package/lib/modules/connection-gateway/components/computer/index.css +1 -0
  181. package/lib/modules/connection-gateway/components/phone/index.css +1 -1
  182. package/lib/modules/connection-gateway/index.d.ts +2 -9
  183. package/lib/modules/connection-gateway/store.d.ts +3 -11
  184. package/lib/modules/connection-gateway/store.js +1 -17
  185. package/lib/modules/connection-gateway/view.js +21 -4
  186. package/lib/modules/control-bar/components/cloud-recording-buttons.js +1 -1
  187. package/lib/modules/control-bar/index.d.ts +2 -16
  188. package/lib/modules/control-bar/index.js +10 -19
  189. package/lib/modules/control-bar/store.d.ts +3 -16
  190. package/lib/modules/control-bar/store.js +23 -5
  191. package/lib/modules/control-bar/view.js +17 -10
  192. package/lib/modules/device-pretest/settings/virtual-background-setting.js +1 -1
  193. package/lib/modules/dialog/components/Interpreter/electron.js +3 -25
  194. package/lib/modules/dialog/components/Interpreter/index.js +14 -43
  195. package/lib/modules/dialog/components/chat/electron.d.ts +1 -1
  196. package/lib/modules/dialog/components/chat/electron.js +6 -13
  197. package/lib/modules/dialog/components/chat/index.d.ts +1 -4
  198. package/lib/modules/dialog/components/chat/index.js +35 -41
  199. package/lib/modules/dialog/components/confirm/index.js +6 -7
  200. package/lib/modules/dialog/components/connection-gateway/electron.d.ts +1 -1
  201. package/lib/modules/dialog/components/connection-gateway/electron.js +9 -28
  202. package/lib/modules/dialog/components/connection-gateway/index.d.ts +0 -1
  203. package/lib/modules/dialog/components/connection-gateway/index.js +11 -56
  204. package/lib/modules/dialog/components/control-bar/index.js +6 -7
  205. package/lib/modules/dialog/components/device-setting/electron.js +4 -26
  206. package/lib/modules/dialog/components/device-setting/index.js +13 -41
  207. package/lib/modules/dialog/components/invite/index.js +16 -35
  208. package/lib/modules/dialog/components/live-streaming/index.js +18 -53
  209. package/lib/modules/dialog/components/participant/electron.js +4 -17
  210. package/lib/modules/dialog/components/participant/index.js +35 -26
  211. package/lib/modules/dialog/components/remove-admit-waiting-room/electron.js +3 -6
  212. package/lib/modules/dialog/components/remove-admit-waiting-room/index.d.ts +1 -1
  213. package/lib/modules/dialog/components/remove-admit-waiting-room/index.js +4 -14
  214. package/lib/modules/dialog/components/share-screen-selection/index.js +20 -5
  215. package/lib/modules/dialog/components/system-preference/electron.js +5 -8
  216. package/lib/modules/dialog/components/system-preference/index.js +4 -15
  217. package/lib/modules/dialog/components/toast/index.js +8 -12
  218. package/lib/modules/dialog/dialogs.js +2 -1
  219. package/lib/modules/dialog/hooks/useElectron.d.ts +6 -0
  220. package/lib/modules/dialog/hooks/useElectron.js +51 -9
  221. package/lib/modules/dialog/index.css +0 -2
  222. package/lib/modules/dialog/index.d.ts +2 -17
  223. package/lib/modules/dialog/store.d.ts +7 -39
  224. package/lib/modules/dialog/store.js +53 -152
  225. package/lib/modules/dialog/types/index.d.ts +59 -0
  226. package/lib/modules/event-confirm/view.js +4 -1
  227. package/lib/modules/invite/view.d.ts +4 -0
  228. package/lib/modules/invite/view.js +18 -22
  229. package/lib/modules/invite/voip-invite.js +3 -3
  230. package/lib/modules/layout/components/Aside.js +11 -1
  231. package/lib/modules/layout/components/Carousel.js +1 -1
  232. package/lib/modules/layout/components/Layout.js +7 -4
  233. package/lib/modules/layout/components/index.css +6 -1
  234. package/lib/modules/layout/index.js +8 -7
  235. package/lib/modules/layout/member-window/index.css +22 -9
  236. package/lib/modules/layout/member-window/index.js +16 -3
  237. package/lib/modules/layout/store.d.ts +1 -1
  238. package/lib/modules/layout/store.js +1 -7
  239. package/lib/modules/layout/video-window-datasource.js +11 -3
  240. package/lib/modules/notification/index.css +1 -0
  241. package/lib/modules/participant/attendee/index.css +1 -0
  242. package/lib/modules/participant/attendee/index.js +2 -1
  243. package/lib/modules/participant/components/drop-menu/index.css +1 -0
  244. package/lib/modules/participant/components/drop-menu/index.js +9 -9
  245. package/lib/modules/participant/index.css +5 -0
  246. package/lib/modules/participant/index.d.ts +2 -17
  247. package/lib/modules/participant/index.dev.js +38 -27
  248. package/lib/modules/participant/store.d.ts +4 -17
  249. package/lib/modules/participant/store.js +13 -13
  250. package/lib/modules/setting/audio-settings/audio-settings.js +13 -10
  251. package/lib/modules/setting/audio-settings/index.css +26 -1
  252. package/lib/modules/setting/general-settings/index.css +1 -1
  253. package/lib/modules/setting/index.css +2 -1
  254. package/lib/modules/setting/index.d.ts +2 -15
  255. package/lib/modules/setting/index.dev.js +19 -10
  256. package/lib/modules/setting/store.d.ts +5 -18
  257. package/lib/modules/setting/store.js +48 -20
  258. package/lib/modules/setting/translate-settings/index.css +3 -1
  259. package/lib/modules/setting/video-settings/index.css +5 -2
  260. package/lib/modules/share-screen/index.dev.js +20 -19
  261. package/lib/modules/share-screen/selection/index.css +2 -0
  262. package/lib/modules/share-screen/selection/index.js +83 -97
  263. package/lib/modules/share-screen/store.js +16 -36
  264. package/lib/modules/sound-effect/index.d.ts +2 -13
  265. package/lib/modules/sound-effect/index.js +1 -2
  266. package/lib/modules/state-bar/index.css +13 -2
  267. package/lib/modules/state-bar/index.d.ts +1 -5
  268. package/lib/modules/state-bar/index.dev.js +1 -1
  269. package/lib/modules/state-bar/index.js +0 -27
  270. package/lib/modules/state-bar/layout-config.js +1 -1
  271. package/lib/modules/state-bar/meeting-network-state.css +1 -1
  272. package/lib/modules/state-bar/recording.js +7 -4
  273. package/lib/modules/state-bar/view.js +1 -1
  274. package/lib/modules/video-window/index.d.ts +2 -2
  275. package/lib/modules/video-window/store.d.ts +2 -1
  276. package/lib/modules/video-window/store.js +2 -2
  277. package/lib/modules/waiting-room-layout/index.css +1 -3
  278. package/lib/modules/waiting-room-layout/index.d.ts +3 -1
  279. package/lib/modules/waiting-room-layout/index.js +10 -3
  280. package/lib/modules/whiteboard/index.d.ts +2 -13
  281. package/lib/modules/whiteboard/index.js +4 -5
  282. package/lib/providers/device-privilege-provider.d.ts +30 -0
  283. package/lib/providers/device-privilege-provider.js +386 -0
  284. package/lib/providers/device-provider.d.ts +246 -0
  285. package/lib/providers/device-provider.js +1741 -0
  286. package/lib/providers/device-stream-provider.d.ts +36 -0
  287. package/lib/providers/device-stream-provider.js +460 -0
  288. package/lib/providers/event-provider.d.ts +108 -0
  289. package/lib/providers/event-provider.js +288 -0
  290. package/lib/providers/interpreter-provider.d.ts +25 -0
  291. package/lib/providers/interpreter-provider.js +151 -0
  292. package/lib/providers/local-storage-provider.d.ts +8 -0
  293. package/lib/providers/local-storage-provider.js +31 -0
  294. package/lib/providers/monitor-provider.d.ts +15 -0
  295. package/lib/providers/monitor-provider.js +29 -0
  296. package/lib/providers/privilege-provider.d.ts +216 -0
  297. package/lib/providers/privilege-provider.js +966 -0
  298. package/lib/providers/renderer-provider.d.ts +43 -0
  299. package/lib/providers/renderer-provider.js +245 -0
  300. package/lib/providers/room-provider.d.ts +79 -0
  301. package/lib/providers/room-provider.js +439 -0
  302. package/lib/providers/session-provider.d.ts +26 -0
  303. package/lib/providers/session-provider.js +49 -0
  304. package/lib/runtime.d.ts +1 -1
  305. package/lib/scenes/base.d.ts +10 -0
  306. package/lib/scenes/base.js +75 -0
  307. package/lib/scenes/main-scene.d.ts +48 -0
  308. package/lib/scenes/main-scene.js +390 -0
  309. package/lib/scenes/waiting-scene.d.ts +31 -0
  310. package/lib/scenes/waiting-scene.js +129 -0
  311. package/lib/shared-data-source/config.d.ts +16 -0
  312. package/lib/shared-data-source/config.js +21 -0
  313. package/lib/type.d.ts +26 -1
  314. package/lib/ui-manager.d.ts +3 -0
  315. package/lib/ui-manager.js +154 -233
  316. package/lib/ui-node.d.ts +25 -0
  317. package/lib/ui-node.js +156 -0
  318. package/lib/utilities/constant.d.ts +15 -15
  319. package/lib/utilities/constant.js +15 -15
  320. package/lib/utilities/tools.d.ts +2 -0
  321. package/lib/utilities/tools.js +42 -10
  322. package/package.json +12 -11
  323. package/public/assets/fcr_leave2.svg +58 -0
  324. package/public/index.html +150 -13
@@ -60,19 +60,17 @@ var _card = require("agora-ui-foundation/lib/components/card");
60
60
  var _type = require("agora-rte-sdk/lib/core/rtc/type");
61
61
  var _button = require("agora-ui-foundation/lib/components/button");
62
62
  var _shareAudio = require("agora-ui-foundation/lib/components/room-screen-share-state-bar/share-audio");
63
- var _tabs = require("agora-ui-foundation/lib/components/tabs");
64
- var _windowsControl = require("agora-ui-foundation/lib/components/windows-control");
65
63
  var _debounce = _interopRequireDefault(require("lodash/debounce"));
66
64
  var _mobxReact = require("mobx-react");
67
65
  var _react = require("react");
68
66
  var _tools = require("../../../utilities/tools");
69
- var _platform = require("../../../utilities/platform");
70
67
  var _type2 = require("../../../type");
71
68
  var _tooltip = require("agora-ui-foundation/lib/components/tooltip");
72
69
  var _i18n = require("agora-ui-foundation/lib/i18n");
73
70
  require("./index.css");
74
71
  var _store = require("../store");
75
72
  var _icon = require("agora-ui-foundation/lib/components/icon");
73
+ var _tabFrame = _interopRequireDefault(require("../../components/tab-frame"));
76
74
  var _jsxRuntime = require("react/jsx-runtime");
77
75
  var ShareSelectionWindowType = /*#__PURE__*/function (ShareSelectionWindowType) {
78
76
  ShareSelectionWindowType["BASIC"] = "basic";
@@ -149,103 +147,91 @@ var ShareSelection = exports.ShareSelection = (0, _mobxReact.observer)(function
149
147
  var transI18n = (0, _i18n.useI18n)();
150
148
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
151
149
  className: "share-selection-window",
152
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
153
- className: "share-selection-window-control draggable",
154
- children: (0, _platform.isWindows)() && /*#__PURE__*/(0, _jsxRuntime.jsx)(_windowsControl.FcrWindowControl, {
155
- onClose: closeShareScreenSelection,
156
- enableMinimize: false,
157
- enableMaximize: false
158
- })
159
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
160
- className: "share-selection-window__header fcr-flex-center draggable",
161
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_tabs.FcrTabs, {
162
- items: [{
163
- label: transI18n('fmt_screenshare_window_tab_basic'),
164
- key: ShareSelectionWindowType.BASIC
165
- }, {
166
- label: transI18n('fmt_screenshare_window_tab_advanced'),
167
- key: ShareSelectionWindowType.ADVANCED
168
- }],
169
- activeKey: ShareSelectionWindowType.BASIC,
170
- onChange: function onChange(key) {
171
- // throw new Error('Function not implemented.');
172
- }
173
- })
174
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
175
- className: "share-selection-window__share-content frc-flex",
176
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
177
- className: "share-selection-window__share-windows share-selection-window__share-card",
178
- children: screenCaptureSources.map(function (screen) {
179
- var type = _type.AgoraRtcScreenCaptureType.SCREEN;
180
- var isWhiteboard = screen.id.split('-')[0] === 'whiteboard';
181
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_card.FcrCard, {
182
- disabled: isWhiteboard && !!(boardOwnerUser !== null && boardOwnerUser !== void 0 && boardOwnerUser.userId),
183
- title: isWhiteboard ? t('fmt_share_options_whiteboard') : screen.title,
184
- active: currentSelectionType === type && screen.id === currentSelection || screen.id === currentSelection,
185
- onCardClick: function onCardClick() {
186
- handleChooseScreen(screen.id, type);
187
- },
188
- onDoubleClickCard: function onDoubleClickCard() {
189
- if (boardOwnerUser) return;
190
- handleStartShare(screen.id, type, shareWithAudio);
191
- },
192
- content: screen.image instanceof Uint8Array ? /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
193
- src: (0, _tools.uint8ArrayToImageData)({
194
- buffer: screen.image,
195
- width: screen.imageWidth,
196
- height: screen.imageHeight
197
- }),
198
- alt: screen.title
199
- }) : [_type2.FcrUserRole.HOST, _type2.FcrUserRole.COHOST].includes(localUserRole) && isWhiteboard && (boardOwnerUser === null || boardOwnerUser === void 0 ? void 0 : boardOwnerUser.userId) !== (localUser === null || localUser === void 0 ? void 0 : localUser.userId) && boardOwnerUser ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
200
- trigger: "hover",
201
- content: transI18n('fmt_screenshare_tips_alreadyopened'),
202
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
203
- styleType: "danger",
204
- size: "XXS",
205
- shape: "rounded",
206
- onClick: handlerBoardShareStop,
207
- children: transI18n('fmt_screenshare_button_stopshare')
208
- })
209
- }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
210
- type: screen.image,
211
- size: 48,
212
- colors: {
213
- iconPrimary: '#4262FF'
214
- }
150
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_tabFrame["default"], {
151
+ activeKey: ShareSelectionWindowType.BASIC,
152
+ tabs: [{
153
+ label: transI18n('fmt_screenshare_window_tab_basic'),
154
+ key: ShareSelectionWindowType.BASIC,
155
+ content: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
156
+ className: "share-selection-window__share-content frc-flex",
157
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
158
+ className: "share-selection-window__share-windows share-selection-window__share-card",
159
+ children: screenCaptureSources.map(function (screen) {
160
+ var type = _type.AgoraRtcScreenCaptureType.SCREEN;
161
+ var isWhiteboard = screen.id.split('-')[0] === 'whiteboard';
162
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_card.FcrCard, {
163
+ disabled: isWhiteboard && !!(boardOwnerUser !== null && boardOwnerUser !== void 0 && boardOwnerUser.userId),
164
+ title: isWhiteboard ? t('fmt_share_options_whiteboard') : screen.title,
165
+ active: currentSelectionType === type && screen.id === currentSelection || screen.id === currentSelection,
166
+ onCardClick: function onCardClick() {
167
+ handleChooseScreen(screen.id, type);
168
+ },
169
+ onDoubleClickCard: function onDoubleClickCard() {
170
+ if (boardOwnerUser) return;
171
+ handleStartShare(screen.id, type, shareWithAudio);
172
+ },
173
+ content: screen.image instanceof Uint8Array ? /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
174
+ src: (0, _tools.uint8ArrayToImageData)({
175
+ buffer: screen.image,
176
+ width: screen.imageWidth,
177
+ height: screen.imageHeight
178
+ }),
179
+ alt: screen.title
180
+ }) : [_type2.FcrUserRole.HOST, _type2.FcrUserRole.COHOST].includes(localUserRole) && isWhiteboard && (boardOwnerUser === null || boardOwnerUser === void 0 ? void 0 : boardOwnerUser.userId) !== (localUser === null || localUser === void 0 ? void 0 : localUser.userId) && boardOwnerUser ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
181
+ trigger: "hover",
182
+ content: transI18n('fmt_screenshare_tips_alreadyopened'),
183
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
184
+ styleType: "danger",
185
+ size: "XXS",
186
+ shape: "rounded",
187
+ onClick: handlerBoardShareStop,
188
+ children: transI18n('fmt_screenshare_button_stopshare')
189
+ })
190
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
191
+ type: screen.image,
192
+ size: 48,
193
+ colors: {
194
+ iconPrimary: '#4262FF'
195
+ }
196
+ })
197
+ }, "screen-".concat(screen.id));
215
198
  })
216
- }, "screen-".concat(screen.id));
217
- })
218
- }), !!applicationCaptureSources.length && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
219
- className: "frc-flex",
220
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
221
- style: {
222
- marginTop: '38px'
223
- },
224
- children: transI18n('fmt_uimanager_labels_Application')
225
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
226
- className: "share-selection-window__share-application share-selection-window__share-card",
227
- children: applicationCaptureSources.map(function (application) {
228
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_card.FcrCard, {
229
- active: currentSelectionType === _type.AgoraRtcScreenCaptureType.WINDOW && application.id === currentSelection,
230
- onCardClick: function onCardClick() {
231
- handleChooseScreen(application.id, _type.AgoraRtcScreenCaptureType.WINDOW);
232
- },
233
- onDoubleClickCard: function onDoubleClickCard() {
234
- handleStartShare(application.id, _type.AgoraRtcScreenCaptureType.WINDOW, shareWithAudio);
199
+ }), !!applicationCaptureSources.length && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
200
+ className: "frc-flex",
201
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
202
+ style: {
203
+ marginTop: '38px'
235
204
  },
236
- title: application.title,
237
- content: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
238
- src: (0, _tools.uint8ArrayToImageData)({
239
- buffer: application.image,
240
- width: application.imageWidth,
241
- height: application.imageHeight
242
- }),
243
- alt: application.title
205
+ children: transI18n('fmt_uimanager_labels_Application')
206
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
207
+ className: "share-selection-window__share-application share-selection-window__share-card",
208
+ children: applicationCaptureSources.map(function (application) {
209
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_card.FcrCard, {
210
+ active: currentSelectionType === _type.AgoraRtcScreenCaptureType.WINDOW && application.id === currentSelection,
211
+ onCardClick: function onCardClick() {
212
+ handleChooseScreen(application.id, _type.AgoraRtcScreenCaptureType.WINDOW);
213
+ },
214
+ onDoubleClickCard: function onDoubleClickCard() {
215
+ handleStartShare(application.id, _type.AgoraRtcScreenCaptureType.WINDOW, shareWithAudio);
216
+ },
217
+ title: application.title,
218
+ content: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
219
+ src: (0, _tools.uint8ArrayToImageData)({
220
+ buffer: application.image,
221
+ width: application.imageWidth,
222
+ height: application.imageHeight
223
+ }),
224
+ alt: application.title
225
+ })
226
+ }, "application-".concat(application.id));
244
227
  })
245
- }, "application-".concat(application.id));
246
- })
247
- })]
248
- })]
228
+ })]
229
+ })]
230
+ })
231
+ }, {
232
+ label: transI18n('fmt_screenshare_window_tab_advanced'),
233
+ key: ShareSelectionWindowType.ADVANCED
234
+ }]
249
235
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
250
236
  className: "share-selection-window__footer",
251
237
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
@@ -81,7 +81,6 @@ var _shareAudio = require("agora-ui-foundation/lib/components/room-screen-share-
81
81
  var _mobx = require("mobx");
82
82
  var _constant = require("../../utilities/constant");
83
83
  var _rendererEvent = require("../../utilities/renderer-event");
84
- var _platform = require("../../utilities/platform");
85
84
  var _i18n = require("agora-ui-foundation/lib/i18n");
86
85
  var _decorator = require("agora-foundation/lib/decorator");
87
86
  var _tools = require("../../utilities/tools");
@@ -207,7 +206,6 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
207
206
  return _this._securityStore.hasStartScreenSharePermission();
208
207
  }, function (screenSharePremission) {
209
208
  if (!screenSharePremission) {
210
- if (_this.screenSharingState === _fcrCore.FcrMediaSourceState.OPEN) _this.handleStopShare();
211
209
  if (_this._isHost) return;
212
210
  _this._uiEventStore.showToast({
213
211
  type: 'error',
@@ -502,37 +500,20 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
502
500
  value: function () {
503
501
  var _openShareScreenSelection = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2() {
504
502
  var _this2 = this;
505
- var NORMAL_HEIGHT, WINDOWS_HEIGHT, NORMAL_WIDTH, shareSelectionHeight, _window$runtime$brows, mainWidowX, mainWindowY, mainWidth, mainHeight, offsetForToast, windowList, displayList;
503
+ var windowList, displayList;
506
504
  return _regenerator["default"].wrap(function _callee2$(_context2) {
507
505
  while (1) switch (_context2.prev = _context2.next) {
508
506
  case 0:
509
- NORMAL_HEIGHT = 550;
510
- WINDOWS_HEIGHT = 24;
511
- NORMAL_WIDTH = 790;
512
- shareSelectionHeight = !(0, _platform.isWindows)() ? NORMAL_HEIGHT : NORMAL_HEIGHT + WINDOWS_HEIGHT;
513
- _window$runtime$brows = window.runtime.browserWindow.getBounds(), mainWidowX = _window$runtime$brows.x, mainWindowY = _window$runtime$brows.y, mainWidth = _window$runtime$brows.width, mainHeight = _window$runtime$brows.height;
514
- offsetForToast = 50;
515
- this._shareSelectionDialogId = this._uiEventStore.openDialog(_constant.DialogKey.SHARE_SCREEN, 'screen-selection', {
516
- frame: false,
517
- titleBarStyle: 'hidden',
518
- width: NORMAL_WIDTH,
519
- fullscreen: false,
520
- maximizable: false,
521
- height: shareSelectionHeight,
522
- x: mainWidowX + Math.floor(mainWidth / 2) - Math.floor(NORMAL_WIDTH / 2),
523
- y: mainWindowY + Math.floor(mainHeight / 2) - Math.floor(shareSelectionHeight / 2) + offsetForToast,
524
- controlBarDialogId: this._controlBarDialogId,
525
- transparent: true
526
- });
527
- _context2.next = 9;
507
+ this._shareSelectionDialogId = this._uiEventStore.openDialog(_constant.DialogKey.SHARE_SCREEN, 'screen-selection');
508
+ _context2.next = 3;
528
509
  return this._mediaControl.getWindowList();
529
- case 9:
510
+ case 3:
530
511
  windowList = _context2.sent.filter(function (item) {
531
512
  return !['AgoraHighLighter', 'Toast', 'Confirm'].includes(item.title) || item.isCurrent;
532
513
  });
533
- _context2.next = 12;
514
+ _context2.next = 6;
534
515
  return this._mediaControl.getDisplayList();
535
- case 12:
516
+ case 6:
536
517
  displayList = _context2.sent;
537
518
  (0, _mobx.runInAction)(function () {
538
519
  _this2.applicationCaptureSources = windowList.filter(function (item) {
@@ -544,7 +525,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
544
525
  image: _type5.FcrIconType.FCR_WHITEBOARD2
545
526
  }].concat((0, _toConsumableArray2["default"])(displayList));
546
527
  });
547
- case 14:
528
+ case 8:
548
529
  case "end":
549
530
  return _context2.stop();
550
531
  }
@@ -674,7 +655,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
674
655
  _this4._uiEventStore.closeConfirm(dialogId);
675
656
  },
676
657
  onOk: function onOk() {
677
- window.runtime.openSystemPreferences('sharing');
658
+ window.runtime.checkMediaPermission('sharing');
678
659
  _this4._uiEventStore.closeConfirm(dialogId);
679
660
  },
680
661
  closable: false
@@ -1114,29 +1095,28 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
1114
1095
  while (1) switch (_context11.prev = _context11.next) {
1115
1096
  case 0:
1116
1097
  _context11.t0 = event;
1117
- _context11.next = _context11.t0 === _constant.UIAction.START_SHARE_SCREEN ? 3 : _context11.t0 === _constant.UIAction.STOP_SCREEN_CAPTURE ? 5 : _context11.t0 === _constant.UIAction.ENGINE_RECONNECTED ? 7 : _context11.t0 === _constant.UIAction.STOP_SHARE_SCREEN ? 9 : _context11.t0 === _constant.UIAction.SET_SHARE_WITH_AUDIO ? 12 : 14;
1098
+ _context11.next = _context11.t0 === _constant.UIAction.START_SHARE_SCREEN ? 3 : _context11.t0 === _constant.UIAction.STOP_SCREEN_CAPTURE ? 5 : _context11.t0 === _constant.UIAction.ENGINE_RECONNECTED ? 7 : _context11.t0 === _constant.UIAction.STOP_SHARE_SCREEN ? 9 : _context11.t0 === _constant.UIAction.SET_SHARE_WITH_AUDIO ? 11 : 13;
1118
1099
  break;
1119
1100
  case 3:
1120
1101
  this.prepareShareScreen();
1121
- return _context11.abrupt("break", 14);
1102
+ return _context11.abrupt("break", 13);
1122
1103
  case 5:
1123
1104
  this._closeCapture();
1124
1105
  // this.handleStopShare();
1125
- return _context11.abrupt("break", 14);
1106
+ return _context11.abrupt("break", 13);
1126
1107
  case 7:
1127
1108
  if (this._removeScreenStreamFailed) {
1128
1109
  this._removeScreenStream();
1129
1110
  this._removeScreenStreamFailed = false;
1130
1111
  }
1131
- return _context11.abrupt("break", 14);
1112
+ return _context11.abrupt("break", 13);
1132
1113
  case 9:
1133
1114
  this.handleStopShare();
1134
- this.closeDialog(_constant.DialogKey.PARTICIPANT);
1135
- return _context11.abrupt("break", 14);
1136
- case 12:
1115
+ return _context11.abrupt("break", 13);
1116
+ case 11:
1137
1117
  this.setShareWithAudio(params.withAudio);
1138
- return _context11.abrupt("break", 14);
1139
- case 14:
1118
+ return _context11.abrupt("break", 13);
1119
+ case 13:
1140
1120
  case "end":
1141
1121
  return _context11.stop();
1142
1122
  }
@@ -1,8 +1,5 @@
1
- import { FcrDeviceStore } from '../../common/device-store';
2
1
  import { UIModule } from '../../base';
3
- import { FcrChatRoomControl } from 'fcr-core/lib/room-control/chatroom-control/type';
4
- import { FcrBaseRoomControl, FcrStreamControl, FcrUserControl, FcrCoreEngine } from 'fcr-core';
5
- import { FcrWhiteboardControl } from 'fcr-core/lib/room-control/whiteboard-control/types';
2
+ import { StoreConfig } from '../../type';
6
3
  declare enum SoundEffectType {
7
4
  INCOMMING_MESSAGE = "incomming_message",
8
5
  INCOMMING_PRIVATE_MESSAGE = "incomming_private_message",
@@ -29,15 +26,7 @@ export declare class SoundEffectUIModule extends UIModule {
29
26
  private _roomObserver;
30
27
  private _streamsObserver;
31
28
  private _userObserver;
32
- constructor({ chatRoomControl, streamControl, roomControl, whiteboardControl, userControl, deviceStore, engine, }: {
33
- chatRoomControl: FcrChatRoomControl;
34
- streamControl: FcrStreamControl;
35
- roomControl: FcrBaseRoomControl;
36
- whiteboardControl: FcrWhiteboardControl;
37
- userControl: FcrUserControl;
38
- deviceStore: FcrDeviceStore;
39
- engine: FcrCoreEngine;
40
- });
29
+ constructor({ chatRoomControl, streamControl, roomControl, userControl, deviceStore, engine, }: StoreConfig);
41
30
  release(): void;
42
31
  get soundEffectList(): Map<string, Record<string, string>>;
43
32
  private _clearSoundEffectPlayer;
@@ -96,7 +96,6 @@ var SoundEffectUIModule = exports.SoundEffectUIModule = /*#__PURE__*/function (_
96
96
  var chatRoomControl = _ref.chatRoomControl,
97
97
  streamControl = _ref.streamControl,
98
98
  roomControl = _ref.roomControl,
99
- whiteboardControl = _ref.whiteboardControl,
100
99
  userControl = _ref.userControl,
101
100
  deviceStore = _ref.deviceStore,
102
101
  engine = _ref.engine;
@@ -124,7 +123,7 @@ var SoundEffectUIModule = exports.SoundEffectUIModule = /*#__PURE__*/function (_
124
123
  _this._chatRoomControl = chatRoomControl;
125
124
  _this._streamControl = streamControl;
126
125
  _this._roomControl = roomControl;
127
- _this._whiteboardControl = whiteboardControl;
126
+ _this._whiteboardControl = roomControl.getBoardControl();
128
127
  _this._userControl = userControl;
129
128
  _this._deviceStore = deviceStore;
130
129
  _this._engine = engine;
@@ -219,10 +219,18 @@
219
219
  padding: 3px 6px;
220
220
  }
221
221
 
222
+ .fcr-state-bar__record-btn:focus {
223
+ outline: 0px;
224
+ }
225
+
222
226
  .fcr-state-bar__record-btn:hover {
223
227
  background-color: var(--fcr_web_ui_scene_hover);
224
228
  }
225
229
 
230
+ .fcr-state-bar__record-btn:hover svg path {
231
+ fill: var(--fcr_web_ui_scene_mainicon2);
232
+ }
233
+
226
234
  @media (max-width: 575px) {
227
235
  .fcr-state-bar__record-tag {
228
236
  padding-right: 4px;
@@ -488,8 +496,11 @@
488
496
 
489
497
  .fcr-state-bar__meeting-info-drop .fcr-drop-menu {
490
498
  width: 100%;
491
- border: 1px solid var(--fcr_ui_scene_line1);
492
- box-shadow: var(--fcr_web_light_dropup_m);
499
+ }
500
+ .fcr-drop-menu-option {
501
+ height: auto;
502
+ min-height: 30px;
503
+ padding: 4px 8px;
493
504
  }
494
505
  .fcr-state-bar__meeting-info-drop .fcr-drop-menu-option-text {
495
506
  overflow: hidden;
@@ -1,8 +1,7 @@
1
1
  import { UIModule } from '../../base';
2
2
  import './index.css';
3
- import { FcrCloudRecordingParams, FcrUIEventStore } from '../../common/event-store';
3
+ import { FcrUIEventStore } from '../../common/event-store';
4
4
  import { FcrSecurityStore } from '../../common/security-store';
5
- import { UIAction } from '../../utilities/constant';
6
5
  import { FcrUISceneConfig } from '../../type';
7
6
  import { FcrMainRoomControl, FcrWaitingRoomControl } from 'fcr-core/lib/room-control/type';
8
7
  export declare class StateBarUIModule extends UIModule {
@@ -15,8 +14,5 @@ export declare class StateBarUIModule extends UIModule {
15
14
  parameters?: Record<string, unknown>;
16
15
  });
17
16
  getComponent(): import("react/jsx-runtime").JSX.Element;
18
- onUiEvent(event: UIAction, payload: {
19
- action: FcrCloudRecordingParams['action'];
20
- }): void;
21
17
  onUnload(): void;
22
18
  }
@@ -56,7 +56,7 @@ window.__DEV_ENGINE_IS_READY__.then(/*#__PURE__*/(0, _asyncToGenerator2["default
56
56
  });
57
57
  }, 1000);
58
58
  uiEventStore = new _eventStore.FcrUIEventStore();
59
- securityStore = new _securityStore.FcrSecurityStore(roomControl.getPrivilegeControl(), roomControl.getUserControl(), roomControl.getStreamControl(), roomControl.getRoomSessionControl(), uiEventStore);
59
+ securityStore = new _securityStore.FcrSecurityStore(roomControl.getPrivilegeControl(), roomControl.getUserControl(), roomControl.getStreamControl(), uiEventStore);
60
60
  uiModule = new _.StateBarUIModule({
61
61
  roomControl: roomControl,
62
62
  uiEventStore: uiEventStore,
@@ -16,7 +16,6 @@ Object.defineProperty(exports, "__esModule", {
16
16
  value: true
17
17
  });
18
18
  exports.StateBarUIModule = void 0;
19
- require("core-js/modules/es.function.bind.js");
20
19
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
21
20
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
22
21
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
@@ -26,7 +25,6 @@ var _base = require("../../base");
26
25
  var _view = require("./view");
27
26
  var _store = _interopRequireWildcard(require("./store"));
28
27
  require("./index.css");
29
- var _constant = require("../../utilities/constant");
30
28
  var _jsxRuntime = require("react/jsx-runtime");
31
29
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
32
30
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
@@ -38,9 +36,6 @@ var StateBarUIModule = exports.StateBarUIModule = /*#__PURE__*/function (_UIModu
38
36
  (0, _classCallCheck2["default"])(this, StateBarUIModule);
39
37
  _this = _callSuper(this, StateBarUIModule);
40
38
  _this._store = new _store["default"](args);
41
- args.uiEventStore.addObserver({
42
- onEvent: _this.onUiEvent.bind(_this)
43
- });
44
39
  return _this;
45
40
  }
46
41
  (0, _inherits2["default"])(StateBarUIModule, _UIModule);
@@ -52,28 +47,6 @@ var StateBarUIModule = exports.StateBarUIModule = /*#__PURE__*/function (_UIModu
52
47
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_view.View, {})
53
48
  });
54
49
  }
55
- }, {
56
- key: "onUiEvent",
57
- value: function onUiEvent(event, payload) {
58
- switch (event) {
59
- case _constant.UIAction.CLOUD_RECORDING:
60
- switch (payload.action) {
61
- case 'start':
62
- this._store.startCloudRecording();
63
- break;
64
- case 'pause':
65
- this._store.pauseCloudRecording();
66
- break;
67
- case 'resume':
68
- this._store.resumeCloudRecording();
69
- break;
70
- case 'stop':
71
- this._store.stopCloudRecording();
72
- break;
73
- }
74
- break;
75
- }
76
- }
77
50
  }, {
78
51
  key: "onUnload",
79
52
  value: function onUnload() {
@@ -129,7 +129,7 @@ var LayoutConfig = exports.LayoutConfig = (0, _mobxReact.observer)(function (pro
129
129
  _setIsOpen(visible);
130
130
  toggleLayoutBarLock(visible);
131
131
  },
132
- placement: "bottom",
132
+ placement: "bottomRight",
133
133
  overlayClassName: ns.e('popover'),
134
134
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
135
135
  className: ns.b(),
@@ -14,7 +14,7 @@
14
14
  align-items: start;
15
15
  border-radius: var(--fcr_cornerradius_l, 8px);
16
16
  padding: 18px 15px 20px 15px;
17
- background-color: var(--fcr_web_ui_scene_fill4_popup, #43434e);
17
+ background-color: var(--fcr_web_ui_scene_hover);
18
18
  }
19
19
 
20
20
  .meeting-network-state__connection > label {
@@ -15,11 +15,14 @@ var _type2 = require("agora-ui-foundation/lib/components/icon/type");
15
15
  var _tooltip = require("agora-ui-foundation/lib/components/tooltip");
16
16
  var _i18n = require("agora-ui-foundation/lib/i18n");
17
17
  var _useNamespace = require("../../utilities/useNamespace");
18
- var _stopRecordDialog = require("../action-bar/record/stop-record-dialog");
18
+ var _stopRecordDialog = require("../action-bar/components/record/stop-record-dialog");
19
19
  var _store = require("./store");
20
20
  var _jsxRuntime = require("react/jsx-runtime");
21
21
  var colors = {
22
- iconPrimary: 'var(--fcr_ui_scene_icontext2)'
22
+ iconPrimary: 'var(--fcr_web_ui_scene_mainicon1)'
23
+ };
24
+ var redColors = {
25
+ iconPrimary: 'var(--fcr_ui_scene_ramp_red6)'
23
26
  };
24
27
  var Recording = exports.Recording = (0, _mobxReact.observer)(function () {
25
28
  var t = (0, _i18n.useI18n)();
@@ -42,7 +45,7 @@ var Recording = exports.Recording = (0, _mobxReact.observer)(function () {
42
45
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
43
46
  type: _type2.FcrIconType.FCR_CLOUDRECORD,
44
47
  colors: {
45
- iconPrimary: galleryWidth < _store.GALLERY_MIN_SIZE ? '' : 'var(--fcr_ui_scene_icontext2)'
48
+ iconPrimary: galleryWidth < _store.GALLERY_MIN_SIZE ? '' : redColors.iconPrimary
46
49
  }
47
50
  }), galleryWidth >= _store.GALLERY_MIN_SIZE && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
48
51
  className: ns.e('record-text'),
@@ -52,7 +55,7 @@ var Recording = exports.Recording = (0, _mobxReact.observer)(function () {
52
55
  className: ns.e('record-tag'),
53
56
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
54
57
  type: _type2.FcrIconType.FCR_CLOUDRECORD,
55
- colors: colors
58
+ colors: redColors
56
59
  }), galleryWidth >= _store.GALLERY_MIN_SIZE && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
57
60
  className: ns.e('record-text'),
58
61
  children: "REC"
@@ -174,7 +174,7 @@ var View = exports.View = (0, _mobxReact.observer)(function () {
174
174
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_layoutConfig.LayoutConfig, {})
175
175
  })
176
176
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(MyFcrToolTip, {
177
- placement: "left",
177
+ placement: "bottom",
178
178
  content: isFullScreen ? t('fmt_statusbar_label_exitfullscreen') : t('fmt_statusbar_label_fullscreen'),
179
179
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
180
180
  className: ns.e('full-screen'),
@@ -1,9 +1,9 @@
1
1
  import { UIModule } from '../../base';
2
- import { VideoWindowStoreParams } from './store';
3
2
  import { UIAction } from '../../utilities/constant';
3
+ import { StoreConfig } from '../../type';
4
4
  export declare class VideoWindowUIModule extends UIModule {
5
5
  private _store;
6
- constructor(args: VideoWindowStoreParams);
6
+ constructor(args: StoreConfig);
7
7
  getComponent(): import("react/jsx-runtime").JSX.Element;
8
8
  onUnload(): void;
9
9
  onUiEvent(event: UIAction, payload: any): void;
@@ -11,6 +11,7 @@ import { ConnectionTabType } from './type';
11
11
  import { FcrDeviceStreamStore } from '../../common/device-stream-store';
12
12
  import { FcrUserUpdatedEvent } from 'fcr-core/lib/room-control/user-control/type';
13
13
  import { FcrInterpreterControl, FcrInterpreterUserInfo } from 'fcr-core/lib/room-control/interpreter-control/types';
14
+ import { StoreConfig } from '../../type';
14
15
  export interface VideoWindowStoreParams {
15
16
  uiEventStore: FcrUIEventStore;
16
17
  userControl: FcrUserControl;
@@ -53,7 +54,7 @@ export default class VideoWindowStore {
53
54
  accessor interpreterUsers: Array<FcrInterpreterUserInfo>;
54
55
  accessor interpreterState: boolean;
55
56
  setBounds(width: number, height: number): void;
56
- constructor(params: VideoWindowStoreParams);
57
+ constructor(params: StoreConfig);
57
58
  setVideoOrientation(): void;
58
59
  release(): void;
59
60
  private _onAudioVolumeUpdated;
@@ -144,7 +144,7 @@ var VideoWindowStore = exports["default"] = /*#__PURE__*/function () {
144
144
  deviceStore = params.deviceStore,
145
145
  mediaControl = params.mediaControl,
146
146
  deviceStreamStore = params.deviceStreamStore,
147
- interpreterControl = params.interpreterControl;
147
+ roomControl = params.roomControl;
148
148
  this._uiEventStore = uiEventStore;
149
149
  this._deviceStore = deviceStore;
150
150
  this._deviceStreamStore = deviceStreamStore;
@@ -175,7 +175,7 @@ var VideoWindowStore = exports["default"] = /*#__PURE__*/function () {
175
175
  _this.userVolumeMap.set('0', volume);
176
176
  });
177
177
  }));
178
- this._interpreterControl = interpreterControl;
178
+ this._interpreterControl = roomControl.getInterpreterControl();
179
179
  this.interpreterUsers = this._interpreterControl.getInterpreterUserList() || [];
180
180
  this.interpreterState = this.getInterpreterState();
181
181
  this._interpreterControl.addObserver({
@@ -5,7 +5,6 @@
5
5
  align-items: center;
6
6
  background: linear-gradient(112deg, #faedff 1.3%, #e6f8fc 98.11%);
7
7
  height: calc(100% - 34px);
8
- padding: 0 312px;
9
8
  }
10
9
 
11
10
  .waiting-room-module {
@@ -51,10 +50,9 @@
51
50
  border-radius: 10px;
52
51
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
53
52
  align-items: center;
54
- width: 815px;
53
+ width: 70%;
55
54
  background-color: white;
56
55
  min-width: 702px;
57
- width: 100%;
58
56
  }
59
57
 
60
58
  .waiting-room-video-content {
@@ -3,6 +3,8 @@ import { LayoutStoreParams, FcrLayoutSlots } from './store';
3
3
  export declare class WaitingRoomLayout extends UIModule {
4
4
  private _store;
5
5
  constructor(args: LayoutStoreParams);
6
- getComponent(slots?: Partial<FcrLayoutSlots>): import("react/jsx-runtime").JSX.Element;
6
+ getComponent(slots?: Partial<FcrLayoutSlots & {
7
+ globalToast: React.ReactNode;
8
+ }>): import("react/jsx-runtime").JSX.Element;
7
9
  onUnload(): void;
8
10
  }