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
@@ -0,0 +1,58 @@
1
+ .waiting-room-confirm-dialog {
2
+ background-color: white;
3
+ border-radius: 10px;
4
+ position: relative;
5
+ z-index: 9999;
6
+ }
7
+
8
+ .waiting-room-confirm-dialog .fcr-dialog-body {
9
+ padding: 20px;
10
+ }
11
+
12
+ .waiting-room-confirm-dialog-content {
13
+ display: flex;
14
+ align-items: center;
15
+ }
16
+
17
+ .rc-notification {
18
+ position: absolute;
19
+ top: 40px;
20
+ z-index: 999;
21
+ }
22
+
23
+ .rc-notification-notice-wrapper {
24
+ border-radius: 10px;
25
+ left: 10px;
26
+ }
27
+
28
+ .waiting-room-confirm-dialog-content-icon {
29
+ background-color: #a19fff;
30
+ width: 48px;
31
+ height: 48px;
32
+ border-radius: 50px;
33
+ margin-right: 10px;
34
+ }
35
+
36
+ .waiting-room-confirm-dialog-content-title {
37
+ font-size: 14px;
38
+ margin-bottom: 5px;
39
+ }
40
+
41
+ .waiting-room-confirm-dialog-content-desc {
42
+ font-size: 13px;
43
+ color: var(--fcr_ui_scene_icontext2);
44
+ }
45
+
46
+ .waiting-room-confirm-dialog-btns {
47
+ display: flex;
48
+ justify-content: flex-end;
49
+ align-items: center;
50
+ margin-top: 10px;
51
+ }
52
+
53
+ .waiting-room-left-btn {
54
+ color: var(--fcr_ui_scene_icontext2);
55
+ margin-right: 15px;
56
+ font-size: 12px;
57
+ cursor: pointer;
58
+ }
@@ -0,0 +1,15 @@
1
+ import { FcrPrivilegeControl } from 'fcr-core';
2
+ import { UIModule } from '../../base';
3
+ import { FcrUIEventStore } from '../../common/event-store';
4
+ import { FcrRoomStore } from '../../common/room-store';
5
+ export declare class NotificationUIModule extends UIModule {
6
+ private _store;
7
+ private _uiEventStore;
8
+ constructor(args: {
9
+ uiEventStore: FcrUIEventStore;
10
+ privilegeControl: FcrPrivilegeControl;
11
+ roomStore: FcrRoomStore;
12
+ });
13
+ protected onUnload(): void;
14
+ getComponent(): import("react/jsx-runtime").JSX.Element;
15
+ }
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+
3
+ require("core-js/modules/es.object.define-property.js");
4
+ require("core-js/modules/es.reflect.construct.js");
5
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
6
+ Object.defineProperty(exports, "__esModule", {
7
+ value: true
8
+ });
9
+ exports.NotificationUIModule = void 0;
10
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
11
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
12
+ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
13
+ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
14
+ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
15
+ var _base = require("../../base");
16
+ var _store = _interopRequireDefault(require("./store"));
17
+ var _view = require("./view");
18
+ var _context = require("./context");
19
+ var _jsxRuntime = require("react/jsx-runtime");
20
+ 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)); }
21
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
22
+ var NotificationUIModule = exports.NotificationUIModule = /*#__PURE__*/function (_UIModule) {
23
+ function NotificationUIModule(args) {
24
+ var _this;
25
+ (0, _classCallCheck2["default"])(this, NotificationUIModule);
26
+ _this = _callSuper(this, NotificationUIModule);
27
+ _this._uiEventStore = args.uiEventStore;
28
+ _this._store = new _store["default"]({
29
+ privilegeControl: args.privilegeControl,
30
+ roomStore: args.roomStore
31
+ });
32
+ return _this;
33
+ }
34
+ (0, _inherits2["default"])(NotificationUIModule, _UIModule);
35
+ return (0, _createClass2["default"])(NotificationUIModule, [{
36
+ key: "onUnload",
37
+ value: function onUnload() {
38
+ this._store.release();
39
+ }
40
+ }, {
41
+ key: "getComponent",
42
+ value: function getComponent() {
43
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_context.StoreContext.Provider, {
44
+ value: this._store,
45
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_view.View, {
46
+ uiEventStore: this._uiEventStore
47
+ })
48
+ }, "notification");
49
+ }
50
+ }]);
51
+ }(_base.UIModule);
@@ -0,0 +1,72 @@
1
+ .interpreter-status-confirm-dialog {
2
+ background-color: white;
3
+ border-radius: 10px;
4
+ position: relative;
5
+ z-index: 9999;
6
+ }
7
+
8
+ .interpreter-status-confirm-dialog {
9
+ padding: 13px 0 13px 10px;
10
+ }
11
+
12
+ .interpreter-status-confirm-dialog-close {
13
+ /* width: 12px;
14
+ height: 12px; */
15
+ display: flex;
16
+ justify-content: center;
17
+ align-items: center;
18
+ position: absolute;
19
+ right: -12px;
20
+ top: -1px;
21
+ }
22
+ .interpreter-status-confirm-dialog-content {
23
+ display: flex;
24
+ align-items: center;
25
+ }
26
+
27
+ /* .rc-notification {
28
+ position: absolute;
29
+ top: 40px;
30
+ z-index: 999;
31
+ }
32
+ */
33
+ /* .rc-notification-notice-wrapper {
34
+ border-radius: 10px;
35
+ left: 10px;
36
+ }
37
+ */
38
+ .interpreter-status-confirm-dialog-content-icon {
39
+ min-width: 48px;
40
+ height: 48px;
41
+ border-radius: 24px;
42
+ margin-right: 15px;
43
+ display: flex;
44
+ justify-content: center;
45
+ align-items: center;
46
+ background: var(--fcr_ui_scene_card3);
47
+ }
48
+
49
+ .interpreter-status-confirm-dialog-content-title {
50
+ font-size: 14px;
51
+ margin-bottom: 12px;
52
+ }
53
+
54
+ .interpreter-status-confirm-dialog-content-desc {
55
+ font-size: 13px;
56
+ color: var(--fcr_ui_scene_icontext2);
57
+ }
58
+
59
+ /* .interpreter-status-confirm-dialog-btns {
60
+ display: flex;
61
+ justify-content: flex-end;
62
+ align-items: center;
63
+ margin-top: 10px;
64
+ }
65
+
66
+ .interpreter-status-left-btn {
67
+ color: var(--fcr_ui_scene_icontext2);
68
+ margin-right: 15px;
69
+ font-size: 12px;
70
+ cursor: pointer;
71
+ }
72
+ */
@@ -0,0 +1,3 @@
1
+ import { NotificationContent } from '../view';
2
+ import './index.css';
3
+ export declare const InterpreterStatus: ({ onClose, onOk, data }: NotificationContent) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+
3
+ require("core-js/modules/es.object.define-property.js");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.InterpreterStatus = void 0;
8
+ require("core-js/modules/es.array.concat.js");
9
+ require("core-js/modules/es.array.join.js");
10
+ require("core-js/modules/es.array.map.js");
11
+ require("core-js/modules/esnext.async-iterator.map.js");
12
+ require("core-js/modules/esnext.iterator.map.js");
13
+ var _icon = require("agora-ui-foundation/lib/components/icon");
14
+ var _type = require("agora-ui-foundation/lib/components/icon/type");
15
+ var _i18n = require("agora-ui-foundation/lib/i18n");
16
+ var _mobxReact = require("mobx-react");
17
+ require("./index.css");
18
+ var _ = require("../../..");
19
+ var _jsxRuntime = require("react/jsx-runtime");
20
+ var InterpreterStatus = exports.InterpreterStatus = (0, _mobxReact.observer)(function (_ref) {
21
+ var onClose = _ref.onClose,
22
+ onOk = _ref.onOk,
23
+ data = _ref.data;
24
+ var interpreterUserList = data.interpreterUserList,
25
+ operatorUser = data.operatorUser;
26
+ var userNames = interpreterUserList === null || interpreterUserList === void 0 ? void 0 : interpreterUserList.map(function (ele) {
27
+ return ele.userName;
28
+ }).join('、');
29
+ var t = (0, _i18n.useI18n)();
30
+ console.log(operatorUser, 'operatorUser');
31
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
32
+ className: "interpreter-status-confirm-dialog",
33
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
34
+ className: "interpreter-status-confirm-dialog-close",
35
+ onClick: onClose,
36
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
37
+ type: _type.FcrIconType.FCR_CLOSE2,
38
+ size: 16
39
+ })
40
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
41
+ className: "interpreter-status-confirm-dialog-content",
42
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
43
+ className: "interpreter-status-confirm-dialog-content-icon",
44
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
45
+ type: _type.FcrIconType.FCR_INTERPRETATION2,
46
+ size: 25
47
+ })
48
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
49
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
50
+ className: "interpreter-status-confirm-dialog-content-title",
51
+ children: "\u540C\u58F0\u4F20\u8BD1\u5DF2\u542F\u7528"
52
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
53
+ className: "interpreter-status-confirm-dialog-content-desc",
54
+ children: " ".concat(t(operatorUser.userRole === _.FcrUserRole.HOST ? 'fmt_role_host' : 'fmt_role_cohost'), " ").concat(operatorUser.userName, "\u6307\u5B9A\u4E86").concat(userNames, "\u7B49").concat(interpreterUserList.length, "\u4E2A\u4EBA\u4E3A\u7FFB\u8BD1\u5B98\u3002")
55
+ })]
56
+ })]
57
+ })]
58
+ });
59
+ });
@@ -0,0 +1,16 @@
1
+ import { FcrPrivilegeControl } from 'fcr-core';
2
+ import { FcrRoomStore } from '../../common/room-store';
3
+ export default class NotificationStore {
4
+ protected logger: import("agora-foundation/lib/logger").Logger;
5
+ private _waitingRoomControl?;
6
+ private _privilegeControl;
7
+ private _waitingRoomUserObserver;
8
+ accessor waitingRoomUserCount: number;
9
+ constructor({ privilegeControl, roomStore, }: {
10
+ privilegeControl: FcrPrivilegeControl;
11
+ roomStore: FcrRoomStore;
12
+ });
13
+ release(): void;
14
+ private _getWaitingRoomUserCount;
15
+ private _handleRemoteWaitingUserChanged;
16
+ }
@@ -0,0 +1,127 @@
1
+ "use strict";
2
+
3
+ require("core-js/modules/es.symbol.js");
4
+ require("core-js/modules/es.symbol.description.js");
5
+ require("core-js/modules/es.symbol.to-primitive.js");
6
+ require("core-js/modules/es.error.cause.js");
7
+ require("core-js/modules/es.error.to-string.js");
8
+ require("core-js/modules/es.array.is-array.js");
9
+ require("core-js/modules/es.array.push.js");
10
+ require("core-js/modules/es.date.to-primitive.js");
11
+ require("core-js/modules/es.function.name.js");
12
+ require("core-js/modules/es.map.js");
13
+ require("core-js/modules/es.number.constructor.js");
14
+ require("core-js/modules/es.object.create.js");
15
+ require("core-js/modules/es.object.define-property.js");
16
+ require("core-js/modules/es.object.get-own-property-descriptor.js");
17
+ require("core-js/modules/esnext.function.metadata.js");
18
+ require("core-js/modules/esnext.map.delete-all.js");
19
+ require("core-js/modules/esnext.map.emplace.js");
20
+ require("core-js/modules/esnext.map.every.js");
21
+ require("core-js/modules/esnext.map.filter.js");
22
+ require("core-js/modules/esnext.map.find.js");
23
+ require("core-js/modules/esnext.map.find-key.js");
24
+ require("core-js/modules/esnext.map.includes.js");
25
+ require("core-js/modules/esnext.map.key-of.js");
26
+ require("core-js/modules/esnext.map.map-keys.js");
27
+ require("core-js/modules/esnext.map.map-values.js");
28
+ require("core-js/modules/esnext.map.merge.js");
29
+ require("core-js/modules/esnext.map.reduce.js");
30
+ require("core-js/modules/esnext.map.some.js");
31
+ require("core-js/modules/esnext.map.update.js");
32
+ require("core-js/modules/esnext.symbol.metadata.js");
33
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
34
+ var _typeof = require("@babel/runtime/helpers/typeof");
35
+ Object.defineProperty(exports, "__esModule", {
36
+ value: true
37
+ });
38
+ exports["default"] = void 0;
39
+ require("core-js/modules/es.array.filter.js");
40
+ require("core-js/modules/es.array.includes.js");
41
+ require("core-js/modules/es.array.iterator.js");
42
+ require("core-js/modules/es.function.bind.js");
43
+ require("core-js/modules/es.object.to-string.js");
44
+ require("core-js/modules/es.string.includes.js");
45
+ require("core-js/modules/es.string.iterator.js");
46
+ require("core-js/modules/es.weak-map.js");
47
+ require("core-js/modules/esnext.async-iterator.filter.js");
48
+ require("core-js/modules/esnext.iterator.constructor.js");
49
+ require("core-js/modules/esnext.iterator.filter.js");
50
+ require("core-js/modules/esnext.weak-map.delete-all.js");
51
+ require("core-js/modules/esnext.weak-map.emplace.js");
52
+ require("core-js/modules/web.dom-collections.iterator.js");
53
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
54
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
55
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
56
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
57
+ var _logger = require("agora-foundation/lib/logger");
58
+ var _mobx = require("mobx");
59
+ var _decorator = require("agora-foundation/lib/decorator");
60
+ var _type = require("fcr-core/lib/room-control/privilege-control/type");
61
+ var _NotificationStore;
62
+ var _initProto, _init_waitingRoomUserCount;
63
+ function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
64
+ function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
65
+ function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
66
+ function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
67
+ function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
68
+ function _applyDecs(e, t, r, n, o, a) { function i(e, t, r) { return function (n, o) { return r && r(n), e[t].call(n, o); }; } function c(e, t) { for (var r = 0; r < e.length; r++) e[r].call(t); return t; } function s(e, t, r, n) { if ("function" != typeof e && (n || void 0 !== e)) throw new TypeError(t + " must " + (r || "be") + " a function" + (n ? "" : " or undefined")); return e; } function applyDec(e, t, r, n, o, a, c, u, l, f, p, d, h) { function m(e) { if (!h(e)) throw new TypeError("Attempted to access private element on non-instance"); } var y, v = t[0], g = t[3], b = !u; if (!b) { r || Array.isArray(v) || (v = [v]); var w = {}, S = [], A = 3 === o ? "get" : 4 === o || d ? "set" : "value"; f ? (p || d ? w = { get: _setFunctionName(function () { return g(this); }, n, "get"), set: function set(e) { t[4](this, e); } } : w[A] = g, p || _setFunctionName(w[A], n, 2 === o ? "" : A)) : p || (w = Object.getOwnPropertyDescriptor(e, n)); } for (var P = e, j = v.length - 1; j >= 0; j -= r ? 2 : 1) { var D = v[j], E = r ? v[j - 1] : void 0, I = {}, O = { kind: ["field", "accessor", "method", "getter", "setter", "class"][o], name: n, metadata: a, addInitializer: function (e, t) { if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); s(t, "An initializer", "be", !0), c.push(t); }.bind(null, I) }; try { if (b) (y = s(D.call(E, P, O), "class decorators", "return")) && (P = y);else { var k, F; O["static"] = l, O["private"] = f, f ? 2 === o ? k = function k(e) { return m(e), w.value; } : (o < 4 && (k = i(w, "get", m)), 3 !== o && (F = i(w, "set", m))) : (k = function k(e) { return e[n]; }, (o < 2 || 4 === o) && (F = function F(e, t) { e[n] = t; })); var N = O.access = { has: f ? h.bind() : function (e) { return n in e; } }; if (k && (N.get = k), F && (N.set = F), P = D.call(E, d ? { get: w.get, set: w.set } : w[A], O), d) { if ("object" == _typeof(P) && P) (y = s(P.get, "accessor.get")) && (w.get = y), (y = s(P.set, "accessor.set")) && (w.set = y), (y = s(P.init, "accessor.init")) && S.push(y);else if (void 0 !== P) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); } else s(P, (p ? "field" : "method") + " decorators", "return") && (p ? S.push(P) : w[A] = P); } } finally { I.v = !0; } } return (p || d) && u.push(function (e, t) { for (var r = S.length - 1; r >= 0; r--) t = S[r].call(e, t); return t; }), p || b || (f ? d ? u.push(i(w, "get"), i(w, "set")) : u.push(2 === o ? w[A] : i.call.bind(w[A])) : Object.defineProperty(e, n, w)), P; } function u(e, t) { return Object.defineProperty(e, Symbol.metadata || Symbol["for"]("Symbol.metadata"), { configurable: !0, enumerable: !0, value: t }); } if (arguments.length >= 6) var l = a[Symbol.metadata || Symbol["for"]("Symbol.metadata")]; var f = Object.create(null == l ? null : l), p = function (e, t, r, n) { var o, a, i = [], s = function s(t) { return _checkInRHS(t) === e; }, u = new Map(); function l(e) { e && i.push(c.bind(null, e)); } for (var f = 0; f < t.length; f++) { var p = t[f]; if (Array.isArray(p)) { var d = p[1], h = p[2], m = p.length > 3, y = 16 & d, v = !!(8 & d), g = 0 == (d &= 7), b = h + "/" + v; if (!g && !m) { var w = u.get(b); if (!0 === w || 3 === w && 4 !== d || 4 === w && 3 !== d) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h); u.set(b, !(d > 2) || d); } applyDec(v ? e : e.prototype, p, y, m ? "#" + h : _toPropertyKey(h), d, n, v ? a = a || [] : o = o || [], i, v, m, g, 1 === d, v && m ? s : r); } } return l(o), l(a), i; }(e, t, o, f); return r.length || u(e, f), { e: p, get c() { var t = []; return r.length && [u(applyDec(e, [r], n, e.name, 5, f, t), f), c.bind(null, t, e)]; } }; }
69
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
70
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
71
+ function _setFunctionName(e, t, n) { "symbol" == _typeof(t) && (t = (t = t.description) ? "[" + t + "]" : ""); try { Object.defineProperty(e, "name", { configurable: !0, value: n ? n + " " + t : t }); } catch (e) {} return e; }
72
+ function _checkInRHS(e) { if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (null !== e ? _typeof(e) : "null")); return e; }
73
+ var _A = /*#__PURE__*/new WeakMap();
74
+ var NotificationStore = exports["default"] = /*#__PURE__*/function () {
75
+ function NotificationStore(_ref) {
76
+ var _this = this;
77
+ var privilegeControl = _ref.privilegeControl,
78
+ roomStore = _ref.roomStore;
79
+ (0, _classCallCheck2["default"])(this, NotificationStore);
80
+ (0, _defineProperty2["default"])(this, "logger", (_initProto(this), (0, _logger.getLogger)()));
81
+ (0, _defineProperty2["default"])(this, "_waitingRoomUserObserver", {
82
+ onRemoteUsersJoined: this._handleRemoteWaitingUserChanged.bind(this),
83
+ onRemoteUsersLeft: this._handleRemoteWaitingUserChanged.bind(this)
84
+ });
85
+ _classPrivateFieldInitSpec(this, _A, _init_waitingRoomUserCount(this, 0));
86
+ this._privilegeControl = privilegeControl;
87
+ roomStore.addObserver({
88
+ onJoinWaitingRoom: function onJoinWaitingRoom(roomControl) {
89
+ var room = roomControl;
90
+ _this._waitingRoomControl = room;
91
+ var waitingRoomUserControl = room.getUserControl();
92
+ waitingRoomUserControl.addObserver(_this._waitingRoomUserObserver);
93
+ }
94
+ });
95
+ }
96
+ return (0, _createClass2["default"])(NotificationStore, [{
97
+ key: "waitingRoomUserCount",
98
+ get: function get() {
99
+ return _classPrivateFieldGet(_A, this);
100
+ },
101
+ set: function set(v) {
102
+ _classPrivateFieldSet(_A, this, v);
103
+ }
104
+ }, {
105
+ key: "release",
106
+ value: function release() {}
107
+ }, {
108
+ key: "_getWaitingRoomUserCount",
109
+ value: function _getWaitingRoomUserCount() {
110
+ var _this$_privilegeContr;
111
+ var userControl = this._waitingRoomControl.getUserControl();
112
+ var targetRoles = (_this$_privilegeContr = this._privilegeControl.getSecurityInfo(_type.FcrSecurityAction.WaitingRoom).info) === null || _this$_privilegeContr === void 0 ? void 0 : _this$_privilegeContr.targetRoles;
113
+ this.waitingRoomUserCount = userControl.getUserList().filter(function (user) {
114
+ return targetRoles.includes(user.userRole);
115
+ }).length;
116
+ }
117
+ }, {
118
+ key: "_handleRemoteWaitingUserChanged",
119
+ value: function _handleRemoteWaitingUserChanged() {
120
+ this._getWaitingRoomUserCount();
121
+ }
122
+ }]);
123
+ }();
124
+ _NotificationStore = NotificationStore;
125
+ var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_NotificationStore, [[_mobx.observable, 1, "waitingRoomUserCount"], [_decorator.bound, 2, "_getWaitingRoomUserCount"], [_decorator.bound, 2, "_handleRemoteWaitingUserChanged"]], []).e, 2);
126
+ _init_waitingRoomUserCount = _applyDecs$e[0];
127
+ _initProto = _applyDecs$e[1];
@@ -0,0 +1,10 @@
1
+ import { FcrUIEventStore } from '../../common/event-store';
2
+ import './index.css';
3
+ export type NotificationContent = {
4
+ onClose?: () => void;
5
+ onOk?: () => void;
6
+ data?: any;
7
+ };
8
+ export declare const View: ({ uiEventStore }: {
9
+ uiEventStore: FcrUIEventStore;
10
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,116 @@
1
+ "use strict";
2
+
3
+ require("core-js/modules/es.array.iterator.js");
4
+ require("core-js/modules/es.object.define-property.js");
5
+ require("core-js/modules/es.object.get-own-property-descriptor.js");
6
+ require("core-js/modules/es.object.to-string.js");
7
+ require("core-js/modules/es.string.iterator.js");
8
+ require("core-js/modules/es.weak-map.js");
9
+ require("core-js/modules/esnext.weak-map.delete-all.js");
10
+ require("core-js/modules/esnext.weak-map.emplace.js");
11
+ require("core-js/modules/web.dom-collections.iterator.js");
12
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
13
+ var _typeof = require("@babel/runtime/helpers/typeof");
14
+ Object.defineProperty(exports, "__esModule", {
15
+ value: true
16
+ });
17
+ exports.View = void 0;
18
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
19
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
20
+ var _notification = _interopRequireWildcard(require("agora-ui-foundation/lib/components/notification"));
21
+ var _eventStore = require("../../common/event-store");
22
+ var _react = require("react");
23
+ var _constant = require("../../utilities/constant");
24
+ var _mobxReact = require("mobx-react");
25
+ var _context = require("./context");
26
+ var _i18n = require("agora-ui-foundation/lib/i18n");
27
+ var _type = require("agora-ui-foundation/lib/components/icon/type");
28
+ var _icon = require("agora-ui-foundation/lib/components/icon");
29
+ var _button = require("agora-ui-foundation/lib/components/button");
30
+ var _interpreterStatus = require("./interpreter-status");
31
+ require("./index.css");
32
+ var _jsxRuntime = require("react/jsx-runtime");
33
+ 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); }
34
+ 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; }
35
+ var Content = (0, _mobxReact.observer)(function (_ref) {
36
+ var onClose = _ref.onClose,
37
+ onOk = _ref.onOk;
38
+ var _useContext = (0, _react.useContext)(_context.StoreContext),
39
+ waitingRoomUserCount = _useContext.waitingRoomUserCount;
40
+ var t = (0, _i18n.useI18n)();
41
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
42
+ className: "waiting-room-confirm-dialog",
43
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
44
+ className: "waiting-room-confirm-dialog-content",
45
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
46
+ className: "waiting-room-confirm-dialog-content-icon",
47
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
48
+ type: _type.FcrIconType.FCR_WAITING_ROOM,
49
+ size: 48
50
+ })
51
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
52
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
53
+ className: "waiting-room-confirm-dialog-content-title",
54
+ children: t('fmt_attendies_tab_waitingroom')
55
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
56
+ className: "waiting-room-confirm-dialog-content-desc",
57
+ children: t('fmt_waitingroom_mainwindow_popup_label_waiting', {
58
+ reason1: waitingRoomUserCount
59
+ })
60
+ })]
61
+ })]
62
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
63
+ className: "waiting-room-confirm-dialog-btns",
64
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
65
+ className: "waiting-room-left-btn",
66
+ onClick: onClose,
67
+ children: t('fmt_waitingroom_mobile_notice_popup_button_dont_remind')
68
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
69
+ className: "waiting-room-right-btn"
70
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
71
+ onClick: onOk,
72
+ size: "XXS",
73
+ shape: "rounded",
74
+ children: t('fmt_waitingroom_mainwindow_popup_button_view_detailed')
75
+ })]
76
+ })]
77
+ });
78
+ });
79
+ var ContentMap = (0, _defineProperty2["default"])((0, _defineProperty2["default"])({}, _eventStore.NotificationContentType.WAITING_ROOM, Content), _eventStore.NotificationContentType.INTERPRETER_STATUS, _interpreterStatus.InterpreterStatus);
80
+ var View = exports.View = function View(_ref2) {
81
+ var uiEventStore = _ref2.uiEventStore;
82
+ var _useFcrNotification = (0, _notification["default"])(),
83
+ _useFcrNotification2 = (0, _slicedToArray2["default"])(_useFcrNotification, 2),
84
+ notification = _useFcrNotification2[0],
85
+ contextHolder = _useFcrNotification2[1];
86
+ (0, _react.useEffect)(function () {
87
+ var observer = {
88
+ onEvent: function onEvent(action, params) {
89
+ if (action === _constant.UIAction.SHOW_NOTIFICATION) {
90
+ var _params$duration;
91
+ var Comp = ContentMap[params.type];
92
+ notification.open({
93
+ content: /*#__PURE__*/(0, _jsxRuntime.jsx)(Comp, {
94
+ onOk: params.onOk,
95
+ onClose: params.onClose,
96
+ data: params.data
97
+ }),
98
+ duration: (_params$duration = params.duration) !== null && _params$duration !== void 0 ? _params$duration : null,
99
+ placement: params.placement,
100
+ key: params.type
101
+ });
102
+ } else if (action === _constant.UIAction.COLSE_NOTIFICATION) {
103
+ notification.close(params);
104
+ }
105
+ }
106
+ };
107
+ uiEventStore.addObserver(observer);
108
+ return function () {
109
+ uiEventStore.removeObserver(observer);
110
+ };
111
+ }, []);
112
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
113
+ className: _notification.NOTIFICATION_ROOT_CLASS_NAME,
114
+ children: contextHolder
115
+ });
116
+ };
@@ -1,10 +1,17 @@
1
- import { User } from 'agora-ui-foundation/lib/components/participants/attendee';
2
- import { ParticipantType } from '../../../utilities/constant';
1
+ import { ParticipantActionType, User } from 'agora-ui-foundation/lib/components/participants/attendee';
3
2
  import { FcrUserRole } from '../../../type';
