fcr-ui-scene 3.4.5 → 3.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (421) hide show
  1. package/lib/base.js +4 -1
  2. package/lib/creator.d.ts +4 -1
  3. package/lib/creator.js +66 -3
  4. package/lib/electron/app.js +0 -3
  5. package/lib/electron/bootstrap-dev.js +2 -0
  6. package/lib/electron/bootstrap-sdk.js +2 -0
  7. package/lib/electron/main.js +14 -3
  8. package/lib/electron/plugins/devtool-shortcut.js +5 -0
  9. package/lib/electron/plugins/screenshot.js +4 -1
  10. package/lib/modules/action-bar/components/apps/app-item/index.css +3 -3
  11. package/lib/modules/action-bar/components/apps/app-item/index.js +35 -24
  12. package/lib/modules/action-bar/components/apps/app-list.d.ts +3 -0
  13. package/lib/modules/action-bar/components/apps/app-list.js +45 -0
  14. package/lib/modules/action-bar/components/apps/index.css +1 -0
  15. package/lib/modules/action-bar/components/apps/index.js +7 -4
  16. package/lib/modules/action-bar/components/apps/useAppItemOptions.d.ts +10 -2
  17. package/lib/modules/action-bar/components/apps/useAppItemOptions.js +10 -6
  18. package/lib/modules/action-bar/components/apps/useBeautyBackground.d.ts +1 -1
  19. package/lib/modules/action-bar/components/apps/useBeautyBackground.js +2 -2
  20. package/lib/modules/action-bar/components/apps/useInterpreter.d.ts +1 -1
  21. package/lib/modules/action-bar/components/apps/useInterpreter.js +6 -6
  22. package/lib/modules/action-bar/components/apps/useLiveStreaming.d.ts +1 -1
  23. package/lib/modules/action-bar/components/apps/useLiveStreaming.js +2 -2
  24. package/lib/modules/action-bar/components/apps/useWidgetList.d.ts +10 -0
  25. package/lib/modules/action-bar/components/apps/useWidgetList.js +38 -0
  26. package/lib/modules/action-bar/components/chat/index.css +8 -0
  27. package/lib/modules/action-bar/components/chat/index.js +2 -1
  28. package/lib/modules/action-bar/components/collapse/index.d.ts +8 -6
  29. package/lib/modules/action-bar/components/collapse/index.js +60 -74
  30. package/lib/modules/action-bar/components/interpreter/index.js +3 -3
  31. package/lib/modules/action-bar/components/item/index.js +1 -1
  32. package/lib/modules/action-bar/components/more/index.js +13 -7
  33. package/lib/modules/action-bar/components/notification-bar/index.d.ts +1 -1
  34. package/lib/modules/action-bar/components/notification-bar/index.js +13 -6
  35. package/lib/modules/action-bar/components/participants/index.js +1 -1
  36. package/lib/modules/action-bar/components/screen-share/index.js +1 -1
  37. package/lib/modules/action-bar/components/screen-share/submenu.js +55 -18
  38. package/lib/modules/action-bar/components/security/index.js +8 -2
  39. package/lib/modules/action-bar/components/trigger-output-language/index.js +68 -55
  40. package/lib/modules/action-bar/components/trigger-subscribe-language/index.js +35 -18
  41. package/lib/modules/action-bar/index.css +8 -0
  42. package/lib/modules/action-bar/index.d.ts +8 -0
  43. package/lib/modules/action-bar/index.js +6 -3
  44. package/lib/modules/action-bar/store.d.ts +37 -22
  45. package/lib/modules/action-bar/store.js +275 -375
  46. package/lib/modules/action-bar/types.d.ts +8 -13
  47. package/lib/modules/action-bar/view.js +3 -8
  48. package/lib/modules/audio-stream/index.d.ts +6 -1
  49. package/lib/modules/audio-stream/index.js +77 -11
  50. package/lib/modules/chat/chat-room-store.d.ts +4 -7
  51. package/lib/modules/chat/chat-room-store.js +39 -62
  52. package/lib/modules/chat/components/chat-action/index.js +2 -2
  53. package/lib/modules/chat/components/chat-bar/index.css +4 -0
  54. package/lib/modules/chat/components/chat-bar/index.d.ts +1 -1
  55. package/lib/modules/chat/components/chat-bar/index.js +18 -16
  56. package/lib/modules/chat/components/chat-select/index.js +16 -147
  57. package/lib/modules/chat/components/chat-select/select-input/index.d.ts +7 -0
  58. package/lib/modules/chat/components/chat-select/select-input/index.js +35 -0
  59. package/lib/modules/chat/components/chat-select/select-item/index.d.ts +12 -0
  60. package/lib/modules/chat/components/chat-select/select-item/index.js +153 -0
  61. package/lib/modules/chat/components/chat-tabs/index.d.ts +2 -0
  62. package/lib/modules/chat/components/chat-tabs/index.js +61 -0
  63. package/lib/modules/chat/components/message-list/chat-empty/index.d.ts +2 -0
  64. package/lib/modules/chat/components/message-list/chat-empty/index.js +26 -0
  65. package/lib/modules/chat/components/message-list/history-unread-message-button/index.d.ts +7 -0
  66. package/lib/modules/chat/components/message-list/history-unread-message-button/index.js +55 -0
  67. package/lib/modules/chat/components/message-list/index.d.ts +1 -1
  68. package/lib/modules/chat/components/message-list/index.js +55 -359
  69. package/lib/modules/chat/components/message-list/message-item/index.d.ts +15 -0
  70. package/lib/modules/chat/components/message-list/message-item/index.js +309 -0
  71. package/lib/modules/chat/components/message-list/scroll-bottom-button/index.d.ts +9 -0
  72. package/lib/modules/chat/components/message-list/scroll-bottom-button/index.js +67 -0
  73. package/lib/modules/chat/index.css +9 -0
  74. package/lib/modules/chat/index.d.ts +6 -0
  75. package/lib/modules/chat/index.js +4 -1
  76. package/lib/modules/chat/store.d.ts +17 -7
  77. package/lib/modules/chat/store.js +75 -72
  78. package/lib/modules/chat/types.d.ts +7 -7
  79. package/lib/modules/chat/types.js +2 -1
  80. package/lib/modules/chat/view.js +22 -102
  81. package/lib/modules/components/device-control/store.d.ts +4 -3
  82. package/lib/modules/components/device-control/store.js +13 -24
  83. package/lib/modules/components/leave-meeting/components/assign-host.js +17 -2
  84. package/lib/modules/components/leave-meeting/index.js +8 -7
  85. package/lib/modules/components/leave-meeting/store.d.ts +15 -7
  86. package/lib/modules/components/leave-meeting/store.js +116 -95
  87. package/lib/modules/components/member-window/components/member-actions/components/audio-control.d.ts +6 -0
  88. package/lib/modules/components/member-window/components/member-actions/components/audio-control.js +36 -0
  89. package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.d.ts +40 -0
  90. package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.js +170 -0
  91. package/lib/modules/components/member-window/components/member-actions/components/icon-status.d.ts +11 -0
  92. package/lib/modules/components/member-window/components/member-actions/components/icon-status.js +105 -0
  93. package/lib/modules/components/member-window/components/member-actions/components/layout/index.d.ts +9 -0
  94. package/lib/modules/components/member-window/components/member-actions/components/layout/index.js +42 -0
  95. package/lib/modules/components/member-window/components/member-actions/components/more-actions.d.ts +11 -0
  96. package/lib/modules/components/member-window/components/member-actions/components/more-actions.js +157 -0
  97. package/lib/modules/components/member-window/components/member-actions/components/share-status.d.ts +2 -0
  98. package/lib/modules/components/member-window/components/member-actions/components/share-status.js +34 -0
  99. package/lib/modules/components/member-window/components/member-actions/components/user-info.d.ts +16 -0
  100. package/lib/modules/components/member-window/components/member-actions/components/user-info.js +130 -0
  101. package/lib/modules/components/member-window/components/member-actions/components/user-tag.d.ts +12 -0
  102. package/lib/modules/components/member-window/components/member-actions/components/user-tag.js +57 -0
  103. package/lib/modules/components/member-window/components/member-actions/index.d.ts +3 -0
  104. package/lib/modules/components/member-window/components/member-actions/index.js +122 -0
  105. package/lib/modules/components/member-window/components/member-actions/libs/index.d.ts +2 -0
  106. package/lib/modules/components/member-window/components/member-actions/libs/index.js +24 -0
  107. package/lib/modules/components/member-window/components/member-actions/provider.d.ts +21 -0
  108. package/lib/modules/components/member-window/components/member-actions/provider.js +77 -0
  109. package/lib/modules/components/member-window/components/member-actions/store.d.ts +48 -0
  110. package/lib/modules/components/member-window/components/member-actions/store.js +307 -0
  111. package/lib/modules/components/member-window/components/member-board.d.ts +2 -0
  112. package/lib/modules/components/member-window/components/member-board.js +63 -0
  113. package/lib/modules/components/member-window/components/mic-volume.d.ts +2 -0
  114. package/lib/modules/components/member-window/components/mic-volume.js +23 -0
  115. package/lib/modules/components/member-window/components/video-player/components/local-video-player.d.ts +4 -0
  116. package/lib/modules/components/member-window/components/video-player/components/local-video-player.js +40 -0
  117. package/lib/modules/components/member-window/components/video-player/components/remote-video-player.d.ts +8 -0
  118. package/lib/modules/components/member-window/components/video-player/components/remote-video-player.js +62 -0
  119. package/lib/modules/components/member-window/components/video-player/index.d.ts +9 -0
  120. package/lib/modules/components/member-window/components/video-player/index.js +38 -0
  121. package/lib/modules/components/member-window/index.css +22 -2
  122. package/lib/modules/components/member-window/index.d.ts +10 -75
  123. package/lib/modules/components/member-window/index.js +20 -738
  124. package/lib/modules/components/member-window/types.d.ts +79 -0
  125. package/lib/modules/components/member-window/types.js +6 -0
  126. package/lib/modules/components/security-menu/index.css +0 -2
  127. package/lib/modules/components/security-menu/index.d.ts +5 -1
  128. package/lib/modules/components/security-menu/index.js +37 -59
  129. package/lib/modules/connection-gateway/index.d.ts +6 -0
  130. package/lib/modules/connection-gateway/index.js +4 -1
  131. package/lib/modules/connection-gateway/store.d.ts +12 -3
  132. package/lib/modules/connection-gateway/store.js +29 -27
  133. package/lib/modules/control-bar/components/meeting-details/index.js +11 -17
  134. package/lib/modules/control-bar/components/more-actions/index.js +5 -4
  135. package/lib/modules/control-bar/components/share-state-nav/index.js +22 -10
  136. package/lib/modules/control-bar/index.css +1 -2
  137. package/lib/modules/control-bar/index.d.ts +14 -0
  138. package/lib/modules/control-bar/index.js +10 -4
  139. package/lib/modules/control-bar/store.d.ts +40 -20
  140. package/lib/modules/control-bar/store.js +156 -191
  141. package/lib/modules/control-bar/view.js +65 -25
  142. package/lib/modules/device-pretest/audio-preview/microphone-detection.js +1 -1
  143. package/lib/modules/dialog/components/control-bar/index.d.ts +1 -1
  144. package/lib/modules/dialog/components/control-bar/index.js +43 -43
  145. package/lib/modules/dialog/components/device-setting/index.js +2 -1
  146. package/lib/modules/dialog/components/dialog-container/component/body.d.ts +1 -0
  147. package/lib/modules/dialog/components/dialog-container/component/body.js +3 -2
  148. package/lib/modules/dialog/components/dialog-container/index.d.ts +2 -0
  149. package/lib/modules/dialog/components/dialog-container/index.js +19 -13
  150. package/lib/modules/dialog/components/live-streaming/index.js +4 -2
  151. package/lib/modules/dialog/components/participant/index.js +2 -2
  152. package/lib/modules/dialog/components/share-screen-selection/index.js +3 -1
  153. package/lib/modules/dialog/components/system-preference/assets/bg1.png +0 -0
  154. package/lib/modules/dialog/components/system-preference/assets/bg2.png +0 -0
  155. package/lib/modules/dialog/components/system-preference/assets/fcr_png_host.png +0 -0
  156. package/lib/modules/dialog/components/system-preference/electron.js +6 -6
  157. package/lib/modules/dialog/components/system-preference/index.css +3 -0
  158. package/lib/modules/dialog/components/system-preference/index.d.ts +17 -2
  159. package/lib/modules/dialog/components/system-preference/index.js +47 -55
  160. package/lib/modules/dialog/components/video-window/index.d.ts +1 -1
  161. package/lib/modules/dialog/components/video-window/index.js +216 -101
  162. package/lib/modules/dialog/components/widget/electron.d.ts +5 -0
  163. package/lib/modules/dialog/components/widget/electron.js +37 -0
  164. package/lib/modules/dialog/components/widget/index.d.ts +6 -0
  165. package/lib/modules/dialog/components/widget/index.js +43 -0
  166. package/lib/modules/dialog/hooks/useElectron.d.ts +7 -0
  167. package/lib/modules/dialog/hooks/useElectron.js +226 -28
  168. package/lib/modules/dialog/index.css +1 -11
  169. package/lib/modules/dialog/index.d.ts +9 -6
  170. package/lib/modules/dialog/index.js +12 -12
  171. package/lib/modules/dialog/store.d.ts +26 -10
  172. package/lib/modules/dialog/store.js +151 -82
  173. package/lib/modules/dialog/type.d.ts +84 -0
  174. package/lib/modules/dialog/type.js +6 -0
  175. package/lib/modules/dialog/view.d.ts +1 -4
  176. package/lib/modules/dialog/view.js +12 -9
  177. package/lib/modules/event-confirm/index.css +11 -0
  178. package/lib/modules/event-confirm/index.d.ts +6 -0
  179. package/lib/modules/event-confirm/index.js +3 -2
  180. package/lib/modules/event-confirm/store.d.ts +10 -4
  181. package/lib/modules/event-confirm/store.js +91 -32
  182. package/lib/modules/event-confirm/view.js +63 -24
  183. package/lib/modules/event-toast/store.js +4 -2
  184. package/lib/modules/interpreter/action/edit-btn/index.js +5 -5
  185. package/lib/modules/interpreter/action/switch-btn/index.js +7 -7
  186. package/lib/modules/interpreter/index.d.ts +5 -1
  187. package/lib/modules/interpreter/index.js +4 -2
  188. package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/index.js +3 -3
  189. package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-user/index.js +6 -5
  190. package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-user/option-Item.js +2 -2
  191. package/lib/modules/interpreter/interpreter-list/interpreter-item/index.js +2 -2
  192. package/lib/modules/interpreter/store.d.ts +8 -5
  193. package/lib/modules/interpreter/store.js +90 -39
  194. package/lib/modules/interpreter/type.d.ts +5 -1
  195. package/lib/modules/interpreter/utils.d.ts +0 -1
  196. package/lib/modules/interpreter/utils.js +2 -23
  197. package/lib/modules/interpreter/view.js +2 -6
  198. package/lib/modules/invite/index.d.ts +4 -0
  199. package/lib/modules/invite/index.js +3 -1
  200. package/lib/modules/invite/store.d.ts +11 -2
  201. package/lib/modules/invite/store.js +27 -4
  202. package/lib/modules/layout/components/Aside.js +1 -1
  203. package/lib/modules/layout/components/Carousel.js +36 -14
  204. package/lib/modules/layout/components/Gallery.js +33 -11
  205. package/lib/modules/layout/index.css +2 -2
  206. package/lib/modules/layout/index.d.ts +6 -0
  207. package/lib/modules/layout/index.js +4 -1
  208. package/lib/modules/layout/store.d.ts +23 -10
  209. package/lib/modules/layout/store.js +185 -163
  210. package/lib/modules/layout/type.d.ts +2 -0
  211. package/lib/modules/live-streaming/index.d.ts +2 -0
  212. package/lib/modules/live-streaming/index.js +2 -2
  213. package/lib/modules/live-streaming/store.d.ts +4 -8
  214. package/lib/modules/live-streaming/store.js +9 -19
  215. package/lib/modules/notification/index.css +17 -0
  216. package/lib/modules/notification/store.js +4 -2
  217. package/lib/modules/notification/view.js +7 -2
  218. package/lib/modules/offscreen-pulling/index.d.ts +1 -0
  219. package/lib/modules/offscreen-pulling/index.js +4 -0
  220. package/lib/modules/participant/components/confirm-input/index.d.ts +6 -0
  221. package/lib/modules/participant/components/confirm-input/index.js +50 -0
  222. package/lib/modules/participant/components/mute-all/index.d.ts +3 -7
  223. package/lib/modules/participant/components/mute-all/index.js +21 -33
  224. package/lib/modules/participant/components/participants/components/footer/components/buttons.d.ts +6 -0
  225. package/lib/modules/participant/components/participants/components/footer/components/buttons.js +52 -0
  226. package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.css +60 -0
  227. package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.d.ts +2 -0
  228. package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.js +166 -0
  229. package/lib/modules/participant/components/participants/components/footer/components/drop-menu/util.d.ts +5 -0
  230. package/lib/modules/participant/components/participants/components/footer/components/drop-menu/util.js +28 -0
  231. package/lib/modules/participant/components/participants/components/footer/components/footer/index.css +13 -0
  232. package/lib/modules/participant/components/participants/components/footer/components/footer/index.d.ts +5 -0
  233. package/lib/modules/participant/components/participants/components/footer/components/footer/index.js +242 -0
  234. package/lib/modules/participant/components/participants/components/footer/index.d.ts +5 -0
  235. package/lib/modules/participant/components/participants/components/footer/index.js +48 -0
  236. package/lib/modules/participant/components/participants/components/merge/index.d.ts +11 -0
  237. package/lib/modules/participant/components/participants/components/merge/index.js +49 -0
  238. package/lib/modules/participant/components/participants/components/participants/components/attendee/index.css +191 -0
  239. package/lib/modules/participant/components/participants/components/participants/components/attendee/index.d.ts +4 -0
  240. package/lib/modules/participant/components/participants/components/participants/components/attendee/index.js +204 -0
  241. package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.css +49 -0
  242. package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.d.ts +5 -0
  243. package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.js +219 -0
  244. package/lib/modules/participant/components/participants/components/participants/components/user-row/index.d.ts +5 -0
  245. package/lib/modules/participant/components/participants/components/participants/components/user-row/index.js +70 -0
  246. package/lib/modules/participant/components/participants/components/participants/index.css +104 -0
  247. package/lib/modules/participant/components/participants/components/participants/index.d.ts +3 -0
  248. package/lib/modules/participant/components/participants/components/participants/index.js +110 -0
  249. package/lib/modules/participant/components/participants/components/render-tab/index.d.ts +2 -0
  250. package/lib/modules/participant/components/participants/components/render-tab/index.js +49 -0
  251. package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/interpreter-tag/index.d.ts +3 -0
  252. package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/interpreter-tag/index.js +48 -0
  253. package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/microphone-indicator/index.d.ts +6 -0
  254. package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/microphone-indicator/index.js +28 -0
  255. package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/user-avatar/index.d.ts +7 -0
  256. package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/user-avatar/index.js +39 -0
  257. package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.css +69 -0
  258. package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.d.ts +5 -0
  259. package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.js +135 -0
  260. package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/audio-button/index.d.ts +7 -0
  261. package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/audio-button/index.js +31 -0
  262. package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-actions-popover/index.d.ts +12 -0
  263. package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-actions-popover/index.js +82 -0
  264. package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-to-mainroom-button/index.d.ts +4 -0
  265. package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-to-mainroom-button/index.js +26 -0
  266. package/lib/modules/participant/components/participants/components/render-user/components/user-action/index.d.ts +2 -0
  267. package/lib/modules/participant/components/participants/components/render-user/components/user-action/index.js +75 -0
  268. package/lib/modules/participant/components/participants/components/render-user/index.d.ts +5 -0
  269. package/lib/modules/participant/components/participants/components/render-user/index.js +21 -0
  270. package/lib/modules/participant/components/participants/index.js +18 -112
  271. package/lib/modules/participant/components/participants/types.d.ts +96 -0
  272. package/lib/modules/participant/components/participants/types.js +37 -0
  273. package/lib/modules/participant/index.css +3 -0
  274. package/lib/modules/participant/index.d.ts +12 -0
  275. package/lib/modules/participant/index.js +7 -1
  276. package/lib/modules/participant/member-list-data-source.d.ts +2 -2
  277. package/lib/modules/participant/member-list-data-source.js +11 -17
  278. package/lib/modules/participant/store.d.ts +44 -37
  279. package/lib/modules/participant/store.js +527 -536
  280. package/lib/modules/participant/type.d.ts +2 -9
  281. package/lib/modules/pc-audio-connect/store.d.ts +1 -1
  282. package/lib/modules/pc-audio-connect/store.js +9 -6
  283. package/lib/modules/setting/audio-settings/audio-settings.js +5 -4
  284. package/lib/modules/setting/audio-settings/index.css +11 -2
  285. package/lib/modules/setting/config.js +1 -1
  286. package/lib/modules/setting/store.d.ts +1 -0
  287. package/lib/modules/setting/store.js +20 -2
  288. package/lib/modules/setting/video-settings/index.css +12 -17
  289. package/lib/modules/setting/video-settings/video-settings-basic.js +40 -44
  290. package/lib/modules/share-screen/components/selection/index.js +70 -80
  291. package/lib/modules/share-screen/index.d.ts +6 -1
  292. package/lib/modules/share-screen/index.js +4 -1
  293. package/lib/modules/share-screen/store.d.ts +37 -33
  294. package/lib/modules/share-screen/store.js +330 -438
  295. package/lib/modules/sound-effect/sound-effect-player.d.ts +0 -4
  296. package/lib/modules/sound-effect/sound-effect-player.js +4 -4
  297. package/lib/modules/state-bar/index.css +2 -15
  298. package/lib/modules/state-bar/index.d.ts +10 -0
  299. package/lib/modules/state-bar/index.js +6 -1
  300. package/lib/modules/state-bar/live-streaming-state.js +0 -17
  301. package/lib/modules/state-bar/meeting-details.js +12 -24
  302. package/lib/modules/state-bar/meeting-time.js +5 -10
  303. package/lib/modules/state-bar/store.d.ts +31 -8
  304. package/lib/modules/state-bar/store.js +146 -100
  305. package/lib/modules/state-bar/view.js +63 -32
  306. package/lib/modules/video-window/components/deviceState/index.d.ts +7 -0
  307. package/lib/modules/video-window/components/deviceState/index.js +75 -0
  308. package/lib/modules/video-window/components/members/index.css +51 -0
  309. package/lib/modules/video-window/components/members/index.d.ts +2 -0
  310. package/lib/modules/video-window/components/members/index.js +131 -0
  311. package/lib/modules/video-window/components/speaking/index.css +86 -0
  312. package/lib/modules/video-window/components/speaking/index.d.ts +3 -0
  313. package/lib/modules/video-window/components/speaking/index.js +48 -0
  314. package/lib/modules/video-window/components/topControl/index.css +35 -0
  315. package/lib/modules/video-window/components/topControl/index.d.ts +3 -0
  316. package/lib/modules/video-window/components/topControl/index.js +79 -0
  317. package/lib/modules/video-window/index.d.ts +7 -0
  318. package/lib/modules/video-window/index.js +14 -20
  319. package/lib/modules/video-window/store.d.ts +19 -88
  320. package/lib/modules/video-window/store.js +98 -365
  321. package/lib/modules/video-window/type.d.ts +40 -4
  322. package/lib/modules/video-window/type.js +4 -4
  323. package/lib/modules/video-window/view.js +11 -23
  324. package/lib/modules/whiteboard/index.d.ts +1 -0
  325. package/lib/modules/whiteboard/index.js +7 -4
  326. package/lib/modules/widget/index.css +17 -0
  327. package/lib/modules/widget/index.d.ts +10 -0
  328. package/lib/modules/widget/index.js +114 -0
  329. package/lib/modules/widget/sdk.d.ts +30 -0
  330. package/lib/modules/widget/sdk.js +224 -0
  331. package/lib/modules/widget/store.d.ts +14 -0
  332. package/lib/modules/widget/store.js +28 -0
  333. package/lib/modules/widget/type.d.ts +156 -0
  334. package/lib/modules/widget/type.js +6 -0
  335. package/lib/modules/widget/view.d.ts +2 -0
  336. package/lib/modules/widget/view.js +47 -0
  337. package/lib/modules/widget/web-widget.d.ts +29 -0
  338. package/lib/modules/widget/web-widget.js +234 -0
  339. package/lib/providers/ability-provider.d.ts +24 -0
  340. package/lib/providers/ability-provider.js +38 -0
  341. package/lib/providers/chat-provider.d.ts +16 -9
  342. package/lib/providers/chat-provider.js +76 -8
  343. package/lib/providers/device-privilege-provider.d.ts +5 -1
  344. package/lib/providers/device-privilege-provider.js +21 -1
  345. package/lib/providers/device-provider.js +5 -2
  346. package/lib/providers/device-stream-provider.d.ts +15 -3
  347. package/lib/providers/device-stream-provider.js +118 -34
  348. package/lib/providers/dialog-provider.d.ts +9 -8
  349. package/lib/providers/dialog-provider.js +8 -4
  350. package/lib/providers/event-provider.js +4 -2
  351. package/lib/providers/interpreter-provider.d.ts +7 -26
  352. package/lib/providers/interpreter-provider.js +473 -706
  353. package/lib/providers/local-storage-provider.d.ts +6 -1
  354. package/lib/providers/local-storage-provider.js +15 -2
  355. package/lib/providers/message-provider.js +4 -2
  356. package/lib/providers/phone-audio-provider.js +24 -18
  357. package/lib/providers/privilege-provider.d.ts +13 -12
  358. package/lib/providers/privilege-provider.js +19 -11
  359. package/lib/providers/renderer-provider.d.ts +5 -0
  360. package/lib/providers/renderer-provider.js +8 -1
  361. package/lib/providers/room-provider.d.ts +7 -17
  362. package/lib/providers/room-provider.js +113 -161
  363. package/lib/providers/screen-share-provider.d.ts +19 -0
  364. package/lib/providers/screen-share-provider.js +102 -10
  365. package/lib/providers/widget-provider.d.ts +52 -0
  366. package/lib/providers/widget-provider.js +171 -0
  367. package/lib/scenes/main-scene.d.ts +11 -0
  368. package/lib/scenes/main-scene.js +60 -33
  369. package/lib/scenes/waiting-scene.d.ts +9 -0
  370. package/lib/scenes/waiting-scene.js +27 -26
  371. package/lib/schema.d.ts +114 -0
  372. package/lib/schema.js +77 -0
  373. package/lib/shared-data-source/chat-data.d.ts +11 -0
  374. package/lib/shared-data-source/chat-data.js +17 -6
  375. package/lib/shared-data-source/interpreter.d.ts +34 -21
  376. package/lib/shared-data-source/interpreter.js +104 -103
  377. package/lib/shared-data-source/meeting-time.d.ts +68 -0
  378. package/lib/shared-data-source/meeting-time.js +299 -0
  379. package/lib/shared-data-source/member-data.d.ts +126 -0
  380. package/lib/shared-data-source/member-data.js +451 -0
  381. package/lib/shared-data-source/pin-data.d.ts +8 -4
  382. package/lib/shared-data-source/pin-data.js +92 -4
  383. package/lib/shared-data-source/security-data.d.ts +35 -0
  384. package/lib/shared-data-source/security-data.js +156 -0
  385. package/lib/shared-data-source/setting.d.ts +3 -1
  386. package/lib/shared-data-source/setting.js +12 -1
  387. package/lib/shared-data-source/video-window.d.ts +7 -8
  388. package/lib/shared-data-source/video-window.js +97 -94
  389. package/lib/shared-data-source/waiting-room.d.ts +29 -2
  390. package/lib/shared-data-source/waiting-room.js +103 -39
  391. package/lib/translations/enUS.d.ts +25 -12
  392. package/lib/translations/enUS.js +47 -68
  393. package/lib/translations/zhCN.d.ts +26 -12
  394. package/lib/translations/zhCN.js +63 -83
  395. package/lib/type.d.ts +64 -48
  396. package/lib/type.js +14 -1
  397. package/lib/ui-manager.d.ts +3 -2
  398. package/lib/ui-manager.js +8 -7
  399. package/lib/ui-scene.d.ts +7 -1
  400. package/lib/ui-scene.js +187 -97
  401. package/lib/utilities/constant.d.ts +7 -3
  402. package/lib/utilities/constant.js +4 -0
  403. package/lib/utilities/default-config.d.ts +5 -1
  404. package/lib/utilities/default-config.js +28 -2
  405. package/lib/utilities/logger.d.ts +8 -0
  406. package/lib/utilities/logger.js +42 -0
  407. package/lib/utilities/meeting-detail.js +11 -10
  408. package/lib/utilities/parameters.d.ts +4 -0
  409. package/lib/utilities/parameters.js +13 -1
  410. package/lib/utilities/renderer.d.ts +1 -0
  411. package/lib/utilities/renderer.js +4 -1
  412. package/lib/utilities/tools.d.ts +7 -6
  413. package/lib/utilities/tools.js +2 -6
  414. package/lib/utilities/validate-params.d.ts +2 -0
  415. package/lib/utilities/validate-params.js +16 -0
  416. package/lib/waiting-room-control-manager.d.ts +28 -0
  417. package/lib/waiting-room-control-manager.js +212 -0
  418. package/lib/widget-sdk.d.ts +2 -0
  419. package/lib/widget-sdk.js +13 -0
  420. package/package.json +7 -6
  421. package/public/index.html +12 -6
