fcr-ui-scene 3.2.0 → 3.3.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 (356) hide show
  1. package/dist/electron/app.js +148 -0
  2. package/dist/electron/bootstrap-dev.js +51 -0
  3. package/dist/electron/bootstrap-sdk.js +56 -0
  4. package/dist/electron/default-options.js +25 -0
  5. package/dist/electron/env.js +13 -0
  6. package/dist/electron/index.js +20 -0
  7. package/dist/electron/injections.js +702 -0
  8. package/dist/electron/logger.js +66 -0
  9. package/dist/electron/main.js +67 -0
  10. package/dist/electron/plugins/meeting-state.js +39 -0
  11. package/dist/electron/plugins/screenshot.js +49 -0
  12. package/dist/electron/preload.js +36 -0
  13. package/dist/electron/tools.js +66 -0
  14. package/dist/electron/window.js +124 -0
  15. package/installer/icons/favicon.ico +0 -0
  16. package/installer/icons/favicon.png +0 -0
  17. package/installer/mac/entitlements.mac.plist +16 -0
  18. package/lib/common/device-store.d.ts +1 -1
  19. package/lib/common/device-store.js +11 -3
  20. package/lib/common/event-store.d.ts +17 -1
  21. package/lib/common/event-store.js +38 -5
  22. package/lib/common/room-store.d.ts +55 -0
  23. package/lib/common/room-store.js +395 -0
  24. package/lib/common/security-store.d.ts +14 -4
  25. package/lib/common/security-store.js +149 -30
  26. package/lib/creator.js +2 -0
  27. package/lib/electron/app.js +8 -0
  28. package/lib/electron/bootstrap-dev.d.ts +1 -0
  29. package/lib/electron/bootstrap-dev.js +51 -0
  30. package/lib/electron/bootstrap-sdk.d.ts +1 -0
  31. package/lib/electron/bootstrap-sdk.js +57 -0
  32. package/lib/electron/bootstrap.d.ts +1 -0
  33. package/lib/electron/bootstrap.js +56 -0
  34. package/lib/electron/default-options.js +1 -1
  35. package/lib/electron/dev.d.ts +1 -0
  36. package/lib/electron/dev.js +51 -0
  37. package/lib/electron/injections.d.ts +2 -1
  38. package/lib/electron/injections.js +6 -6
  39. package/lib/electron/main.js +4 -16
  40. package/lib/electron/plugins/meeting-state.d.ts +2 -0
  41. package/lib/electron/plugins/meeting-state.js +39 -0
  42. package/lib/electron/preload.js +2 -1
  43. package/lib/fragments/control-bar/control-bar-store.d.ts +34 -1
  44. package/lib/fragments/control-bar/control-bar-store.js +371 -79
  45. package/lib/fragments/control-bar/device/index.js +5 -3
  46. package/lib/fragments/control-bar/index.css +15 -10
  47. package/lib/fragments/control-bar/index.js +18 -0
  48. package/lib/fragments/control-bar/meeting-details/meeting-detail.css +109 -0
  49. package/lib/fragments/control-bar/meeting-details/meeting-details-portal.d.ts +3 -0
  50. package/lib/fragments/control-bar/meeting-details/meeting-details-portal.js +60 -0
  51. package/lib/fragments/control-bar/meeting-details/meeting-details.d.ts +2 -0
  52. package/lib/fragments/control-bar/meeting-details/meeting-details.js +179 -0
  53. package/lib/fragments/control-bar/more-actions/index.css +53 -0
  54. package/lib/fragments/control-bar/more-actions/index.js +72 -37
  55. package/lib/fragments/control-bar/security-content/index.css +10 -0
  56. package/lib/fragments/control-bar/security-content/index.js +40 -18
  57. package/lib/fragments/control-bar/view.js +8 -2
  58. package/lib/login-confirm-dialog.d.ts +12 -0
  59. package/lib/login-confirm-dialog.js +80 -0
  60. package/lib/modules/Interpreter/add-button/index.css +4 -0
  61. package/lib/modules/Interpreter/add-button/index.d.ts +11 -0
  62. package/lib/modules/Interpreter/add-button/index.js +41 -0
  63. package/lib/modules/Interpreter/config.d.ts +16 -0
  64. package/lib/modules/Interpreter/config.js +17 -0
  65. package/lib/modules/Interpreter/constant.d.ts +44 -0
  66. package/lib/modules/Interpreter/constant.js +60 -0
  67. package/lib/modules/Interpreter/context.d.ts +2 -0
  68. package/lib/modules/Interpreter/context.js +9 -0
  69. package/lib/modules/Interpreter/dialog-content/index.css +33 -0
  70. package/lib/modules/Interpreter/dialog-content/index.d.ts +8 -0
  71. package/lib/modules/Interpreter/dialog-content/index.js +34 -0
  72. package/lib/modules/Interpreter/footer/components/interpreter-btn/index.d.ts +5 -0
  73. package/lib/modules/Interpreter/footer/components/interpreter-btn/index.js +56 -0
  74. package/lib/modules/Interpreter/footer/components/set-btn/index.d.ts +5 -0
  75. package/lib/modules/Interpreter/footer/components/set-btn/index.js +46 -0
  76. package/lib/modules/Interpreter/footer/components/tooltip-wrapper/index.d.ts +6 -0
  77. package/lib/modules/Interpreter/footer/components/tooltip-wrapper/index.js +28 -0
  78. package/lib/modules/Interpreter/footer/index.css +10 -0
  79. package/lib/modules/Interpreter/footer/index.d.ts +3 -0
  80. package/lib/modules/Interpreter/footer/index.js +35 -0
  81. package/lib/modules/Interpreter/index.css +8 -0
  82. package/lib/modules/Interpreter/index.d.ts +21 -0
  83. package/lib/modules/Interpreter/index.js +110 -0
  84. package/lib/modules/Interpreter/interpreter-list/index.css +21 -0
  85. package/lib/modules/Interpreter/interpreter-list/index.d.ts +3 -0
  86. package/lib/modules/Interpreter/interpreter-list/index.js +65 -0
  87. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.css +31 -0
  88. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.d.ts +11 -0
  89. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.js +141 -0
  90. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ar.png +0 -0
  91. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_cn.png +0 -0
  92. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_de.png +0 -0
  93. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_en.png +0 -0
  94. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_es.png +0 -0
  95. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_fr.png +0 -0
  96. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_hi.png +0 -0
  97. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_id.png +0 -0
  98. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_it.png +0 -0
  99. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_jp.png +0 -0
  100. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ko.png +0 -0
  101. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ms.png +0 -0
  102. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_pt.png +0 -0
  103. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ru.png +0 -0
  104. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_th.png +0 -0
  105. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_tr.png +0 -0
  106. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_vi.png +0 -0
  107. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/index.d.ts +11 -0
  108. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/index.js +119 -0
  109. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.css +41 -0
  110. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.d.ts +12 -0
  111. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.js +118 -0
  112. package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.css +34 -0
  113. package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.d.ts +8 -0
  114. package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.js +65 -0
  115. package/lib/modules/Interpreter/loading-wrapper/index.css +53 -0
  116. package/lib/modules/Interpreter/loading-wrapper/index.d.ts +6 -0
  117. package/lib/modules/Interpreter/loading-wrapper/index.js +28 -0
  118. package/lib/modules/Interpreter/store.d.ts +82 -0
  119. package/lib/modules/Interpreter/store.js +1382 -0
  120. package/lib/modules/Interpreter/view.d.ts +3 -0
  121. package/lib/modules/Interpreter/view.js +32 -0
  122. package/lib/modules/action-bar/Interpreter/index.d.ts +6 -0
  123. package/lib/modules/action-bar/Interpreter/index.js +44 -0
  124. package/lib/modules/action-bar/action-bar-collapes-items.js +5 -5
  125. package/lib/modules/action-bar/apps/appitems.d.ts +2 -0
  126. package/lib/modules/action-bar/apps/appitems.js +40 -0
  127. package/lib/modules/action-bar/apps/index.css +6 -0
  128. package/lib/modules/action-bar/apps/index.d.ts +4 -0
  129. package/lib/modules/action-bar/apps/index.js +58 -0
  130. package/lib/modules/action-bar/chat/index.js +5 -5
  131. package/lib/modules/action-bar/device/index.css +7 -2
  132. package/lib/modules/action-bar/device/index.js +4 -4
  133. package/lib/modules/action-bar/index.css +59 -12
  134. package/lib/modules/action-bar/index.d.ts +3 -2
  135. package/lib/modules/action-bar/index.dev.js +1 -1
  136. package/lib/modules/action-bar/index.js +21 -0
  137. package/lib/modules/action-bar/leave/assign-host.d.ts +3 -0
  138. package/lib/modules/action-bar/leave/assign-host.js +2 -4
  139. package/lib/modules/action-bar/leave/index.js +29 -6
  140. package/lib/modules/action-bar/leave/leave-meeting.d.ts +11 -0
  141. package/lib/modules/action-bar/leave/leave-meeting.js +25 -16
  142. package/lib/modules/action-bar/more/poppover-content.js +4 -4
  143. package/lib/modules/action-bar/participants/index.css +12 -0
  144. package/lib/modules/action-bar/participants/index.js +21 -14
  145. package/lib/modules/action-bar/screen-share/index.js +5 -1
  146. package/lib/modules/action-bar/screen-share/submenu.js +16 -22
  147. package/lib/modules/action-bar/security/drop-menu.js +90 -13
  148. package/lib/modules/action-bar/store.d.ts +38 -6
  149. package/lib/modules/action-bar/store.js +487 -95
  150. package/lib/modules/action-bar/switch-input-language-room/fcr_translateswitch.png +0 -0
  151. package/lib/modules/action-bar/switch-input-language-room/index.css +86 -0
  152. package/lib/modules/action-bar/switch-input-language-room/index.d.ts +17 -0
  153. package/lib/modules/action-bar/switch-input-language-room/index.js +145 -0
  154. package/lib/modules/action-bar/switch-output-language-room/drop-menu.d.ts +1 -0
  155. package/lib/modules/action-bar/switch-output-language-room/drop-menu.js +197 -0
  156. package/lib/modules/action-bar/switch-output-language-room/guide-tooltip/index.css +18 -0
  157. package/lib/modules/action-bar/switch-output-language-room/guide-tooltip/index.d.ts +8 -0
  158. package/lib/modules/action-bar/switch-output-language-room/guide-tooltip/index.js +59 -0
  159. package/lib/modules/action-bar/switch-output-language-room/index.d.ts +12 -0
  160. package/lib/modules/action-bar/switch-output-language-room/index.js +238 -0
  161. package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/interpreter/index.css +54 -0
  162. package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/interpreter/index.d.ts +8 -0
  163. package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/interpreter/index.js +94 -0
  164. package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/virtual-image/index.css +8 -0
  165. package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/virtual-image/index.d.ts +4 -0
  166. package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/virtual-image/index.js +31 -0
  167. package/lib/modules/action-bar/switch-output-language-room/notification-bar/dome.png +0 -0
  168. package/lib/modules/action-bar/switch-output-language-room/notification-bar/fcr_translateswitch.png +0 -0
  169. package/lib/modules/action-bar/switch-output-language-room/notification-bar/index.css +71 -0
  170. package/lib/modules/action-bar/switch-output-language-room/notification-bar/index.d.ts +2 -0
  171. package/lib/modules/action-bar/switch-output-language-room/notification-bar/index.js +82 -0
  172. package/lib/modules/action-bar/view.js +65 -42
  173. package/lib/modules/chat/chat-bar/index.js +39 -27
  174. package/lib/modules/chat/chat-select/index.css +14 -4
  175. package/lib/modules/chat/chat.d.ts +1 -2
  176. package/lib/modules/chat/chat.js +184 -105
  177. package/lib/modules/chat/index.css +49 -0
  178. package/lib/modules/chat/index.d.ts +2 -2
  179. package/lib/modules/chat/index.dev.js +1 -1
  180. package/lib/modules/chat/index.js +13 -8
  181. package/lib/modules/chat/message-list.js +59 -48
  182. package/lib/modules/chat/store.d.ts +48 -2
  183. package/lib/modules/chat/store.js +258 -45
  184. package/lib/modules/connection-gateway/index.d.ts +2 -1
  185. package/lib/modules/connection-gateway/store.d.ts +6 -3
  186. package/lib/modules/connection-gateway/store.js +5 -1
  187. package/lib/modules/device-pretest/audio-preview/speaker-control.js +1 -1
  188. package/lib/modules/device-pretest/index.css +0 -4
  189. package/lib/modules/device-pretest/settings/beauty.js +17 -6
  190. package/lib/modules/device-pretest/store.js +7 -11
  191. package/lib/modules/dialog/components/Interpreter/electron.d.ts +2 -0
  192. package/lib/modules/dialog/components/Interpreter/electron.js +72 -0
  193. package/lib/modules/dialog/components/Interpreter/index.css +30 -0
  194. package/lib/modules/dialog/components/Interpreter/index.d.ts +4 -0
  195. package/lib/modules/dialog/components/Interpreter/index.js +61 -0
  196. package/lib/modules/dialog/components/Interpreter/user-queue/index.css +36 -0
  197. package/lib/modules/dialog/components/Interpreter/user-queue/index.d.ts +3 -0
  198. package/lib/modules/dialog/components/Interpreter/user-queue/index.js +47 -0
  199. package/lib/modules/dialog/components/chat/electron.js +2 -1
  200. package/lib/modules/dialog/components/confirm/electron.js +5 -3
  201. package/lib/modules/dialog/components/connection-gateway/electron.js +3 -1
  202. package/lib/modules/dialog/components/connection-gateway/index.css +0 -2
  203. package/lib/modules/dialog/components/device-setting/electron.js +3 -1
  204. package/lib/modules/dialog/components/device-setting/index.css +0 -1
  205. package/lib/modules/dialog/components/operation-waiting-room/electron.d.ts +5 -0
  206. package/lib/modules/dialog/components/operation-waiting-room/electron.js +89 -0
  207. package/lib/modules/dialog/components/operation-waiting-room/index.css +44 -0
  208. package/lib/modules/dialog/components/operation-waiting-room/index.d.ts +5 -0
  209. package/lib/modules/dialog/components/operation-waiting-room/index.js +156 -0
  210. package/lib/modules/dialog/components/participant/electron.js +2 -1
  211. package/lib/modules/dialog/components/remove-admit-waiting-room/electron.d.ts +5 -0
  212. package/lib/modules/dialog/components/remove-admit-waiting-room/electron.js +89 -0
  213. package/lib/modules/dialog/components/remove-admit-waiting-room/index.css +50 -0
  214. package/lib/modules/dialog/components/remove-admit-waiting-room/index.d.ts +5 -0
  215. package/lib/modules/dialog/components/remove-admit-waiting-room/index.js +90 -0
  216. package/lib/modules/dialog/components/switch-language-channels/electron.d.ts +2 -0
  217. package/lib/modules/dialog/components/switch-language-channels/electron.js +72 -0
  218. package/lib/modules/dialog/components/switch-language-channels/index.css +30 -0
  219. package/lib/modules/dialog/components/switch-language-channels/index.d.ts +4 -0
  220. package/lib/modules/dialog/components/switch-language-channels/index.js +63 -0
  221. package/lib/modules/dialog/components/switch-language-channels/user-queue/index.css +36 -0
  222. package/lib/modules/dialog/components/switch-language-channels/user-queue/index.d.ts +3 -0
  223. package/lib/modules/dialog/components/switch-language-channels/user-queue/index.js +47 -0
  224. package/lib/modules/dialog/components/whiteboard/index.js +2 -1
  225. package/lib/modules/dialog/dialogs.js +17 -13
  226. package/lib/modules/dialog/index.css +2 -0
  227. package/lib/modules/dialog/store.d.ts +4 -0
  228. package/lib/modules/dialog/store.js +16 -2
  229. package/lib/modules/event-notification/context.d.ts +2 -0
  230. package/lib/modules/event-notification/context.js +9 -0
  231. package/lib/modules/event-notification/index.css +58 -0
  232. package/lib/modules/event-notification/index.d.ts +13 -0
  233. package/lib/modules/event-notification/index.js +48 -0
  234. package/lib/modules/event-notification/store.d.ts +17 -0
  235. package/lib/modules/event-notification/store.js +133 -0
  236. package/lib/modules/event-notification/view.d.ts +5 -0
  237. package/lib/modules/event-notification/view.js +114 -0
  238. package/lib/modules/invite/index.css +4 -4
  239. package/lib/modules/invite/pstn-invite.js +1 -0
  240. package/lib/modules/layout/components/Gallery.js +7 -1
  241. package/lib/modules/layout/components/Layout.js +82 -57
  242. package/lib/modules/layout/components/index.css +33 -6
  243. package/lib/modules/layout/index.css +30 -0
  244. package/lib/modules/layout/member-window/index.js +9 -3
  245. package/lib/modules/layout/store.d.ts +19 -2
  246. package/lib/modules/layout/store.js +177 -70
  247. package/lib/modules/layout/video-window-datasource.d.ts +1 -1
  248. package/lib/modules/layout/video-window-datasource.js +1 -1
  249. package/lib/modules/live-streaming/index.dev.js +1 -1
  250. package/lib/modules/notification/context.d.ts +2 -0
  251. package/lib/modules/notification/context.js +9 -0
  252. package/lib/modules/notification/index.css +58 -0
  253. package/lib/modules/notification/index.d.ts +15 -0
  254. package/lib/modules/notification/index.js +51 -0
  255. package/lib/modules/notification/interpreter-status/index.css +72 -0
  256. package/lib/modules/notification/interpreter-status/index.d.ts +3 -0
  257. package/lib/modules/notification/interpreter-status/index.js +59 -0
  258. package/lib/modules/notification/store.d.ts +16 -0
  259. package/lib/modules/notification/store.js +127 -0
  260. package/lib/modules/notification/view.d.ts +10 -0
  261. package/lib/modules/notification/view.js +116 -0
  262. package/lib/modules/participant/attendee/index.d.ts +12 -3
  263. package/lib/modules/participant/attendee/index.js +132 -30
  264. package/lib/modules/participant/index.css +20 -0
  265. package/lib/modules/participant/index.d.ts +5 -2
  266. package/lib/modules/participant/index.dev.js +1 -1
  267. package/lib/modules/participant/index.js +27 -0
  268. package/lib/modules/participant/room-control-drop-menu/index.css +37 -0
  269. package/lib/modules/participant/store.d.ts +30 -5
  270. package/lib/modules/participant/store.js +347 -74
  271. package/lib/modules/participant/view.js +133 -34
  272. package/lib/modules/setting/index.css +1 -5
  273. package/lib/modules/setting/index.dev.js +1 -1
  274. package/lib/modules/setting/store.d.ts +2 -2
  275. package/lib/modules/setting/store.js +3 -8
  276. package/lib/modules/setting/translate-settings/translate-settings.js +1 -1
  277. package/lib/modules/setting/video-settings/index.css +9 -6
  278. package/lib/modules/share-screen/index.d.ts +2 -0
  279. package/lib/modules/share-screen/index.dev.js +3 -2
  280. package/lib/modules/share-screen/selection/index.css +2 -0
  281. package/lib/modules/share-screen/store.d.ts +6 -3
  282. package/lib/modules/share-screen/store.js +170 -129
  283. package/lib/modules/state-bar/index.css +2 -2
  284. package/lib/modules/state-bar/index.d.ts +2 -2
  285. package/lib/modules/state-bar/index.dev.js +1 -1
  286. package/lib/modules/state-bar/meeting-detail.css +6 -4
  287. package/lib/modules/state-bar/meeting-details.js +32 -5
  288. package/lib/modules/state-bar/meeting-network-state.css +14 -3
  289. package/lib/modules/state-bar/meeting-network-state.js +10 -4
  290. package/lib/modules/state-bar/recording.js +3 -5
  291. package/lib/modules/state-bar/store.d.ts +5 -2
  292. package/lib/modules/state-bar/store.js +32 -5
  293. package/lib/modules/state-bar/view.js +7 -10
  294. package/lib/modules/video-window/index.css +1 -0
  295. package/lib/modules/video-window/store.d.ts +2 -2
  296. package/lib/modules/video-window/store.js +14 -11
  297. package/lib/modules/waiting-room-layout/context.d.ts +2 -0
  298. package/lib/modules/waiting-room-layout/context.js +9 -0
  299. package/lib/modules/waiting-room-layout/index.css +71 -0
  300. package/lib/modules/waiting-room-layout/index.d.ts +8 -0
  301. package/lib/modules/waiting-room-layout/index.js +47 -0
  302. package/lib/modules/waiting-room-layout/store.d.ts +30 -0
  303. package/lib/modules/waiting-room-layout/store.js +189 -0
  304. package/lib/modules/waiting-room-layout/type.d.ts +0 -0
  305. package/lib/modules/waiting-room-layout/type.js +1 -0
  306. package/lib/modules/waiting-room-layout/view.d.ts +3 -0
  307. package/lib/modules/waiting-room-layout/view.js +67 -0
  308. package/lib/modules/whiteboard/app.js +0 -6
  309. package/lib/modules/whiteboard/components/control-bar/index.css +3 -0
  310. package/lib/modules/whiteboard/components/multi-window/index.js +6 -1
  311. package/lib/modules/whiteboard/components/progress/electron.js +2 -1
  312. package/lib/modules/whiteboard/components/switch-theme/index.css +4 -0
  313. package/lib/modules/whiteboard/components/switch-theme/index.d.ts +2 -1
  314. package/lib/modules/whiteboard/components/switch-theme/index.js +20 -15
  315. package/lib/modules/whiteboard/components/switch-theme/item.d.ts +1 -0
  316. package/lib/modules/whiteboard/components/switch-theme/item.js +9 -2
  317. package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +14 -10
  318. package/lib/modules/whiteboard/components/toolbar/store.d.ts +1 -0
  319. package/lib/modules/whiteboard/components/toolbar/store.js +3 -0
  320. package/lib/modules/whiteboard/context.d.ts +4 -0
  321. package/lib/modules/whiteboard/context.js +4 -2
  322. package/lib/modules/whiteboard/index.js +22 -6
  323. package/lib/plugins/browser-runtime-plugin.js +4 -1
  324. package/lib/plugins/module-dev-plugin.js +8 -6
  325. package/lib/runtime.d.ts +2 -1
  326. package/lib/translations/enUS.d.ts +449 -6
  327. package/lib/translations/enUS.js +485 -32
  328. package/lib/translations/zhCN.d.ts +447 -6
  329. package/lib/translations/zhCN.js +468 -17
  330. package/lib/type.d.ts +6 -2
  331. package/lib/ui-manager.d.ts +7 -3
  332. package/lib/ui-manager.js +576 -139
  333. package/lib/ui-scene.d.ts +1 -0
  334. package/lib/ui-scene.js +26 -21
  335. package/lib/utilities/constant.d.ts +43 -4
  336. package/lib/utilities/constant.js +41 -1
  337. package/lib/utilities/parameters.js +2 -2
  338. package/lib/utilities/renderer.d.ts +1 -0
  339. package/lib/utilities/renderer.js +6 -2
  340. package/package.json +14 -14
  341. package/public/assets/fcr_defaultpage.png +0 -0
  342. package/public/assets/login_confirm.png +0 -0
  343. package/public/index.html +34 -11
  344. package/dist/132.js +0 -2
  345. package/dist/132.js.LICENSE.txt +0 -311
  346. package/dist/651.js +0 -2
  347. package/dist/651.js.LICENSE.txt +0 -1
  348. package/dist/73.js +0 -1
  349. package/dist/index.html +0 -13
  350. package/dist/main.da7c203ab32d15742cfe.css +0 -11760
  351. package/dist/main.js +0 -2
  352. package/dist/main.js.LICENSE.txt +0 -254
  353. package/dist/worker-entry.worker.js.LICENSE.txt +0 -13
  354. package/lib/modules/device-pretest/settings/index.css +0 -15
  355. package/lib/modules/participant/attendee/participants-more-action.d.ts +0 -18
  356. package/lib/modules/participant/attendee/participants-more-action.js +0 -278