4
3
  import './index.css';
5
4
  import { FcrPrivilegeUserRole } from 'agora-edu-core';
5
+ import { FcrUserKickOutType } from 'agora-edu-core/lib/room-control/type';
6
+ export type OperateWaitingRoomMemberDialogProps = {
7
+ type: 'remove' | 'removeAll' | 'admitAll';
8
+ tooltip: string;
9
+ title: string;
10
+ userId?: string;
11
+ };
12
+ export declare const OperateWaitingRoomMemberDialog: ({ type, tooltip, title, userId, }: OperateWaitingRoomMemberDialogProps) => import("react/jsx-runtime").JSX.Element;
6
13
  interface ParticipantAttendeeProps extends User {
7
- onParticipantsButtonClick: (action: ParticipantType, userId: string) => void;
14
+ onParticipantsButtonClick: (action: ParticipantActionType, userId: string, type?: FcrUserKickOutType | undefined) => void;
8
15
  currentPerspectiveType?: 'host' | 'attendee' | 'cohost';
9
16
  isPin: boolean;
10
17
  hasPinnedStream: boolean;
@@ -14,6 +21,8 @@ interface ParticipantAttendeeProps extends User {
14
21
  hasMutePermission: (role: FcrPrivilegeUserRole | FcrUserRole) => boolean;
15
22
  hasUnmutePermission: (role: FcrPrivilegeUserRole | FcrUserRole) => boolean;
16
23
  hasRequestStartAudioPermission: (role: FcrPrivilegeUserRole | FcrUserRole) => boolean;
24
+ activeTab: string;
25
+ moveToMainRoomByUserIds: (userId: string[]) => void;
17
26
  }
18
27
  export declare const ParticipantAttendee: (props: ParticipantAttendeeProps) => import("react/jsx-runtime").JSX.Element;
19
28
  export {};