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.
- package/dist/electron/app.js +148 -0
- package/dist/electron/bootstrap-dev.js +51 -0
- package/dist/electron/bootstrap-sdk.js +56 -0
- package/dist/electron/default-options.js +25 -0
- package/dist/electron/env.js +13 -0
- package/dist/electron/index.js +20 -0
- package/dist/electron/injections.js +702 -0
- package/dist/electron/logger.js +66 -0
- package/dist/electron/main.js +67 -0
- package/dist/electron/plugins/meeting-state.js +39 -0
- package/dist/electron/plugins/screenshot.js +49 -0
- package/dist/electron/preload.js +36 -0
- package/dist/electron/tools.js +66 -0
- package/dist/electron/window.js +124 -0
- package/installer/icons/favicon.ico +0 -0
- package/installer/icons/favicon.png +0 -0
- package/installer/mac/entitlements.mac.plist +16 -0
- package/lib/common/device-store.d.ts +1 -1
- package/lib/common/device-store.js +11 -3
- package/lib/common/event-store.d.ts +17 -1
- package/lib/common/event-store.js +38 -5
- package/lib/common/room-store.d.ts +55 -0
- package/lib/common/room-store.js +395 -0
- package/lib/common/security-store.d.ts +14 -4
- package/lib/common/security-store.js +149 -30
- package/lib/creator.js +2 -0
- package/lib/electron/app.js +8 -0
- package/lib/electron/bootstrap-dev.d.ts +1 -0
- package/lib/electron/bootstrap-dev.js +51 -0
- package/lib/electron/bootstrap-sdk.d.ts +1 -0
- package/lib/electron/bootstrap-sdk.js +57 -0
- package/lib/electron/bootstrap.d.ts +1 -0
- package/lib/electron/bootstrap.js +56 -0
- package/lib/electron/default-options.js +1 -1
- package/lib/electron/dev.d.ts +1 -0
- package/lib/electron/dev.js +51 -0
- package/lib/electron/injections.d.ts +2 -1
- package/lib/electron/injections.js +6 -6
- package/lib/electron/main.js +4 -16
- package/lib/electron/plugins/meeting-state.d.ts +2 -0
- package/lib/electron/plugins/meeting-state.js +39 -0
- package/lib/electron/preload.js +2 -1
- package/lib/fragments/control-bar/control-bar-store.d.ts +34 -1
- package/lib/fragments/control-bar/control-bar-store.js +371 -79
- package/lib/fragments/control-bar/device/index.js +5 -3
- package/lib/fragments/control-bar/index.css +15 -10
- package/lib/fragments/control-bar/index.js +18 -0
- package/lib/fragments/control-bar/meeting-details/meeting-detail.css +109 -0
- package/lib/fragments/control-bar/meeting-details/meeting-details-portal.d.ts +3 -0
- package/lib/fragments/control-bar/meeting-details/meeting-details-portal.js +60 -0
- package/lib/fragments/control-bar/meeting-details/meeting-details.d.ts +2 -0
- package/lib/fragments/control-bar/meeting-details/meeting-details.js +179 -0
- package/lib/fragments/control-bar/more-actions/index.css +53 -0
- package/lib/fragments/control-bar/more-actions/index.js +72 -37
- package/lib/fragments/control-bar/security-content/index.css +10 -0
- package/lib/fragments/control-bar/security-content/index.js +40 -18
- package/lib/fragments/control-bar/view.js +8 -2
- package/lib/login-confirm-dialog.d.ts +12 -0
- package/lib/login-confirm-dialog.js +80 -0
- package/lib/modules/Interpreter/add-button/index.css +4 -0
- package/lib/modules/Interpreter/add-button/index.d.ts +11 -0
- package/lib/modules/Interpreter/add-button/index.js +41 -0
- package/lib/modules/Interpreter/config.d.ts +16 -0
- package/lib/modules/Interpreter/config.js +17 -0
- package/lib/modules/Interpreter/constant.d.ts +44 -0
- package/lib/modules/Interpreter/constant.js +60 -0
- package/lib/modules/Interpreter/context.d.ts +2 -0
- package/lib/modules/Interpreter/context.js +9 -0
- package/lib/modules/Interpreter/dialog-content/index.css +33 -0
- package/lib/modules/Interpreter/dialog-content/index.d.ts +8 -0
- package/lib/modules/Interpreter/dialog-content/index.js +34 -0
- package/lib/modules/Interpreter/footer/components/interpreter-btn/index.d.ts +5 -0
- package/lib/modules/Interpreter/footer/components/interpreter-btn/index.js +56 -0
- package/lib/modules/Interpreter/footer/components/set-btn/index.d.ts +5 -0
- package/lib/modules/Interpreter/footer/components/set-btn/index.js +46 -0
- package/lib/modules/Interpreter/footer/components/tooltip-wrapper/index.d.ts +6 -0
- package/lib/modules/Interpreter/footer/components/tooltip-wrapper/index.js +28 -0
- package/lib/modules/Interpreter/footer/index.css +10 -0
- package/lib/modules/Interpreter/footer/index.d.ts +3 -0
- package/lib/modules/Interpreter/footer/index.js +35 -0
- package/lib/modules/Interpreter/index.css +8 -0
- package/lib/modules/Interpreter/index.d.ts +21 -0
- package/lib/modules/Interpreter/index.js +110 -0
- package/lib/modules/Interpreter/interpreter-list/index.css +21 -0
- package/lib/modules/Interpreter/interpreter-list/index.d.ts +3 -0
- package/lib/modules/Interpreter/interpreter-list/index.js +65 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.css +31 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.d.ts +11 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.js +141 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ar.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_cn.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_de.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_en.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_es.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_fr.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_hi.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_id.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_it.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_jp.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ko.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ms.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_pt.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ru.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_th.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_tr.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_vi.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/index.d.ts +11 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/index.js +119 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.css +41 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.d.ts +12 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.js +118 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.css +34 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.d.ts +8 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.js +65 -0
- package/lib/modules/Interpreter/loading-wrapper/index.css +53 -0
- package/lib/modules/Interpreter/loading-wrapper/index.d.ts +6 -0
- package/lib/modules/Interpreter/loading-wrapper/index.js +28 -0
- package/lib/modules/Interpreter/store.d.ts +82 -0
- package/lib/modules/Interpreter/store.js +1382 -0
- package/lib/modules/Interpreter/view.d.ts +3 -0
- package/lib/modules/Interpreter/view.js +32 -0
- package/lib/modules/action-bar/Interpreter/index.d.ts +6 -0
- package/lib/modules/action-bar/Interpreter/index.js +44 -0
- package/lib/modules/action-bar/action-bar-collapes-items.js +5 -5
- package/lib/modules/action-bar/apps/appitems.d.ts +2 -0
- package/lib/modules/action-bar/apps/appitems.js +40 -0
- package/lib/modules/action-bar/apps/index.css +6 -0
- package/lib/modules/action-bar/apps/index.d.ts +4 -0
- package/lib/modules/action-bar/apps/index.js +58 -0
- package/lib/modules/action-bar/chat/index.js +5 -5
- package/lib/modules/action-bar/device/index.css +7 -2
- package/lib/modules/action-bar/device/index.js +4 -4
- package/lib/modules/action-bar/index.css +59 -12
- package/lib/modules/action-bar/index.d.ts +3 -2
- package/lib/modules/action-bar/index.dev.js +1 -1
- package/lib/modules/action-bar/index.js +21 -0
- package/lib/modules/action-bar/leave/assign-host.d.ts +3 -0
- package/lib/modules/action-bar/leave/assign-host.js +2 -4
- package/lib/modules/action-bar/leave/index.js +29 -6
- package/lib/modules/action-bar/leave/leave-meeting.d.ts +11 -0
- package/lib/modules/action-bar/leave/leave-meeting.js +25 -16
- package/lib/modules/action-bar/more/poppover-content.js +4 -4
- package/lib/modules/action-bar/participants/index.css +12 -0
- package/lib/modules/action-bar/participants/index.js +21 -14
- package/lib/modules/action-bar/screen-share/index.js +5 -1
- package/lib/modules/action-bar/screen-share/submenu.js +16 -22
- package/lib/modules/action-bar/security/drop-menu.js +90 -13
- package/lib/modules/action-bar/store.d.ts +38 -6
- package/lib/modules/action-bar/store.js +487 -95
- package/lib/modules/action-bar/switch-input-language-room/fcr_translateswitch.png +0 -0
- package/lib/modules/action-bar/switch-input-language-room/index.css +86 -0
- package/lib/modules/action-bar/switch-input-language-room/index.d.ts +17 -0
- package/lib/modules/action-bar/switch-input-language-room/index.js +145 -0
- package/lib/modules/action-bar/switch-output-language-room/drop-menu.d.ts +1 -0
- package/lib/modules/action-bar/switch-output-language-room/drop-menu.js +197 -0
- package/lib/modules/action-bar/switch-output-language-room/guide-tooltip/index.css +18 -0
- package/lib/modules/action-bar/switch-output-language-room/guide-tooltip/index.d.ts +8 -0
- package/lib/modules/action-bar/switch-output-language-room/guide-tooltip/index.js +59 -0
- package/lib/modules/action-bar/switch-output-language-room/index.d.ts +12 -0
- package/lib/modules/action-bar/switch-output-language-room/index.js +238 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/interpreter/index.css +54 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/interpreter/index.d.ts +8 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/interpreter/index.js +94 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/virtual-image/index.css +8 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/virtual-image/index.d.ts +4 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/virtual-image/index.js +31 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/dome.png +0 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/fcr_translateswitch.png +0 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/index.css +71 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/index.d.ts +2 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/index.js +82 -0
- package/lib/modules/action-bar/view.js +65 -42
- package/lib/modules/chat/chat-bar/index.js +39 -27
- package/lib/modules/chat/chat-select/index.css +14 -4
- package/lib/modules/chat/chat.d.ts +1 -2
- package/lib/modules/chat/chat.js +184 -105
- package/lib/modules/chat/index.css +49 -0
- package/lib/modules/chat/index.d.ts +2 -2
- package/lib/modules/chat/index.dev.js +1 -1
- package/lib/modules/chat/index.js +13 -8
- package/lib/modules/chat/message-list.js +59 -48
- package/lib/modules/chat/store.d.ts +48 -2
- package/lib/modules/chat/store.js +258 -45
- package/lib/modules/connection-gateway/index.d.ts +2 -1
- package/lib/modules/connection-gateway/store.d.ts +6 -3
- package/lib/modules/connection-gateway/store.js +5 -1
- package/lib/modules/device-pretest/audio-preview/speaker-control.js +1 -1
- package/lib/modules/device-pretest/index.css +0 -4
- package/lib/modules/device-pretest/settings/beauty.js +17 -6
- package/lib/modules/device-pretest/store.js +7 -11
- package/lib/modules/dialog/components/Interpreter/electron.d.ts +2 -0
- package/lib/modules/dialog/components/Interpreter/electron.js +72 -0
- package/lib/modules/dialog/components/Interpreter/index.css +30 -0
- package/lib/modules/dialog/components/Interpreter/index.d.ts +4 -0
- package/lib/modules/dialog/components/Interpreter/index.js +61 -0
- package/lib/modules/dialog/components/Interpreter/user-queue/index.css +36 -0
- package/lib/modules/dialog/components/Interpreter/user-queue/index.d.ts +3 -0
- package/lib/modules/dialog/components/Interpreter/user-queue/index.js +47 -0
- package/lib/modules/dialog/components/chat/electron.js +2 -1
- package/lib/modules/dialog/components/confirm/electron.js +5 -3
- package/lib/modules/dialog/components/connection-gateway/electron.js +3 -1
- package/lib/modules/dialog/components/connection-gateway/index.css +0 -2
- package/lib/modules/dialog/components/device-setting/electron.js +3 -1
- package/lib/modules/dialog/components/device-setting/index.css +0 -1
- package/lib/modules/dialog/components/operation-waiting-room/electron.d.ts +5 -0
- package/lib/modules/dialog/components/operation-waiting-room/electron.js +89 -0
- package/lib/modules/dialog/components/operation-waiting-room/index.css +44 -0
- package/lib/modules/dialog/components/operation-waiting-room/index.d.ts +5 -0
- package/lib/modules/dialog/components/operation-waiting-room/index.js +156 -0
- package/lib/modules/dialog/components/participant/electron.js +2 -1
- package/lib/modules/dialog/components/remove-admit-waiting-room/electron.d.ts +5 -0
- package/lib/modules/dialog/components/remove-admit-waiting-room/electron.js +89 -0
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.css +50 -0
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.d.ts +5 -0
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.js +90 -0
- package/lib/modules/dialog/components/switch-language-channels/electron.d.ts +2 -0
- package/lib/modules/dialog/components/switch-language-channels/electron.js +72 -0
- package/lib/modules/dialog/components/switch-language-channels/index.css +30 -0
- package/lib/modules/dialog/components/switch-language-channels/index.d.ts +4 -0
- package/lib/modules/dialog/components/switch-language-channels/index.js +63 -0
- package/lib/modules/dialog/components/switch-language-channels/user-queue/index.css +36 -0
- package/lib/modules/dialog/components/switch-language-channels/user-queue/index.d.ts +3 -0
- package/lib/modules/dialog/components/switch-language-channels/user-queue/index.js +47 -0
- package/lib/modules/dialog/components/whiteboard/index.js +2 -1
- package/lib/modules/dialog/dialogs.js +17 -13
- package/lib/modules/dialog/index.css +2 -0
- package/lib/modules/dialog/store.d.ts +4 -0
- package/lib/modules/dialog/store.js +16 -2
- package/lib/modules/event-notification/context.d.ts +2 -0
- package/lib/modules/event-notification/context.js +9 -0
- package/lib/modules/event-notification/index.css +58 -0
- package/lib/modules/event-notification/index.d.ts +13 -0
- package/lib/modules/event-notification/index.js +48 -0
- package/lib/modules/event-notification/store.d.ts +17 -0
- package/lib/modules/event-notification/store.js +133 -0
- package/lib/modules/event-notification/view.d.ts +5 -0
- package/lib/modules/event-notification/view.js +114 -0
- package/lib/modules/invite/index.css +4 -4
- package/lib/modules/invite/pstn-invite.js +1 -0
- package/lib/modules/layout/components/Gallery.js +7 -1
- package/lib/modules/layout/components/Layout.js +82 -57
- package/lib/modules/layout/components/index.css +33 -6
- package/lib/modules/layout/index.css +30 -0
- package/lib/modules/layout/member-window/index.js +9 -3
- package/lib/modules/layout/store.d.ts +19 -2
- package/lib/modules/layout/store.js +177 -70
- package/lib/modules/layout/video-window-datasource.d.ts +1 -1
- package/lib/modules/layout/video-window-datasource.js +1 -1
- package/lib/modules/live-streaming/index.dev.js +1 -1
- package/lib/modules/notification/context.d.ts +2 -0
- package/lib/modules/notification/context.js +9 -0
- package/lib/modules/notification/index.css +58 -0
- package/lib/modules/notification/index.d.ts +15 -0
- package/lib/modules/notification/index.js +51 -0
- package/lib/modules/notification/interpreter-status/index.css +72 -0
- package/lib/modules/notification/interpreter-status/index.d.ts +3 -0
- package/lib/modules/notification/interpreter-status/index.js +59 -0
- package/lib/modules/notification/store.d.ts +16 -0
- package/lib/modules/notification/store.js +127 -0
- package/lib/modules/notification/view.d.ts +10 -0
- package/lib/modules/notification/view.js +116 -0
- package/lib/modules/participant/attendee/index.d.ts +12 -3
- package/lib/modules/participant/attendee/index.js +132 -30
- package/lib/modules/participant/index.css +20 -0
- package/lib/modules/participant/index.d.ts +5 -2
- package/lib/modules/participant/index.dev.js +1 -1
- package/lib/modules/participant/index.js +27 -0
- package/lib/modules/participant/room-control-drop-menu/index.css +37 -0
- package/lib/modules/participant/store.d.ts +30 -5
- package/lib/modules/participant/store.js +347 -74
- package/lib/modules/participant/view.js +133 -34
- package/lib/modules/setting/index.css +1 -5
- package/lib/modules/setting/index.dev.js +1 -1
- package/lib/modules/setting/store.d.ts +2 -2
- package/lib/modules/setting/store.js +3 -8
- package/lib/modules/setting/translate-settings/translate-settings.js +1 -1
- package/lib/modules/setting/video-settings/index.css +9 -6
- package/lib/modules/share-screen/index.d.ts +2 -0
- package/lib/modules/share-screen/index.dev.js +3 -2
- package/lib/modules/share-screen/selection/index.css +2 -0
- package/lib/modules/share-screen/store.d.ts +6 -3
- package/lib/modules/share-screen/store.js +170 -129
- package/lib/modules/state-bar/index.css +2 -2
- package/lib/modules/state-bar/index.d.ts +2 -2
- package/lib/modules/state-bar/index.dev.js +1 -1
- package/lib/modules/state-bar/meeting-detail.css +6 -4
- package/lib/modules/state-bar/meeting-details.js +32 -5
- package/lib/modules/state-bar/meeting-network-state.css +14 -3
- package/lib/modules/state-bar/meeting-network-state.js +10 -4
- package/lib/modules/state-bar/recording.js +3 -5
- package/lib/modules/state-bar/store.d.ts +5 -2
- package/lib/modules/state-bar/store.js +32 -5
- package/lib/modules/state-bar/view.js +7 -10
- package/lib/modules/video-window/index.css +1 -0
- package/lib/modules/video-window/store.d.ts +2 -2
- package/lib/modules/video-window/store.js +14 -11
- package/lib/modules/waiting-room-layout/context.d.ts +2 -0
- package/lib/modules/waiting-room-layout/context.js +9 -0
- package/lib/modules/waiting-room-layout/index.css +71 -0
- package/lib/modules/waiting-room-layout/index.d.ts +8 -0
- package/lib/modules/waiting-room-layout/index.js +47 -0
- package/lib/modules/waiting-room-layout/store.d.ts +30 -0
- package/lib/modules/waiting-room-layout/store.js +189 -0
- package/lib/modules/waiting-room-layout/type.d.ts +0 -0
- package/lib/modules/waiting-room-layout/type.js +1 -0
- package/lib/modules/waiting-room-layout/view.d.ts +3 -0
- package/lib/modules/waiting-room-layout/view.js +67 -0
- package/lib/modules/whiteboard/app.js +0 -6
- package/lib/modules/whiteboard/components/control-bar/index.css +3 -0
- package/lib/modules/whiteboard/components/multi-window/index.js +6 -1
- package/lib/modules/whiteboard/components/progress/electron.js +2 -1
- package/lib/modules/whiteboard/components/switch-theme/index.css +4 -0
- package/lib/modules/whiteboard/components/switch-theme/index.d.ts +2 -1
- package/lib/modules/whiteboard/components/switch-theme/index.js +20 -15
- package/lib/modules/whiteboard/components/switch-theme/item.d.ts +1 -0
- package/lib/modules/whiteboard/components/switch-theme/item.js +9 -2
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +14 -10
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/store.js +3 -0
- package/lib/modules/whiteboard/context.d.ts +4 -0
- package/lib/modules/whiteboard/context.js +4 -2
- package/lib/modules/whiteboard/index.js +22 -6
- package/lib/plugins/browser-runtime-plugin.js +4 -1
- package/lib/plugins/module-dev-plugin.js +8 -6
- package/lib/runtime.d.ts +2 -1
- package/lib/translations/enUS.d.ts +449 -6
- package/lib/translations/enUS.js +485 -32
- package/lib/translations/zhCN.d.ts +447 -6
- package/lib/translations/zhCN.js +468 -17
- package/lib/type.d.ts +6 -2
- package/lib/ui-manager.d.ts +7 -3
- package/lib/ui-manager.js +576 -139
- package/lib/ui-scene.d.ts +1 -0
- package/lib/ui-scene.js +26 -21
- package/lib/utilities/constant.d.ts +43 -4
- package/lib/utilities/constant.js +41 -1
- package/lib/utilities/parameters.js +2 -2
- package/lib/utilities/renderer.d.ts +1 -0
- package/lib/utilities/renderer.js +6 -2
- package/package.json +14 -14
- package/public/assets/fcr_defaultpage.png +0 -0
- package/public/assets/login_confirm.png +0 -0
- package/public/index.html +34 -11
- package/dist/132.js +0 -2
- package/dist/132.js.LICENSE.txt +0 -311
- package/dist/651.js +0 -2
- package/dist/651.js.LICENSE.txt +0 -1
- package/dist/73.js +0 -1
- package/dist/index.html +0 -13
- package/dist/main.da7c203ab32d15742cfe.css +0 -11760
- package/dist/main.js +0 -2
- package/dist/main.js.LICENSE.txt +0 -254
- package/dist/worker-entry.worker.js.LICENSE.txt +0 -13
- package/lib/modules/device-pretest/settings/index.css +0 -15
- package/lib/modules/participant/attendee/participants-more-action.d.ts +0 -18
- package/lib/modules/participant/attendee/participants-more-action.js +0 -278
|
@@ -20,6 +20,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
20
20
|
value: true
|
|
21
21
|
});
|
|
22
22
|
exports["default"] = void 0;
|
|
23
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
23
24
|
require("core-js/modules/es.array.concat.js");
|
|
24
25
|
require("core-js/modules/es.array.filter.js");
|
|
25
26
|
require("core-js/modules/es.array.find.js");
|
|
@@ -91,17 +92,19 @@ require("core-js/modules/esnext.weak-map.emplace.js");
|
|
|
91
92
|
require("core-js/modules/web.dom-collections.for-each.js");
|
|
92
93
|
require("core-js/modules/web.dom-collections.iterator.js");
|
|
93
94
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
95
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
94
96
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
95
97
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
96
98
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
97
99
|
var _agoraEduCore = require("agora-edu-core");
|
|
98
100
|
var _type = require("agora-edu-core/lib/type");
|
|
101
|
+
var _constant = require("../../utilities/constant");
|
|
99
102
|
var _logger = require("agora-foundation/lib/logger");
|
|
100
103
|
var _type2 = require("agora-rte-sdk/lib/core/scene/type");
|
|
101
104
|
var _type3 = require("agora-rte-sdk/lib/type");
|
|
105
|
+
var _attendee = require("agora-ui-foundation/lib/components/participants/attendee");
|
|
102
106
|
var _toast = require("agora-ui-foundation/lib/components/toast");
|
|
103
107
|
var _mobx = require("mobx");
|
|
104
|
-
var _constant = require("../../utilities/constant");
|
|
105
108
|
var _decorator = require("agora-foundation/lib/decorator");
|
|
106
109
|
var _rendererEvent = require("../../utilities/renderer-event");
|
|
107
110
|
var _mobxUtils = require("mobx-utils");
|
|
@@ -111,7 +114,7 @@ var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
|
111
114
|
var _i18n2 = require("../../hooks/i18n");
|
|
112
115
|
var _type5 = require("agora-edu-core/lib/room-control/user-control/type");
|
|
113
116
|
var _ParticipantStore;
|
|
114
|
-
var _initProto, _init__mainList, _init__participantsWindowActive, _init_currentPerspectiveType, _init_audioVolumeMap, _init_enableParticipantsJoinWithMute, _init_searchText, _init_currentModal, _init_localUserRole, _init_spotlightStreamId, _init_enableSpotlight, _init_mergeConfirmDialog, _init_mergeUserId, _setSpotlightStreamIdDecs, _setCurrentModalDecs, _openParticipantsWindowDecs, _setParticipantsWindowActiveDecs, _handlerSearchUserDecs, _getAllowedOperationsDecs, _handlerUserActionDecs, _handlerRoomControlActionDecs, _handleEventDecs, _kickOutUserDecs, _setAsAttendeeDecs, _onAudioVolumeUpdatedDecs, _handleRemoteUserJoinedDecs, _handleRemoteUserLeftDecs, _onUserInfoUpdatedDecs, _initUserListDecs, _refreshCurrentPerspectiveTypeDecs, _onPeerSessionReceivedDecs, _updateLocalUserRoleDecs, _ref;
|
|
117
|
+
var _initProto, _init__mainList, _init__participantsWindowActive, _init_currentPerspectiveType, _init_audioVolumeMap, _init_enableParticipantsJoinWithMute, _init_searchText, _init_currentModal, _init_localUserRole, _init_spotlightStreamId, _init_enableSpotlight, _init_mergeConfirmDialog, _init_mergeUserId, _init_activeTab, _init_isNewWaitingRoomUserEnter, _init_waitingRoomUserCount, _setSpotlightStreamIdDecs, _setCurrentModalDecs, _openParticipantsWindowDecs, _setParticipantsWindowActiveDecs, _handlerSearchUserDecs, _getAllowedOperationsDecs, _closeRemoveAdmitWaitingRoomDialogDecs, _openRemoveAdmitWaitingRoomDialogDecs, _handlerUserActionDecs, _moveToWaitingRoomByUserIdsDecs, _removeWaitingRoomUserDecs, _kickOutWaitingRoomAllMemberDecs, _moveToMainRoomAllMemberDecs, _handlerRoomControlActionDecs, _handleEventDecs, _moveToMainRoomByUserIdsDecs, _handleActiveTabDecs, _initWaitingRoomUserListDecs, _kickOutUserDecs, _setAsAttendeeDecs, _onAudioVolumeUpdatedDecs, _handleRemoteUserJoinedDecs, _handleRemoteUserLeftDecs, _handleRemoteWaitingUserJoinedDecs, _handleRemoteWaitingUserLeftDecs, _onUserInfoUpdatedDecs, _initUserListDecs, _refreshCurrentPerspectiveTypeDecs, _onPeerSessionReceivedDecs, _updateLocalUserRoleDecs, _ref;
|
|
115
118
|
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
116
119
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
117
120
|
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
@@ -139,7 +142,10 @@ var _J = /*#__PURE__*/new WeakMap();
|
|
|
139
142
|
var _K = /*#__PURE__*/new WeakMap();
|
|
140
143
|
var _L = /*#__PURE__*/new WeakMap();
|
|
141
144
|
var _M = /*#__PURE__*/new WeakMap();
|
|
142
|
-
|
|
145
|
+
var _N = /*#__PURE__*/new WeakMap();
|
|
146
|
+
var _O = /*#__PURE__*/new WeakMap();
|
|
147
|
+
var _P = /*#__PURE__*/new WeakMap();
|
|
148
|
+
_ref = (_setSpotlightStreamIdDecs = [_mobx.action, _mobx.action.bound], _setCurrentModalDecs = [_mobx.action, _mobx.action.bound], _openParticipantsWindowDecs = [_mobx.action, _mobx.action.bound], _setParticipantsWindowActiveDecs = [_mobx.action, _mobx.action.bound], _handlerSearchUserDecs = [_mobx.action, _mobx.action.bound], _getAllowedOperationsDecs = [_mobx.action, _mobx.action.bound], _closeRemoveAdmitWaitingRoomDialogDecs = [_mobx.action, _mobx.action.bound], _openRemoveAdmitWaitingRoomDialogDecs = [_mobx.action, _mobx.action.bound], _handlerUserActionDecs = [_mobx.action, _mobx.action.bound], _moveToWaitingRoomByUserIdsDecs = [_mobx.action, _mobx.action.bound], _removeWaitingRoomUserDecs = [_mobx.action, _mobx.action.bound], _kickOutWaitingRoomAllMemberDecs = [_mobx.action, _mobx.action.bound], _moveToMainRoomAllMemberDecs = [_mobx.action, _mobx.action.bound], _handlerRoomControlActionDecs = [_mobx.action, _mobx.action.bound], _handleEventDecs = [_mobx.action, _mobx.action.bound], _moveToMainRoomByUserIdsDecs = [_mobx.action, _mobx.action.bound], _handleActiveTabDecs = [_mobx.action, _mobx.action.bound], _initWaitingRoomUserListDecs = [_mobx.action, _mobx.action.bound], _kickOutUserDecs = [_mobx.action, _mobx.action.bound], _setAsAttendeeDecs = [_mobx.action, _mobx.action.bound], _onAudioVolumeUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleRemoteUserJoinedDecs = [_mobx.action, _mobx.action.bound], _handleRemoteUserLeftDecs = [_mobx.action, _mobx.action.bound], _handleRemoteWaitingUserJoinedDecs = [_mobx.action, _mobx.action.bound], _handleRemoteWaitingUserLeftDecs = [_mobx.action, _mobx.action.bound], _onUserInfoUpdatedDecs = [_mobx.action, _mobx.action.bound], _initUserListDecs = [_mobx.action, _mobx.action.bound], _refreshCurrentPerspectiveTypeDecs = [_mobx.action, _mobx.action.bound], _onPeerSessionReceivedDecs = [_mobx.action, _mobx.action.bound], _updateLocalUserRoleDecs = [_mobx.action, _mobx.action.bound], "logger");
|
|
143
149
|
var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
144
150
|
function ParticipantStore(_ref2) {
|
|
145
151
|
var _this = this;
|
|
@@ -153,6 +159,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
153
159
|
(0, _classCallCheck2["default"])(this, ParticipantStore);
|
|
154
160
|
(0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.getLogger)()));
|
|
155
161
|
(0, _defineProperty2["default"])(this, "_dataSource", new _memberListDataSource.FcrUIMemberListDataSourceImpl());
|
|
162
|
+
(0, _defineProperty2["default"])(this, "_waitingRoomDataSource", new _memberListDataSource.FcrUIMemberListDataSourceImpl());
|
|
156
163
|
(0, _defineProperty2["default"])(this, "_disposers", []);
|
|
157
164
|
(0, _defineProperty2["default"])(this, "_unmuteAudioTimestamp", new Map());
|
|
158
165
|
(0, _defineProperty2["default"])(this, "_unmuteVideoTimestamp", new Map());
|
|
@@ -176,6 +183,10 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
176
183
|
(0, _defineProperty2["default"])(this, "_eventObserver", {
|
|
177
184
|
onEvent: this._handleEvent
|
|
178
185
|
});
|
|
186
|
+
(0, _defineProperty2["default"])(this, "_waitingRoomUserObserver", {
|
|
187
|
+
onRemoteUsersJoined: this._handleRemoteWaitingUserJoined.bind(this),
|
|
188
|
+
onRemoteUsersLeft: this._handleRemoteWaitingUserLeft.bind(this)
|
|
189
|
+
});
|
|
179
190
|
(0, _defineProperty2["default"])(this, "_whitebaordObderver", {
|
|
180
191
|
onActive: function onActive(ownerId, operatorUser) {
|
|
181
192
|
_this._updateUserBoardState(operatorUser);
|
|
@@ -197,6 +208,13 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
197
208
|
_classPrivateFieldInitSpec(this, _K, _init_enableSpotlight(this, true));
|
|
198
209
|
_classPrivateFieldInitSpec(this, _L, _init_mergeConfirmDialog(this, false));
|
|
199
210
|
_classPrivateFieldInitSpec(this, _M, _init_mergeUserId(this, ''));
|
|
211
|
+
_classPrivateFieldInitSpec(this, _N, _init_activeTab(this, _constant.RoomType.MAIN_ROOM));
|
|
212
|
+
_classPrivateFieldInitSpec(this, _O, _init_isNewWaitingRoomUserEnter(this, false));
|
|
213
|
+
_classPrivateFieldInitSpec(this, _P, _init_waitingRoomUserCount(this, 0));
|
|
214
|
+
(0, _defineProperty2["default"])(this, "allowedOperations", (0, _mobxUtils.computedFn)(function (userId, userRole) {
|
|
215
|
+
var _this$_userControl$ge;
|
|
216
|
+
return _this.getAllowedOperations(userRole, userId === ((_this$_userControl$ge = _this._userControl.getLocalUser()) === null || _this$_userControl$ge === void 0 ? void 0 : _this$_userControl$ge.userId));
|
|
217
|
+
}));
|
|
200
218
|
(0, _defineProperty2["default"])(this, "checkIsPin", (0, _mobxUtils.computedFn)(function (userId) {
|
|
201
219
|
var _this$userMap$get;
|
|
202
220
|
return !!((_this$userMap$get = _this.userMap.get(userId)) !== null && _this$userMap$get !== void 0 && _this$userMap$get.streams.some(function (stream) {
|
|
@@ -204,7 +222,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
204
222
|
}));
|
|
205
223
|
}));
|
|
206
224
|
(0, _defineProperty2["default"])(this, "_formatUser", function (user) {
|
|
207
|
-
var _this$_userControl$
|
|
225
|
+
var _this$_userControl$ge2;
|
|
208
226
|
var targetUsers = user.streams;
|
|
209
227
|
var hasShareScreen = targetUsers.find(function (user) {
|
|
210
228
|
return user.videoSourceType === _type3.AgoraRteVideoSourceType.SCREEN;
|
|
@@ -275,7 +293,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
275
293
|
userId: user.userId,
|
|
276
294
|
userName: user.userInfo.userName,
|
|
277
295
|
isHost: user.userInfo.userRole === _type.FcrUserRole.HOST,
|
|
278
|
-
isMe: user.userId === ((_this$_userControl$
|
|
296
|
+
isMe: user.userId === ((_this$_userControl$ge2 = _this._userControl.getLocalUser()) === null || _this$_userControl$ge2 === void 0 ? void 0 : _this$_userControl$ge2.userId),
|
|
279
297
|
hasAudio: hasAudio,
|
|
280
298
|
hasVideo: hasVideo,
|
|
281
299
|
isScreenSharing: !!hasShareScreen,
|
|
@@ -284,7 +302,9 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
284
302
|
userType: userType,
|
|
285
303
|
userRole: user.userInfo.userRole,
|
|
286
304
|
isSpotlight: isSpotlight,
|
|
287
|
-
isBoardActive: user.userInfo.isBoardActive
|
|
305
|
+
isBoardActive: user.userInfo.isBoardActive,
|
|
306
|
+
allowedOperations: _this.allowedOperations(user.userId, user.userInfo.userRole),
|
|
307
|
+
isPin: _this.checkIsPin(user.userId)
|
|
288
308
|
};
|
|
289
309
|
});
|
|
290
310
|
this._roomControl = roomControl;
|
|
@@ -410,10 +430,38 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
410
430
|
set: function set(v) {
|
|
411
431
|
_classPrivateFieldSet(_M, this, v);
|
|
412
432
|
}
|
|
433
|
+
}, {
|
|
434
|
+
key: "activeTab",
|
|
435
|
+
get: function get() {
|
|
436
|
+
return _classPrivateFieldGet(_N, this);
|
|
437
|
+
},
|
|
438
|
+
set: function set(v) {
|
|
439
|
+
_classPrivateFieldSet(_N, this, v);
|
|
440
|
+
}
|
|
441
|
+
}, {
|
|
442
|
+
key: "isNewWaitingRoomUserEnter",
|
|
443
|
+
get: function get() {
|
|
444
|
+
return _classPrivateFieldGet(_O, this);
|
|
445
|
+
},
|
|
446
|
+
set: function set(v) {
|
|
447
|
+
_classPrivateFieldSet(_O, this, v);
|
|
448
|
+
}
|
|
449
|
+
}, {
|
|
450
|
+
key: "waitingRoomUserCount",
|
|
451
|
+
get: function get() {
|
|
452
|
+
return _classPrivateFieldGet(_P, this);
|
|
453
|
+
},
|
|
454
|
+
set: function set(v) {
|
|
455
|
+
_classPrivateFieldSet(_P, this, v);
|
|
456
|
+
}
|
|
413
457
|
}, {
|
|
414
458
|
key: "userListSource",
|
|
415
459
|
get: function get() {
|
|
416
|
-
|
|
460
|
+
if (this.activeTab === _constant.RoomType.MAIN_ROOM) {
|
|
461
|
+
return this._dataSource.list;
|
|
462
|
+
} else {
|
|
463
|
+
return this._waitingRoomDataSource.list;
|
|
464
|
+
}
|
|
417
465
|
}
|
|
418
466
|
}, {
|
|
419
467
|
key: "mergeUserInfo",
|
|
@@ -534,6 +582,11 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
534
582
|
value: function hasMutePermission(targetRole) {
|
|
535
583
|
return this._securityStore.hasMutePermission(targetRole);
|
|
536
584
|
}
|
|
585
|
+
}, {
|
|
586
|
+
key: "hasWaitingRoomPermission",
|
|
587
|
+
value: function hasWaitingRoomPermission() {
|
|
588
|
+
return this._securityStore.isWaitingRoomEnabled() && this._securityStore.hasWaitingRoomPermission();
|
|
589
|
+
}
|
|
537
590
|
}, {
|
|
538
591
|
key: "hasUnmutePermission",
|
|
539
592
|
value: function hasUnmutePermission(targetRole) {
|
|
@@ -687,55 +740,184 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
687
740
|
value: function getAllowedOperations(targetRole, isSelf) {
|
|
688
741
|
return this._securityStore.getAllowedOperations(targetRole, isSelf);
|
|
689
742
|
}
|
|
743
|
+
}, {
|
|
744
|
+
key: "closeRemoveAdmitWaitingRoomDialog",
|
|
745
|
+
value: function closeRemoveAdmitWaitingRoomDialog(dialogKey) {
|
|
746
|
+
this._uiEventStore.closeRemoveAdmitWaitingRoomDialog(dialogKey);
|
|
747
|
+
}
|
|
748
|
+
}, {
|
|
749
|
+
key: "openRemoveAdmitWaitingRoomDialog",
|
|
750
|
+
value: function openRemoveAdmitWaitingRoomDialog(dialogKey, params) {
|
|
751
|
+
this._uiEventStore.openDialog(dialogKey, '', {
|
|
752
|
+
userId: params.userId,
|
|
753
|
+
type: params.type,
|
|
754
|
+
title: params.title,
|
|
755
|
+
tooltip: params.tooltip
|
|
756
|
+
});
|
|
757
|
+
}
|
|
690
758
|
}, {
|
|
691
759
|
key: "handlerUserAction",
|
|
692
760
|
value: function handlerUserAction(action, userId) {
|
|
693
761
|
switch (action) {
|
|
694
|
-
case
|
|
762
|
+
case _attendee.ParticipantActionType.MUTE_AUDIO:
|
|
695
763
|
this._muteUserAudio(userId);
|
|
696
764
|
break;
|
|
697
|
-
case
|
|
765
|
+
case _attendee.ParticipantActionType.UNMUTE_AUDIO:
|
|
698
766
|
this._unmuteUserAudio(userId);
|
|
699
767
|
break;
|
|
700
|
-
case
|
|
768
|
+
case _attendee.ParticipantActionType.MUTE_VIDEO:
|
|
701
769
|
this._muteUserVideo(userId);
|
|
702
770
|
break;
|
|
703
|
-
case
|
|
771
|
+
case _attendee.ParticipantActionType.UNMUTE_VIDEO:
|
|
704
772
|
this._unmuteUserVideo(userId);
|
|
705
773
|
break;
|
|
706
|
-
case
|
|
774
|
+
case _attendee.ParticipantActionType.PRIVATE_CHAT:
|
|
707
775
|
this._privateChat(userId);
|
|
708
776
|
break;
|
|
709
|
-
case
|
|
710
|
-
this.
|
|
777
|
+
case _attendee.ParticipantActionType.KICK_OUT:
|
|
778
|
+
if (this.activeTab === _constant.RoomType.MAIN_ROOM) {
|
|
779
|
+
this._kickOutUser(userId);
|
|
780
|
+
} else {
|
|
781
|
+
var _this$userMap$get5;
|
|
782
|
+
this.openRemoveAdmitWaitingRoomDialog(_constant.DialogKey.WAITING_ROOM_SINGLE_REMOVE, {
|
|
783
|
+
userId: userId,
|
|
784
|
+
type: 'remove',
|
|
785
|
+
title: (0, _i18n.transI18n)('fmt_waitingroom_sidebar_popup_removeall'),
|
|
786
|
+
tooltip: (0, _i18n.transI18n)('fmt_waitingroom_sidebar_popup_label_remove', {
|
|
787
|
+
reason1: (_this$userMap$get5 = this.userMap.get(userId)) === null || _this$userMap$get5 === void 0 ? void 0 : _this$userMap$get5.userInfo.userName
|
|
788
|
+
})
|
|
789
|
+
});
|
|
790
|
+
}
|
|
711
791
|
break;
|
|
712
|
-
case
|
|
792
|
+
case _attendee.ParticipantActionType.ADD_PIN:
|
|
713
793
|
this.addPin(userId);
|
|
714
794
|
break;
|
|
715
|
-
case
|
|
795
|
+
case _attendee.ParticipantActionType.REMOVE_PIN:
|
|
716
796
|
this.removePin(userId);
|
|
717
797
|
break;
|
|
718
|
-
case
|
|
798
|
+
case _attendee.ParticipantActionType.SET_AS_HOST:
|
|
719
799
|
this._setAsHost(userId);
|
|
720
800
|
break;
|
|
721
|
-
case
|
|
801
|
+
case _attendee.ParticipantActionType.RENAME:
|
|
722
802
|
break;
|
|
723
|
-
case
|
|
803
|
+
case _attendee.ParticipantActionType.SET_MAIN_SPEAKER:
|
|
724
804
|
this._uiEventStore.setMainSpeaker({
|
|
725
805
|
userId: userId
|
|
726
806
|
});
|
|
727
807
|
break;
|
|
728
|
-
case
|
|
808
|
+
case _attendee.ParticipantActionType.SET_AS_CO_HOST:
|
|
729
809
|
this._setAsCoHost(userId);
|
|
730
810
|
break;
|
|
731
|
-
case
|
|
811
|
+
case _attendee.ParticipantActionType.SET_AS_ATTENDEE:
|
|
732
812
|
this._setAsAttendee(userId);
|
|
733
813
|
break;
|
|
734
|
-
case
|
|
814
|
+
case _attendee.ParticipantActionType.MERGE_VIDEO:
|
|
735
815
|
this.setMergeConfirmDialog(true);
|
|
736
816
|
this.mergeUserId = userId;
|
|
817
|
+
break;
|
|
818
|
+
case _attendee.ParticipantActionType.PUT_IN_WAITING_ROOM:
|
|
819
|
+
this._moveToWaitingRoomByUserIds(userId);
|
|
820
|
+
break;
|
|
737
821
|
}
|
|
738
822
|
}
|
|
823
|
+
}, {
|
|
824
|
+
key: "_moveToWaitingRoomByUserIds",
|
|
825
|
+
value: function () {
|
|
826
|
+
var _moveToWaitingRoomByUserIds2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(userId) {
|
|
827
|
+
var _this$userMap$get6;
|
|
828
|
+
var username;
|
|
829
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
830
|
+
while (1) switch (_context.prev = _context.next) {
|
|
831
|
+
case 0:
|
|
832
|
+
username = (_this$userMap$get6 = this.userMap.get(userId)) === null || _this$userMap$get6 === void 0 ? void 0 : _this$userMap$get6.userInfo.userName;
|
|
833
|
+
_context.prev = 1;
|
|
834
|
+
_context.next = 4;
|
|
835
|
+
return this._roomControl.moveToWaitingRoomByUserIds([userId]);
|
|
836
|
+
case 4:
|
|
837
|
+
this._uiEventStore.showToast({
|
|
838
|
+
type: 'normal',
|
|
839
|
+
message: (0, _i18n.transI18n)('fmt_waitingroom_put_in_success', {
|
|
840
|
+
reason1: username
|
|
841
|
+
})
|
|
842
|
+
});
|
|
843
|
+
_context.next = 10;
|
|
844
|
+
break;
|
|
845
|
+
case 7:
|
|
846
|
+
_context.prev = 7;
|
|
847
|
+
_context.t0 = _context["catch"](1);
|
|
848
|
+
this._uiEventStore.showToast({
|
|
849
|
+
type: 'error',
|
|
850
|
+
message: (0, _i18n.transI18n)('fmt_waitingroom_setting_popup_toast_move_in_failed')
|
|
851
|
+
});
|
|
852
|
+
case 10:
|
|
853
|
+
case "end":
|
|
854
|
+
return _context.stop();
|
|
855
|
+
}
|
|
856
|
+
}, _callee, this, [[1, 7]]);
|
|
857
|
+
}));
|
|
858
|
+
function _moveToWaitingRoomByUserIds(_x) {
|
|
859
|
+
return _moveToWaitingRoomByUserIds2.apply(this, arguments);
|
|
860
|
+
}
|
|
861
|
+
return _moveToWaitingRoomByUserIds;
|
|
862
|
+
}()
|
|
863
|
+
}, {
|
|
864
|
+
key: "removeWaitingRoomUser",
|
|
865
|
+
value: function removeWaitingRoomUser(userId, type) {
|
|
866
|
+
var _this$_waitingRoomUse;
|
|
867
|
+
(_this$_waitingRoomUse = this._waitingRoomUserControl) === null || _this$_waitingRoomUse === void 0 || _this$_waitingRoomUse.kickOutByUserIds([userId], type);
|
|
868
|
+
}
|
|
869
|
+
}, {
|
|
870
|
+
key: "kickOutWaitingRoomAllMember",
|
|
871
|
+
value: function () {
|
|
872
|
+
var _kickOutWaitingRoomAllMember = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(type) {
|
|
873
|
+
var _this$_waitingRoomUse2;
|
|
874
|
+
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
875
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
876
|
+
case 0:
|
|
877
|
+
_context2.next = 2;
|
|
878
|
+
return (_this$_waitingRoomUse2 = this._waitingRoomUserControl) === null || _this$_waitingRoomUse2 === void 0 ? void 0 : _this$_waitingRoomUse2.kickOutByUserRoles([_type.FcrUserRole.PARTICIPANT], type);
|
|
879
|
+
case 2:
|
|
880
|
+
this._uiEventStore.showToast({
|
|
881
|
+
type: 'normal',
|
|
882
|
+
message: (0, _i18n.transI18n)('fmt_waitingroom_mobile_memberlist_tips_all_removed')
|
|
883
|
+
});
|
|
884
|
+
case 3:
|
|
885
|
+
case "end":
|
|
886
|
+
return _context2.stop();
|
|
887
|
+
}
|
|
888
|
+
}, _callee2, this);
|
|
889
|
+
}));
|
|
890
|
+
function kickOutWaitingRoomAllMember(_x2) {
|
|
891
|
+
return _kickOutWaitingRoomAllMember.apply(this, arguments);
|
|
892
|
+
}
|
|
893
|
+
return kickOutWaitingRoomAllMember;
|
|
894
|
+
}()
|
|
895
|
+
}, {
|
|
896
|
+
key: "moveToMainRoomAllMember",
|
|
897
|
+
value: function () {
|
|
898
|
+
var _moveToMainRoomAllMember = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3() {
|
|
899
|
+
var _this$_waitingRoomCon;
|
|
900
|
+
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
901
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
902
|
+
case 0:
|
|
903
|
+
_context3.next = 2;
|
|
904
|
+
return (_this$_waitingRoomCon = this._waitingRoomControl) === null || _this$_waitingRoomCon === void 0 ? void 0 : _this$_waitingRoomCon.moveToMainRoomByUserRoles([_type.FcrUserRole.PARTICIPANT]);
|
|
905
|
+
case 2:
|
|
906
|
+
this._uiEventStore.showToast({
|
|
907
|
+
type: 'normal',
|
|
908
|
+
message: (0, _i18n.transI18n)('fmt_waitingroom_mobile_memberlist_tips_all_amitted')
|
|
909
|
+
});
|
|
910
|
+
case 3:
|
|
911
|
+
case "end":
|
|
912
|
+
return _context3.stop();
|
|
913
|
+
}
|
|
914
|
+
}, _callee3, this);
|
|
915
|
+
}));
|
|
916
|
+
function moveToMainRoomAllMember() {
|
|
917
|
+
return _moveToMainRoomAllMember.apply(this, arguments);
|
|
918
|
+
}
|
|
919
|
+
return moveToMainRoomAllMember;
|
|
920
|
+
}()
|
|
739
921
|
}, {
|
|
740
922
|
key: "getMicStreamVolume",
|
|
741
923
|
value: function getMicStreamVolume(streamId) {
|
|
@@ -798,6 +980,56 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
798
980
|
spotlightEnabled = _ref7.spotlightEnabled;
|
|
799
981
|
this.enableSpotlight = spotlightEnabled;
|
|
800
982
|
}
|
|
983
|
+
if (action === _constant.UIAction.WAITING_ROOM_CREATED) {
|
|
984
|
+
var room = payload.room;
|
|
985
|
+
this._waitingRoomControl = room;
|
|
986
|
+
var waitingRoomUserControl = room.getUserControl();
|
|
987
|
+
this._waitingRoomUserControl = waitingRoomUserControl;
|
|
988
|
+
waitingRoomUserControl.addObserver(this._waitingRoomUserObserver);
|
|
989
|
+
this.waitingRoomUserCount = this._getWaitingRoomUserCount();
|
|
990
|
+
this._initWaitingRoomUserList();
|
|
991
|
+
}
|
|
992
|
+
if (action === _constant.UIAction.CHANGE_PARTICIPANT_TAB) {
|
|
993
|
+
this.handleActiveTab(payload);
|
|
994
|
+
}
|
|
995
|
+
if (action === _constant.UIAction.WAITING_ROOM_DESTROYED) {
|
|
996
|
+
var _this$_waitingRoomUse3;
|
|
997
|
+
(_this$_waitingRoomUse3 = this._waitingRoomUserControl) === null || _this$_waitingRoomUse3 === void 0 || _this$_waitingRoomUse3.removeObserver(this._waitingRoomUserObserver);
|
|
998
|
+
this._waitingRoomControl = undefined;
|
|
999
|
+
this._waitingRoomUserControl = undefined;
|
|
1000
|
+
this.waitingRoomUserCount = 0;
|
|
1001
|
+
this.handleActiveTab(_constant.RoomType.MAIN_ROOM);
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
}, {
|
|
1005
|
+
key: "moveToMainRoomByUserIds",
|
|
1006
|
+
value: function moveToMainRoomByUserIds(userId) {
|
|
1007
|
+
if (this._waitingRoomControl) {
|
|
1008
|
+
this._waitingRoomControl.moveToMainRoomByUserIds(userId);
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
}, {
|
|
1012
|
+
key: "handleActiveTab",
|
|
1013
|
+
value: function handleActiveTab(tab) {
|
|
1014
|
+
this.activeTab = tab;
|
|
1015
|
+
this._uiEventStore.sendEvent(_constant.UIAction.CURRENT_PARTITIPANT_TAB, tab);
|
|
1016
|
+
if (this.activeTab === _constant.RoomType.WAITING_ROOM) {
|
|
1017
|
+
this.isNewWaitingRoomUserEnter = false;
|
|
1018
|
+
}
|
|
1019
|
+
}
|
|
1020
|
+
}, {
|
|
1021
|
+
key: "_initWaitingRoomUserList",
|
|
1022
|
+
value: function _initWaitingRoomUserList() {
|
|
1023
|
+
if (!this._waitingRoomUserControl) return;
|
|
1024
|
+
var users = this._waitingRoomUserControl.getUsers();
|
|
1025
|
+
for (var _i = 0, _Object$entries = Object.entries(users); _i < _Object$entries.length; _i++) {
|
|
1026
|
+
var _Object$entries$_i = (0, _slicedToArray2["default"])(_Object$entries[_i], 2),
|
|
1027
|
+
userId = _Object$entries$_i[0],
|
|
1028
|
+
user = _Object$entries$_i[1];
|
|
1029
|
+
if (userId !== this._userControl.getLocalUser().userId && user.userRole === _type.FcrUserRole.PARTICIPANT) {
|
|
1030
|
+
this._waitingRoomDataSource.add(user, this._streamControl.getStreamsByUserId(userId), this._userControl.getLocalUser().userId === userId);
|
|
1031
|
+
}
|
|
1032
|
+
}
|
|
801
1033
|
}
|
|
802
1034
|
}, {
|
|
803
1035
|
key: "_muteUserAudio",
|
|
@@ -921,14 +1153,14 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
921
1153
|
key: "_kickOutUser",
|
|
922
1154
|
value: function _kickOutUser(userId) {
|
|
923
1155
|
var _this5 = this,
|
|
924
|
-
_this$userMap$
|
|
1156
|
+
_this$userMap$get7;
|
|
925
1157
|
this.openConfirmDialog({
|
|
926
1158
|
title: '',
|
|
927
1159
|
onCancel: function onCancel() {
|
|
928
1160
|
_this5._uiEventStore.closeConfirmDialog();
|
|
929
1161
|
},
|
|
930
1162
|
content: (0, _i18n.transI18n)('fmt_uimanager_tips_Remove', {
|
|
931
|
-
reason2: (_this$userMap$
|
|
1163
|
+
reason2: (_this$userMap$get7 = this.userMap.get(userId)) === null || _this$userMap$get7 === void 0 ? void 0 : _this$userMap$get7.userInfo.userName
|
|
932
1164
|
}),
|
|
933
1165
|
onOk: function onOk() {
|
|
934
1166
|
_this5._userControl.kickOut(userId, _type5.FcrUserKickOutType.Once);
|
|
@@ -940,9 +1172,9 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
940
1172
|
}, {
|
|
941
1173
|
key: "_handleSetHostOrCoHost",
|
|
942
1174
|
value: function _handleSetHostOrCoHost(userId, type) {
|
|
943
|
-
var _this$userMap$
|
|
1175
|
+
var _this$userMap$get8,
|
|
944
1176
|
_this6 = this;
|
|
945
|
-
var username = (_this$userMap$
|
|
1177
|
+
var username = (_this$userMap$get8 = this.userMap.get(userId)) === null || _this$userMap$get8 === void 0 ? void 0 : _this$userMap$get8.userInfo.userName;
|
|
946
1178
|
var targetRole = type === 'host' ? (0, _i18n.transI18n)('fmt_role_host') : (0, _i18n.transI18n)('fmt_role_cohost');
|
|
947
1179
|
this.openConfirmDialog({
|
|
948
1180
|
title: (0, _i18n.transI18n)('fmt_uimanager_labels_Setas', {
|
|
@@ -1102,17 +1334,55 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1102
1334
|
_this8._updateUserBoardState(modifiedUser);
|
|
1103
1335
|
});
|
|
1104
1336
|
}
|
|
1337
|
+
}, {
|
|
1338
|
+
key: "_handleRemoteWaitingUserJoined",
|
|
1339
|
+
value: function _handleRemoteWaitingUserJoined(roomId, events) {
|
|
1340
|
+
var _this9 = this;
|
|
1341
|
+
events.forEach(function (event) {
|
|
1342
|
+
var modifiedUser = event.modifiedUser;
|
|
1343
|
+
if (modifiedUser.userRole === _type.FcrUserRole.PARTICIPANT) {
|
|
1344
|
+
_this9._waitingRoomDataSource.add(modifiedUser, _this9._streamControl.getStreamsByUserId(modifiedUser.userId), modifiedUser.userId === _this9._userControl.getLocalUser().userId);
|
|
1345
|
+
// this._updateUserBoardState(modifiedUser);
|
|
1346
|
+
}
|
|
1347
|
+
});
|
|
1348
|
+
if (this.activeTab === _constant.RoomType.MAIN_ROOM) {
|
|
1349
|
+
this.isNewWaitingRoomUserEnter = true;
|
|
1350
|
+
}
|
|
1351
|
+
this.waitingRoomUserCount = this._getWaitingRoomUserCount();
|
|
1352
|
+
}
|
|
1353
|
+
}, {
|
|
1354
|
+
key: "_getWaitingRoomUserCount",
|
|
1355
|
+
value: function _getWaitingRoomUserCount() {
|
|
1356
|
+
var _this$_waitingRoomUse4;
|
|
1357
|
+
return (_this$_waitingRoomUse4 = this._waitingRoomUserControl) === null || _this$_waitingRoomUse4 === void 0 ? void 0 : _this$_waitingRoomUse4.getUserList().filter(function (user) {
|
|
1358
|
+
return user.userRole === _type.FcrUserRole.PARTICIPANT;
|
|
1359
|
+
}).length;
|
|
1360
|
+
}
|
|
1361
|
+
}, {
|
|
1362
|
+
key: "_handleRemoteWaitingUserLeft",
|
|
1363
|
+
value: function _handleRemoteWaitingUserLeft(roomId, events) {
|
|
1364
|
+
var _this10 = this;
|
|
1365
|
+
events.forEach(function (event) {
|
|
1366
|
+
var modifiedUser = event.modifiedUser;
|
|
1367
|
+
_this10._waitingRoomDataSource["delete"](modifiedUser);
|
|
1368
|
+
_this10._updateUserBoardState(modifiedUser);
|
|
1369
|
+
});
|
|
1370
|
+
this.waitingRoomUserCount = this._getWaitingRoomUserCount();
|
|
1371
|
+
if (this._getWaitingRoomUserCount() === 0) {
|
|
1372
|
+
this.handleActiveTab(_constant.RoomType.MAIN_ROOM);
|
|
1373
|
+
}
|
|
1374
|
+
}
|
|
1105
1375
|
}, {
|
|
1106
1376
|
key: "_onUserInfoUpdated",
|
|
1107
1377
|
value: function _onUserInfoUpdated(roomId, event) {
|
|
1108
|
-
var _this$userMap$
|
|
1378
|
+
var _this$userMap$get9;
|
|
1109
1379
|
var targetUser = event.modifiedUser;
|
|
1110
1380
|
this._updateUserBoardState(targetUser);
|
|
1111
1381
|
this._dataSource.update(targetUser);
|
|
1112
|
-
var originUser = (_this$userMap$
|
|
1113
|
-
var _this$_userControl$
|
|
1114
|
-
localUserId = _this$_userControl$
|
|
1115
|
-
localUserRole = _this$_userControl$
|
|
1382
|
+
var originUser = (_this$userMap$get9 = this.userMap.get(targetUser.userId)) === null || _this$userMap$get9 === void 0 ? void 0 : _this$userMap$get9.userInfo;
|
|
1383
|
+
var _this$_userControl$ge3 = this._userControl.getLocalUser(),
|
|
1384
|
+
localUserId = _this$_userControl$ge3.userId,
|
|
1385
|
+
localUserRole = _this$_userControl$ge3.userRole;
|
|
1116
1386
|
var effectSelf = targetUser.userId === localUserId;
|
|
1117
1387
|
if ((originUser === null || originUser === void 0 ? void 0 : originUser.userRole) !== targetUser.userRole) {
|
|
1118
1388
|
// 参会者变管理
|
|
@@ -1148,45 +1418,45 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1148
1418
|
value: function _initUserList() {
|
|
1149
1419
|
this._refreshCurrentPerspectiveType();
|
|
1150
1420
|
var users = this._userControl.getUsers();
|
|
1151
|
-
for (var
|
|
1152
|
-
var _Object$
|
|
1153
|
-
userId = _Object$
|
|
1154
|
-
user = _Object$
|
|
1421
|
+
for (var _i2 = 0, _Object$entries2 = Object.entries(users); _i2 < _Object$entries2.length; _i2++) {
|
|
1422
|
+
var _Object$entries2$_i = (0, _slicedToArray2["default"])(_Object$entries2[_i2], 2),
|
|
1423
|
+
userId = _Object$entries2$_i[0],
|
|
1424
|
+
user = _Object$entries2$_i[1];
|
|
1155
1425
|
this._dataSource.add(user, this._streamControl.getStreamsByUserId(userId), this._userControl.getLocalUser().userId === userId);
|
|
1156
1426
|
}
|
|
1157
1427
|
}
|
|
1158
1428
|
}, {
|
|
1159
1429
|
key: "_handleStreamsAdded",
|
|
1160
1430
|
value: function _handleStreamsAdded(roomId, events) {
|
|
1161
|
-
var
|
|
1431
|
+
var _this11 = this;
|
|
1162
1432
|
events.forEach(function (e) {
|
|
1163
1433
|
var modifiedStream = e.modifiedStream;
|
|
1164
|
-
|
|
1434
|
+
_this11._dataSource.updateWithStreamAdd(modifiedStream);
|
|
1165
1435
|
});
|
|
1166
1436
|
}
|
|
1167
1437
|
}, {
|
|
1168
1438
|
key: "_handleStreamsUpdated",
|
|
1169
1439
|
value: function _handleStreamsUpdated(roomId, events) {
|
|
1170
|
-
var
|
|
1440
|
+
var _this12 = this;
|
|
1171
1441
|
events.forEach(function (e) {
|
|
1172
1442
|
var modifiedStream = e.modifiedStream;
|
|
1173
|
-
|
|
1443
|
+
_this12._dataSource.update(modifiedStream);
|
|
1174
1444
|
});
|
|
1175
1445
|
}
|
|
1176
1446
|
}, {
|
|
1177
1447
|
key: "_handleStreamsRemoved",
|
|
1178
1448
|
value: function _handleStreamsRemoved(roomId, events) {
|
|
1179
|
-
var
|
|
1449
|
+
var _this13 = this;
|
|
1180
1450
|
events.forEach(function (e) {
|
|
1181
1451
|
var modifiedStream = e.modifiedStream;
|
|
1182
|
-
|
|
1452
|
+
_this13._dataSource.updateWithStreamRemove(modifiedStream);
|
|
1183
1453
|
});
|
|
1184
1454
|
}
|
|
1185
1455
|
}, {
|
|
1186
1456
|
key: "_refreshCurrentPerspectiveType",
|
|
1187
1457
|
value: function _refreshCurrentPerspectiveType() {
|
|
1188
|
-
var _this$_userControl$
|
|
1189
|
-
var localUserUid = (_this$_userControl$
|
|
1458
|
+
var _this$_userControl$ge4;
|
|
1459
|
+
var localUserUid = (_this$_userControl$ge4 = this._userControl.getLocalUser()) === null || _this$_userControl$ge4 === void 0 ? void 0 : _this$_userControl$ge4.userId;
|
|
1190
1460
|
if (!localUserUid) {
|
|
1191
1461
|
this.currentPerspectiveType = 'attendee';
|
|
1192
1462
|
return;
|
|
@@ -1209,13 +1479,13 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1209
1479
|
}, {
|
|
1210
1480
|
key: "_onPeerSessionReceived",
|
|
1211
1481
|
value: function _onPeerSessionReceived(session) {
|
|
1212
|
-
var _this$_userControl$
|
|
1213
|
-
|
|
1482
|
+
var _this$_userControl$ge5,
|
|
1483
|
+
_this14 = this;
|
|
1214
1484
|
if (session.sessionId && this._processedUserOpenDeviceRequests.has(session.sessionId)) {
|
|
1215
1485
|
return;
|
|
1216
1486
|
}
|
|
1217
1487
|
this._processedUserOpenDeviceRequests.add(session.sessionId);
|
|
1218
|
-
var localUserUid = (_this$_userControl$
|
|
1488
|
+
var localUserUid = (_this$_userControl$ge5 = this._userControl.getLocalUser()) === null || _this$_userControl$ge5 === void 0 ? void 0 : _this$_userControl$ge5.userId;
|
|
1219
1489
|
if (!localUserUid) {
|
|
1220
1490
|
return;
|
|
1221
1491
|
}
|
|
@@ -1244,13 +1514,13 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1244
1514
|
okText: (0, _i18n.transI18n)('fmt_additional_button_accept'),
|
|
1245
1515
|
cancelText: (0, _i18n.transI18n)('fmt_additional_button_refuse'),
|
|
1246
1516
|
onOk: function onOk() {
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1517
|
+
_this14._peerSessionControl.acceptPeerSession(session);
|
|
1518
|
+
_this14._deviceStreamStore.enableCameraWithStream(true);
|
|
1519
|
+
_this14._uiEventStore.closeConfirmDialog();
|
|
1250
1520
|
},
|
|
1251
1521
|
onCancel: function onCancel() {
|
|
1252
|
-
|
|
1253
|
-
|
|
1522
|
+
_this14._peerSessionControl.rejectPeerSession(session);
|
|
1523
|
+
_this14._uiEventStore.closeConfirmDialog();
|
|
1254
1524
|
}
|
|
1255
1525
|
}, _type4.FcrUISessionKey.REQUEST_OPEN_CAMERA);
|
|
1256
1526
|
return;
|
|
@@ -1270,13 +1540,13 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1270
1540
|
okText: (0, _i18n.transI18n)('fmt_device_label_audio_unmute'),
|
|
1271
1541
|
cancelText: (0, _i18n.transI18n)('fmt_additional_options_Keepsilent'),
|
|
1272
1542
|
onOk: function onOk() {
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1543
|
+
_this14._peerSessionControl.acceptPeerSession(session);
|
|
1544
|
+
_this14._deviceStreamStore.enableMicrophoneWithStream(true);
|
|
1545
|
+
_this14._uiEventStore.closeConfirmDialog();
|
|
1276
1546
|
},
|
|
1277
1547
|
onCancel: function onCancel() {
|
|
1278
|
-
|
|
1279
|
-
|
|
1548
|
+
_this14._peerSessionControl.rejectPeerSession(session);
|
|
1549
|
+
_this14._uiEventStore.closeConfirmDialog();
|
|
1280
1550
|
}
|
|
1281
1551
|
}, _type4.FcrUISessionKey.REQUEST_OPEN_MICROPHONE);
|
|
1282
1552
|
}
|
|
@@ -1316,29 +1586,29 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1316
1586
|
}, {
|
|
1317
1587
|
key: "_addReactions",
|
|
1318
1588
|
value: function _addReactions() {
|
|
1319
|
-
var
|
|
1589
|
+
var _this15 = this;
|
|
1320
1590
|
this._disposers.push((0, _mobx.reaction)(function () {
|
|
1321
|
-
return
|
|
1591
|
+
return _this15._participantsWindowActive;
|
|
1322
1592
|
}, function (active) {
|
|
1323
1593
|
if (active) {
|
|
1324
|
-
|
|
1325
|
-
userList:
|
|
1326
|
-
perspectiveType:
|
|
1327
|
-
allowChangeSelfName:
|
|
1328
|
-
allowChat:
|
|
1329
|
-
allowJoinWithMuteAudio:
|
|
1330
|
-
allowShareScreen:
|
|
1331
|
-
allowUnmuteSelfVideo:
|
|
1332
|
-
allowUnmuteSelfAudio:
|
|
1333
|
-
isLockRoomEnabled:
|
|
1334
|
-
isWaitingRoomEnabled:
|
|
1335
|
-
hasRevokeHostPermission:
|
|
1336
|
-
userRole:
|
|
1594
|
+
_this15._sendEvent(_constant.RendererEventAction.INIT_PARTICIPANT_LIST, {
|
|
1595
|
+
userList: _this15.userList,
|
|
1596
|
+
perspectiveType: _this15.currentPerspectiveType,
|
|
1597
|
+
allowChangeSelfName: _this15._securityStore.allowChangeSelfName(),
|
|
1598
|
+
allowChat: _this15._securityStore.allowChat(),
|
|
1599
|
+
allowJoinWithMuteAudio: _this15._securityStore.allowJoinWithMuteAudio(),
|
|
1600
|
+
allowShareScreen: _this15._securityStore.allowScreenShareAndBoard(),
|
|
1601
|
+
allowUnmuteSelfVideo: _this15._securityStore.allowUnmuteSelfVideo(),
|
|
1602
|
+
allowUnmuteSelfAudio: _this15._securityStore.allowUnmuteSelfAudio(),
|
|
1603
|
+
isLockRoomEnabled: _this15._securityStore.isLockRoomEnabled(),
|
|
1604
|
+
isWaitingRoomEnabled: _this15._securityStore.isWaitingRoomEnabled(),
|
|
1605
|
+
hasRevokeHostPermission: _this15._securityStore.hasRevokeHostPermission() && _this15._userControl.getLocalUser().userRole !== _type.FcrUserRole.HOST,
|
|
1606
|
+
userRole: _this15._userControl.getLocalUser().userRole
|
|
1337
1607
|
});
|
|
1338
1608
|
}
|
|
1339
1609
|
}));
|
|
1340
1610
|
this._disposers.push((0, _mobx.reaction)(function () {
|
|
1341
|
-
return
|
|
1611
|
+
return _this15.userList;
|
|
1342
1612
|
}, function (list) {
|
|
1343
1613
|
(0, _rendererEvent.sendEvent)({
|
|
1344
1614
|
action: _constant.RendererEventAction.UPDATE_PARTICIPANT,
|
|
@@ -1364,7 +1634,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1364
1634
|
}]);
|
|
1365
1635
|
}();
|
|
1366
1636
|
_ParticipantStore = ParticipantStore;
|
|
1367
|
-
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ParticipantStore, [[_mobx.observable, 1, "_mainList"], [_mobx.observable, 1, "_participantsWindowActive"], [_mobx.observable, 1, "currentPerspectiveType"], [_mobx.observable, 1, "audioVolumeMap"], [_mobx.observable, 1, "enableParticipantsJoinWithMute"], [_mobx.observable, 1, "searchText"], [_mobx.observable, 1, "currentModal"], [_mobx.observable, 1, "localUserRole"], [_mobx.observable, 1, "spotlightStreamId"], [_mobx.observable, 1, "enableSpotlight"], [_mobx.observable, 1, "mergeConfirmDialog"], [_mobx.observable, 1, "mergeUserId"], [_mobx.computed, 3, "userListSource"], [_mobx.computed, 3, "mergeUserInfo"], [_mobx.computed, 3, "userMap"], [_mobx.computed, 3, "pinedStreamIds"], [_mobx.computed, 3, "hasPinnedStream"], [_mobx.computed, 3, "userList"], [_mobx.computed, 3, "localMicVolume"], [_mobx.computed, 3, "hasRevokeHostPermission"], [_setSpotlightStreamIdDecs, 18, "setSpotlightStreamId"], [_decorator.bound, 2, "hasMutePermission"], [_decorator.bound, 2, "hasUnmutePermission"], [_decorator.bound, 2, "hasRequestStartAudioPermission"], [_setCurrentModalDecs, 18, "setCurrentModal"], [_decorator.bound, 2, "closeParticipantsAside"], [_openParticipantsWindowDecs, 18, "openParticipantsWindow"], [_setParticipantsWindowActiveDecs, 18, "setParticipantsWindowActive"], [_handlerSearchUserDecs, 18, "handlerSearchUser"], [_decorator.bound, 2, "onInvite"], [_decorator.bound, 2, "setMergeConfirmDialog"], [_decorator.bound, 2, "mergeConfirmDialogOk"], [_decorator.bound, 2, "removePin"], [_decorator.bound, 2, "addPin"], [_getAllowedOperationsDecs, 18, "getAllowedOperations"], [_handlerUserActionDecs, 18, "handlerUserAction"], [_decorator.bound, 2, "getMicStreamVolume"], [_handlerRoomControlActionDecs, 18, "handlerRoomControlAction"], [_handleEventDecs, 18, "_handleEvent"], [_kickOutUserDecs, 18, "_kickOutUser"], [_setAsAttendeeDecs, 18, "_setAsAttendee"], [_onAudioVolumeUpdatedDecs, 18, "_onAudioVolumeUpdated"], [_handleRemoteUserJoinedDecs, 18, "_handleRemoteUserJoined"], [_handleRemoteUserLeftDecs, 18, "_handleRemoteUserLeft"], [_onUserInfoUpdatedDecs, 18, "_onUserInfoUpdated"], [_initUserListDecs, 18, "_initUserList"], [_decorator.bound, 2, "_handleStreamsAdded"], [_decorator.bound, 2, "_handleStreamsUpdated"], [_decorator.bound, 2, "_handleStreamsRemoved"], [_refreshCurrentPerspectiveTypeDecs, 18, "_refreshCurrentPerspectiveType"], [_onPeerSessionReceivedDecs, 18, "_onPeerSessionReceived"], [_updateLocalUserRoleDecs, 18, "_updateLocalUserRole"]], []).e,
|
|
1637
|
+
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ParticipantStore, [[_mobx.observable, 1, "_mainList"], [_mobx.observable, 1, "_participantsWindowActive"], [_mobx.observable, 1, "currentPerspectiveType"], [_mobx.observable, 1, "audioVolumeMap"], [_mobx.observable, 1, "enableParticipantsJoinWithMute"], [_mobx.observable, 1, "searchText"], [_mobx.observable, 1, "currentModal"], [_mobx.observable, 1, "localUserRole"], [_mobx.observable, 1, "spotlightStreamId"], [_mobx.observable, 1, "enableSpotlight"], [_mobx.observable, 1, "mergeConfirmDialog"], [_mobx.observable, 1, "mergeUserId"], [_mobx.observable, 1, "activeTab"], [_mobx.observable, 1, "isNewWaitingRoomUserEnter"], [_mobx.observable, 1, "waitingRoomUserCount"], [_mobx.computed, 3, "userListSource"], [_mobx.computed, 3, "mergeUserInfo"], [_mobx.computed, 3, "userMap"], [_mobx.computed, 3, "pinedStreamIds"], [_mobx.computed, 3, "hasPinnedStream"], [_mobx.computed, 3, "userList"], [_mobx.computed, 3, "localMicVolume"], [_mobx.computed, 3, "hasRevokeHostPermission"], [_setSpotlightStreamIdDecs, 18, "setSpotlightStreamId"], [_decorator.bound, 2, "hasMutePermission"], [_decorator.bound, 2, "hasWaitingRoomPermission"], [_decorator.bound, 2, "hasUnmutePermission"], [_decorator.bound, 2, "hasRequestStartAudioPermission"], [_setCurrentModalDecs, 18, "setCurrentModal"], [_decorator.bound, 2, "closeParticipantsAside"], [_openParticipantsWindowDecs, 18, "openParticipantsWindow"], [_setParticipantsWindowActiveDecs, 18, "setParticipantsWindowActive"], [_handlerSearchUserDecs, 18, "handlerSearchUser"], [_decorator.bound, 2, "onInvite"], [_decorator.bound, 2, "setMergeConfirmDialog"], [_decorator.bound, 2, "mergeConfirmDialogOk"], [_decorator.bound, 2, "removePin"], [_decorator.bound, 2, "addPin"], [_getAllowedOperationsDecs, 18, "getAllowedOperations"], [_closeRemoveAdmitWaitingRoomDialogDecs, 18, "closeRemoveAdmitWaitingRoomDialog"], [_openRemoveAdmitWaitingRoomDialogDecs, 18, "openRemoveAdmitWaitingRoomDialog"], [_handlerUserActionDecs, 18, "handlerUserAction"], [_moveToWaitingRoomByUserIdsDecs, 18, "_moveToWaitingRoomByUserIds"], [_removeWaitingRoomUserDecs, 18, "removeWaitingRoomUser"], [_kickOutWaitingRoomAllMemberDecs, 18, "kickOutWaitingRoomAllMember"], [_moveToMainRoomAllMemberDecs, 18, "moveToMainRoomAllMember"], [_decorator.bound, 2, "getMicStreamVolume"], [_handlerRoomControlActionDecs, 18, "handlerRoomControlAction"], [_handleEventDecs, 18, "_handleEvent"], [_moveToMainRoomByUserIdsDecs, 18, "moveToMainRoomByUserIds"], [_handleActiveTabDecs, 18, "handleActiveTab"], [_initWaitingRoomUserListDecs, 18, "_initWaitingRoomUserList"], [_kickOutUserDecs, 18, "_kickOutUser"], [_setAsAttendeeDecs, 18, "_setAsAttendee"], [_onAudioVolumeUpdatedDecs, 18, "_onAudioVolumeUpdated"], [_handleRemoteUserJoinedDecs, 18, "_handleRemoteUserJoined"], [_handleRemoteUserLeftDecs, 18, "_handleRemoteUserLeft"], [_handleRemoteWaitingUserJoinedDecs, 18, "_handleRemoteWaitingUserJoined"], [_handleRemoteWaitingUserLeftDecs, 18, "_handleRemoteWaitingUserLeft"], [_onUserInfoUpdatedDecs, 18, "_onUserInfoUpdated"], [_initUserListDecs, 18, "_initUserList"], [_decorator.bound, 2, "_handleStreamsAdded"], [_decorator.bound, 2, "_handleStreamsUpdated"], [_decorator.bound, 2, "_handleStreamsRemoved"], [_refreshCurrentPerspectiveTypeDecs, 18, "_refreshCurrentPerspectiveType"], [_onPeerSessionReceivedDecs, 18, "_onPeerSessionReceived"], [_updateLocalUserRoleDecs, 18, "_updateLocalUserRole"]], []).e, 16);
|
|
1368
1638
|
_init__mainList = _applyDecs$e[0];
|
|
1369
1639
|
_init__participantsWindowActive = _applyDecs$e[1];
|
|
1370
1640
|
_init_currentPerspectiveType = _applyDecs$e[2];
|
|
@@ -1377,4 +1647,7 @@ _init_spotlightStreamId = _applyDecs$e[8];
|
|
|
1377
1647
|
_init_enableSpotlight = _applyDecs$e[9];
|
|
1378
1648
|
_init_mergeConfirmDialog = _applyDecs$e[10];
|
|
1379
1649
|
_init_mergeUserId = _applyDecs$e[11];
|
|
1380
|
-
|
|
1650
|
+
_init_activeTab = _applyDecs$e[12];
|
|
1651
|
+
_init_isNewWaitingRoomUserEnter = _applyDecs$e[13];
|
|
1652
|
+
_init_waitingRoomUserCount = _applyDecs$e[14];
|
|
1653
|
+
_initProto = _applyDecs$e[15];
|