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
|
@@ -8,12 +8,10 @@ require("core-js/modules/es.error.to-string.js");
|
|
|
8
8
|
require("core-js/modules/es.array.is-array.js");
|
|
9
9
|
require("core-js/modules/es.date.to-primitive.js");
|
|
10
10
|
require("core-js/modules/es.function.name.js");
|
|
11
|
+
require("core-js/modules/es.number.constructor.js");
|
|
11
12
|
require("core-js/modules/es.object.create.js");
|
|
12
|
-
require("core-js/modules/es.object.define-properties.js");
|
|
13
13
|
require("core-js/modules/es.object.define-property.js");
|
|
14
14
|
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
15
|
-
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
16
|
-
require("core-js/modules/es.object.keys.js");
|
|
17
15
|
require("core-js/modules/esnext.function.metadata.js");
|
|
18
16
|
require("core-js/modules/esnext.symbol.metadata.js");
|
|
19
17
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -21,13 +19,13 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
21
19
|
Object.defineProperty(exports, "__esModule", {
|
|
22
20
|
value: true
|
|
23
21
|
});
|
|
24
|
-
exports["default"] = exports.
|
|
22
|
+
exports["default"] = exports.AudioConnectType = exports.ActionBarContext = void 0;
|
|
25
23
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
24
|
+
require("core-js/modules/es.array.concat.js");
|
|
26
25
|
require("core-js/modules/es.array.filter.js");
|
|
27
26
|
require("core-js/modules/es.array.find.js");
|
|
28
27
|
require("core-js/modules/es.array.find-index.js");
|
|
29
28
|
require("core-js/modules/es.array.for-each.js");
|
|
30
|
-
require("core-js/modules/es.array.includes.js");
|
|
31
29
|
require("core-js/modules/es.array.iterator.js");
|
|
32
30
|
require("core-js/modules/es.array.map.js");
|
|
33
31
|
require("core-js/modules/es.array.push.js");
|
|
@@ -37,18 +35,10 @@ require("core-js/modules/es.array.splice.js");
|
|
|
37
35
|
require("core-js/modules/es.date.to-string.js");
|
|
38
36
|
require("core-js/modules/es.function.bind.js");
|
|
39
37
|
require("core-js/modules/es.map.js");
|
|
40
|
-
require("core-js/modules/es.number.constructor.js");
|
|
41
38
|
require("core-js/modules/es.object.to-string.js");
|
|
42
39
|
require("core-js/modules/es.object.values.js");
|
|
43
|
-
require("core-js/modules/es.string.includes.js");
|
|
44
40
|
require("core-js/modules/es.string.iterator.js");
|
|
45
41
|
require("core-js/modules/es.weak-map.js");
|
|
46
|
-
require("core-js/modules/esnext.async-iterator.filter.js");
|
|
47
|
-
require("core-js/modules/esnext.async-iterator.find.js");
|
|
48
|
-
require("core-js/modules/esnext.async-iterator.for-each.js");
|
|
49
|
-
require("core-js/modules/esnext.async-iterator.map.js");
|
|
50
|
-
require("core-js/modules/esnext.async-iterator.reduce.js");
|
|
51
|
-
require("core-js/modules/esnext.async-iterator.some.js");
|
|
52
42
|
require("core-js/modules/esnext.iterator.constructor.js");
|
|
53
43
|
require("core-js/modules/esnext.iterator.filter.js");
|
|
54
44
|
require("core-js/modules/esnext.iterator.find.js");
|
|
@@ -86,22 +76,19 @@ var _fcrCore = require("fcr-core");
|
|
|
86
76
|
var _mobx = require("mobx");
|
|
87
77
|
var _type = require("fcr-core/lib/type");
|
|
88
78
|
var _decorator = require("agora-foundation/lib/decorator");
|
|
89
|
-
var _constant = require("../../utilities/constant");
|
|
90
|
-
var _type2 = require("../../type");
|
|
91
|
-
var _deviceStore = require("../../common/device-store");
|
|
92
79
|
var _env = require("agora-foundation/lib/utilities/env");
|
|
93
|
-
var
|
|
80
|
+
var _type2 = require("../whiteboard/type");
|
|
94
81
|
var _enums = require("fcr-core/lib/room-control/whiteboard-control/enums");
|
|
95
|
-
var
|
|
96
|
-
var
|
|
82
|
+
var _type3 = require("agora-ui-foundation/lib/components/icon/type");
|
|
83
|
+
var _type4 = require("agora-rte-sdk/lib/type");
|
|
97
84
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
98
|
-
var
|
|
99
|
-
var _type7 = require("fcr-core/lib/room-control/privilege-control/type");
|
|
85
|
+
var _type5 = require("fcr-core/lib/room-control/type");
|
|
100
86
|
var _react = require("react");
|
|
87
|
+
var _constant = require("../../utilities/constant");
|
|
88
|
+
var _interpreter = require("../../shared-data-source/interpreter");
|
|
89
|
+
var _enums2 = require("./enums");
|
|
101
90
|
var _ActionBarStore;
|
|
102
|
-
var _initProto, _init_users, _init_newMessageTooltipVisible,
|
|
103
|
-
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; }
|
|
104
|
-
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; }
|
|
91
|
+
var _initProto, _init_users, _init_newMessageTooltipVisible, _init_totalUser, _init_totalWaitingRoomUser, _init_liveStreamingState, _init_currentMenuIs, _init_cloudRecordingState, _init_localUserRole, _init_localUser, _init_connectionSettingVisible, _init_folded, _init_boardOwnerUser, _init_hasScreenShare, _init_showArrow, _init_phoneMicEnabled, _init_chatTabIndex, _init_popoverOpened, _init_stateBarLeaveMeeting, _init_isPstnUser, _init_interpreterUsersOffline, _pauseCloudRecordingDecs, _resumeCloudRecordingDecs, _stopCloudRecordingDecs, _toggleLayoutBarLockDecs, _showNewMessageTooltipDecs, _hideNewMessageTooltipDecs, _switchMenuDecs, _setPopoverOpenedDecs, _setStateBarLeaveMeetingDecs, _handleJoinWaitingRoomDecs, _toggleFoldDecs, _setShowArrowDecs, _setEnableWaitingRoomDecs, _kickOutWaitingRoomAllMemberDecs, _moveToMainRoomAllMemberDecs, _handleRemoteUsersJoinedDecs, _handleRemoteUsersLeftDecs, _handleAllUserCountUpdatedDecs, _handleUserInfoUpdatedDecs, _handleLiveStreamingStateUpdatedDecs, _handleChatVisibleDecs, _handlerTraceScreenCaptureStateUpdateDecs, _operateWaitingRoomDecs, _handleCloudRecordingStateUpdatedDecs, _handleStreamsAddedOrUpdatedDecs, _setOutputLanguageDecs, _subscribeLanguageDecs, _setSubscribeMainRoomDecs, _getInterpreterUsersAllOnlineDecs, _ref;
|
|
105
92
|
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
106
93
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
107
94
|
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
@@ -112,17 +99,6 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
112
99
|
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); }
|
|
113
100
|
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; }
|
|
114
101
|
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; }
|
|
115
|
-
var EventType = exports.EventType = /*#__PURE__*/function (EventType) {
|
|
116
|
-
EventType["START"] = "start";
|
|
117
|
-
EventType["STOP"] = "stop";
|
|
118
|
-
return EventType;
|
|
119
|
-
}({});
|
|
120
|
-
var MoreMenuType = exports.MoreMenuType = /*#__PURE__*/function (MoreMenuType) {
|
|
121
|
-
MoreMenuType[MoreMenuType["DEFAULT"] = 0] = "DEFAULT";
|
|
122
|
-
MoreMenuType[MoreMenuType["SECURITY"] = 1] = "SECURITY";
|
|
123
|
-
MoreMenuType[MoreMenuType["APPS"] = 2] = "APPS";
|
|
124
|
-
return MoreMenuType;
|
|
125
|
-
}({});
|
|
126
102
|
var AudioConnectType = exports.AudioConnectType = /*#__PURE__*/function (AudioConnectType) {
|
|
127
103
|
AudioConnectType[AudioConnectType["NONE"] = 0] = "NONE";
|
|
128
104
|
AudioConnectType[AudioConnectType["COMPUTER"] = 1] = "COMPUTER";
|
|
@@ -149,31 +125,20 @@ var _Q = /*#__PURE__*/new WeakMap();
|
|
|
149
125
|
var _R = /*#__PURE__*/new WeakMap();
|
|
150
126
|
var _S = /*#__PURE__*/new WeakMap();
|
|
151
127
|
var _T = /*#__PURE__*/new WeakMap();
|
|
152
|
-
var _U = /*#__PURE__*/new WeakMap();
|
|
153
|
-
var _V = /*#__PURE__*/new WeakMap();
|
|
154
|
-
var _W = /*#__PURE__*/new WeakMap();
|
|
155
|
-
var _X = /*#__PURE__*/new WeakMap();
|
|
156
|
-
var _Y = /*#__PURE__*/new WeakMap();
|
|
157
|
-
var _Z = /*#__PURE__*/new WeakMap();
|
|
158
|
-
var _a = /*#__PURE__*/new WeakMap();
|
|
159
|
-
var _b = /*#__PURE__*/new WeakMap();
|
|
160
|
-
var _c = /*#__PURE__*/new WeakMap();
|
|
161
128
|
_ref = (_pauseCloudRecordingDecs = [_decorator.bound, (0, _decorator.debounced)(500, {
|
|
162
129
|
leading: true
|
|
163
130
|
})], _resumeCloudRecordingDecs = [_decorator.bound, (0, _decorator.debounced)(500, {
|
|
164
131
|
leading: true
|
|
165
132
|
})], _stopCloudRecordingDecs = [_decorator.bound, (0, _decorator.debounced)(500, {
|
|
166
133
|
leading: true
|
|
167
|
-
})], _toggleLayoutBarLockDecs = [_mobx.action, _mobx.action.bound], _showNewMessageTooltipDecs = [_mobx.action, _mobx.action.bound], _hideNewMessageTooltipDecs = [_mobx.action, _mobx.action.bound], _switchMenuDecs = [_mobx.action, _mobx.action.bound],
|
|
134
|
+
})], _toggleLayoutBarLockDecs = [_mobx.action, _mobx.action.bound], _showNewMessageTooltipDecs = [_mobx.action, _mobx.action.bound], _hideNewMessageTooltipDecs = [_mobx.action, _mobx.action.bound], _switchMenuDecs = [_mobx.action, _mobx.action.bound], _setPopoverOpenedDecs = [_mobx.action, _mobx.action.bound], _setStateBarLeaveMeetingDecs = [_mobx.action, _mobx.action.bound], _handleJoinWaitingRoomDecs = [_mobx.action, _mobx.action.bound], _toggleFoldDecs = [_mobx.action, _mobx.action.bound], _setShowArrowDecs = [_mobx.action, _mobx.action.bound], _setEnableWaitingRoomDecs = [_mobx.action, _mobx.action.bound], _kickOutWaitingRoomAllMemberDecs = [_mobx.action, _mobx.action.bound], _moveToMainRoomAllMemberDecs = [_mobx.action, _mobx.action.bound], _handleRemoteUsersJoinedDecs = [_mobx.action, _mobx.action.bound], _handleRemoteUsersLeftDecs = [_mobx.action, _mobx.action.bound], _handleAllUserCountUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleUserInfoUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleLiveStreamingStateUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleChatVisibleDecs = [_mobx.action, _mobx.action.bound], _handlerTraceScreenCaptureStateUpdateDecs = [_mobx.action, _mobx.action.bound], _operateWaitingRoomDecs = [_mobx.action, _mobx.action.bound], _handleCloudRecordingStateUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleStreamsAddedOrUpdatedDecs = [_mobx.action, _mobx.action.bound], _setOutputLanguageDecs = [_mobx.action, _mobx.action.bound], _subscribeLanguageDecs = [_mobx.action, _mobx.action.bound], _setSubscribeMainRoomDecs = [_mobx.action, _mobx.action.bound], _getInterpreterUsersAllOnlineDecs = [_mobx.action, _mobx.action.bound], "logger");
|
|
168
135
|
var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
169
136
|
function ActionBarStore(args) {
|
|
170
137
|
var _this = this,
|
|
171
|
-
_this$
|
|
138
|
+
_this$_roomControl$ge;
|
|
172
139
|
(0, _classCallCheck2["default"])(this, ActionBarStore);
|
|
173
140
|
(0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.getLogger)()));
|
|
174
141
|
(0, _defineProperty2["default"])(this, "_disposers", []);
|
|
175
|
-
(0, _defineProperty2["default"])(this, "_chatRenderAt", 'aside');
|
|
176
|
-
(0, _defineProperty2["default"])(this, "_participantsRenderAt", 'aside');
|
|
177
142
|
(0, _defineProperty2["default"])(this, "_screenVideoTrack", null);
|
|
178
143
|
(0, _defineProperty2["default"])(this, "_userObserver", {
|
|
179
144
|
onRemoteUsersJoined: this._handleRemoteUsersJoined,
|
|
@@ -181,11 +146,14 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
181
146
|
onUserInfoUpdated: this._handleUserInfoUpdated,
|
|
182
147
|
onAllUserCountUpdated: this._handleAllUserCountUpdated
|
|
183
148
|
});
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
}
|
|
149
|
+
// private _waitingRoomUserObserver: FcrUserObserver = {
|
|
150
|
+
// onRemoteUsersJoined: this._handleRemoteWaitingUserJoined,
|
|
151
|
+
// onRemoteUsersLeft: this._handleRemoteWaitingUserLeft,
|
|
152
|
+
// };
|
|
188
153
|
(0, _defineProperty2["default"])(this, "_roomObserver", {
|
|
154
|
+
onJoinWaitingRoom: this._handleJoinWaitingRoom.bind(this)
|
|
155
|
+
});
|
|
156
|
+
(0, _defineProperty2["default"])(this, "_mainRoomObserver", {
|
|
189
157
|
onLiveStreamingStateUpdated: this._handleLiveStreamingStateUpdated,
|
|
190
158
|
onCloudRecordingStateUpdated: this._handleCloudRecordingStateUpdated
|
|
191
159
|
});
|
|
@@ -193,121 +161,84 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
193
161
|
onEvent: this._onEvent
|
|
194
162
|
});
|
|
195
163
|
(0, _defineProperty2["default"])(this, "_openedDialogIdMap", new Map());
|
|
196
|
-
(0, _defineProperty2["default"])(this, "_participantVisible", false);
|
|
197
|
-
(0, _defineProperty2["default"])(this, "_chatVisible", false);
|
|
198
|
-
(0, _defineProperty2["default"])(this, "_liveStreamingDialogId", '');
|
|
199
164
|
(0, _defineProperty2["default"])(this, "_newMessageTooltipTimer", null);
|
|
200
165
|
(0, _defineProperty2["default"])(this, "_hideBarArrowTimer", null);
|
|
201
166
|
(0, _defineProperty2["default"])(this, "_sharingOwnerUser", undefined);
|
|
202
|
-
(0, _defineProperty2["default"])(this, "
|
|
203
|
-
(0, _defineProperty2["default"])(this, "
|
|
204
|
-
|
|
205
|
-
|
|
167
|
+
(0, _defineProperty2["default"])(this, "_participantTab", _type5.FcrRoomType.Mainroom);
|
|
168
|
+
(0, _defineProperty2["default"])(this, "_streamObserver", {
|
|
169
|
+
onStreamsAdded: this._handleStreamsAddedOrUpdated,
|
|
170
|
+
onStreamsUpdated: this._handleStreamsAddedOrUpdated,
|
|
171
|
+
onStreamsRemoved: this._handleStreamsAddedOrUpdated
|
|
172
|
+
});
|
|
173
|
+
(0, _defineProperty2["default"])(this, "_interpreterObserver", {
|
|
174
|
+
onInterpreterUsersUpdated: function onInterpreterUsersUpdated() {
|
|
175
|
+
_this.interpreterUsersOffline = _this.getInterpreterUsersAllOnline();
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
(0, _defineProperty2["default"])(this, "_interpreterProviderObserver", {
|
|
179
|
+
onLocalBecameInterpreter: function onLocalBecameInterpreter() {},
|
|
180
|
+
onLocalNotInterpreter: function onLocalNotInterpreter() {}
|
|
181
|
+
});
|
|
206
182
|
_classPrivateFieldInitSpec(this, _A, _init_users(this));
|
|
207
183
|
_classPrivateFieldInitSpec(this, _B, _init_newMessageTooltipVisible(this, false));
|
|
208
|
-
_classPrivateFieldInitSpec(this, _C,
|
|
209
|
-
_classPrivateFieldInitSpec(this, _D,
|
|
210
|
-
_classPrivateFieldInitSpec(this, _E,
|
|
211
|
-
_classPrivateFieldInitSpec(this, _F,
|
|
212
|
-
_classPrivateFieldInitSpec(this, _G,
|
|
213
|
-
_classPrivateFieldInitSpec(this, _H,
|
|
214
|
-
_classPrivateFieldInitSpec(this, _I,
|
|
215
|
-
_classPrivateFieldInitSpec(this, _J,
|
|
216
|
-
_classPrivateFieldInitSpec(this, _K,
|
|
217
|
-
_classPrivateFieldInitSpec(this, _L,
|
|
218
|
-
_classPrivateFieldInitSpec(this, _M,
|
|
219
|
-
_classPrivateFieldInitSpec(this, _N,
|
|
220
|
-
_classPrivateFieldInitSpec(this, _O,
|
|
221
|
-
_classPrivateFieldInitSpec(this, _P,
|
|
222
|
-
_classPrivateFieldInitSpec(this, _Q,
|
|
223
|
-
_classPrivateFieldInitSpec(this, _R,
|
|
224
|
-
_classPrivateFieldInitSpec(this, _S,
|
|
225
|
-
_classPrivateFieldInitSpec(this, _T,
|
|
226
|
-
|
|
227
|
-
_classPrivateFieldInitSpec(this, _V, _init_stateBarLeaveMeeting(this, false));
|
|
228
|
-
_classPrivateFieldInitSpec(this, _W, _init_isPstnUser(this, false));
|
|
229
|
-
_classPrivateFieldInitSpec(this, _X, _init_interpreter(this));
|
|
230
|
-
_classPrivateFieldInitSpec(this, _Y, _init_interpreterState(this));
|
|
231
|
-
_classPrivateFieldInitSpec(this, _Z, _init_interpreterUsers(this));
|
|
232
|
-
_classPrivateFieldInitSpec(this, _a, _init_securityStore(this));
|
|
233
|
-
_classPrivateFieldInitSpec(this, _b, _init_interpreterUsersOffline(this, true));
|
|
234
|
-
_classPrivateFieldInitSpec(this, _c, _init_initShowGuide(this, true));
|
|
235
|
-
(0, _defineProperty2["default"])(this, "_handleNewMessageEvent", _init__handleNewMessageEvent(this, function (e) {
|
|
236
|
-
var _msgObj;
|
|
237
|
-
// if (this._chatVisible) return;
|
|
238
|
-
var msgObj = _objectSpread({}, _this.newMessageCount);
|
|
239
|
-
msgObj[e.type] = ((_msgObj = msgObj[e.type]) !== null && _msgObj !== void 0 ? _msgObj : 0) + Number(e.count);
|
|
240
|
-
_this.newMessageCount = _objectSpread({}, msgObj);
|
|
241
|
-
_this.latestMessage = e.latestMessage;
|
|
242
|
-
_this._newMessageTooltipTimer && clearTimeout(_this._newMessageTooltipTimer);
|
|
243
|
-
_this.showNewMessageTooltip();
|
|
244
|
-
_this._newMessageTooltipTimer = window.setTimeout(function () {
|
|
245
|
-
_this.hideNewMessageTooltip();
|
|
246
|
-
}, 4000);
|
|
247
|
-
}));
|
|
184
|
+
_classPrivateFieldInitSpec(this, _C, _init_totalUser(this));
|
|
185
|
+
_classPrivateFieldInitSpec(this, _D, _init_totalWaitingRoomUser(this, 0));
|
|
186
|
+
_classPrivateFieldInitSpec(this, _E, _init_liveStreamingState(this));
|
|
187
|
+
_classPrivateFieldInitSpec(this, _F, _init_currentMenuIs(this, _enums2.MoreMenuType.DEFAULT));
|
|
188
|
+
_classPrivateFieldInitSpec(this, _G, _init_cloudRecordingState(this));
|
|
189
|
+
_classPrivateFieldInitSpec(this, _H, _init_localUserRole(this));
|
|
190
|
+
_classPrivateFieldInitSpec(this, _I, _init_localUser(this));
|
|
191
|
+
_classPrivateFieldInitSpec(this, _J, _init_connectionSettingVisible(this, false));
|
|
192
|
+
_classPrivateFieldInitSpec(this, _K, _init_folded(this, false));
|
|
193
|
+
_classPrivateFieldInitSpec(this, _L, _init_boardOwnerUser(this, null));
|
|
194
|
+
_classPrivateFieldInitSpec(this, _M, _init_hasScreenShare(this, false));
|
|
195
|
+
_classPrivateFieldInitSpec(this, _N, _init_showArrow(this, false));
|
|
196
|
+
_classPrivateFieldInitSpec(this, _O, _init_phoneMicEnabled(this, false));
|
|
197
|
+
_classPrivateFieldInitSpec(this, _P, _init_chatTabIndex(this, _type5.FcrRoomType.Mainroom));
|
|
198
|
+
_classPrivateFieldInitSpec(this, _Q, _init_popoverOpened(this, false));
|
|
199
|
+
_classPrivateFieldInitSpec(this, _R, _init_stateBarLeaveMeeting(this, false));
|
|
200
|
+
_classPrivateFieldInitSpec(this, _S, _init_isPstnUser(this, false));
|
|
201
|
+
_classPrivateFieldInitSpec(this, _T, _init_interpreterUsersOffline(this, true));
|
|
202
|
+
this._roomProvider = args.roomProvider;
|
|
248
203
|
this._roomControl = args.roomControl;
|
|
249
|
-
this.
|
|
250
|
-
this.
|
|
251
|
-
this.
|
|
252
|
-
this.
|
|
253
|
-
this.
|
|
254
|
-
this.
|
|
255
|
-
this.
|
|
256
|
-
this.
|
|
204
|
+
this._deviceProvider = args.deviceProvider;
|
|
205
|
+
this._sharedLayoutDataSource = args.sharedLayoutDataSource;
|
|
206
|
+
this._eventProvider = args.eventProvider;
|
|
207
|
+
this._dialogProvider = args.dialogProvider;
|
|
208
|
+
this._messageProvider = args.messageProvider;
|
|
209
|
+
this._privilegeProvider = args.privilegeProvider;
|
|
210
|
+
this._deviceStreamProvider = args.deviceStreamProvider;
|
|
211
|
+
this._screenShareProvider = args.screenShareProvider;
|
|
212
|
+
this._sharedWaitingRoomDataSource = args.sharedWaitingRoomDataSource;
|
|
213
|
+
this._sharedInterpreterDataSource = args.sharedInterpreterDataSource;
|
|
214
|
+
this._sharedChatDataSource = args.sharedChatDataSource;
|
|
215
|
+
this._interpreterProvider = args.interpreterProvider;
|
|
216
|
+
this._sharedDevicePrivilegeDataSource = args.sharedDevicePrivilegeDataSource;
|
|
217
|
+
this._userControl = args.roomControl.getUserControl();
|
|
218
|
+
this._streamControl = args.roomControl.getStreamControl();
|
|
219
|
+
this._userControl = this._roomControl.getUserControl();
|
|
220
|
+
this._streamControl = this._roomControl.getStreamControl();
|
|
257
221
|
this.localUserRole = this._userControl.getLocalUser().userRole;
|
|
258
|
-
this.localUser =
|
|
222
|
+
this.localUser = this._userControl.getLocalUser();
|
|
223
|
+
this._roomType = (_this$_roomControl$ge = this._roomControl.getRoomInfo()) === null || _this$_roomControl$ge === void 0 ? void 0 : _this$_roomControl$ge.roomType;
|
|
259
224
|
this.users = Object.values(this._userControl.getUsers());
|
|
260
225
|
this.liveStreamingState = this._roomControl.getLiveStreamingState();
|
|
261
226
|
this.cloudRecordingState = this._roomControl.getCloudRecordingState();
|
|
262
227
|
this.totalUser = this._userControl.getAllUserCount();
|
|
263
|
-
this._microponeInitCount = this.microphoneList.length;
|
|
264
|
-
this._speakerInitCount = this.speakerList.length;
|
|
265
|
-
this._interpreterControl = args.interpreterControl;
|
|
266
|
-
this._roomStore = args.roomStore;
|
|
267
|
-
this.interpreter = this.getInterpreter();
|
|
268
|
-
this.interpreterState = this.getInterpreterState();
|
|
269
|
-
this.interpreterUsers = this.getInterpreterUsers('constructor');
|
|
270
228
|
this.interpreterUsersOffline = this.getInterpreterUsersAllOnline();
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
_this.interpreterUsers = _this.getInterpreterUsers('onInterpreterUsersUpdated');
|
|
274
|
-
_this.interpreter = _this.getInterpreter();
|
|
275
|
-
_this.interpreterUsersOffline = _this.getInterpreterUsersAllOnline();
|
|
276
|
-
},
|
|
277
|
-
onInterpreterStateUpdated: function onInterpreterStateUpdated() {
|
|
278
|
-
_this.interpreterUsers = _this.getInterpreterUsers('onInterpreterStateUpdated');
|
|
279
|
-
_this.interpreter = _this.getInterpreter();
|
|
280
|
-
var updatedInterpreterState = _this.getInterpreterState();
|
|
281
|
-
if (!_this.interpreterState && updatedInterpreterState) {
|
|
282
|
-
_this.setInitShowGuide(true);
|
|
283
|
-
}
|
|
284
|
-
_this.interpreterState = updatedInterpreterState;
|
|
285
|
-
}
|
|
286
|
-
});
|
|
287
|
-
this._userControl.addObserver(this._userObserver);
|
|
288
|
-
this._roomControl.addObserver(this._roomObserver);
|
|
289
|
-
this._streamControl.addObserver({
|
|
290
|
-
onStreamsAdded: this._handleStreamsAddedOrUpdated,
|
|
291
|
-
onStreamsUpdated: this._handleStreamsAddedOrUpdated,
|
|
292
|
-
onStreamsRemoved: this._handleStreamsAddedOrUpdated
|
|
293
|
-
});
|
|
294
|
-
this._roomStore.addObserver({
|
|
295
|
-
onJoinWaitingRoom: function onJoinWaitingRoom(roomControl) {
|
|
296
|
-
_this._waitingRoomControl = roomControl;
|
|
297
|
-
var waitingRoomUserControl = roomControl.getUserControl();
|
|
298
|
-
waitingRoomUserControl.addObserver(_this._waitingRoomUserObserver);
|
|
299
|
-
_this.newMessageCount = (0, _defineProperty2["default"])({}, _constant.RoomType.WAITING_ROOM, 0);
|
|
300
|
-
}
|
|
301
|
-
});
|
|
302
|
-
this._uiEventStore.addObserver(this._uiEventObserver);
|
|
303
|
-
this._deviceStore.addObserver({
|
|
304
|
-
onMicrophoneChanged: function onMicrophoneChanged(microphoneId) {
|
|
305
|
-
_this.connectType = microphoneId ? _deviceStore.ConnectType.COMPUTER : _deviceStore.ConnectType.NONE;
|
|
306
|
-
}
|
|
307
|
-
});
|
|
308
|
-
this._observer = {
|
|
309
|
-
onScreenCaptureStateUpdated: this._handlerTraceScreenCaptureStateUpdate.bind(this)
|
|
229
|
+
this._screenObserver = {
|
|
230
|
+
onScreenCaptureStateUpdated: this._handlerTraceScreenCaptureStateUpdate
|
|
310
231
|
};
|
|
232
|
+
this._userControl.addObserver(this._userObserver);
|
|
233
|
+
this._roomControl.addObserver(this._mainRoomObserver);
|
|
234
|
+
this._streamControl.addObserver(this._streamObserver);
|
|
235
|
+
this._eventProvider.addObserver(this._uiEventObserver);
|
|
236
|
+
if (this._roomType === _type5.FcrRoomType.Mainroom) {
|
|
237
|
+
this._interpreterControl = this._roomControl.getInterpreterControl();
|
|
238
|
+
this._interpreterControl.addObserver(this._interpreterObserver);
|
|
239
|
+
this._roomProvider.addObserver(this._roomObserver);
|
|
240
|
+
this._interpreterProvider.addObserver(this._interpreterProviderObserver);
|
|
241
|
+
}
|
|
311
242
|
this._disposers.push((0, _mobx.reaction)(function () {
|
|
312
243
|
return _this.cloudRecordingState;
|
|
313
244
|
}, function (state) {
|
|
@@ -318,13 +249,43 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
318
249
|
message = (0, _i18n.transI18n)('fmt_actionbar_button_disable');
|
|
319
250
|
}
|
|
320
251
|
if (message) {
|
|
321
|
-
_this.
|
|
252
|
+
_this._messageProvider.showToast({
|
|
322
253
|
type: 'normal',
|
|
323
254
|
message: (0, _i18n.transI18n)('fmt_actionbar_tips_cloudrecording_already', {
|
|
324
255
|
reason1: message
|
|
325
256
|
})
|
|
326
257
|
});
|
|
327
258
|
}
|
|
259
|
+
}), (0, _mobx.reaction)(function () {
|
|
260
|
+
return _this.chatVisible;
|
|
261
|
+
}, function (chatVisible) {
|
|
262
|
+
if (chatVisible) {
|
|
263
|
+
_this._handleChatVisible(true);
|
|
264
|
+
} else {
|
|
265
|
+
_this._handleChatVisible(false);
|
|
266
|
+
}
|
|
267
|
+
}),
|
|
268
|
+
// reaction(
|
|
269
|
+
// () => this._sharedWaitingRoomDataSource.totalWaitingRoomUser,
|
|
270
|
+
// (totalWaitingRoomUser) => {
|
|
271
|
+
// if (totalWaitingRoomUser === 0) {
|
|
272
|
+
// this.newMessageCount = {
|
|
273
|
+
// ...this.newMessageCount,
|
|
274
|
+
// [FcrRoomType.Waitingroom]: 0,
|
|
275
|
+
// };
|
|
276
|
+
// }
|
|
277
|
+
// },
|
|
278
|
+
// ),
|
|
279
|
+
(0, _mobx.reaction)(function () {
|
|
280
|
+
return _this.newMessageCount;
|
|
281
|
+
}, function (count) {
|
|
282
|
+
if (count[_type5.FcrRoomType.Mainroom] && count[_type5.FcrRoomType.Mainroom] > 0) {
|
|
283
|
+
_this._newMessageTooltipTimer && clearTimeout(_this._newMessageTooltipTimer);
|
|
284
|
+
_this.showNewMessageTooltip();
|
|
285
|
+
_this._newMessageTooltipTimer = window.setTimeout(function () {
|
|
286
|
+
_this.hideNewMessageTooltip();
|
|
287
|
+
}, 4000);
|
|
288
|
+
}
|
|
328
289
|
}));
|
|
329
290
|
}
|
|
330
291
|
return (0, _createClass2["default"])(ActionBarStore, [{
|
|
@@ -344,7 +305,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
344
305
|
_classPrivateFieldSet(_B, this, v);
|
|
345
306
|
}
|
|
346
307
|
}, {
|
|
347
|
-
key: "
|
|
308
|
+
key: "totalUser",
|
|
348
309
|
get: function get() {
|
|
349
310
|
return _classPrivateFieldGet(_C, this);
|
|
350
311
|
},
|
|
@@ -352,7 +313,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
352
313
|
_classPrivateFieldSet(_C, this, v);
|
|
353
314
|
}
|
|
354
315
|
}, {
|
|
355
|
-
key: "
|
|
316
|
+
key: "totalWaitingRoomUser",
|
|
356
317
|
get: function get() {
|
|
357
318
|
return _classPrivateFieldGet(_D, this);
|
|
358
319
|
},
|
|
@@ -360,7 +321,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
360
321
|
_classPrivateFieldSet(_D, this, v);
|
|
361
322
|
}
|
|
362
323
|
}, {
|
|
363
|
-
key: "
|
|
324
|
+
key: "liveStreamingState",
|
|
364
325
|
get: function get() {
|
|
365
326
|
return _classPrivateFieldGet(_E, this);
|
|
366
327
|
},
|
|
@@ -368,7 +329,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
368
329
|
_classPrivateFieldSet(_E, this, v);
|
|
369
330
|
}
|
|
370
331
|
}, {
|
|
371
|
-
key: "
|
|
332
|
+
key: "currentMenuIs",
|
|
372
333
|
get: function get() {
|
|
373
334
|
return _classPrivateFieldGet(_F, this);
|
|
374
335
|
},
|
|
@@ -376,7 +337,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
376
337
|
_classPrivateFieldSet(_F, this, v);
|
|
377
338
|
}
|
|
378
339
|
}, {
|
|
379
|
-
key: "
|
|
340
|
+
key: "cloudRecordingState",
|
|
380
341
|
get: function get() {
|
|
381
342
|
return _classPrivateFieldGet(_G, this);
|
|
382
343
|
},
|
|
@@ -384,7 +345,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
384
345
|
_classPrivateFieldSet(_G, this, v);
|
|
385
346
|
}
|
|
386
347
|
}, {
|
|
387
|
-
key: "
|
|
348
|
+
key: "localUserRole",
|
|
388
349
|
get: function get() {
|
|
389
350
|
return _classPrivateFieldGet(_H, this);
|
|
390
351
|
},
|
|
@@ -392,7 +353,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
392
353
|
_classPrivateFieldSet(_H, this, v);
|
|
393
354
|
}
|
|
394
355
|
}, {
|
|
395
|
-
key: "
|
|
356
|
+
key: "localUser",
|
|
396
357
|
get: function get() {
|
|
397
358
|
return _classPrivateFieldGet(_I, this);
|
|
398
359
|
},
|
|
@@ -400,7 +361,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
400
361
|
_classPrivateFieldSet(_I, this, v);
|
|
401
362
|
}
|
|
402
363
|
}, {
|
|
403
|
-
key: "
|
|
364
|
+
key: "connectionSettingVisible",
|
|
404
365
|
get: function get() {
|
|
405
366
|
return _classPrivateFieldGet(_J, this);
|
|
406
367
|
},
|
|
@@ -408,7 +369,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
408
369
|
_classPrivateFieldSet(_J, this, v);
|
|
409
370
|
}
|
|
410
371
|
}, {
|
|
411
|
-
key: "
|
|
372
|
+
key: "folded",
|
|
412
373
|
get: function get() {
|
|
413
374
|
return _classPrivateFieldGet(_K, this);
|
|
414
375
|
},
|
|
@@ -416,7 +377,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
416
377
|
_classPrivateFieldSet(_K, this, v);
|
|
417
378
|
}
|
|
418
379
|
}, {
|
|
419
|
-
key: "
|
|
380
|
+
key: "boardOwnerUser",
|
|
420
381
|
get: function get() {
|
|
421
382
|
return _classPrivateFieldGet(_L, this);
|
|
422
383
|
},
|
|
@@ -424,7 +385,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
424
385
|
_classPrivateFieldSet(_L, this, v);
|
|
425
386
|
}
|
|
426
387
|
}, {
|
|
427
|
-
key: "
|
|
388
|
+
key: "hasScreenShare",
|
|
428
389
|
get: function get() {
|
|
429
390
|
return _classPrivateFieldGet(_M, this);
|
|
430
391
|
},
|
|
@@ -432,7 +393,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
432
393
|
_classPrivateFieldSet(_M, this, v);
|
|
433
394
|
}
|
|
434
395
|
}, {
|
|
435
|
-
key: "
|
|
396
|
+
key: "showArrow",
|
|
436
397
|
get: function get() {
|
|
437
398
|
return _classPrivateFieldGet(_N, this);
|
|
438
399
|
},
|
|
@@ -440,7 +401,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
440
401
|
_classPrivateFieldSet(_N, this, v);
|
|
441
402
|
}
|
|
442
403
|
}, {
|
|
443
|
-
key: "
|
|
404
|
+
key: "phoneMicEnabled",
|
|
444
405
|
get: function get() {
|
|
445
406
|
return _classPrivateFieldGet(_O, this);
|
|
446
407
|
},
|
|
@@ -448,7 +409,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
448
409
|
_classPrivateFieldSet(_O, this, v);
|
|
449
410
|
}
|
|
450
411
|
}, {
|
|
451
|
-
key: "
|
|
412
|
+
key: "chatTabIndex",
|
|
452
413
|
get: function get() {
|
|
453
414
|
return _classPrivateFieldGet(_P, this);
|
|
454
415
|
},
|
|
@@ -456,7 +417,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
456
417
|
_classPrivateFieldSet(_P, this, v);
|
|
457
418
|
}
|
|
458
419
|
}, {
|
|
459
|
-
key: "
|
|
420
|
+
key: "popoverOpened",
|
|
460
421
|
get: function get() {
|
|
461
422
|
return _classPrivateFieldGet(_Q, this);
|
|
462
423
|
},
|
|
@@ -464,7 +425,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
464
425
|
_classPrivateFieldSet(_Q, this, v);
|
|
465
426
|
}
|
|
466
427
|
}, {
|
|
467
|
-
key: "
|
|
428
|
+
key: "stateBarLeaveMeeting",
|
|
468
429
|
get: function get() {
|
|
469
430
|
return _classPrivateFieldGet(_R, this);
|
|
470
431
|
},
|
|
@@ -472,7 +433,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
472
433
|
_classPrivateFieldSet(_R, this, v);
|
|
473
434
|
}
|
|
474
435
|
}, {
|
|
475
|
-
key: "
|
|
436
|
+
key: "isPstnUser",
|
|
476
437
|
get: function get() {
|
|
477
438
|
return _classPrivateFieldGet(_S, this);
|
|
478
439
|
},
|
|
@@ -480,7 +441,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
480
441
|
_classPrivateFieldSet(_S, this, v);
|
|
481
442
|
}
|
|
482
443
|
}, {
|
|
483
|
-
key: "
|
|
444
|
+
key: "interpreterUsersOffline",
|
|
484
445
|
get: function get() {
|
|
485
446
|
return _classPrivateFieldGet(_T, this);
|
|
486
447
|
},
|
|
@@ -488,77 +449,78 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
488
449
|
_classPrivateFieldSet(_T, this, v);
|
|
489
450
|
}
|
|
490
451
|
}, {
|
|
491
|
-
key: "
|
|
452
|
+
key: "interpreter",
|
|
492
453
|
get: function get() {
|
|
493
|
-
return
|
|
494
|
-
},
|
|
495
|
-
set: function set(v) {
|
|
496
|
-
_classPrivateFieldSet(_U, this, v);
|
|
454
|
+
return this._sharedInterpreterDataSource.interpreterInfo;
|
|
497
455
|
}
|
|
498
456
|
}, {
|
|
499
|
-
key: "
|
|
457
|
+
key: "interpreterUsers",
|
|
500
458
|
get: function get() {
|
|
501
|
-
return
|
|
502
|
-
},
|
|
503
|
-
set: function set(v) {
|
|
504
|
-
_classPrivateFieldSet(_V, this, v);
|
|
459
|
+
return this._sharedInterpreterDataSource.interpreterUsers;
|
|
505
460
|
}
|
|
506
461
|
}, {
|
|
507
|
-
key: "
|
|
462
|
+
key: "interpreterState",
|
|
508
463
|
get: function get() {
|
|
509
|
-
return
|
|
510
|
-
},
|
|
511
|
-
set: function set(v) {
|
|
512
|
-
_classPrivateFieldSet(_W, this, v);
|
|
464
|
+
return this._sharedInterpreterDataSource.interpreterOff;
|
|
513
465
|
}
|
|
514
466
|
}, {
|
|
515
|
-
key: "
|
|
467
|
+
key: "outputLanguage",
|
|
516
468
|
get: function get() {
|
|
517
|
-
return
|
|
518
|
-
},
|
|
519
|
-
set: function set(v) {
|
|
520
|
-
_classPrivateFieldSet(_X, this, v);
|
|
469
|
+
return this._sharedInterpreterDataSource.outputLanguage;
|
|
521
470
|
}
|
|
522
471
|
}, {
|
|
523
|
-
key: "
|
|
472
|
+
key: "subscribeLanguageList",
|
|
524
473
|
get: function get() {
|
|
525
|
-
return
|
|
526
|
-
},
|
|
527
|
-
set: function set(v) {
|
|
528
|
-
_classPrivateFieldSet(_Y, this, v);
|
|
474
|
+
return this._sharedInterpreterDataSource.subscribeLanguageList;
|
|
529
475
|
}
|
|
530
476
|
}, {
|
|
531
|
-
key: "
|
|
477
|
+
key: "preSubscribeLanguageList",
|
|
532
478
|
get: function get() {
|
|
533
|
-
return
|
|
534
|
-
},
|
|
535
|
-
set: function set(v) {
|
|
536
|
-
_classPrivateFieldSet(_Z, this, v);
|
|
479
|
+
return this._sharedInterpreterDataSource.preSubscribeLanguageList;
|
|
537
480
|
}
|
|
538
481
|
}, {
|
|
539
|
-
key: "
|
|
482
|
+
key: "subscribeLanguageOptionList",
|
|
540
483
|
get: function get() {
|
|
541
|
-
return
|
|
542
|
-
},
|
|
543
|
-
set: function set(v) {
|
|
544
|
-
_classPrivateFieldSet(_a, this, v);
|
|
484
|
+
return this._sharedInterpreterDataSource.subscribeLanguageOptionList;
|
|
545
485
|
}
|
|
546
486
|
}, {
|
|
547
|
-
key: "
|
|
487
|
+
key: "isNewWaitingRoomUserEnter",
|
|
548
488
|
get: function get() {
|
|
549
|
-
return
|
|
550
|
-
},
|
|
551
|
-
set: function set(v) {
|
|
552
|
-
_classPrivateFieldSet(_b, this, v);
|
|
489
|
+
return this._sharedWaitingRoomDataSource.unReadState;
|
|
553
490
|
}
|
|
554
491
|
}, {
|
|
555
|
-
key: "
|
|
492
|
+
key: "privilegeProvider",
|
|
556
493
|
get: function get() {
|
|
557
|
-
return
|
|
558
|
-
}
|
|
559
|
-
|
|
560
|
-
|
|
494
|
+
return this._privilegeProvider;
|
|
495
|
+
}
|
|
496
|
+
}, {
|
|
497
|
+
key: "asideLayout",
|
|
498
|
+
get: function get() {
|
|
499
|
+
var _this$_sharedLayoutDa;
|
|
500
|
+
return (_this$_sharedLayoutDa = this._sharedLayoutDataSource) === null || _this$_sharedLayoutDa === void 0 ? void 0 : _this$_sharedLayoutDa.asideLayout;
|
|
561
501
|
}
|
|
502
|
+
}, {
|
|
503
|
+
key: "chatRenderAt",
|
|
504
|
+
get: function get() {
|
|
505
|
+
return this._sharedLayoutDataSource.chatRenderAt;
|
|
506
|
+
}
|
|
507
|
+
}, {
|
|
508
|
+
key: "participantsRenderAt",
|
|
509
|
+
get: function get() {
|
|
510
|
+
return this._sharedLayoutDataSource.participantsRenderAt;
|
|
511
|
+
}
|
|
512
|
+
}, {
|
|
513
|
+
key: "participantVisible",
|
|
514
|
+
get: function get() {
|
|
515
|
+
return this._sharedLayoutDataSource.asideLayout.participant;
|
|
516
|
+
}
|
|
517
|
+
}, {
|
|
518
|
+
key: "chatVisible",
|
|
519
|
+
get: function get() {
|
|
520
|
+
return this._sharedLayoutDataSource.asideLayout.chat;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
// REPEAT:Users
|
|
562
524
|
}, {
|
|
563
525
|
key: "remoteUsers",
|
|
564
526
|
get: function get() {
|
|
@@ -570,190 +532,180 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
570
532
|
}, {
|
|
571
533
|
key: "hasStartScreenSharePermission",
|
|
572
534
|
get: function get() {
|
|
573
|
-
return this.
|
|
535
|
+
return this._privilegeProvider.hasStartScreenSharePermission();
|
|
536
|
+
}
|
|
537
|
+
}, {
|
|
538
|
+
key: "hasStopScreenSharePermission",
|
|
539
|
+
get: function get() {
|
|
540
|
+
var _this$_sharingOwnerUs;
|
|
541
|
+
return this.hasScreenShare && this.hasEnableStartScreenSharePermission && this._sharingOwnerUser && this.localUser.userId !== ((_this$_sharingOwnerUs = this._sharingOwnerUser) === null || _this$_sharingOwnerUs === void 0 ? void 0 : _this$_sharingOwnerUs.userId);
|
|
542
|
+
}
|
|
543
|
+
}, {
|
|
544
|
+
key: "sharingOwnerUser",
|
|
545
|
+
get: function get() {
|
|
546
|
+
return this._sharingOwnerUser;
|
|
547
|
+
}
|
|
548
|
+
}, {
|
|
549
|
+
key: "hasEnableStartScreenSharePermission",
|
|
550
|
+
get: function get() {
|
|
551
|
+
var _this$sharingOwnerUse;
|
|
552
|
+
return this._privilegeProvider.hasStopScreenSharePermission((_this$sharingOwnerUse = this.sharingOwnerUser) === null || _this$sharingOwnerUse === void 0 ? void 0 : _this$sharingOwnerUse.userRole);
|
|
574
553
|
}
|
|
575
554
|
}, {
|
|
576
555
|
key: "hasStartLiveStreamingPermission",
|
|
577
556
|
get: function get() {
|
|
578
|
-
return this.
|
|
557
|
+
return this._privilegeProvider.hasStartLiveStreamingPermission();
|
|
579
558
|
}
|
|
580
559
|
}, {
|
|
581
560
|
key: "hasEnableStartAudioPermission",
|
|
582
561
|
get: function get() {
|
|
583
|
-
return this.
|
|
562
|
+
return this._privilegeProvider.hasEnableStartAudioPermission();
|
|
584
563
|
}
|
|
585
564
|
}, {
|
|
586
565
|
key: "hasEnableChangeNamePermission",
|
|
587
566
|
get: function get() {
|
|
588
|
-
return this.
|
|
567
|
+
return this._privilegeProvider.hasEnableChangeNamePermission();
|
|
589
568
|
}
|
|
590
569
|
}, {
|
|
591
570
|
key: "hasEnableStartVideoPermission",
|
|
592
571
|
get: function get() {
|
|
593
|
-
return this.
|
|
572
|
+
return this._privilegeProvider.hasEnableStartVideoPermission();
|
|
594
573
|
}
|
|
595
574
|
}, {
|
|
596
575
|
key: "hasLockRoomPermission",
|
|
597
576
|
get: function get() {
|
|
598
|
-
return this.
|
|
577
|
+
return this._privilegeProvider.hasLockRoomPermission();
|
|
599
578
|
}
|
|
600
579
|
}, {
|
|
601
580
|
key: "hasEnableJoinWithAudioPermission",
|
|
602
581
|
get: function get() {
|
|
603
|
-
return this.
|
|
582
|
+
return this._privilegeProvider.hasEnableJoinWithAudioPermission();
|
|
604
583
|
}
|
|
605
584
|
}, {
|
|
606
585
|
key: "hasWaitingRoomPermission",
|
|
607
586
|
get: function get() {
|
|
608
|
-
return this.
|
|
587
|
+
return this._privilegeProvider.hasWaitingRoomPermission();
|
|
609
588
|
}
|
|
610
589
|
}, {
|
|
611
590
|
key: "hasWatermarkEnablePermission",
|
|
612
591
|
get: function get() {
|
|
613
|
-
return this.
|
|
592
|
+
return this._privilegeProvider.hasWatermarkEnablePermission();
|
|
614
593
|
}
|
|
615
594
|
}, {
|
|
616
595
|
key: "hasWatermarkDisablePermission",
|
|
617
596
|
get: function get() {
|
|
618
|
-
return this.
|
|
597
|
+
return this._privilegeProvider.hasWatermarkDisablePermission();
|
|
619
598
|
}
|
|
620
599
|
}, {
|
|
621
600
|
key: "hasEnableStartSharePermission",
|
|
622
601
|
get: function get() {
|
|
623
|
-
return this.
|
|
602
|
+
return this._privilegeProvider.hasEnableStartScreenSharePermission();
|
|
624
603
|
}
|
|
625
604
|
}, {
|
|
626
605
|
key: "hasAllowWriteBoardPermission",
|
|
627
606
|
get: function get() {
|
|
628
|
-
return this.
|
|
607
|
+
return this._privilegeProvider.hasAllowWriteBoardPermission();
|
|
629
608
|
}
|
|
630
609
|
}, {
|
|
631
610
|
key: "hasCloseWriteBoardPermission",
|
|
632
611
|
get: function get() {
|
|
633
|
-
|
|
612
|
+
var _this$boardOwnerUser;
|
|
613
|
+
return this._privilegeProvider.hasCloseBoardPermission((_this$boardOwnerUser = this.boardOwnerUser) === null || _this$boardOwnerUser === void 0 ? void 0 : _this$boardOwnerUser.userRole);
|
|
634
614
|
}
|
|
635
615
|
}, {
|
|
636
616
|
key: "hasAllowScreenShareAndBoardPermission",
|
|
637
617
|
get: function get() {
|
|
638
|
-
return this.
|
|
618
|
+
return this._privilegeProvider.hasAllowScreenShareAndBoardPermission();
|
|
639
619
|
}
|
|
640
620
|
}, {
|
|
641
621
|
key: "hasAllowChatPermission",
|
|
642
622
|
get: function get() {
|
|
643
|
-
return this.
|
|
623
|
+
return this._privilegeProvider.hasPermissionToControlAllowSendAll();
|
|
644
624
|
}
|
|
645
625
|
}, {
|
|
646
626
|
key: "hasStartCloudRecordingPermission",
|
|
647
627
|
get: function get() {
|
|
648
|
-
return this.
|
|
628
|
+
return this._privilegeProvider.hasStartCloudRecordingPermission();
|
|
649
629
|
}
|
|
650
630
|
}, {
|
|
651
631
|
key: "hasAssignHostBeforeLeavingPermission",
|
|
652
632
|
get: function get() {
|
|
653
|
-
return this.
|
|
633
|
+
return this._privilegeProvider.hasAssignHostBeforeLeavingPermission(this.localUserRole);
|
|
654
634
|
}
|
|
655
635
|
}, {
|
|
656
636
|
key: "hasEndRoomPermission",
|
|
657
637
|
get: function get() {
|
|
658
|
-
return this.
|
|
638
|
+
return this._privilegeProvider.hasEndRoomPermission();
|
|
659
639
|
}
|
|
660
640
|
}, {
|
|
661
641
|
key: "isScreenShareAndBoardEnabled",
|
|
662
642
|
get: function get() {
|
|
663
|
-
return this.
|
|
643
|
+
return this._privilegeProvider.allowScreenShareAndBoard();
|
|
664
644
|
}
|
|
665
645
|
}, {
|
|
666
646
|
key: "isBoardWriteEnabled",
|
|
667
647
|
get: function get() {
|
|
668
|
-
return this.
|
|
648
|
+
return this._privilegeProvider.allowBoardWrite();
|
|
669
649
|
}
|
|
670
650
|
}, {
|
|
671
651
|
key: "isWaterMarkEnabled",
|
|
672
652
|
get: function get() {
|
|
673
|
-
return this.
|
|
653
|
+
return this._privilegeProvider.isWaterMarkEnabled();
|
|
674
654
|
}
|
|
675
655
|
}, {
|
|
676
656
|
key: "isMulti",
|
|
677
657
|
get: function get() {
|
|
678
|
-
return this.
|
|
658
|
+
return this._privilegeProvider.isMulti();
|
|
679
659
|
}
|
|
680
660
|
}, {
|
|
681
661
|
key: "hasEnableInterpreterPermission",
|
|
682
662
|
get: function get() {
|
|
683
|
-
return this.
|
|
663
|
+
return this._privilegeProvider.hasEnableInterpreterPermission();
|
|
684
664
|
}
|
|
685
665
|
}, {
|
|
686
666
|
key: "hasDisableInterpreterPermission",
|
|
687
667
|
get: function get() {
|
|
688
|
-
return this.
|
|
689
|
-
}
|
|
690
|
-
}, {
|
|
691
|
-
key: "cameraEnabled",
|
|
692
|
-
get: function get() {
|
|
693
|
-
return this._deviceStore.cameraEnabled;
|
|
694
|
-
}
|
|
695
|
-
}, {
|
|
696
|
-
key: "cameraId",
|
|
697
|
-
get: function get() {
|
|
698
|
-
return this._deviceStore.cameraId;
|
|
699
|
-
}
|
|
700
|
-
}, {
|
|
701
|
-
key: "cameraList",
|
|
702
|
-
get: function get() {
|
|
703
|
-
return this._deviceStore.cameraList;
|
|
668
|
+
return this._privilegeProvider.hasDisableInterpreterPermission();
|
|
704
669
|
}
|
|
705
670
|
}, {
|
|
706
671
|
key: "microphoneEnabled",
|
|
707
672
|
get: function get() {
|
|
708
|
-
return this.
|
|
709
|
-
}
|
|
710
|
-
}, {
|
|
711
|
-
key: "microphoneId",
|
|
712
|
-
get: function get() {
|
|
713
|
-
return this._deviceStore.microphoneId;
|
|
714
|
-
}
|
|
715
|
-
}, {
|
|
716
|
-
key: "microphoneVolumeLevel",
|
|
717
|
-
get: function get() {
|
|
718
|
-
return this._deviceStore.microphoneVolumeLevel;
|
|
719
|
-
}
|
|
720
|
-
}, {
|
|
721
|
-
key: "microphoneList",
|
|
722
|
-
get: function get() {
|
|
723
|
-
return this._deviceStore.microphoneList;
|
|
724
|
-
}
|
|
725
|
-
}, {
|
|
726
|
-
key: "speakerId",
|
|
727
|
-
get: function get() {
|
|
728
|
-
return this._deviceStore.speakerId;
|
|
729
|
-
}
|
|
730
|
-
}, {
|
|
731
|
-
key: "speakerList",
|
|
732
|
-
get: function get() {
|
|
733
|
-
return this._deviceStore.speakerList;
|
|
673
|
+
return this._deviceProvider.microphoneEnabled;
|
|
734
674
|
}
|
|
735
675
|
}, {
|
|
736
676
|
key: "allNewMessage",
|
|
737
677
|
get: function get() {
|
|
738
|
-
return Object.values(this.newMessageCount).reduce(function (a, b) {
|
|
678
|
+
return Object.values(this._sharedChatDataSource.newMessageCount).reduce(function (a, b) {
|
|
739
679
|
return a + b;
|
|
740
680
|
}, 0);
|
|
741
681
|
}
|
|
742
682
|
}, {
|
|
743
683
|
key: "isMainRoom",
|
|
744
684
|
get: function get() {
|
|
745
|
-
|
|
746
|
-
return ((_this$_roomControl$ge = this._roomControl.getRoomInfo()) === null || _this$_roomControl$ge === void 0 ? void 0 : _this$_roomControl$ge.roomType) === _type6.FcrRoomType.Mainroom;
|
|
685
|
+
return this._roomType === _type5.FcrRoomType.Mainroom;
|
|
747
686
|
}
|
|
748
687
|
}, {
|
|
749
688
|
key: "hasAllowChangeNamePromission",
|
|
750
689
|
get: function get() {
|
|
751
|
-
return this.
|
|
690
|
+
return this._privilegeProvider.hasAllowChangeNamePermission();
|
|
752
691
|
}
|
|
753
692
|
}, {
|
|
754
693
|
key: "hasDisallowChangeNamePromission",
|
|
755
694
|
get: function get() {
|
|
756
|
-
return this.
|
|
695
|
+
return this._privilegeProvider.hasDisallowChangeNamePermission();
|
|
696
|
+
}
|
|
697
|
+
}, {
|
|
698
|
+
key: "newMessageCount",
|
|
699
|
+
get: function get() {
|
|
700
|
+
return this._sharedChatDataSource.newMessageCount;
|
|
701
|
+
},
|
|
702
|
+
set: function set(value) {
|
|
703
|
+
this._sharedChatDataSource.newMessageCount = value;
|
|
704
|
+
}
|
|
705
|
+
}, {
|
|
706
|
+
key: "latestMessage",
|
|
707
|
+
get: function get() {
|
|
708
|
+
return this._sharedChatDataSource.latestMessage;
|
|
757
709
|
}
|
|
758
710
|
}, {
|
|
759
711
|
key: "pauseCloudRecording",
|
|
@@ -789,7 +741,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
789
741
|
}, {
|
|
790
742
|
key: "toggleLayoutBarLock",
|
|
791
743
|
value: function toggleLayoutBarLock(payload) {
|
|
792
|
-
this.
|
|
744
|
+
this._eventProvider.sendEvent(_constant.FcrUIAction.TOGGLE_LAYOUT_BAR_LOCK, payload);
|
|
793
745
|
}
|
|
794
746
|
}, {
|
|
795
747
|
key: "showNewMessageTooltip",
|
|
@@ -804,47 +756,28 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
804
756
|
}, {
|
|
805
757
|
key: "switchMenu",
|
|
806
758
|
value: function switchMenu(value) {
|
|
807
|
-
this.currentMenuIs = value || MoreMenuType.DEFAULT;
|
|
759
|
+
this.currentMenuIs = value || _enums2.MoreMenuType.DEFAULT;
|
|
808
760
|
}
|
|
809
761
|
}, {
|
|
810
762
|
key: "isLocked",
|
|
811
763
|
get: function get() {
|
|
812
|
-
return this.
|
|
764
|
+
return this._privilegeProvider.isLockRoomEnabled();
|
|
813
765
|
}
|
|
814
766
|
}, {
|
|
815
767
|
key: "isWaitingRoomEnabled",
|
|
816
768
|
value: function isWaitingRoomEnabled() {
|
|
817
|
-
return this.
|
|
769
|
+
return this._privilegeProvider.isWaitingRoomEnabled();
|
|
818
770
|
}
|
|
819
771
|
}, {
|
|
820
772
|
key: "isAllowJoinWithAudioEnabled",
|
|
821
773
|
value: function isAllowJoinWithAudioEnabled() {
|
|
822
|
-
return this.
|
|
823
|
-
}
|
|
824
|
-
}, {
|
|
825
|
-
key: "enableCamera",
|
|
826
|
-
value: function enableCamera(enable) {
|
|
827
|
-
this._deviceStreamStore.enableCameraWithStream(enable);
|
|
828
|
-
}
|
|
829
|
-
}, {
|
|
830
|
-
key: "setCameraId",
|
|
831
|
-
value: function setCameraId(cameraId) {
|
|
832
|
-
this._deviceStore.setCameraId(cameraId);
|
|
774
|
+
return this._privilegeProvider.allowJoinWithMuteAudio();
|
|
833
775
|
}
|
|
834
776
|
}, {
|
|
835
777
|
key: "enableMicrophone",
|
|
836
778
|
value: function enableMicrophone(enable) {
|
|
837
|
-
this.
|
|
838
|
-
|
|
839
|
-
}, {
|
|
840
|
-
key: "setMicrophoneId",
|
|
841
|
-
value: function setMicrophoneId(microphoneId) {
|
|
842
|
-
this._deviceStore.setMicrophoneId(microphoneId);
|
|
843
|
-
}
|
|
844
|
-
}, {
|
|
845
|
-
key: "setSpeakerId",
|
|
846
|
-
value: function setSpeakerId(speakerId) {
|
|
847
|
-
this._deviceStore.setSpeakerId(speakerId);
|
|
779
|
+
this._deviceStreamProvider.enableMicrophoneWithPreCheck(enable);
|
|
780
|
+
this._sharedDevicePrivilegeDataSource.setShouldIncludeMicrophone(true);
|
|
848
781
|
}
|
|
849
782
|
}, {
|
|
850
783
|
key: "setAllowBoardWrite",
|
|
@@ -855,7 +788,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
855
788
|
while (1) switch (_context.prev = _context.next) {
|
|
856
789
|
case 0:
|
|
857
790
|
write = this.isBoardWriteEnabled ? _enums.FcrSharePermissionState.OFF : _enums.FcrSharePermissionState.ON;
|
|
858
|
-
return _context.abrupt("return", this.
|
|
791
|
+
return _context.abrupt("return", this._privilegeProvider.setAllowWriteBoard(write));
|
|
859
792
|
case 2:
|
|
860
793
|
case "end":
|
|
861
794
|
return _context.stop();
|
|
@@ -871,32 +804,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
871
804
|
key: "setAllowScreenShare",
|
|
872
805
|
value: function setAllowScreenShare() {
|
|
873
806
|
var enable = this.isScreenShareAndBoardEnabled ? _enums.FcrSharePermissionState.OFF : _enums.FcrSharePermissionState.ON;
|
|
874
|
-
return this.
|
|
875
|
-
}
|
|
876
|
-
}, {
|
|
877
|
-
key: "closeBoard",
|
|
878
|
-
value: function closeBoard() {
|
|
879
|
-
this._uiEventStore.sendEvent(_constant.UIAction.CLOSE_WHITEBOARD);
|
|
880
|
-
}
|
|
881
|
-
}, {
|
|
882
|
-
key: "assignHost",
|
|
883
|
-
value: function assignHost(user) {
|
|
884
|
-
this._userControl.updateRemoteUserRole(user.userId, _type.FcrUserRole.HOST);
|
|
885
|
-
this.leave();
|
|
886
|
-
}
|
|
887
|
-
}, {
|
|
888
|
-
key: "leave",
|
|
889
|
-
value: function leave() {
|
|
890
|
-
var _this$_roomControl$ge2;
|
|
891
|
-
this._uiEventStore.sendEvent(_constant.UIAction.EXIT_ROOM, {
|
|
892
|
-
reason: _type2.FcrUIExitReason.LEAVE_ROOM,
|
|
893
|
-
roomType: (_this$_roomControl$ge2 = this._roomControl.getRoomInfo()) === null || _this$_roomControl$ge2 === void 0 ? void 0 : _this$_roomControl$ge2.roomType
|
|
894
|
-
});
|
|
895
|
-
}
|
|
896
|
-
}, {
|
|
897
|
-
key: "keepPhoneAudioConnection",
|
|
898
|
-
value: function keepPhoneAudioConnection() {
|
|
899
|
-
this._streamControl.splitAudioStream(this._userControl.getLocalUser().userId);
|
|
807
|
+
return this._privilegeProvider.allowShare(enable);
|
|
900
808
|
}
|
|
901
809
|
}, {
|
|
902
810
|
key: "setPopoverOpened",
|
|
@@ -914,31 +822,9 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
914
822
|
}, {
|
|
915
823
|
key: "getRoomType",
|
|
916
824
|
value: function getRoomType() {
|
|
917
|
-
var _this$_roomControl$
|
|
918
|
-
return (_this$_roomControl$
|
|
825
|
+
var _this$_roomControl$ge2;
|
|
826
|
+
return (_this$_roomControl$ge2 = this._roomControl.getRoomInfo()) === null || _this$_roomControl$ge2 === void 0 ? void 0 : _this$_roomControl$ge2.roomType;
|
|
919
827
|
}
|
|
920
|
-
}, {
|
|
921
|
-
key: "end",
|
|
922
|
-
value: function () {
|
|
923
|
-
var _end = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2() {
|
|
924
|
-
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
925
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
926
|
-
case 0:
|
|
927
|
-
_context2.next = 2;
|
|
928
|
-
return this._roomControl.close();
|
|
929
|
-
case 2:
|
|
930
|
-
this.leave();
|
|
931
|
-
case 3:
|
|
932
|
-
case "end":
|
|
933
|
-
return _context2.stop();
|
|
934
|
-
}
|
|
935
|
-
}, _callee2, this);
|
|
936
|
-
}));
|
|
937
|
-
function end() {
|
|
938
|
-
return _end.apply(this, arguments);
|
|
939
|
-
}
|
|
940
|
-
return end;
|
|
941
|
-
}()
|
|
942
828
|
}, {
|
|
943
829
|
key: "release",
|
|
944
830
|
value: function release() {
|
|
@@ -946,165 +832,175 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
946
832
|
this._disposers.forEach(function (dispose) {
|
|
947
833
|
return dispose();
|
|
948
834
|
});
|
|
835
|
+
this._disposers = [];
|
|
949
836
|
this._hideBarArrowTimer && clearTimeout(this._hideBarArrowTimer);
|
|
950
|
-
(_this$_screenVideoTra = this._screenVideoTrack) === null || _this$_screenVideoTra === void 0 || _this$_screenVideoTra.removeObserver(this.
|
|
837
|
+
(_this$_screenVideoTra = this._screenVideoTrack) === null || _this$_screenVideoTra === void 0 || _this$_screenVideoTra.removeObserver(this._screenObserver);
|
|
838
|
+
this._userControl.removeObserver(this._userObserver);
|
|
839
|
+
this._roomControl.removeObserver(this._mainRoomObserver);
|
|
840
|
+
this._streamControl.removeObserver(this._streamObserver);
|
|
841
|
+
this._eventProvider.removeObserver(this._uiEventObserver);
|
|
842
|
+
if (this._roomType === _type5.FcrRoomType.Mainroom) {
|
|
843
|
+
this._interpreterControl = this._roomControl.getInterpreterControl();
|
|
844
|
+
this._interpreterControl.removeObserver(this._interpreterObserver);
|
|
845
|
+
this._roomProvider.removeObserver(this._roomObserver);
|
|
846
|
+
this._interpreterProvider.removeObserver(this._interpreterProviderObserver);
|
|
847
|
+
}
|
|
951
848
|
}
|
|
952
849
|
}, {
|
|
953
850
|
key: "allowJoinWithMuteAudio",
|
|
954
851
|
value: function allowJoinWithMuteAudio() {
|
|
955
|
-
return this.
|
|
852
|
+
return this._privilegeProvider.allowJoinWithMuteAudio();
|
|
956
853
|
}
|
|
957
854
|
}, {
|
|
958
855
|
key: "setAllowJoinWithMuteAudio",
|
|
959
856
|
value: function setAllowJoinWithMuteAudio(enable) {
|
|
960
|
-
return this.
|
|
857
|
+
return this._privilegeProvider.setAllowJoinWithMuteAudio(enable);
|
|
961
858
|
}
|
|
962
859
|
}, {
|
|
963
860
|
key: "isLockRoomEnabled",
|
|
964
861
|
value: function isLockRoomEnabled() {
|
|
965
|
-
return this.
|
|
862
|
+
return this._privilegeProvider.isLockRoomEnabled();
|
|
966
863
|
}
|
|
967
864
|
}, {
|
|
968
865
|
key: "setLockRoomEnabled",
|
|
969
866
|
value: function setLockRoomEnabled(enable) {
|
|
970
|
-
return this.
|
|
867
|
+
return this._privilegeProvider.setLockRoomEnabled(enable);
|
|
971
868
|
}
|
|
972
869
|
}, {
|
|
973
870
|
key: "setAllowShareScreen",
|
|
974
871
|
value: function setAllowShareScreen(enable) {
|
|
975
|
-
return this.
|
|
872
|
+
return this._privilegeProvider.setAllowShareScreen(enable);
|
|
976
873
|
}
|
|
977
874
|
}, {
|
|
978
875
|
key: "allowShareScreen",
|
|
979
876
|
value: function allowShareScreen() {
|
|
980
|
-
return this.
|
|
877
|
+
return this._privilegeProvider.allowShareScreen();
|
|
981
878
|
}
|
|
982
879
|
}, {
|
|
983
880
|
key: "allowWriteBoard",
|
|
984
881
|
value: function allowWriteBoard() {
|
|
985
|
-
return this.
|
|
882
|
+
return this._privilegeProvider.hasAllowWriteBoardPermission();
|
|
986
883
|
}
|
|
987
884
|
}, {
|
|
988
885
|
key: "allowChat",
|
|
989
886
|
value: function allowChat() {
|
|
990
|
-
return this.
|
|
887
|
+
return this._privilegeProvider.allowChat();
|
|
991
888
|
}
|
|
992
889
|
}, {
|
|
993
890
|
key: "setAllowChat",
|
|
994
891
|
value: function setAllowChat(enable) {
|
|
995
|
-
return this.
|
|
892
|
+
return this._privilegeProvider.setAllowChat(enable);
|
|
996
893
|
}
|
|
997
894
|
}, {
|
|
998
895
|
key: "allowUnmuteSelfAudio",
|
|
999
896
|
value: function allowUnmuteSelfAudio() {
|
|
1000
|
-
return this.
|
|
897
|
+
return this._privilegeProvider.allowUnmuteSelfAudio();
|
|
1001
898
|
}
|
|
1002
899
|
}, {
|
|
1003
900
|
key: "setAllowUnmuteSelfAudio",
|
|
1004
901
|
value: function setAllowUnmuteSelfAudio(enable) {
|
|
1005
|
-
return this.
|
|
902
|
+
return this._privilegeProvider.setAllowUnmuteSelfAudio(enable);
|
|
1006
903
|
}
|
|
1007
904
|
}, {
|
|
1008
905
|
key: "allowUnmuteSelfVideo",
|
|
1009
906
|
value: function allowUnmuteSelfVideo() {
|
|
1010
|
-
return this.
|
|
907
|
+
return this._privilegeProvider.allowUnmuteSelfVideo();
|
|
1011
908
|
}
|
|
1012
909
|
}, {
|
|
1013
910
|
key: "setAllowUnmuteSelfVideo",
|
|
1014
911
|
value: function setAllowUnmuteSelfVideo(enable) {
|
|
1015
|
-
return this.
|
|
912
|
+
return this._privilegeProvider.setAllowUnmuteSelfVideo(enable);
|
|
1016
913
|
}
|
|
1017
914
|
}, {
|
|
1018
915
|
key: "allowChangeName",
|
|
1019
916
|
value: function allowChangeName() {
|
|
1020
|
-
return this.
|
|
917
|
+
return this._privilegeProvider.allowChangeSelfName();
|
|
1021
918
|
}
|
|
1022
919
|
}, {
|
|
1023
920
|
key: "setAllowChangeName",
|
|
1024
921
|
value: function setAllowChangeName(enable) {
|
|
1025
|
-
return this.
|
|
922
|
+
return this._privilegeProvider.setAllowChangeSelfName(enable);
|
|
1026
923
|
}
|
|
1027
924
|
}, {
|
|
1028
925
|
key: "toggleChat",
|
|
1029
926
|
value: function toggleChat() {
|
|
1030
|
-
!this.
|
|
927
|
+
!this.chatVisible || (0, _env.isElectron)() && this.chatRenderAt === 'dialog' ? this.openChat() : this.closeChat();
|
|
1031
928
|
}
|
|
1032
929
|
}, {
|
|
1033
930
|
key: "openChat",
|
|
1034
931
|
value: function openChat() {
|
|
1035
|
-
if (this.
|
|
1036
|
-
this.
|
|
1037
|
-
chat: true
|
|
1038
|
-
});
|
|
932
|
+
if (this.chatRenderAt === 'aside') {
|
|
933
|
+
this._sharedLayoutDataSource.setChatRenderAt('aside');
|
|
1039
934
|
}
|
|
1040
|
-
if (this.
|
|
1041
|
-
this.
|
|
935
|
+
if (this.chatRenderAt === 'dialog') {
|
|
936
|
+
this._sharedLayoutDataSource.setChatRenderAt('dialog');
|
|
937
|
+
this._eventProvider.openDialog(_constant.FcrUIDialogKey.CHAT);
|
|
1042
938
|
}
|
|
939
|
+
this._sharedLayoutDataSource.setAsideLayout({
|
|
940
|
+
chat: true
|
|
941
|
+
});
|
|
1043
942
|
}
|
|
1044
943
|
}, {
|
|
1045
944
|
key: "closeChat",
|
|
1046
945
|
value: function closeChat() {
|
|
1047
|
-
if (!this.
|
|
1048
|
-
if (this.
|
|
1049
|
-
this._uiEventStore.updateAside({
|
|
1050
|
-
chat: false
|
|
1051
|
-
});
|
|
1052
|
-
}
|
|
1053
|
-
if (this._chatRenderAt === 'dialog') {
|
|
946
|
+
if (!this.chatVisible) return;
|
|
947
|
+
if (this.chatRenderAt === 'dialog') {
|
|
1054
948
|
var chatDialogId = '';
|
|
1055
949
|
this._openedDialogIdMap.forEach(function (dialogKey, dialogId) {
|
|
1056
|
-
if (dialogKey === _constant.
|
|
950
|
+
if (dialogKey === _constant.FcrUIDialogKey.CHAT) {
|
|
1057
951
|
chatDialogId = dialogId;
|
|
1058
952
|
}
|
|
1059
953
|
});
|
|
1060
|
-
chatDialogId && this.
|
|
954
|
+
chatDialogId && this._dialogProvider.closeDialog(chatDialogId);
|
|
1061
955
|
}
|
|
956
|
+
this._sharedLayoutDataSource.setAsideLayout({
|
|
957
|
+
chat: false
|
|
958
|
+
});
|
|
1062
959
|
}
|
|
1063
960
|
}, {
|
|
1064
961
|
key: "toggleParticipants",
|
|
1065
962
|
value: function toggleParticipants() {
|
|
1066
|
-
!this.
|
|
963
|
+
!this.participantVisible || (0, _env.isElectron)() && this.participantsRenderAt === 'dialog' ? this.openParticipants() : this.closeParticipants();
|
|
1067
964
|
}
|
|
1068
965
|
}, {
|
|
1069
966
|
key: "openParticipants",
|
|
1070
967
|
value: function openParticipants() {
|
|
1071
|
-
if (this.
|
|
1072
|
-
this.
|
|
1073
|
-
participant: true
|
|
1074
|
-
});
|
|
1075
|
-
}
|
|
1076
|
-
if (this._participantsRenderAt === 'dialog') {
|
|
1077
|
-
this._uiEventStore.openDialog(_constant.DialogKey.PARTICIPANT);
|
|
1078
|
-
}
|
|
1079
|
-
if (this._participantVisible) {
|
|
1080
|
-
if (this._participantTab === _constant.RoomType.WAITING_ROOM) {
|
|
1081
|
-
this.isNewWaitingRoomUserEnter = false;
|
|
1082
|
-
}
|
|
968
|
+
if (this.participantsRenderAt === 'dialog') {
|
|
969
|
+
this._dialogProvider.openDialog(_constant.FcrUIDialogKey.PARTICIPANT);
|
|
1083
970
|
}
|
|
971
|
+
this._sharedLayoutDataSource.setAsideLayout({
|
|
972
|
+
participant: true
|
|
973
|
+
});
|
|
974
|
+
// if (this._participantVisible) {
|
|
975
|
+
// if (this._participantTab === FcrRoomType.Waitingroom) {
|
|
976
|
+
// this.isNewWaitingRoomUserEnter = false;
|
|
977
|
+
// }
|
|
978
|
+
// }
|
|
1084
979
|
}
|
|
1085
980
|
}, {
|
|
1086
981
|
key: "closeParticipants",
|
|
1087
982
|
value: function closeParticipants() {
|
|
1088
|
-
if (!this.
|
|
1089
|
-
if (this.
|
|
1090
|
-
this._uiEventStore.updateAside({
|
|
1091
|
-
participant: false
|
|
1092
|
-
});
|
|
1093
|
-
}
|
|
1094
|
-
if (this._participantsRenderAt === 'dialog') {
|
|
983
|
+
if (!this.participantVisible) return;
|
|
984
|
+
if (this.participantsRenderAt === 'dialog') {
|
|
1095
985
|
var participantDialogId = '';
|
|
1096
986
|
this._openedDialogIdMap.forEach(function (dialogKey, dialogId) {
|
|
1097
|
-
if (dialogKey === _constant.
|
|
987
|
+
if (dialogKey === _constant.FcrUIDialogKey.PARTICIPANT) {
|
|
1098
988
|
participantDialogId = dialogId;
|
|
1099
989
|
}
|
|
1100
990
|
});
|
|
1101
|
-
|
|
991
|
+
this._sharedLayoutDataSource.setAsideLayout({
|
|
992
|
+
participant: false
|
|
993
|
+
});
|
|
994
|
+
participantDialogId && this._dialogProvider.closeDialog(participantDialogId);
|
|
1102
995
|
}
|
|
996
|
+
this._sharedLayoutDataSource.setAsideLayout({
|
|
997
|
+
participant: false
|
|
998
|
+
});
|
|
1103
999
|
}
|
|
1104
1000
|
}, {
|
|
1105
1001
|
key: "openDeviceSettingDialog",
|
|
1106
1002
|
value: function openDeviceSettingDialog(arg) {
|
|
1107
|
-
this.
|
|
1003
|
+
this._dialogProvider.openDeviceSettingDialog(arg);
|
|
1108
1004
|
}
|
|
1109
1005
|
}, {
|
|
1110
1006
|
key: "startScreenShare",
|
|
@@ -1112,28 +1008,33 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1112
1008
|
console.log('performance: click button', new Date().getTime());
|
|
1113
1009
|
// if (!this._interceptShareBoard()) return;
|
|
1114
1010
|
if (!this._interceptShareScreen()) return;
|
|
1115
|
-
this.
|
|
1011
|
+
this._eventProvider.startShareScreen();
|
|
1116
1012
|
}
|
|
1117
1013
|
}, {
|
|
1118
1014
|
key: "openInterpreterDialog",
|
|
1119
1015
|
value: function openInterpreterDialog() {
|
|
1120
|
-
this.
|
|
1016
|
+
this._eventProvider.sendEvent(_constant.FcrUIAction.OPEN_INTERPRETER_DIALOG);
|
|
1121
1017
|
}
|
|
1122
1018
|
}, {
|
|
1123
1019
|
key: "openWhiteboard",
|
|
1124
1020
|
value: function openWhiteboard() {
|
|
1125
1021
|
if (!this._interceptShareBoard()) return;
|
|
1126
|
-
this.
|
|
1022
|
+
this._eventProvider.sendEvent(_constant.FcrUIAction.OPEN_WHITEBOARD);
|
|
1127
1023
|
}
|
|
1128
1024
|
}, {
|
|
1129
1025
|
key: "closeWhiteboard",
|
|
1130
1026
|
value: function closeWhiteboard() {
|
|
1131
|
-
this.
|
|
1027
|
+
this._eventProvider.sendEvent(_constant.FcrUIAction.CLOSE_WHITEBOARD);
|
|
1028
|
+
}
|
|
1029
|
+
}, {
|
|
1030
|
+
key: "closeShareScreen",
|
|
1031
|
+
value: function closeShareScreen() {
|
|
1032
|
+
this._streamControl.removeScreenStream();
|
|
1132
1033
|
}
|
|
1133
1034
|
}, {
|
|
1134
1035
|
key: "openLiveStreamingDialog",
|
|
1135
1036
|
value: function openLiveStreamingDialog() {
|
|
1136
|
-
this.
|
|
1037
|
+
this._dialogProvider.openDialog(_constant.FcrUIDialogKey.LIVE_STREAMING);
|
|
1137
1038
|
this.toggleLayoutBarLock(true);
|
|
1138
1039
|
}
|
|
1139
1040
|
}, {
|
|
@@ -1144,7 +1045,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1144
1045
|
}, {
|
|
1145
1046
|
key: "openConnection",
|
|
1146
1047
|
value: function openConnection(type) {
|
|
1147
|
-
this.
|
|
1048
|
+
this._dialogProvider.openDialog(_constant.FcrUIDialogKey.CONNECTION_GATEWAY, '', {
|
|
1148
1049
|
type: type
|
|
1149
1050
|
});
|
|
1150
1051
|
}
|
|
@@ -1153,17 +1054,23 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1153
1054
|
value: function closeConnection() {
|
|
1154
1055
|
var connectionDialogId = '';
|
|
1155
1056
|
this._openedDialogIdMap.forEach(function (dialogKey, dialogId) {
|
|
1156
|
-
if (dialogKey === _constant.
|
|
1057
|
+
if (dialogKey === _constant.FcrUIDialogKey.CONNECTION_GATEWAY) {
|
|
1157
1058
|
connectionDialogId = dialogId;
|
|
1158
1059
|
}
|
|
1159
1060
|
});
|
|
1160
|
-
this.
|
|
1061
|
+
this._dialogProvider.closeDialog(connectionDialogId);
|
|
1062
|
+
}
|
|
1063
|
+
}, {
|
|
1064
|
+
key: "_handleJoinWaitingRoom",
|
|
1065
|
+
value: function _handleJoinWaitingRoom(room) {
|
|
1066
|
+
this._waitingRoomControl = room;
|
|
1067
|
+
this.newMessageCount = (0, _defineProperty2["default"])({}, _type5.FcrRoomType.Waitingroom, 0);
|
|
1161
1068
|
}
|
|
1162
1069
|
}, {
|
|
1163
1070
|
key: "toggleFold",
|
|
1164
1071
|
value: function toggleFold() {
|
|
1165
1072
|
this.folded = !this.folded;
|
|
1166
|
-
this.
|
|
1073
|
+
this._eventProvider.sendEvent(_constant.FcrUIAction.TOGGLE_LAYOUT_ACTIONBAR_HIDDEN);
|
|
1167
1074
|
}
|
|
1168
1075
|
}, {
|
|
1169
1076
|
key: "setShowArrow",
|
|
@@ -1181,63 +1088,63 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1181
1088
|
}, {
|
|
1182
1089
|
key: "setEnableWaitingRoom",
|
|
1183
1090
|
value: function () {
|
|
1184
|
-
var _setEnableWaitingRoom = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
1091
|
+
var _setEnableWaitingRoom = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(enable, isNeedShowDialog) {
|
|
1185
1092
|
var _this4 = this;
|
|
1186
1093
|
var dialogId;
|
|
1187
|
-
return _regenerator["default"].wrap(function
|
|
1188
|
-
while (1) switch (
|
|
1094
|
+
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
1095
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
1189
1096
|
case 0:
|
|
1190
1097
|
if (enable) {
|
|
1191
|
-
|
|
1098
|
+
_context2.next = 10;
|
|
1192
1099
|
break;
|
|
1193
1100
|
}
|
|
1194
|
-
if (!(this.totalWaitingRoomUser && isNeedShowDialog)) {
|
|
1195
|
-
|
|
1101
|
+
if (!(this._sharedWaitingRoomDataSource.totalWaitingRoomUser && isNeedShowDialog)) {
|
|
1102
|
+
_context2.next = 5;
|
|
1196
1103
|
break;
|
|
1197
1104
|
}
|
|
1198
|
-
dialogId = this.
|
|
1105
|
+
dialogId = this._dialogProvider.openConfirmDialog({
|
|
1199
1106
|
title: (0, _i18n.transI18n)('fmt_waitingroom_mobile_setting_popup_label_close'),
|
|
1200
1107
|
content: (0, _i18n.transI18n)('fmt_waitingroom_mobile_setting_popup_label_choose', {
|
|
1201
|
-
reason1: this.totalWaitingRoomUser
|
|
1108
|
+
reason1: this._sharedWaitingRoomDataSource.totalWaitingRoomUser
|
|
1202
1109
|
}),
|
|
1203
1110
|
onCancel: function onCancel() {
|
|
1204
|
-
_this4.
|
|
1205
|
-
_this4.
|
|
1111
|
+
_this4._eventProvider.sendEvent(_constant.FcrUIAction.MOVE_TO_MAIN_ROOM_ALL_MEMBER, false);
|
|
1112
|
+
_this4._dialogProvider.closeConfirm(dialogId);
|
|
1206
1113
|
},
|
|
1207
1114
|
onOk: function onOk() {
|
|
1208
|
-
_this4.
|
|
1209
|
-
_this4.
|
|
1115
|
+
_this4._eventProvider.sendEvent(_constant.FcrUIAction.MOVE_TO_MAIN_ROOM_ALL_MEMBER, true);
|
|
1116
|
+
_this4._dialogProvider.closeConfirm(dialogId);
|
|
1210
1117
|
},
|
|
1211
1118
|
okText: (0, _i18n.transI18n)('fmt_waitingroom_mobile_setting_popup_button_admit_all'),
|
|
1212
1119
|
cancelText: (0, _i18n.transI18n)('fmt_waitingroom_mobile_setting_popup_button_cancel'),
|
|
1213
1120
|
alignCenter: true
|
|
1214
1121
|
});
|
|
1215
|
-
|
|
1122
|
+
_context2.next = 8;
|
|
1216
1123
|
break;
|
|
1217
1124
|
case 5:
|
|
1218
|
-
|
|
1125
|
+
_context2.next = 7;
|
|
1219
1126
|
return this._roomControl.enableWaitingRoom(enable);
|
|
1220
1127
|
case 7:
|
|
1221
|
-
this.
|
|
1128
|
+
this._messageProvider.showToast({
|
|
1222
1129
|
type: 'normal',
|
|
1223
1130
|
message: (0, _i18n.transI18n)('fmt_waitingroom_mobile_setting_tips_disable')
|
|
1224
1131
|
});
|
|
1225
1132
|
case 8:
|
|
1226
|
-
|
|
1133
|
+
_context2.next = 13;
|
|
1227
1134
|
break;
|
|
1228
1135
|
case 10:
|
|
1229
|
-
|
|
1136
|
+
_context2.next = 12;
|
|
1230
1137
|
return this._roomControl.enableWaitingRoom(enable);
|
|
1231
1138
|
case 12:
|
|
1232
|
-
this.
|
|
1139
|
+
this._messageProvider.showToast({
|
|
1233
1140
|
type: 'normal',
|
|
1234
1141
|
message: (0, _i18n.transI18n)('fmt_waitingroom_setting_tips_enable')
|
|
1235
1142
|
});
|
|
1236
1143
|
case 13:
|
|
1237
1144
|
case "end":
|
|
1238
|
-
return
|
|
1145
|
+
return _context2.stop();
|
|
1239
1146
|
}
|
|
1240
|
-
},
|
|
1147
|
+
}, _callee2, this);
|
|
1241
1148
|
}));
|
|
1242
1149
|
function setEnableWaitingRoom(_x, _x2) {
|
|
1243
1150
|
return _setEnableWaitingRoom.apply(this, arguments);
|
|
@@ -1247,18 +1154,18 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1247
1154
|
}, {
|
|
1248
1155
|
key: "kickOutWaitingRoomAllMember",
|
|
1249
1156
|
value: function () {
|
|
1250
|
-
var _kickOutWaitingRoomAllMember = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
1157
|
+
var _kickOutWaitingRoomAllMember = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3(type) {
|
|
1251
1158
|
var _this$_userControl;
|
|
1252
|
-
return _regenerator["default"].wrap(function
|
|
1253
|
-
while (1) switch (
|
|
1159
|
+
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
1160
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
1254
1161
|
case 0:
|
|
1255
|
-
|
|
1162
|
+
_context3.next = 2;
|
|
1256
1163
|
return (_this$_userControl = this._userControl) === null || _this$_userControl === void 0 ? void 0 : _this$_userControl.kickOutByUserRoles([_type.FcrUserRole.PARTICIPANT], type);
|
|
1257
1164
|
case 2:
|
|
1258
1165
|
case "end":
|
|
1259
|
-
return
|
|
1166
|
+
return _context3.stop();
|
|
1260
1167
|
}
|
|
1261
|
-
},
|
|
1168
|
+
}, _callee3, this);
|
|
1262
1169
|
}));
|
|
1263
1170
|
function kickOutWaitingRoomAllMember(_x3) {
|
|
1264
1171
|
return _kickOutWaitingRoomAllMember.apply(this, arguments);
|
|
@@ -1268,18 +1175,18 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1268
1175
|
}, {
|
|
1269
1176
|
key: "moveToMainRoomAllMember",
|
|
1270
1177
|
value: function () {
|
|
1271
|
-
var _moveToMainRoomAllMember = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
1178
|
+
var _moveToMainRoomAllMember = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee4() {
|
|
1272
1179
|
var _this$_waitingRoomCon;
|
|
1273
|
-
return _regenerator["default"].wrap(function
|
|
1274
|
-
while (1) switch (
|
|
1180
|
+
return _regenerator["default"].wrap(function _callee4$(_context4) {
|
|
1181
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
1275
1182
|
case 0:
|
|
1276
|
-
|
|
1183
|
+
_context4.next = 2;
|
|
1277
1184
|
return (_this$_waitingRoomCon = this._waitingRoomControl) === null || _this$_waitingRoomCon === void 0 ? void 0 : _this$_waitingRoomCon.moveToMainRoomByUserRoles([_type.FcrUserRole.PARTICIPANT]);
|
|
1278
1185
|
case 2:
|
|
1279
1186
|
case "end":
|
|
1280
|
-
return
|
|
1187
|
+
return _context4.stop();
|
|
1281
1188
|
}
|
|
1282
|
-
},
|
|
1189
|
+
}, _callee4, this);
|
|
1283
1190
|
}));
|
|
1284
1191
|
function moveToMainRoomAllMember() {
|
|
1285
1192
|
return _moveToMainRoomAllMember.apply(this, arguments);
|
|
@@ -1291,21 +1198,21 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1291
1198
|
value: function _interceptShareScreen() {
|
|
1292
1199
|
var _this5 = this;
|
|
1293
1200
|
if (this.hasScreenShare || this.boardOwnerUser && this.boardOwnerUser.userId !== this._userControl.getLocalUser().userId) {
|
|
1294
|
-
var _this$
|
|
1295
|
-
var confirmKey = this.
|
|
1201
|
+
var _this$_sharingOwnerUs2;
|
|
1202
|
+
var confirmKey = this._dialogProvider.openConfirmDialog({
|
|
1296
1203
|
title: (0, _i18n.transI18n)('fmt_share_tips_otherssharing'),
|
|
1297
1204
|
content: (0, _i18n.transI18n)("fmt_share_tips_stopothersharing", {
|
|
1298
|
-
reason1: ((_this$
|
|
1205
|
+
reason1: ((_this$_sharingOwnerUs2 = this._sharingOwnerUser) === null || _this$_sharingOwnerUs2 === void 0 ? void 0 : _this$_sharingOwnerUs2.userName) || (0, _i18n.transI18n)('fmt_actionbar_screenshare_labels_others')
|
|
1299
1206
|
}),
|
|
1300
1207
|
okText: (0, _i18n.transI18n)('fmt_screenshare_continue_share'),
|
|
1301
1208
|
closable: false,
|
|
1302
1209
|
alignCenter: true,
|
|
1303
1210
|
onOk: function onOk() {
|
|
1304
|
-
_this5.
|
|
1305
|
-
_this5.
|
|
1211
|
+
_this5._eventProvider.startShareScreen();
|
|
1212
|
+
_this5._dialogProvider.closeConfirm(confirmKey);
|
|
1306
1213
|
},
|
|
1307
1214
|
onCancel: function onCancel() {
|
|
1308
|
-
_this5.
|
|
1215
|
+
_this5._dialogProvider.closeConfirm(confirmKey);
|
|
1309
1216
|
}
|
|
1310
1217
|
});
|
|
1311
1218
|
return false;
|
|
@@ -1318,19 +1225,19 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1318
1225
|
value: function _interceptShareBoard() {
|
|
1319
1226
|
var _this6 = this;
|
|
1320
1227
|
if (this.boardOwnerUser && this.boardOwnerUser.userId !== this._userControl.getLocalUser().userId) {
|
|
1321
|
-
var confirmKey = this.
|
|
1322
|
-
icon:
|
|
1228
|
+
var confirmKey = this._dialogProvider.openConfirmDialog({
|
|
1229
|
+
icon: _type3.FcrIconType.FCR_SCREENSHARING,
|
|
1323
1230
|
title: (0, _i18n.transI18n)('fmt_share_tips_othersharingboard'),
|
|
1324
1231
|
content: (0, _i18n.transI18n)("fmt_share_tips_boardonly"),
|
|
1325
1232
|
okText: (0, _i18n.transI18n)('fmt_screenshare_whiteboard_button_gotit'),
|
|
1326
1233
|
closable: false,
|
|
1327
1234
|
showCancel: false,
|
|
1328
1235
|
onOk: function onOk() {
|
|
1329
|
-
_this6.
|
|
1330
|
-
_this6.
|
|
1236
|
+
_this6._eventProvider.startShareScreen();
|
|
1237
|
+
_this6._dialogProvider.closeDialog(confirmKey);
|
|
1331
1238
|
},
|
|
1332
1239
|
onCancel: function onCancel() {
|
|
1333
|
-
_this6.
|
|
1240
|
+
_this6._dialogProvider.closeDialog(confirmKey);
|
|
1334
1241
|
}
|
|
1335
1242
|
});
|
|
1336
1243
|
return false;
|
|
@@ -1383,40 +1290,40 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1383
1290
|
value: function _handleAllUserCountUpdated(_roomId, count) {
|
|
1384
1291
|
this.totalUser = count;
|
|
1385
1292
|
}
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
}
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
}
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
}
|
|
1293
|
+
|
|
1294
|
+
// @action.bound
|
|
1295
|
+
// private _getWaitingRoomUserCount() {
|
|
1296
|
+
// const userControl = (this._waitingRoomControl as FcrWaitingRoomControl).getUserControl();
|
|
1297
|
+
// const privilegeControl = (this._roomControl as FcrMainRoomControl).getPrivilegeControl();
|
|
1298
|
+
// const targetRoles = privilegeControl.getSecurityInfo(FcrSecurityAction.WaitingRoom).info
|
|
1299
|
+
// ?.targetRoles as unknown as FcrUserRole[];
|
|
1300
|
+
// this.totalWaitingRoomUser = userControl
|
|
1301
|
+
// .getUserList()
|
|
1302
|
+
// .filter((user) => targetRoles.includes(user.userRole)).length;
|
|
1303
|
+
// if (this.totalWaitingRoomUser === 0) {
|
|
1304
|
+
// this._uiEventStore.sendEvent(FcrUIAction.CHANGE_PARTICIPANT_TAB, FcrRoomType.Mainroom);
|
|
1305
|
+
// }
|
|
1306
|
+
// return this.totalWaitingRoomUser;
|
|
1307
|
+
// }
|
|
1308
|
+
|
|
1309
|
+
// @action.bound
|
|
1310
|
+
// private _handleRemoteWaitingUserLeft(roomId: string, events: FcrUserJoinedEvent[]) {
|
|
1311
|
+
// this._getWaitingRoomUserCount();
|
|
1312
|
+
// }
|
|
1313
|
+
|
|
1314
|
+
// @action.bound
|
|
1315
|
+
// private _handleRemoteWaitingUserJoined(roomId: string, events: FcrUserJoinedEvent[]) {
|
|
1316
|
+
// const totalWaitingRoomUsers = this._getWaitingRoomUserCount();
|
|
1317
|
+
// if (this._participantVisible) {
|
|
1318
|
+
// if (this._participantTab !== FcrRoomType.Waitingroom && totalWaitingRoomUsers > 0) {
|
|
1319
|
+
// this.isNewWaitingRoomUserEnter = true;
|
|
1320
|
+
// }
|
|
1321
|
+
// } else {
|
|
1322
|
+
// if (totalWaitingRoomUsers > 0) {
|
|
1323
|
+
// this.isNewWaitingRoomUserEnter = true;
|
|
1324
|
+
// }
|
|
1325
|
+
// }
|
|
1326
|
+
// }
|
|
1420
1327
|
}, {
|
|
1421
1328
|
key: "_handleUserInfoUpdated",
|
|
1422
1329
|
value: function _handleUserInfoUpdated(_roomId, event) {
|
|
@@ -1439,8 +1346,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1439
1346
|
}, {
|
|
1440
1347
|
key: "_handleChatVisible",
|
|
1441
1348
|
value: function _handleChatVisible(visible) {
|
|
1442
|
-
this.
|
|
1443
|
-
this._uiEventStore.sendEvent(_constant.UIAction.CHAT_VISIBLE, visible);
|
|
1349
|
+
this._eventProvider.sendEvent(_constant.FcrUIAction.CHAT_VISIBLE, visible);
|
|
1444
1350
|
this._newMessageTooltipTimer && clearTimeout(this._newMessageTooltipTimer);
|
|
1445
1351
|
this.hideNewMessageTooltip();
|
|
1446
1352
|
this.newMessageCount[this.chatTabIndex] = 0;
|
|
@@ -1458,167 +1364,161 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1458
1364
|
value: function setAllowWaterMark() {
|
|
1459
1365
|
var allowState = !this.isWaterMarkEnabled;
|
|
1460
1366
|
// 开启关闭前,进行权限判断
|
|
1461
|
-
this.
|
|
1367
|
+
this._privilegeProvider.setAllowWaterMark(allowState, void 0);
|
|
1462
1368
|
}
|
|
1463
1369
|
}, {
|
|
1464
1370
|
key: "setWaterMarkLineType",
|
|
1465
1371
|
value: function setWaterMarkLineType(lineType) {
|
|
1466
|
-
this.
|
|
1372
|
+
this._privilegeProvider.setAllowWaterMark(this.isWaterMarkEnabled, lineType);
|
|
1467
1373
|
}
|
|
1468
1374
|
}, {
|
|
1469
1375
|
key: "setAlllowChangeName",
|
|
1470
1376
|
value: function setAlllowChangeName(enable) {
|
|
1471
|
-
this.
|
|
1377
|
+
this._privilegeProvider.setAllowChangeSelfName(enable);
|
|
1472
1378
|
}
|
|
1473
1379
|
}, {
|
|
1474
1380
|
key: "_onEvent",
|
|
1475
1381
|
value: function _onEvent(action, payload) {
|
|
1476
|
-
if (action ===
|
|
1382
|
+
// if (action === FcrUIAction.UPDATE_ASIDE) {
|
|
1383
|
+
// const { chat, participant } = payload as FcrUIUpdateAsideParams;
|
|
1384
|
+
// if (chat) {
|
|
1385
|
+
// this._chatRenderAt = 'aside';
|
|
1386
|
+
// this._handleChatVisible(true);
|
|
1387
|
+
// }
|
|
1388
|
+
// if (chat === false) {
|
|
1389
|
+
// this._handleChatVisible(false);
|
|
1390
|
+
// }
|
|
1391
|
+
// if (participant) {
|
|
1392
|
+
// this._participantsRenderAt = 'aside';
|
|
1393
|
+
// this._participantVisible = true;
|
|
1394
|
+
// }
|
|
1395
|
+
// if (participant === false) {
|
|
1396
|
+
// this._participantVisible = false;
|
|
1397
|
+
// }
|
|
1398
|
+
// }
|
|
1399
|
+
// if (action === FcrUIAction.RECEIVE_NEW_CHAT_MESSAGES) {
|
|
1400
|
+
// this._handleNewMessageEvent(payload as FcrUINewChatMessagesParams);
|
|
1401
|
+
// }
|
|
1402
|
+
if (action === _constant.FcrUIAction.CLOSE_DIALOG) {
|
|
1477
1403
|
var _ref2 = payload,
|
|
1478
|
-
|
|
1479
|
-
participant = _ref2.participant;
|
|
1480
|
-
if (chat) {
|
|
1481
|
-
this._chatRenderAt = 'aside';
|
|
1482
|
-
this._handleChatVisible(true);
|
|
1483
|
-
}
|
|
1484
|
-
if (chat === false) {
|
|
1485
|
-
this._handleChatVisible(false);
|
|
1486
|
-
}
|
|
1487
|
-
if (participant) {
|
|
1488
|
-
this._participantsRenderAt = 'aside';
|
|
1489
|
-
this._participantVisible = true;
|
|
1490
|
-
}
|
|
1491
|
-
if (participant === false) {
|
|
1492
|
-
this._participantVisible = false;
|
|
1493
|
-
}
|
|
1494
|
-
}
|
|
1495
|
-
if (action === _constant.UIAction.RECEIVE_NEW_CHAT_MESSAGES) {
|
|
1496
|
-
this._handleNewMessageEvent(payload);
|
|
1497
|
-
}
|
|
1498
|
-
if (action === _constant.UIAction.CLOSE_DIALOG) {
|
|
1499
|
-
var _ref3 = payload,
|
|
1500
|
-
dialogId = _ref3.dialogId;
|
|
1404
|
+
dialogId = _ref2.dialogId;
|
|
1501
1405
|
var dialogKey = this._openedDialogIdMap.get(dialogId);
|
|
1502
|
-
if (dialogKey === _constant.
|
|
1406
|
+
if (dialogKey === _constant.FcrUIDialogKey.CHAT) {
|
|
1503
1407
|
this._handleChatVisible(false);
|
|
1504
1408
|
}
|
|
1505
|
-
if (dialogKey === _constant.
|
|
1506
|
-
this.
|
|
1409
|
+
if (dialogKey === _constant.FcrUIDialogKey.PARTICIPANT) {
|
|
1410
|
+
this._sharedLayoutDataSource.setAsideLayout({
|
|
1411
|
+
participant: false
|
|
1412
|
+
});
|
|
1507
1413
|
}
|
|
1508
1414
|
this._openedDialogIdMap["delete"](dialogId);
|
|
1509
|
-
if (dialogKey === _constant.DialogKey.CONTROL_BAR) {
|
|
1510
|
-
this._isSharingScreen = false;
|
|
1511
|
-
}
|
|
1512
1415
|
}
|
|
1513
|
-
if (action === _constant.
|
|
1514
|
-
var
|
|
1515
|
-
_dialogKey =
|
|
1516
|
-
_dialogId =
|
|
1416
|
+
if (action === _constant.FcrUIAction.OPEN_DIALOG) {
|
|
1417
|
+
var _ref3 = payload,
|
|
1418
|
+
_dialogKey = _ref3.dialogKey,
|
|
1419
|
+
_dialogId = _ref3.dialogId;
|
|
1517
1420
|
this._openedDialogIdMap.set(_dialogId, _dialogKey);
|
|
1518
|
-
if (_dialogKey === _constant.
|
|
1519
|
-
this.
|
|
1421
|
+
if (_dialogKey === _constant.FcrUIDialogKey.CHAT) {
|
|
1422
|
+
this._sharedLayoutDataSource.setChatRenderAt('dialog');
|
|
1520
1423
|
this._handleChatVisible(true);
|
|
1521
1424
|
}
|
|
1522
|
-
if (_dialogKey === _constant.
|
|
1523
|
-
this.
|
|
1524
|
-
this.
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
this._isSharingScreen = true;
|
|
1425
|
+
if (_dialogKey === _constant.FcrUIDialogKey.PARTICIPANT) {
|
|
1426
|
+
this._sharedLayoutDataSource.setParticipantsRenderAt('dialog');
|
|
1427
|
+
this._sharedLayoutDataSource.setAsideLayout({
|
|
1428
|
+
participant: true
|
|
1429
|
+
});
|
|
1528
1430
|
}
|
|
1529
1431
|
}
|
|
1530
|
-
if (action === _constant.
|
|
1432
|
+
if (action === _constant.FcrUIAction.OPEN_LIVE_STEAMING_DIALOG) {
|
|
1531
1433
|
this.openLiveStreamingDialog();
|
|
1532
1434
|
}
|
|
1533
|
-
if (action === _constant.
|
|
1534
|
-
var _ref5 = payload,
|
|
1535
|
-
_action = _ref5.action;
|
|
1536
|
-
if (_action === 'start') this.startCloudRecording();else if (_action === 'pause') this.pauseCloudRecording();else if (_action === 'resume') this.resumeCloudRecording();else this.stopCloudRecording();
|
|
1537
|
-
}
|
|
1538
|
-
if (action === _constant.UIAction.OPEN_CONNECTION_DIALOG) {
|
|
1435
|
+
if (action === _constant.FcrUIAction.OPEN_CONNECTION_DIALOG) {
|
|
1539
1436
|
this.openConnection(payload.params.type);
|
|
1540
1437
|
}
|
|
1541
|
-
if (action === _constant.
|
|
1438
|
+
if (action === _constant.FcrUIAction.CLOSE_CONNECTION_DIALOG) {
|
|
1542
1439
|
this.closeConnection();
|
|
1543
1440
|
}
|
|
1544
|
-
if (action === _constant.
|
|
1545
|
-
var
|
|
1546
|
-
|
|
1547
|
-
value =
|
|
1548
|
-
if (
|
|
1441
|
+
if (action === _constant.FcrUIAction.WHITEBOARD_CHANGED) {
|
|
1442
|
+
var _ref4 = payload,
|
|
1443
|
+
_action = _ref4.action,
|
|
1444
|
+
value = _ref4.payload;
|
|
1445
|
+
if (_action === _type2.WhiteboardBaseEvents.SET_OWNER_USER_ID) {
|
|
1549
1446
|
this.boardOwnerUser = value ? this.users.find(function (u) {
|
|
1550
1447
|
return u.userId === value;
|
|
1551
1448
|
}) : null;
|
|
1552
1449
|
}
|
|
1553
1450
|
}
|
|
1554
|
-
if (action === _constant.
|
|
1555
|
-
var _this$
|
|
1556
|
-
var
|
|
1557
|
-
id =
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
}
|
|
1561
|
-
if (action === _constant.UIAction.TOGGLE_PARTICIPANT_TAB) {
|
|
1562
|
-
if (!this._participantVisible) {
|
|
1563
|
-
this.toggleParticipants();
|
|
1451
|
+
if (action === _constant.FcrUIAction.SET_CURRENT_SHARE_SCREEN) {
|
|
1452
|
+
var _this$_deviceProvider, _this$_screenVideoTra2;
|
|
1453
|
+
var _ref5 = payload,
|
|
1454
|
+
id = _ref5.id;
|
|
1455
|
+
if (this._screenVideoTrack) {
|
|
1456
|
+
this._screenVideoTrack.removeObserver(this._screenObserver);
|
|
1564
1457
|
}
|
|
1458
|
+
this._screenVideoTrack = (_this$_deviceProvider = this._deviceProvider) === null || _this$_deviceProvider === void 0 ? void 0 : _this$_deviceProvider.getScreenTrack(id);
|
|
1459
|
+
(_this$_screenVideoTra2 = this._screenVideoTrack) === null || _this$_screenVideoTra2 === void 0 || _this$_screenVideoTra2.addObserver(this._screenObserver);
|
|
1565
1460
|
}
|
|
1566
|
-
if (action === _constant.
|
|
1567
|
-
if (
|
|
1568
|
-
this.
|
|
1461
|
+
if (action === _constant.FcrUIAction.TOGGLE_PARTICIPANT_TAB) {
|
|
1462
|
+
if (!this.participantVisible) {
|
|
1463
|
+
this.toggleParticipants();
|
|
1569
1464
|
}
|
|
1570
|
-
this._participantTab = payload;
|
|
1571
1465
|
}
|
|
1572
|
-
if (action ===
|
|
1466
|
+
// if (action === FcrUIAction.CURRENT_PARTITIPANT_TAB) {
|
|
1467
|
+
// if (payload === FcrRoomType.Waitingroom) {
|
|
1468
|
+
// this.isNewWaitingRoomUserEnter = false;
|
|
1469
|
+
// }
|
|
1470
|
+
// this._participantTab = payload as FcrRoomType;
|
|
1471
|
+
// }
|
|
1472
|
+
if (action === _constant.FcrUIAction.CHAT_ROOM_TAB_CHANGE) {
|
|
1573
1473
|
this.chatTabIndex = payload;
|
|
1574
1474
|
this.newMessageCount[this.chatTabIndex] = 0;
|
|
1575
1475
|
}
|
|
1576
|
-
if (action === _constant.
|
|
1476
|
+
if (action === _constant.FcrUIAction.CLOSE_WAITING_ROOM_DIALOG) {
|
|
1577
1477
|
var waitingDialogId = '';
|
|
1578
1478
|
this._openedDialogIdMap.forEach(function (dialogKey, dialogId) {
|
|
1579
|
-
if (dialogKey === _constant.
|
|
1479
|
+
if (dialogKey === _constant.FcrUIDialogKey.WAITING_ROOM) {
|
|
1580
1480
|
waitingDialogId = dialogId;
|
|
1581
1481
|
}
|
|
1582
1482
|
});
|
|
1583
|
-
this.
|
|
1483
|
+
this._dialogProvider.closeDialog(waitingDialogId);
|
|
1584
1484
|
}
|
|
1585
|
-
if (action === _constant.
|
|
1485
|
+
if (action === _constant.FcrUIAction.CLOSE_REMOVE_ADMIT_WAITING_ROOM_DIALOG) {
|
|
1586
1486
|
var operationDialogId = '';
|
|
1587
1487
|
this._openedDialogIdMap.forEach(function (dialogKey, dialogId) {
|
|
1588
1488
|
if (dialogKey === payload) {
|
|
1589
1489
|
operationDialogId = dialogId;
|
|
1590
1490
|
}
|
|
1591
1491
|
});
|
|
1592
|
-
this.
|
|
1492
|
+
this._dialogProvider.closeDialog(operationDialogId);
|
|
1593
1493
|
}
|
|
1594
|
-
if (action === _constant.
|
|
1494
|
+
if (action === _constant.FcrUIAction.MOVE_TO_MAIN_ROOM_ALL_MEMBER) {
|
|
1595
1495
|
this._operateWaitingRoom(payload);
|
|
1596
1496
|
}
|
|
1597
|
-
if (action === _constant.
|
|
1497
|
+
if (action === _constant.FcrUIAction.ENABLE_WAITING_ROOM) {
|
|
1598
1498
|
this.setEnableWaitingRoom(payload, true);
|
|
1599
1499
|
}
|
|
1600
1500
|
}
|
|
1601
1501
|
}, {
|
|
1602
1502
|
key: "_operateWaitingRoom",
|
|
1603
1503
|
value: function () {
|
|
1604
|
-
var _operateWaitingRoom2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
1605
|
-
return _regenerator["default"].wrap(function
|
|
1606
|
-
while (1) switch (
|
|
1504
|
+
var _operateWaitingRoom2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee5(isOperate) {
|
|
1505
|
+
return _regenerator["default"].wrap(function _callee5$(_context5) {
|
|
1506
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
1607
1507
|
case 0:
|
|
1608
1508
|
if (!isOperate) {
|
|
1609
|
-
|
|
1509
|
+
_context5.next = 3;
|
|
1610
1510
|
break;
|
|
1611
1511
|
}
|
|
1612
|
-
|
|
1512
|
+
_context5.next = 3;
|
|
1613
1513
|
return this.moveToMainRoomAllMember();
|
|
1614
1514
|
case 3:
|
|
1615
|
-
|
|
1515
|
+
_context5.next = 5;
|
|
1616
1516
|
return this.setEnableWaitingRoom(false, false);
|
|
1617
1517
|
case 5:
|
|
1618
1518
|
case "end":
|
|
1619
|
-
return
|
|
1519
|
+
return _context5.stop();
|
|
1620
1520
|
}
|
|
1621
|
-
},
|
|
1521
|
+
}, _callee5, this);
|
|
1622
1522
|
}));
|
|
1623
1523
|
function _operateWaitingRoom(_x4) {
|
|
1624
1524
|
return _operateWaitingRoom2.apply(this, arguments);
|
|
@@ -1635,127 +1535,91 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1635
1535
|
value: function _handleStreamsAddedOrUpdated() {
|
|
1636
1536
|
var _this$_streamControl$;
|
|
1637
1537
|
this.hasScreenShare = this._streamControl.getStreamList().some(function (stream) {
|
|
1638
|
-
return stream.videoSourceType ===
|
|
1538
|
+
return stream.videoSourceType === _type4.AgoraRteVideoSourceType.SCREEN;
|
|
1639
1539
|
});
|
|
1640
1540
|
this._sharingOwnerUser = (_this$_streamControl$ = this._streamControl.getStreamList().find(function (stream) {
|
|
1641
|
-
return stream.videoSourceType ===
|
|
1541
|
+
return stream.videoSourceType === _type4.AgoraRteVideoSourceType.SCREEN;
|
|
1642
1542
|
})) === null || _this$_streamControl$ === void 0 ? void 0 : _this$_streamControl$.owner;
|
|
1643
1543
|
var _this$_userControl$ge = this._userControl.getLocalUser(),
|
|
1644
1544
|
userId = _this$_userControl$ge.userId;
|
|
1645
1545
|
var streams = this._streamControl.getStreamsByUserId(userId);
|
|
1646
|
-
var pstnStream = streams.find(function (
|
|
1647
|
-
var connectorType =
|
|
1546
|
+
var pstnStream = streams.find(function (_ref6) {
|
|
1547
|
+
var connectorType = _ref6.connectorType;
|
|
1648
1548
|
return connectorType === _fcrCore.FcrRoomConnectorType.PSTN;
|
|
1649
1549
|
});
|
|
1650
1550
|
var hasPstnStream = !!pstnStream;
|
|
1651
1551
|
this.isPstnUser = hasPstnStream;
|
|
1652
|
-
this.connectType = hasPstnStream ? _deviceStore.ConnectType.PHONE : this.microphoneId ? _deviceStore.ConnectType.COMPUTER : _deviceStore.ConnectType.NONE;
|
|
1653
|
-
}
|
|
1654
|
-
|
|
1655
|
-
// 获取翻译员列表
|
|
1656
|
-
}, {
|
|
1657
|
-
key: "setInitShowGuide",
|
|
1658
|
-
value: function setInitShowGuide(value) {
|
|
1659
|
-
this.initShowGuide = value;
|
|
1660
1552
|
}
|
|
1661
|
-
|
|
1662
|
-
// 获取翻译员列表
|
|
1663
|
-
}, {
|
|
1664
|
-
key: "getInterpreterUsers",
|
|
1665
|
-
value: function getInterpreterUsers(fnName) {
|
|
1666
|
-
if (this._interpreterControl) {
|
|
1667
|
-
return this._interpreterControl.getInterpreterUserList();
|
|
1668
|
-
}
|
|
1669
|
-
return null;
|
|
1670
|
-
}
|
|
1671
|
-
|
|
1672
|
-
// 获取翻译官信息
|
|
1673
|
-
}, {
|
|
1674
|
-
key: "getInterpreter",
|
|
1675
|
-
value: function getInterpreter() {
|
|
1676
|
-
var _this9 = this;
|
|
1677
|
-
if (this._interpreterControl) {
|
|
1678
|
-
var _this$_interpreterCon2;
|
|
1679
|
-
return ((_this$_interpreterCon2 = this._interpreterControl.getInterpreterUserList()) === null || _this$_interpreterCon2 === void 0 ? void 0 : _this$_interpreterCon2.find(function (ele) {
|
|
1680
|
-
return ele.userId === _this9._userControl.getLocalUser().userId;
|
|
1681
|
-
})) || null;
|
|
1682
|
-
}
|
|
1683
|
-
return null;
|
|
1684
|
-
}
|
|
1685
|
-
// 获取同声传译开启状态
|
|
1686
1553
|
}, {
|
|
1687
|
-
key: "
|
|
1688
|
-
value: function getInterpreterState() {
|
|
1689
|
-
if (this._interpreterControl) {
|
|
1690
|
-
return this._interpreterControl.getState().enable;
|
|
1691
|
-
}
|
|
1692
|
-
return false;
|
|
1693
|
-
}
|
|
1694
|
-
|
|
1695
|
-
// / 切换输出语言房间
|
|
1696
|
-
}, {
|
|
1697
|
-
key: "triggerOutputLanguage",
|
|
1554
|
+
key: "setOutputLanguage",
|
|
1698
1555
|
value: function () {
|
|
1699
|
-
var
|
|
1700
|
-
return _regenerator["default"].wrap(function
|
|
1701
|
-
while (1) switch (
|
|
1556
|
+
var _setOutputLanguage = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee6(language) {
|
|
1557
|
+
return _regenerator["default"].wrap(function _callee6$(_context6) {
|
|
1558
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
1702
1559
|
case 0:
|
|
1703
|
-
|
|
1704
|
-
|
|
1560
|
+
_context6.next = 2;
|
|
1561
|
+
return this._interpreterProvider.setOutputLanguage(language);
|
|
1562
|
+
case 2:
|
|
1705
1563
|
case "end":
|
|
1706
|
-
return
|
|
1564
|
+
return _context6.stop();
|
|
1707
1565
|
}
|
|
1708
|
-
},
|
|
1566
|
+
}, _callee6, this);
|
|
1709
1567
|
}));
|
|
1710
|
-
function
|
|
1711
|
-
return
|
|
1568
|
+
function setOutputLanguage(_x5) {
|
|
1569
|
+
return _setOutputLanguage.apply(this, arguments);
|
|
1712
1570
|
}
|
|
1713
|
-
return
|
|
1714
|
-
}()
|
|
1571
|
+
return setOutputLanguage;
|
|
1572
|
+
}()
|
|
1715
1573
|
}, {
|
|
1716
|
-
key: "
|
|
1574
|
+
key: "subscribeLanguage",
|
|
1717
1575
|
value: function () {
|
|
1718
|
-
var
|
|
1719
|
-
return _regenerator["default"].wrap(function
|
|
1720
|
-
while (1) switch (
|
|
1576
|
+
var _subscribeLanguage = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee7(language) {
|
|
1577
|
+
return _regenerator["default"].wrap(function _callee7$(_context7) {
|
|
1578
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
1721
1579
|
case 0:
|
|
1722
|
-
|
|
1723
|
-
|
|
1580
|
+
_context7.next = 2;
|
|
1581
|
+
return this._interpreterProvider.subscribeLanguage(language);
|
|
1582
|
+
case 2:
|
|
1724
1583
|
case "end":
|
|
1725
|
-
return
|
|
1584
|
+
return _context7.stop();
|
|
1726
1585
|
}
|
|
1727
|
-
},
|
|
1586
|
+
}, _callee7, this);
|
|
1728
1587
|
}));
|
|
1729
|
-
function
|
|
1730
|
-
return
|
|
1588
|
+
function subscribeLanguage(_x6) {
|
|
1589
|
+
return _subscribeLanguage.apply(this, arguments);
|
|
1731
1590
|
}
|
|
1732
|
-
return
|
|
1591
|
+
return subscribeLanguage;
|
|
1733
1592
|
}()
|
|
1734
1593
|
}, {
|
|
1735
|
-
key: "
|
|
1736
|
-
value: function
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
this.
|
|
1594
|
+
key: "setSubscribeMainRoom",
|
|
1595
|
+
value: function setSubscribeMainRoom(enable) {
|
|
1596
|
+
var event = enable ? _enums2.EventType.START : _enums2.EventType.STOP;
|
|
1597
|
+
this._eventProvider.sendEvent(_constant.FcrUIAction.TOGGLE_MAINROOM_REMOTE_AUDIO, {
|
|
1598
|
+
event: event
|
|
1599
|
+
});
|
|
1600
|
+
|
|
1601
|
+
// TODO 更新 subscribeLanguageList
|
|
1602
|
+
var subscribeLanguageList = this._sharedInterpreterDataSource.subscribeLanguageList;
|
|
1603
|
+
var languageList = subscribeLanguageList.filter(function (language) {
|
|
1604
|
+
return language !== _interpreter.ORIGIN;
|
|
1605
|
+
});
|
|
1606
|
+
this._sharedInterpreterDataSource.preSubscribeLanguageList = subscribeLanguageList;
|
|
1607
|
+
if (event === _enums2.EventType.START) {
|
|
1608
|
+
this._sharedInterpreterDataSource.subscribeLanguageList = [].concat((0, _toConsumableArray2["default"])(languageList), [_interpreter.ORIGIN]);
|
|
1609
|
+
} else {
|
|
1610
|
+
this._sharedInterpreterDataSource.subscribeLanguageList = languageList;
|
|
1611
|
+
}
|
|
1748
1612
|
}
|
|
1749
1613
|
|
|
1750
1614
|
//是否有离线翻译官
|
|
1751
1615
|
}, {
|
|
1752
1616
|
key: "getInterpreterUsersAllOnline",
|
|
1753
1617
|
value: function getInterpreterUsersAllOnline() {
|
|
1754
|
-
var
|
|
1618
|
+
var _this9 = this;
|
|
1755
1619
|
if (this._interpreterControl) {
|
|
1756
|
-
var _this$
|
|
1757
|
-
var isOffLine = (_this$
|
|
1758
|
-
return !
|
|
1620
|
+
var _this$_interpreterCon;
|
|
1621
|
+
var isOffLine = (_this$_interpreterCon = this._interpreterControl.getInterpreterUserList()) === null || _this$_interpreterCon === void 0 ? void 0 : _this$_interpreterCon.some(function (ele) {
|
|
1622
|
+
return !_this9._userControl.getUserList().find(function (item) {
|
|
1759
1623
|
return item.userId === ele.userId;
|
|
1760
1624
|
});
|
|
1761
1625
|
});
|
|
@@ -1766,36 +1630,26 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1766
1630
|
}]);
|
|
1767
1631
|
}();
|
|
1768
1632
|
_ActionBarStore = ActionBarStore;
|
|
1769
|
-
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ActionBarStore, [[_mobx.observable, 1, "users"], [_mobx.observable, 1, "newMessageTooltipVisible"], [_mobx.observable, 1, "
|
|
1633
|
+
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ActionBarStore, [[_mobx.observable, 1, "users"], [_mobx.observable, 1, "newMessageTooltipVisible"], [_mobx.observable, 1, "totalUser"], [_mobx.observable, 1, "totalWaitingRoomUser"], [_mobx.observable, 1, "liveStreamingState"], [_mobx.observable, 1, "currentMenuIs"], [_mobx.observable, 1, "cloudRecordingState"], [_mobx.observable, 1, "localUserRole"], [_mobx.observable, 1, "localUser"], [_mobx.observable, 1, "connectionSettingVisible"], [_mobx.observable, 1, "folded"], [_mobx.observable, 1, "boardOwnerUser"], [_mobx.observable, 1, "hasScreenShare"], [_mobx.observable, 1, "showArrow"], [_mobx.observable, 1, "phoneMicEnabled"], [_mobx.observable, 1, "chatTabIndex"], [_mobx.observable, 1, "popoverOpened"], [_mobx.observable, 1, "stateBarLeaveMeeting"], [_mobx.observable, 1, "isPstnUser"], [_mobx.observable, 1, "interpreterUsersOffline"], [_mobx.computed, 3, "asideLayout"], [_mobx.computed, 3, "chatRenderAt"], [_mobx.computed, 3, "participantsRenderAt"], [_mobx.computed, 3, "participantVisible"], [_mobx.computed, 3, "chatVisible"], [_mobx.computed, 3, "remoteUsers"], [_mobx.computed, 3, "hasStartScreenSharePermission"], [_mobx.computed, 3, "hasStopScreenSharePermission"], [_mobx.computed, 3, "sharingOwnerUser"], [_mobx.computed, 3, "hasEnableStartScreenSharePermission"], [_mobx.computed, 3, "hasStartLiveStreamingPermission"], [_mobx.computed, 3, "hasEnableStartAudioPermission"], [_mobx.computed, 3, "hasEnableChangeNamePermission"], [_mobx.computed, 3, "hasEnableStartVideoPermission"], [_mobx.computed, 3, "hasLockRoomPermission"], [_mobx.computed, 3, "hasEnableJoinWithAudioPermission"], [_mobx.computed, 3, "hasWaitingRoomPermission"], [_mobx.computed, 3, "hasWatermarkDisablePermission"], [_mobx.computed, 3, "hasEnableStartSharePermission"], [_mobx.computed, 3, "hasAllowWriteBoardPermission"], [_mobx.computed, 3, "hasCloseWriteBoardPermission"], [_mobx.computed, 3, "hasAllowScreenShareAndBoardPermission"], [_mobx.computed, 3, "hasAllowChatPermission"], [_mobx.computed, 3, "hasStartCloudRecordingPermission"], [_mobx.computed, 3, "hasAssignHostBeforeLeavingPermission"], [_mobx.computed, 3, "hasEndRoomPermission"], [_mobx.computed, 3, "isScreenShareAndBoardEnabled"], [_mobx.computed, 3, "isBoardWriteEnabled"], [_mobx.computed, 3, "isWaterMarkEnabled"], [_mobx.computed, 3, "isMulti"], [_mobx.computed, 3, "hasEnableInterpreterPermission"], [_mobx.computed, 3, "hasDisableInterpreterPermission"], [_mobx.computed, 3, "microphoneEnabled"], [_mobx.computed, 3, "allNewMessage"], [_mobx.computed, 3, "isMainRoom"], [_mobx.computed, 3, "hasAllowChangeNamePromission"], [_mobx.computed, 3, "hasDisallowChangeNamePromission"], [_mobx.computed, 3, "newMessageCount"], [_pauseCloudRecordingDecs, 2, "pauseCloudRecording"], [_resumeCloudRecordingDecs, 2, "resumeCloudRecording"], [_stopCloudRecordingDecs, 2, "stopCloudRecording"], [_decorator.bound, 2, "startCloudRecording"], [_toggleLayoutBarLockDecs, 18, "toggleLayoutBarLock"], [_showNewMessageTooltipDecs, 18, "showNewMessageTooltip"], [_hideNewMessageTooltipDecs, 18, "hideNewMessageTooltip"], [_switchMenuDecs, 18, "switchMenu"], [_mobx.computed, 3, "isLocked"], [_decorator.bound, 2, "isWaitingRoomEnabled"], [_decorator.bound, 2, "isAllowJoinWithAudioEnabled"], [_decorator.bound, 2, "enableMicrophone"], [_decorator.bound, 2, "setAllowBoardWrite"], [_decorator.bound, 2, "setAllowScreenShare"], [_setPopoverOpenedDecs, 18, "setPopoverOpened"], [_setStateBarLeaveMeetingDecs, 18, "setStateBarLeaveMeeting"], [_decorator.bound, 2, "getRoomType"], [_decorator.bound, 2, "allowJoinWithMuteAudio"], [_decorator.bound, 2, "setAllowJoinWithMuteAudio"], [_decorator.bound, 2, "isLockRoomEnabled"], [_decorator.bound, 2, "setLockRoomEnabled"], [_decorator.bound, 2, "setAllowShareScreen"], [_decorator.bound, 2, "allowShareScreen"], [_decorator.bound, 2, "allowWriteBoard"], [_decorator.bound, 2, "allowChat"], [_decorator.bound, 2, "setAllowChat"], [_decorator.bound, 2, "allowUnmuteSelfAudio"], [_decorator.bound, 2, "setAllowUnmuteSelfAudio"], [_decorator.bound, 2, "allowUnmuteSelfVideo"], [_decorator.bound, 2, "setAllowUnmuteSelfVideo"], [_decorator.bound, 2, "allowChangeName"], [_decorator.bound, 2, "toggleChat"], [_decorator.bound, 2, "openChat"], [_decorator.bound, 2, "closeChat"], [_decorator.bound, 2, "toggleParticipants"], [_decorator.bound, 2, "openParticipants"], [_decorator.bound, 2, "closeParticipants"], [_decorator.bound, 2, "openDeviceSettingDialog"], [_decorator.bound, 2, "startScreenShare"], [_decorator.bound, 2, "openInterpreterDialog"], [_decorator.bound, 2, "openWhiteboard"], [_decorator.bound, 2, "closeWhiteboard"], [_decorator.bound, 2, "closeShareScreen"], [_decorator.bound, 2, "openLiveStreamingDialog"], [_decorator.bound, 2, "toggleConnection"], [_decorator.bound, 2, "openConnection"], [_decorator.bound, 2, "closeConnection"], [_handleJoinWaitingRoomDecs, 18, "_handleJoinWaitingRoom"], [_toggleFoldDecs, 18, "toggleFold"], [_setShowArrowDecs, 18, "setShowArrow"], [_setEnableWaitingRoomDecs, 18, "setEnableWaitingRoom"], [_kickOutWaitingRoomAllMemberDecs, 18, "kickOutWaitingRoomAllMember"], [_moveToMainRoomAllMemberDecs, 18, "moveToMainRoomAllMember"], [_decorator.bound, 2, "_interceptShareScreen"], [_decorator.bound, 2, "_interceptShareBoard"], [_handleRemoteUsersJoinedDecs, 18, "_handleRemoteUsersJoined"], [_handleRemoteUsersLeftDecs, 18, "_handleRemoteUsersLeft"], [_handleAllUserCountUpdatedDecs, 18, "_handleAllUserCountUpdated"], [_handleUserInfoUpdatedDecs, 18, "_handleUserInfoUpdated"], [_handleLiveStreamingStateUpdatedDecs, 18, "_handleLiveStreamingStateUpdated"], [_handleChatVisibleDecs, 18, "_handleChatVisible"], [_handlerTraceScreenCaptureStateUpdateDecs, 18, "_handlerTraceScreenCaptureStateUpdate"], [_decorator.bound, 2, "setAllowWaterMark"], [_decorator.bound, 2, "setWaterMarkLineType"], [_decorator.bound, 2, "setAlllowChangeName"], [_decorator.bound, 2, "_onEvent"], [_operateWaitingRoomDecs, 18, "_operateWaitingRoom"], [_handleCloudRecordingStateUpdatedDecs, 18, "_handleCloudRecordingStateUpdated"], [_handleStreamsAddedOrUpdatedDecs, 18, "_handleStreamsAddedOrUpdated"], [_setOutputLanguageDecs, 18, "setOutputLanguage"], [_subscribeLanguageDecs, 18, "subscribeLanguage"], [_setSubscribeMainRoomDecs, 18, "setSubscribeMainRoom"], [_getInterpreterUsersAllOnlineDecs, 18, "getInterpreterUsersAllOnline"]], []).e, 21);
|
|
1770
1634
|
_init_users = _applyDecs$e[0];
|
|
1771
1635
|
_init_newMessageTooltipVisible = _applyDecs$e[1];
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
_init_stateBarLeaveMeeting = _applyDecs$e[21];
|
|
1792
|
-
_init_isPstnUser = _applyDecs$e[22];
|
|
1793
|
-
_init_interpreter = _applyDecs$e[23];
|
|
1794
|
-
_init_interpreterState = _applyDecs$e[24];
|
|
1795
|
-
_init_interpreterUsers = _applyDecs$e[25];
|
|
1796
|
-
_init_securityStore = _applyDecs$e[26];
|
|
1797
|
-
_init_interpreterUsersOffline = _applyDecs$e[27];
|
|
1798
|
-
_init_initShowGuide = _applyDecs$e[28];
|
|
1799
|
-
_init__handleNewMessageEvent = _applyDecs$e[29];
|
|
1800
|
-
_initProto = _applyDecs$e[30];
|
|
1636
|
+
_init_totalUser = _applyDecs$e[2];
|
|
1637
|
+
_init_totalWaitingRoomUser = _applyDecs$e[3];
|
|
1638
|
+
_init_liveStreamingState = _applyDecs$e[4];
|
|
1639
|
+
_init_currentMenuIs = _applyDecs$e[5];
|
|
1640
|
+
_init_cloudRecordingState = _applyDecs$e[6];
|
|
1641
|
+
_init_localUserRole = _applyDecs$e[7];
|
|
1642
|
+
_init_localUser = _applyDecs$e[8];
|
|
1643
|
+
_init_connectionSettingVisible = _applyDecs$e[9];
|
|
1644
|
+
_init_folded = _applyDecs$e[10];
|
|
1645
|
+
_init_boardOwnerUser = _applyDecs$e[11];
|
|
1646
|
+
_init_hasScreenShare = _applyDecs$e[12];
|
|
1647
|
+
_init_showArrow = _applyDecs$e[13];
|
|
1648
|
+
_init_phoneMicEnabled = _applyDecs$e[14];
|
|
1649
|
+
_init_chatTabIndex = _applyDecs$e[15];
|
|
1650
|
+
_init_popoverOpened = _applyDecs$e[16];
|
|
1651
|
+
_init_stateBarLeaveMeeting = _applyDecs$e[17];
|
|
1652
|
+
_init_isPstnUser = _applyDecs$e[18];
|
|
1653
|
+
_init_interpreterUsersOffline = _applyDecs$e[19];
|
|
1654
|
+
_initProto = _applyDecs$e[20];
|
|
1801
1655
|
var ActionBarContext = exports.ActionBarContext = /*#__PURE__*/(0, _react.createContext)(null);
|