@@ -0,0 +1,166 @@
1
+ "use strict";
2
+
3
+ require("core-js/modules/es.symbol.js");
4
+ require("core-js/modules/es.array.for-each.js");
5
+ require("core-js/modules/es.array.push.js");
6
+ require("core-js/modules/es.object.define-properties.js");
7
+ require("core-js/modules/es.object.define-property.js");
8
+ require("core-js/modules/es.object.get-own-property-descriptor.js");
9
+ require("core-js/modules/es.object.get-own-property-descriptors.js");
10
+ require("core-js/modules/es.object.keys.js");
11
+ require("core-js/modules/esnext.async-iterator.for-each.js");
12
+ require("core-js/modules/esnext.iterator.for-each.js");
13
+ require("core-js/modules/web.dom-collections.for-each.js");
14
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
15
+ Object.defineProperty(exports, "__esModule", {
16
+ value: true
17
+ });
18
+ exports.RoomControlDropMenu = void 0;
19
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
20
+ require("core-js/modules/es.array.filter.js");
21
+ require("core-js/modules/es.array.map.js");
22
+ require("core-js/modules/es.array.unshift.js");
23
+ require("core-js/modules/es.object.to-string.js");
24
+ require("core-js/modules/esnext.async-iterator.filter.js");
25
+ require("core-js/modules/esnext.async-iterator.map.js");
26
+ require("core-js/modules/esnext.iterator.constructor.js");
27
+ require("core-js/modules/esnext.iterator.filter.js");
28
+ require("core-js/modules/esnext.iterator.map.js");
29
+ var _dropMenu = require("agora-ui-foundation/lib/components/drop-menu");
30
+ var _mobxReact = require("mobx-react");
31
+ var _react = require("react");
32
+ var _i18n = require("agora-ui-foundation/lib/i18n");
33
+ require("./index.css");
34
+ var _util = require("./util");
35
+ var _icon = require("agora-ui-foundation/lib/components/icon");
36
+ var _type = require("agora-ui-foundation/lib/components/icon/type");
37
+ var _store = require("../../../../../../store");
38
+ var _constant = require("../../../../../../../../utilities/constant");
39
+ var _fcrCore = require("fcr-core");
40
+ var _jsxRuntime = require("react/jsx-runtime");
41
+ 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; }
42
+ 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; }
43
+ var RoomControlDropMenu = exports.RoomControlDropMenu = (0, _mobxReact.observer)(function () {
44
+ var _useContext = (0, _react.useContext)(_store.StoreContext),
45
+ allowUnmuteSelfAudio = _useContext.allowUnmuteSelfAudio,
46
+ allowJoinWithMuteAudio = _useContext.allowJoinWithMuteAudio,
47
+ isLockRoomEnabled = _useContext.isLockRoomEnabled,
48
+ isWaitingRoomEnabled = _useContext.isWaitingRoomEnabled,
49
+ allowChangeSelfName = _useContext.allowChangeSelfName,
50
+ allowUnmuteSelfVideo = _useContext.allowUnmuteSelfVideo,
51
+ handlerRoomControlAction = _useContext.handlerRoomControlAction,
52
+ hasRevokeHostPermission = _useContext.hasRevokeHostPermission,
53
+ localUserRole = _useContext.localUserRole,
54
+ showBecomeHostButton = _useContext.showBecomeHostButton,
55
+ isHostKeyEnabled = _useContext.isHostKeyEnabled;
56
+ var t = (0, _i18n.useI18n)();
57
+
58
+ // 定义所有操作项
59
+ var allActions = [{
60
+ type: 'title',
61
+ title: t('fmt_internalsetting_other_join'),
62
+ key: ''
63
+ },
64
+ // createCheckboxMenuItem(
65
+ // 'mute_all',
66
+ // t('fmt_security_buttons_allhandsdown'),
67
+ // false,
68
+ // 'disabled',
69
+ // () => {},
70
+ // UNDERLINE_CLASS
71
+ // ),
72
+ (0, _util.createCheckboxMenuItem)('join_room_with_mute', t('fmt_security_options_silence'), allowJoinWithMuteAudio, 'primary', function () {
73
+ return handlerRoomControlAction(_constant.FcrUIRoomControlType.JOIN_WITH_MUTE_AUDIO, !allowJoinWithMuteAudio);
74
+ }, ''),
75
+ // createCheckboxMenuItem(
76
+ // 'play_join_leave_sound',
77
+ // t('fmt_security_options_playnotification'),
78
+ // false,
79
+ // 'disabled',
80
+ // () => handlerRoomControlAction(FcrUIRoomControlType.PLAY_JOIN_LEAVE_SOUND),
81
+ // ''
82
+ // ),
83
+ (0, _util.createCheckboxMenuItem)('lock_room', t('fmt_screenshare_controlbar_security_list_lock'), isLockRoomEnabled, 'primary', function () {
84
+ return handlerRoomControlAction(_constant.FcrUIRoomControlType.LOCK_ROOM, !isLockRoomEnabled);
85
+ }, ''),
86
+ // createCheckboxMenuItem(
87
+ // 'enable_waiting_room',
88
+ // t('fmt_screenshare_options_allow'),
89
+ // isWaitingRoomEnabled,
90
+ // 'disabled',
91
+ // () =>
92
+ // handlerRoomControlAction(FcrUIRoomControlType.ENABLE_WAITING_ROOM, !isWaitingRoomEnabled),
93
+ // UNDERLINE_CLASS
94
+ // ),
95
+ {
96
+ type: 'line',
97
+ title: '',
98
+ key: ''
99
+ }, {
100
+ title: t('fmt_screenshare_options_allow'),
101
+ key: 'allow_attendee_title',
102
+ type: 'title'
103
+ }, (0, _util.createCheckboxMenuItem)('unmute_yourself', t('fmt_screenshare_controlbar_security_list_participant_unmute'), allowUnmuteSelfAudio, 'primary', function () {
104
+ return handlerRoomControlAction(_constant.FcrUIRoomControlType.ALLOW_ATTENDEE_TO_UNMUTE, !allowUnmuteSelfAudio);
105
+ }, ''), (0, _util.createCheckboxMenuItem)('start_video', t('fmt_security_options_openvideo'), allowUnmuteSelfVideo, 'primary', function () {
106
+ return handlerRoomControlAction(_constant.FcrUIRoomControlType.ALLOW_ATTENDEE_TO_OPEN_CAMERA, !allowUnmuteSelfVideo);
107
+ }, ''), (0, _util.createCheckboxMenuItem)('change_name', t('fmt_security_setting_label_rename'), allowChangeSelfName, 'primary', function () {
108
+ return handlerRoomControlAction(_constant.FcrUIRoomControlType.RENAME, !allowChangeSelfName);
109
+ }, '')
110
+ // 移除参与者项暂时注释
111
+ // createCheckboxMenuItem(
112
+ // 'remove_participants',
113
+ // 'fmt_security_options_removemultiple',
114
+ // false,
115
+ // 'danger',
116
+ // () => {},
117
+ // 'room-control-drop-disable'
118
+ // )
119
+ ];
120
+
121
+ // 如果有撤销主持人权限,添加撤销主持人菜单项
122
+ if (hasRevokeHostPermission) {
123
+ allActions.unshift((0, _util.createCheckboxMenuItem)('revoke_host', t('fmt_security_options_restract'), false, 'primary', function () {
124
+ return handlerRoomControlAction(_constant.FcrUIRoomControlType.REVOKE_HOST);
125
+ }, _util.UNDERLINE_CLASS));
126
+ }
127
+ if (localUserRole === _fcrCore.FcrUserRole.COHOST && showBecomeHostButton && isHostKeyEnabled) {
128
+ allActions.unshift({
129
+ type: 'primary',
130
+ title: t('fmt_hostkey_participant_button_claim_host'),
131
+ key: 'become_host',
132
+ onButtonClick: function onButtonClick() {
133
+ handlerRoomControlAction(_constant.FcrUIRoomControlType.ACTION_REVOKE_HOST_BY_TICKET, !hasRevokeHostPermission);
134
+ },
135
+ icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
136
+ type: _type.FcrIconType.FCR_HOST,
137
+ size: 24,
138
+ colors: {
139
+ iconPrimary: 'var(--fcr_ui_scene_icontext1)'
140
+ }
141
+ })
142
+ }, {
143
+ type: 'line',
144
+ title: '',
145
+ key: ''
146
+ });
147
+ }
148
+
149
+ // 过滤掉禁用的项,并处理主要类型的项
150
+ var filteredActions = allActions.filter(function (action) {
151
+ return action.type !== 'disabled';
152
+ }).map(function (action) {
153
+ if (action.type === 'primary') {
154
+ return _objectSpread(_objectSpread({}, action), {}, {
155
+ title: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
156
+ className: _util.CHECKBOX_WRAPPER_CLASS,
157
+ children: action.title
158
+ })
159
+ });
160
+ }
161
+ return action;
162
+ });
163
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_dropMenu.FcrDropMenu, {
164
+ options: filteredActions
165
+ });
166
+ });
@@ -0,0 +1,5 @@
1
+ import { FcrDropMenuOption } from 'agora-ui-foundation/lib/components/drop-menu';
2
+ export declare const CHECKBOX_STYLE_TYPE = "white";
3
+ export declare const UNDERLINE_CLASS = "room-control-drop-with-under-line";
4
+ export declare const CHECKBOX_WRAPPER_CLASS = "security-drop-menu-checkbox";
5
+ export declare const createCheckboxMenuItem: (key: string, label: string, checked: boolean | undefined, type?: "primary" | "danger" | "title" | "disabled" | "group", onButtonClick?: () => void, classNames?: string) => FcrDropMenuOption;
@@ -0,0 +1,28 @@
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.createCheckboxMenuItem = exports.UNDERLINE_CLASS = exports.CHECKBOX_WRAPPER_CLASS = exports.CHECKBOX_STYLE_TYPE = void 0;
8
+ var _checkbox = require("agora-ui-foundation/lib/components/checkbox");
9
+ var _jsxRuntime = require("react/jsx-runtime");
10
+ var CHECKBOX_STYLE_TYPE = exports.CHECKBOX_STYLE_TYPE = 'white';
11
+ var UNDERLINE_CLASS = exports.UNDERLINE_CLASS = 'room-control-drop-with-under-line';
12
+ var CHECKBOX_WRAPPER_CLASS = exports.CHECKBOX_WRAPPER_CLASS = 'security-drop-menu-checkbox';
13
+
14
+ // 封装创建复选框菜单项的函数
15
+ var createCheckboxMenuItem = exports.createCheckboxMenuItem = function createCheckboxMenuItem(key, label, checked, type, onButtonClick) {
16
+ var classNames = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : '';
17
+ return {
18
+ title: /*#__PURE__*/(0, _jsxRuntime.jsx)(_checkbox.FcrCheckbox, {
19
+ checked: checked,
20
+ label: label,
21
+ styleType: CHECKBOX_STYLE_TYPE
22
+ }),
23
+ key: key,
24
+ type: type,
25
+ classNames: classNames,
26
+ onButtonClick: onButtonClick
27
+ };
28
+ };
@@ -0,0 +1,13 @@
1
+ .fcr-participant__footer-placeholder {
2
+ flex: 30%;
3
+ }
4
+ .footer-more-actions {
5
+ display: flex;
6
+ justify-content: flex-end;
7
+ align-items: center;
8
+ padding: 0 1rem;
9
+ height: 100%;
10
+ }
11
+ .fcr-participant__footer-creator button {
12
+ flex: 1;
13
+ }
@@ -0,0 +1,5 @@
1
+ import { ParticipantsFooterParticipantProps, ParticipantsHostFooterProps } from '../../../../types';
2
+ import './index.css';
3
+ export declare const FcrParticipantsFooter: (props: ParticipantsHostFooterProps) => import("react/jsx-runtime").JSX.Element;
4
+ export declare const FcrParticipantsFooterRename: ({ onRoomControlClick, }: ParticipantsFooterParticipantProps) => import("react/jsx-runtime").JSX.Element;
5
+ export declare const FcrParticipantsFooterWithRevokeHost: ({ type, onRoomControlClick, }: ParticipantsFooterParticipantProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,242 @@
1
+ "use strict";
2
+
3
+ require("core-js/modules/es.object.define-property.js");
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.FcrParticipantsFooterWithRevokeHost = exports.FcrParticipantsFooterRename = exports.FcrParticipantsFooter = void 0;
9
+ require("core-js/modules/es.array.unshift.js");
10
+ var _react = _interopRequireDefault(require("react"));
11
+ var _i18n = require("agora-ui-foundation/lib/i18n");
12
+ var _checkbox = require("agora-ui-foundation/lib/components/checkbox");
13
+ var _dropMenu = require("agora-ui-foundation/lib/components/drop-menu");
14
+ var _tooltip = require("agora-ui-foundation/lib/components/tooltip");
15
+ var _button = require("agora-ui-foundation/lib/components/button");
16
+ var _popover = require("agora-ui-foundation/lib/components/popover");
17
+ var _type = require("agora-ui-foundation/lib/components/icon/type");
18
+ require("./index.css");
19
+ var _jsxRuntime = require("react/jsx-runtime");
20
+ // 提取常量
21
+ var ACTION_MUTE_ALL_AUDIO = 'MUTE_ALL_AUDIO';
22
+ var ACTION_UNMUTE_ALL_AUDIO = 'UNMUTE_ALL_AUDIO';
23
+ var ACTION_REVOKE_HOST = 'REVOKE_HOST';
24
+ var ACTION_PLAY_JOIN_LEAVE_SOUND = 'PLAY_JOIN_LEAVE_SOUND';
25
+ var ACTION_LOCK_ROOM = 'LOCK_ROOM';
26
+ var ACTION_ENABLE_WAITING_ROOM = 'ENABLE_WAITING_ROOM';
27
+ var ACTION_ALLOW_ATTENDEE_TO_UNMUTE = 'ALLOW_ATTENDEE_TO_UNMUTE';
28
+ var ACTION_RENAME = 'RENAME';
29
+ var ACTION_ALLOW_ATTENDEE_TO_OPEN_CAMERA = 'ALLOW_ATTENDEE_TO_OPEN_CAMERA';
30
+ var ACTION_REVOKE_HOST_BY_TICKET = 'ACTION_REVOKE_HOST_BY_TICKET';
31
+ var ACTION_CHANGE_NAME = 'ACTION_CHANGE_NAME';
32
+
33
+ // 提取创建下拉菜单数据的函数
34
+ var createAllActions = function createAllActions(t, onRoomControlClick, hasRevokeHostPermission) {
35
+ var allActions = [{
36
+ title: /*#__PURE__*/(0, _jsxRuntime.jsx)(_checkbox.FcrCheckbox, {
37
+ checked: false,
38
+ label: t('fmt_security_buttons_allhandsdown'),
39
+ styleType: "white"
40
+ }),
41
+ key: 'mute_all',
42
+ type: 'disabled',
43
+ onButtonClick: function onButtonClick() {},
44
+ classNames: 'room-control-drop-with-under-line'
45
+ }, {
46
+ title: /*#__PURE__*/(0, _jsxRuntime.jsx)(_checkbox.FcrCheckbox, {
47
+ checked: true,
48
+ label: t('fmt_security_options_silence'),
49
+ styleType: "white"
50
+ }),
51
+ key: 'join_room_with_mute',
52
+ type: 'primary',
53
+ onButtonClick: function onButtonClick() {
54
+ onRoomControlClick(ACTION_MUTE_ALL_AUDIO);
55
+ }
56
+ }, {
57
+ title: /*#__PURE__*/(0, _jsxRuntime.jsx)(_checkbox.FcrCheckbox, {
58
+ checked: false,
59
+ label: t('fmt_security_options_playnotification'),
60
+ styleType: "white"
61
+ }),
62
+ key: 'play_join_leave_sound',
63
+ type: 'disabled',
64
+ onButtonClick: function onButtonClick() {
65
+ onRoomControlClick(ACTION_PLAY_JOIN_LEAVE_SOUND);
66
+ }
67
+ }, {
68
+ title: /*#__PURE__*/(0, _jsxRuntime.jsx)(_checkbox.FcrCheckbox, {
69
+ checked: false,
70
+ label: t('fmt_screenshare_controlbar_security_list_lock'),
71
+ styleType: "white"
72
+ }),
73
+ key: 'lock_room',
74
+ type: 'disabled',
75
+ onButtonClick: function onButtonClick() {
76
+ onRoomControlClick(ACTION_LOCK_ROOM);
77
+ }
78
+ }, {
79
+ title: /*#__PURE__*/(0, _jsxRuntime.jsx)(_checkbox.FcrCheckbox, {
80
+ checked: false,
81
+ label: t('fmt_security_options_activatewaitingroom'),
82
+ styleType: "white"
83
+ }),
84
+ key: 'enable_waiting_room',
85
+ type: 'disabled',
86
+ onButtonClick: function onButtonClick() {
87
+ onRoomControlClick(ACTION_ENABLE_WAITING_ROOM);
88
+ },
89
+ classNames: 'room-control-drop-with-under-line'
90
+ }, {
91
+ title: t('fmt_screenshare_options_allow'),
92
+ key: 'allow_attendee_title',
93
+ type: 'title'
94
+ }, {
95
+ title: /*#__PURE__*/(0, _jsxRuntime.jsx)(_checkbox.FcrCheckbox, {
96
+ checked: false,
97
+ label: t('fmt_screenshare_controlbar_security_list_participant_unmute'),
98
+ styleType: "white"
99
+ }),
100
+ key: 'unmute_yourself',
101
+ type: 'primary',
102
+ onButtonClick: function onButtonClick() {
103
+ onRoomControlClick(ACTION_ALLOW_ATTENDEE_TO_UNMUTE);
104
+ }
105
+ }, {
106
+ title: /*#__PURE__*/(0, _jsxRuntime.jsx)(_checkbox.FcrCheckbox, {
107
+ checked: false,
108
+ label: t('fmt_screenshare_controlbar_security_list_participant_changeName'),
109
+ styleType: "white"
110
+ }),
111
+ key: 'rename',
112
+ type: 'disabled',
113
+ onButtonClick: function onButtonClick() {
114
+ onRoomControlClick(ACTION_RENAME);
115
+ }
116
+ }, {
117
+ title: /*#__PURE__*/(0, _jsxRuntime.jsx)(_checkbox.FcrCheckbox, {
118
+ checked: false,
119
+ label: t('fmt_security_start_video'),
120
+ styleType: "white"
121
+ }),
122
+ key: 'start_video',
123
+ type: 'primary',
124
+ onButtonClick: function onButtonClick() {
125
+ onRoomControlClick(ACTION_ALLOW_ATTENDEE_TO_OPEN_CAMERA);
126
+ },
127
+ classNames: 'room-control-drop-with-under-line'
128
+ }];
129
+ if (hasRevokeHostPermission) {
130
+ allActions.unshift({
131
+ title: /*#__PURE__*/(0, _jsxRuntime.jsx)(_checkbox.FcrCheckbox, {
132
+ checked: false,
133
+ label: t('fmt_security_options_restract'),
134
+ styleType: "white"
135
+ }),
136
+ key: 'revoke_host',
137
+ type: 'primary',
138
+ onButtonClick: function onButtonClick() {
139
+ onRoomControlClick(ACTION_REVOKE_HOST);
140
+ },
141
+ classNames: 'room-control-drop-with-under-line'
142
+ });
143
+ }
144
+ return allActions;
145
+ };
146
+ var FcrParticipantsFooter = exports.FcrParticipantsFooter = function FcrParticipantsFooter(props) {
147
+ var _props$onRoomControlC = props.onRoomControlClick,
148
+ onRoomControlClick = _props$onRoomControlC === void 0 ? function () {} : _props$onRoomControlC,
149
+ moreDropMenu = props.moreDropMenu,
150
+ hasRevokeHostPermission = props.hasRevokeHostPermission;
151
+ var t = (0, _i18n.useI18n)();
152
+ var ParticipantsFooterMore = function ParticipantsFooterMore() {
153
+ var allActions = createAllActions(t, onRoomControlClick, !!hasRevokeHostPermission);
154
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_dropMenu.FcrDropMenu, {
155
+ options: allActions
156
+ });
157
+ };
158
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
159
+ className: "fcr-participant__footer",
160
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
161
+ content: t('fmt_participants_options_allmute'),
162
+ mouseEnterDelay: 0,
163
+ trigger: "hover",
164
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
165
+ type: "secondary-bordered",
166
+ size: "XS",
167
+ onClick: function onClick() {
168
+ return onRoomControlClick(ACTION_MUTE_ALL_AUDIO);
169
+ },
170
+ children: t('fmt_participants_options_allmute')
171
+ })
172
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
173
+ content: t('fmt_participants_options_allunmute'),
174
+ mouseEnterDelay: 0,
175
+ trigger: "hover",
176
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
177
+ type: "secondary-bordered",
178
+ size: "XS",
179
+ onClick: function onClick() {
180
+ return onRoomControlClick(ACTION_UNMUTE_ALL_AUDIO);
181
+ },
182
+ children: t('fmt_participants_button_unmuteAll')
183
+ })
184
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_popover.FcrPopover, {
185
+ trigger: "click",
186
+ overlayClassName: "attendee__footer-more-actions",
187
+ mouseEnterDelay: 0,
188
+ overlayInnerStyle: {
189
+ boxShadow: 'none',
190
+ border: 'none',
191
+ minWidth: '256px',
192
+ width: 'auto',
193
+ maxWidth: '300px'
194
+ },
195
+ content: moreDropMenu ? moreDropMenu : /*#__PURE__*/(0, _jsxRuntime.jsx)(ParticipantsFooterMore, {}),
196
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
197
+ type: "secondary-bordered",
198
+ size: "XS",
199
+ postIcon: _type.FcrIconType.FCR_DROPDOWN,
200
+ children: t('fmt_participants_button_meetingManagement')
201
+ })
202
+ })]
203
+ });
204
+ };
205
+ var FcrParticipantsFooterRename = exports.FcrParticipantsFooterRename = function FcrParticipantsFooterRename(_ref) {
206
+ var onRoomControlClick = _ref.onRoomControlClick;
207
+ var t = (0, _i18n.useI18n)();
208
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
209
+ content: t('fmt_additional_popup_label_change_nickname'),
210
+ mouseEnterDelay: 0,
211
+ trigger: "hover",
212
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
213
+ type: "secondary-bordered",
214
+ shape: "rounded",
215
+ size: "XS",
216
+ onClick: function onClick() {
217
+ return onRoomControlClick === null || onRoomControlClick === void 0 ? void 0 : onRoomControlClick(ACTION_CHANGE_NAME);
218
+ },
219
+ children: t('fmt_additional_popup_label_change_nickname')
220
+ })
221
+ });
222
+ };
223
+
224
+ // 如果当前不是host只是participant,并且有revoke的权限
225
+ var FcrParticipantsFooterWithRevokeHost = exports.FcrParticipantsFooterWithRevokeHost = function FcrParticipantsFooterWithRevokeHost(_ref2) {
226
+ var type = _ref2.type,
227
+ onRoomControlClick = _ref2.onRoomControlClick;
228
+ var t = (0, _i18n.useI18n)();
229
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
230
+ content: t(type === 'revoke' ? 'fmt_hostkey_participant_button_reclaim_host' : 'fmt_hostkey_participant_button_claim_host'),
231
+ mouseEnterDelay: 0,
232
+ trigger: "hover",
233
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
234
+ type: "secondary-bordered",
235
+ size: "XS",
236
+ onClick: function onClick() {
237
+ return onRoomControlClick === null || onRoomControlClick === void 0 ? void 0 : onRoomControlClick(type === 'revoke' ? ACTION_REVOKE_HOST : ACTION_REVOKE_HOST_BY_TICKET);
238
+ },
239
+ children: type === 'revoke' ? t('fmt_hostkey_participant_button_reclaim_host') : t('fmt_hostkey_participant_button_claim_host')
240
+ })
241
+ });
242
+ };
@@ -0,0 +1,5 @@
1
+ declare const ParticipantFooter: ({ handlerRoomControlClick, isLocalUserHost, }: {
2
+ handlerRoomControlClick: (action: string, userId?: string) => void;
3
+ isLocalUserHost: boolean;
4
+ }) => import("react/jsx-runtime").JSX.Element;
5
+ export default ParticipantFooter;
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+
3
+ require("core-js/modules/es.object.define-property.js");
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = void 0;
9
+ var _mobxReact = require("mobx-react");
10
+ var _react = require("react");
11
+ var _buttons = _interopRequireDefault(require("./components/buttons"));
12
+ var _dropMenu = require("./components/drop-menu");
13
+ var _store = require("../../../../store");
14
+ var _footer = require("./components/footer");
15
+ var _type = require("../../../../../../type");
16
+ var _jsxRuntime = require("react/jsx-runtime");
17
+ var ParticipantFooter = (0, _mobxReact.observer)(function (_ref) {
18
+ var handlerRoomControlClick = _ref.handlerRoomControlClick,
19
+ isLocalUserHost = _ref.isLocalUserHost;
20
+ var _useContext = (0, _react.useContext)(_store.StoreContext),
21
+ activeTab = _useContext.activeTab,
22
+ hasRevokeHostPermission = _useContext.hasRevokeHostPermission,
23
+ openRemoveAdmitWaitingRoomDialog = _useContext.openRemoveAdmitWaitingRoomDialog,
24
+ showBecomeHostButton = _useContext.showBecomeHostButton,
25
+ isHostKeyEnabled = _useContext.isHostKeyEnabled,
26
+ allowChangeSelfName = _useContext.allowChangeSelfName;
27
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
28
+ children: activeTab === _type.FcrUIRoomType.MAIN_ROOM ? isLocalUserHost ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_footer.FcrParticipantsFooter, {
29
+ hasRevokeHostPermission: hasRevokeHostPermission,
30
+ onRoomControlClick: handlerRoomControlClick,
31
+ moreDropMenu: /*#__PURE__*/(0, _jsxRuntime.jsx)(_dropMenu.RoomControlDropMenu, {})
32
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
33
+ className: "fcr-participant__footer fcr-participant__footer-creator",
34
+ children: [hasRevokeHostPermission && /*#__PURE__*/(0, _jsxRuntime.jsx)(_footer.FcrParticipantsFooterWithRevokeHost, {
35
+ type: "revoke",
36
+ onRoomControlClick: handlerRoomControlClick
37
+ }), showBecomeHostButton && isHostKeyEnabled && /*#__PURE__*/(0, _jsxRuntime.jsx)(_footer.FcrParticipantsFooterWithRevokeHost, {
38
+ type: "become",
39
+ onRoomControlClick: handlerRoomControlClick
40
+ }), allowChangeSelfName && /*#__PURE__*/(0, _jsxRuntime.jsx)(_footer.FcrParticipantsFooterRename, {
41
+ onRoomControlClick: handlerRoomControlClick
42
+ })]
43
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_buttons["default"], {
44
+ openRemoveAdmitWaitingRoomDialog: openRemoveAdmitWaitingRoomDialog
45
+ })
46
+ });
47
+ });
48
+ var _default = exports["default"] = ParticipantFooter;
@@ -0,0 +1,11 @@
1
+ declare const MergeConfrimDialog: ({ getContainer, showMergeConfirmDialog, onClose, onOk, mergeUserInfo, }: {
2
+ getContainer?: () => HTMLElement;
3
+ showMergeConfirmDialog: boolean;
4
+ onClose: () => void;
5
+ onOk: () => void;
6
+ mergeUserInfo: {
7
+ userName: string;
8
+ userId: string;
9
+ } | undefined;
10
+ }) => import("react/jsx-runtime").JSX.Element;
11
+ export default MergeConfrimDialog;
@@ -0,0 +1,49 @@
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["default"] = void 0;
8
+ var _dialog = require("agora-ui-foundation/lib/components/dialog");
9
+ var _i18n = require("agora-ui-foundation/lib/i18n");
10
+ var _jsxRuntime = require("react/jsx-runtime");
11
+ var MergeConfrimDialog = function MergeConfrimDialog(_ref) {
12
+ var getContainer = _ref.getContainer,
13
+ showMergeConfirmDialog = _ref.showMergeConfirmDialog,
14
+ onClose = _ref.onClose,
15
+ onOk = _ref.onOk,
16
+ mergeUserInfo = _ref.mergeUserInfo;
17
+ var t = (0, _i18n.useI18n)();
18
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_dialog.FcrConfirmDialog, {
19
+ getContainer: getContainer,
20
+ visible: showMergeConfirmDialog,
21
+ footer: null,
22
+ okButtonVisible: false,
23
+ cancelButtonVisible: false,
24
+ width: 280,
25
+ onClose: onClose,
26
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
27
+ className: "participants-container-merge-content",
28
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
29
+ className: "participants-container-merge-title",
30
+ children: t('fmt_broadcast_livestream_merge', {
31
+ reason1: mergeUserInfo === null || mergeUserInfo === void 0 ? void 0 : mergeUserInfo.userName
32
+ })
33
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
34
+ onClick: function onClick() {
35
+ onOk();
36
+ },
37
+ className: "participants-container-merge-button participants-container-merge-confirm",
38
+ children: t('fmt_pstn_button_merge')
39
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
40
+ onClick: function onClick() {
41
+ onClose();
42
+ },
43
+ className: "participants-container-merge-button participants-container-merge-cancel",
44
+ children: t('fmt_attendies_button_cancel')
45
+ })]
46
+ })
47
+ });
48
+ };
49
+ var _default = exports["default"] = MergeConfrimDialog;