fcr-ui-scene 3.4.1 → 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/base.d.ts +40 -5
- package/lib/base.js +237 -22
- package/lib/common/device-store.d.ts +14 -23
- package/lib/common/device-store.js +252 -361
- package/lib/common/device-stream-store.d.ts +14 -8
- package/lib/common/device-stream-store.js +116 -254
- package/lib/common/event-store.d.ts +10 -35
- package/lib/common/event-store.js +13 -64
- package/lib/common/security-store.d.ts +39 -47
- package/lib/common/security-store.js +379 -335
- package/lib/creator.d.ts +1 -1
- package/lib/creator.js +4 -9
- package/lib/electron/app.js +4 -2
- package/lib/electron/bootstrap-dev.js +0 -7
- package/lib/electron/bootstrap-sdk.js +10 -0
- package/lib/electron/injections.d.ts +2 -0
- 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/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.js +2 -2
- package/lib/modules/Interpreter/action/switch-btn/index.js +5 -5
- 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/index.d.ts +11 -4
- package/lib/modules/Interpreter/index.js +23 -8
- 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.d.ts +2 -2
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.js +14 -14
- 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 +23 -84
- package/lib/modules/Interpreter/store.js +204 -1216
- package/lib/modules/Interpreter/type.d.ts +12 -29
- package/lib/modules/Interpreter/type.js +2 -10
- package/lib/modules/Interpreter/utils.d.ts +1 -5
- package/lib/modules/Interpreter/utils.js +28 -86
- package/lib/modules/Interpreter/view.js +19 -3
- package/lib/modules/action-bar/action-bar-collapes-items.d.ts +1 -4
- package/lib/modules/action-bar/action-bar-collapes-items.js +21 -38
- package/lib/modules/action-bar/chat/index.js +8 -8
- package/lib/modules/action-bar/components/apps/app-item/index.css +1 -2
- package/lib/modules/action-bar/components/apps/app-item/index.d.ts +1 -10
- package/lib/modules/action-bar/components/apps/appitems.d.ts +1 -3
- package/lib/modules/action-bar/components/apps/index.css +2 -2
- package/lib/modules/action-bar/components/apps/index.js +2 -3
- package/lib/modules/action-bar/components/collapse/index.d.ts +8 -0
- package/lib/modules/action-bar/components/collapse/index.js +222 -0
- package/lib/modules/action-bar/components/interpreter/index.d.ts +1 -5
- package/lib/modules/action-bar/components/item/index.d.ts +9 -0
- package/lib/modules/action-bar/components/item/index.js +164 -0
- package/lib/modules/action-bar/components/leave/assign-host.d.ts +1 -8
- package/lib/modules/action-bar/components/leave/assign-host.js +1 -1
- package/lib/modules/action-bar/components/leave/index.js +9 -24
- package/lib/modules/action-bar/components/leave/leave-meeting.d.ts +1 -16
- package/lib/modules/action-bar/components/more/index.js +13 -9
- package/lib/modules/action-bar/components/more/poppover-content.d.ts +1 -4
- package/lib/modules/action-bar/components/more/poppover-content.js +28 -5
- 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.js +2 -2
- package/lib/modules/action-bar/components/placement/index.d.ts +4 -0
- package/lib/modules/action-bar/components/placement/index.js +18 -0
- package/lib/modules/action-bar/components/record/stop-record-dialog.d.ts +1 -3
- package/lib/modules/action-bar/components/screen-share/submenu.js +25 -2
- package/lib/modules/action-bar/components/security/index.js +3 -1
- package/lib/modules/action-bar/components/smaller/index.d.ts +1 -0
- package/lib/modules/action-bar/components/smaller/index.js +52 -0
- package/lib/modules/action-bar/components/trigger-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.d.ts +36 -6
- package/lib/modules/action-bar/index.dev.d.ts +0 -1
- package/lib/modules/action-bar/index.dev.js +94 -121
- package/lib/modules/action-bar/index.js +46 -18
- package/lib/modules/action-bar/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/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 -14
- 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 -12
- package/lib/modules/action-bar/settings/index.js +4 -4
- package/lib/modules/action-bar/smaller.js +5 -5
- package/lib/modules/action-bar/store.d.ts +84 -98
- package/lib/modules/action-bar/store.js +567 -707
- 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 +11 -11
- package/lib/modules/audio-stream/index.d.ts +22 -10
- package/lib/modules/audio-stream/index.js +78 -82
- package/lib/modules/chat/chat-bar/index.css +0 -6
- package/lib/modules/chat/chat-bar/index.d.ts +3 -3
- package/lib/modules/chat/chat-bar/index.js +39 -51
- 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 +7 -27
- 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 +128 -196
- 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.d.ts +13 -5
- package/lib/modules/chat/index.dev.d.ts +0 -1
- package/lib/modules/chat/index.dev.js +71 -72
- package/lib/modules/chat/index.js +45 -22
- package/lib/modules/chat/message-list.js +51 -68
- 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 +2 -2
- package/lib/modules/components/device-control/components/microphone/index.js +7 -7
- 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.js +2 -1
- package/lib/modules/components/dialog-container/index.d.ts +2 -2
- 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.d.ts +1 -1
- package/lib/modules/components/member-window/index.js +12 -6
- package/lib/modules/components/security-menu/index.d.ts +2 -0
- package/lib/modules/components/security-menu/index.js +34 -35
- package/lib/modules/components/tab-frame/index.d.ts +2 -2
- package/lib/modules/components/tab-frame/index.js +26 -5
- 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.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 -4
- package/lib/modules/connection-gateway/index.js +25 -15
- package/lib/modules/connection-gateway/store.d.ts +22 -18
- package/lib/modules/connection-gateway/store.js +60 -36
- package/lib/modules/connection-gateway/types.d.ts +4 -0
- package/lib/modules/connection-gateway/types.js +6 -0
- package/lib/modules/connection-gateway/view.js +2 -2
- package/lib/modules/control-bar/components/meeting-details/index.js +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 -7
- package/lib/modules/control-bar/index.js +46 -27
- package/lib/modules/control-bar/store.d.ts +38 -26
- package/lib/modules/control-bar/store.js +172 -282
- package/lib/modules/control-bar/types.d.ts +20 -0
- package/lib/modules/control-bar/types.js +6 -0
- package/lib/modules/control-bar/view.js +68 -34
- 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/store.d.ts +8 -9
- package/lib/modules/device-pretest/store.js +52 -36
- package/lib/modules/dialog/components/Interpreter/electron.js +21 -15
- package/lib/modules/dialog/components/Interpreter/index.js +2 -2
- package/lib/modules/dialog/components/chat/electron.d.ts +1 -1
- package/lib/modules/dialog/components/chat/electron.js +19 -10
- package/lib/modules/dialog/components/chat/index.js +2 -2
- package/lib/modules/dialog/components/confirm/electron.d.ts +1 -1
- package/lib/modules/dialog/components/confirm/electron.js +68 -38
- package/lib/modules/dialog/components/confirm/index.js +1 -1
- package/lib/modules/dialog/components/connection-gateway/electron.d.ts +1 -1
- package/lib/modules/dialog/components/connection-gateway/electron.js +8 -10
- package/lib/modules/dialog/components/connection-gateway/index.css +2 -0
- package/lib/modules/dialog/components/connection-gateway/index.d.ts +3 -1
- package/lib/modules/dialog/components/connection-gateway/index.js +20 -7
- package/lib/modules/dialog/components/connection-gateway/tabs.d.ts +6 -0
- package/lib/modules/dialog/components/connection-gateway/tabs.js +44 -0
- package/lib/modules/dialog/components/control-bar/index.d.ts +5 -1
- package/lib/modules/dialog/components/control-bar/index.js +122 -9
- package/lib/modules/dialog/components/device-setting/electron.js +6 -2
- package/lib/modules/dialog/components/device-setting/index.js +2 -2
- package/lib/modules/dialog/components/dialog-container/component/body.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 +32 -7
- package/lib/modules/dialog/components/live-streaming/index.js +9 -5
- package/lib/modules/dialog/components/participant/electron.js +11 -5
- package/lib/modules/dialog/components/participant/index.js +4 -3
- package/lib/modules/dialog/components/share-screen-selection/index.js +9 -5
- package/lib/modules/dialog/components/system-preference/electron.js +1 -1
- package/lib/modules/dialog/components/toast/index.js +1 -1
- package/lib/modules/dialog/components/video-window/index.d.ts +2 -0
- package/lib/modules/dialog/components/video-window/index.js +148 -0
- package/lib/modules/dialog/components/whiteboard/index.js +2 -2
- package/lib/modules/dialog/dialogs.d.ts +2 -5
- package/lib/modules/dialog/dialogs.js +2 -157
- package/lib/modules/dialog/hooks/useElectron.d.ts +3 -25
- package/lib/modules/dialog/hooks/useElectron.js +91 -35
- package/lib/modules/dialog/index.d.ts +30 -4
- package/lib/modules/dialog/index.js +62 -6
- package/lib/modules/dialog/store.d.ts +46 -12
- package/lib/modules/dialog/store.js +121 -65
- package/lib/modules/dialog/types/index.d.ts +14 -3
- 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 +5 -1
- 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.d.ts +0 -4
- package/lib/modules/invite/view.js +7 -11
- package/lib/modules/invite/voip-invite.js +6 -5
- package/lib/modules/layout/components/Aside.js +34 -17
- package/lib/modules/layout/components/Carousel.js +1 -1
- package/lib/modules/layout/components/Gallery.js +1 -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 +25 -10
- package/lib/modules/layout/member-window/index.css +18 -116
- package/lib/modules/layout/member-window/index.d.ts +3 -10
- package/lib/modules/layout/member-window/index.js +115 -227
- package/lib/modules/layout/store.d.ts +61 -71
- package/lib/modules/layout/store.js +311 -573
- 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.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 +51 -0
- package/lib/modules/participant/attendee/index.d.ts +5 -8
- package/lib/modules/participant/attendee/index.js +15 -61
- 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.js +8 -8
- 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.d.ts +34 -7
- package/lib/modules/participant/index.dev.d.ts +0 -1
- package/lib/modules/participant/index.dev.js +87 -116
- package/lib/modules/participant/index.js +39 -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 +58 -25
- package/lib/modules/participant/store.js +321 -298
- 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 +5 -5
- package/lib/modules/setting/index.d.ts +25 -5
- package/lib/modules/setting/index.dev.d.ts +0 -1
- package/lib/modules/setting/index.dev.js +120 -81
- package/lib/modules/setting/index.js +35 -9
- package/lib/modules/setting/minutes-settings/minutes-settings.js +1 -1
- package/lib/modules/setting/state/index.js +3 -3
- package/lib/modules/setting/store.d.ts +48 -14
- package/lib/modules/setting/store.js +105 -114
- package/lib/modules/setting/translate-settings/translate-settings.js +3 -3
- package/lib/modules/setting/video-settings/video-settings-basic.js +19 -22
- package/lib/modules/setting/view.js +6 -35
- package/lib/modules/share-screen/components/selection/index.css +70 -0
- package/lib/modules/share-screen/components/selection/index.d.ts +2 -0
- package/lib/modules/share-screen/components/selection/index.js +267 -0
- package/lib/modules/share-screen/components/share-state-bar/index.css +76 -0
- package/lib/modules/share-screen/components/share-state-bar/index.d.ts +4 -0
- package/lib/modules/share-screen/components/share-state-bar/index.js +98 -0
- package/lib/modules/share-screen/index.d.ts +15 -18
- package/lib/modules/share-screen/index.dev.d.ts +0 -1
- package/lib/modules/share-screen/index.dev.js +90 -91
- package/lib/modules/share-screen/index.js +22 -22
- package/lib/modules/share-screen/selection/index.css +0 -4
- package/lib/modules/share-screen/selection/index.js +129 -126
- 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 +250 -219
- package/lib/modules/share-screen/types.d.ts +27 -0
- package/lib/modules/share-screen/types.js +6 -0
- package/lib/modules/share-screen/view.js +1 -1
- package/lib/modules/sound-effect/index.d.ts +9 -4
- package/lib/modules/sound-effect/index.js +72 -40
- package/lib/modules/sound-effect/sound-effect-player.js +1 -1
- package/lib/modules/state-bar/index.d.ts +16 -13
- package/lib/modules/state-bar/index.dev.d.ts +0 -1
- package/lib/modules/state-bar/index.dev.js +78 -83
- package/lib/modules/state-bar/index.js +23 -7
- package/lib/modules/state-bar/meeting-details.js +24 -12
- package/lib/modules/state-bar/meeting-network-state.js +1 -1
- package/lib/modules/state-bar/store.d.ts +20 -10
- package/lib/modules/state-bar/store.js +84 -87
- package/lib/modules/state-bar/view.js +2 -2
- package/lib/modules/video-window/deviceState/index.d.ts +2 -2
- package/lib/modules/video-window/deviceState/index.js +4 -6
- package/lib/modules/video-window/index.css +1 -4
- package/lib/modules/video-window/index.d.ts +33 -6
- package/lib/modules/video-window/index.js +63 -15
- package/lib/modules/video-window/members/index.css +1 -0
- package/lib/modules/video-window/members/index.js +25 -11
- package/lib/modules/video-window/store.d.ts +58 -27
- package/lib/modules/video-window/store.js +166 -161
- package/lib/modules/waiting-room-layout/index.d.ts +11 -4
- package/lib/modules/waiting-room-layout/index.js +26 -13
- package/lib/modules/waiting-room-layout/store.d.ts +6 -3
- package/lib/modules/waiting-room-layout/store.js +17 -15
- package/lib/modules/whiteboard/components/control-bar/store.d.ts +4 -4
- package/lib/modules/whiteboard/components/control-bar/store.js +8 -8
- package/lib/modules/whiteboard/index.d.ts +20 -14
- package/lib/modules/whiteboard/index.js +250 -223
- package/lib/modules/whiteboard/view.d.ts +2 -0
- package/lib/modules/whiteboard/view.js +49 -0
- package/lib/plugins/browser-runtime-plugin.js +5 -1
- package/lib/providers/chat-provider.d.ts +71 -0
- package/lib/providers/chat-provider.js +91 -0
- package/lib/providers/device-privilege-provider.d.ts +52 -6
- package/lib/providers/device-privilege-provider.js +212 -183
- package/lib/providers/device-provider.d.ts +203 -45
- package/lib/providers/device-provider.js +486 -398
- package/lib/providers/device-stream-provider.d.ts +12 -13
- package/lib/providers/device-stream-provider.js +86 -193
- package/lib/providers/dialog-provider.d.ts +135 -0
- package/lib/providers/dialog-provider.js +204 -0
- package/lib/providers/event-provider.d.ts +1 -21
- package/lib/providers/event-provider.js +19 -57
- package/lib/providers/interpreter-provider.d.ts +218 -7
- package/lib/providers/interpreter-provider.js +1072 -80
- package/lib/providers/local-storage-provider.d.ts +9 -0
- package/lib/providers/message-provider.d.ts +69 -0
- package/lib/providers/message-provider.js +98 -0
- package/lib/providers/monitor-provider.d.ts +5 -0
- package/lib/providers/phone-audio-provider.d.ts +131 -0
- package/lib/providers/phone-audio-provider.js +515 -0
- package/lib/providers/privilege-provider.d.ts +325 -12
- package/lib/providers/privilege-provider.js +111 -295
- package/lib/providers/renderer-provider.d.ts +46 -4
- package/lib/providers/renderer-provider.js +57 -60
- package/lib/providers/room-provider.d.ts +113 -6
- package/lib/providers/room-provider.js +667 -87
- 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 +30 -0
- package/lib/runtime.d.ts +2 -0
- package/lib/scenes/main-scene.d.ts +41 -3
- package/lib/scenes/main-scene.js +407 -246
- package/lib/scenes/waiting-scene.d.ts +34 -4
- package/lib/scenes/waiting-scene.js +163 -56
- package/lib/shared-data-source/chat-data.d.ts +14 -0
- package/lib/shared-data-source/chat-data.js +130 -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 +270 -25
- package/lib/type.js +67 -2
- package/lib/ui-manager.d.ts +20 -16
- package/lib/ui-manager.js +59 -795
- package/lib/ui-scene.d.ts +6 -1
- package/lib/ui-scene.js +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 +35 -3
- package/lib/utilities/tools.js +104 -2
- package/lib/utilities/video-track-render-context.d.ts +3 -4
- package/lib/utilities/video-track-render-context.js +1 -1
- package/package.json +5 -5
- package/public/assets/full-screen-error-boundary-img.png +0 -0
- package/public/assets/leave-meeting.png +0 -0
- package/public/index.html +24 -14
|
@@ -8,6 +8,7 @@ require("core-js/modules/es.error.to-string.js");
|
|
|
8
8
|
require("core-js/modules/es.array.is-array.js");
|
|
9
9
|
require("core-js/modules/es.array.push.js");
|
|
10
10
|
require("core-js/modules/es.date.to-primitive.js");
|
|
11
|
+
require("core-js/modules/es.function.bind.js");
|
|
11
12
|
require("core-js/modules/es.function.name.js");
|
|
12
13
|
require("core-js/modules/es.map.js");
|
|
13
14
|
require("core-js/modules/es.number.constructor.js");
|
|
@@ -38,7 +39,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
38
39
|
exports.DeviceControlStoreContext = exports.DeviceControlStore = void 0;
|
|
39
40
|
require("core-js/modules/es.array.find.js");
|
|
40
41
|
require("core-js/modules/es.array.iterator.js");
|
|
41
|
-
require("core-js/modules/es.function.bind.js");
|
|
42
42
|
require("core-js/modules/es.object.to-string.js");
|
|
43
43
|
require("core-js/modules/es.string.iterator.js");
|
|
44
44
|
require("core-js/modules/es.weak-map.js");
|
|
@@ -55,11 +55,10 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
55
55
|
var _react = require("react");
|
|
56
56
|
var _fcrCore = require("fcr-core");
|
|
57
57
|
var _mobx = require("mobx");
|
|
58
|
-
var _constant = require("../../../utilities/constant");
|
|
59
58
|
var _type = require("agora-rte-sdk/lib/core/scene/type");
|
|
60
|
-
var _type2 = require("fcr-core/lib/room-control/type");
|
|
61
59
|
var _env = require("agora-foundation/lib/utilities/env");
|
|
62
60
|
var _decorator = require("agora-foundation/lib/decorator");
|
|
61
|
+
var _constant = require("../../../utilities/constant");
|
|
63
62
|
var _DeviceControlStore;
|
|
64
63
|
var _initProto, _init_isPstnUser, _init_phoneMicEnabled, _openDeviceSettingDialogDecs, _openConnectionDecs, _closeConnectionDecs, _checkMediaPermissionDecs, _enableCameraDecs, _enableMicrophoneDecs, _setSpeakerIdDecs, _setMicrophoneIdDecs, _setCameraIdDecs, _ref;
|
|
65
64
|
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
@@ -76,22 +75,20 @@ var _A = /*#__PURE__*/new WeakMap();
|
|
|
76
75
|
var _B = /*#__PURE__*/new WeakMap();
|
|
77
76
|
_ref = (_openDeviceSettingDialogDecs = [_mobx.action, _mobx.action.bound], _openConnectionDecs = [_mobx.action, _mobx.action.bound], _closeConnectionDecs = [_mobx.action, _mobx.action.bound], _checkMediaPermissionDecs = [_mobx.action, _mobx.action.bound], _enableCameraDecs = [_mobx.action, _mobx.action.bound], _enableMicrophoneDecs = [_mobx.action, _mobx.action.bound], _setSpeakerIdDecs = [_mobx.action, _mobx.action.bound], _setMicrophoneIdDecs = [_mobx.action, _mobx.action.bound], _setCameraIdDecs = [_mobx.action, _mobx.action.bound], "_connectionWindowId");
|
|
78
77
|
var DeviceControlStore = exports.DeviceControlStore = /*#__PURE__*/function () {
|
|
79
|
-
function DeviceControlStore(
|
|
78
|
+
function DeviceControlStore(_roomControl, _deviceProvider, _eventProvider, _deviceStreamProvider, _sharedDevicePrivilegeDataSource) {
|
|
80
79
|
(0, _classCallCheck2["default"])(this, DeviceControlStore);
|
|
81
80
|
(0, _defineProperty2["default"])(this, _ref, (_initProto(this), ''));
|
|
82
81
|
_classPrivateFieldInitSpec(this, _A, _init_isPstnUser(this, false));
|
|
83
82
|
_classPrivateFieldInitSpec(this, _B, _init_phoneMicEnabled(this, false));
|
|
84
|
-
this._mediaControl = _mediaControl;
|
|
85
83
|
this._roomControl = _roomControl;
|
|
86
|
-
this.
|
|
87
|
-
this.
|
|
88
|
-
this.
|
|
89
|
-
this.
|
|
90
|
-
this.
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
onStreamsUpdated: this._handleStreamUpdate.bind(this)
|
|
84
|
+
this._deviceProvider = _deviceProvider;
|
|
85
|
+
this._eventProvider = _eventProvider;
|
|
86
|
+
this._deviceStreamProvider = _deviceStreamProvider;
|
|
87
|
+
this._sharedDevicePrivilegeDataSource = _sharedDevicePrivilegeDataSource;
|
|
88
|
+
this._roomControl.getStreamControl().addObserver({
|
|
89
|
+
onStreamsAdded: this._handleStreamUpdate,
|
|
90
|
+
onStreamsRemoved: this._handleStreamUpdate,
|
|
91
|
+
onStreamsUpdated: this._handleStreamUpdate
|
|
95
92
|
});
|
|
96
93
|
}
|
|
97
94
|
return (0, _createClass2["default"])(DeviceControlStore, [{
|
|
@@ -113,69 +110,69 @@ var DeviceControlStore = exports.DeviceControlStore = /*#__PURE__*/function () {
|
|
|
113
110
|
}, {
|
|
114
111
|
key: "microphoneId",
|
|
115
112
|
get: function get() {
|
|
116
|
-
return this.
|
|
113
|
+
return this._deviceProvider.microphoneId;
|
|
117
114
|
}
|
|
118
115
|
}, {
|
|
119
116
|
key: "speakerId",
|
|
120
117
|
get: function get() {
|
|
121
|
-
return this.
|
|
118
|
+
return this._deviceProvider.speakerId;
|
|
122
119
|
}
|
|
123
120
|
}, {
|
|
124
121
|
key: "speakerList",
|
|
125
122
|
get: function get() {
|
|
126
|
-
return this.
|
|
123
|
+
return this._deviceProvider.speakerList;
|
|
127
124
|
}
|
|
128
125
|
}, {
|
|
129
126
|
key: "microphoneEnabled",
|
|
130
127
|
get: function get() {
|
|
131
|
-
return this.
|
|
128
|
+
return this._deviceProvider.microphoneEnabled;
|
|
132
129
|
}
|
|
133
130
|
}, {
|
|
134
131
|
key: "cameraId",
|
|
135
132
|
get: function get() {
|
|
136
|
-
return this.
|
|
133
|
+
return this._deviceProvider.cameraId;
|
|
137
134
|
}
|
|
138
135
|
}, {
|
|
139
136
|
key: "cameraEnabled",
|
|
140
137
|
get: function get() {
|
|
141
|
-
return this.
|
|
138
|
+
return this._deviceProvider.cameraEnabled;
|
|
142
139
|
}
|
|
143
140
|
}, {
|
|
144
141
|
key: "microphoneVolumeLevel",
|
|
145
142
|
get: function get() {
|
|
146
|
-
return this.
|
|
143
|
+
return this._deviceProvider.microphoneVolumeLevel;
|
|
147
144
|
}
|
|
148
145
|
}, {
|
|
149
146
|
key: "microphoneList",
|
|
150
147
|
get: function get() {
|
|
151
|
-
return this.
|
|
148
|
+
return this._deviceProvider.microphoneList;
|
|
152
149
|
}
|
|
153
150
|
}, {
|
|
154
151
|
key: "cameraList",
|
|
155
152
|
get: function get() {
|
|
156
|
-
return this.
|
|
153
|
+
return this._deviceProvider.cameraList;
|
|
157
154
|
}
|
|
158
155
|
}, {
|
|
159
156
|
key: "connectType",
|
|
160
157
|
get: function get() {
|
|
161
|
-
return this.
|
|
158
|
+
return this._deviceProvider.connectType;
|
|
162
159
|
}
|
|
163
160
|
}, {
|
|
164
161
|
key: "openDeviceSettingDialog",
|
|
165
162
|
value: function openDeviceSettingDialog(arg) {
|
|
166
|
-
this.
|
|
163
|
+
this._eventProvider.openDeviceSettingDialog(arg);
|
|
167
164
|
}
|
|
168
165
|
}, {
|
|
169
166
|
key: "openConnection",
|
|
170
167
|
value: function openConnection(type) {
|
|
171
|
-
this._connectionWindowId = this.
|
|
168
|
+
this._connectionWindowId = this._eventProvider.openDialog(_constant.FcrUIDialogKey.CONNECTION_GATEWAY, '', {
|
|
172
169
|
type: type
|
|
173
170
|
});
|
|
174
171
|
}
|
|
175
172
|
}, {
|
|
176
173
|
key: "closeConnection",
|
|
177
174
|
value: function closeConnection() {
|
|
178
|
-
this.
|
|
175
|
+
this._eventProvider.closeDialog(this._connectionWindowId);
|
|
179
176
|
}
|
|
180
177
|
}, {
|
|
181
178
|
key: "checkMediaPermission",
|
|
@@ -184,7 +181,7 @@ var DeviceControlStore = exports.DeviceControlStore = /*#__PURE__*/function () {
|
|
|
184
181
|
if ((0, _env.isElectron)()) {
|
|
185
182
|
window.runtime.checkMediaPermission(mediaType).then(function (hasPermission) {
|
|
186
183
|
if (!hasPermission) {
|
|
187
|
-
_this.
|
|
184
|
+
_this._eventProvider.openDialog(_constant.FcrUIDialogKey.SYSTEM_PREFERENCE, '', mediaType);
|
|
188
185
|
}
|
|
189
186
|
});
|
|
190
187
|
}
|
|
@@ -192,50 +189,50 @@ var DeviceControlStore = exports.DeviceControlStore = /*#__PURE__*/function () {
|
|
|
192
189
|
}, {
|
|
193
190
|
key: "enableCamera",
|
|
194
191
|
value: function enableCamera(enable) {
|
|
195
|
-
|
|
196
|
-
if (((_this$_roomControl$ge = this._roomControl.getRoomInfo()) === null || _this$_roomControl$ge === void 0 ? void 0 : _this$_roomControl$ge.roomType) === _type2.FcrRoomType.Mainroom) {
|
|
197
|
-
this._deviceStreamStore.enableCameraWithStream(enable);
|
|
198
|
-
} else {
|
|
199
|
-
this._deviceStore.setCameraEnabled(enable);
|
|
200
|
-
}
|
|
192
|
+
this._deviceStreamProvider.enableCameraWithPreCheck(enable);
|
|
201
193
|
}
|
|
202
194
|
}, {
|
|
203
195
|
key: "enableMicrophone",
|
|
204
196
|
value: function enableMicrophone(enable) {
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
this._deviceStreamStore.enableMicrophoneWithStream(enable);
|
|
208
|
-
} else {
|
|
209
|
-
this._deviceStore.setMicrophoneEnabled(enable);
|
|
210
|
-
}
|
|
197
|
+
this._deviceStreamProvider.enableMicrophoneWithPreCheck(enable);
|
|
198
|
+
this._sharedDevicePrivilegeDataSource.setShouldIncludeMicrophone(true);
|
|
211
199
|
}
|
|
212
200
|
}, {
|
|
213
201
|
key: "setSpeakerId",
|
|
214
202
|
value: function setSpeakerId(speakerId) {
|
|
215
|
-
this.
|
|
203
|
+
this._deviceProvider.setSpeakerId(speakerId);
|
|
216
204
|
}
|
|
217
205
|
}, {
|
|
218
206
|
key: "setMicrophoneId",
|
|
219
207
|
value: function setMicrophoneId(microphoneId) {
|
|
220
|
-
this.
|
|
208
|
+
this._deviceProvider.setMicrophoneId(microphoneId);
|
|
221
209
|
}
|
|
222
210
|
}, {
|
|
223
211
|
key: "setCameraId",
|
|
224
212
|
value: function setCameraId(cameraId) {
|
|
225
|
-
this.
|
|
213
|
+
this._deviceProvider.setCameraId(cameraId);
|
|
226
214
|
}
|
|
227
215
|
}, {
|
|
228
216
|
key: "stopAudioByComputer",
|
|
229
217
|
value: function stopAudioByComputer() {
|
|
230
|
-
this.
|
|
218
|
+
this._deviceProvider.disconnectAudio();
|
|
219
|
+
}
|
|
220
|
+
}, {
|
|
221
|
+
key: "release",
|
|
222
|
+
value: function release() {
|
|
223
|
+
this._roomControl.getStreamControl().removeObserver({
|
|
224
|
+
onStreamsAdded: this._handleStreamUpdate,
|
|
225
|
+
onStreamsRemoved: this._handleStreamUpdate,
|
|
226
|
+
onStreamsUpdated: this._handleStreamUpdate
|
|
227
|
+
});
|
|
231
228
|
}
|
|
232
229
|
}, {
|
|
233
230
|
key: "_handleStreamUpdate",
|
|
234
231
|
value: function _handleStreamUpdate() {
|
|
235
|
-
var _this$
|
|
236
|
-
var _this$
|
|
237
|
-
userId = _this$
|
|
238
|
-
var streams = this.
|
|
232
|
+
var _this$_roomControl$ge2;
|
|
233
|
+
var _this$_roomControl$ge = (_this$_roomControl$ge2 = this._roomControl.getUserControl()) === null || _this$_roomControl$ge2 === void 0 ? void 0 : _this$_roomControl$ge2.getLocalUser(),
|
|
234
|
+
userId = _this$_roomControl$ge.userId;
|
|
235
|
+
var streams = this._roomControl.getStreamControl().getStreamsByUserId(userId);
|
|
239
236
|
var pstnStream = streams.find(function (_ref2) {
|
|
240
237
|
var connectorType = _ref2.connectorType;
|
|
241
238
|
return connectorType === _fcrCore.FcrRoomConnectorType.PSTN;
|
|
@@ -249,7 +246,7 @@ var DeviceControlStore = exports.DeviceControlStore = /*#__PURE__*/function () {
|
|
|
249
246
|
}]);
|
|
250
247
|
}();
|
|
251
248
|
_DeviceControlStore = DeviceControlStore;
|
|
252
|
-
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_DeviceControlStore, [[_mobx.observable, 1, "isPstnUser"], [_mobx.observable, 1, "phoneMicEnabled"], [_mobx.computed, 3, "microphoneId"], [_mobx.computed, 3, "speakerId"], [_mobx.computed, 3, "speakerList"], [_mobx.computed, 3, "microphoneEnabled"], [_mobx.computed, 3, "cameraId"], [_mobx.computed, 3, "cameraEnabled"], [_mobx.computed, 3, "microphoneVolumeLevel"], [_mobx.computed, 3, "microphoneList"], [_mobx.computed, 3, "cameraList"], [_mobx.computed, 3, "connectType"], [_openDeviceSettingDialogDecs, 18, "openDeviceSettingDialog"], [_openConnectionDecs, 18, "openConnection"], [_closeConnectionDecs, 18, "closeConnection"], [_checkMediaPermissionDecs, 18, "checkMediaPermission"], [_enableCameraDecs, 18, "enableCamera"], [_enableMicrophoneDecs, 18, "enableMicrophone"], [_setSpeakerIdDecs, 18, "setSpeakerId"], [_setMicrophoneIdDecs, 18, "setMicrophoneId"], [_setCameraIdDecs, 18, "setCameraId"], [_decorator.bound, 2, "stopAudioByComputer"]], []).e, 3);
|
|
249
|
+
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_DeviceControlStore, [[_mobx.observable, 1, "isPstnUser"], [_mobx.observable, 1, "phoneMicEnabled"], [_mobx.computed, 3, "microphoneId"], [_mobx.computed, 3, "speakerId"], [_mobx.computed, 3, "speakerList"], [_mobx.computed, 3, "microphoneEnabled"], [_mobx.computed, 3, "cameraId"], [_mobx.computed, 3, "cameraEnabled"], [_mobx.computed, 3, "microphoneVolumeLevel"], [_mobx.computed, 3, "microphoneList"], [_mobx.computed, 3, "cameraList"], [_mobx.computed, 3, "connectType"], [_openDeviceSettingDialogDecs, 18, "openDeviceSettingDialog"], [_openConnectionDecs, 18, "openConnection"], [_closeConnectionDecs, 18, "closeConnection"], [_checkMediaPermissionDecs, 18, "checkMediaPermission"], [_enableCameraDecs, 18, "enableCamera"], [_enableMicrophoneDecs, 18, "enableMicrophone"], [_setSpeakerIdDecs, 18, "setSpeakerId"], [_setMicrophoneIdDecs, 18, "setMicrophoneId"], [_setCameraIdDecs, 18, "setCameraId"], [_decorator.bound, 2, "stopAudioByComputer"], [_decorator.bound, 2, "release"], [_decorator.bound, 2, "_handleStreamUpdate"]], []).e, 3);
|
|
253
250
|
_init_isPstnUser = _applyDecs$e[0];
|
|
254
251
|
_init_phoneMicEnabled = _applyDecs$e[1];
|
|
255
252
|
_initProto = _applyDecs$e[2];
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.DialogContainerBody = DialogContainerBody;
|
|
8
8
|
require("../index.css");
|
|
9
|
+
var _env = require("agora-foundation/lib/utilities/env");
|
|
9
10
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
11
|
function DialogContainerBody(props) {
|
|
11
12
|
var actions = props.actions,
|
|
@@ -32,7 +33,7 @@ function DialogContainerBody(props) {
|
|
|
32
33
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("section", {
|
|
33
34
|
className: "fcr-dialog-container-content",
|
|
34
35
|
style: title || actions ? {
|
|
35
|
-
height: 'calc(100vh - 76px)' /* 76px 包含 46px 的 title 高度,和 30px 的阴影 */
|
|
36
|
+
height: !(0, _env.isElectron)() ? 'calc(100% - 46px)' /* 浏览器不需要减去阴影,高度需要100% */ : 'calc(100vh - 76px)' /* 76px 包含 46px 的 title 高度,和 30px 的阴影 */
|
|
36
37
|
} : {},
|
|
37
38
|
children: children
|
|
38
39
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("a", {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { FcrUIDialogKey } from '../../../utilities/constant';
|
|
3
3
|
declare const DialogContainer: (props: PropsWithChildren<{
|
|
4
4
|
width?: number;
|
|
5
5
|
height?: number;
|
|
6
|
-
dialogKey:
|
|
6
|
+
dialogKey: FcrUIDialogKey;
|
|
7
7
|
title?: string;
|
|
8
8
|
onClose?: () => void;
|
|
9
9
|
actions?: React.ReactNode;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.AssignHost = void 0;
|
|
9
|
+
require("core-js/modules/es.array.index-of.js");
|
|
10
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
11
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
12
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
13
|
+
var _mobxReact = require("mobx-react");
|
|
14
|
+
var _react = require("react");
|
|
15
|
+
require("./index.css");
|
|
16
|
+
var _chatSelect = require("../../../chat/components/chat-select");
|
|
17
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
18
|
+
var _button = require("agora-ui-foundation/lib/components/button");
|
|
19
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
|
+
var AssignHost = exports.AssignHost = (0, _mobxReact.observer)(function (props) {
|
|
21
|
+
var remoteUsers = props.remoteUsers,
|
|
22
|
+
assignHost = props.assignHost,
|
|
23
|
+
loading = props.loading;
|
|
24
|
+
var _useState = (0, _react.useState)(0),
|
|
25
|
+
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
26
|
+
selected = _useState2[0],
|
|
27
|
+
setSelected = _useState2[1];
|
|
28
|
+
var t = (0, _i18n.useI18n)();
|
|
29
|
+
var handleLeave = /*#__PURE__*/function () {
|
|
30
|
+
var _ref = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
31
|
+
var user;
|
|
32
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
33
|
+
while (1) switch (_context.prev = _context.next) {
|
|
34
|
+
case 0:
|
|
35
|
+
user = remoteUsers[selected];
|
|
36
|
+
assignHost(user);
|
|
37
|
+
props.setPopoverOpened(false);
|
|
38
|
+
case 3:
|
|
39
|
+
case "end":
|
|
40
|
+
return _context.stop();
|
|
41
|
+
}
|
|
42
|
+
}, _callee);
|
|
43
|
+
}));
|
|
44
|
+
return function handleLeave() {
|
|
45
|
+
return _ref.apply(this, arguments);
|
|
46
|
+
};
|
|
47
|
+
}();
|
|
48
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_chatSelect.ChatSelect, {
|
|
49
|
+
type: "assign-host",
|
|
50
|
+
title: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
51
|
+
className: "assign-host-title",
|
|
52
|
+
children: t('fmt_toolbar_button_assignnewhost')
|
|
53
|
+
}),
|
|
54
|
+
bottomBar: /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
|
|
55
|
+
styleType: "danger",
|
|
56
|
+
shape: "rounded",
|
|
57
|
+
size: "S",
|
|
58
|
+
block: true,
|
|
59
|
+
loading: loading,
|
|
60
|
+
className: "assign-host-bottom",
|
|
61
|
+
onClick: handleLeave,
|
|
62
|
+
children: t('fmt_toolbar_button_assignleave')
|
|
63
|
+
}),
|
|
64
|
+
candidateUsers: remoteUsers,
|
|
65
|
+
selectedUid: remoteUsers[selected].userId,
|
|
66
|
+
onSelect: function onSelect(user) {
|
|
67
|
+
setSelected(remoteUsers.indexOf(user));
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
});
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
.leave-title {
|
|
2
|
+
width: 100%;
|
|
3
|
+
height: 39px;
|
|
4
|
+
display: flex;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
align-items: center;
|
|
7
|
+
|
|
8
|
+
font-family: Verdana;
|
|
9
|
+
font-size: 14px;
|
|
10
|
+
font-weight: 700;
|
|
11
|
+
line-height: 18.2px;
|
|
12
|
+
text-align: center;
|
|
13
|
+
|
|
14
|
+
color: var(--fcr_ui_scene_icontext1, rgba(255, 255, 255, 1));
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.fcr-action-bar--leave-popover {
|
|
18
|
+
max-width: 272px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.fcr-action-bar--leave-popover .fcr-tooltip-inner {
|
|
22
|
+
margin: 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.assistant-leave-lock-info {
|
|
26
|
+
width: 100%;
|
|
27
|
+
height: 16px;
|
|
28
|
+
|
|
29
|
+
font-family: Helvetica Neue;
|
|
30
|
+
font-size: 16px;
|
|
31
|
+
font-weight: 700;
|
|
32
|
+
line-height: 16px;
|
|
33
|
+
text-align: center;
|
|
34
|
+
color: var(--fcr_ui_scene_icontext1, rgba(55, 60, 66, 1));
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.assistant-lock-leave-title {
|
|
38
|
+
width: 100%;
|
|
39
|
+
margin-top: 15px;
|
|
40
|
+
display: flex;
|
|
41
|
+
justify-content: center;
|
|
42
|
+
align-items: center;
|
|
43
|
+
|
|
44
|
+
font-family: Verdana;
|
|
45
|
+
font-size: 14px;
|
|
46
|
+
font-weight: 400;
|
|
47
|
+
line-height: 18.2px;
|
|
48
|
+
text-align: center;
|
|
49
|
+
|
|
50
|
+
color: var(--fcr_ui_scene_icontext1, rgba(255, 255, 255, 1));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.leave-cancel {
|
|
54
|
+
width: 100%;
|
|
55
|
+
height: 36px;
|
|
56
|
+
margin-top: 15px;
|
|
57
|
+
display: flex;
|
|
58
|
+
align-items: center;
|
|
59
|
+
justify-content: center;
|
|
60
|
+
color: var(--fcr_ui_scene_ramp_red6, rgba(251, 88, 78, 1));
|
|
61
|
+
border-radius: var(--fcr_cornerradius_l);
|
|
62
|
+
border: 1px solid var(--fcr_ui_scene_ramp_red6);
|
|
63
|
+
|
|
64
|
+
font-family: Verdana;
|
|
65
|
+
font-size: 13px;
|
|
66
|
+
font-weight: 400;
|
|
67
|
+
line-height: 24px;
|
|
68
|
+
text-align: center;
|
|
69
|
+
|
|
70
|
+
cursor: pointer;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.assign-host-title {
|
|
74
|
+
display: flex;
|
|
75
|
+
align-items: center;
|
|
76
|
+
width: 100%;
|
|
77
|
+
height: 20px;
|
|
78
|
+
padding-left: 5px;
|
|
79
|
+
|
|
80
|
+
font-family: Verdana;
|
|
81
|
+
font-size: 12px;
|
|
82
|
+
font-weight: 700;
|
|
83
|
+
line-height: 12px;
|
|
84
|
+
text-align: left;
|
|
85
|
+
color: var(--fcr_ui_scene_icontext1, rgba(255, 255, 255, 1));
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.assign-host-bottom {
|
|
89
|
+
display: flex;
|
|
90
|
+
align-items: center;
|
|
91
|
+
justify-content: center;
|
|
92
|
+
|
|
93
|
+
width: 100%;
|
|
94
|
+
height: 32px;
|
|
95
|
+
margin-top: 20px;
|
|
96
|
+
border-radius: var(--fcr_cornerradius_l);
|
|
97
|
+
|
|
98
|
+
font-family: Helvetica Neue;
|
|
99
|
+
font-size: 13px;
|
|
100
|
+
font-weight: 400;
|
|
101
|
+
line-height: 24px;
|
|
102
|
+
|
|
103
|
+
color: var(--fcr_ui_scene_white10);
|
|
104
|
+
background: var(--fcr_ui_scene_ramp_red6);
|
|
105
|
+
cursor: pointer;
|
|
106
|
+
}
|
|
107
|
+
.leave-connect-check {
|
|
108
|
+
display: flex;
|
|
109
|
+
justify-content: center;
|
|
110
|
+
align-items: center;
|
|
111
|
+
}
|
|
112
|
+
.leave-container .leave-confirm-disabled {
|
|
113
|
+
background-color: var(--fcr_web_ui_scene_fill3);
|
|
114
|
+
color: var(--fcr_ui_scene_icontext3);
|
|
115
|
+
cursor: not-allowed;
|
|
116
|
+
}
|
|
117
|
+
.fcr-action-bar--leave-meeting-portal {
|
|
118
|
+
width: 280px;
|
|
119
|
+
position: absolute;
|
|
120
|
+
top: 2px;
|
|
121
|
+
z-index: 999;
|
|
122
|
+
background-color: var(--fcr_ui_scene_white10);
|
|
123
|
+
border-radius: var(--fcr_cornerradius_l);
|
|
124
|
+
box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
|
|
125
|
+
}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.LeaveMeeting = void 0;
|
|
9
|
+
var _fcrCore = require("fcr-core");
|
|
10
|
+
var _assignHost2 = require("./components/assign-host");
|
|
11
|
+
var _checkbox = require("agora-ui-foundation/lib/components/checkbox");
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
var _mobxReact = require("mobx-react");
|
|
14
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
15
|
+
var _react = require("react");
|
|
16
|
+
var _store = require("./store");
|
|
17
|
+
var _button = require("agora-ui-foundation/lib/components/button");
|
|
18
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
|
+
var LeaveMeeting = exports.LeaveMeeting = (0, _mobxReact.observer)(function (props) {
|
|
20
|
+
var t = (0, _i18n.useI18n)();
|
|
21
|
+
var setPopoverOpened = props.setPopoverOpened,
|
|
22
|
+
onAssigned = props.onAssigned;
|
|
23
|
+
var _useContext = (0, _react.useContext)(_store.LeaveMeetingStoreContext),
|
|
24
|
+
canAssign = _useContext.canAssign,
|
|
25
|
+
keepConnect = _useContext.keepConnect,
|
|
26
|
+
localUserRole = _useContext.localUserRole,
|
|
27
|
+
remoteUsers = _useContext.remoteUsers,
|
|
28
|
+
isLocked = _useContext.isLocked,
|
|
29
|
+
hasAssignHostBeforeLeavingPermission = _useContext.hasAssignHostBeforeLeavingPermission,
|
|
30
|
+
hasEndRoomPermission = _useContext.hasEndRoomPermission,
|
|
31
|
+
isPstnUser = _useContext.isPstnUser,
|
|
32
|
+
loading = _useContext.loading,
|
|
33
|
+
end = _useContext.end,
|
|
34
|
+
leave = _useContext.leave,
|
|
35
|
+
_assignHost = _useContext.assignHost,
|
|
36
|
+
setCanAssign = _useContext.setCanAssign,
|
|
37
|
+
setKeepConnect = _useContext.setKeepConnect;
|
|
38
|
+
|
|
39
|
+
// 结束会议
|
|
40
|
+
var handleEnd = function handleEnd() {
|
|
41
|
+
setPopoverOpened(false);
|
|
42
|
+
end();
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
// 离开会议
|
|
46
|
+
var handleLeave = function handleLeave() {
|
|
47
|
+
if (remoteUsers.length > 0 && hasAssignHostBeforeLeavingPermission) {
|
|
48
|
+
setCanAssign(true);
|
|
49
|
+
} else {
|
|
50
|
+
leave();
|
|
51
|
+
setPopoverOpened(false);
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
var handleConfirm = function handleConfirm() {
|
|
55
|
+
setPopoverOpened(false);
|
|
56
|
+
leave();
|
|
57
|
+
};
|
|
58
|
+
var handleCancel = function handleCancel() {
|
|
59
|
+
setPopoverOpened(false);
|
|
60
|
+
};
|
|
61
|
+
(0, _react.useEffect)(function () {
|
|
62
|
+
return setCanAssign(false);
|
|
63
|
+
}, []);
|
|
64
|
+
if (localUserRole === _fcrCore.FcrUserRole.HOST) {
|
|
65
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
66
|
+
onMouseEnter: function onMouseEnter() {
|
|
67
|
+
var _window$runtime;
|
|
68
|
+
(_window$runtime = window.runtime) === null || _window$runtime === void 0 || (_window$runtime = _window$runtime.browserWindow) === null || _window$runtime === void 0 || _window$runtime.setIgnoreMouseEvents(false);
|
|
69
|
+
},
|
|
70
|
+
children: canAssign ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_assignHost2.AssignHost, {
|
|
71
|
+
setPopoverOpened: setPopoverOpened,
|
|
72
|
+
remoteUsers: remoteUsers,
|
|
73
|
+
assignHost: function assignHost(user) {
|
|
74
|
+
_assignHost(user);
|
|
75
|
+
onAssigned === null || onAssigned === void 0 || onAssigned();
|
|
76
|
+
},
|
|
77
|
+
loading: loading
|
|
78
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
79
|
+
className: "leave-container",
|
|
80
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
81
|
+
className: "leave-title",
|
|
82
|
+
children: t('fmt_actionbar_labels_endmeeting')
|
|
83
|
+
}), isPstnUser && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
84
|
+
className: "leave-connect-check",
|
|
85
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_checkbox.FcrCheckbox, {
|
|
86
|
+
label: t('fmt_pstn_status_maitain'),
|
|
87
|
+
checked: keepConnect,
|
|
88
|
+
onChange: function onChange(checked) {
|
|
89
|
+
return setKeepConnect(checked);
|
|
90
|
+
}
|
|
91
|
+
})
|
|
92
|
+
}), hasEndRoomPermission && /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
|
|
93
|
+
styleType: "danger",
|
|
94
|
+
size: "S",
|
|
95
|
+
shape: "rounded",
|
|
96
|
+
className: (0, _classnames["default"])('leave-confirm', {
|
|
97
|
+
'leave-confirm-disabled': keepConnect
|
|
98
|
+
}),
|
|
99
|
+
onClick: !keepConnect ? handleEnd : undefined,
|
|
100
|
+
children: t('fmt_actionbar_button_plenarysession')
|
|
101
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
102
|
+
className: "leave-cancel",
|
|
103
|
+
onClick: handleLeave,
|
|
104
|
+
children: t('fmt_popup_button_leavemeeting')
|
|
105
|
+
})]
|
|
106
|
+
})
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
110
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
111
|
+
className: "leave-container",
|
|
112
|
+
onMouseEnter: function onMouseEnter() {
|
|
113
|
+
var _window$runtime2;
|
|
114
|
+
(_window$runtime2 = window.runtime) === null || _window$runtime2 === void 0 || (_window$runtime2 = _window$runtime2.browserWindow) === null || _window$runtime2 === void 0 || _window$runtime2.setIgnoreMouseEvents(false);
|
|
115
|
+
},
|
|
116
|
+
children: [isLocked ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
117
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
118
|
+
className: "assistant-leave-lock-info",
|
|
119
|
+
children: t('fmt_actionbar_tips_locked')
|
|
120
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
121
|
+
className: "assistant-lock-leave-title",
|
|
122
|
+
children: t('fmt_actionbar_tips_recheckleave')
|
|
123
|
+
})]
|
|
124
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
125
|
+
className: "leave-title",
|
|
126
|
+
children: t('fmt_actionbar_tips_leavemeeting')
|
|
127
|
+
}), isPstnUser && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
128
|
+
className: "leave-connect-check",
|
|
129
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_checkbox.FcrCheckbox, {
|
|
130
|
+
label: t('fmt_pstn_status_maitain'),
|
|
131
|
+
checked: keepConnect,
|
|
132
|
+
onChange: function onChange(checked) {
|
|
133
|
+
return setKeepConnect(checked);
|
|
134
|
+
}
|
|
135
|
+
})
|
|
136
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
137
|
+
className: "leave-confirm",
|
|
138
|
+
onClick: handleConfirm,
|
|
139
|
+
children: t('fmt_actionbar__button_leaveyes')
|
|
140
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
141
|
+
className: "leave-cancel",
|
|
142
|
+
onClick: handleCancel,
|
|
143
|
+
children: t('fmt_actionbar__button_leaveno')
|
|
144
|
+
})]
|
|
145
|
+
})
|
|
146
|
+
});
|
|
147
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { FcrUserInfo, FcrUserRole } from 'fcr-core/lib/type';
|
|
2
|
+
import { FcrUIPrivilegeProvider } from '../../../providers/privilege-provider';
|
|
3
|
+
import { FcrUIRoomProvider } from '../../../providers/room-provider';
|
|
4
|
+
import { FcrBaseRoomControl } from 'fcr-core/lib/room-control/type';
|
|
5
|
+
export declare class LeaveMeetingStore {
|
|
6
|
+
private _privilegeProvider;
|
|
7
|
+
private _roomProvider;
|
|
8
|
+
private _roomControl;
|
|
9
|
+
private _userControl;
|
|
10
|
+
private _streamControl;
|
|
11
|
+
accessor isPstnUser: boolean;
|
|
12
|
+
accessor keepConnect: boolean;
|
|
13
|
+
accessor canAssign: boolean;
|
|
14
|
+
accessor localUserId: string;
|
|
15
|
+
accessor loading: boolean;
|
|
16
|
+
get isLocked(): boolean;
|
|
17
|
+
get hasAssignHostBeforeLeavingPermission(): boolean;
|
|
18
|
+
get hasEndRoomPermission(): boolean;
|
|
19
|
+
get localUserRole(): FcrUserRole;
|
|
20
|
+
get remoteUsers(): FcrUserInfo[];
|
|
21
|
+
constructor(_privilegeProvider: FcrUIPrivilegeProvider, _roomProvider: FcrUIRoomProvider, _roomControl: FcrBaseRoomControl);
|
|
22
|
+
assignHost(user: FcrUserInfo): void;
|
|
23
|
+
leave(): Promise<void>;
|
|
24
|
+
keepPhoneAudioConnection(): Promise<void>;
|
|
25
|
+
setCanAssign(value: boolean): void;
|
|
26
|
+
setKeepConnect(value: boolean): void;
|
|
27
|
+
end(): Promise<void>;
|
|
28
|
+
release(): void;
|
|
29
|
+
private _handleStreamsAddedOrUpdated;
|
|
30
|
+
}
|
|
31
|
+
export declare const LeaveMeetingStoreContext: import("react").Context<LeaveMeetingStore>;
|