fcr-ui-scene 3.3.0 → 3.4.0
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/installer/icons/icon.png +0 -0
- package/lib/common/device-store.d.ts +21 -11
- package/lib/common/device-store.js +236 -151
- package/lib/common/device-stream-store.d.ts +22 -4
- package/lib/common/device-stream-store.js +297 -113
- package/lib/common/event-store.d.ts +19 -10
- package/lib/common/event-store.js +28 -10
- package/lib/common/remote-renderer.d.ts +15 -0
- package/lib/common/remote-renderer.js +138 -0
- package/lib/common/room-store.d.ts +58 -0
- package/lib/common/room-store.js +402 -0
- package/lib/common/security-store.d.ts +35 -27
- package/lib/common/security-store.js +221 -383
- package/lib/creator.d.ts +3 -1
- package/lib/creator.js +15 -1
- package/lib/electron/app.js +51 -0
- package/lib/electron/bootstrap-sdk.js +3 -1
- package/lib/electron/injections.d.ts +7 -4
- package/lib/electron/injections.js +141 -113
- package/lib/electron/logger.js +3 -1
- package/lib/electron/main.js +13 -1
- package/lib/electron/plugins/devtool-shortcut.d.ts +2 -0
- package/lib/electron/plugins/devtool-shortcut.js +19 -0
- package/lib/electron/preload.js +6 -3
- package/lib/fragments/control-bar/cloud-recording-buttons.js +1 -1
- package/lib/fragments/control-bar/control-bar-store.d.ts +11 -1
- package/lib/fragments/control-bar/control-bar-store.js +196 -111
- package/lib/fragments/control-bar/index.js +6 -0
- package/lib/fragments/control-bar/more-actions/index.js +1 -1
- package/lib/fragments/control-bar/security-content/index.css +65 -0
- package/lib/fragments/control-bar/security-content/index.js +66 -2
- package/lib/fragments/control-bar/share-state-nav/index.js +1 -1
- package/lib/fragments/control-bar/view.js +15 -6
- package/lib/fragments/live-streaming/store.d.ts +1 -1
- package/lib/fragments/live-streaming/store.js +1 -1
- package/lib/fragments/live-streaming/view.js +4 -2
- package/lib/fragments/share-screen-selection/selection-store.d.ts +1 -1
- package/lib/fragments/share-screen-selection/selection-store.js +1 -1
- package/lib/fragments/share-screen-selection/view.js +20 -20
- package/lib/fragments/toolbar/components/eraser-picker.js +1 -1
- package/lib/fragments/toolbar/components/pen-picker.js +1 -1
- package/lib/fragments/toolbar/components/shape-picker.js +1 -1
- package/lib/fragments/toolbar/components/transfer-position-icon/index.d.ts +11 -0
- package/lib/fragments/toolbar/components/transfer-position-icon/index.js +46 -0
- package/lib/fragments/toolbar/components/wrapper.js +1 -1
- package/lib/fragments/toolbar/hooks.js +1 -1
- package/lib/fragments/toolbar/store.d.ts +1 -1
- package/lib/hooks/meeting-time.d.ts +1 -1
- package/lib/modules/Interpreter/action/add-btn/index.css +4 -0
- package/lib/modules/Interpreter/action/add-btn/index.d.ts +11 -0
- package/lib/modules/Interpreter/action/add-btn/index.js +43 -0
- package/lib/modules/Interpreter/action/delete-btn/index.css +14 -0
- package/lib/modules/Interpreter/action/delete-btn/index.d.ts +6 -0
- package/lib/modules/Interpreter/action/delete-btn/index.js +38 -0
- package/lib/modules/Interpreter/action/edit-btn/index.css +3 -0
- package/lib/modules/Interpreter/action/edit-btn/index.d.ts +5 -0
- package/lib/modules/Interpreter/action/edit-btn/index.js +49 -0
- package/lib/modules/Interpreter/action/switch-btn/index.d.ts +5 -0
- package/lib/modules/Interpreter/action/switch-btn/index.js +52 -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 +43 -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 +55 -0
- package/lib/modules/Interpreter/constant.js +100 -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 +53 -0
- package/lib/modules/Interpreter/footer/components/set-btn/index.d.ts +5 -0
- package/lib/modules/Interpreter/footer/components/set-btn/index.js +49 -0
- package/lib/modules/Interpreter/footer/components/tooltip-wrapper/index.d.ts +6 -0
- package/lib/modules/Interpreter/footer/components/tooltip-wrapper/index.js +30 -0
- package/lib/modules/Interpreter/footer/index.css +10 -0
- package/lib/modules/Interpreter/footer/index.d.ts +6 -0
- package/lib/modules/Interpreter/footer/index.js +26 -0
- package/lib/modules/Interpreter/index.css +15 -0
- package/lib/modules/Interpreter/index.d.ts +23 -0
- package/lib/modules/Interpreter/index.js +116 -0
- package/lib/modules/Interpreter/interpreter-list/index.css +4 -0
- package/lib/modules/Interpreter/interpreter-list/index.d.ts +6 -0
- package/lib/modules/Interpreter/interpreter-list/index.js +46 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.css +52 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.d.ts +14 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.js +179 -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 +16 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/index.js +178 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.css +48 -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 +154 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.css +32 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.d.ts +8 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.js +48 -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 +104 -0
- package/lib/modules/Interpreter/store.js +1632 -0
- package/lib/modules/Interpreter/tooltip-wrapper/index.d.ts +6 -0
- package/lib/modules/Interpreter/tooltip-wrapper/index.js +30 -0
- package/lib/modules/Interpreter/view.d.ts +3 -0
- package/lib/modules/Interpreter/view.js +69 -0
- package/lib/modules/action-bar/Interpreter/index.d.ts +6 -0
- package/lib/modules/action-bar/Interpreter/index.js +41 -0
- package/lib/modules/action-bar/action-bar-collapes-items.d.ts +4 -1
- package/lib/modules/action-bar/action-bar-collapes-items.js +32 -15
- package/lib/modules/action-bar/apps/app-item/index.css +35 -0
- package/lib/modules/action-bar/apps/app-item/index.d.ts +12 -0
- package/lib/modules/action-bar/apps/app-item/index.js +61 -0
- package/lib/modules/action-bar/apps/appitems.d.ts +5 -0
- package/lib/modules/action-bar/apps/appitems.js +45 -0
- package/lib/modules/action-bar/apps/index.css +8 -0
- package/lib/modules/action-bar/apps/index.d.ts +4 -0
- package/lib/modules/action-bar/apps/index.js +57 -0
- package/lib/modules/action-bar/apps/useAppItemOptions.d.ts +9 -0
- package/lib/modules/action-bar/apps/useAppItemOptions.js +29 -0
- package/lib/modules/action-bar/apps/useBeautyBackground.d.ts +10 -0
- package/lib/modules/action-bar/apps/useBeautyBackground.js +34 -0
- package/lib/modules/action-bar/apps/useInterpreter.d.ts +14 -0
- package/lib/modules/action-bar/apps/useInterpreter.js +35 -0
- package/lib/modules/action-bar/apps/useLiveStreaming.d.ts +16 -0
- package/lib/modules/action-bar/apps/useLiveStreaming.js +41 -0
- package/lib/modules/action-bar/chat/index.js +3 -3
- package/lib/modules/action-bar/device/index.js +22 -24
- package/lib/modules/action-bar/index.css +30 -3
- package/lib/modules/action-bar/index.d.ts +8 -2
- package/lib/modules/action-bar/index.dev.js +6 -3
- package/lib/modules/action-bar/index.js +25 -61
- package/lib/modules/action-bar/leave/assign-host.d.ts +1 -1
- package/lib/modules/action-bar/leave/index.css +10 -0
- package/lib/modules/action-bar/leave/index.js +66 -39
- package/lib/modules/action-bar/leave/leave-meeting.d.ts +3 -2
- package/lib/modules/action-bar/leave/leave-meeting.js +13 -4
- package/lib/modules/action-bar/live-streaming/index.js +3 -3
- package/lib/modules/action-bar/more/index.js +9 -6
- package/lib/modules/action-bar/more/poppover-content.js +33 -12
- package/lib/modules/action-bar/participants/index.js +2 -2
- package/lib/modules/action-bar/record/index.js +4 -4
- package/lib/modules/action-bar/screen-share/index.js +4 -4
- package/lib/modules/action-bar/screen-share/submenu.js +4 -4
- package/lib/modules/action-bar/security/drop-menu.js +49 -11
- package/lib/modules/action-bar/security/index.js +11 -6
- package/lib/modules/action-bar/settings/index.js +4 -4
- package/lib/modules/action-bar/smaller.js +4 -4
- package/lib/modules/action-bar/store.d.ts +54 -11
- package/lib/modules/action-bar/store.js +390 -164
- 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 +16 -0
- package/lib/modules/action-bar/switch-input-language-room/index.js +236 -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 +14 -0
- package/lib/modules/action-bar/switch-output-language-room/guide-tooltip/index.js +72 -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 +303 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/interpreter/index.css +58 -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 +100 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/virtual-image/index.css +56 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/virtual-image/index.d.ts +5 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/virtual-image/index.js +33 -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 +74 -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 +99 -0
- package/lib/modules/action-bar/view.js +25 -11
- package/lib/modules/audio-stream/index.d.ts +32 -9
- package/lib/modules/audio-stream/index.js +258 -57
- package/lib/modules/chat/chat-bar/index.css +1 -0
- package/lib/modules/chat/chat-bar/index.d.ts +3 -3
- package/lib/modules/chat/chat-bar/index.js +14 -16
- package/lib/modules/chat/chat-select/index.css +7 -0
- package/lib/modules/chat/chat-select/index.d.ts +1 -1
- package/lib/modules/chat/chat-select/index.js +18 -4
- package/lib/modules/chat/chat.js +14 -26
- package/lib/modules/chat/index.d.ts +5 -3
- package/lib/modules/chat/index.dev.js +7 -3
- package/lib/modules/chat/index.js +16 -9
- package/lib/modules/chat/message-list.js +8 -3
- package/lib/modules/chat/store.d.ts +12 -6
- package/lib/modules/chat/store.js +109 -69
- package/lib/modules/components/device-control/components/audio-menu/index.d.ts +6 -0
- package/lib/modules/components/device-control/components/audio-menu/index.js +156 -0
- package/lib/modules/components/device-control/components/carmera/index.d.ts +3 -0
- package/lib/modules/components/device-control/components/carmera/index.js +111 -0
- package/lib/modules/components/device-control/components/microphone/index.d.ts +7 -0
- package/lib/modules/components/device-control/components/microphone/index.js +170 -0
- package/lib/modules/components/device-control/components/none-menu/index.d.ts +4 -0
- package/lib/modules/components/device-control/components/none-menu/index.js +68 -0
- package/lib/modules/components/device-control/components/phone-menu/index.d.ts +4 -0
- package/lib/modules/components/device-control/components/phone-menu/index.js +61 -0
- package/lib/modules/components/device-control/components/video-menu/index.d.ts +5 -0
- package/lib/modules/components/device-control/components/video-menu/index.js +111 -0
- package/lib/modules/components/device-control/hooks/index.d.ts +9 -0
- package/lib/modules/components/device-control/hooks/index.js +42 -0
- package/lib/modules/components/device-control/index.css +163 -0
- package/lib/modules/components/device-control/index.d.ts +3 -0
- package/lib/modules/components/device-control/index.js +21 -0
- package/lib/modules/components/device-control/store.d.ts +42 -0
- package/lib/modules/components/device-control/store.js +256 -0
- package/lib/modules/components/device-control/type.d.ts +6 -0
- package/lib/modules/components/device-control/type.js +13 -0
- package/lib/modules/components/security-menu/index.css +35 -0
- package/lib/modules/components/security-menu/index.d.ts +5 -0
- package/lib/modules/components/security-menu/index.js +315 -0
- package/lib/modules/components/toast/index.css +12 -0
- package/lib/modules/components/toast/index.d.ts +10 -0
- package/lib/modules/components/toast/index.js +66 -0
- package/lib/modules/components/toast/store.d.ts +17 -0
- package/lib/modules/components/toast/store.js +149 -0
- package/lib/modules/components/toast/view.d.ts +2 -0
- package/lib/modules/components/toast/view.js +35 -0
- package/lib/modules/connection-gateway/components/computer/index.js +6 -6
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.css +1 -1
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.d.ts +1 -1
- package/lib/modules/connection-gateway/components/phone/index.js +3 -2
- package/lib/modules/connection-gateway/components/tabs/index.js +2 -1
- package/lib/modules/connection-gateway/index.d.ts +1 -1
- package/lib/modules/connection-gateway/index.js +1 -1
- package/lib/modules/connection-gateway/store.d.ts +8 -12
- package/lib/modules/connection-gateway/store.js +87 -111
- package/lib/modules/control-bar/components/cloud-recording-buttons.d.ts +1 -0
- package/lib/modules/control-bar/components/cloud-recording-buttons.js +67 -0
- package/lib/modules/control-bar/components/meeting-details/index.css +133 -0
- package/lib/modules/control-bar/components/meeting-details/index.d.ts +2 -0
- package/lib/modules/control-bar/components/meeting-details/index.js +251 -0
- package/lib/modules/control-bar/components/more-actions/index.css +72 -0
- package/lib/modules/control-bar/components/more-actions/index.d.ts +7 -0
- package/lib/modules/control-bar/components/more-actions/index.js +182 -0
- package/lib/modules/control-bar/components/share-state-nav/index.css +74 -0
- package/lib/modules/control-bar/components/share-state-nav/index.d.ts +10 -0
- package/lib/modules/control-bar/components/share-state-nav/index.js +116 -0
- package/lib/modules/control-bar/components/stop-live-streaming/index.d.ts +1 -0
- package/lib/modules/control-bar/components/stop-live-streaming/index.js +36 -0
- package/lib/modules/control-bar/components/stop-live-streaming/stop-button.d.ts +6 -0
- package/lib/modules/control-bar/components/stop-live-streaming/stop-button.js +35 -0
- package/lib/modules/control-bar/components/transfer-position-icon/index.d.ts +11 -0
- package/lib/modules/control-bar/components/transfer-position-icon/index.js +46 -0
- package/lib/modules/control-bar/index.css +341 -0
- package/lib/modules/control-bar/index.d.ts +29 -0
- package/lib/modules/control-bar/index.js +111 -0
- package/lib/modules/control-bar/store.d.ts +111 -0
- package/lib/modules/control-bar/store.js +881 -0
- package/lib/modules/control-bar/type.d.ts +10 -0
- package/lib/modules/control-bar/type.js +18 -0
- package/lib/modules/control-bar/view.d.ts +1 -0
- package/lib/modules/control-bar/view.js +351 -0
- package/lib/modules/device-pretest/assets/virtual-backdound-resources.d.ts +9 -0
- package/lib/modules/device-pretest/assets/virtual-backdound-resources.js +7 -1
- package/lib/modules/device-pretest/audio-preview/speaker-control.js +2 -2
- package/lib/modules/device-pretest/index.js +2 -2
- package/lib/modules/device-pretest/settings/beauty.d.ts +1 -1
- package/lib/modules/device-pretest/settings/video-settings-basic.js +2 -2
- package/lib/modules/device-pretest/store.d.ts +2 -1
- package/lib/modules/device-pretest/store.js +7 -7
- package/lib/modules/dialog/components/Interpreter/electron.d.ts +2 -0
- package/lib/modules/dialog/components/Interpreter/electron.js +53 -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 +62 -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.d.ts +1 -1
- package/lib/modules/dialog/components/chat/electron.js +17 -44
- package/lib/modules/dialog/components/chat/index.js +3 -3
- package/lib/modules/dialog/components/confirm/electron.d.ts +1 -1
- package/lib/modules/dialog/components/confirm/electron.js +38 -70
- package/lib/modules/dialog/components/confirm/index.d.ts +1 -9
- package/lib/modules/dialog/components/confirm/index.js +31 -77
- package/lib/modules/dialog/components/connection-gateway/electron.d.ts +4 -1
- package/lib/modules/dialog/components/connection-gateway/electron.js +30 -40
- package/lib/modules/dialog/components/connection-gateway/index.d.ts +6 -1
- package/lib/modules/dialog/components/connection-gateway/index.js +11 -6
- package/lib/modules/dialog/components/control-bar/index.d.ts +7 -0
- package/lib/modules/dialog/components/control-bar/index.js +42 -0
- package/lib/modules/dialog/components/device-setting/electron.js +37 -56
- package/lib/modules/dialog/components/device-setting/index.js +4 -3
- package/lib/modules/dialog/components/invite/index.d.ts +3 -0
- package/lib/modules/dialog/components/invite/index.js +68 -0
- package/lib/modules/dialog/components/live-streaming/index.d.ts +4 -0
- package/lib/modules/dialog/components/live-streaming/index.js +88 -0
- package/lib/modules/dialog/components/operation-waiting-room/electron.js +28 -75
- package/lib/modules/dialog/components/operation-waiting-room/index.js +4 -4
- package/lib/modules/dialog/components/participant/electron.js +25 -74
- package/lib/modules/dialog/components/participant/index.js +6 -3
- package/lib/modules/dialog/components/remove-admit-waiting-room/electron.d.ts +8 -1
- package/lib/modules/dialog/components/remove-admit-waiting-room/electron.js +22 -75
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.js +3 -3
- package/lib/modules/dialog/components/share-screen-selection/index.js +10 -28
- 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/system-preference/bg1.png +0 -0
- package/lib/modules/dialog/components/system-preference/bg2.png +0 -0
- package/lib/modules/dialog/components/system-preference/electron.d.ts +5 -0
- package/lib/modules/dialog/components/system-preference/electron.js +42 -0
- package/lib/modules/dialog/components/system-preference/index.css +49 -0
- package/lib/modules/dialog/components/system-preference/index.d.ts +5 -0
- package/lib/modules/dialog/components/system-preference/index.js +150 -0
- package/lib/modules/dialog/components/toast/index.d.ts +3 -0
- package/lib/modules/dialog/components/toast/index.js +62 -0
- package/lib/modules/dialog/components/whiteboard/index.js +2 -2
- package/lib/modules/dialog/dialogs.d.ts +1 -5
- package/lib/modules/dialog/dialogs.js +23 -177
- package/lib/modules/dialog/hooks/useElectron.d.ts +26 -0
- package/lib/modules/dialog/hooks/useElectron.js +109 -0
- package/lib/modules/dialog/index.css +7 -2
- package/lib/modules/dialog/index.d.ts +6 -6
- package/lib/modules/dialog/index.js +9 -18
- package/lib/modules/dialog/store.d.ts +16 -18
- package/lib/modules/dialog/store.js +114 -164
- package/lib/modules/dialog/view.js +2 -2
- package/lib/modules/event-confirm/index.css +12 -0
- package/lib/modules/event-confirm/index.d.ts +10 -0
- package/lib/modules/event-confirm/index.js +55 -0
- package/lib/modules/event-confirm/store.d.ts +18 -0
- package/lib/modules/event-confirm/store.js +172 -0
- package/lib/modules/event-confirm/view.d.ts +2 -0
- package/lib/modules/event-confirm/view.js +156 -0
- package/lib/modules/event-toast/index.css +16 -0
- package/lib/modules/event-toast/index.d.ts +1 -1
- package/lib/modules/event-toast/index.js +19 -3
- package/lib/modules/event-toast/store.d.ts +13 -0
- package/lib/modules/event-toast/store.js +114 -17
- package/lib/modules/event-toast/view.d.ts +4 -1
- package/lib/modules/event-toast/view.js +28 -4
- package/lib/modules/invite/index.d.ts +1 -1
- package/lib/modules/invite/index.js +13 -3
- package/lib/modules/invite/pstn-invite.js +6 -9
- package/lib/modules/invite/store.d.ts +24 -25
- package/lib/modules/invite/store.js +148 -147
- package/lib/modules/invite/view.js +2 -2
- package/lib/modules/invite/voip-invite.js +2 -3
- package/lib/modules/layout/components/Aside.js +3 -3
- package/lib/modules/layout/components/Carousel.js +15 -9
- package/lib/modules/layout/components/Gallery.js +25 -17
- package/lib/modules/layout/components/Layout.js +11 -6
- package/lib/modules/layout/components/index.css +11 -4
- package/lib/modules/layout/index.css +1 -0
- package/lib/modules/layout/index.d.ts +4 -2
- package/lib/modules/layout/index.dev.js +20 -10
- package/lib/modules/layout/index.js +24 -18
- package/lib/modules/layout/member-window/index.css +95 -10
- package/lib/modules/layout/member-window/index.d.ts +10 -3
- package/lib/modules/layout/member-window/index.js +205 -112
- package/lib/modules/layout/store.d.ts +20 -7
- package/lib/modules/layout/store.js +137 -65
- package/lib/modules/layout/type.d.ts +2 -2
- package/lib/modules/layout/video-window-datasource.d.ts +5 -3
- package/lib/modules/layout/video-window-datasource.js +61 -26
- package/lib/modules/live-streaming/index.d.ts +1 -2
- package/lib/modules/live-streaming/index.js +13 -29
- package/lib/modules/live-streaming/store.d.ts +3 -7
- package/lib/modules/live-streaming/store.js +7 -73
- package/lib/modules/live-streaming/view.js +3 -3
- package/lib/modules/notification/context.d.ts +2 -0
- package/lib/modules/notification/context.js +9 -0
- package/lib/modules/notification/index.css +59 -0
- package/lib/modules/notification/index.d.ts +15 -0
- package/lib/modules/notification/index.js +61 -0
- package/lib/modules/notification/interpreter-status/index.css +76 -0
- package/lib/modules/notification/interpreter-status/index.d.ts +3 -0
- package/lib/modules/notification/interpreter-status/index.js +62 -0
- package/lib/modules/notification/store.d.ts +17 -0
- package/lib/modules/notification/store.js +129 -0
- package/lib/modules/notification/view.d.ts +10 -0
- package/lib/modules/notification/view.js +116 -0
- package/lib/modules/offscreen-pulling/index.d.ts +19 -0
- package/lib/modules/offscreen-pulling/index.js +127 -0
- package/lib/modules/participant/attendee/index.css +3 -0
- package/lib/modules/participant/attendee/index.d.ts +14 -3
- package/lib/modules/participant/attendee/index.js +87 -33
- package/lib/modules/participant/attendee/participants-more-action.d.ts +18 -0
- package/lib/modules/participant/attendee/participants-more-action.js +278 -0
- package/lib/modules/participant/components/drop-menu/index.css +59 -0
- package/lib/modules/participant/components/drop-menu/index.d.ts +2 -0
- package/lib/modules/participant/components/drop-menu/index.js +189 -0
- package/lib/modules/participant/components/footer/buttons.d.ts +7 -0
- package/lib/modules/participant/components/footer/buttons.js +53 -0
- package/lib/modules/participant/components/footer/index.d.ts +4 -0
- package/lib/modules/participant/components/footer/index.js +37 -0
- package/lib/modules/participant/components/merge/index.d.ts +11 -0
- package/lib/modules/participant/components/merge/index.js +49 -0
- package/lib/modules/participant/components/mute-all/index.d.ts +9 -0
- package/lib/modules/participant/components/mute-all/index.js +78 -0
- package/lib/modules/participant/components/participants/index.d.ts +2 -0
- package/lib/modules/participant/components/participants/index.js +201 -0
- package/lib/modules/participant/components/rename/index.d.ts +4 -0
- package/lib/modules/participant/components/rename/index.js +45 -0
- package/lib/modules/participant/index.css +6 -0
- package/lib/modules/participant/index.d.ts +8 -6
- package/lib/modules/participant/index.dev.js +10 -4
- package/lib/modules/participant/index.js +13 -33
- package/lib/modules/participant/member-list-data-source.d.ts +1 -1
- package/lib/modules/participant/member-list-data-source.js +3 -3
- package/lib/modules/participant/store.d.ts +38 -27
- package/lib/modules/participant/store.js +456 -292
- package/lib/modules/participant/type.d.ts +1 -1
- package/lib/modules/participant/view.d.ts +0 -9
- package/lib/modules/participant/view.js +8 -346
- package/lib/modules/setting/audio-settings/audio-settings.js +10 -10
- package/lib/modules/setting/dialog-wrapper.js +2 -2
- package/lib/modules/setting/general-settings/general-settings.js +2 -2
- package/lib/modules/setting/index.d.ts +3 -2
- package/lib/modules/setting/index.dev.js +1 -1
- package/lib/modules/setting/index.js +7 -3
- package/lib/modules/setting/minutes-settings/minutes-settings.js +2 -2
- package/lib/modules/setting/state/index.js +3 -3
- package/lib/modules/setting/storage-settings/storage-settings.js +2 -2
- package/lib/modules/setting/store.d.ts +16 -13
- package/lib/modules/setting/store.js +83 -53
- package/lib/modules/setting/translate-settings/translate-settings.js +2 -2
- package/lib/modules/setting/video-settings/video-settings-basic.js +2 -2
- package/lib/modules/setting/video-settings/video-settings.js +2 -11
- package/lib/modules/setting/view.js +1 -2
- package/lib/modules/share-screen/index.d.ts +1 -5
- package/lib/modules/share-screen/index.dev.js +8 -16
- package/lib/modules/share-screen/index.js +2 -99
- package/lib/modules/share-screen/selection/index.js +51 -40
- package/lib/modules/share-screen/share-state-bar/index.js +1 -1
- package/lib/modules/share-screen/store.d.ts +13 -47
- package/lib/modules/share-screen/store.js +470 -924
- package/lib/modules/share-screen/view.js +6 -19
- package/lib/modules/sound-effect/index.d.ts +54 -0
- package/lib/modules/sound-effect/index.js +295 -0
- package/lib/modules/sound-effect/sound-effect-player.d.ts +12 -0
- package/lib/modules/sound-effect/sound-effect-player.js +57 -0
- package/lib/modules/state-bar/index.css +3 -0
- package/lib/modules/state-bar/index.d.ts +8 -4
- package/lib/modules/state-bar/index.js +37 -23
- package/lib/modules/state-bar/layout-config.js +6 -7
- package/lib/modules/state-bar/live-streaming-state.js +10 -15
- package/lib/modules/state-bar/meeting-detail.css +32 -13
- package/lib/modules/state-bar/meeting-details.js +118 -57
- package/lib/modules/state-bar/meeting-network-state.js +4 -4
- package/lib/modules/state-bar/meeting-time.js +2 -2
- package/lib/modules/state-bar/network-quality.js +2 -2
- package/lib/modules/state-bar/recording.js +2 -3
- package/lib/modules/state-bar/store.d.ts +10 -6
- package/lib/modules/state-bar/store.js +58 -42
- package/lib/modules/state-bar/view.js +41 -26
- package/lib/modules/video-window/deviceState/index.d.ts +2 -1
- package/lib/modules/video-window/deviceState/index.js +8 -8
- package/lib/modules/video-window/index.d.ts +2 -1
- package/lib/modules/video-window/index.js +23 -16
- package/lib/modules/video-window/members/index.js +14 -8
- package/lib/modules/video-window/speaking/index.js +2 -2
- package/lib/modules/video-window/store.d.ts +13 -5
- package/lib/modules/video-window/store.js +73 -20
- package/lib/modules/video-window/topControl/index.js +2 -2
- package/lib/modules/video-window/type.d.ts +0 -5
- package/lib/modules/video-window/type.js +1 -7
- package/lib/modules/video-window/view.js +2 -2
- package/lib/modules/waiting-room-layout/index.css +17 -3
- package/lib/modules/waiting-room-layout/index.js +13 -3
- package/lib/modules/waiting-room-layout/store.d.ts +5 -2
- package/lib/modules/waiting-room-layout/store.js +12 -5
- package/lib/modules/waiting-room-layout/view.js +43 -33
- package/lib/modules/whiteboard/app.js +2 -2
- package/lib/modules/whiteboard/components/control-bar/index.js +4 -6
- package/lib/modules/whiteboard/components/control-bar/store.d.ts +2 -2
- package/lib/modules/whiteboard/components/control-bar/store.js +1 -1
- package/lib/modules/whiteboard/components/loading/index.js +2 -2
- package/lib/modules/whiteboard/components/multi-window/index.js +2 -2
- package/lib/modules/whiteboard/components/progress/electron.js +3 -3
- package/lib/modules/whiteboard/components/switch-theme/index.css +1 -0
- package/lib/modules/whiteboard/components/switch-theme/index.js +19 -9
- package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.js +1 -1
- package/lib/modules/whiteboard/components/toolbar/hooks/index.js +1 -1
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +1 -1
- package/lib/modules/whiteboard/context.d.ts +1 -1
- package/lib/modules/whiteboard/context.js +2 -2
- package/lib/modules/whiteboard/index.d.ts +5 -10
- package/lib/modules/whiteboard/index.js +32 -74
- package/lib/modules/whiteboard/type.d.ts +1 -1
- package/lib/plugins/browser-runtime-plugin.js +27 -3
- package/lib/plugins/electron-rtc-plugin.js +3 -3
- package/lib/plugins/module-dev-plugin.d.ts +1 -1
- package/lib/plugins/module-dev-plugin.js +3 -3
- package/lib/plugins/rtm-plugin.js +3 -3
- package/lib/plugins/web-rtc-plugin.js +3 -3
- package/lib/runtime.d.ts +15 -4
- package/lib/translations/enUS.d.ts +267 -2
- package/lib/translations/enUS.js +373 -103
- package/lib/translations/zhCN.d.ts +267 -3
- package/lib/translations/zhCN.js +299 -30
- package/lib/type.d.ts +13 -4
- package/lib/type.js +4 -4
- package/lib/ui-manager.d.ts +8 -9
- package/lib/ui-manager.js +602 -655
- package/lib/ui-scene.d.ts +3 -3
- package/lib/ui-scene.js +9 -22
- package/lib/utilities/constant.d.ts +44 -155
- package/lib/utilities/constant.js +42 -129
- package/lib/utilities/extract.d.ts +1 -1
- package/lib/utilities/parameters.d.ts +4 -0
- package/lib/utilities/parameters.js +19 -1
- package/lib/utilities/renderer.d.ts +2 -1
- package/lib/utilities/renderer.js +6 -3
- package/lib/utilities/screen-capture-permission.d.ts +1 -0
- package/lib/utilities/screen-capture-permission.js +16 -0
- package/lib/utilities/screen.js +32 -23
- package/lib/utilities/tools.d.ts +10 -1
- package/lib/utilities/tools.js +69 -4
- package/lib/utilities/ui-resources.d.ts +1 -0
- package/lib/utilities/ui-resources.js +5 -2
- package/lib/utilities/video-track-render-context.d.ts +2 -2
- package/package.json +7 -7
- package/public/assets/loading.gif +0 -0
- package/public/index.html +50 -6
|
@@ -10,8 +10,11 @@ require("core-js/modules/es.date.to-primitive.js");
|
|
|
10
10
|
require("core-js/modules/es.function.name.js");
|
|
11
11
|
require("core-js/modules/es.number.constructor.js");
|
|
12
12
|
require("core-js/modules/es.object.create.js");
|
|
13
|
+
require("core-js/modules/es.object.define-properties.js");
|
|
13
14
|
require("core-js/modules/es.object.define-property.js");
|
|
14
15
|
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
16
|
+
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
17
|
+
require("core-js/modules/es.object.keys.js");
|
|
15
18
|
require("core-js/modules/esnext.function.metadata.js");
|
|
16
19
|
require("core-js/modules/esnext.symbol.metadata.js");
|
|
17
20
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -19,7 +22,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
19
22
|
Object.defineProperty(exports, "__esModule", {
|
|
20
23
|
value: true
|
|
21
24
|
});
|
|
22
|
-
exports["default"] = void 0;
|
|
25
|
+
exports["default"] = exports.StoreContext = void 0;
|
|
23
26
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
24
27
|
require("core-js/modules/es.array.concat.js");
|
|
25
28
|
require("core-js/modules/es.array.filter.js");
|
|
@@ -96,25 +99,29 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
|
96
99
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
97
100
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
98
101
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
99
|
-
var
|
|
100
|
-
var _type = require("
|
|
102
|
+
var _fcrCore = require("fcr-core");
|
|
103
|
+
var _type = require("fcr-core/lib/type");
|
|
101
104
|
var _constant = require("../../utilities/constant");
|
|
102
105
|
var _logger = require("agora-foundation/lib/logger");
|
|
103
|
-
var _type2 = require("agora-rte-sdk/lib/
|
|
104
|
-
var _type3 = require("agora-rte-sdk/lib/type");
|
|
106
|
+
var _type2 = require("agora-rte-sdk/lib/type");
|
|
105
107
|
var _attendee = require("agora-ui-foundation/lib/components/participants/attendee");
|
|
106
|
-
var _toast = require("agora-ui-foundation/lib/components/toast");
|
|
107
108
|
var _mobx = require("mobx");
|
|
108
109
|
var _decorator = require("agora-foundation/lib/decorator");
|
|
109
|
-
var _rendererEvent = require("../../utilities/renderer-event");
|
|
110
110
|
var _mobxUtils = require("mobx-utils");
|
|
111
111
|
var _memberListDataSource = require("./member-list-data-source");
|
|
112
|
-
var
|
|
112
|
+
var _type3 = require("./type");
|
|
113
113
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
114
114
|
var _i18n2 = require("../../hooks/i18n");
|
|
115
|
-
var
|
|
115
|
+
var _type4 = require("fcr-core/lib/room-control/user-control/type");
|
|
116
|
+
var _react = require("react");
|
|
117
|
+
var _rename = _interopRequireDefault(require("./components/rename"));
|
|
118
|
+
var _type5 = require("fcr-core/lib/room-control/privilege-control/type");
|
|
119
|
+
var _env = require("agora-foundation/lib/utilities/env");
|
|
120
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
116
121
|
var _ParticipantStore;
|
|
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,
|
|
122
|
+
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, _init_interpreterUsers, _init_interpreterState, _init_interpreterInputLanguageList, _init_newName, _init_refreshList, _setSpotlightStreamIdDecs, _setCurrentModalDecs, _openParticipantsWindowDecs, _setParticipantsWindowActiveDecs, _handlerSearchUserDecs, _closeRemoveAdmitWaitingRoomDialogDecs, _openRemoveAdmitWaitingRoomDialogDecs, _handlerUserActionDecs, _closeChangeNameDialogDecs, _moveToWaitingRoomByUserIdsDecs, _removeWaitingRoomUserDecs, _kickOutWaitingRoomAllMemberDecs, _moveToMainRoomAllMemberDecs, _handlerRoomControlActionDecs, _handleEventDecs, _moveToMainRoomByUserIdsDecs, _handleActiveTabDecs, _getInterpreterStateDecs, _initWaitingRoomUserListDecs, _kickOutUserDecs, _setAsAttendeeDecs, _onAudioVolumeUpdatedDecs, _handleRemoteUserJoinedDecs, _handleRemoteUserLeftDecs, _handleRemoteWaitingUserJoinedDecs, _handleRemoteWaitingUserLeftDecs, _handleUserInfoUpdatedDecs, _initUserListDecs, _refreshCurrentPerspectiveTypeDecs, _onPeerSessionReceivedDecs, _updateLocalUserRoleDecs, _getOutputLanguageDecs, _ref;
|
|
123
|
+
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; }
|
|
124
|
+
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; }
|
|
118
125
|
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
119
126
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
120
127
|
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
@@ -129,11 +136,11 @@ function _checkInRHS(e) { if (Object(e) !== e) throw TypeError("right-hand side
|
|
|
129
136
|
* seconds
|
|
130
137
|
*/
|
|
131
138
|
var SESSION_DURATION = 30;
|
|
139
|
+
var _A = /*#__PURE__*/new WeakMap();
|
|
132
140
|
var _B = /*#__PURE__*/new WeakMap();
|
|
133
141
|
var _C = /*#__PURE__*/new WeakMap();
|
|
134
142
|
var _D = /*#__PURE__*/new WeakMap();
|
|
135
143
|
var _E = /*#__PURE__*/new WeakMap();
|
|
136
|
-
var _A = /*#__PURE__*/new WeakMap();
|
|
137
144
|
var _F = /*#__PURE__*/new WeakMap();
|
|
138
145
|
var _G = /*#__PURE__*/new WeakMap();
|
|
139
146
|
var _H = /*#__PURE__*/new WeakMap();
|
|
@@ -145,22 +152,29 @@ var _M = /*#__PURE__*/new WeakMap();
|
|
|
145
152
|
var _N = /*#__PURE__*/new WeakMap();
|
|
146
153
|
var _O = /*#__PURE__*/new WeakMap();
|
|
147
154
|
var _P = /*#__PURE__*/new WeakMap();
|
|
148
|
-
|
|
155
|
+
var _Q = /*#__PURE__*/new WeakMap();
|
|
156
|
+
var _R = /*#__PURE__*/new WeakMap();
|
|
157
|
+
var _S = /*#__PURE__*/new WeakMap();
|
|
158
|
+
var _T = /*#__PURE__*/new WeakMap();
|
|
159
|
+
_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], _closeRemoveAdmitWaitingRoomDialogDecs = [_mobx.action, _mobx.action.bound], _openRemoveAdmitWaitingRoomDialogDecs = [_mobx.action, _mobx.action.bound], _handlerUserActionDecs = [_mobx.action, _mobx.action.bound], _closeChangeNameDialogDecs = [_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], _getInterpreterStateDecs = [_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], _handleUserInfoUpdatedDecs = [_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], _getOutputLanguageDecs = [_mobx.action, _mobx.action.bound], "logger");
|
|
149
160
|
var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
150
161
|
function ParticipantStore(_ref2) {
|
|
151
162
|
var _this = this;
|
|
152
|
-
var
|
|
153
|
-
engine = _ref2.engine,
|
|
163
|
+
var _roomControl = _ref2.roomControl,
|
|
154
164
|
peerSessionControl = _ref2.peerSessionControl,
|
|
155
165
|
securityStore = _ref2.securityStore,
|
|
156
166
|
uiEventStore = _ref2.uiEventStore,
|
|
157
167
|
deviceStore = _ref2.deviceStore,
|
|
158
|
-
deviceStreamStore = _ref2.deviceStreamStore
|
|
168
|
+
deviceStreamStore = _ref2.deviceStreamStore,
|
|
169
|
+
interpreterControl = _ref2.interpreterControl,
|
|
170
|
+
roomStore = _ref2.roomStore;
|
|
159
171
|
(0, _classCallCheck2["default"])(this, ParticipantStore);
|
|
160
172
|
(0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.getLogger)()));
|
|
161
173
|
(0, _defineProperty2["default"])(this, "_dataSource", new _memberListDataSource.FcrUIMemberListDataSourceImpl());
|
|
162
174
|
(0, _defineProperty2["default"])(this, "_waitingRoomDataSource", new _memberListDataSource.FcrUIMemberListDataSourceImpl());
|
|
175
|
+
(0, _defineProperty2["default"])(this, "_screenSharingState", _fcrCore.FcrMediaSourceState.CLOSE);
|
|
163
176
|
(0, _defineProperty2["default"])(this, "_disposers", []);
|
|
177
|
+
(0, _defineProperty2["default"])(this, "_changeNameDialogKey", []);
|
|
164
178
|
(0, _defineProperty2["default"])(this, "_unmuteAudioTimestamp", new Map());
|
|
165
179
|
(0, _defineProperty2["default"])(this, "_unmuteVideoTimestamp", new Map());
|
|
166
180
|
(0, _defineProperty2["default"])(this, "_processedUserOpenDeviceRequests", new Set());
|
|
@@ -178,15 +192,47 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
178
192
|
(0, _defineProperty2["default"])(this, "_userObserver", {
|
|
179
193
|
onRemoteUsersJoined: this._handleRemoteUserJoined.bind(this),
|
|
180
194
|
onRemoteUsersLeft: this._handleRemoteUserLeft.bind(this),
|
|
181
|
-
onUserInfoUpdated: this.
|
|
195
|
+
onUserInfoUpdated: this._handleUserInfoUpdated.bind(this),
|
|
196
|
+
onUserPropertiesUpdated: this._handleUserPropertiesUpdated.bind(this)
|
|
182
197
|
});
|
|
183
|
-
(0, _defineProperty2["default"])(this, "
|
|
184
|
-
|
|
198
|
+
(0, _defineProperty2["default"])(this, "_interpreterObserver", {
|
|
199
|
+
onInterpreterUsersUpdated: function onInterpreterUsersUpdated(roomId, users) {
|
|
200
|
+
_this.interpreterUsers = users;
|
|
201
|
+
},
|
|
202
|
+
onInterpreterStateUpdated: function onInterpreterStateUpdated() {
|
|
203
|
+
_this.interpreterState = _this.getInterpreterState();
|
|
204
|
+
_this.interpreterUsers = _this._interpreterControl.getInterpreterUserList();
|
|
205
|
+
}
|
|
185
206
|
});
|
|
186
207
|
(0, _defineProperty2["default"])(this, "_waitingRoomUserObserver", {
|
|
187
208
|
onRemoteUsersJoined: this._handleRemoteWaitingUserJoined.bind(this),
|
|
188
209
|
onRemoteUsersLeft: this._handleRemoteWaitingUserLeft.bind(this)
|
|
189
210
|
});
|
|
211
|
+
(0, _defineProperty2["default"])(this, "_roomStoreObserver", {
|
|
212
|
+
onJoinWaitingRoom: function onJoinWaitingRoom(roomControl) {
|
|
213
|
+
var room = roomControl;
|
|
214
|
+
_this._waitingRoomControl = room;
|
|
215
|
+
var waitingRoomUserControl = room.getUserControl();
|
|
216
|
+
_this._waitingRoomUserControl = waitingRoomUserControl;
|
|
217
|
+
waitingRoomUserControl.addObserver(_this._waitingRoomUserObserver);
|
|
218
|
+
_this.waitingRoomUserCount = _this._getWaitingRoomUserCount();
|
|
219
|
+
_this._initWaitingRoomUserList();
|
|
220
|
+
}
|
|
221
|
+
});
|
|
222
|
+
(0, _defineProperty2["default"])(this, "_privilegeControlObserver", {
|
|
223
|
+
onSecurityInfoUpdated: function onSecurityInfoUpdated(roomId, event) {
|
|
224
|
+
var _event$securityInfo$i;
|
|
225
|
+
_this.refreshList = Math.random();
|
|
226
|
+
if (((_event$securityInfo$i = event.securityInfo.info) === null || _event$securityInfo$i === void 0 ? void 0 : _event$securityInfo$i.action) === _type5.FcrSecurityAction.ChangeName) {
|
|
227
|
+
if (!event.securityInfo.enable) {
|
|
228
|
+
_this._closeChangeNameDialog();
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
});
|
|
233
|
+
(0, _defineProperty2["default"])(this, "_eventObserver", {
|
|
234
|
+
onEvent: this._handleEvent
|
|
235
|
+
});
|
|
190
236
|
(0, _defineProperty2["default"])(this, "_whitebaordObderver", {
|
|
191
237
|
onActive: function onActive(ownerId, operatorUser) {
|
|
192
238
|
_this._updateUserBoardState(operatorUser);
|
|
@@ -195,25 +241,30 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
195
241
|
_this._updateUserBoardState(operatorUser);
|
|
196
242
|
}
|
|
197
243
|
});
|
|
198
|
-
_classPrivateFieldInitSpec(this,
|
|
199
|
-
_classPrivateFieldInitSpec(this,
|
|
200
|
-
_classPrivateFieldInitSpec(this,
|
|
201
|
-
_classPrivateFieldInitSpec(this,
|
|
202
|
-
_classPrivateFieldInitSpec(this,
|
|
203
|
-
_classPrivateFieldInitSpec(this, _F,
|
|
204
|
-
_classPrivateFieldInitSpec(this, _G,
|
|
205
|
-
_classPrivateFieldInitSpec(this, _H,
|
|
206
|
-
_classPrivateFieldInitSpec(this, _I,
|
|
207
|
-
_classPrivateFieldInitSpec(this, _J,
|
|
208
|
-
_classPrivateFieldInitSpec(this, _K,
|
|
209
|
-
_classPrivateFieldInitSpec(this, _L,
|
|
210
|
-
_classPrivateFieldInitSpec(this, _M,
|
|
211
|
-
_classPrivateFieldInitSpec(this, _N,
|
|
212
|
-
_classPrivateFieldInitSpec(this, _O,
|
|
213
|
-
_classPrivateFieldInitSpec(this, _P,
|
|
244
|
+
_classPrivateFieldInitSpec(this, _A, _init__mainList(this, []));
|
|
245
|
+
_classPrivateFieldInitSpec(this, _B, _init__participantsWindowActive(this, false));
|
|
246
|
+
_classPrivateFieldInitSpec(this, _C, _init_currentPerspectiveType(this, 'attendee'));
|
|
247
|
+
_classPrivateFieldInitSpec(this, _D, _init_audioVolumeMap(this, new Map()));
|
|
248
|
+
_classPrivateFieldInitSpec(this, _E, _init_enableParticipantsJoinWithMute(this, false));
|
|
249
|
+
_classPrivateFieldInitSpec(this, _F, _init_searchText(this, ''));
|
|
250
|
+
_classPrivateFieldInitSpec(this, _G, _init_currentModal(this, 'modal'));
|
|
251
|
+
_classPrivateFieldInitSpec(this, _H, _init_localUserRole(this));
|
|
252
|
+
_classPrivateFieldInitSpec(this, _I, _init_spotlightStreamId(this, ''));
|
|
253
|
+
_classPrivateFieldInitSpec(this, _J, _init_enableSpotlight(this, true));
|
|
254
|
+
_classPrivateFieldInitSpec(this, _K, _init_mergeConfirmDialog(this, false));
|
|
255
|
+
_classPrivateFieldInitSpec(this, _L, _init_mergeUserId(this, ''));
|
|
256
|
+
_classPrivateFieldInitSpec(this, _M, _init_activeTab(this, _constant.RoomType.MAIN_ROOM));
|
|
257
|
+
_classPrivateFieldInitSpec(this, _N, _init_isNewWaitingRoomUserEnter(this, false));
|
|
258
|
+
_classPrivateFieldInitSpec(this, _O, _init_waitingRoomUserCount(this, 0));
|
|
259
|
+
_classPrivateFieldInitSpec(this, _P, _init_interpreterUsers(this, []));
|
|
260
|
+
// 翻译官列表
|
|
261
|
+
_classPrivateFieldInitSpec(this, _Q, _init_interpreterState(this));
|
|
262
|
+
_classPrivateFieldInitSpec(this, _R, _init_interpreterInputLanguageList(this, []));
|
|
263
|
+
_classPrivateFieldInitSpec(this, _S, _init_newName(this, ''));
|
|
264
|
+
_classPrivateFieldInitSpec(this, _T, _init_refreshList(this, Math.random()));
|
|
214
265
|
(0, _defineProperty2["default"])(this, "allowedOperations", (0, _mobxUtils.computedFn)(function (userId, userRole) {
|
|
215
|
-
var _this$
|
|
216
|
-
return _this.getAllowedOperations(userRole, userId === ((_this$
|
|
266
|
+
var _this$_localUser;
|
|
267
|
+
return _this.getAllowedOperations(userRole, userId === ((_this$_localUser = _this._localUser) === null || _this$_localUser === void 0 ? void 0 : _this$_localUser.userId));
|
|
217
268
|
}));
|
|
218
269
|
(0, _defineProperty2["default"])(this, "checkIsPin", (0, _mobxUtils.computedFn)(function (userId) {
|
|
219
270
|
var _this$userMap$get;
|
|
@@ -221,31 +272,46 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
221
272
|
return _this.pinedStreamIds.includes(stream.streamId);
|
|
222
273
|
}));
|
|
223
274
|
}));
|
|
275
|
+
(0, _defineProperty2["default"])(this, "getAllowedOperations", (0, _mobxUtils.computedFn)(function (targetRole, isSelf) {
|
|
276
|
+
return _this._securityStore.getAllowedOperations(targetRole, isSelf);
|
|
277
|
+
}));
|
|
224
278
|
(0, _defineProperty2["default"])(this, "_formatUser", function (user) {
|
|
225
|
-
var _this$
|
|
279
|
+
var _this$_localUser2;
|
|
226
280
|
var targetUsers = user.streams;
|
|
227
281
|
var hasShareScreen = targetUsers.find(function (user) {
|
|
228
|
-
return user.videoSourceType ===
|
|
282
|
+
return user.videoSourceType === _type2.AgoraRteVideoSourceType.SCREEN;
|
|
229
283
|
});
|
|
230
|
-
var isSelf = user.userId === _this.
|
|
284
|
+
var isSelf = user.userId === _this._localUser.userId;
|
|
285
|
+
|
|
286
|
+
// const hasAudioPublishedAndStarted = (stream?: FcrStreamInfo) =>
|
|
287
|
+
// stream?.audioSourceState === FcrMediaSourceState.OPEN &&
|
|
288
|
+
// (stream?.streamType === AgoraRteMediaStreamType.AUDIO ||
|
|
289
|
+
// stream?.streamType === AgoraRteMediaStreamType.BOTH);
|
|
290
|
+
|
|
231
291
|
var hasAudioPublishedAndStarted = function hasAudioPublishedAndStarted(stream) {
|
|
232
|
-
return (stream === null || stream === void 0 ? void 0 : stream.audioSourceState) ===
|
|
292
|
+
return (stream === null || stream === void 0 ? void 0 : stream.audioSourceState) === _fcrCore.FcrMediaSourceState.OPEN;
|
|
233
293
|
};
|
|
294
|
+
|
|
295
|
+
// const hasVideoPublishedAndStarted = (stream?: FcrStreamInfo) =>
|
|
296
|
+
// stream?.videoSourceState === FcrMediaSourceState.OPEN &&
|
|
297
|
+
// (stream?.streamType === AgoraRteMediaStreamType.VIDEO ||
|
|
298
|
+
// stream?.streamType === AgoraRteMediaStreamType.BOTH);
|
|
299
|
+
|
|
234
300
|
var hasVideoPublishedAndStarted = function hasVideoPublishedAndStarted(stream) {
|
|
235
|
-
return (stream === null || stream === void 0 ? void 0 : stream.videoSourceState) ===
|
|
301
|
+
return (stream === null || stream === void 0 ? void 0 : stream.videoSourceState) === _fcrCore.FcrMediaSourceState.OPEN;
|
|
236
302
|
};
|
|
237
303
|
var hasAudio = false;
|
|
238
304
|
var hasVideo = false;
|
|
239
305
|
var audioDeviceType = 'none';
|
|
240
306
|
var videoDeviceType = 'none';
|
|
241
307
|
var userType = 'normal';
|
|
242
|
-
if (user.userInfo.connectorType ===
|
|
308
|
+
if (user.userInfo.connectorType === _fcrCore.FcrRoomConnectorType.NONE) {
|
|
243
309
|
var defaultStream = targetUsers.find(function (user) {
|
|
244
|
-
return user.videoSourceType ===
|
|
310
|
+
return user.videoSourceType === _type2.AgoraRteVideoSourceType.CAMERA;
|
|
245
311
|
});
|
|
246
312
|
var pstnStream = targetUsers.find(function (_ref3) {
|
|
247
313
|
var connectorType = _ref3.connectorType;
|
|
248
|
-
return connectorType ==
|
|
314
|
+
return connectorType == _fcrCore.FcrRoomConnectorType.PSTN;
|
|
249
315
|
});
|
|
250
316
|
videoDeviceType = 'computer-cam';
|
|
251
317
|
hasVideo = isSelf ? _this._deviceStore.cameraEnabled : hasVideoPublishedAndStarted(defaultStream);
|
|
@@ -264,10 +330,10 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
264
330
|
}
|
|
265
331
|
}
|
|
266
332
|
// 2.sip user with camera and phone mic
|
|
267
|
-
else if ([
|
|
333
|
+
else if ([_fcrCore.FcrRoomConnectorType.SIP, _fcrCore.FcrRoomConnectorType.H323].includes(user.userInfo.connectorType)) {
|
|
268
334
|
var firstSipOrH323Stream = targetUsers.find(function (_ref4) {
|
|
269
335
|
var connectorType = _ref4.connectorType;
|
|
270
|
-
return [
|
|
336
|
+
return [_fcrCore.FcrRoomConnectorType.SIP, _fcrCore.FcrRoomConnectorType.H323].includes(connectorType);
|
|
271
337
|
});
|
|
272
338
|
audioDeviceType = 'phone-mic';
|
|
273
339
|
videoDeviceType = 'computer-cam';
|
|
@@ -276,10 +342,10 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
276
342
|
hasVideo = hasVideoPublishedAndStarted(firstSipOrH323Stream);
|
|
277
343
|
}
|
|
278
344
|
// 3.phone user with no camera and phone mic
|
|
279
|
-
else if (user.userInfo.connectorType ===
|
|
345
|
+
else if (user.userInfo.connectorType === _fcrCore.FcrRoomConnectorType.PSTN) {
|
|
280
346
|
var _pstnStream = targetUsers.find(function (_ref5) {
|
|
281
347
|
var connectorType = _ref5.connectorType;
|
|
282
|
-
return connectorType ==
|
|
348
|
+
return connectorType == _fcrCore.FcrRoomConnectorType.PSTN;
|
|
283
349
|
});
|
|
284
350
|
audioDeviceType = 'phone-mic';
|
|
285
351
|
userType = 'phone';
|
|
@@ -293,7 +359,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
293
359
|
userId: user.userId,
|
|
294
360
|
userName: user.userInfo.userName,
|
|
295
361
|
isHost: user.userInfo.userRole === _type.FcrUserRole.HOST,
|
|
296
|
-
isMe: user.userId === ((_this$
|
|
362
|
+
isMe: user.userId === ((_this$_localUser2 = _this._localUser) === null || _this$_localUser2 === void 0 ? void 0 : _this$_localUser2.userId),
|
|
297
363
|
hasAudio: hasAudio,
|
|
298
364
|
hasVideo: hasVideo,
|
|
299
365
|
isScreenSharing: !!hasShareScreen,
|
|
@@ -307,67 +373,78 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
307
373
|
isPin: _this.checkIsPin(user.userId)
|
|
308
374
|
};
|
|
309
375
|
});
|
|
310
|
-
this._roomControl =
|
|
311
|
-
this.
|
|
312
|
-
this._streamControl = roomControl.getStreamControl();
|
|
376
|
+
this._roomControl = _roomControl;
|
|
377
|
+
this._streamControl = _roomControl.getStreamControl();
|
|
313
378
|
this._peerSessionControl = peerSessionControl;
|
|
314
|
-
this._userControl =
|
|
315
|
-
this.localUserRole = this._userControl.getLocalUser().userRole;
|
|
316
|
-
this._userControl.addObserver(this._userObserver);
|
|
317
|
-
this._streamControl.addObserver(this._streamsObserver);
|
|
318
|
-
this._peerSessionControl.addObserver(this._peerSessionObserver);
|
|
319
|
-
this._roomControl.getBoardControl().addObserver(this._whitebaordObderver);
|
|
379
|
+
this._userControl = _roomControl.getUserControl();
|
|
320
380
|
this._securityStore = securityStore;
|
|
321
381
|
this._uiEventStore = uiEventStore;
|
|
322
382
|
this._deviceStore = deviceStore;
|
|
323
383
|
this._deviceStreamStore = deviceStreamStore;
|
|
384
|
+
this._roomStore = roomStore;
|
|
385
|
+
this._interpreterControl = interpreterControl;
|
|
324
386
|
this._uiEventStore.addObserver(this._eventObserver);
|
|
387
|
+
this._userControl.addObserver(this._userObserver);
|
|
388
|
+
this._streamControl.addObserver(this._streamsObserver);
|
|
389
|
+
this._peerSessionControl.addObserver(this._peerSessionObserver);
|
|
390
|
+
this._roomControl.getBoardControl().addObserver(this._whitebaordObderver);
|
|
391
|
+
this._roomControl.getPrivilegeControl().addObserver(this._privilegeControlObserver);
|
|
392
|
+
this._interpreterControl.addObserver(this._interpreterObserver);
|
|
393
|
+
this._roomStore.addObserver(this._roomStoreObserver);
|
|
325
394
|
this._initUserList();
|
|
326
|
-
this._addReactions();
|
|
327
395
|
this._updateUserBoardState();
|
|
396
|
+
this.interpreterUsers = this._interpreterControl.getInterpreterUserList();
|
|
397
|
+
this.interpreterState = this.getInterpreterState();
|
|
398
|
+
this._getOutputLanguage();
|
|
399
|
+
this.localUserRole = this._localUser.userRole;
|
|
328
400
|
}
|
|
329
401
|
return (0, _createClass2["default"])(ParticipantStore, [{
|
|
402
|
+
key: "_localUser",
|
|
403
|
+
get: function get() {
|
|
404
|
+
return this._userControl.getLocalUser();
|
|
405
|
+
}
|
|
406
|
+
}, {
|
|
330
407
|
key: "_mainList",
|
|
331
408
|
get: function get() {
|
|
332
|
-
return _classPrivateFieldGet(
|
|
409
|
+
return _classPrivateFieldGet(_A, this);
|
|
333
410
|
},
|
|
334
411
|
set: function set(v) {
|
|
335
|
-
_classPrivateFieldSet(
|
|
412
|
+
_classPrivateFieldSet(_A, this, v);
|
|
336
413
|
}
|
|
337
414
|
}, {
|
|
338
415
|
key: "_participantsWindowActive",
|
|
339
416
|
get: function get() {
|
|
340
|
-
return _classPrivateFieldGet(
|
|
417
|
+
return _classPrivateFieldGet(_B, this);
|
|
341
418
|
},
|
|
342
419
|
set: function set(v) {
|
|
343
|
-
_classPrivateFieldSet(
|
|
420
|
+
_classPrivateFieldSet(_B, this, v);
|
|
344
421
|
}
|
|
345
422
|
}, {
|
|
346
423
|
key: "currentPerspectiveType",
|
|
347
424
|
get: function get() {
|
|
348
|
-
return _classPrivateFieldGet(
|
|
425
|
+
return _classPrivateFieldGet(_C, this);
|
|
349
426
|
},
|
|
350
427
|
set: function set(v) {
|
|
351
|
-
_classPrivateFieldSet(
|
|
428
|
+
_classPrivateFieldSet(_C, this, v);
|
|
352
429
|
}
|
|
353
430
|
}, {
|
|
354
431
|
key: "audioVolumeMap",
|
|
355
432
|
get: function get() {
|
|
356
|
-
return _classPrivateFieldGet(
|
|
433
|
+
return _classPrivateFieldGet(_D, this);
|
|
357
434
|
},
|
|
358
435
|
set: function set(v) {
|
|
359
|
-
_classPrivateFieldSet(
|
|
436
|
+
_classPrivateFieldSet(_D, this, v);
|
|
360
437
|
}
|
|
361
438
|
}, {
|
|
362
|
-
key: "
|
|
439
|
+
key: "enableParticipantsJoinWithMute",
|
|
363
440
|
get: function get() {
|
|
364
|
-
return _classPrivateFieldGet(
|
|
441
|
+
return _classPrivateFieldGet(_E, this);
|
|
365
442
|
},
|
|
366
443
|
set: function set(v) {
|
|
367
|
-
_classPrivateFieldSet(
|
|
444
|
+
_classPrivateFieldSet(_E, this, v);
|
|
368
445
|
}
|
|
369
446
|
}, {
|
|
370
|
-
key: "
|
|
447
|
+
key: "searchText",
|
|
371
448
|
get: function get() {
|
|
372
449
|
return _classPrivateFieldGet(_F, this);
|
|
373
450
|
},
|
|
@@ -375,7 +452,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
375
452
|
_classPrivateFieldSet(_F, this, v);
|
|
376
453
|
}
|
|
377
454
|
}, {
|
|
378
|
-
key: "
|
|
455
|
+
key: "currentModal",
|
|
379
456
|
get: function get() {
|
|
380
457
|
return _classPrivateFieldGet(_G, this);
|
|
381
458
|
},
|
|
@@ -383,7 +460,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
383
460
|
_classPrivateFieldSet(_G, this, v);
|
|
384
461
|
}
|
|
385
462
|
}, {
|
|
386
|
-
key: "
|
|
463
|
+
key: "localUserRole",
|
|
387
464
|
get: function get() {
|
|
388
465
|
return _classPrivateFieldGet(_H, this);
|
|
389
466
|
},
|
|
@@ -391,7 +468,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
391
468
|
_classPrivateFieldSet(_H, this, v);
|
|
392
469
|
}
|
|
393
470
|
}, {
|
|
394
|
-
key: "
|
|
471
|
+
key: "spotlightStreamId",
|
|
395
472
|
get: function get() {
|
|
396
473
|
return _classPrivateFieldGet(_I, this);
|
|
397
474
|
},
|
|
@@ -399,7 +476,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
399
476
|
_classPrivateFieldSet(_I, this, v);
|
|
400
477
|
}
|
|
401
478
|
}, {
|
|
402
|
-
key: "
|
|
479
|
+
key: "enableSpotlight",
|
|
403
480
|
get: function get() {
|
|
404
481
|
return _classPrivateFieldGet(_J, this);
|
|
405
482
|
},
|
|
@@ -407,7 +484,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
407
484
|
_classPrivateFieldSet(_J, this, v);
|
|
408
485
|
}
|
|
409
486
|
}, {
|
|
410
|
-
key: "
|
|
487
|
+
key: "mergeConfirmDialog",
|
|
411
488
|
get: function get() {
|
|
412
489
|
return _classPrivateFieldGet(_K, this);
|
|
413
490
|
},
|
|
@@ -415,7 +492,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
415
492
|
_classPrivateFieldSet(_K, this, v);
|
|
416
493
|
}
|
|
417
494
|
}, {
|
|
418
|
-
key: "
|
|
495
|
+
key: "mergeUserId",
|
|
419
496
|
get: function get() {
|
|
420
497
|
return _classPrivateFieldGet(_L, this);
|
|
421
498
|
},
|
|
@@ -423,7 +500,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
423
500
|
_classPrivateFieldSet(_L, this, v);
|
|
424
501
|
}
|
|
425
502
|
}, {
|
|
426
|
-
key: "
|
|
503
|
+
key: "activeTab",
|
|
427
504
|
get: function get() {
|
|
428
505
|
return _classPrivateFieldGet(_M, this);
|
|
429
506
|
},
|
|
@@ -431,7 +508,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
431
508
|
_classPrivateFieldSet(_M, this, v);
|
|
432
509
|
}
|
|
433
510
|
}, {
|
|
434
|
-
key: "
|
|
511
|
+
key: "isNewWaitingRoomUserEnter",
|
|
435
512
|
get: function get() {
|
|
436
513
|
return _classPrivateFieldGet(_N, this);
|
|
437
514
|
},
|
|
@@ -439,7 +516,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
439
516
|
_classPrivateFieldSet(_N, this, v);
|
|
440
517
|
}
|
|
441
518
|
}, {
|
|
442
|
-
key: "
|
|
519
|
+
key: "waitingRoomUserCount",
|
|
443
520
|
get: function get() {
|
|
444
521
|
return _classPrivateFieldGet(_O, this);
|
|
445
522
|
},
|
|
@@ -447,13 +524,45 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
447
524
|
_classPrivateFieldSet(_O, this, v);
|
|
448
525
|
}
|
|
449
526
|
}, {
|
|
450
|
-
key: "
|
|
527
|
+
key: "interpreterUsers",
|
|
451
528
|
get: function get() {
|
|
452
529
|
return _classPrivateFieldGet(_P, this);
|
|
453
530
|
},
|
|
454
531
|
set: function set(v) {
|
|
455
532
|
_classPrivateFieldSet(_P, this, v);
|
|
456
533
|
}
|
|
534
|
+
}, {
|
|
535
|
+
key: "interpreterState",
|
|
536
|
+
get: function get() {
|
|
537
|
+
return _classPrivateFieldGet(_Q, this);
|
|
538
|
+
},
|
|
539
|
+
set: function set(v) {
|
|
540
|
+
_classPrivateFieldSet(_Q, this, v);
|
|
541
|
+
}
|
|
542
|
+
}, {
|
|
543
|
+
key: "interpreterInputLanguageList",
|
|
544
|
+
get: function get() {
|
|
545
|
+
return _classPrivateFieldGet(_R, this);
|
|
546
|
+
},
|
|
547
|
+
set: function set(v) {
|
|
548
|
+
_classPrivateFieldSet(_R, this, v);
|
|
549
|
+
}
|
|
550
|
+
}, {
|
|
551
|
+
key: "newName",
|
|
552
|
+
get: function get() {
|
|
553
|
+
return _classPrivateFieldGet(_S, this);
|
|
554
|
+
},
|
|
555
|
+
set: function set(v) {
|
|
556
|
+
_classPrivateFieldSet(_S, this, v);
|
|
557
|
+
}
|
|
558
|
+
}, {
|
|
559
|
+
key: "refreshList",
|
|
560
|
+
get: function get() {
|
|
561
|
+
return _classPrivateFieldGet(_T, this);
|
|
562
|
+
},
|
|
563
|
+
set: function set(v) {
|
|
564
|
+
_classPrivateFieldSet(_T, this, v);
|
|
565
|
+
}
|
|
457
566
|
}, {
|
|
458
567
|
key: "userListSource",
|
|
459
568
|
get: function get() {
|
|
@@ -570,9 +679,14 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
570
679
|
}, {
|
|
571
680
|
key: "release",
|
|
572
681
|
value: function release() {
|
|
573
|
-
this.
|
|
574
|
-
this.
|
|
575
|
-
this.
|
|
682
|
+
this._uiEventStore.addObserver(this._eventObserver);
|
|
683
|
+
this._userControl.addObserver(this._userObserver);
|
|
684
|
+
this._streamControl.addObserver(this._streamsObserver);
|
|
685
|
+
this._peerSessionControl.addObserver(this._peerSessionObserver);
|
|
686
|
+
this._roomControl.getBoardControl().addObserver(this._whitebaordObderver);
|
|
687
|
+
this._interpreterControl.addObserver(this._interpreterObserver);
|
|
688
|
+
this._roomControl.getPrivilegeControl().addObserver(this._privilegeControlObserver);
|
|
689
|
+
this._roomStore.addObserver(this._roomStoreObserver);
|
|
576
690
|
this._disposers.forEach(function (disposer) {
|
|
577
691
|
return disposer();
|
|
578
692
|
});
|
|
@@ -643,29 +757,18 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
643
757
|
key: "openConfirmDialog",
|
|
644
758
|
value: function openConfirmDialog(params, id) {
|
|
645
759
|
var _this4 = this;
|
|
646
|
-
var
|
|
647
|
-
content = params.content,
|
|
648
|
-
_onOk = params.onOk,
|
|
649
|
-
_onCancel = params.onCancel,
|
|
650
|
-
okText = params.okText,
|
|
651
|
-
cancelText = params.cancelText,
|
|
652
|
-
closable = params.closable,
|
|
653
|
-
height = params.height;
|
|
654
|
-
var dialogKey = this._uiEventStore.openConfirmDialog({
|
|
655
|
-
title: title,
|
|
656
|
-
content: content,
|
|
657
|
-
okText: okText,
|
|
658
|
-
cancelText: cancelText,
|
|
659
|
-
height: height,
|
|
760
|
+
var dialogId = this._uiEventStore.openConfirmDialog(_objectSpread(_objectSpread({}, params), {}, {
|
|
660
761
|
onCancel: function onCancel() {
|
|
661
|
-
_this4._uiEventStore.
|
|
662
|
-
|
|
762
|
+
_this4._uiEventStore.closeConfirm(dialogId);
|
|
763
|
+
params.onCancel && params.onCancel();
|
|
663
764
|
},
|
|
664
765
|
onOk: function onOk() {
|
|
665
|
-
|
|
666
|
-
|
|
766
|
+
var _params$onOk;
|
|
767
|
+
_this4._uiEventStore.closeConfirm(dialogId);
|
|
768
|
+
(_params$onOk = params.onOk) === null || _params$onOk === void 0 || _params$onOk.call(params);
|
|
667
769
|
}
|
|
668
|
-
});
|
|
770
|
+
}));
|
|
771
|
+
return dialogId;
|
|
669
772
|
}
|
|
670
773
|
}, {
|
|
671
774
|
key: "setParticipantsWindowActive",
|
|
@@ -696,15 +799,11 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
696
799
|
var _this$userMap$get2;
|
|
697
800
|
this._streamControl.mergeAudioStream(userId);
|
|
698
801
|
this.setMergeConfirmDialog(false);
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
}),
|
|
705
|
-
type: 'normal'
|
|
706
|
-
},
|
|
707
|
-
duration: 3000
|
|
802
|
+
this._uiEventStore.showToast({
|
|
803
|
+
message: (0, _i18n.transI18n)('fmt_PSTN_toast_merged', {
|
|
804
|
+
reason1: (_this$userMap$get2 = this.userMap.get(userId)) === null || _this$userMap$get2 === void 0 ? void 0 : _this$userMap$get2.userInfo.userName
|
|
805
|
+
}),
|
|
806
|
+
type: 'normal'
|
|
708
807
|
});
|
|
709
808
|
}
|
|
710
809
|
}, {
|
|
@@ -712,7 +811,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
712
811
|
value: function removePin(userId) {
|
|
713
812
|
var _this$userMap$get3;
|
|
714
813
|
var streamId = (_this$userMap$get3 = this.userMap.get(userId)) === null || _this$userMap$get3 === void 0 || (_this$userMap$get3 = _this$userMap$get3.streams.find(function (stream) {
|
|
715
|
-
return stream.videoSourceType ===
|
|
814
|
+
return stream.videoSourceType === _type2.AgoraRteVideoSourceType.CAMERA;
|
|
716
815
|
})) === null || _this$userMap$get3 === void 0 ? void 0 : _this$userMap$get3.streamId;
|
|
717
816
|
if (streamId) {
|
|
718
817
|
this._uiEventStore.sendEvent(_constant.UIAction.VIDEO_WINDOW_PIN_ACTION, {
|
|
@@ -726,7 +825,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
726
825
|
value: function addPin(userId) {
|
|
727
826
|
var _this$userMap$get4;
|
|
728
827
|
var streamId = (_this$userMap$get4 = this.userMap.get(userId)) === null || _this$userMap$get4 === void 0 || (_this$userMap$get4 = _this$userMap$get4.streams.find(function (stream) {
|
|
729
|
-
return stream.videoSourceType ===
|
|
828
|
+
return stream.videoSourceType === _type2.AgoraRteVideoSourceType.CAMERA;
|
|
730
829
|
})) === null || _this$userMap$get4 === void 0 ? void 0 : _this$userMap$get4.streamId;
|
|
731
830
|
if (streamId) {
|
|
732
831
|
this._uiEventStore.sendEvent(_constant.UIAction.VIDEO_WINDOW_PIN_ACTION, {
|
|
@@ -735,11 +834,6 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
735
834
|
});
|
|
736
835
|
}
|
|
737
836
|
}
|
|
738
|
-
}, {
|
|
739
|
-
key: "getAllowedOperations",
|
|
740
|
-
value: function getAllowedOperations(targetRole, isSelf) {
|
|
741
|
-
return this._securityStore.getAllowedOperations(targetRole, isSelf);
|
|
742
|
-
}
|
|
743
837
|
}, {
|
|
744
838
|
key: "closeRemoveAdmitWaitingRoomDialog",
|
|
745
839
|
value: function closeRemoveAdmitWaitingRoomDialog(dialogKey) {
|
|
@@ -758,6 +852,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
758
852
|
}, {
|
|
759
853
|
key: "handlerUserAction",
|
|
760
854
|
value: function handlerUserAction(action, userId) {
|
|
855
|
+
var _this5 = this;
|
|
761
856
|
switch (action) {
|
|
762
857
|
case _attendee.ParticipantActionType.MUTE_AUDIO:
|
|
763
858
|
this._muteUserAudio(userId);
|
|
@@ -818,20 +913,72 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
818
913
|
case _attendee.ParticipantActionType.PUT_IN_WAITING_ROOM:
|
|
819
914
|
this._moveToWaitingRoomByUserIds(userId);
|
|
820
915
|
break;
|
|
916
|
+
case _attendee.ParticipantActionType.RENAME_IN_MEETING:
|
|
917
|
+
var key = this._uiEventStore.openConfirmDialog({
|
|
918
|
+
title: (0, _i18n.transI18n)('fmt_additional_option_rename_in_meeting'),
|
|
919
|
+
content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_rename["default"], {
|
|
920
|
+
onChange: function onChange(value) {
|
|
921
|
+
return _this5.newName = value;
|
|
922
|
+
}
|
|
923
|
+
}),
|
|
924
|
+
onOk: function () {
|
|
925
|
+
var _onOk = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
926
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
927
|
+
while (1) switch (_context.prev = _context.next) {
|
|
928
|
+
case 0:
|
|
929
|
+
_context.next = 2;
|
|
930
|
+
return _this5._userControl.updateUserName(userId, _this5.newName);
|
|
931
|
+
case 2:
|
|
932
|
+
(0, _mobx.runInAction)(function () {
|
|
933
|
+
_this5._closeChangeNameDialog();
|
|
934
|
+
_this5._uiEventStore.showToast({
|
|
935
|
+
type: 'normal',
|
|
936
|
+
message: (0, _i18n.transI18n)('fmt_additional_tips_nickname_change_success')
|
|
937
|
+
});
|
|
938
|
+
});
|
|
939
|
+
case 3:
|
|
940
|
+
case "end":
|
|
941
|
+
return _context.stop();
|
|
942
|
+
}
|
|
943
|
+
}, _callee);
|
|
944
|
+
}));
|
|
945
|
+
function onOk() {
|
|
946
|
+
return _onOk.apply(this, arguments);
|
|
947
|
+
}
|
|
948
|
+
return onOk;
|
|
949
|
+
}(),
|
|
950
|
+
alignCenter: true,
|
|
951
|
+
onCancel: function onCancel() {
|
|
952
|
+
_this5._closeChangeNameDialog();
|
|
953
|
+
},
|
|
954
|
+
height: 190
|
|
955
|
+
});
|
|
956
|
+
this._changeNameDialogKey.push(key);
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
}, {
|
|
960
|
+
key: "_closeChangeNameDialog",
|
|
961
|
+
value: function _closeChangeNameDialog() {
|
|
962
|
+
var _this6 = this;
|
|
963
|
+
if (this._changeNameDialogKey.length > 0) {
|
|
964
|
+
this._changeNameDialogKey.forEach(function (key) {
|
|
965
|
+
_this6._uiEventStore.closeConfirm(key);
|
|
966
|
+
});
|
|
967
|
+
this._changeNameDialogKey = [];
|
|
821
968
|
}
|
|
822
969
|
}
|
|
823
970
|
}, {
|
|
824
971
|
key: "_moveToWaitingRoomByUserIds",
|
|
825
972
|
value: function () {
|
|
826
|
-
var _moveToWaitingRoomByUserIds2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
973
|
+
var _moveToWaitingRoomByUserIds2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(userId) {
|
|
827
974
|
var _this$userMap$get6;
|
|
828
975
|
var username;
|
|
829
|
-
return _regenerator["default"].wrap(function
|
|
830
|
-
while (1) switch (
|
|
976
|
+
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
977
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
831
978
|
case 0:
|
|
832
979
|
username = (_this$userMap$get6 = this.userMap.get(userId)) === null || _this$userMap$get6 === void 0 ? void 0 : _this$userMap$get6.userInfo.userName;
|
|
833
|
-
|
|
834
|
-
|
|
980
|
+
_context2.prev = 1;
|
|
981
|
+
_context2.next = 4;
|
|
835
982
|
return this._roomControl.moveToWaitingRoomByUserIds([userId]);
|
|
836
983
|
case 4:
|
|
837
984
|
this._uiEventStore.showToast({
|
|
@@ -840,20 +987,30 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
840
987
|
reason1: username
|
|
841
988
|
})
|
|
842
989
|
});
|
|
843
|
-
|
|
990
|
+
_context2.next = 13;
|
|
844
991
|
break;
|
|
845
992
|
case 7:
|
|
846
|
-
|
|
847
|
-
|
|
993
|
+
_context2.prev = 7;
|
|
994
|
+
_context2.t0 = _context2["catch"](1);
|
|
995
|
+
if (!(_context2.t0.code === '732403470')) {
|
|
996
|
+
_context2.next = 12;
|
|
997
|
+
break;
|
|
998
|
+
}
|
|
999
|
+
this._uiEventStore.showToast({
|
|
1000
|
+
type: 'error',
|
|
1001
|
+
message: (0, _i18n.transI18n)('fmt_waitingroom_setting_popup_toast_unable_move_creator')
|
|
1002
|
+
});
|
|
1003
|
+
return _context2.abrupt("return");
|
|
1004
|
+
case 12:
|
|
848
1005
|
this._uiEventStore.showToast({
|
|
849
1006
|
type: 'error',
|
|
850
1007
|
message: (0, _i18n.transI18n)('fmt_waitingroom_setting_popup_toast_move_in_failed')
|
|
851
1008
|
});
|
|
852
|
-
case
|
|
1009
|
+
case 13:
|
|
853
1010
|
case "end":
|
|
854
|
-
return
|
|
1011
|
+
return _context2.stop();
|
|
855
1012
|
}
|
|
856
|
-
},
|
|
1013
|
+
}, _callee2, this, [[1, 7]]);
|
|
857
1014
|
}));
|
|
858
1015
|
function _moveToWaitingRoomByUserIds(_x) {
|
|
859
1016
|
return _moveToWaitingRoomByUserIds2.apply(this, arguments);
|
|
@@ -869,12 +1026,12 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
869
1026
|
}, {
|
|
870
1027
|
key: "kickOutWaitingRoomAllMember",
|
|
871
1028
|
value: function () {
|
|
872
|
-
var _kickOutWaitingRoomAllMember = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
1029
|
+
var _kickOutWaitingRoomAllMember = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3(type) {
|
|
873
1030
|
var _this$_waitingRoomUse2;
|
|
874
|
-
return _regenerator["default"].wrap(function
|
|
875
|
-
while (1) switch (
|
|
1031
|
+
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
1032
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
876
1033
|
case 0:
|
|
877
|
-
|
|
1034
|
+
_context3.next = 2;
|
|
878
1035
|
return (_this$_waitingRoomUse2 = this._waitingRoomUserControl) === null || _this$_waitingRoomUse2 === void 0 ? void 0 : _this$_waitingRoomUse2.kickOutByUserRoles([_type.FcrUserRole.PARTICIPANT], type);
|
|
879
1036
|
case 2:
|
|
880
1037
|
this._uiEventStore.showToast({
|
|
@@ -883,9 +1040,9 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
883
1040
|
});
|
|
884
1041
|
case 3:
|
|
885
1042
|
case "end":
|
|
886
|
-
return
|
|
1043
|
+
return _context3.stop();
|
|
887
1044
|
}
|
|
888
|
-
},
|
|
1045
|
+
}, _callee3, this);
|
|
889
1046
|
}));
|
|
890
1047
|
function kickOutWaitingRoomAllMember(_x2) {
|
|
891
1048
|
return _kickOutWaitingRoomAllMember.apply(this, arguments);
|
|
@@ -895,12 +1052,12 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
895
1052
|
}, {
|
|
896
1053
|
key: "moveToMainRoomAllMember",
|
|
897
1054
|
value: function () {
|
|
898
|
-
var _moveToMainRoomAllMember = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
1055
|
+
var _moveToMainRoomAllMember = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee4() {
|
|
899
1056
|
var _this$_waitingRoomCon;
|
|
900
|
-
return _regenerator["default"].wrap(function
|
|
901
|
-
while (1) switch (
|
|
1057
|
+
return _regenerator["default"].wrap(function _callee4$(_context4) {
|
|
1058
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
902
1059
|
case 0:
|
|
903
|
-
|
|
1060
|
+
_context4.next = 2;
|
|
904
1061
|
return (_this$_waitingRoomCon = this._waitingRoomControl) === null || _this$_waitingRoomCon === void 0 ? void 0 : _this$_waitingRoomCon.moveToMainRoomByUserRoles([_type.FcrUserRole.PARTICIPANT]);
|
|
905
1062
|
case 2:
|
|
906
1063
|
this._uiEventStore.showToast({
|
|
@@ -909,9 +1066,9 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
909
1066
|
});
|
|
910
1067
|
case 3:
|
|
911
1068
|
case "end":
|
|
912
|
-
return
|
|
1069
|
+
return _context4.stop();
|
|
913
1070
|
}
|
|
914
|
-
},
|
|
1071
|
+
}, _callee4, this);
|
|
915
1072
|
}));
|
|
916
1073
|
function moveToMainRoomAllMember() {
|
|
917
1074
|
return _moveToMainRoomAllMember.apply(this, arguments);
|
|
@@ -952,7 +1109,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
952
1109
|
this._enableWaitingRoom(data);
|
|
953
1110
|
break;
|
|
954
1111
|
case _constant.RoomControlType.RENAME:
|
|
955
|
-
this._enableRename(
|
|
1112
|
+
this._enableRename();
|
|
956
1113
|
break;
|
|
957
1114
|
case _constant.RoomControlType.JOIN_WITH_MUTE_AUDIO:
|
|
958
1115
|
this.enableJoinWithMuteAudio(data);
|
|
@@ -980,15 +1137,6 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
980
1137
|
spotlightEnabled = _ref7.spotlightEnabled;
|
|
981
1138
|
this.enableSpotlight = spotlightEnabled;
|
|
982
1139
|
}
|
|
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
1140
|
if (action === _constant.UIAction.CHANGE_PARTICIPANT_TAB) {
|
|
993
1141
|
this.handleActiveTab(payload);
|
|
994
1142
|
}
|
|
@@ -1000,6 +1148,15 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1000
1148
|
this.waitingRoomUserCount = 0;
|
|
1001
1149
|
this.handleActiveTab(_constant.RoomType.MAIN_ROOM);
|
|
1002
1150
|
}
|
|
1151
|
+
if (action === _constant.UIAction.START_SHARE_SCREEN) {
|
|
1152
|
+
this._screenSharingState = _fcrCore.FcrMediaSourceState.OPEN;
|
|
1153
|
+
}
|
|
1154
|
+
if (action === _constant.UIAction.STOP_SHARE_SCREEN) {
|
|
1155
|
+
this._screenSharingState = _fcrCore.FcrMediaSourceState.CLOSE;
|
|
1156
|
+
}
|
|
1157
|
+
if (action === _constant.UIAction.PARTICIPANT_ACTION) {
|
|
1158
|
+
this.handlerUserAction(payload.action, payload.userId);
|
|
1159
|
+
}
|
|
1003
1160
|
}
|
|
1004
1161
|
}, {
|
|
1005
1162
|
key: "moveToMainRoomByUserIds",
|
|
@@ -1017,6 +1174,11 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1017
1174
|
this.isNewWaitingRoomUserEnter = false;
|
|
1018
1175
|
}
|
|
1019
1176
|
}
|
|
1177
|
+
}, {
|
|
1178
|
+
key: "getInterpreterState",
|
|
1179
|
+
value: function getInterpreterState() {
|
|
1180
|
+
return this._interpreterControl.getState().enable;
|
|
1181
|
+
}
|
|
1020
1182
|
}, {
|
|
1021
1183
|
key: "_initWaitingRoomUserList",
|
|
1022
1184
|
value: function _initWaitingRoomUserList() {
|
|
@@ -1026,8 +1188,8 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1026
1188
|
var _Object$entries$_i = (0, _slicedToArray2["default"])(_Object$entries[_i], 2),
|
|
1027
1189
|
userId = _Object$entries$_i[0],
|
|
1028
1190
|
user = _Object$entries$_i[1];
|
|
1029
|
-
if (userId !== this.
|
|
1030
|
-
this._waitingRoomDataSource.add(user, this._streamControl.getStreamsByUserId(userId), this.
|
|
1191
|
+
if (userId !== this._localUser.userId && user.userRole === _type.FcrUserRole.PARTICIPANT) {
|
|
1192
|
+
this._waitingRoomDataSource.add(user, this._streamControl.getStreamsByUserId(userId), this._localUser.userId === userId);
|
|
1031
1193
|
}
|
|
1032
1194
|
}
|
|
1033
1195
|
}
|
|
@@ -1036,34 +1198,34 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1036
1198
|
value:
|
|
1037
1199
|
// user actions
|
|
1038
1200
|
function _muteUserAudio(user) {
|
|
1039
|
-
var isSelf = user === this.
|
|
1201
|
+
var isSelf = user === this._localUser.userId;
|
|
1040
1202
|
if (isSelf) {
|
|
1041
1203
|
this._deviceStreamStore.enableMicrophoneWithStream(false);
|
|
1042
1204
|
} else {
|
|
1043
1205
|
var targetUsers = this._streamControl.getStreamsByUserId(user);
|
|
1044
1206
|
var targetUser = targetUsers.find(function (user) {
|
|
1045
|
-
return user.videoSourceType ===
|
|
1207
|
+
return user.videoSourceType === _type2.AgoraRteVideoSourceType.CAMERA;
|
|
1046
1208
|
});
|
|
1047
1209
|
if (!targetUser) {
|
|
1048
1210
|
return;
|
|
1049
1211
|
}
|
|
1050
1212
|
this._streamControl.updatePublishPrivilegeOfStreams((0, _defineProperty2["default"])({}, targetUser.streamId, {
|
|
1051
|
-
audioPrivilege:
|
|
1052
|
-
videoPrivilege:
|
|
1213
|
+
audioPrivilege: _fcrCore.FcrStreamPrivilegeOperation.NOPRIVILEGE,
|
|
1214
|
+
videoPrivilege: _fcrCore.FcrStreamPrivilegeOperation.NOOPERATION
|
|
1053
1215
|
}));
|
|
1054
1216
|
}
|
|
1055
1217
|
}
|
|
1056
1218
|
}, {
|
|
1057
1219
|
key: "_unmuteUserAudio",
|
|
1058
1220
|
value: function _unmuteUserAudio(userId) {
|
|
1059
|
-
var isSelf = userId === this.
|
|
1221
|
+
var isSelf = userId === this._localUser.userId;
|
|
1060
1222
|
if (isSelf) {
|
|
1061
1223
|
this._deviceStreamStore.enableMicrophoneWithStream(true);
|
|
1062
1224
|
} else {
|
|
1063
1225
|
var _this$_unmuteAudioTim;
|
|
1064
1226
|
var targetUsers = this._streamControl.getStreamsByUserId(userId);
|
|
1065
1227
|
var targetUser = targetUsers.find(function (user) {
|
|
1066
|
-
return user.videoSourceType ===
|
|
1228
|
+
return user.videoSourceType === _type2.AgoraRteVideoSourceType.CAMERA;
|
|
1067
1229
|
});
|
|
1068
1230
|
if (!targetUser) {
|
|
1069
1231
|
return;
|
|
@@ -1078,7 +1240,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1078
1240
|
receiverId: userId,
|
|
1079
1241
|
duration: SESSION_DURATION,
|
|
1080
1242
|
payload: {
|
|
1081
|
-
sender: this.
|
|
1243
|
+
sender: this._localUser
|
|
1082
1244
|
}
|
|
1083
1245
|
});
|
|
1084
1246
|
}
|
|
@@ -1086,20 +1248,20 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1086
1248
|
}, {
|
|
1087
1249
|
key: "_muteUserVideo",
|
|
1088
1250
|
value: function _muteUserVideo(user) {
|
|
1089
|
-
var isSelf = user === this.
|
|
1251
|
+
var isSelf = user === this._localUser.userId;
|
|
1090
1252
|
if (isSelf) {
|
|
1091
1253
|
this._deviceStreamStore.enableCameraWithStream(false);
|
|
1092
1254
|
} else {
|
|
1093
1255
|
var targetUsers = this._streamControl.getStreamsByUserId(user);
|
|
1094
1256
|
var targetUser = targetUsers.find(function (user) {
|
|
1095
|
-
return user.videoSourceType ===
|
|
1257
|
+
return user.videoSourceType === _type2.AgoraRteVideoSourceType.CAMERA;
|
|
1096
1258
|
});
|
|
1097
1259
|
if (!targetUser) {
|
|
1098
1260
|
return;
|
|
1099
1261
|
}
|
|
1100
1262
|
this._streamControl.updatePublishPrivilegeOfStreams((0, _defineProperty2["default"])({}, targetUser.streamId, {
|
|
1101
|
-
audioPrivilege:
|
|
1102
|
-
videoPrivilege:
|
|
1263
|
+
audioPrivilege: _fcrCore.FcrStreamPrivilegeOperation.NOOPERATION,
|
|
1264
|
+
videoPrivilege: _fcrCore.FcrStreamPrivilegeOperation.NOPRIVILEGE
|
|
1103
1265
|
}));
|
|
1104
1266
|
}
|
|
1105
1267
|
}
|
|
@@ -1108,11 +1270,11 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1108
1270
|
}, {
|
|
1109
1271
|
key: "_unmuteUserVideo",
|
|
1110
1272
|
value: function _unmuteUserVideo(userId) {
|
|
1111
|
-
var isSelf = userId === this.
|
|
1273
|
+
var isSelf = userId === this._localUser.userId;
|
|
1112
1274
|
if (isSelf) {
|
|
1113
1275
|
this._deviceStreamStore.enableCameraWithStream(true);
|
|
1114
1276
|
} else {
|
|
1115
|
-
var localUser = this.
|
|
1277
|
+
var localUser = this._localUser;
|
|
1116
1278
|
var targetUsers = this._streamControl.getStreamsByUserId(userId);
|
|
1117
1279
|
var targetUser = targetUsers[0];
|
|
1118
1280
|
if (localUser.userId === userId) {
|
|
@@ -1125,11 +1287,11 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1125
1287
|
}
|
|
1126
1288
|
this._unmuteVideoTimestamp.set(userId, now);
|
|
1127
1289
|
this._peerSessionControl.startPeerSession({
|
|
1128
|
-
sessionKey:
|
|
1290
|
+
sessionKey: _type3.FcrUISessionKey.REQUEST_OPEN_CAMERA,
|
|
1129
1291
|
receiverId: userId,
|
|
1130
1292
|
duration: SESSION_DURATION,
|
|
1131
1293
|
payload: {
|
|
1132
|
-
sender: this.
|
|
1294
|
+
sender: this._localUser
|
|
1133
1295
|
}
|
|
1134
1296
|
});
|
|
1135
1297
|
}
|
|
@@ -1144,27 +1306,31 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1144
1306
|
this._uiEventStore.updateAside({
|
|
1145
1307
|
chat: true
|
|
1146
1308
|
});
|
|
1309
|
+
this._uiEventStore.sendEvent(_constant.UIAction.TOGGLE_CHAT_ROOM_TAB, this.activeTab);
|
|
1147
1310
|
var userData = this.userListSource.find(function (u) {
|
|
1148
1311
|
return u.userId === userId;
|
|
1149
1312
|
});
|
|
1150
|
-
userData && this._uiEventStore.notifyChatUpdateTarget(userData.userInfo);
|
|
1313
|
+
userData && this._uiEventStore.notifyChatUpdateTarget(userData.userInfo, this.activeTab);
|
|
1314
|
+
if ((0, _env.isElectron)() && this._screenSharingState === _fcrCore.FcrMediaSourceState.OPEN) {
|
|
1315
|
+
this._uiEventStore.openDialog(_constant.DialogKey.CHAT);
|
|
1316
|
+
}
|
|
1151
1317
|
}
|
|
1152
1318
|
}, {
|
|
1153
1319
|
key: "_kickOutUser",
|
|
1154
1320
|
value: function _kickOutUser(userId) {
|
|
1155
|
-
var
|
|
1321
|
+
var _this7 = this,
|
|
1156
1322
|
_this$userMap$get7;
|
|
1157
|
-
this.openConfirmDialog({
|
|
1323
|
+
var dialogId = this.openConfirmDialog({
|
|
1158
1324
|
title: '',
|
|
1159
1325
|
onCancel: function onCancel() {
|
|
1160
|
-
|
|
1326
|
+
_this7._uiEventStore.closeConfirm(dialogId);
|
|
1161
1327
|
},
|
|
1162
1328
|
content: (0, _i18n.transI18n)('fmt_uimanager_tips_Remove', {
|
|
1163
1329
|
reason2: (_this$userMap$get7 = this.userMap.get(userId)) === null || _this$userMap$get7 === void 0 ? void 0 : _this$userMap$get7.userInfo.userName
|
|
1164
1330
|
}),
|
|
1165
1331
|
onOk: function onOk() {
|
|
1166
|
-
|
|
1167
|
-
|
|
1332
|
+
_this7._userControl.kickOut(userId, _type4.FcrUserKickedOutType.Once);
|
|
1333
|
+
_this7._uiEventStore.closeConfirm(dialogId);
|
|
1168
1334
|
},
|
|
1169
1335
|
height: 160
|
|
1170
1336
|
}, 'KICK_OUT');
|
|
@@ -1173,36 +1339,38 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1173
1339
|
key: "_handleSetHostOrCoHost",
|
|
1174
1340
|
value: function _handleSetHostOrCoHost(userId, type) {
|
|
1175
1341
|
var _this$userMap$get8,
|
|
1176
|
-
|
|
1342
|
+
_this8 = this;
|
|
1177
1343
|
var username = (_this$userMap$get8 = this.userMap.get(userId)) === null || _this$userMap$get8 === void 0 ? void 0 : _this$userMap$get8.userInfo.userName;
|
|
1178
1344
|
var targetRole = type === 'host' ? (0, _i18n.transI18n)('fmt_role_host') : (0, _i18n.transI18n)('fmt_role_cohost');
|
|
1179
|
-
this.openConfirmDialog({
|
|
1345
|
+
var dialogId = this.openConfirmDialog({
|
|
1180
1346
|
title: (0, _i18n.transI18n)('fmt_uimanager_labels_Setas', {
|
|
1181
1347
|
reason1: targetRole
|
|
1182
1348
|
}),
|
|
1183
1349
|
onCancel: function onCancel() {
|
|
1184
|
-
|
|
1350
|
+
_this8._uiEventStore.closeConfirm(dialogId);
|
|
1185
1351
|
},
|
|
1186
1352
|
content: (0, _i18n.transI18n)('fmt_uimanager_tips_designedas', {
|
|
1187
1353
|
reason1: username,
|
|
1188
1354
|
reason2: targetRole
|
|
1189
1355
|
}),
|
|
1190
1356
|
onOk: function onOk() {
|
|
1191
|
-
if (!
|
|
1192
|
-
|
|
1357
|
+
if (!_this8.userMap.has(userId)) {
|
|
1358
|
+
_this8._uiEventStore.showToast({
|
|
1193
1359
|
type: 'error',
|
|
1194
1360
|
message: (0, _i18n.transI18n)('fmt_uimanager_tips_userleaft')
|
|
1195
1361
|
});
|
|
1196
1362
|
return;
|
|
1197
1363
|
}
|
|
1198
|
-
|
|
1199
|
-
|
|
1364
|
+
_this8._userControl.updateRemoteUserRole(userId, type === 'host' ? _type.FcrUserRole.HOST : _type.FcrUserRole.COHOST);
|
|
1365
|
+
_this8._uiEventStore.closeConfirm(dialogId);
|
|
1200
1366
|
},
|
|
1201
1367
|
okText: (0, _i18n.transI18n)('fmt_uimanager_labels_Setas', {
|
|
1202
1368
|
reason1: targetRole
|
|
1203
1369
|
}),
|
|
1204
1370
|
cancelText: (0, _i18n.transI18n)('fmt_security_buttons_cancel'),
|
|
1205
|
-
closable: false
|
|
1371
|
+
closable: false,
|
|
1372
|
+
width: 400,
|
|
1373
|
+
alignCenter: true
|
|
1206
1374
|
}, 'UPDATE_USER_ROLE');
|
|
1207
1375
|
}
|
|
1208
1376
|
}, {
|
|
@@ -1228,13 +1396,9 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1228
1396
|
this._securityStore.setAllowJoinWithMuteAudio(JoinWithMuteAudio);
|
|
1229
1397
|
this._securityStore.setAllowUnmuteSelfAudio(allowUnmute);
|
|
1230
1398
|
this._securityStore.muteAll();
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
content: (0, _i18n.transI18n)('fmt_uimanager_tips_allmuted'),
|
|
1235
|
-
type: 'normal'
|
|
1236
|
-
},
|
|
1237
|
-
duration: 3000
|
|
1399
|
+
this._uiEventStore.showToast({
|
|
1400
|
+
message: (0, _i18n.transI18n)('fmt_uimanager_tips_allmuted'),
|
|
1401
|
+
type: 'normal'
|
|
1238
1402
|
});
|
|
1239
1403
|
}
|
|
1240
1404
|
}, {
|
|
@@ -1257,7 +1421,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1257
1421
|
}, {
|
|
1258
1422
|
key: "_revokeHost",
|
|
1259
1423
|
value: function _revokeHost() {
|
|
1260
|
-
if (!this._securityStore.hasRevokeHostPermission() || this.
|
|
1424
|
+
if (!this._securityStore.hasRevokeHostPermission() || this._localUser.userRole === _type.FcrUserRole.HOST) {
|
|
1261
1425
|
return;
|
|
1262
1426
|
}
|
|
1263
1427
|
this._userControl.revokeHost();
|
|
@@ -1283,11 +1447,11 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1283
1447
|
}
|
|
1284
1448
|
}, {
|
|
1285
1449
|
key: "_enableRename",
|
|
1286
|
-
value: function _enableRename(
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
this._securityStore.setAllowChangeSelfName();
|
|
1450
|
+
value: function _enableRename() {
|
|
1451
|
+
var isAllowChangeSelfName = this._securityStore.allowChangeSelfName();
|
|
1452
|
+
this._securityStore.setAllowChangeSelfName(!isAllowChangeSelfName);
|
|
1290
1453
|
}
|
|
1454
|
+
|
|
1291
1455
|
// 所有人加入会议时静音
|
|
1292
1456
|
}, {
|
|
1293
1457
|
key: "enableJoinWithMuteAudio",
|
|
@@ -1301,7 +1465,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1301
1465
|
if (!stream) {
|
|
1302
1466
|
return;
|
|
1303
1467
|
}
|
|
1304
|
-
this.audioVolumeMap.set(stream.owner.userId, volume);
|
|
1468
|
+
this.audioVolumeMap.set(stream.owner.userId, Math.floor(volume / 255 * 100));
|
|
1305
1469
|
}
|
|
1306
1470
|
}, {
|
|
1307
1471
|
key: "_updateUserBoardState",
|
|
@@ -1317,31 +1481,31 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1317
1481
|
}, {
|
|
1318
1482
|
key: "_handleRemoteUserJoined",
|
|
1319
1483
|
value: function _handleRemoteUserJoined(roomId, events) {
|
|
1320
|
-
var
|
|
1484
|
+
var _this9 = this;
|
|
1321
1485
|
events.forEach(function (event) {
|
|
1322
1486
|
var modifiedUser = event.modifiedUser;
|
|
1323
|
-
|
|
1324
|
-
|
|
1487
|
+
_this9._dataSource.add(modifiedUser, _this9._streamControl.getStreamsByUserId(modifiedUser.userId), modifiedUser.userId === _this9._localUser.userId);
|
|
1488
|
+
_this9._updateUserBoardState(modifiedUser);
|
|
1325
1489
|
});
|
|
1326
1490
|
}
|
|
1327
1491
|
}, {
|
|
1328
1492
|
key: "_handleRemoteUserLeft",
|
|
1329
1493
|
value: function _handleRemoteUserLeft(roomId, events) {
|
|
1330
|
-
var
|
|
1494
|
+
var _this10 = this;
|
|
1331
1495
|
events.forEach(function (event) {
|
|
1332
1496
|
var modifiedUser = event.modifiedUser;
|
|
1333
|
-
|
|
1334
|
-
|
|
1497
|
+
_this10._dataSource["delete"](modifiedUser);
|
|
1498
|
+
_this10._updateUserBoardState(modifiedUser);
|
|
1335
1499
|
});
|
|
1336
1500
|
}
|
|
1337
1501
|
}, {
|
|
1338
1502
|
key: "_handleRemoteWaitingUserJoined",
|
|
1339
1503
|
value: function _handleRemoteWaitingUserJoined(roomId, events) {
|
|
1340
|
-
var
|
|
1504
|
+
var _this11 = this;
|
|
1341
1505
|
events.forEach(function (event) {
|
|
1342
1506
|
var modifiedUser = event.modifiedUser;
|
|
1343
1507
|
if (modifiedUser.userRole === _type.FcrUserRole.PARTICIPANT) {
|
|
1344
|
-
|
|
1508
|
+
_this11._waitingRoomDataSource.add(modifiedUser, _this11._streamControl.getStreamsByUserId(modifiedUser.userId), modifiedUser.userId === _this11._localUser.userId);
|
|
1345
1509
|
// this._updateUserBoardState(modifiedUser);
|
|
1346
1510
|
}
|
|
1347
1511
|
});
|
|
@@ -1361,11 +1525,11 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1361
1525
|
}, {
|
|
1362
1526
|
key: "_handleRemoteWaitingUserLeft",
|
|
1363
1527
|
value: function _handleRemoteWaitingUserLeft(roomId, events) {
|
|
1364
|
-
var
|
|
1528
|
+
var _this12 = this;
|
|
1365
1529
|
events.forEach(function (event) {
|
|
1366
1530
|
var modifiedUser = event.modifiedUser;
|
|
1367
|
-
|
|
1368
|
-
|
|
1531
|
+
_this12._waitingRoomDataSource["delete"](modifiedUser);
|
|
1532
|
+
_this12._updateUserBoardState(modifiedUser);
|
|
1369
1533
|
});
|
|
1370
1534
|
this.waitingRoomUserCount = this._getWaitingRoomUserCount();
|
|
1371
1535
|
if (this._getWaitingRoomUserCount() === 0) {
|
|
@@ -1373,16 +1537,16 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1373
1537
|
}
|
|
1374
1538
|
}
|
|
1375
1539
|
}, {
|
|
1376
|
-
key: "
|
|
1377
|
-
value: function
|
|
1540
|
+
key: "_handleUserInfoUpdated",
|
|
1541
|
+
value: function _handleUserInfoUpdated(roomId, event) {
|
|
1378
1542
|
var _this$userMap$get9;
|
|
1379
1543
|
var targetUser = event.modifiedUser;
|
|
1380
1544
|
this._updateUserBoardState(targetUser);
|
|
1381
1545
|
this._dataSource.update(targetUser);
|
|
1382
1546
|
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$
|
|
1384
|
-
localUserId = _this$
|
|
1385
|
-
localUserRole = _this$
|
|
1547
|
+
var _this$_localUser3 = this._localUser,
|
|
1548
|
+
localUserId = _this$_localUser3.userId,
|
|
1549
|
+
localUserRole = _this$_localUser3.userRole;
|
|
1386
1550
|
var effectSelf = targetUser.userId === localUserId;
|
|
1387
1551
|
if ((originUser === null || originUser === void 0 ? void 0 : originUser.userRole) !== targetUser.userRole) {
|
|
1388
1552
|
// 参会者变管理
|
|
@@ -1413,6 +1577,11 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1413
1577
|
this._updateLocalUserRole(localUserRole);
|
|
1414
1578
|
this._refreshCurrentPerspectiveType();
|
|
1415
1579
|
}
|
|
1580
|
+
}, {
|
|
1581
|
+
key: "_handleUserPropertiesUpdated",
|
|
1582
|
+
value: function _handleUserPropertiesUpdated() {
|
|
1583
|
+
this._getOutputLanguage();
|
|
1584
|
+
}
|
|
1416
1585
|
}, {
|
|
1417
1586
|
key: "_initUserList",
|
|
1418
1587
|
value: function _initUserList() {
|
|
@@ -1422,41 +1591,41 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1422
1591
|
var _Object$entries2$_i = (0, _slicedToArray2["default"])(_Object$entries2[_i2], 2),
|
|
1423
1592
|
userId = _Object$entries2$_i[0],
|
|
1424
1593
|
user = _Object$entries2$_i[1];
|
|
1425
|
-
this._dataSource.add(user, this._streamControl.getStreamsByUserId(userId), this.
|
|
1594
|
+
this._dataSource.add(user, this._streamControl.getStreamsByUserId(userId), this._localUser.userId === userId);
|
|
1426
1595
|
}
|
|
1427
1596
|
}
|
|
1428
1597
|
}, {
|
|
1429
1598
|
key: "_handleStreamsAdded",
|
|
1430
1599
|
value: function _handleStreamsAdded(roomId, events) {
|
|
1431
|
-
var
|
|
1600
|
+
var _this13 = this;
|
|
1432
1601
|
events.forEach(function (e) {
|
|
1433
1602
|
var modifiedStream = e.modifiedStream;
|
|
1434
|
-
|
|
1603
|
+
_this13._dataSource.updateWithStreamAdd(modifiedStream);
|
|
1435
1604
|
});
|
|
1436
1605
|
}
|
|
1437
1606
|
}, {
|
|
1438
1607
|
key: "_handleStreamsUpdated",
|
|
1439
1608
|
value: function _handleStreamsUpdated(roomId, events) {
|
|
1440
|
-
var
|
|
1609
|
+
var _this14 = this;
|
|
1441
1610
|
events.forEach(function (e) {
|
|
1442
1611
|
var modifiedStream = e.modifiedStream;
|
|
1443
|
-
|
|
1612
|
+
_this14._dataSource.update(modifiedStream);
|
|
1444
1613
|
});
|
|
1445
1614
|
}
|
|
1446
1615
|
}, {
|
|
1447
1616
|
key: "_handleStreamsRemoved",
|
|
1448
1617
|
value: function _handleStreamsRemoved(roomId, events) {
|
|
1449
|
-
var
|
|
1618
|
+
var _this15 = this;
|
|
1450
1619
|
events.forEach(function (e) {
|
|
1451
1620
|
var modifiedStream = e.modifiedStream;
|
|
1452
|
-
|
|
1621
|
+
_this15._dataSource.updateWithStreamRemove(modifiedStream);
|
|
1453
1622
|
});
|
|
1454
1623
|
}
|
|
1455
1624
|
}, {
|
|
1456
1625
|
key: "_refreshCurrentPerspectiveType",
|
|
1457
1626
|
value: function _refreshCurrentPerspectiveType() {
|
|
1458
|
-
var _this$
|
|
1459
|
-
var localUserUid = (_this$
|
|
1627
|
+
var _this$_localUser4;
|
|
1628
|
+
var localUserUid = (_this$_localUser4 = this._localUser) === null || _this$_localUser4 === void 0 ? void 0 : _this$_localUser4.userId;
|
|
1460
1629
|
if (!localUserUid) {
|
|
1461
1630
|
this.currentPerspectiveType = 'attendee';
|
|
1462
1631
|
return;
|
|
@@ -1479,18 +1648,18 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1479
1648
|
}, {
|
|
1480
1649
|
key: "_onPeerSessionReceived",
|
|
1481
1650
|
value: function _onPeerSessionReceived(session) {
|
|
1482
|
-
var _this$
|
|
1483
|
-
|
|
1651
|
+
var _this$_localUser5,
|
|
1652
|
+
_this16 = this;
|
|
1484
1653
|
if (session.sessionId && this._processedUserOpenDeviceRequests.has(session.sessionId)) {
|
|
1485
1654
|
return;
|
|
1486
1655
|
}
|
|
1487
1656
|
this._processedUserOpenDeviceRequests.add(session.sessionId);
|
|
1488
|
-
var localUserUid = (_this$
|
|
1657
|
+
var localUserUid = (_this$_localUser5 = this._localUser) === null || _this$_localUser5 === void 0 ? void 0 : _this$_localUser5.userId;
|
|
1489
1658
|
if (!localUserUid) {
|
|
1490
1659
|
return;
|
|
1491
1660
|
}
|
|
1492
1661
|
var localUser = this._streamControl.getStreamsByUserId(localUserUid).find(function (user) {
|
|
1493
|
-
return user.videoSourceType ===
|
|
1662
|
+
return user.videoSourceType === _type2.AgoraRteVideoSourceType.CAMERA;
|
|
1494
1663
|
});
|
|
1495
1664
|
if (!localUser) {
|
|
1496
1665
|
return;
|
|
@@ -1499,14 +1668,16 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1499
1668
|
var localUserHasVideo = this._deviceStore.cameraEnabled;
|
|
1500
1669
|
var sessionKey = session.sessionKey,
|
|
1501
1670
|
payload = session.payload;
|
|
1502
|
-
if (sessionKey ===
|
|
1671
|
+
if (sessionKey === _type3.FcrUISessionKey.REQUEST_OPEN_CAMERA) {
|
|
1503
1672
|
if (localUserHasVideo) {
|
|
1504
1673
|
this._peerSessionControl.acceptPeerSession(session);
|
|
1505
1674
|
return;
|
|
1506
1675
|
}
|
|
1507
1676
|
var _ref8 = payload,
|
|
1508
1677
|
sender = _ref8.sender;
|
|
1509
|
-
this.openConfirmDialog({
|
|
1678
|
+
var dialogId = this.openConfirmDialog({
|
|
1679
|
+
width: 400,
|
|
1680
|
+
height: 166,
|
|
1510
1681
|
title: (0, _i18n.transI18n)('fmt_attendies_tips_apply_video_title', {
|
|
1511
1682
|
reason1: (0, _i18n.transI18n)(_i18n2.userRoleI18nKey[sender.userRole])
|
|
1512
1683
|
}),
|
|
@@ -1514,25 +1685,25 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1514
1685
|
okText: (0, _i18n.transI18n)('fmt_additional_button_accept'),
|
|
1515
1686
|
cancelText: (0, _i18n.transI18n)('fmt_additional_button_refuse'),
|
|
1516
1687
|
onOk: function onOk() {
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1688
|
+
_this16._peerSessionControl.acceptPeerSession(session);
|
|
1689
|
+
_this16._deviceStreamStore.enableCameraWithStream(true);
|
|
1690
|
+
_this16._uiEventStore.closeConfirm(dialogId);
|
|
1520
1691
|
},
|
|
1521
1692
|
onCancel: function onCancel() {
|
|
1522
|
-
|
|
1523
|
-
|
|
1693
|
+
_this16._peerSessionControl.rejectPeerSession(session);
|
|
1694
|
+
_this16._uiEventStore.closeConfirm(dialogId);
|
|
1524
1695
|
}
|
|
1525
|
-
},
|
|
1696
|
+
}, _type3.FcrUISessionKey.REQUEST_OPEN_CAMERA);
|
|
1526
1697
|
return;
|
|
1527
1698
|
}
|
|
1528
|
-
if (sessionKey ===
|
|
1699
|
+
if (sessionKey === _type3.FcrUISessionKey.REQUEST_OPEN_MICROPHONE) {
|
|
1529
1700
|
if (localUserHasAudio) {
|
|
1530
1701
|
this._peerSessionControl.acceptPeerSession(session);
|
|
1531
1702
|
return;
|
|
1532
1703
|
}
|
|
1533
1704
|
var _ref9 = payload,
|
|
1534
1705
|
_sender = _ref9.sender;
|
|
1535
|
-
this.openConfirmDialog({
|
|
1706
|
+
var _dialogId = this.openConfirmDialog({
|
|
1536
1707
|
title: (0, _i18n.transI18n)('fmt_attendies_tips_apply_audio_title', {
|
|
1537
1708
|
reason1: (0, _i18n.transI18n)(_i18n2.userRoleI18nKey[_sender.userRole])
|
|
1538
1709
|
}),
|
|
@@ -1540,15 +1711,17 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1540
1711
|
okText: (0, _i18n.transI18n)('fmt_device_label_audio_unmute'),
|
|
1541
1712
|
cancelText: (0, _i18n.transI18n)('fmt_additional_options_Keepsilent'),
|
|
1542
1713
|
onOk: function onOk() {
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1714
|
+
_this16._peerSessionControl.acceptPeerSession(session);
|
|
1715
|
+
_this16._deviceStreamStore.enableMicrophoneWithStream(true);
|
|
1716
|
+
_this16._uiEventStore.closeConfirm(_dialogId);
|
|
1546
1717
|
},
|
|
1547
1718
|
onCancel: function onCancel() {
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
}
|
|
1551
|
-
|
|
1719
|
+
_this16._peerSessionControl.rejectPeerSession(session);
|
|
1720
|
+
_this16._uiEventStore.closeConfirm(_dialogId);
|
|
1721
|
+
},
|
|
1722
|
+
width: 400,
|
|
1723
|
+
height: 166
|
|
1724
|
+
}, _type3.FcrUISessionKey.REQUEST_OPEN_MICROPHONE);
|
|
1552
1725
|
}
|
|
1553
1726
|
}
|
|
1554
1727
|
}, {
|
|
@@ -1567,60 +1740,14 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1567
1740
|
var responderId = session.responderId,
|
|
1568
1741
|
sessionKey = session.sessionKey;
|
|
1569
1742
|
switch (sessionKey) {
|
|
1570
|
-
case
|
|
1743
|
+
case _type3.FcrUISessionKey.REQUEST_OPEN_CAMERA:
|
|
1571
1744
|
this._unmuteVideoTimestamp["delete"](responderId);
|
|
1572
1745
|
break;
|
|
1573
|
-
case
|
|
1746
|
+
case _type3.FcrUISessionKey.REQUEST_OPEN_MICROPHONE:
|
|
1574
1747
|
this._unmuteAudioTimestamp["delete"](responderId);
|
|
1575
1748
|
break;
|
|
1576
1749
|
}
|
|
1577
1750
|
}
|
|
1578
|
-
}, {
|
|
1579
|
-
key: "_sendEvent",
|
|
1580
|
-
value: function _sendEvent(action, payload) {
|
|
1581
|
-
(0, _rendererEvent.sendEvent)({
|
|
1582
|
-
action: action,
|
|
1583
|
-
payload: payload
|
|
1584
|
-
});
|
|
1585
|
-
}
|
|
1586
|
-
}, {
|
|
1587
|
-
key: "_addReactions",
|
|
1588
|
-
value: function _addReactions() {
|
|
1589
|
-
var _this15 = this;
|
|
1590
|
-
this._disposers.push((0, _mobx.reaction)(function () {
|
|
1591
|
-
return _this15._participantsWindowActive;
|
|
1592
|
-
}, function (active) {
|
|
1593
|
-
if (active) {
|
|
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
|
|
1607
|
-
});
|
|
1608
|
-
}
|
|
1609
|
-
}));
|
|
1610
|
-
this._disposers.push((0, _mobx.reaction)(function () {
|
|
1611
|
-
return _this15.userList;
|
|
1612
|
-
}, function (list) {
|
|
1613
|
-
(0, _rendererEvent.sendEvent)({
|
|
1614
|
-
action: _constant.RendererEventAction.UPDATE_PARTICIPANT,
|
|
1615
|
-
payload: list
|
|
1616
|
-
});
|
|
1617
|
-
}));
|
|
1618
|
-
}
|
|
1619
|
-
}, {
|
|
1620
|
-
key: "_isCohost",
|
|
1621
|
-
value: function _isCohost(userRole) {
|
|
1622
|
-
return userRole === _type.FcrUserRole.COHOST;
|
|
1623
|
-
}
|
|
1624
1751
|
}, {
|
|
1625
1752
|
key: "_isHost",
|
|
1626
1753
|
value: function _isHost(userRole) {
|
|
@@ -1631,10 +1758,41 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1631
1758
|
value: function _updateLocalUserRole(userRole) {
|
|
1632
1759
|
this.localUserRole = userRole;
|
|
1633
1760
|
}
|
|
1761
|
+
}, {
|
|
1762
|
+
key: "_getOutputLanguage",
|
|
1763
|
+
value: function () {
|
|
1764
|
+
var _getOutputLanguage2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee5() {
|
|
1765
|
+
var interpreterInputLanguageList, index, user, language;
|
|
1766
|
+
return _regenerator["default"].wrap(function _callee5$(_context5) {
|
|
1767
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
1768
|
+
case 0:
|
|
1769
|
+
interpreterInputLanguageList = [];
|
|
1770
|
+
for (index = 0; index < this.userList.length; index++) {
|
|
1771
|
+
user = this.userList[index];
|
|
1772
|
+
language = this._userControl.getUserPropertiesByKeyPath('interpreterLangCode', user.userId);
|
|
1773
|
+
if (language) {
|
|
1774
|
+
interpreterInputLanguageList.push({
|
|
1775
|
+
userId: user.userId,
|
|
1776
|
+
language: language
|
|
1777
|
+
});
|
|
1778
|
+
}
|
|
1779
|
+
}
|
|
1780
|
+
this.interpreterInputLanguageList = interpreterInputLanguageList;
|
|
1781
|
+
case 3:
|
|
1782
|
+
case "end":
|
|
1783
|
+
return _context5.stop();
|
|
1784
|
+
}
|
|
1785
|
+
}, _callee5, this);
|
|
1786
|
+
}));
|
|
1787
|
+
function _getOutputLanguage() {
|
|
1788
|
+
return _getOutputLanguage2.apply(this, arguments);
|
|
1789
|
+
}
|
|
1790
|
+
return _getOutputLanguage;
|
|
1791
|
+
}()
|
|
1634
1792
|
}]);
|
|
1635
1793
|
}();
|
|
1636
1794
|
_ParticipantStore = ParticipantStore;
|
|
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"], [
|
|
1795
|
+
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.observable, 1, "interpreterUsers"], [_mobx.observable, 1, "interpreterState"], [_mobx.observable, 1, "interpreterInputLanguageList"], [_mobx.observable, 1, "newName"], [_mobx.observable, 1, "refreshList"], [_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"], [_closeRemoveAdmitWaitingRoomDialogDecs, 18, "closeRemoveAdmitWaitingRoomDialog"], [_openRemoveAdmitWaitingRoomDialogDecs, 18, "openRemoveAdmitWaitingRoomDialog"], [_handlerUserActionDecs, 18, "handlerUserAction"], [_closeChangeNameDialogDecs, 18, "_closeChangeNameDialog"], [_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"], [_getInterpreterStateDecs, 18, "getInterpreterState"], [_initWaitingRoomUserListDecs, 18, "_initWaitingRoomUserList"], [_kickOutUserDecs, 18, "_kickOutUser"], [_setAsAttendeeDecs, 18, "_setAsAttendee"], [_onAudioVolumeUpdatedDecs, 18, "_onAudioVolumeUpdated"], [_handleRemoteUserJoinedDecs, 18, "_handleRemoteUserJoined"], [_handleRemoteUserLeftDecs, 18, "_handleRemoteUserLeft"], [_handleRemoteWaitingUserJoinedDecs, 18, "_handleRemoteWaitingUserJoined"], [_handleRemoteWaitingUserLeftDecs, 18, "_handleRemoteWaitingUserLeft"], [_handleUserInfoUpdatedDecs, 18, "_handleUserInfoUpdated"], [_initUserListDecs, 18, "_initUserList"], [_decorator.bound, 2, "_handleStreamsAdded"], [_decorator.bound, 2, "_handleStreamsUpdated"], [_decorator.bound, 2, "_handleStreamsRemoved"], [_refreshCurrentPerspectiveTypeDecs, 18, "_refreshCurrentPerspectiveType"], [_onPeerSessionReceivedDecs, 18, "_onPeerSessionReceived"], [_updateLocalUserRoleDecs, 18, "_updateLocalUserRole"], [_getOutputLanguageDecs, 18, "_getOutputLanguage"]], []).e, 21);
|
|
1638
1796
|
_init__mainList = _applyDecs$e[0];
|
|
1639
1797
|
_init__participantsWindowActive = _applyDecs$e[1];
|
|
1640
1798
|
_init_currentPerspectiveType = _applyDecs$e[2];
|
|
@@ -1650,4 +1808,10 @@ _init_mergeUserId = _applyDecs$e[11];
|
|
|
1650
1808
|
_init_activeTab = _applyDecs$e[12];
|
|
1651
1809
|
_init_isNewWaitingRoomUserEnter = _applyDecs$e[13];
|
|
1652
1810
|
_init_waitingRoomUserCount = _applyDecs$e[14];
|
|
1653
|
-
|
|
1811
|
+
_init_interpreterUsers = _applyDecs$e[15];
|
|
1812
|
+
_init_interpreterState = _applyDecs$e[16];
|
|
1813
|
+
_init_interpreterInputLanguageList = _applyDecs$e[17];
|
|
1814
|
+
_init_newName = _applyDecs$e[18];
|
|
1815
|
+
_init_refreshList = _applyDecs$e[19];
|
|
1816
|
+
_initProto = _applyDecs$e[20];
|
|
1817
|
+
var StoreContext = exports.StoreContext = /*#__PURE__*/(0, _react.createContext)(null);
|