@@ -20,7 +20,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
20
20
  Object.defineProperty(exports, "__esModule", {
21
21
  value: true
22
22
  });
23
- exports.ParticipantAttendee = void 0;
23
+ exports.ParticipantAttendee = exports.OperateWaitingRoomMemberDialog = void 0;
24
24
  require("core-js/modules/web.timers.js");
25
25
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
26
26
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
@@ -28,14 +28,13 @@ var _avatar = require("agora-ui-foundation/lib/components/avatar");
28
28
  var _action = require("agora-ui-foundation/lib/components/button/action");
29
29
  var _icon = require("agora-ui-foundation/lib/components/icon");
30
30
  var _type = require("agora-ui-foundation/lib/components/icon/type");
31
+ var _attendee = require("agora-ui-foundation/lib/components/participants/attendee");
31
32
  var _popover = require("agora-ui-foundation/lib/components/popover");
32
33
  var _cameraState = require("agora-ui-foundation/lib/components/room-screen-share-state-bar/camera-state");
33
34
  var _microphoneState = require("agora-ui-foundation/lib/components/room-screen-share-state-bar/microphone-state");
34
35
  var _classnames = _interopRequireDefault(require("classnames"));
35
36
  var _mobxReact = require("mobx-react");
36
37
  var _react = require("react");
