fcr-ui-scene 3.4.1 → 3.4.3
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/lib/base.d.ts +40 -5
- package/lib/base.js +234 -22
- package/lib/common/device-store.d.ts +3 -2
- package/lib/common/device-store.js +174 -194
- package/lib/common/device-stream-store.d.ts +27 -7
- package/lib/common/device-stream-store.js +190 -176
- package/lib/common/event-store.d.ts +4 -13
- package/lib/common/event-store.js +7 -18
- package/lib/common/room-store.js +6 -6
- package/lib/common/security-store.d.ts +19 -9
- package/lib/common/security-store.js +27 -39
- package/lib/creator.d.ts +1 -1
- package/lib/creator.js +4 -9
- package/lib/electron/app.js +5 -4
- package/lib/electron/bootstrap-dev.js +0 -9
- package/lib/electron/bootstrap-sdk.js +10 -2
- package/lib/electron/injections.d.ts +2 -0
- package/lib/electron/injections.js +17 -7
- package/lib/electron/logger.d.ts +0 -4
- package/lib/electron/logger.js +2 -5
- package/lib/electron/main.js +1 -1
- package/lib/electron/plugins/devtool-shortcut.js +10 -1
- package/lib/electron/plugins/meeting-state.js +1 -1
- package/lib/electron/preload.js +3 -1
- package/lib/electron/tools.js +0 -4
- package/lib/electron/window.js +0 -2
- package/lib/fragments/control-bar/control-bar-store.d.ts +1 -0
- package/lib/fragments/control-bar/control-bar-store.js +9 -4
- package/lib/fragments/control-bar/meeting-details/meeting-detail.css +31 -12
- package/lib/fragments/control-bar/meeting-details/meeting-details.js +117 -16
- package/lib/global.css +5 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +7 -4
- package/lib/login-confirm-dialog.d.ts +1 -0
- package/lib/login-confirm-dialog.js +7 -2
- package/lib/modules/action-bar/action-bar-collapes-items.d.ts +1 -1
- package/lib/modules/action-bar/action-bar-collapes-items.js +11 -11
- package/lib/modules/action-bar/apps/useInterpreter.js +2 -4
- package/lib/modules/action-bar/components/apps/app-item/index.css +1 -2
- package/lib/modules/action-bar/components/apps/app-item/index.d.ts +1 -10
- package/lib/modules/action-bar/components/apps/app-item/index.js +0 -2
- package/lib/modules/action-bar/components/apps/appitems.d.ts +1 -3
- package/lib/modules/action-bar/components/apps/appitems.js +2 -5
- package/lib/modules/action-bar/components/apps/index.css +2 -2
- package/lib/modules/action-bar/components/apps/index.js +2 -3
- package/lib/modules/action-bar/components/apps/useAppItemOptions.js +0 -1
- package/lib/modules/action-bar/components/collapse/index.d.ts +8 -0
- package/lib/modules/action-bar/components/collapse/index.js +218 -0
- package/lib/modules/action-bar/components/interpreter/index.d.ts +1 -5
- package/lib/modules/action-bar/components/item/index.d.ts +9 -0
- package/lib/modules/action-bar/components/{item.js → item/index.js} +2 -4
- package/lib/modules/action-bar/components/leave/assign-host.d.ts +1 -8
- package/lib/modules/action-bar/components/leave/assign-host.js +1 -1
- package/lib/modules/action-bar/components/leave/index.js +9 -26
- package/lib/modules/action-bar/components/leave/leave-meeting.d.ts +1 -16
- package/lib/modules/action-bar/components/more/index.js +13 -9
- package/lib/modules/action-bar/components/more/poppover-content.d.ts +1 -4
- package/lib/modules/action-bar/components/more/poppover-content.js +28 -9
- package/lib/modules/action-bar/{notification-bar → components/notification-bar}/components/interpreter/index.js +2 -1
- package/lib/modules/action-bar/{notification-bar → components/notification-bar}/components/virtual-image/index.js +1 -1
- package/lib/modules/action-bar/{notification-bar → components/notification-bar}/index.js +1 -3
- package/lib/modules/action-bar/components/participants/index.js +2 -2
- package/lib/modules/action-bar/components/placement/index.d.ts +4 -0
- package/lib/modules/action-bar/components/placement/index.js +18 -0
- package/lib/modules/action-bar/components/record/stop-record-dialog.d.ts +1 -3
- package/lib/modules/action-bar/components/screen-share/submenu.js +25 -2
- package/lib/modules/action-bar/components/security/index.js +3 -1
- package/lib/modules/action-bar/components/smaller/index.d.ts +1 -0
- package/lib/modules/action-bar/components/smaller/index.js +52 -0
- package/lib/modules/action-bar/components/trigger-output-language/index.d.ts +2 -0
- package/lib/modules/action-bar/components/trigger-output-language/index.js +231 -0
- package/lib/modules/action-bar/components/trigger-subscribe-language/guide-tooltip/index.d.ts +3 -0
- package/lib/modules/action-bar/{trigger-output-language-room → components/trigger-subscribe-language}/guide-tooltip/index.js +14 -19
- package/lib/modules/action-bar/components/trigger-subscribe-language/index.d.ts +5 -0
- package/lib/modules/action-bar/components/trigger-subscribe-language/index.js +206 -0
- package/lib/modules/action-bar/device/index.js +3 -1
- package/lib/modules/action-bar/enums.d.ts +23 -0
- package/lib/modules/action-bar/enums.js +35 -0
- package/lib/modules/action-bar/index.d.ts +36 -6
- package/lib/modules/action-bar/index.dev.d.ts +0 -1
- package/lib/modules/action-bar/index.dev.js +94 -121
- package/lib/modules/action-bar/index.js +46 -18
- package/lib/modules/action-bar/more/index.js +3 -6
- package/lib/modules/action-bar/screen-share/index.js +0 -5
- package/lib/modules/action-bar/security/index.js +1 -1
- package/lib/modules/action-bar/smaller.js +2 -2
- package/lib/modules/action-bar/store.d.ts +84 -98
- package/lib/modules/action-bar/store.js +567 -713
- package/lib/modules/action-bar/switch-output-language-room/index.js +8 -2
- package/lib/modules/action-bar/types.d.ts +94 -0
- package/lib/modules/action-bar/view.d.ts +1 -2
- package/lib/modules/action-bar/view.js +11 -11
- package/lib/modules/audio-stream/index.d.ts +22 -10
- package/lib/modules/audio-stream/index.js +78 -85
- package/lib/modules/chat/chat-bar/index.css +0 -5
- package/lib/modules/chat/chat-bar/index.js +14 -16
- package/lib/modules/chat/chat-room-store.d.ts +135 -0
- package/lib/modules/chat/chat-room-store.js +950 -0
- package/lib/modules/chat/chat-select/index.css +3 -6
- package/lib/modules/chat/chat-select/index.js +1 -15
- package/lib/modules/chat/chat.js +6 -7
- package/lib/modules/chat/components/chat-action/index.d.ts +1 -0
- package/lib/modules/chat/components/chat-action/index.js +28 -0
- package/lib/modules/chat/components/chat-bar/index.css +85 -0
- package/lib/modules/chat/components/chat-bar/index.d.ts +3 -0
- package/lib/modules/chat/components/chat-bar/index.js +143 -0
- package/lib/modules/chat/components/chat-select/index.css +185 -0
- package/lib/modules/chat/components/chat-select/index.d.ts +3 -0
- package/lib/modules/chat/components/chat-select/index.js +234 -0
- package/lib/modules/chat/components/message-list/index.d.ts +4 -0
- package/lib/modules/chat/components/message-list/index.js +648 -0
- package/lib/modules/chat/index.d.ts +13 -5
- package/lib/modules/chat/index.dev.d.ts +0 -1
- package/lib/modules/chat/index.dev.js +71 -72
- package/lib/modules/chat/index.js +45 -22
- package/lib/modules/chat/message-list.js +1 -4
- package/lib/modules/chat/mock.d.ts +1 -1
- package/lib/modules/chat/store.d.ts +17 -162
- package/lib/modules/chat/store.js +95 -964
- package/lib/modules/chat/types.d.ts +70 -0
- package/lib/modules/chat/types.js +17 -0
- package/lib/modules/chat/view.d.ts +10 -0
- package/lib/modules/chat/view.js +368 -0
- package/lib/modules/components/device-control/components/audio-menu/index.js +4 -3
- package/lib/modules/components/device-control/components/microphone/index.js +7 -7
- package/lib/modules/components/device-control/components/video-menu/index.js +2 -1
- package/lib/modules/components/device-control/store.d.ts +11 -12
- package/lib/modules/components/device-control/store.js +46 -50
- package/lib/modules/components/leave-meeting/components/assign-host.d.ts +3 -0
- package/lib/modules/components/leave-meeting/components/assign-host.js +70 -0
- package/lib/modules/components/leave-meeting/components/index.css +125 -0
- package/lib/modules/components/leave-meeting/index.d.ts +4 -0
- package/lib/modules/components/leave-meeting/index.js +147 -0
- package/lib/modules/components/leave-meeting/store.d.ts +31 -0
- package/lib/modules/components/leave-meeting/store.js +290 -0
- package/lib/modules/components/member-window/index.d.ts +1 -1
- package/lib/modules/components/member-window/index.js +12 -10
- package/lib/modules/components/security-menu/index.d.ts +2 -0
- package/lib/modules/components/security-menu/index.js +35 -39
- package/lib/modules/components/tab-frame/index.d.ts +2 -2
- package/lib/modules/components/tab-frame/index.js +24 -7
- package/lib/modules/connection-gateway/components/computer/index.js +4 -4
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.d.ts +1 -1
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.js +2 -1
- package/lib/modules/connection-gateway/components/phone/index.js +4 -3
- package/lib/modules/connection-gateway/enums.d.ts +4 -0
- package/lib/modules/connection-gateway/enums.js +12 -0
- package/lib/modules/connection-gateway/index.d.ts +13 -4
- package/lib/modules/connection-gateway/index.js +25 -15
- package/lib/modules/connection-gateway/store.d.ts +22 -18
- package/lib/modules/connection-gateway/store.js +60 -40
- package/lib/modules/connection-gateway/types.d.ts +4 -0
- package/lib/modules/connection-gateway/types.js +6 -0
- package/lib/modules/connection-gateway/view.js +2 -2
- package/lib/modules/control-bar/components/meeting-details/index.js +25 -28
- package/lib/modules/control-bar/components/more-actions/index.css +18 -0
- package/lib/modules/control-bar/components/more-actions/index.d.ts +1 -5
- package/lib/modules/control-bar/components/more-actions/index.js +48 -11
- package/lib/modules/control-bar/components/share-state-nav/index.d.ts +1 -7
- package/lib/modules/control-bar/components/share-state-nav/index.js +2 -1
- package/lib/modules/control-bar/components/stop-live-streaming/stop-button.d.ts +1 -1
- package/lib/modules/control-bar/components/stop-live-streaming/stop-button.js +2 -2
- package/lib/modules/control-bar/components/transfer-position-icon/index.d.ts +1 -10
- package/lib/modules/control-bar/components/transfer-position-icon/index.js +7 -12
- package/lib/modules/control-bar/enums.d.ts +21 -0
- package/lib/modules/control-bar/enums.js +31 -0
- package/lib/modules/control-bar/index.d.ts +30 -7
- package/lib/modules/control-bar/index.js +46 -29
- package/lib/modules/control-bar/store.d.ts +38 -26
- package/lib/modules/control-bar/store.js +172 -286
- package/lib/modules/control-bar/types.d.ts +20 -0
- package/lib/modules/control-bar/types.js +6 -0
- package/lib/modules/control-bar/view.js +68 -36
- package/lib/modules/device-pretest/index.js +4 -4
- package/lib/modules/device-pretest/settings/beauty.js +2 -1
- package/lib/modules/device-pretest/settings/video-settings-basic.js +1 -1
- package/lib/modules/device-pretest/settings/virtual-background-setting.js +2 -1
- package/lib/modules/device-pretest/store.d.ts +8 -9
- package/lib/modules/device-pretest/store.js +51 -37
- package/lib/modules/dialog/components/chat/electron.d.ts +1 -1
- package/lib/modules/dialog/components/chat/electron.js +19 -10
- package/lib/modules/dialog/components/chat/index.js +2 -2
- package/lib/modules/dialog/components/confirm/index.js +1 -1
- package/lib/modules/dialog/components/connection-gateway/electron.d.ts +1 -1
- package/lib/modules/dialog/components/connection-gateway/electron.js +8 -10
- package/lib/modules/dialog/components/connection-gateway/index.d.ts +3 -1
- package/lib/modules/dialog/components/connection-gateway/index.js +20 -7
- package/lib/modules/dialog/components/connection-gateway/tabs.d.ts +6 -0
- package/lib/modules/dialog/components/connection-gateway/tabs.js +44 -0
- package/lib/modules/dialog/components/control-bar/index.d.ts +5 -1
- package/lib/modules/dialog/components/control-bar/index.js +122 -9
- package/lib/modules/dialog/components/device-setting/electron.js +6 -2
- package/lib/modules/dialog/components/device-setting/index.js +2 -2
- package/lib/modules/dialog/components/dialog-container/component/body.js +75 -0
- package/lib/modules/{components → dialog/components}/dialog-container/index.css +6 -3
- package/lib/modules/{components → dialog/components}/dialog-container/index.d.ts +7 -2
- package/lib/modules/{components → dialog/components}/dialog-container/index.js +27 -25
- package/lib/modules/dialog/components/interpreter/electron.js +37 -0
- package/lib/modules/dialog/components/{Interpreter → interpreter}/index.js +2 -2
- package/lib/modules/dialog/components/invite/index.js +32 -7
- package/lib/modules/dialog/components/live-streaming/index.js +9 -5
- package/lib/modules/dialog/components/participant/electron.js +11 -5
- package/lib/modules/dialog/components/participant/index.js +4 -3
- package/lib/modules/dialog/components/remove-admit-waiting-room/electron.js +6 -3
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.d.ts +1 -1
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.js +14 -4
- package/lib/modules/dialog/components/share-screen-selection/index.js +9 -5
- package/lib/modules/dialog/components/system-preference/electron.js +1 -1
- package/lib/modules/dialog/components/system-preference/index.js +0 -2
- package/lib/modules/dialog/components/toast/index.js +1 -1
- package/lib/modules/dialog/components/video-window/index.d.ts +2 -0
- package/lib/modules/dialog/components/video-window/index.js +148 -0
- package/lib/modules/dialog/components/whiteboard/index.js +2 -2
- package/lib/modules/dialog/dialogs.d.ts +2 -5
- package/lib/modules/dialog/dialogs.js +2 -157
- package/lib/modules/dialog/hooks/useElectron.d.ts +3 -25
- package/lib/modules/dialog/hooks/useElectron.js +90 -36
- package/lib/modules/dialog/index.d.ts +30 -4
- package/lib/modules/dialog/index.js +61 -7
- package/lib/modules/dialog/store.d.ts +46 -12
- package/lib/modules/dialog/store.js +121 -68
- package/lib/modules/dialog/types/index.d.ts +14 -3
- package/lib/modules/dialog/view.js +2 -1
- package/lib/modules/event-confirm/index.css +1 -1
- package/lib/modules/event-confirm/index.d.ts +13 -6
- package/lib/modules/event-confirm/index.js +28 -11
- package/lib/modules/event-confirm/store.d.ts +9 -3
- package/lib/modules/event-confirm/store.js +16 -10
- package/lib/modules/event-confirm/view.js +7 -6
- package/lib/modules/event-toast/index.d.ts +7 -6
- package/lib/modules/event-toast/index.js +19 -8
- package/lib/modules/event-toast/store.d.ts +8 -3
- package/lib/modules/event-toast/store.js +15 -8
- package/lib/modules/event-toast/view.js +2 -1
- package/lib/modules/{Interpreter → interpreter}/action/delete-btn/index.d.ts +2 -2
- package/lib/modules/{Interpreter → interpreter}/action/edit-btn/index.js +2 -2
- package/lib/modules/{Interpreter → interpreter}/action/switch-btn/index.js +5 -5
- package/lib/modules/{Interpreter → interpreter}/constant.d.ts +0 -4
- package/lib/modules/{Interpreter → interpreter}/constant.js +3 -45
- package/lib/modules/{Interpreter → interpreter}/dialog-content/index.d.ts +2 -2
- package/lib/modules/{Interpreter → interpreter}/dialog-content/index.js +4 -4
- package/lib/modules/interpreter/index.d.ts +15 -0
- package/lib/modules/{Interpreter → interpreter}/index.js +23 -8
- package/lib/modules/{Interpreter → interpreter}/interpreter-list/index.js +2 -2
- package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/index.d.ts +2 -2
- package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/index.js +5 -8
- package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/index.js +0 -2
- package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-user/index.d.ts +2 -2
- package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-user/index.js +14 -18
- package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/index.d.ts +2 -2
- package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/index.js +2 -2
- package/lib/modules/interpreter/store.d.ts +50 -0
- package/lib/modules/interpreter/store.js +584 -0
- package/lib/modules/interpreter/type.d.ts +24 -0
- package/lib/modules/interpreter/type.js +12 -0
- package/lib/modules/{Interpreter → interpreter}/utils.d.ts +1 -5
- package/lib/modules/interpreter/utils.js +80 -0
- package/lib/modules/{Interpreter → interpreter}/view.js +19 -3
- package/lib/modules/invite/components/error-tips.d.ts +4 -0
- package/lib/modules/invite/components/error-tips.js +18 -0
- package/lib/modules/invite/components/pstn-invite.d.ts +2 -0
- package/lib/modules/invite/components/pstn-invite.js +288 -0
- package/lib/modules/invite/components/voip-invite.d.ts +1 -0
- package/lib/modules/invite/components/voip-invite.js +276 -0
- package/lib/modules/invite/enums.d.ts +22 -0
- package/lib/modules/invite/enums.js +34 -0
- package/lib/modules/invite/index.d.ts +7 -8
- package/lib/modules/invite/index.js +17 -15
- package/lib/modules/invite/store.d.ts +13 -26
- package/lib/modules/invite/store.js +62 -26
- package/lib/modules/invite/types.d.ts +14 -0
- package/lib/modules/invite/types.js +6 -0
- package/lib/modules/invite/view.d.ts +0 -4
- package/lib/modules/invite/view.js +7 -11
- package/lib/modules/invite/voip-invite.js +3 -3
- package/lib/modules/layout/components/Aside.js +34 -17
- package/lib/modules/layout/components/Carousel.js +3 -2
- package/lib/modules/layout/components/Gallery.js +3 -3
- package/lib/modules/layout/components/Layout.js +4 -7
- package/lib/modules/layout/components/index.d.ts +1 -1
- package/lib/modules/layout/components/index.js +4 -5
- package/lib/modules/layout/components/who-is-speaking.d.ts +2 -0
- package/lib/modules/layout/components/who-is-speaking.js +60 -0
- package/lib/modules/layout/index.d.ts +26 -4
- package/lib/modules/layout/index.dev.d.ts +0 -1
- package/lib/modules/layout/index.dev.js +312 -386
- package/lib/modules/layout/index.js +25 -10
- package/lib/modules/layout/member-window/index.css +9 -22
- package/lib/modules/layout/member-window/index.d.ts +1 -1
- package/lib/modules/layout/member-window/index.js +26 -27
- package/lib/modules/layout/store.d.ts +61 -71
- package/lib/modules/layout/store.js +311 -576
- package/lib/modules/layout/type.js +2 -0
- package/lib/modules/layout/video-window-datasource.js +0 -4
- package/lib/modules/layout/view.d.ts +2 -0
- package/lib/modules/layout/view.js +127 -2
- package/lib/modules/live-streaming/index.d.ts +15 -7
- package/lib/modules/live-streaming/index.dev.js +13 -13
- package/lib/modules/live-streaming/index.js +20 -15
- package/lib/modules/live-streaming/store.d.ts +21 -14
- package/lib/modules/live-streaming/store.js +83 -144
- package/lib/modules/live-streaming/view.js +2 -2
- package/lib/modules/notification/index.d.ts +9 -11
- package/lib/modules/notification/index.js +21 -14
- package/lib/modules/notification/interpreter-status/index.js +3 -3
- package/lib/modules/notification/store.d.ts +5 -11
- package/lib/modules/notification/store.js +12 -62
- package/lib/modules/notification/view.d.ts +5 -3
- package/lib/modules/notification/view.js +8 -5
- package/lib/modules/offscreen-pulling/index.js +1 -2
- package/lib/modules/participant/attendee/index.css +51 -0
- package/lib/modules/participant/attendee/index.d.ts +5 -8
- package/lib/modules/participant/attendee/index.js +15 -64
- package/lib/modules/participant/components/attendee/components/microphone-indicator/index.d.ts +6 -0
- package/lib/modules/participant/components/attendee/components/microphone-indicator/index.js +28 -0
- package/lib/modules/participant/components/attendee/components/user-avatar/index.d.ts +7 -0
- package/lib/modules/participant/components/attendee/components/user-avatar/index.js +39 -0
- package/lib/modules/participant/components/attendee/index.css +69 -0
- package/lib/modules/participant/components/attendee/index.d.ts +4 -0
- package/lib/modules/participant/components/attendee/index.js +334 -0
- package/lib/modules/participant/components/can-moveable/index.d.ts +1 -0
- package/lib/modules/participant/components/can-moveable/index.js +68 -0
- package/lib/modules/participant/components/drop-menu/index.js +8 -11
- package/lib/modules/participant/components/footer/buttons.d.ts +2 -3
- package/lib/modules/participant/components/footer/buttons.js +2 -3
- package/lib/modules/participant/components/footer/index.js +2 -2
- package/lib/modules/participant/components/mute-all/index.d.ts +3 -4
- package/lib/modules/participant/components/mute-all/index.js +31 -44
- package/lib/modules/participant/components/operate-waitingroom-member/index.d.ts +2 -0
- package/lib/modules/participant/components/operate-waitingroom-member/index.js +48 -0
- package/lib/modules/participant/components/participants/index.js +27 -51
- package/lib/modules/participant/components/user-action/index.d.ts +17 -0
- package/lib/modules/participant/components/user-action/index.js +167 -0
- package/lib/modules/participant/index.d.ts +34 -7
- package/lib/modules/participant/index.dev.d.ts +0 -1
- package/lib/modules/participant/index.dev.js +87 -116
- package/lib/modules/participant/index.js +39 -15
- package/lib/modules/participant/member-list-data-source.d.ts +4 -1
- package/lib/modules/participant/member-list-data-source.js +57 -33
- package/lib/modules/participant/store.d.ts +58 -25
- package/lib/modules/participant/store.js +321 -303
- package/lib/modules/participant/type.d.ts +45 -1
- package/lib/modules/participant/type.js +15 -1
- package/lib/modules/pc-audio-connect/index.css +12 -0
- package/lib/modules/pc-audio-connect/index.d.ts +22 -0
- package/lib/modules/pc-audio-connect/index.js +68 -0
- package/lib/modules/pc-audio-connect/store.d.ts +46 -0
- package/lib/modules/pc-audio-connect/store.js +300 -0
- package/lib/modules/pc-audio-connect/types.d.ts +0 -0
- package/lib/modules/pc-audio-connect/types.js +1 -0
- package/lib/modules/pc-audio-connect/view.d.ts +3 -0
- package/lib/modules/pc-audio-connect/view.js +66 -0
- package/lib/modules/phone-audio-connect/components/callinfo/index.css +36 -0
- package/lib/modules/phone-audio-connect/components/callinfo/index.d.ts +10 -0
- package/lib/modules/phone-audio-connect/components/callinfo/index.js +78 -0
- package/lib/modules/phone-audio-connect/components/calling/index.css +72 -0
- package/lib/modules/phone-audio-connect/components/calling/index.d.ts +7 -0
- package/lib/modules/phone-audio-connect/components/calling/index.js +58 -0
- package/lib/modules/phone-audio-connect/components/remeber/index.css +10 -0
- package/lib/modules/phone-audio-connect/components/remeber/index.d.ts +5 -0
- package/lib/modules/phone-audio-connect/components/remeber/index.js +24 -0
- package/lib/modules/phone-audio-connect/components/useing/index.css +46 -0
- package/lib/modules/phone-audio-connect/components/useing/index.d.ts +3 -0
- package/lib/modules/phone-audio-connect/components/useing/index.js +36 -0
- package/lib/modules/phone-audio-connect/enums.d.ts +4 -0
- package/lib/modules/phone-audio-connect/enums.js +12 -0
- package/lib/modules/phone-audio-connect/index.css +56 -0
- package/lib/modules/phone-audio-connect/index.d.ts +16 -0
- package/lib/modules/phone-audio-connect/index.js +63 -0
- package/lib/modules/phone-audio-connect/store.d.ts +46 -0
- package/lib/modules/phone-audio-connect/store.js +317 -0
- package/lib/modules/phone-audio-connect/types.d.ts +4 -0
- package/lib/modules/phone-audio-connect/types.js +6 -0
- package/lib/modules/phone-audio-connect/view.d.ts +3 -0
- package/lib/modules/phone-audio-connect/view.js +185 -0
- package/lib/modules/setting/audio-settings/audio-settings.js +6 -6
- package/lib/modules/setting/index.d.ts +25 -5
- package/lib/modules/setting/index.dev.d.ts +0 -1
- package/lib/modules/setting/index.dev.js +120 -81
- package/lib/modules/setting/index.js +35 -9
- package/lib/modules/setting/minutes-settings/minutes-settings.js +3 -2
- package/lib/modules/setting/state/index.js +3 -7
- package/lib/modules/setting/store.d.ts +48 -14
- package/lib/modules/setting/store.js +105 -118
- package/lib/modules/setting/translate-settings/translate-settings.js +4 -4
- package/lib/modules/setting/video-settings/video-settings-basic.js +19 -22
- package/lib/modules/setting/view.js +6 -35
- package/lib/modules/share-screen/components/selection/index.css +70 -0
- package/lib/modules/share-screen/components/selection/index.d.ts +2 -0
- package/lib/modules/share-screen/components/selection/index.js +267 -0
- package/lib/modules/share-screen/components/share-state-bar/index.css +76 -0
- package/lib/modules/share-screen/components/share-state-bar/index.d.ts +4 -0
- package/lib/modules/share-screen/components/share-state-bar/index.js +98 -0
- package/lib/modules/share-screen/index.d.ts +15 -18
- package/lib/modules/share-screen/index.dev.d.ts +0 -1
- package/lib/modules/share-screen/index.dev.js +90 -91
- package/lib/modules/share-screen/index.js +22 -22
- package/lib/modules/share-screen/selection/index.css +0 -2
- package/lib/modules/share-screen/selection/index.js +97 -83
- package/lib/modules/share-screen/store.d.ts +36 -32
- package/lib/modules/share-screen/store.js +249 -222
- package/lib/modules/share-screen/types.d.ts +27 -0
- package/lib/modules/share-screen/types.js +6 -0
- package/lib/modules/share-screen/view.js +1 -1
- package/lib/modules/sound-effect/index.d.ts +9 -4
- package/lib/modules/sound-effect/index.js +72 -41
- package/lib/modules/sound-effect/sound-effect-player.js +1 -1
- package/lib/modules/state-bar/index.d.ts +16 -13
- package/lib/modules/state-bar/index.dev.d.ts +0 -1
- package/lib/modules/state-bar/index.dev.js +78 -83
- package/lib/modules/state-bar/index.js +23 -7
- package/lib/modules/state-bar/layout-config.js +2 -1
- package/lib/modules/state-bar/live-streaming-state.js +0 -1
- package/lib/modules/state-bar/meeting-details.js +31 -24
- package/lib/modules/state-bar/meeting-network-state.js +1 -1
- package/lib/modules/state-bar/store.d.ts +20 -10
- package/lib/modules/state-bar/store.js +84 -88
- package/lib/modules/state-bar/view.js +2 -2
- package/lib/modules/video-window/deviceState/index.d.ts +2 -2
- package/lib/modules/video-window/deviceState/index.js +4 -6
- package/lib/modules/video-window/index.css +1 -4
- package/lib/modules/video-window/index.d.ts +33 -6
- package/lib/modules/video-window/index.js +63 -15
- package/lib/modules/video-window/members/index.css +1 -0
- package/lib/modules/video-window/members/index.js +27 -12
- package/lib/modules/video-window/store.d.ts +58 -27
- package/lib/modules/video-window/store.js +166 -165
- package/lib/modules/video-window/topControl/index.js +0 -2
- package/lib/modules/waiting-room-layout/index.d.ts +11 -4
- package/lib/modules/waiting-room-layout/index.js +26 -13
- package/lib/modules/waiting-room-layout/store.d.ts +6 -3
- package/lib/modules/waiting-room-layout/store.js +17 -15
- package/lib/modules/whiteboard/components/control-bar/store.d.ts +4 -4
- package/lib/modules/whiteboard/components/control-bar/store.js +8 -8
- package/lib/modules/whiteboard/components/switch-theme/index.js +0 -2
- package/lib/modules/whiteboard/components/switch-theme/item.js +2 -1
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.js +2 -1
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.js +2 -1
- package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.js +1 -1
- package/lib/modules/whiteboard/components/toolbar/components/move-handle.js +0 -2
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +2 -1
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +2 -1
- package/lib/modules/whiteboard/components/toolbar/hooks/index.js +0 -2
- package/lib/modules/whiteboard/components/toolbar/index.js +1 -4
- package/lib/modules/whiteboard/index.d.ts +20 -14
- package/lib/modules/whiteboard/index.js +250 -227
- package/lib/modules/whiteboard/view.d.ts +2 -0
- package/lib/modules/whiteboard/view.js +49 -0
- package/lib/plugins/browser-runtime-plugin.js +5 -1
- package/lib/providers/chat-provider.d.ts +71 -0
- package/lib/providers/chat-provider.js +91 -0
- package/lib/providers/device-privilege-provider.d.ts +52 -6
- package/lib/providers/device-privilege-provider.js +212 -185
- package/lib/providers/device-provider.d.ts +203 -45
- package/lib/providers/device-provider.js +486 -403
- package/lib/providers/device-stream-provider.d.ts +12 -13
- package/lib/providers/device-stream-provider.js +86 -194
- package/lib/providers/dialog-provider.d.ts +135 -0
- package/lib/providers/dialog-provider.js +202 -0
- package/lib/providers/event-provider.d.ts +1 -21
- package/lib/providers/event-provider.js +19 -59
- package/lib/providers/interpreter-provider.d.ts +218 -7
- package/lib/providers/interpreter-provider.js +1069 -81
- package/lib/providers/local-storage-provider.d.ts +9 -0
- package/lib/providers/message-provider.d.ts +69 -0
- package/lib/providers/message-provider.js +96 -0
- package/lib/providers/monitor-provider.d.ts +5 -0
- package/lib/providers/phone-audio-provider.d.ts +131 -0
- package/lib/providers/phone-audio-provider.js +512 -0
- package/lib/providers/privilege-provider.d.ts +325 -12
- package/lib/providers/privilege-provider.js +111 -299
- package/lib/providers/renderer-provider.d.ts +46 -4
- package/lib/providers/renderer-provider.js +57 -61
- package/lib/providers/room-provider.d.ts +113 -6
- package/lib/providers/room-provider.js +665 -88
- package/lib/providers/screen-share-provider.d.ts +65 -0
- package/lib/providers/screen-share-provider.js +237 -0
- package/lib/providers/session-provider.d.ts +30 -0
- package/lib/runtime.d.ts +2 -0
- package/lib/scenes/main-scene.d.ts +41 -3
- package/lib/scenes/main-scene.js +407 -248
- package/lib/scenes/waiting-scene.d.ts +34 -4
- package/lib/scenes/waiting-scene.js +163 -56
- package/lib/shared-data-source/chat-data.d.ts +14 -0
- package/lib/{common/remote-renderer.js → shared-data-source/chat-data.js} +67 -77
- package/lib/shared-data-source/device-privilege-data.d.ts +8 -0
- package/lib/shared-data-source/device-privilege-data.js +25 -0
- package/lib/shared-data-source/interpreter.d.ts +63 -0
- package/lib/shared-data-source/interpreter.js +246 -0
- package/lib/shared-data-source/layout-data.d.ts +29 -0
- package/lib/shared-data-source/layout-data.js +178 -0
- package/lib/shared-data-source/pin-data.d.ts +9 -0
- package/lib/shared-data-source/pin-data.js +24 -0
- package/lib/shared-data-source/setting.d.ts +32 -0
- package/lib/shared-data-source/setting.js +151 -0
- package/lib/shared-data-source/speaker-spotlight.d.ts +5 -0
- package/lib/shared-data-source/speaker-spotlight.js +15 -0
- package/lib/shared-data-source/video-window.d.ts +161 -0
- package/lib/shared-data-source/video-window.js +1198 -0
- package/lib/shared-data-source/waiting-room.d.ts +19 -0
- package/lib/shared-data-source/waiting-room.js +157 -0
- package/lib/translations/enUS.d.ts +48 -17
- package/lib/translations/enUS.js +67 -35
- package/lib/translations/zhCN.d.ts +48 -17
- package/lib/translations/zhCN.js +68 -36
- package/lib/type.d.ts +270 -25
- package/lib/type.js +81 -2
- package/lib/ui-manager.d.ts +20 -16
- package/lib/ui-manager.js +59 -795
- package/lib/ui-scene.d.ts +6 -1
- package/lib/ui-scene.js +371 -43
- package/lib/utilities/constant.d.ts +63 -86
- package/lib/utilities/constant.js +158 -175
- package/lib/utilities/copyText.js +8 -7
- package/lib/utilities/meeting-detail.d.ts +2 -0
- package/lib/utilities/meeting-detail.js +39 -0
- package/lib/utilities/privilege.d.ts +4 -0
- package/lib/utilities/privilege.js +29 -0
- package/lib/utilities/renderer-event.js +0 -2
- package/lib/utilities/renderer.js +0 -1
- package/lib/utilities/setting-config-storage.d.ts +12 -0
- package/lib/utilities/setting-config-storage.js +100 -0
- package/lib/utilities/tools.d.ts +35 -3
- package/lib/utilities/tools.js +103 -4
- package/lib/utilities/video-track-render-context.d.ts +3 -4
- package/lib/utilities/video-track-render-context.js +1 -1
- package/package.json +10 -5
- package/public/assets/full-screen-error-boundary-img.png +0 -0
- package/public/assets/leave-meeting.png +0 -0
- package/public/index.html +24 -14
- package/lib/ scenes/base.d.ts +0 -10
- package/lib/ scenes/base.js +0 -75
- package/lib/ scenes/main-scene.d.ts +0 -43
- package/lib/ scenes/main-scene.js +0 -368
- package/lib/ scenes/waiting-scene.d.ts +0 -31
- package/lib/ scenes/waiting-scene.js +0 -119
- package/lib/common/remote-renderer.d.ts +0 -15
- package/lib/common/type.d.ts +0 -8
- package/lib/electron/bootstrap.d.ts +0 -1
- package/lib/electron/bootstrap.js +0 -56
- package/lib/electron/dev.d.ts +0 -1
- package/lib/electron/dev.js +0 -51
- package/lib/error-fallback.css +0 -62
- package/lib/error-fallback.d.ts +0 -2
- package/lib/error-fallback.js +0 -19
- package/lib/modules/Interpreter/context.d.ts +0 -2
- package/lib/modules/Interpreter/context.js +0 -9
- package/lib/modules/Interpreter/index.d.ts +0 -8
- package/lib/modules/Interpreter/store.d.ts +0 -111
- package/lib/modules/Interpreter/store.js +0 -1601
- package/lib/modules/Interpreter/type.d.ts +0 -41
- package/lib/modules/Interpreter/type.js +0 -20
- package/lib/modules/Interpreter/utils.js +0 -139
- package/lib/modules/action-bar/components/device/index.css +0 -162
- package/lib/modules/action-bar/components/device/index.d.ts +0 -8
- package/lib/modules/action-bar/components/device/index.js +0 -611
- package/lib/modules/action-bar/components/item.d.ts +0 -27
- package/lib/modules/action-bar/trigger-input-language-room/index.d.ts +0 -15
- package/lib/modules/action-bar/trigger-input-language-room/index.js +0 -220
- package/lib/modules/action-bar/trigger-output-language-room/constant.d.ts +0 -10
- package/lib/modules/action-bar/trigger-output-language-room/constant.js +0 -8
- package/lib/modules/action-bar/trigger-output-language-room/guide-tooltip/index.d.ts +0 -14
- package/lib/modules/action-bar/trigger-output-language-room/index.d.ts +0 -4
- package/lib/modules/action-bar/trigger-output-language-room/index.js +0 -98
- package/lib/modules/action-bar/trigger-output-language-room/trigger-language-room.d.ts +0 -5
- package/lib/modules/action-bar/trigger-output-language-room/trigger-language-room.js +0 -66
- package/lib/modules/action-bar/trigger-output-language-room/trigger-main-room.d.ts +0 -5
- package/lib/modules/action-bar/trigger-output-language-room/trigger-main-room.js +0 -36
- package/lib/modules/action-bar/trigger-output-language-room/useChangeOutputRoomTool.d.ts +0 -12
- package/lib/modules/action-bar/trigger-output-language-room/useChangeOutputRoomTool.js +0 -138
- package/lib/modules/components/dialog-container/component/body.js +0 -46
- package/lib/modules/dialog/components/Interpreter/electron.js +0 -31
- package/lib/modules/dialog/components/Interpreter/user-queue/index.css +0 -36
- package/lib/modules/dialog/components/Interpreter/user-queue/index.d.ts +0 -3
- package/lib/modules/dialog/components/Interpreter/user-queue/index.js +0 -47
- package/lib/modules/notification/context.d.ts +0 -2
- package/lib/modules/notification/context.js +0 -9
- package/lib/modules/participant/attendee/participants-more-action.d.ts +0 -18
- package/lib/modules/participant/attendee/participants-more-action.js +0 -278
- package/lib/scenes/base.d.ts +0 -10
- package/lib/scenes/base.js +0 -75
- package/lib/ui-node.d.ts +0 -25
- package/lib/ui-node.js +0 -156
- /package/lib/modules/action-bar/{notification-bar → components/notification-bar/assets}/dome.png +0 -0
- /package/lib/modules/action-bar/{notification-bar → components/notification-bar/assets}/fcr_translateswitch.png +0 -0
- /package/lib/modules/action-bar/{notification-bar → components/notification-bar}/components/interpreter/index.css +0 -0
- /package/lib/modules/action-bar/{notification-bar → components/notification-bar}/components/interpreter/index.d.ts +0 -0
- /package/lib/modules/action-bar/{notification-bar → components/notification-bar}/components/virtual-image/index.css +0 -0
- /package/lib/modules/action-bar/{notification-bar → components/notification-bar}/components/virtual-image/index.d.ts +0 -0
- /package/lib/modules/action-bar/{notification-bar → components/notification-bar}/index.css +0 -0
- /package/lib/modules/action-bar/{notification-bar → components/notification-bar}/index.d.ts +0 -0
- /package/lib/modules/action-bar/{trigger-input-language-room → components/trigger-output-language}/fcr_translateswitch.png +0 -0
- /package/lib/modules/action-bar/{trigger-input-language-room → components/trigger-output-language}/index.css +0 -0
- /package/lib/modules/action-bar/{trigger-output-language-room → components/trigger-subscribe-language}/guide-tooltip/index.css +0 -0
- /package/lib/modules/action-bar/{Interpreter → interpreter}/index.d.ts +0 -0
- /package/lib/modules/action-bar/{Interpreter → interpreter}/index.js +0 -0
- /package/lib/{common/type.js → modules/action-bar/types.js} +0 -0
- /package/lib/modules/{components → dialog/components}/dialog-container/component/body.d.ts +0 -0
- /package/lib/modules/dialog/components/{Interpreter → interpreter}/electron.d.ts +0 -0
- /package/lib/modules/dialog/components/{Interpreter → interpreter}/index.css +0 -0
- /package/lib/modules/dialog/components/{Interpreter → interpreter}/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/action/add-btn/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/action/add-btn/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/action/add-btn/index.js +0 -0
- /package/lib/modules/{Interpreter → interpreter}/action/delete-btn/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/action/delete-btn/index.js +0 -0
- /package/lib/modules/{Interpreter → interpreter}/action/edit-btn/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/action/edit-btn/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/action/switch-btn/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/action/switch-btn/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/add-button/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/add-button/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/add-button/index.js +0 -0
- /package/lib/modules/{Interpreter → interpreter}/config.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/config.js +0 -0
- /package/lib/modules/{Interpreter → interpreter}/dialog-content/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/footer/components/interpreter-btn/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/footer/components/interpreter-btn/index.js +0 -0
- /package/lib/modules/{Interpreter → interpreter}/footer/components/set-btn/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/footer/components/set-btn/index.js +0 -0
- /package/lib/modules/{Interpreter → interpreter}/footer/components/tooltip-wrapper/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/footer/components/tooltip-wrapper/index.js +0 -0
- /package/lib/modules/{Interpreter → interpreter}/footer/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/footer/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/footer/index.js +0 -0
- /package/lib/modules/{Interpreter → interpreter}/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ar.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_cn.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_de.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_en.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_es.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_fr.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_hi.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_id.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_it.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_jp.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ko.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ms.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_pt.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ru.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_th.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_tr.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_vi.png +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-user/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-user/option-Item.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/components/pick-user/option-Item.js +0 -0
- /package/lib/modules/{Interpreter → interpreter}/interpreter-list/interpreter-item/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/loading-wrapper/index.css +0 -0
- /package/lib/modules/{Interpreter → interpreter}/loading-wrapper/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/loading-wrapper/index.js +0 -0
- /package/lib/modules/{Interpreter → interpreter}/tooltip-wrapper/index.d.ts +0 -0
- /package/lib/modules/{Interpreter → interpreter}/tooltip-wrapper/index.js +0 -0
- /package/lib/modules/{Interpreter → interpreter}/view.d.ts +0 -0
|
@@ -24,7 +24,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
24
24
|
});
|
|
25
25
|
exports["default"] = exports.StoreContext = void 0;
|
|
26
26
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
27
|
-
require("core-js/modules/es.array.concat.js");
|
|
28
27
|
require("core-js/modules/es.array.filter.js");
|
|
29
28
|
require("core-js/modules/es.array.find.js");
|
|
30
29
|
require("core-js/modules/es.array.for-each.js");
|
|
@@ -42,11 +41,6 @@ require("core-js/modules/es.set.js");
|
|
|
42
41
|
require("core-js/modules/es.string.includes.js");
|
|
43
42
|
require("core-js/modules/es.string.iterator.js");
|
|
44
43
|
require("core-js/modules/es.weak-map.js");
|
|
45
|
-
require("core-js/modules/esnext.async-iterator.filter.js");
|
|
46
|
-
require("core-js/modules/esnext.async-iterator.find.js");
|
|
47
|
-
require("core-js/modules/esnext.async-iterator.for-each.js");
|
|
48
|
-
require("core-js/modules/esnext.async-iterator.map.js");
|
|
49
|
-
require("core-js/modules/esnext.async-iterator.some.js");
|
|
50
44
|
require("core-js/modules/esnext.iterator.constructor.js");
|
|
51
45
|
require("core-js/modules/esnext.iterator.filter.js");
|
|
52
46
|
require("core-js/modules/esnext.iterator.find.js");
|
|
@@ -94,6 +88,7 @@ require("core-js/modules/esnext.weak-map.delete-all.js");
|
|
|
94
88
|
require("core-js/modules/esnext.weak-map.emplace.js");
|
|
95
89
|
require("core-js/modules/web.dom-collections.for-each.js");
|
|
96
90
|
require("core-js/modules/web.dom-collections.iterator.js");
|
|
91
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
97
92
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
98
93
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
99
94
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
@@ -101,11 +96,11 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
|
|
|
101
96
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
102
97
|
var _fcrCore = require("fcr-core");
|
|
103
98
|
var _type = require("fcr-core/lib/type");
|
|
104
|
-
var _constant = require("../../utilities/constant");
|
|
105
99
|
var _logger = require("agora-foundation/lib/logger");
|
|
106
100
|
var _type2 = require("agora-rte-sdk/lib/type");
|
|
107
101
|
var _attendee = require("agora-ui-foundation/lib/components/participants/attendee");
|
|
108
102
|
var _mobx = require("mobx");
|
|
103
|
+
var _constant = require("../../utilities/constant");
|
|
109
104
|
var _decorator = require("agora-foundation/lib/decorator");
|
|
110
105
|
var _mobxUtils = require("mobx-utils");
|
|
111
106
|
var _memberListDataSource = require("./member-list-data-source");
|
|
@@ -113,13 +108,19 @@ var _type3 = require("./type");
|
|
|
113
108
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
114
109
|
var _i18n2 = require("../../hooks/i18n");
|
|
115
110
|
var _type4 = require("fcr-core/lib/room-control/user-control/type");
|
|
111
|
+
var _type5 = require("fcr-core/lib/room-control/type");
|
|
116
112
|
var _react = require("react");
|
|
117
113
|
var _rename = _interopRequireDefault(require("./components/rename"));
|
|
118
|
-
var
|
|
114
|
+
var _type6 = require("fcr-core/lib/room-control/privilege-control/type");
|
|
119
115
|
var _env = require("agora-foundation/lib/utilities/env");
|
|
116
|
+
var _operateWaitingroomMember = require("./components/operate-waitingroom-member");
|
|
117
|
+
var _muteAll = require("./components/mute-all");
|
|
120
118
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
121
119
|
var _ParticipantStore;
|
|
122
|
-
var _initProto, _init__mainList, _init__participantsWindowActive, _init_currentPerspectiveType, _init_audioVolumeMap, _init_enableParticipantsJoinWithMute, _init_searchText, _init_currentModal, _init_localUserRole,
|
|
120
|
+
var _initProto, _init__mainList, _init__isChecked, _init__participantsWindowActive, _init_currentPerspectiveType, _init_audioVolumeMap, _init_enableParticipantsJoinWithMute, _init_searchText, _init_currentModal, _init_localUserRole, _init_mergeConfirmDialog, _init_mergeUserId, _init_activeTab, _init_interpreterInputLanguageList, _init_newName, _init_refreshList, _init_allowUnmute, _init_joinWithMuteAudio, _setCurrentModalDecs, _openParticipantsWindowDecs, _setParticipantsWindowActiveDecs, _handlerSearchUserDecs, _closeRemoveAdmitWaitingRoomDialogDecs, _openRemoveAdmitWaitingRoomDialogDecs, _setMuteAllDialogValueDecs, _openMuteAllDialogDecs, _handlerUserActionDecs, _closeChangeNameDialogDecs, _moveToWaitingRoomByUserIdsDecs, _removeWaitingRoomUserDecs, _kickOutWaitingRoomAllMemberDecs, _moveToMainRoomAllMemberDecs, _handlerRoomControlActionDecs, _handleEventDecs, _moveToMainRoomByUserIdsDecs, _handleActiveTabDecs, _initWaitingRoomUserListDecs, _kickOutUserDecs, _setAsAttendeeDecs, _onAudioVolumeUpdatedDecs, _updateUserBoardStateDecs, _handleRemoteUserJoinedDecs, _handleRemoteUserLeftDecs, _handleRemoteWaitingUserJoinedDecs, _handleRemoteWaitingUserLeftDecs, _handleUserInfoUpdatedDecs, _initUserListDecs, _refreshCurrentPerspectiveTypeDecs, _onPeerSessionReceivedDecs, _updateLocalUserRoleDecs, _getOutputLanguageDecs, _ref;
|
|
121
|
+
/**
|
|
122
|
+
* seconds
|
|
123
|
+
*/
|
|
123
124
|
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
125
|
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; }
|
|
125
126
|
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
@@ -132,9 +133,6 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
132
133
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
133
134
|
function _setFunctionName(e, t, n) { "symbol" == _typeof(t) && (t = (t = t.description) ? "[" + t + "]" : ""); try { Object.defineProperty(e, "name", { configurable: !0, value: n ? n + " " + t : t }); } catch (e) {} return e; }
|
|
134
135
|
function _checkInRHS(e) { if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (null !== e ? _typeof(e) : "null")); return e; }
|
|
135
|
-
/**
|
|
136
|
-
* seconds
|
|
137
|
-
*/
|
|
138
136
|
var SESSION_DURATION = 30;
|
|
139
137
|
var _A = /*#__PURE__*/new WeakMap();
|
|
140
138
|
var _B = /*#__PURE__*/new WeakMap();
|
|
@@ -153,20 +151,26 @@ var _N = /*#__PURE__*/new WeakMap();
|
|
|
153
151
|
var _O = /*#__PURE__*/new WeakMap();
|
|
154
152
|
var _P = /*#__PURE__*/new WeakMap();
|
|
155
153
|
var _Q = /*#__PURE__*/new WeakMap();
|
|
156
|
-
|
|
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");
|
|
154
|
+
_ref = (_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], _setMuteAllDialogValueDecs = [_mobx.action, _mobx.action.bound], _openMuteAllDialogDecs = [_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], _initWaitingRoomUserListDecs = [_mobx.action, _mobx.action.bound], _kickOutUserDecs = [_mobx.action, _mobx.action.bound], _setAsAttendeeDecs = [_mobx.action, _mobx.action.bound], _onAudioVolumeUpdatedDecs = [_mobx.action, _mobx.action.bound], _updateUserBoardStateDecs = [_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");
|
|
160
155
|
var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
161
156
|
function ParticipantStore(_ref2) {
|
|
162
|
-
var _this = this
|
|
157
|
+
var _this = this,
|
|
158
|
+
_this$_roomStore;
|
|
163
159
|
var _roomControl = _ref2.roomControl,
|
|
164
160
|
securityStore = _ref2.securityStore,
|
|
165
161
|
uiEventStore = _ref2.uiEventStore,
|
|
166
162
|
deviceStore = _ref2.deviceStore,
|
|
167
163
|
deviceStreamStore = _ref2.deviceStreamStore,
|
|
168
164
|
roomStore = _ref2.roomStore,
|
|
169
|
-
|
|
165
|
+
sessionProvider = _ref2.sessionProvider,
|
|
166
|
+
sharedSpeakerSpotlightDataSource = _ref2.sharedSpeakerSpotlightDataSource,
|
|
167
|
+
sharedPinDataSource = _ref2.sharedPinDataSource,
|
|
168
|
+
sharedLayoutDataSource = _ref2.sharedLayoutDataSource,
|
|
169
|
+
sharedInterpreterDataSource = _ref2.sharedInterpreterDataSource,
|
|
170
|
+
sharedSettingDataSource = _ref2.sharedSettingDataSource,
|
|
171
|
+
sharedWaitingRoomDataSource = _ref2.sharedWaitingRoomDataSource,
|
|
172
|
+
chatProvider = _ref2.chatProvider,
|
|
173
|
+
sharedVideoWindowDataSource = _ref2.sharedVideoWindowDataSource;
|
|
170
174
|
(0, _classCallCheck2["default"])(this, ParticipantStore);
|
|
171
175
|
(0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.getLogger)()));
|
|
172
176
|
(0, _defineProperty2["default"])(this, "_dataSource", new _memberListDataSource.FcrUIMemberListDataSourceImpl());
|
|
@@ -194,15 +198,6 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
194
198
|
onUserInfoUpdated: this._handleUserInfoUpdated.bind(this),
|
|
195
199
|
onUserPropertiesUpdated: this._handleUserPropertiesUpdated.bind(this)
|
|
196
200
|
});
|
|
197
|
-
(0, _defineProperty2["default"])(this, "_interpreterObserver", {
|
|
198
|
-
onInterpreterUsersUpdated: function onInterpreterUsersUpdated(roomId, users) {
|
|
199
|
-
_this.interpreterUsers = users;
|
|
200
|
-
},
|
|
201
|
-
onInterpreterStateUpdated: function onInterpreterStateUpdated() {
|
|
202
|
-
_this.interpreterState = _this.getInterpreterState();
|
|
203
|
-
_this.interpreterUsers = _this._interpreterControl.getInterpreterUserList();
|
|
204
|
-
}
|
|
205
|
-
});
|
|
206
201
|
(0, _defineProperty2["default"])(this, "_waitingRoomUserObserver", {
|
|
207
202
|
onRemoteUsersJoined: this._handleRemoteWaitingUserJoined.bind(this),
|
|
208
203
|
onRemoteUsersLeft: this._handleRemoteWaitingUserLeft.bind(this)
|
|
@@ -214,7 +209,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
214
209
|
var waitingRoomUserControl = room.getUserControl();
|
|
215
210
|
_this._waitingRoomUserControl = waitingRoomUserControl;
|
|
216
211
|
waitingRoomUserControl.addObserver(_this._waitingRoomUserObserver);
|
|
217
|
-
|
|
212
|
+
// this.waitingRoomUserCount = this._getWaitingRoomUserCount() as number;
|
|
218
213
|
_this._initWaitingRoomUserList();
|
|
219
214
|
}
|
|
220
215
|
});
|
|
@@ -222,7 +217,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
222
217
|
onSecurityInfoUpdated: function onSecurityInfoUpdated(roomId, event) {
|
|
223
218
|
var _event$securityInfo$i;
|
|
224
219
|
_this.refreshList = Math.random();
|
|
225
|
-
if (((_event$securityInfo$i = event.securityInfo.info) === null || _event$securityInfo$i === void 0 ? void 0 : _event$securityInfo$i.action) ===
|
|
220
|
+
if (((_event$securityInfo$i = event.securityInfo.info) === null || _event$securityInfo$i === void 0 ? void 0 : _event$securityInfo$i.action) === _type6.FcrSecurityAction.ChangeName) {
|
|
226
221
|
if (!event.securityInfo.enable) {
|
|
227
222
|
_this._closeChangeNameDialog();
|
|
228
223
|
}
|
|
@@ -234,33 +229,31 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
234
229
|
});
|
|
235
230
|
(0, _defineProperty2["default"])(this, "_whitebaordObderver", {
|
|
236
231
|
onActive: function onActive(ownerId, operatorUser) {
|
|
237
|
-
_this._updateUserBoardState(
|
|
232
|
+
_this._updateUserBoardState();
|
|
238
233
|
},
|
|
239
234
|
onInactive: function onInactive(reason, operatorUser) {
|
|
240
|
-
_this._updateUserBoardState(
|
|
235
|
+
_this._updateUserBoardState();
|
|
241
236
|
}
|
|
242
237
|
});
|
|
243
238
|
_classPrivateFieldInitSpec(this, _A, _init__mainList(this, []));
|
|
244
|
-
_classPrivateFieldInitSpec(this, _B,
|
|
245
|
-
_classPrivateFieldInitSpec(this, _C,
|
|
246
|
-
_classPrivateFieldInitSpec(this, _D,
|
|
247
|
-
_classPrivateFieldInitSpec(this, _E,
|
|
248
|
-
_classPrivateFieldInitSpec(this, _F,
|
|
249
|
-
_classPrivateFieldInitSpec(this, _G,
|
|
250
|
-
_classPrivateFieldInitSpec(this, _H,
|
|
251
|
-
_classPrivateFieldInitSpec(this, _I,
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
_classPrivateFieldInitSpec(this,
|
|
255
|
-
_classPrivateFieldInitSpec(this,
|
|
256
|
-
_classPrivateFieldInitSpec(this,
|
|
257
|
-
_classPrivateFieldInitSpec(this,
|
|
258
|
-
_classPrivateFieldInitSpec(this,
|
|
259
|
-
|
|
260
|
-
_classPrivateFieldInitSpec(this,
|
|
261
|
-
_classPrivateFieldInitSpec(this,
|
|
262
|
-
_classPrivateFieldInitSpec(this, _S, _init_newName(this, ''));
|
|
263
|
-
_classPrivateFieldInitSpec(this, _T, _init_refreshList(this, Math.random()));
|
|
239
|
+
_classPrivateFieldInitSpec(this, _B, _init__isChecked(this, {}));
|
|
240
|
+
_classPrivateFieldInitSpec(this, _C, _init__participantsWindowActive(this, false));
|
|
241
|
+
_classPrivateFieldInitSpec(this, _D, _init_currentPerspectiveType(this, 'attendee'));
|
|
242
|
+
_classPrivateFieldInitSpec(this, _E, _init_audioVolumeMap(this, new Map()));
|
|
243
|
+
_classPrivateFieldInitSpec(this, _F, _init_enableParticipantsJoinWithMute(this, false));
|
|
244
|
+
_classPrivateFieldInitSpec(this, _G, _init_searchText(this, ''));
|
|
245
|
+
_classPrivateFieldInitSpec(this, _H, _init_currentModal(this, 'modal'));
|
|
246
|
+
_classPrivateFieldInitSpec(this, _I, _init_localUserRole(this));
|
|
247
|
+
// @observable accessor spotlightStreamId: string = '';
|
|
248
|
+
// @observable accessor enableSpotlight: boolean = true;
|
|
249
|
+
_classPrivateFieldInitSpec(this, _J, _init_mergeConfirmDialog(this, false));
|
|
250
|
+
_classPrivateFieldInitSpec(this, _K, _init_mergeUserId(this, ''));
|
|
251
|
+
_classPrivateFieldInitSpec(this, _L, _init_activeTab(this, _type5.FcrRoomType.Mainroom));
|
|
252
|
+
_classPrivateFieldInitSpec(this, _M, _init_interpreterInputLanguageList(this, []));
|
|
253
|
+
_classPrivateFieldInitSpec(this, _N, _init_newName(this, ''));
|
|
254
|
+
_classPrivateFieldInitSpec(this, _O, _init_refreshList(this, Math.random()));
|
|
255
|
+
_classPrivateFieldInitSpec(this, _P, _init_allowUnmute(this, false));
|
|
256
|
+
_classPrivateFieldInitSpec(this, _Q, _init_joinWithMuteAudio(this, false));
|
|
264
257
|
(0, _defineProperty2["default"])(this, "allowedOperations", (0, _mobxUtils.computedFn)(function (userId, userRole) {
|
|
265
258
|
var _this$_localUser;
|
|
266
259
|
return _this.getAllowedOperations(userRole, userId === ((_this$_localUser = _this._localUser) === null || _this$_localUser === void 0 ? void 0 : _this$_localUser.userId));
|
|
@@ -373,30 +366,41 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
373
366
|
};
|
|
374
367
|
});
|
|
375
368
|
this._roomControl = _roomControl;
|
|
369
|
+
this._chatProvider = chatProvider;
|
|
376
370
|
this._streamControl = _roomControl.getStreamControl();
|
|
377
|
-
this._peerSessionControl =
|
|
371
|
+
this._peerSessionControl = sessionProvider;
|
|
378
372
|
this._userControl = _roomControl.getUserControl();
|
|
373
|
+
this._sharedWaitingRoomDataSource = sharedWaitingRoomDataSource;
|
|
379
374
|
this._securityStore = securityStore;
|
|
380
375
|
this._uiEventStore = uiEventStore;
|
|
381
376
|
this._deviceStore = deviceStore;
|
|
382
377
|
this._deviceStreamStore = deviceStreamStore;
|
|
383
378
|
this._roomStore = roomStore;
|
|
384
|
-
this.
|
|
379
|
+
this._sharedSpeakerSpotlightDataSource = sharedSpeakerSpotlightDataSource;
|
|
380
|
+
this._sharedPinDataSource = sharedPinDataSource;
|
|
381
|
+
this._sharedLayoutDataSource = sharedLayoutDataSource;
|
|
382
|
+
this._sharedSettingDataSource = sharedSettingDataSource;
|
|
383
|
+
this._sharedVideoWindowDataSource = sharedVideoWindowDataSource;
|
|
384
|
+
this.allowUnmute = this._securityStore.allowUnmuteSelfAudio();
|
|
385
|
+
this.joinWithMuteAudio = this._securityStore.allowJoinWithMuteAudio();
|
|
385
386
|
this._uiEventStore.addObserver(this._eventObserver);
|
|
386
387
|
this._userControl.addObserver(this._userObserver);
|
|
387
388
|
this._streamControl.addObserver(this._streamsObserver);
|
|
388
389
|
this._peerSessionControl.addObserver(this._peerSessionObserver);
|
|
389
390
|
this._roomControl.getBoardControl().addObserver(this._whitebaordObderver);
|
|
390
391
|
this._roomControl.getPrivilegeControl().addObserver(this._privilegeControlObserver);
|
|
391
|
-
this.
|
|
392
|
-
this.
|
|
392
|
+
(_this$_roomStore = this._roomStore) === null || _this$_roomStore === void 0 || _this$_roomStore.addObserver(this._roomStoreObserver);
|
|
393
|
+
this._sharedInterpreterDataSource = sharedInterpreterDataSource;
|
|
393
394
|
this._initUserList();
|
|
394
395
|
this._updateUserBoardState();
|
|
395
|
-
this.interpreterUsers = this._interpreterControl.getInterpreterUserList();
|
|
396
|
-
this.interpreterState = this.getInterpreterState();
|
|
397
396
|
this._getOutputLanguage();
|
|
398
397
|
this.localUserRole = this._localUser.userRole;
|
|
399
398
|
}
|
|
399
|
+
|
|
400
|
+
// @action.bound
|
|
401
|
+
// setSpotlightStreamId(streamId: string) {
|
|
402
|
+
// this.spotlightStreamId = streamId;
|
|
403
|
+
// }
|
|
400
404
|
return (0, _createClass2["default"])(ParticipantStore, [{
|
|
401
405
|
key: "_localUser",
|
|
402
406
|
get: function get() {
|
|
@@ -411,7 +415,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
411
415
|
_classPrivateFieldSet(_A, this, v);
|
|
412
416
|
}
|
|
413
417
|
}, {
|
|
414
|
-
key: "
|
|
418
|
+
key: "_isChecked",
|
|
415
419
|
get: function get() {
|
|
416
420
|
return _classPrivateFieldGet(_B, this);
|
|
417
421
|
},
|
|
@@ -419,7 +423,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
419
423
|
_classPrivateFieldSet(_B, this, v);
|
|
420
424
|
}
|
|
421
425
|
}, {
|
|
422
|
-
key: "
|
|
426
|
+
key: "_participantsWindowActive",
|
|
423
427
|
get: function get() {
|
|
424
428
|
return _classPrivateFieldGet(_C, this);
|
|
425
429
|
},
|
|
@@ -427,7 +431,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
427
431
|
_classPrivateFieldSet(_C, this, v);
|
|
428
432
|
}
|
|
429
433
|
}, {
|
|
430
|
-
key: "
|
|
434
|
+
key: "currentPerspectiveType",
|
|
431
435
|
get: function get() {
|
|
432
436
|
return _classPrivateFieldGet(_D, this);
|
|
433
437
|
},
|
|
@@ -435,7 +439,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
435
439
|
_classPrivateFieldSet(_D, this, v);
|
|
436
440
|
}
|
|
437
441
|
}, {
|
|
438
|
-
key: "
|
|
442
|
+
key: "audioVolumeMap",
|
|
439
443
|
get: function get() {
|
|
440
444
|
return _classPrivateFieldGet(_E, this);
|
|
441
445
|
},
|
|
@@ -443,7 +447,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
443
447
|
_classPrivateFieldSet(_E, this, v);
|
|
444
448
|
}
|
|
445
449
|
}, {
|
|
446
|
-
key: "
|
|
450
|
+
key: "enableParticipantsJoinWithMute",
|
|
447
451
|
get: function get() {
|
|
448
452
|
return _classPrivateFieldGet(_F, this);
|
|
449
453
|
},
|
|
@@ -451,7 +455,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
451
455
|
_classPrivateFieldSet(_F, this, v);
|
|
452
456
|
}
|
|
453
457
|
}, {
|
|
454
|
-
key: "
|
|
458
|
+
key: "searchText",
|
|
455
459
|
get: function get() {
|
|
456
460
|
return _classPrivateFieldGet(_G, this);
|
|
457
461
|
},
|
|
@@ -459,7 +463,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
459
463
|
_classPrivateFieldSet(_G, this, v);
|
|
460
464
|
}
|
|
461
465
|
}, {
|
|
462
|
-
key: "
|
|
466
|
+
key: "currentModal",
|
|
463
467
|
get: function get() {
|
|
464
468
|
return _classPrivateFieldGet(_H, this);
|
|
465
469
|
},
|
|
@@ -467,7 +471,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
467
471
|
_classPrivateFieldSet(_H, this, v);
|
|
468
472
|
}
|
|
469
473
|
}, {
|
|
470
|
-
key: "
|
|
474
|
+
key: "localUserRole",
|
|
471
475
|
get: function get() {
|
|
472
476
|
return _classPrivateFieldGet(_I, this);
|
|
473
477
|
},
|
|
@@ -475,7 +479,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
475
479
|
_classPrivateFieldSet(_I, this, v);
|
|
476
480
|
}
|
|
477
481
|
}, {
|
|
478
|
-
key: "
|
|
482
|
+
key: "mergeConfirmDialog",
|
|
479
483
|
get: function get() {
|
|
480
484
|
return _classPrivateFieldGet(_J, this);
|
|
481
485
|
},
|
|
@@ -483,7 +487,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
483
487
|
_classPrivateFieldSet(_J, this, v);
|
|
484
488
|
}
|
|
485
489
|
}, {
|
|
486
|
-
key: "
|
|
490
|
+
key: "mergeUserId",
|
|
487
491
|
get: function get() {
|
|
488
492
|
return _classPrivateFieldGet(_K, this);
|
|
489
493
|
},
|
|
@@ -491,7 +495,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
491
495
|
_classPrivateFieldSet(_K, this, v);
|
|
492
496
|
}
|
|
493
497
|
}, {
|
|
494
|
-
key: "
|
|
498
|
+
key: "activeTab",
|
|
495
499
|
get: function get() {
|
|
496
500
|
return _classPrivateFieldGet(_L, this);
|
|
497
501
|
},
|
|
@@ -499,7 +503,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
499
503
|
_classPrivateFieldSet(_L, this, v);
|
|
500
504
|
}
|
|
501
505
|
}, {
|
|
502
|
-
key: "
|
|
506
|
+
key: "interpreterInputLanguageList",
|
|
503
507
|
get: function get() {
|
|
504
508
|
return _classPrivateFieldGet(_M, this);
|
|
505
509
|
},
|
|
@@ -507,7 +511,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
507
511
|
_classPrivateFieldSet(_M, this, v);
|
|
508
512
|
}
|
|
509
513
|
}, {
|
|
510
|
-
key: "
|
|
514
|
+
key: "newName",
|
|
511
515
|
get: function get() {
|
|
512
516
|
return _classPrivateFieldGet(_N, this);
|
|
513
517
|
},
|
|
@@ -515,7 +519,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
515
519
|
_classPrivateFieldSet(_N, this, v);
|
|
516
520
|
}
|
|
517
521
|
}, {
|
|
518
|
-
key: "
|
|
522
|
+
key: "refreshList",
|
|
519
523
|
get: function get() {
|
|
520
524
|
return _classPrivateFieldGet(_O, this);
|
|
521
525
|
},
|
|
@@ -523,7 +527,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
523
527
|
_classPrivateFieldSet(_O, this, v);
|
|
524
528
|
}
|
|
525
529
|
}, {
|
|
526
|
-
key: "
|
|
530
|
+
key: "allowUnmute",
|
|
527
531
|
get: function get() {
|
|
528
532
|
return _classPrivateFieldGet(_P, this);
|
|
529
533
|
},
|
|
@@ -531,7 +535,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
531
535
|
_classPrivateFieldSet(_P, this, v);
|
|
532
536
|
}
|
|
533
537
|
}, {
|
|
534
|
-
key: "
|
|
538
|
+
key: "joinWithMuteAudio",
|
|
535
539
|
get: function get() {
|
|
536
540
|
return _classPrivateFieldGet(_Q, this);
|
|
537
541
|
},
|
|
@@ -539,38 +543,24 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
539
543
|
_classPrivateFieldSet(_Q, this, v);
|
|
540
544
|
}
|
|
541
545
|
}, {
|
|
542
|
-
key: "
|
|
543
|
-
get: function get() {
|
|
544
|
-
return _classPrivateFieldGet(_R, this);
|
|
545
|
-
},
|
|
546
|
-
set: function set(v) {
|
|
547
|
-
_classPrivateFieldSet(_R, this, v);
|
|
548
|
-
}
|
|
549
|
-
}, {
|
|
550
|
-
key: "newName",
|
|
551
|
-
get: function get() {
|
|
552
|
-
return _classPrivateFieldGet(_S, this);
|
|
553
|
-
},
|
|
554
|
-
set: function set(v) {
|
|
555
|
-
_classPrivateFieldSet(_S, this, v);
|
|
556
|
-
}
|
|
557
|
-
}, {
|
|
558
|
-
key: "refreshList",
|
|
546
|
+
key: "enableSpotlight",
|
|
559
547
|
get: function get() {
|
|
560
|
-
return
|
|
561
|
-
},
|
|
562
|
-
set: function set(v) {
|
|
563
|
-
_classPrivateFieldSet(_T, this, v);
|
|
548
|
+
return this._sharedSettingDataSource.setting.spotlightEnabled;
|
|
564
549
|
}
|
|
565
550
|
}, {
|
|
566
551
|
key: "userListSource",
|
|
567
552
|
get: function get() {
|
|
568
|
-
if (this.activeTab ===
|
|
553
|
+
if (this.activeTab === _type5.FcrRoomType.Mainroom) {
|
|
569
554
|
return this._dataSource.list;
|
|
570
555
|
} else {
|
|
571
556
|
return this._waitingRoomDataSource.list;
|
|
572
557
|
}
|
|
573
558
|
}
|
|
559
|
+
}, {
|
|
560
|
+
key: "spotlightStreamId",
|
|
561
|
+
get: function get() {
|
|
562
|
+
return this._sharedVideoWindowDataSource.spotlightStreamId;
|
|
563
|
+
}
|
|
574
564
|
}, {
|
|
575
565
|
key: "mergeUserInfo",
|
|
576
566
|
get: function get() {
|
|
@@ -671,9 +661,24 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
671
661
|
return this._securityStore.hasRevokeHostPermission() && this.localUserRole !== _type.FcrUserRole.HOST;
|
|
672
662
|
}
|
|
673
663
|
}, {
|
|
674
|
-
key: "
|
|
675
|
-
|
|
676
|
-
this.
|
|
664
|
+
key: "interpreterUsers",
|
|
665
|
+
get: function get() {
|
|
666
|
+
return this._sharedInterpreterDataSource.interpreterUsers;
|
|
667
|
+
}
|
|
668
|
+
}, {
|
|
669
|
+
key: "interpreterState",
|
|
670
|
+
get: function get() {
|
|
671
|
+
return this._sharedInterpreterDataSource.interpreterOff;
|
|
672
|
+
}
|
|
673
|
+
}, {
|
|
674
|
+
key: "waitingRoomUserCount",
|
|
675
|
+
get: function get() {
|
|
676
|
+
return this._sharedWaitingRoomDataSource.totalWaitingRoomUser;
|
|
677
|
+
}
|
|
678
|
+
}, {
|
|
679
|
+
key: "isNewWaitingRoomUserEnter",
|
|
680
|
+
get: function get() {
|
|
681
|
+
return this._sharedWaitingRoomDataSource.unReadState;
|
|
677
682
|
}
|
|
678
683
|
}, {
|
|
679
684
|
key: "release",
|
|
@@ -683,7 +688,6 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
683
688
|
this._streamControl.removeObserver(this._streamsObserver);
|
|
684
689
|
this._peerSessionControl.removeObserver(this._peerSessionObserver);
|
|
685
690
|
this._roomControl.getBoardControl().removeObserver(this._whitebaordObderver);
|
|
686
|
-
this._interpreterControl.removeObserver(this._interpreterObserver);
|
|
687
691
|
this._roomControl.getPrivilegeControl().removeObserver(this._privilegeControlObserver);
|
|
688
692
|
this._roomStore.removeObserver(this._roomStoreObserver);
|
|
689
693
|
this._disposers.forEach(function (disposer) {
|
|
@@ -718,7 +722,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
718
722
|
}, {
|
|
719
723
|
key: "closeParticipantsAside",
|
|
720
724
|
value: function closeParticipantsAside() {
|
|
721
|
-
this.
|
|
725
|
+
this._sharedLayoutDataSource.setAsideLayout({
|
|
722
726
|
participant: false
|
|
723
727
|
});
|
|
724
728
|
}
|
|
@@ -750,7 +754,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
750
754
|
}, {
|
|
751
755
|
key: "openDialog",
|
|
752
756
|
value: function openDialog() {
|
|
753
|
-
this._dialogId = this._uiEventStore.openDialog(_constant.
|
|
757
|
+
this._dialogId = this._uiEventStore.openDialog(_constant.FcrUIDialogKey.PARTICIPANT);
|
|
754
758
|
}
|
|
755
759
|
}, {
|
|
756
760
|
key: "openConfirmDialog",
|
|
@@ -813,10 +817,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
813
817
|
return stream.videoSourceType === _type2.AgoraRteVideoSourceType.CAMERA;
|
|
814
818
|
})) === null || _this$userMap$get3 === void 0 ? void 0 : _this$userMap$get3.streamId;
|
|
815
819
|
if (streamId) {
|
|
816
|
-
this.
|
|
817
|
-
action: _constant.VideoWindowPinType.REMOVE_PIN,
|
|
818
|
-
streamId: streamId
|
|
819
|
-
});
|
|
820
|
+
this._sharedVideoWindowDataSource.removePinToast(streamId, (0, _i18n.transI18n)('fmt_settings_tips_screenunlock'));
|
|
820
821
|
}
|
|
821
822
|
}
|
|
822
823
|
}, {
|
|
@@ -827,10 +828,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
827
828
|
return stream.videoSourceType === _type2.AgoraRteVideoSourceType.CAMERA;
|
|
828
829
|
})) === null || _this$userMap$get4 === void 0 ? void 0 : _this$userMap$get4.streamId;
|
|
829
830
|
if (streamId) {
|
|
830
|
-
this.
|
|
831
|
-
action: _constant.VideoWindowPinType.ADD_PIN,
|
|
832
|
-
streamId: streamId
|
|
833
|
-
});
|
|
831
|
+
this._sharedVideoWindowDataSource.addPinToast(streamId);
|
|
834
832
|
}
|
|
835
833
|
}
|
|
836
834
|
}, {
|
|
@@ -840,18 +838,82 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
840
838
|
}
|
|
841
839
|
}, {
|
|
842
840
|
key: "openRemoveAdmitWaitingRoomDialog",
|
|
843
|
-
value: function openRemoveAdmitWaitingRoomDialog(
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
841
|
+
value: function openRemoveAdmitWaitingRoomDialog(params) {
|
|
842
|
+
var _this5 = this;
|
|
843
|
+
var buttonTextMap = {
|
|
844
|
+
removeAll: (0, _i18n.transI18n)('fmt_waitingroom_sidebar_button_removeall'),
|
|
845
|
+
admitAll: (0, _i18n.transI18n)('fmt_waitingroom_sidebar_button_admitall'),
|
|
846
|
+
remove: (0, _i18n.transI18n)('fmt_waitingroom_sidebar_popup_button_remove')
|
|
847
|
+
};
|
|
848
|
+
this._isChecked[params.type] = false;
|
|
849
|
+
var key = this.openConfirmDialog({
|
|
847
850
|
title: params.title,
|
|
848
|
-
|
|
851
|
+
alignCenter: true,
|
|
852
|
+
content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_operateWaitingroomMember.OperateWaitingRoomMemberDialog, {
|
|
853
|
+
type: params.type,
|
|
854
|
+
userId: params.userId,
|
|
855
|
+
tooltip: params.tooltip,
|
|
856
|
+
title: params.title,
|
|
857
|
+
onChecked: function onChecked(isChecked) {
|
|
858
|
+
_this5._isChecked[params.type] = isChecked;
|
|
859
|
+
}
|
|
860
|
+
}),
|
|
861
|
+
onOk: function onOk() {
|
|
862
|
+
if (params.type === 'remove') {
|
|
863
|
+
_this5.removeWaitingRoomUser(params.userId, _this5._isChecked[params.type] ? _type4.FcrUserKickedOutType.Forever : _type4.FcrUserKickedOutType.Once);
|
|
864
|
+
}
|
|
865
|
+
if (params.type === 'removeAll') {
|
|
866
|
+
_this5.kickOutWaitingRoomAllMember(_this5._isChecked[params.type] ? _type4.FcrUserKickedOutType.Forever : _type4.FcrUserKickedOutType.Once);
|
|
867
|
+
}
|
|
868
|
+
if (params.type === 'admitAll') {
|
|
869
|
+
_this5.moveToMainRoomAllMember();
|
|
870
|
+
}
|
|
871
|
+
_this5._uiEventStore.closeConfirm(key);
|
|
872
|
+
},
|
|
873
|
+
okText: buttonTextMap[params.type]
|
|
874
|
+
});
|
|
875
|
+
}
|
|
876
|
+
}, {
|
|
877
|
+
key: "setMuteAllDialogValue",
|
|
878
|
+
value: function setMuteAllDialogValue(allowUnmuteSelfAudio, allowJoinWithMuteAudio) {
|
|
879
|
+
this.allowUnmute = allowUnmuteSelfAudio;
|
|
880
|
+
this.joinWithMuteAudio = allowJoinWithMuteAudio;
|
|
881
|
+
}
|
|
882
|
+
}, {
|
|
883
|
+
key: "openMuteAllDialog",
|
|
884
|
+
value: function openMuteAllDialog(params) {
|
|
885
|
+
var _this6 = this;
|
|
886
|
+
this.openConfirmDialog({
|
|
887
|
+
title: (0, _i18n.transI18n)('fmt_attendies_options_muteall'),
|
|
888
|
+
content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
889
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_muteAll.MuteAllDialog, {
|
|
890
|
+
allowUnmuteSelfAudio: this.allowUnmuteSelfAudio,
|
|
891
|
+
allowJoinWithMuteAudio: this.allowJoinWithMuteAudio,
|
|
892
|
+
open: params.open,
|
|
893
|
+
setMuteAllDialogValue: this.setMuteAllDialogValue
|
|
894
|
+
})
|
|
895
|
+
}),
|
|
896
|
+
okButtonProps: {
|
|
897
|
+
styleType: 'danger',
|
|
898
|
+
shape: 'rounded'
|
|
899
|
+
},
|
|
900
|
+
cancelButtonProps: {
|
|
901
|
+
shape: 'rounded'
|
|
902
|
+
},
|
|
903
|
+
okText: (0, _i18n.transI18n)('fmt_attendies_button_muteall'),
|
|
904
|
+
cancelText: (0, _i18n.transI18n)('fmt_attendies_button_cancel'),
|
|
905
|
+
onOk: function onOk() {
|
|
906
|
+
_this6.handlerRoomControlAction(_constant.FcrUIRoomControlType.MUTE_ALL_AUDIO, {
|
|
907
|
+
allowUnmute: _this6.allowUnmute,
|
|
908
|
+
joinWithMuteAudio: _this6.joinWithMuteAudio
|
|
909
|
+
});
|
|
910
|
+
}
|
|
849
911
|
});
|
|
850
912
|
}
|
|
851
913
|
}, {
|
|
852
914
|
key: "handlerUserAction",
|
|
853
915
|
value: function handlerUserAction(action, userId) {
|
|
854
|
-
var
|
|
916
|
+
var _this7 = this;
|
|
855
917
|
switch (action) {
|
|
856
918
|
case _attendee.ParticipantActionType.MUTE_AUDIO:
|
|
857
919
|
this._muteUserAudio(userId);
|
|
@@ -869,17 +931,20 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
869
931
|
this._privateChat(userId);
|
|
870
932
|
break;
|
|
871
933
|
case _attendee.ParticipantActionType.KICK_OUT:
|
|
872
|
-
if (this.activeTab ===
|
|
934
|
+
if (this.activeTab === _type5.FcrRoomType.Mainroom) {
|
|
873
935
|
this._kickOutUser(userId);
|
|
874
936
|
} else {
|
|
875
937
|
var _this$userMap$get5;
|
|
876
|
-
this.openRemoveAdmitWaitingRoomDialog(
|
|
938
|
+
this.openRemoveAdmitWaitingRoomDialog({
|
|
877
939
|
userId: userId,
|
|
878
940
|
type: 'remove',
|
|
879
941
|
title: (0, _i18n.transI18n)('fmt_waitingroom_sidebar_popup_removeall'),
|
|
880
942
|
tooltip: (0, _i18n.transI18n)('fmt_waitingroom_sidebar_popup_label_remove', {
|
|
881
943
|
reason1: (_this$userMap$get5 = this.userMap.get(userId)) === null || _this$userMap$get5 === void 0 ? void 0 : _this$userMap$get5.userInfo.userName
|
|
882
|
-
})
|
|
944
|
+
}),
|
|
945
|
+
onChecked: function onChecked(isChecked) {
|
|
946
|
+
_this7._isChecked['remove'] = isChecked;
|
|
947
|
+
}
|
|
883
948
|
});
|
|
884
949
|
}
|
|
885
950
|
break;
|
|
@@ -917,7 +982,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
917
982
|
title: (0, _i18n.transI18n)('fmt_additional_option_rename_in_meeting'),
|
|
918
983
|
content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_rename["default"], {
|
|
919
984
|
onChange: function onChange(value) {
|
|
920
|
-
return
|
|
985
|
+
return _this7.newName = value;
|
|
921
986
|
}
|
|
922
987
|
}),
|
|
923
988
|
onOk: function () {
|
|
@@ -926,11 +991,11 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
926
991
|
while (1) switch (_context.prev = _context.next) {
|
|
927
992
|
case 0:
|
|
928
993
|
_context.next = 2;
|
|
929
|
-
return
|
|
994
|
+
return _this7._userControl.updateUserName(userId, _this7.newName);
|
|
930
995
|
case 2:
|
|
931
996
|
(0, _mobx.runInAction)(function () {
|
|
932
|
-
|
|
933
|
-
|
|
997
|
+
_this7._closeChangeNameDialog();
|
|
998
|
+
_this7._uiEventStore.showToast({
|
|
934
999
|
type: 'normal',
|
|
935
1000
|
message: (0, _i18n.transI18n)('fmt_additional_tips_nickname_change_success')
|
|
936
1001
|
});
|
|
@@ -948,7 +1013,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
948
1013
|
}(),
|
|
949
1014
|
alignCenter: true,
|
|
950
1015
|
onCancel: function onCancel() {
|
|
951
|
-
|
|
1016
|
+
_this7._closeChangeNameDialog();
|
|
952
1017
|
},
|
|
953
1018
|
closable: false,
|
|
954
1019
|
height: 190
|
|
@@ -959,10 +1024,10 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
959
1024
|
}, {
|
|
960
1025
|
key: "_closeChangeNameDialog",
|
|
961
1026
|
value: function _closeChangeNameDialog() {
|
|
962
|
-
var
|
|
1027
|
+
var _this8 = this;
|
|
963
1028
|
if (this._changeNameDialogKey.length > 0) {
|
|
964
1029
|
this._changeNameDialogKey.forEach(function (key) {
|
|
965
|
-
|
|
1030
|
+
_this8._uiEventStore.closeConfirm(key);
|
|
966
1031
|
});
|
|
967
1032
|
this._changeNameDialogKey = [];
|
|
968
1033
|
}
|
|
@@ -1084,34 +1149,34 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1084
1149
|
key: "handlerRoomControlAction",
|
|
1085
1150
|
value: function handlerRoomControlAction(action, data) {
|
|
1086
1151
|
switch (action) {
|
|
1087
|
-
case _constant.
|
|
1152
|
+
case _constant.FcrUIRoomControlType.MUTE_ALL_AUDIO:
|
|
1088
1153
|
this._muteAllAudio(data.allowUnmute, data.joinWithMuteAudio);
|
|
1089
1154
|
break;
|
|
1090
|
-
case _constant.
|
|
1155
|
+
case _constant.FcrUIRoomControlType.UNMUTE_ALL_AUDIO:
|
|
1091
1156
|
this._unmuteAllAudio();
|
|
1092
1157
|
break;
|
|
1093
|
-
case _constant.
|
|
1158
|
+
case _constant.FcrUIRoomControlType.ALLOW_ATTENDEE_TO_UNMUTE:
|
|
1094
1159
|
this._enableSelfUnmute(data);
|
|
1095
1160
|
break;
|
|
1096
|
-
case _constant.
|
|
1161
|
+
case _constant.FcrUIRoomControlType.ALLOW_ATTENDEE_TO_OPEN_CAMERA:
|
|
1097
1162
|
this._enableOpenVideo(data);
|
|
1098
1163
|
break;
|
|
1099
|
-
case _constant.
|
|
1164
|
+
case _constant.FcrUIRoomControlType.REVOKE_HOST:
|
|
1100
1165
|
this._revokeHost();
|
|
1101
1166
|
break;
|
|
1102
|
-
case _constant.
|
|
1167
|
+
case _constant.FcrUIRoomControlType.PLAY_JOIN_LEAVE_SOUND:
|
|
1103
1168
|
this._playJoinLeaveSound();
|
|
1104
1169
|
break;
|
|
1105
|
-
case _constant.
|
|
1170
|
+
case _constant.FcrUIRoomControlType.LOCK_ROOM:
|
|
1106
1171
|
this._lockRoom(data);
|
|
1107
1172
|
break;
|
|
1108
|
-
case _constant.
|
|
1173
|
+
case _constant.FcrUIRoomControlType.ENABLE_WAITING_ROOM:
|
|
1109
1174
|
this._enableWaitingRoom(data);
|
|
1110
1175
|
break;
|
|
1111
|
-
case _constant.
|
|
1176
|
+
case _constant.FcrUIRoomControlType.RENAME:
|
|
1112
1177
|
this._enableRename();
|
|
1113
1178
|
break;
|
|
1114
|
-
case _constant.
|
|
1179
|
+
case _constant.FcrUIRoomControlType.JOIN_WITH_MUTE_AUDIO:
|
|
1115
1180
|
this.enableJoinWithMuteAudio(data);
|
|
1116
1181
|
break;
|
|
1117
1182
|
}
|
|
@@ -1119,42 +1184,31 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1119
1184
|
}, {
|
|
1120
1185
|
key: "_handleEvent",
|
|
1121
1186
|
value: function _handleEvent(action, payload) {
|
|
1122
|
-
if (action === _constant.
|
|
1187
|
+
if (action === _constant.FcrUIAction.MAIN_LIST_CHANGED) {
|
|
1123
1188
|
this._mainList = payload || [];
|
|
1124
1189
|
}
|
|
1125
|
-
if (action === _constant.
|
|
1190
|
+
if (action === _constant.FcrUIAction.CUSTOM_SETTINGS_CHANGED) {
|
|
1126
1191
|
var _ref6 = payload,
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
if (type === 'add') {
|
|
1130
|
-
this.setSpotlightStreamId(streamId);
|
|
1131
|
-
} else {
|
|
1132
|
-
this.setSpotlightStreamId('');
|
|
1133
|
-
}
|
|
1134
|
-
}
|
|
1135
|
-
if (action === _constant.UIAction.CUSTOM_SETTINGS_CHANGED) {
|
|
1136
|
-
var _ref7 = payload,
|
|
1137
|
-
spotlightEnabled = _ref7.spotlightEnabled;
|
|
1138
|
-
this.enableSpotlight = spotlightEnabled;
|
|
1192
|
+
spotlightEnabled = _ref6.spotlightEnabled;
|
|
1193
|
+
// this.enableSpotlight = spotlightEnabled;
|
|
1139
1194
|
}
|
|
1140
|
-
if (action === _constant.
|
|
1195
|
+
if (action === _constant.FcrUIAction.CHANGE_PARTICIPANT_TAB) {
|
|
1141
1196
|
this.handleActiveTab(payload);
|
|
1142
1197
|
}
|
|
1143
|
-
if (action === _constant.
|
|
1198
|
+
if (action === _constant.FcrUIAction.WAITING_ROOM_DESTROYED) {
|
|
1144
1199
|
var _this$_waitingRoomUse3;
|
|
1145
1200
|
(_this$_waitingRoomUse3 = this._waitingRoomUserControl) === null || _this$_waitingRoomUse3 === void 0 || _this$_waitingRoomUse3.removeObserver(this._waitingRoomUserObserver);
|
|
1146
1201
|
this._waitingRoomControl = undefined;
|
|
1147
1202
|
this._waitingRoomUserControl = undefined;
|
|
1148
|
-
this.
|
|
1149
|
-
this.handleActiveTab(_constant.RoomType.MAIN_ROOM);
|
|
1203
|
+
this.handleActiveTab(_type5.FcrRoomType.Mainroom);
|
|
1150
1204
|
}
|
|
1151
|
-
if (action === _constant.
|
|
1205
|
+
if (action === _constant.FcrUIAction.START_SHARE_SCREEN) {
|
|
1152
1206
|
this._screenSharingState = _fcrCore.FcrMediaSourceState.OPEN;
|
|
1153
1207
|
}
|
|
1154
|
-
if (action === _constant.
|
|
1208
|
+
if (action === _constant.FcrUIAction.STOP_SHARE_SCREEN) {
|
|
1155
1209
|
this._screenSharingState = _fcrCore.FcrMediaSourceState.CLOSE;
|
|
1156
1210
|
}
|
|
1157
|
-
if (action === _constant.
|
|
1211
|
+
if (action === _constant.FcrUIAction.PARTICIPANT_ACTION) {
|
|
1158
1212
|
this.handlerUserAction(payload.action, payload.userId);
|
|
1159
1213
|
}
|
|
1160
1214
|
}
|
|
@@ -1169,16 +1223,12 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1169
1223
|
key: "handleActiveTab",
|
|
1170
1224
|
value: function handleActiveTab(tab) {
|
|
1171
1225
|
this.activeTab = tab;
|
|
1172
|
-
this.
|
|
1173
|
-
|
|
1174
|
-
|
|
1226
|
+
this.refreshList = Math.random();
|
|
1227
|
+
// this._uiEventStore.sendEvent(FcrUIAction.CURRENT_PARTITIPANT_TAB, tab);
|
|
1228
|
+
if (this.activeTab === _type5.FcrRoomType.Waitingroom) {
|
|
1229
|
+
this._sharedWaitingRoomDataSource.unReadState = false;
|
|
1175
1230
|
}
|
|
1176
1231
|
}
|
|
1177
|
-
}, {
|
|
1178
|
-
key: "getInterpreterState",
|
|
1179
|
-
value: function getInterpreterState() {
|
|
1180
|
-
return this._interpreterControl.getState().enable;
|
|
1181
|
-
}
|
|
1182
1232
|
}, {
|
|
1183
1233
|
key: "_initWaitingRoomUserList",
|
|
1184
1234
|
value: function _initWaitingRoomUserList() {
|
|
@@ -1200,7 +1250,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1200
1250
|
function _muteUserAudio(user) {
|
|
1201
1251
|
var isSelf = user === this._localUser.userId;
|
|
1202
1252
|
if (isSelf) {
|
|
1203
|
-
this._deviceStreamStore.
|
|
1253
|
+
this._deviceStreamStore.enableMicrophoneWithPreCheck(false);
|
|
1204
1254
|
} else {
|
|
1205
1255
|
var targetUsers = this._streamControl.getStreamsByUserId(user);
|
|
1206
1256
|
var targetUser = targetUsers.find(function (user) {
|
|
@@ -1220,7 +1270,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1220
1270
|
value: function _unmuteUserAudio(userId) {
|
|
1221
1271
|
var isSelf = userId === this._localUser.userId;
|
|
1222
1272
|
if (isSelf) {
|
|
1223
|
-
this._deviceStreamStore.
|
|
1273
|
+
this._deviceStreamStore.enableMicrophoneWithPreCheck(true);
|
|
1224
1274
|
} else {
|
|
1225
1275
|
var _this$_unmuteAudioTim;
|
|
1226
1276
|
var targetUsers = this._streamControl.getStreamsByUserId(userId);
|
|
@@ -1250,7 +1300,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1250
1300
|
value: function _muteUserVideo(user) {
|
|
1251
1301
|
var isSelf = user === this._localUser.userId;
|
|
1252
1302
|
if (isSelf) {
|
|
1253
|
-
this._deviceStreamStore.
|
|
1303
|
+
this._deviceStreamStore.enableCameraWithPreCheck(false);
|
|
1254
1304
|
} else {
|
|
1255
1305
|
var targetUsers = this._streamControl.getStreamsByUserId(user);
|
|
1256
1306
|
var targetUser = targetUsers.find(function (user) {
|
|
@@ -1272,13 +1322,13 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1272
1322
|
value: function _unmuteUserVideo(userId) {
|
|
1273
1323
|
var isSelf = userId === this._localUser.userId;
|
|
1274
1324
|
if (isSelf) {
|
|
1275
|
-
this._deviceStreamStore.
|
|
1325
|
+
this._deviceStreamStore.enableCameraWithPreCheck(true);
|
|
1276
1326
|
} else {
|
|
1277
1327
|
var localUser = this._localUser;
|
|
1278
1328
|
var targetUsers = this._streamControl.getStreamsByUserId(userId);
|
|
1279
1329
|
var targetUser = targetUsers[0];
|
|
1280
1330
|
if (localUser.userId === userId) {
|
|
1281
|
-
this._deviceStreamStore.
|
|
1331
|
+
this._deviceStreamStore.enableCameraWithPreCheck(true);
|
|
1282
1332
|
} else {
|
|
1283
1333
|
var _this$_unmuteVideoTim;
|
|
1284
1334
|
var now = Date.now();
|
|
@@ -1303,34 +1353,36 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1303
1353
|
if (!this._securityStore.permitPrivateChat(userId)) {
|
|
1304
1354
|
return;
|
|
1305
1355
|
}
|
|
1306
|
-
this.
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1356
|
+
if (this._sharedLayoutDataSource.chatRenderAt !== 'dialog') {
|
|
1357
|
+
this._sharedLayoutDataSource.setAsideLayout({
|
|
1358
|
+
chat: true
|
|
1359
|
+
});
|
|
1360
|
+
this._uiEventStore.sendEvent(_constant.FcrUIAction.TOGGLE_CHAT_ROOM_TAB, this.activeTab);
|
|
1361
|
+
}
|
|
1310
1362
|
var userData = this.userListSource.find(function (u) {
|
|
1311
1363
|
return u.userId === userId;
|
|
1312
1364
|
});
|
|
1313
|
-
userData && this.
|
|
1365
|
+
userData && this._chatProvider.setPrivateChatTargetUser(userData.userInfo, this.activeTab);
|
|
1314
1366
|
if ((0, _env.isElectron)() && this._screenSharingState === _fcrCore.FcrMediaSourceState.OPEN) {
|
|
1315
|
-
this._uiEventStore.openDialog(_constant.
|
|
1367
|
+
this._uiEventStore.openDialog(_constant.FcrUIDialogKey.CHAT);
|
|
1316
1368
|
}
|
|
1317
1369
|
}
|
|
1318
1370
|
}, {
|
|
1319
1371
|
key: "_kickOutUser",
|
|
1320
1372
|
value: function _kickOutUser(userId) {
|
|
1321
|
-
var
|
|
1373
|
+
var _this9 = this,
|
|
1322
1374
|
_this$userMap$get7;
|
|
1323
1375
|
var dialogId = this.openConfirmDialog({
|
|
1324
1376
|
title: '',
|
|
1325
1377
|
onCancel: function onCancel() {
|
|
1326
|
-
|
|
1378
|
+
_this9._uiEventStore.closeConfirm(dialogId);
|
|
1327
1379
|
},
|
|
1328
1380
|
content: (0, _i18n.transI18n)('fmt_uimanager_tips_Remove', {
|
|
1329
1381
|
reason2: (_this$userMap$get7 = this.userMap.get(userId)) === null || _this$userMap$get7 === void 0 ? void 0 : _this$userMap$get7.userInfo.userName
|
|
1330
1382
|
}),
|
|
1331
1383
|
onOk: function onOk() {
|
|
1332
|
-
|
|
1333
|
-
|
|
1384
|
+
_this9._userControl.kickOut(userId, _type4.FcrUserKickedOutType.Once);
|
|
1385
|
+
_this9._uiEventStore.closeConfirm(dialogId);
|
|
1334
1386
|
},
|
|
1335
1387
|
height: 160
|
|
1336
1388
|
}, 'KICK_OUT');
|
|
@@ -1339,7 +1391,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1339
1391
|
key: "_handleSetHostOrCoHost",
|
|
1340
1392
|
value: function _handleSetHostOrCoHost(userId, type) {
|
|
1341
1393
|
var _this$userMap$get8,
|
|
1342
|
-
|
|
1394
|
+
_this10 = this;
|
|
1343
1395
|
var username = (_this$userMap$get8 = this.userMap.get(userId)) === null || _this$userMap$get8 === void 0 ? void 0 : _this$userMap$get8.userInfo.userName;
|
|
1344
1396
|
var targetRole = type === 'host' ? (0, _i18n.transI18n)('fmt_role_host') : (0, _i18n.transI18n)('fmt_role_cohost');
|
|
1345
1397
|
var dialogId = this.openConfirmDialog({
|
|
@@ -1347,22 +1399,22 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1347
1399
|
reason1: targetRole
|
|
1348
1400
|
}),
|
|
1349
1401
|
onCancel: function onCancel() {
|
|
1350
|
-
|
|
1402
|
+
_this10._uiEventStore.closeConfirm(dialogId);
|
|
1351
1403
|
},
|
|
1352
1404
|
content: (0, _i18n.transI18n)('fmt_uimanager_tips_designedas', {
|
|
1353
1405
|
reason1: username,
|
|
1354
1406
|
reason2: targetRole
|
|
1355
1407
|
}),
|
|
1356
1408
|
onOk: function onOk() {
|
|
1357
|
-
if (!
|
|
1358
|
-
|
|
1409
|
+
if (!_this10.userMap.has(userId)) {
|
|
1410
|
+
_this10._uiEventStore.showToast({
|
|
1359
1411
|
type: 'error',
|
|
1360
1412
|
message: (0, _i18n.transI18n)('fmt_uimanager_tips_userleaft')
|
|
1361
1413
|
});
|
|
1362
1414
|
return;
|
|
1363
1415
|
}
|
|
1364
|
-
|
|
1365
|
-
|
|
1416
|
+
_this10._userControl.updateRemoteUserRole(userId, type === 'host' ? _type.FcrUserRole.HOST : _type.FcrUserRole.COHOST);
|
|
1417
|
+
_this10._uiEventStore.closeConfirm(dialogId);
|
|
1366
1418
|
},
|
|
1367
1419
|
okText: (0, _i18n.transI18n)('fmt_uimanager_labels_Setas', {
|
|
1368
1420
|
reason1: targetRole
|
|
@@ -1428,9 +1480,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1428
1480
|
}
|
|
1429
1481
|
}, {
|
|
1430
1482
|
key: "_playJoinLeaveSound",
|
|
1431
|
-
value: function _playJoinLeaveSound() {
|
|
1432
|
-
// TODO
|
|
1433
|
-
}
|
|
1483
|
+
value: function _playJoinLeaveSound() {}
|
|
1434
1484
|
}, {
|
|
1435
1485
|
key: "_lockRoom",
|
|
1436
1486
|
value: function _lockRoom(enable) {
|
|
@@ -1469,111 +1519,81 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1469
1519
|
}
|
|
1470
1520
|
}, {
|
|
1471
1521
|
key: "_updateUserBoardState",
|
|
1472
|
-
value: function _updateUserBoardState(
|
|
1473
|
-
var
|
|
1474
|
-
|
|
1475
|
-
ownerUserId =
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1522
|
+
value: function _updateUserBoardState() {
|
|
1523
|
+
var _boardInfo = this._roomControl.getBoardControl().getBoardActiveInfo();
|
|
1524
|
+
var isActive = _boardInfo.isActive,
|
|
1525
|
+
ownerUserId = _boardInfo.ownerUserId;
|
|
1526
|
+
this._dataSource.list.forEach(function (user) {
|
|
1527
|
+
var isBoardActive = isActive && user.userId === ownerUserId;
|
|
1528
|
+
user.setUserInfo(_objectSpread(_objectSpread({}, user.userInfo), {}, {
|
|
1529
|
+
isBoardActive: isBoardActive
|
|
1530
|
+
}));
|
|
1531
|
+
});
|
|
1532
|
+
this._dataSource.list = (0, _toConsumableArray2["default"])(this._dataSource.list);
|
|
1480
1533
|
}
|
|
1481
1534
|
}, {
|
|
1482
1535
|
key: "_handleRemoteUserJoined",
|
|
1483
1536
|
value: function _handleRemoteUserJoined(roomId, events) {
|
|
1484
|
-
var
|
|
1537
|
+
var _this11 = this;
|
|
1485
1538
|
events.forEach(function (event) {
|
|
1486
1539
|
var modifiedUser = event.modifiedUser;
|
|
1487
|
-
|
|
1488
|
-
|
|
1540
|
+
_this11._dataSource.add(modifiedUser, _this11._streamControl.getStreamsByUserId(modifiedUser.userId), modifiedUser.userId === _this11._localUser.userId);
|
|
1541
|
+
_this11._updateUserBoardState();
|
|
1489
1542
|
});
|
|
1490
1543
|
}
|
|
1491
1544
|
}, {
|
|
1492
1545
|
key: "_handleRemoteUserLeft",
|
|
1493
1546
|
value: function _handleRemoteUserLeft(roomId, events) {
|
|
1494
|
-
var
|
|
1547
|
+
var _this12 = this;
|
|
1495
1548
|
events.forEach(function (event) {
|
|
1496
1549
|
var modifiedUser = event.modifiedUser;
|
|
1497
|
-
|
|
1498
|
-
|
|
1550
|
+
_this12._dataSource["delete"](modifiedUser);
|
|
1551
|
+
_this12._updateUserBoardState();
|
|
1499
1552
|
});
|
|
1500
1553
|
}
|
|
1501
1554
|
}, {
|
|
1502
1555
|
key: "_handleRemoteWaitingUserJoined",
|
|
1503
1556
|
value: function _handleRemoteWaitingUserJoined(roomId, events) {
|
|
1504
|
-
var
|
|
1557
|
+
var _this13 = this;
|
|
1505
1558
|
events.forEach(function (event) {
|
|
1506
1559
|
var modifiedUser = event.modifiedUser;
|
|
1507
1560
|
if (modifiedUser.userRole === _type.FcrUserRole.PARTICIPANT) {
|
|
1508
|
-
|
|
1561
|
+
_this13._waitingRoomDataSource.add(modifiedUser, _this13._streamControl.getStreamsByUserId(modifiedUser.userId), modifiedUser.userId === _this13._localUser.userId);
|
|
1509
1562
|
// this._updateUserBoardState(modifiedUser);
|
|
1510
1563
|
}
|
|
1511
1564
|
});
|
|
1512
|
-
if (this.activeTab ===
|
|
1513
|
-
|
|
1514
|
-
}
|
|
1515
|
-
this.waitingRoomUserCount = this._getWaitingRoomUserCount();
|
|
1516
|
-
}
|
|
1517
|
-
}, {
|
|
1518
|
-
key: "_getWaitingRoomUserCount",
|
|
1519
|
-
value: function _getWaitingRoomUserCount() {
|
|
1520
|
-
var _this$_waitingRoomUse4;
|
|
1521
|
-
return (_this$_waitingRoomUse4 = this._waitingRoomUserControl) === null || _this$_waitingRoomUse4 === void 0 ? void 0 : _this$_waitingRoomUse4.getUserList().filter(function (user) {
|
|
1522
|
-
return user.userRole === _type.FcrUserRole.PARTICIPANT;
|
|
1523
|
-
}).length;
|
|
1565
|
+
// if (this.activeTab === FcrRoomType.Mainroom) {
|
|
1566
|
+
// this.isNewWaitingRoomUserEnter = true;
|
|
1567
|
+
// }
|
|
1568
|
+
// this.waitingRoomUserCount = this._getWaitingRoomUserCount() as number;
|
|
1524
1569
|
}
|
|
1570
|
+
|
|
1571
|
+
// private _getWaitingRoomUserCount() {
|
|
1572
|
+
// return this._waitingRoomUserControl
|
|
1573
|
+
// ?.getUserList()
|
|
1574
|
+
// .filter((user) => user.userRole === FcrUserRole.PARTICIPANT).length;
|
|
1575
|
+
// }
|
|
1525
1576
|
}, {
|
|
1526
1577
|
key: "_handleRemoteWaitingUserLeft",
|
|
1527
1578
|
value: function _handleRemoteWaitingUserLeft(roomId, events) {
|
|
1528
|
-
var
|
|
1579
|
+
var _this14 = this;
|
|
1529
1580
|
events.forEach(function (event) {
|
|
1530
1581
|
var modifiedUser = event.modifiedUser;
|
|
1531
|
-
|
|
1532
|
-
|
|
1582
|
+
_this14._waitingRoomDataSource["delete"](modifiedUser);
|
|
1583
|
+
// this._updateUserBoardState(modifiedUser);
|
|
1533
1584
|
});
|
|
1534
|
-
this.waitingRoomUserCount = this._getWaitingRoomUserCount();
|
|
1535
|
-
if (this._getWaitingRoomUserCount() === 0) {
|
|
1536
|
-
|
|
1537
|
-
}
|
|
1585
|
+
// this.waitingRoomUserCount = this._getWaitingRoomUserCount() as number;
|
|
1586
|
+
// if (this._getWaitingRoomUserCount() === 0) {
|
|
1587
|
+
// this.handleActiveTab(FcrRoomType.Mainroom);
|
|
1588
|
+
// }
|
|
1538
1589
|
}
|
|
1539
1590
|
}, {
|
|
1540
1591
|
key: "_handleUserInfoUpdated",
|
|
1541
1592
|
value: function _handleUserInfoUpdated(roomId, event) {
|
|
1542
|
-
|
|
1593
|
+
this.refreshList = Math.random();
|
|
1543
1594
|
var targetUser = event.modifiedUser;
|
|
1544
|
-
this.
|
|
1545
|
-
this.
|
|
1546
|
-
var originUser = (_this$userMap$get9 = this.userMap.get(targetUser.userId)) === null || _this$userMap$get9 === void 0 ? void 0 : _this$userMap$get9.userInfo;
|
|
1547
|
-
var _this$_localUser3 = this._localUser,
|
|
1548
|
-
localUserId = _this$_localUser3.userId,
|
|
1549
|
-
localUserRole = _this$_localUser3.userRole;
|
|
1550
|
-
var effectSelf = targetUser.userId === localUserId;
|
|
1551
|
-
if ((originUser === null || originUser === void 0 ? void 0 : originUser.userRole) !== targetUser.userRole) {
|
|
1552
|
-
// 参会者变管理
|
|
1553
|
-
if (targetUser.userRole === _type.FcrUserRole.HOST || targetUser.userRole === _type.FcrUserRole.COHOST) {
|
|
1554
|
-
var userTxt = targetUser.userRole === _type.FcrUserRole.HOST ? (0, _i18n.transI18n)('fmt_role_host') : (0, _i18n.transI18n)('fmt_role_cohost');
|
|
1555
|
-
this._uiEventStore.showToast({
|
|
1556
|
-
type: effectSelf ? 'info' : 'normal',
|
|
1557
|
-
message: effectSelf ? "".concat((0, _i18n.transI18n)('fmt_uimanager_labels_designate')).concat(userTxt) : (0, _i18n.transI18n)('fmt_uimanager_labels_Becoming', {
|
|
1558
|
-
reason1: "".concat(targetUser.userName, " ").concat(this._isHost(localUserRole) ? '' : (0, _i18n.transI18n)('fmt_pairicipant_label_Now')),
|
|
1559
|
-
reason2: userTxt
|
|
1560
|
-
})
|
|
1561
|
-
});
|
|
1562
|
-
}
|
|
1563
|
-
|
|
1564
|
-
// 管理变参会者
|
|
1565
|
-
if ((originUser === null || originUser === void 0 ? void 0 : originUser.userRole) === _type.FcrUserRole.COHOST && targetUser.userRole !== _type.FcrUserRole.COHOST) {
|
|
1566
|
-
this._uiEventStore.showToast({
|
|
1567
|
-
type: effectSelf ? 'error' : 'normal',
|
|
1568
|
-
message: effectSelf ? (0, _i18n.transI18n)('fmt_additional_tips_cohostbeenrevoke') : this._isHost(localUserRole) ? (0, _i18n.transI18n)('fmt_additional_tips_cohostbeenrevoke', {
|
|
1569
|
-
reason1: targetUser.userName
|
|
1570
|
-
}) : (0, _i18n.transI18n)('fmt_additional_tips_nolongercohost', {
|
|
1571
|
-
reason1: targetUser.userName
|
|
1572
|
-
}),
|
|
1573
|
-
duration: 3000
|
|
1574
|
-
});
|
|
1575
|
-
}
|
|
1576
|
-
}
|
|
1595
|
+
this._dataSource.updateUserInfo(targetUser, true);
|
|
1596
|
+
var localUserRole = this._localUser.userRole;
|
|
1577
1597
|
this._updateLocalUserRole(localUserRole);
|
|
1578
1598
|
this._refreshCurrentPerspectiveType();
|
|
1579
1599
|
}
|
|
@@ -1597,35 +1617,36 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1597
1617
|
}, {
|
|
1598
1618
|
key: "_handleStreamsAdded",
|
|
1599
1619
|
value: function _handleStreamsAdded(roomId, events) {
|
|
1600
|
-
var
|
|
1620
|
+
var _this15 = this;
|
|
1601
1621
|
events.forEach(function (e) {
|
|
1602
1622
|
var modifiedStream = e.modifiedStream;
|
|
1603
|
-
|
|
1623
|
+
_this15._dataSource.updateWithStreamAdd(modifiedStream);
|
|
1604
1624
|
});
|
|
1605
1625
|
}
|
|
1606
1626
|
}, {
|
|
1607
1627
|
key: "_handleStreamsUpdated",
|
|
1608
1628
|
value: function _handleStreamsUpdated(roomId, events) {
|
|
1609
|
-
var
|
|
1629
|
+
var _this16 = this;
|
|
1630
|
+
this.refreshList = Math.random();
|
|
1610
1631
|
events.forEach(function (e) {
|
|
1611
1632
|
var modifiedStream = e.modifiedStream;
|
|
1612
|
-
|
|
1633
|
+
_this16._dataSource.updateStreamInfo(modifiedStream);
|
|
1613
1634
|
});
|
|
1614
1635
|
}
|
|
1615
1636
|
}, {
|
|
1616
1637
|
key: "_handleStreamsRemoved",
|
|
1617
1638
|
value: function _handleStreamsRemoved(roomId, events) {
|
|
1618
|
-
var
|
|
1639
|
+
var _this17 = this;
|
|
1619
1640
|
events.forEach(function (e) {
|
|
1620
1641
|
var modifiedStream = e.modifiedStream;
|
|
1621
|
-
|
|
1642
|
+
_this17._dataSource.updateWithStreamRemove(modifiedStream);
|
|
1622
1643
|
});
|
|
1623
1644
|
}
|
|
1624
1645
|
}, {
|
|
1625
1646
|
key: "_refreshCurrentPerspectiveType",
|
|
1626
1647
|
value: function _refreshCurrentPerspectiveType() {
|
|
1627
|
-
var _this$
|
|
1628
|
-
var localUserUid = (_this$
|
|
1648
|
+
var _this$_localUser3;
|
|
1649
|
+
var localUserUid = (_this$_localUser3 = this._localUser) === null || _this$_localUser3 === void 0 ? void 0 : _this$_localUser3.userId;
|
|
1629
1650
|
if (!localUserUid) {
|
|
1630
1651
|
this.currentPerspectiveType = 'attendee';
|
|
1631
1652
|
return;
|
|
@@ -1648,13 +1669,13 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1648
1669
|
}, {
|
|
1649
1670
|
key: "_onPeerSessionReceived",
|
|
1650
1671
|
value: function _onPeerSessionReceived(session) {
|
|
1651
|
-
var _this$
|
|
1652
|
-
|
|
1672
|
+
var _this$_localUser4,
|
|
1673
|
+
_this18 = this;
|
|
1653
1674
|
if (session.sessionId && this._processedUserOpenDeviceRequests.has(session.sessionId)) {
|
|
1654
1675
|
return;
|
|
1655
1676
|
}
|
|
1656
1677
|
this._processedUserOpenDeviceRequests.add(session.sessionId);
|
|
1657
|
-
var localUserUid = (_this$
|
|
1678
|
+
var localUserUid = (_this$_localUser4 = this._localUser) === null || _this$_localUser4 === void 0 ? void 0 : _this$_localUser4.userId;
|
|
1658
1679
|
if (!localUserUid) {
|
|
1659
1680
|
return;
|
|
1660
1681
|
}
|
|
@@ -1673,8 +1694,8 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1673
1694
|
this._peerSessionControl.acceptPeerSession(session);
|
|
1674
1695
|
return;
|
|
1675
1696
|
}
|
|
1676
|
-
var
|
|
1677
|
-
sender =
|
|
1697
|
+
var _ref7 = payload,
|
|
1698
|
+
sender = _ref7.sender;
|
|
1678
1699
|
var dialogId = this.openConfirmDialog({
|
|
1679
1700
|
width: 400,
|
|
1680
1701
|
height: 166,
|
|
@@ -1685,13 +1706,13 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1685
1706
|
okText: (0, _i18n.transI18n)('fmt_additional_button_accept'),
|
|
1686
1707
|
cancelText: (0, _i18n.transI18n)('fmt_additional_button_refuse'),
|
|
1687
1708
|
onOk: function onOk() {
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1709
|
+
_this18._peerSessionControl.acceptPeerSession(session);
|
|
1710
|
+
_this18._deviceStreamStore.enableCameraWithPreCheck(true);
|
|
1711
|
+
_this18._uiEventStore.closeConfirm(dialogId);
|
|
1691
1712
|
},
|
|
1692
1713
|
onCancel: function onCancel() {
|
|
1693
|
-
|
|
1694
|
-
|
|
1714
|
+
_this18._peerSessionControl.rejectPeerSession(session);
|
|
1715
|
+
_this18._uiEventStore.closeConfirm(dialogId);
|
|
1695
1716
|
}
|
|
1696
1717
|
}, _type3.FcrUISessionKey.REQUEST_OPEN_CAMERA);
|
|
1697
1718
|
return;
|
|
@@ -1701,8 +1722,8 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1701
1722
|
this._peerSessionControl.acceptPeerSession(session);
|
|
1702
1723
|
return;
|
|
1703
1724
|
}
|
|
1704
|
-
var
|
|
1705
|
-
_sender =
|
|
1725
|
+
var _ref8 = payload,
|
|
1726
|
+
_sender = _ref8.sender;
|
|
1706
1727
|
var _dialogId = this.openConfirmDialog({
|
|
1707
1728
|
title: (0, _i18n.transI18n)('fmt_attendies_tips_apply_audio_title', {
|
|
1708
1729
|
reason1: (0, _i18n.transI18n)(_i18n2.userRoleI18nKey[_sender.userRole])
|
|
@@ -1711,13 +1732,13 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1711
1732
|
okText: (0, _i18n.transI18n)('fmt_device_label_audio_unmute'),
|
|
1712
1733
|
cancelText: (0, _i18n.transI18n)('fmt_additional_options_Keepsilent'),
|
|
1713
1734
|
onOk: function onOk() {
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1735
|
+
_this18._peerSessionControl.acceptPeerSession(session);
|
|
1736
|
+
_this18._deviceStreamStore.enableMicrophoneWithPreCheck(true);
|
|
1737
|
+
_this18._uiEventStore.closeConfirm(_dialogId);
|
|
1717
1738
|
},
|
|
1718
1739
|
onCancel: function onCancel() {
|
|
1719
|
-
|
|
1720
|
-
|
|
1740
|
+
_this18._peerSessionControl.rejectPeerSession(session);
|
|
1741
|
+
_this18._uiEventStore.closeConfirm(_dialogId);
|
|
1721
1742
|
},
|
|
1722
1743
|
width: 400,
|
|
1723
1744
|
height: 166
|
|
@@ -1792,26 +1813,23 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1792
1813
|
}]);
|
|
1793
1814
|
}();
|
|
1794
1815
|
_ParticipantStore = ParticipantStore;
|
|
1795
|
-
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ParticipantStore, [[_mobx.observable, 1, "_mainList"], [_mobx.observable, 1, "
|
|
1816
|
+
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ParticipantStore, [[_mobx.observable, 1, "_mainList"], [_mobx.observable, 1, "_isChecked"], [_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, "mergeConfirmDialog"], [_mobx.observable, 1, "mergeUserId"], [_mobx.observable, 1, "activeTab"], [_mobx.observable, 1, "interpreterInputLanguageList"], [_mobx.observable, 1, "newName"], [_mobx.observable, 1, "refreshList"], [_mobx.observable, 1, "allowUnmute"], [_mobx.observable, 1, "joinWithMuteAudio"], [_mobx.computed, 3, "enableSpotlight"], [_mobx.computed, 3, "userListSource"], [_mobx.computed, 3, "spotlightStreamId"], [_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"], [_mobx.computed, 3, "waitingRoomUserCount"], [_mobx.computed, 3, "isNewWaitingRoomUserEnter"], [_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"], [_setMuteAllDialogValueDecs, 18, "setMuteAllDialogValue"], [_openMuteAllDialogDecs, 18, "openMuteAllDialog"], [_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"], [_initWaitingRoomUserListDecs, 18, "_initWaitingRoomUserList"], [_kickOutUserDecs, 18, "_kickOutUser"], [_setAsAttendeeDecs, 18, "_setAsAttendee"], [_onAudioVolumeUpdatedDecs, 18, "_onAudioVolumeUpdated"], [_updateUserBoardStateDecs, 18, "_updateUserBoardState"], [_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, 18);
|
|
1796
1817
|
_init__mainList = _applyDecs$e[0];
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
_init_newName = _applyDecs$e[18];
|
|
1815
|
-
_init_refreshList = _applyDecs$e[19];
|
|
1816
|
-
_initProto = _applyDecs$e[20];
|
|
1818
|
+
_init__isChecked = _applyDecs$e[1];
|
|
1819
|
+
_init__participantsWindowActive = _applyDecs$e[2];
|
|
1820
|
+
_init_currentPerspectiveType = _applyDecs$e[3];
|
|
1821
|
+
_init_audioVolumeMap = _applyDecs$e[4];
|
|
1822
|
+
_init_enableParticipantsJoinWithMute = _applyDecs$e[5];
|
|
1823
|
+
_init_searchText = _applyDecs$e[6];
|
|
1824
|
+
_init_currentModal = _applyDecs$e[7];
|
|
1825
|
+
_init_localUserRole = _applyDecs$e[8];
|
|
1826
|
+
_init_mergeConfirmDialog = _applyDecs$e[9];
|
|
1827
|
+
_init_mergeUserId = _applyDecs$e[10];
|
|
1828
|
+
_init_activeTab = _applyDecs$e[11];
|
|
1829
|
+
_init_interpreterInputLanguageList = _applyDecs$e[12];
|
|
1830
|
+
_init_newName = _applyDecs$e[13];
|
|
1831
|
+
_init_refreshList = _applyDecs$e[14];
|
|
1832
|
+
_init_allowUnmute = _applyDecs$e[15];
|
|
1833
|
+
_init_joinWithMuteAudio = _applyDecs$e[16];
|
|
1834
|
+
_initProto = _applyDecs$e[17];
|
|
1817
1835
|
var StoreContext = exports.StoreContext = /*#__PURE__*/(0, _react.createContext)(null);
|