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