37
- var _constant = require("../../../utilities/constant");
38
- var _participantsMoreAction = require("./participants-more-action");
39
38
  var _context = require("../context");
40
39
  var _type2 = require("../../../type");
41
40
  var _i18n = require("agora-ui-foundation/lib/i18n");
@@ -43,14 +42,98 @@ var _muteAction = require("../../../utilities/mute-action");
43
42
  require("./index.css");
44
43
  var _helper = require("agora-ui-foundation/lib/components/avatar/helper");
45
44
  var _agoraEduCore = require("agora-edu-core");
45
+ var _participantsMore = require("agora-ui-foundation/lib/components/participants/participants-more");
46
+ var _type3 = require("agora-edu-core/lib/room-control/type");
47
+ var _constant = require("../../../utilities/constant");
48
+ var _checkbox = require("agora-ui-foundation/lib/components/checkbox");
49
+ var _button = require("agora-ui-foundation/lib/components/button");
46
50
  var _jsxRuntime = require("react/jsx-runtime");
47
51
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
48
52
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
49
- var ParticipantAttendee = exports.ParticipantAttendee = (0, _mobxReact.observer)(function (props) {
53
+ var OperateWaitingRoomMemberDialog = exports.OperateWaitingRoomMemberDialog = function OperateWaitingRoomMemberDialog(_ref) {
54
+ var type = _ref.type,
55
+ tooltip = _ref.tooltip,
56
+ title = _ref.title,
57
+ userId = _ref.userId;
58
+ var t = (0, _i18n.useI18n)();
50
59
  var _useState = (0, _react.useState)(false),
51
60
  _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
52
- isShowDropMenu = _useState2[0],
53
- setIsShowDropMenu = _useState2[1];
61
+ isChecked = _useState2[0],
62
+ setIsChecked = _useState2[1];
63
+ var _useContext = (0, _react.useContext)(_context.StoreContext),
64
+ removeWaitingRoomUser = _useContext.removeWaitingRoomUser,
65
+ moveToMainRoomAllMember = _useContext.moveToMainRoomAllMember,
66
+ kickOutWaitingRoomAllMember = _useContext.kickOutWaitingRoomAllMember,
67
+ closeRemoveAdmitWaitingRoomDialog = _useContext.closeRemoveAdmitWaitingRoomDialog;
68
+ var DialogKeyMap = {
69
+ remove: _constant.DialogKey.WAITING_ROOM_SINGLE_REMOVE,
70
+ removeAll: _constant.DialogKey.WAITING_ROOM_ALL_REMOVE,
71
+ admitAll: _constant.DialogKey.WAITING_ROOM_ALL_ADMIT
72
+ };
73
+ var buttonTextMap = {
74
+ removeAll: t('fmt_waitingroom_sidebar_button_removeall'),
75
+ admitAll: t('fmt_waitingroom_sidebar_button_admitall'),
76
+ remove: t('fmt_waitingroom_sidebar_popup_button_remove')
77
+ };
78
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
79
+ className: "operate-waiting-room-dialog-content",
80
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
81
+ className: "operate-waiting-room-dialog-title",
82
+ children: title
83
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
84
+ className: "operate-waiting-room-dialog-tooltip",
85
+ children: tooltip
86
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
87
+ className: "operate-waiting-room-dialog-confirm",
88
+ children: type === 'admitAll' ? null : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
89
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_checkbox.FcrCheckbox, {
90
+ checked: isChecked,
91
+ onChange: setIsChecked,
92
+ size: "small",
93
+ styleType: "white"
94
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
95
+ style: {
96
+ marginLeft: '10px'
97
+ },
98
+ children: t('fmt_waitingroom_sidebar_popup_option_notagain')
99
+ })]
100
+ })
101
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
102
+ className: "operate-waiting-room-dialog-btns",
103
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
104
+ size: "S",
105
+ shape: "rounded",
106
+ styleType: "white",
107
+ onClick: function onClick() {
108
+ closeRemoveAdmitWaitingRoomDialog(DialogKeyMap[type]);
109
+ },
110
+ children: t('fmt_waitingroom_sidebar_popup_button_cancel')
111
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
112
+ size: "S",
113
+ shape: "rounded",
114
+ styleType: type === 'admitAll' ? 'normal' : 'danger',
115
+ onClick: function onClick() {
116
+ if (type === 'remove') {
117
+ removeWaitingRoomUser(userId, isChecked ? _type3.FcrUserKickOutType.Forever : _type3.FcrUserKickOutType.Once);
118
+ }
119
+ if (type === 'removeAll') {
120
+ kickOutWaitingRoomAllMember(isChecked ? _type3.FcrUserKickOutType.Forever : _type3.FcrUserKickOutType.Once);
121
+ }
122
+ if (type === 'admitAll') {
123
+ moveToMainRoomAllMember();
124
+ }
125
+ closeRemoveAdmitWaitingRoomDialog(DialogKeyMap[type]);
126
+ },
127
+ children: buttonTextMap[type]
128
+ })]
129
+ })]
130
+ });
131
+ };
132
+ var ParticipantAttendee = exports.ParticipantAttendee = (0, _mobxReact.observer)(function (props) {
133
+ var _useState3 = (0, _react.useState)(false),
134
+ _useState4 = (0, _slicedToArray2["default"])(_useState3, 2),
135
+ isShowDropMenu = _useState4[0],
136
+ setIsShowDropMenu = _useState4[1];
54
137
  var userId = props.userId,
55
138
  userName = props.userName,
56
139
  isMe = props.isMe,
@@ -74,17 +157,19 @@ var ParticipantAttendee = exports.ParticipantAttendee = (0, _mobxReact.observer)
74
157
  allowedOperations = props.allowedOperations,
75
158
  hasMutePermission = props.hasMutePermission,
76
159
  hasUnmutePermission = props.hasUnmutePermission,
77
- hasRequestStartAudioPermission = props.hasRequestStartAudioPermission;
78
- var _useState3 = (0, _react.useState)(false),
79
- _useState4 = (0, _slicedToArray2["default"])(_useState3, 2),
80
- disableHover = _useState4[0],
81
- setDisableHover = _useState4[1];
160
+ hasRequestStartAudioPermission = props.hasRequestStartAudioPermission,
161
+ activeTab = props.activeTab,
162
+ moveToMainRoomByUserIds = props.moveToMainRoomByUserIds;
163
+ var _useState5 = (0, _react.useState)(false),
164
+ _useState6 = (0, _slicedToArray2["default"])(_useState5, 2),
165
+ disableHover = _useState6[0],
166
+ setDisableHover = _useState6[1];
82
167
  var nameColor = (0, _helper.getNameColor)(userName);
83
168
  var volumeTimer = undefined;
84
- var _useState5 = (0, _react.useState)(0),
85
- _useState6 = (0, _slicedToArray2["default"])(_useState5, 2),
86
- phoneCallFrame = _useState6[0],
87
- setPhoneCallFrame = _useState6[1];
169
+ var _useState7 = (0, _react.useState)(0),
170
+ _useState8 = (0, _slicedToArray2["default"])(_useState7, 2),
171
+ phoneCallFrame = _useState8[0],
172
+ setPhoneCallFrame = _useState8[1];
88
173
  var percentPhone = function percentPhone(phoneCallFrame) {
89
174
  switch (phoneCallFrame) {
90
175
  case '0':
@@ -146,11 +231,11 @@ var ParticipantAttendee = exports.ParticipantAttendee = (0, _mobxReact.observer)
146
231
  }, [audioDeviceType]);
147
232
  var userActions = function userActions() {
148
233
  var handleAudioButtonClick = function handleAudioButtonClick() {
149
- var action = hasAudio ? _constant.ParticipantType.MUTE_AUDIO : _constant.ParticipantType.UNMUTE_AUDIO;
234
+ var action = hasAudio ? _attendee.ParticipantActionType.MUTE_AUDIO : _attendee.ParticipantActionType.UNMUTE_AUDIO;
150
235
  onParticipantsButtonClick(action, userId);
151
236
  };
152
237
  var handlePrivateChatButtonClick = function handlePrivateChatButtonClick() {
153
- onParticipantsButtonClick(_constant.ParticipantType.PRIVATE_CHAT, userId);
238
+ onParticipantsButtonClick(_attendee.ParticipantActionType.PRIVATE_CHAT, userId);
154
239
  };
155
240
  var handleMoreActionsClick = function handleMoreActionsClick(action, userId) {
156
241
  onParticipantsButtonClick(action, userId);
@@ -162,15 +247,26 @@ var ParticipantAttendee = exports.ParticipantAttendee = (0, _mobxReact.observer)
162
247
  var _actionMute = (0, _muteAction.actionMute)(!!isMe, hasAudio, muteAudioPermission, startAudioPermission, requestStartAudioPermission),
163
248
  isShowActionAudio = _actionMute.isShowActionAudio,
164
249
  actionAudioTag = _actionMute.actionAudioTag;
250
+ var waitingRoomParticipateActionsNeedHiden = ['start_video', 'request_start_video', 'stop_video', 'pin', 'set_as_host', 'set_as_co_host', 'revoke_co_host', 'merge_video', 'put_into_waiting_room'];
251
+ var mainRoomParticipateActionsNeedHiden = [];
165
252
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
166
253
  className: "attendee__user-action attendee__user-action-host ".concat(isShowDropMenu ? 'attendee__user-action-hovered' : ''),
167
- children: [isShowActionAudio && /*#__PURE__*/(0, _jsxRuntime.jsx)(_action.FcrActionButton, {
254
+ children: [isShowActionAudio && activeTab === _constant.RoomType.MAIN_ROOM && /*#__PURE__*/(0, _jsxRuntime.jsx)(_action.FcrActionButton, {
168
255
  size: "small",
169
256
  onClick: handleAudioButtonClick,
170
257
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
171
258
  className: hasAudio ? 'attendee__danger-operate' : 'attendee__normal-operate',
172
259
  children: t(actionAudioTag)
173
260
  })
261
+ }), activeTab === _constant.RoomType.WAITING_ROOM && /*#__PURE__*/(0, _jsxRuntime.jsx)(_action.FcrActionButton, {
262
+ size: "small",
263
+ onClick: function onClick() {
264
+ return moveToMainRoomByUserIds([userId]);
265
+ },
266
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
267
+ className: 'attendee__normal-operate',
268
+ children: t('fmt_waitingroom_sidebar_button_admit')
269
+ })
174
270
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_popover.FcrPopover, {
175
271
  visible: isShowDropMenu,
176
272
  overlayInnerStyle: {
@@ -187,13 +283,19 @@ var ParticipantAttendee = exports.ParticipantAttendee = (0, _mobxReact.observer)
187
283
  onMouseLeave: function onMouseLeave() {
188
284
  return setIsShowDropMenu(false);
189
285
  },
190
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_participantsMoreAction.ParticipantsMoreActions, _objectSpread(_objectSpread({}, props), {}, {
286
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_participantsMore.FcrParticipantsMoreActions, _objectSpread(_objectSpread({}, props), {}, {
191
287
  onParticipantsButtonClick: handleMoreActionsClick,
192
288
  userRole: userRole,
193
289
  isPin: isPin,
194
290
  hasPinnedStream: hasPinnedStream,
195
291
  allowedOperations: allowedOperations,
196
- userType: userType
292
+ userType: userType,
293
+ userId: userId,
294
+ hasVideo: hasVideo,
295
+ hasAudio: hasAudio,
296
+ userName: userName,
297
+ audioDeviceType: audioDeviceType,
298
+ hideActions: activeTab === _constant.RoomType.MAIN_ROOM ? mainRoomParticipateActionsNeedHiden : waitingRoomParticipateActionsNeedHiden
197
299
  }))
198
300
  }),
199
301
  placement: "bottomRight",
@@ -260,26 +362,26 @@ var ParticipantAttendee = exports.ParticipantAttendee = (0, _mobxReact.observer)
260
362
  colors: {
261
363
  iconPrimary: 'var(--fcr_ui_scene_ramp_green6)'
262
364
  }
263
- }), audioDeviceType !== 'none' && /*#__PURE__*/(0, _jsxRuntime.jsx)(MicrophoneIndicator, {
365
+ }), audioDeviceType !== 'none' && activeTab === _constant.RoomType.MAIN_ROOM && /*#__PURE__*/(0, _jsxRuntime.jsx)(MicrophoneIndicator, {
264
366
  audioDeviceType: audioDeviceType,
265
367
  hasAudio: hasAudio,
266
368
  isLocal: !!isMe,
267
369
  userId: userId
268
- }), videoDeviceType !== 'none' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_cameraState.CameraState, {
370
+ }), videoDeviceType !== 'none' && activeTab === _constant.RoomType.MAIN_ROOM && /*#__PURE__*/(0, _jsxRuntime.jsx)(_cameraState.CameraState, {
269
371
  isCameraMuted: !hasVideo,
270
372
  size: 28
271
373
  })]
272
374
  }), userActions()]
273
375
  }, userId);
274
376
  });
275
- var MicrophoneIndicator = (0, _mobxReact.observer)(function (_ref) {
276
- var audioDeviceType = _ref.audioDeviceType,
277
- hasAudio = _ref.hasAudio,
278
- isLocal = _ref.isLocal,
279
- userId = _ref.userId;
280
- var _useContext = (0, _react.useContext)(_context.StoreContext),
281
- audioVolumeMap = _useContext.audioVolumeMap,
282
- localMicVolume = _useContext.localMicVolume;
377
+ var MicrophoneIndicator = (0, _mobxReact.observer)(function (_ref2) {
378
+ var audioDeviceType = _ref2.audioDeviceType,
379
+ hasAudio = _ref2.hasAudio,
380
+ isLocal = _ref2.isLocal,
381
+ userId = _ref2.userId;
382
+ var _useContext2 = (0, _react.useContext)(_context.StoreContext),
383
+ audioVolumeMap = _useContext2.audioVolumeMap,
384
+ localMicVolume = _useContext2.localMicVolume;
283
385
  var volume = isLocal ? localMicVolume : audioVolumeMap.get(userId);
284
386
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_microphoneState.MicrophoneState, {
285
387
  isMicrophoneMuted: !hasAudio,
@@ -5,6 +5,7 @@
5
5
  width: 100%;
6
6
  min-width: 320px;
7
7
  flex: 1;
8
+ position: relative;
8
9
  }
9
10
  .participants-container-merge-content {
10
11
  display: flex;
@@ -56,3 +57,22 @@
56
57
  .fcr-participant .fcr-avatar {
57
58
  border-radius: var(--fcr_cornerradius_m);
58
59
  }
60
+
61
+ .fcr-participant__footer_waiting_room button {
62
+ flex: 1 !important;
63
+ padding: 0 !important;
64
+ }
65
+
66
+ .participants-container-icon {
67
+ position: relative;
68
+ }
69
+
70
+ .participants-container-red {
71
+ width: 8px;
72
+ height: 8px;
73
+ border-radius: 50%;
74
+ background: var(--fcr_ui_scene_ramp_red6);
75
+ position: absolute;
76
+ right: -5px;
77
+ top: -5px;
78
+ }
@@ -1,4 +1,4 @@
1
- import { FcrCoreEngine, FcrBaseRoomControl } from 'agora-edu-core';
1
+ import { FcrCoreEngine } from 'agora-edu-core';
2
2
  import { UIModule } from '../../base';
3
3
  import { FcrSecurityStore } from '../../common/security-store';
4
4
  import './index.css';
@@ -6,10 +6,12 @@ import { FcrUIEventStore } from '../../common/event-store';
6
6
  import { FcrDeviceStore } from '../../common/device-store';
7
7
  import { FcrDeviceStreamStore } from '../../common/device-stream-store';
8
8
  import { FcrPeerSessionControl } from 'agora-edu-core/lib/peer-session/type';
9
+ import { FcrMainRoomControl } from 'agora-edu-core/lib/room-control/type';
10
+ import { OperateWaitingRoomMemberDialogProps } from './attendee';
9
11
  export declare class ParticipantUIModule extends UIModule {
10
12
  private _store;
11
13
  constructor(args: {
12
- roomControl: FcrBaseRoomControl;
14
+ roomControl: FcrMainRoomControl;
13
15
  engine: FcrCoreEngine;
14
16
  peerSessionControl: FcrPeerSessionControl;
15
17
  securityStore: FcrSecurityStore;
@@ -18,6 +20,7 @@ export declare class ParticipantUIModule extends UIModule {
18
20
  deviceStreamStore: FcrDeviceStreamStore;
19
21
  });
20
22
  getComponent(): import("react/jsx-runtime").JSX.Element;
23
+ getWaitingRoomDialog(params: OperateWaitingRoomMemberDialogProps): import("react/jsx-runtime").JSX.Element;
21
24
  openDialog(): void;
22
25
  onProcessEvent(event: RendererCustomEvent): void;
23
26
  protected onUnload(): void;
@@ -42,7 +42,7 @@ window.__DEV_ENGINE_IS_READY__.then(/*#__PURE__*/(0, _asyncToGenerator2["default
42
42
  _context.next = 7;
43
43
  return engine.login();
44
44
  case 7:
45
- roomControl = engine.createRoomControl(roomId);
45
+ roomControl = engine.createMainRoomControl(roomId);
46
46
  userName = isAssistant ? 'assistants' : 'test-user';
47
47
  deviceStore = new _deviceStore.FcrDeviceStore(userName, engine.getDesktopMediaControl());
48
48
  _context.next = 12;
@@ -1,13 +1,29 @@
1
1
  "use strict";
2
2
 
3
+ require("core-js/modules/es.symbol.js");
4
+ require("core-js/modules/es.array.filter.js");
5
+ require("core-js/modules/es.array.for-each.js");
6
+ require("core-js/modules/es.array.push.js");
7
+ require("core-js/modules/es.object.define-properties.js");
3
8
  require("core-js/modules/es.object.define-property.js");
9
+ require("core-js/modules/es.object.get-own-property-descriptor.js");
10
+ require("core-js/modules/es.object.get-own-property-descriptors.js");
11
+ require("core-js/modules/es.object.keys.js");
12
+ require("core-js/modules/es.object.to-string.js");
4
13
  require("core-js/modules/es.reflect.construct.js");
14
+ require("core-js/modules/esnext.async-iterator.filter.js");
15
+ require("core-js/modules/esnext.async-iterator.for-each.js");
16
+ require("core-js/modules/esnext.iterator.constructor.js");
17
+ require("core-js/modules/esnext.iterator.filter.js");
18
+ require("core-js/modules/esnext.iterator.for-each.js");
19
+ require("core-js/modules/web.dom-collections.for-each.js");
5
20
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
6
21
  Object.defineProperty(exports, "__esModule", {
7
22
  value: true
8
23
  });
9
24
  exports.ParticipantUIModule = void 0;
10
25
  require("core-js/modules/es.function.bind.js");
26
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
27
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
12
28
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
13
29
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
@@ -19,7 +35,10 @@ var _context = require("./context");
19
35
  require("./index.css");
20
36
  var _store = _interopRequireDefault(require("./store"));
21
37
  var _view = require("./view");
38
+ var _attendee = require("./attendee");
22
39
  var _jsxRuntime = require("react/jsx-runtime");
40
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
41
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
23
42
  function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
24
43
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
25
44
  var ParticipantUIModule = exports.ParticipantUIModule = /*#__PURE__*/function (_UIModule) {
@@ -42,6 +61,14 @@ var ParticipantUIModule = exports.ParticipantUIModule = /*#__PURE__*/function (_
42
61
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_view.View, {})
43
62
  });
44
63
  }
64
+ }, {
65
+ key: "getWaitingRoomDialog",
66
+ value: function getWaitingRoomDialog(params) {
67
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_context.StoreContext.Provider, {
68
+ value: this._store,
69
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_attendee.OperateWaitingRoomMemberDialog, _objectSpread({}, params))
70
+ });
71
+ }
45
72
  }, {
46
73
  key: "openDialog",
47
74
  value: function openDialog() {
@@ -2,6 +2,43 @@
2
2
  position: relative;
3
3
  /* margin: 8px 0; */
4
4
  }
5
+ .room-control-options-box {
6
+ display: flex;
7
+ justify-content: space-between;
8
+ }
9
+ .room-control-options-box .fcr-checkbox {
10
+ width: fit-content;
11
+ }
12
+
13
+ .room-control-options-watermark-btns {
14
+ width: 104px;
15
+ height: 24px;
16
+ display: flex;
17
+ background-color: var(--fcr_mobile_ui_scene_fill1);
18
+ align-items: center;
19
+ padding: 2px;
20
+ }
21
+
22
+ .room-control-options-watermark-btn {
23
+ width: 50px;
24
+ height: 20px;
25
+ display: flex;
26
+ justify-content: center;
27
+ align-items: center;
28
+ color: var(--fcr_ui_scene_icontext1);
29
+ font-size: 12px;
30
+ background-color: transparent;
31
+ }
32
+ .room-control-options-watermark-btn--active {
33
+ background-color: #ffffff;
34
+ color: var(--fcr_ui_scene_ramp_brand6);
35
+ }
36
+
37
+ .room-control-options-watermark-title-box {
38
+ display: flex;
39
+ align-items: center;
40
+ font-size: 13px;
41
+ }
5
42
 
6
43
  .room-control-drop-with-under-line::after {
7
44
  content: '';
@@ -1,19 +1,26 @@
1
- import { FcrBaseRoomControl, FcrCoreEngine, FcrMediaSourceState, FcrPrivilegeUserRole } from 'agora-edu-core';
1
+ import { FcrCoreEngine, FcrMediaSourceState, FcrPrivilegeUserRole } from 'agora-edu-core';
2
2
  import { FcrPeerSessionControl } from 'agora-edu-core/lib/peer-session/type';
3
3
  import { FcrUserInfo, FcrUserRole } from 'agora-edu-core/lib/type';
4
- import { User } from 'agora-ui-foundation/lib/components/participants/attendee';
4
+ import { RoomType } from '../../utilities/constant';
5
+ import { ParticipantActionType, User } from 'agora-ui-foundation/lib/components/participants/attendee';
5
6
  import { FcrSecurityStore } from '../../common/security-store';
6
- import { ParticipantType, RoomControlType } from '../../utilities/constant';
7
+ import { DialogKey, RoomControlType } from '../../utilities/constant';
7
8
  import { FcrUIEventStore } from '../../common/event-store';
8
9
  import { FcrDeviceStore } from '../../common/device-store';
9
10
  import { FcrDeviceStreamStore } from '../../common/device-stream-store';
10
11
  import { FcrUIMemberData } from './type';
12
+ import { FcrUserKickOutType } from 'agora-edu-core/lib/room-control/user-control/type';
13
+ import { FcrMainRoomControl } from 'agora-edu-core/lib/room-control/type';
14
+ import { OperateWaitingRoomMemberDialogProps } from './attendee';
11
15
  export default class ParticipantStore {
12
16
  protected logger: import("agora-foundation/lib/logger").Logger;
13
17
  private _dataSource;
18
+ private _waitingRoomDataSource;
14
19
  private _roomControl;
15
20
  private _streamControl;
16
21
  private _userControl;
22
+ private _waitingRoomControl?;
23
+ private _waitingRoomUserControl?;
17
24
  private _engine;
18
25
  private _peerSessionControl;
19
26
  private _disposers;
@@ -29,6 +36,7 @@ export default class ParticipantStore {
29
36
  private _peerSessionObserver;
30
37
  private _userObserver;
31
38
  private _eventObserver;
39
+ private _waitingRoomUserObserver;
32
40
  private _whitebaordObderver;
33
41
  private accessor _mainList;
34
42
  accessor _participantsWindowActive: boolean;
@@ -43,6 +51,9 @@ export default class ParticipantStore {
43
51
  accessor enableSpotlight: boolean;
44
52
  accessor mergeConfirmDialog: boolean;
45
53
  accessor mergeUserId: string;
54
+ accessor activeTab: RoomType;
55
+ accessor isNewWaitingRoomUserEnter: boolean;
56
+ accessor waitingRoomUserCount: number;
46
57
  get userListSource(): import("./member-list-data-source").FcrUIMemberDataImpl[];
47
58
  get mergeUserInfo(): FcrUserInfo | undefined;
48
59
  get userMap(): Map<string, FcrUIMemberData>;
@@ -60,7 +71,7 @@ export default class ParticipantStore {
60
71
  get localMicVolume(): number;
61
72
  get hasRevokeHostPermission(): boolean;
62
73
  constructor({ roomControl, engine, peerSessionControl, securityStore, uiEventStore, deviceStore, deviceStreamStore, }: {
63
- roomControl: FcrBaseRoomControl;
74
+ roomControl: FcrMainRoomControl;
64
75
  engine: FcrCoreEngine;
65
76
  peerSessionControl: FcrPeerSessionControl;
66
77
  securityStore: FcrSecurityStore;
@@ -70,8 +81,10 @@ export default class ParticipantStore {
70
81
  });
71
82
  setSpotlightStreamId(streamId: string): void;
72
83
  release(): void;
84
+ allowedOperations: (userId: string, userRole: FcrUserRole) => string[];
73
85
  checkIsPin: (userId: string) => boolean;
74
86
  hasMutePermission(targetRole: FcrPrivilegeUserRole | FcrUserRole): boolean;
87
+ hasWaitingRoomPermission(): boolean;
75
88
  hasUnmutePermission(targetRole: FcrPrivilegeUserRole | FcrUserRole): boolean;
76
89
  hasRequestStartAudioPermission(targetRole: FcrPrivilegeUserRole | FcrUserRole): boolean;
77
90
  setCurrentModal(modal: 'modal' | 'window'): void;
@@ -98,10 +111,19 @@ export default class ParticipantStore {
98
111
  removePin(userId: string): void;
99
112
  addPin(userId: string): void;
100
113
  getAllowedOperations(targetRole: FcrUserRole, isSelf: boolean): string[];
101
- handlerUserAction(action: ParticipantType, userId: string): void;
114
+ closeRemoveAdmitWaitingRoomDialog(dialogKey: DialogKey): void;
115
+ openRemoveAdmitWaitingRoomDialog(dialogKey: DialogKey, params: OperateWaitingRoomMemberDialogProps): void;
116
+ handlerUserAction(action: ParticipantActionType, userId: string): void;
117
+ private _moveToWaitingRoomByUserIds;
118
+ removeWaitingRoomUser(userId: string, type: FcrUserKickOutType): void;
119
+ kickOutWaitingRoomAllMember(type: FcrUserKickOutType): Promise<void>;
120
+ moveToMainRoomAllMember(): Promise<void>;
102
121
  getMicStreamVolume(streamId: string): number;
103
122
  handlerRoomControlAction(action: RoomControlType, data?: any): void;
104
123
  private _handleEvent;
124
+ moveToMainRoomByUserIds(userId: string[]): void;
125
+ handleActiveTab(tab: RoomType): void;
126
+ private _initWaitingRoomUserList;
105
127
  private _formatUser;
106
128
  private _muteUserAudio;
107
129
  private _unmuteUserAudio;
@@ -127,6 +149,9 @@ export default class ParticipantStore {
127
149
  private _updateUserBoardState;
128
150
  private _handleRemoteUserJoined;
129
151
  private _handleRemoteUserLeft;
152
+ private _handleRemoteWaitingUserJoined;
153
+ private _getWaitingRoomUserCount;
154
+ private _handleRemoteWaitingUserLeft;
130
155
  private _onUserInfoUpdated;
131
156
  private _initUserList;
132
157
  private _handleStreamsAdded;