fcr-ui-scene 3.6.2 → 3.6.4-rc.1
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.js +0 -3
- package/lib/creator.d.ts +1 -0
- package/lib/creator.js +63 -52
- package/lib/electron/app.js +33 -14
- package/lib/electron/bootstrap-dev.js +5 -3
- package/lib/electron/bootstrap-sdk.js +4 -10
- package/lib/electron/exit-codes.d.ts +14 -0
- package/lib/electron/exit-codes.js +22 -0
- package/lib/electron/injections.d.ts +3 -2
- package/lib/electron/injections.js +122 -124
- package/lib/electron/ipc/ipc.js +0 -1
- package/lib/electron/main.js +57 -12
- package/lib/electron/tools.js +0 -4
- package/lib/electron/window.js +1 -7
- package/lib/fragments/annotation/index.d.ts +1 -0
- package/lib/fragments/annotation/index.js +54 -40
- package/lib/fragments/annotation/store.d.ts +7 -2
- package/lib/fragments/annotation/store.js +181 -102
- package/lib/fragments/annotation/view.d.ts +1 -0
- package/lib/fragments/annotation/view.js +10 -2
- package/lib/modules/action-bar/components/apps/app-item/index.js +0 -2
- package/lib/modules/action-bar/components/apps/app-list.js +2 -5
- package/lib/modules/action-bar/components/apps/useAppItemOptions.js +0 -3
- package/lib/modules/action-bar/components/apps/useWidgetList.js +2 -1
- package/lib/modules/action-bar/components/collapse/index.js +0 -4
- package/lib/modules/action-bar/components/item/index.js +0 -2
- package/lib/modules/action-bar/components/leave/index.js +0 -2
- package/lib/modules/action-bar/components/more/poppover-content.js +0 -4
- package/lib/modules/action-bar/components/notification-bar/components/interpreter/index.js +2 -1
- package/lib/modules/action-bar/components/notification-bar/index.js +0 -2
- package/lib/modules/action-bar/components/screen-share/index.js +0 -1
- package/lib/modules/action-bar/components/screen-share/submenu.js +0 -3
- package/lib/modules/action-bar/components/trigger-output-language/index.js +11 -14
- package/lib/modules/action-bar/components/trigger-subscribe-language/index.js +8 -11
- package/lib/modules/action-bar/index.css +4 -0
- package/lib/modules/action-bar/index.js +1 -2
- package/lib/modules/action-bar/store.d.ts +1 -7
- package/lib/modules/action-bar/store.js +67 -118
- package/lib/modules/annotation/board-cursor.css +76 -0
- package/lib/modules/annotation/components/control-bar/index.js +43 -2
- package/lib/modules/annotation/components/toolbar/components/color-tool/color-panel/index.js +2 -1
- package/lib/modules/annotation/components/toolbar/components/graphic-tool/graphic-panel/index.js +5 -2
- package/lib/modules/annotation/components/toolbar/components/graphic-tool/graphic-panel/libs.d.ts +1 -0
- package/lib/modules/annotation/components/toolbar/components/graphic-tool/graphic-panel/libs.js +11 -5
- package/lib/modules/annotation/components/toolbar/components/graphic-tool/index.js +0 -2
- package/lib/modules/annotation/components/toolbar/components/item/item.d.ts +1 -0
- package/lib/modules/annotation/components/toolbar/components/item/item.js +3 -2
- package/lib/modules/annotation/components/toolbar/components/pen-tool/pen-panel/index.js +1 -0
- package/lib/modules/annotation/components/toolbar/store.js +0 -1
- package/lib/modules/annotation/index.d.ts +4 -0
- package/lib/modules/annotation/index.js +3 -1
- package/lib/modules/annotation/store.d.ts +15 -5
- package/lib/modules/annotation/store.js +222 -205
- package/lib/modules/annotation/style.css +3 -3
- package/lib/modules/annotation/view.d.ts +1 -0
- package/lib/modules/annotation/view.js +26 -9
- package/lib/modules/audio-stream/index.js +0 -4
- package/lib/modules/chat/chat-room-store.js +6 -10
- package/lib/modules/chat/components/chat-bar/index.js +0 -2
- package/lib/modules/chat/components/chat-select/index.js +0 -1
- package/lib/modules/chat/components/chat-select/select-item/index.js +2 -5
- package/lib/modules/chat/components/message-list/index.js +1 -3
- package/lib/modules/chat/components/message-list/message-item/index.js +11 -13
- package/lib/modules/chat/index.js +13 -14
- package/lib/modules/chat/store.js +0 -1
- package/lib/modules/chat/view.js +11 -15
- package/lib/modules/components/annotation-menu/index.js +0 -3
- package/lib/modules/components/device-control/components/audio-menu/index.js +2 -1
- package/lib/modules/components/device-control/components/video-menu/index.js +2 -1
- package/lib/modules/components/device-control/store.js +0 -1
- package/lib/modules/components/leave-meeting/components/assign-host.js +4 -5
- package/lib/modules/components/leave-meeting/store.js +11 -12
- package/lib/modules/components/member-window/components/member-actions/components/audio-control.d.ts +0 -1
- package/lib/modules/components/member-window/components/member-actions/components/audio-control.js +10 -4
- package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.d.ts +2 -2
- package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.js +4 -4
- package/lib/modules/components/member-window/components/member-actions/components/icon-status.d.ts +0 -2
- package/lib/modules/components/member-window/components/member-actions/components/icon-status.js +3 -4
- package/lib/modules/components/member-window/components/member-actions/components/layout/index.js +1 -2
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.d.ts +0 -3
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.js +7 -34
- package/lib/modules/components/member-window/components/member-actions/components/share-status.js +11 -3
- package/lib/modules/components/member-window/components/member-actions/components/user-info.d.ts +0 -1
- package/lib/modules/components/member-window/components/member-actions/components/user-info.js +8 -13
- package/lib/modules/components/member-window/components/member-actions/components/user-tag.d.ts +0 -1
- package/lib/modules/components/member-window/components/member-actions/components/user-tag.js +0 -2
- package/lib/modules/components/member-window/components/member-actions/index.js +1 -33
- package/lib/modules/components/member-window/components/member-actions/provider.js +1 -2
- package/lib/modules/components/member-window/components/member-actions/store.d.ts +38 -1
- package/lib/modules/components/member-window/components/member-actions/store.js +120 -13
- package/lib/modules/components/member-window/components/video-player/components/local-video-player.d.ts +3 -0
- package/lib/modules/components/member-window/components/video-player/components/local-video-player.js +16 -3
- package/lib/modules/components/member-window/components/video-player/index.d.ts +2 -0
- package/lib/modules/components/member-window/components/video-player/index.js +3 -3
- package/lib/modules/components/member-window/index.css +37 -0
- package/lib/modules/components/member-window/index.js +1 -0
- package/lib/modules/components/security-menu/index.js +1 -4
- package/lib/modules/components/tab-frame/index.js +0 -4
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.js +2 -1
- package/lib/modules/connection-gateway/components/phone/index.js +5 -4
- package/lib/modules/connection-gateway/index.js +1 -2
- package/lib/modules/connection-gateway/store.js +23 -26
- package/lib/modules/control-bar/components/more-actions/index.js +0 -3
- package/lib/modules/control-bar/index.d.ts +0 -4
- package/lib/modules/control-bar/index.js +1 -34
- package/lib/modules/control-bar/store.d.ts +5 -6
- package/lib/modules/control-bar/store.js +70 -104
- package/lib/modules/control-bar/view.js +53 -13
- package/lib/modules/device-pretest/settings/beauty.js +1 -2
- package/lib/modules/device-pretest/settings/virtual-background-setting.js +2 -1
- package/lib/modules/device-pretest/store.js +2 -4
- package/lib/modules/dialog/components/control-bar/index.d.ts +0 -2
- package/lib/modules/dialog/components/control-bar/index.js +4 -6
- package/lib/modules/dialog/components/dialog-container/component/body.js +0 -2
- package/lib/modules/dialog/components/dialog-container/index.js +1 -2
- package/lib/modules/dialog/components/host-area-container/index.js +0 -3
- package/lib/modules/dialog/components/pre-setting-container/component/body.js +0 -2
- package/lib/modules/dialog/components/pre-setting-container/index.js +1 -2
- package/lib/modules/dialog/components/system-preference/index.js +2 -5
- package/lib/modules/dialog/components/video-window/index.js +0 -2
- package/lib/modules/dialog/hooks/use-popover-watcher.js +0 -1
- package/lib/modules/dialog/hooks/useElectron.js +3 -4
- package/lib/modules/dialog/index.d.ts +0 -3
- package/lib/modules/dialog/index.js +2 -28
- package/lib/modules/dialog/store.d.ts +6 -8
- package/lib/modules/dialog/store.js +22 -60
- package/lib/modules/dialog/view.js +2 -1
- package/lib/modules/event-confirm/components/window/index.js +0 -2
- package/lib/modules/event-confirm/index.js +1 -2
- package/lib/modules/event-confirm/store.js +4 -7
- package/lib/modules/event-confirm/view.js +2 -1
- package/lib/modules/event-sound/index.js +1 -2
- package/lib/modules/event-sound/sound-effect-player.js +2 -2
- package/lib/modules/event-toast/index.js +1 -2
- package/lib/modules/event-toast/store.js +0 -2
- package/lib/modules/event-toast/view.js +2 -1
- package/lib/modules/interpreter/index.js +1 -2
- package/lib/modules/interpreter/interpreter-list/index.js +3 -4
- package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/index.js +2 -5
- package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/index.js +0 -2
- package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-user/index.js +0 -4
- package/lib/modules/interpreter/store.js +5 -10
- package/lib/modules/interpreter/utils.js +15 -14
- package/lib/modules/invite/components/pstn-invite.js +22 -23
- package/lib/modules/invite/components/voip-invite.js +7 -7
- package/lib/modules/invite/enums.js +1 -0
- package/lib/modules/invite/index.js +1 -2
- package/lib/modules/invite/store.js +46 -45
- package/lib/modules/layout/components/CommonVideoRenderer.js +7 -3
- package/lib/modules/layout/components/Gallery.js +5 -3
- package/lib/modules/layout/components/index.js +0 -1
- package/lib/modules/layout/index.js +1 -2
- package/lib/modules/layout/store.d.ts +3 -0
- package/lib/modules/layout/store.js +38 -14
- package/lib/modules/layout/type.d.ts +7 -0
- package/lib/modules/layout/type.js +9 -0
- package/lib/modules/live-streaming/index.dev.js +6 -6
- package/lib/modules/live-streaming/index.js +1 -2
- package/lib/modules/live-streaming/store.js +19 -19
- package/lib/modules/notification/index.js +1 -2
- package/lib/modules/notification/interpreter-status/index.js +2 -1
- package/lib/modules/notification/view.js +1 -2
- package/lib/modules/offscreen-pulling/index.js +0 -1
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.js +1 -4
- package/lib/modules/participant/components/participants/components/participants/components/attendee/index.js +0 -2
- package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.js +0 -2
- package/lib/modules/participant/components/participants/components/participants/components/user-row/index.js +1 -4
- package/lib/modules/participant/components/participants/components/participants/index.js +0 -2
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/interpreter-tag/index.js +0 -1
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.js +0 -2
- package/lib/modules/participant/index.js +1 -4
- package/lib/modules/participant/member-list-data-source.js +0 -3
- package/lib/modules/participant/store.js +140 -114
- package/lib/modules/pc-audio-connect/index.js +1 -2
- package/lib/modules/pc-audio-connect/store.js +9 -10
- package/lib/modules/phone-audio-connect/components/callinfo/index.js +2 -1
- package/lib/modules/phone-audio-connect/index.js +1 -2
- package/lib/modules/phone-audio-connect/store.js +0 -3
- package/lib/modules/phone-audio-connect/view.js +5 -4
- package/lib/modules/setting/audio-settings/audio-settings.js +1 -4
- package/lib/modules/setting/general-settings/general-settings.js +1 -2
- package/lib/modules/setting/index.d.ts +2 -0
- package/lib/modules/setting/index.js +4 -5
- package/lib/modules/setting/minutes-settings/minutes-settings.js +1 -2
- package/lib/modules/setting/state/index.js +0 -4
- package/lib/modules/setting/storage-settings/storage-settings.js +4 -4
- package/lib/modules/setting/store.d.ts +8 -10
- package/lib/modules/setting/store.js +33 -35
- package/lib/modules/setting/translate-settings/translate-settings.js +1 -1
- package/lib/modules/setting/video-settings/video-settings.js +1 -2
- package/lib/modules/setting/view.js +1 -2
- package/lib/modules/share-screen/components/selection/index.js +16 -9
- package/lib/modules/share-screen/index.d.ts +2 -0
- package/lib/modules/share-screen/index.js +3 -3
- package/lib/modules/share-screen/store.d.ts +12 -2
- package/lib/modules/share-screen/store.js +149 -136
- package/lib/modules/state-bar/index.css +8 -6
- package/lib/modules/state-bar/index.d.ts +2 -0
- package/lib/modules/state-bar/index.js +3 -3
- package/lib/modules/state-bar/layout-config.d.ts +1 -0
- package/lib/modules/state-bar/layout-config.js +17 -6
- package/lib/modules/state-bar/live-streaming-state.js +0 -3
- package/lib/modules/state-bar/store.d.ts +5 -1
- package/lib/modules/state-bar/store.js +8 -2
- package/lib/modules/state-bar/view.js +9 -5
- package/lib/modules/video-window/components/members/index.js +2 -1
- package/lib/modules/video-window/components/topControl/index.js +0 -3
- package/lib/modules/video-window/index.js +1 -2
- package/lib/modules/video-window/store.js +0 -4
- package/lib/modules/waiting-room-layout/index.js +1 -2
- package/lib/modules/whiteboard/components/control-bar/store.js +2 -1
- package/lib/modules/whiteboard/components/switch-theme/index.js +0 -2
- package/lib/modules/whiteboard/components/switch-theme/item.js +2 -1
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.js +2 -1
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.js +2 -1
- package/lib/modules/whiteboard/components/toolbar/components/expansion/index.js +1 -4
- package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.js +2 -3
- package/lib/modules/whiteboard/components/toolbar/components/move-handle.js +0 -2
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +1 -2
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +1 -3
- package/lib/modules/whiteboard/components/toolbar/hooks/index.js +2 -4
- package/lib/modules/whiteboard/components/toolbar/index.js +1 -1
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +7 -3
- package/lib/modules/whiteboard/components/toolbar/store.js +64 -37
- package/lib/modules/whiteboard/index.js +5 -8
- package/lib/modules/whiteboard/style.css +12 -4
- package/lib/modules/whiteboard/view.js +10 -2
- package/lib/modules/widget/index.js +1 -2
- package/lib/modules/widget/web-widget.js +1 -1
- package/lib/plugins/browser-runtime-plugin.js +1 -1
- package/lib/plugins/module-dev-plugin.js +13 -13
- package/lib/providers/ability-provider.d.ts +12 -1
- package/lib/providers/ability-provider.js +8 -1
- package/lib/providers/annotation-provider.d.ts +63 -12
- package/lib/providers/annotation-provider.js +52 -46
- package/lib/providers/device-privilege-provider.js +81 -83
- package/lib/providers/device-provider.d.ts +3 -3
- package/lib/providers/device-provider.js +201 -204
- package/lib/providers/device-stream-provider.js +24 -27
- package/lib/providers/event-provider.d.ts +3 -3
- package/lib/providers/event-provider.js +0 -2
- package/lib/providers/interpreter-provider.js +195 -197
- package/lib/providers/message-provider.js +0 -2
- package/lib/providers/phone-audio-provider.js +17 -19
- package/lib/providers/privilege-provider.js +53 -58
- package/lib/providers/renderer-provider.d.ts +3 -1
- package/lib/providers/renderer-provider.js +18 -4
- package/lib/providers/room-provider.js +31 -33
- package/lib/providers/screen-share-provider.d.ts +1 -0
- package/lib/providers/screen-share-provider.js +97 -103
- package/lib/providers/sharing-provider.d.ts +5 -1
- package/lib/providers/sharing-provider.js +17 -1
- package/lib/providers/user-setting-storage-provider.d.ts +20 -0
- package/lib/providers/user-setting-storage-provider.js +72 -0
- package/lib/providers/widget-provider.js +0 -1
- package/lib/scenes/main-scene.js +13 -16
- package/lib/scenes/waiting-scene.js +4 -4
- package/lib/shared-data-source/chat-data.js +0 -2
- package/lib/shared-data-source/config.d.ts +1 -5
- package/lib/shared-data-source/config.js +11 -81
- package/lib/shared-data-source/interpreter.js +0 -2
- package/lib/shared-data-source/layout-data.js +1 -4
- package/lib/shared-data-source/member-data.js +0 -4
- package/lib/shared-data-source/pin-data.js +0 -1
- package/lib/shared-data-source/screen-share-data.d.ts +6 -2
- package/lib/shared-data-source/screen-share-data.js +2 -2
- package/lib/shared-data-source/security-data.js +0 -1
- package/lib/shared-data-source/setting.d.ts +13 -13
- package/lib/shared-data-source/setting.js +10 -8
- package/lib/shared-data-source/video-window.d.ts +2 -1
- package/lib/shared-data-source/video-window.js +82 -66
- package/lib/shared-data-source/waiting-room.js +0 -2
- package/lib/translations/enUS.d.ts +8 -0
- package/lib/translations/enUS.js +9 -1
- package/lib/translations/zhCN.d.ts +8 -0
- package/lib/translations/zhCN.js +11 -3
- package/lib/type.d.ts +2 -1
- package/lib/type.js +14 -0
- package/lib/ui-scene.js +18 -14
- package/lib/utilities/constant.d.ts +2 -1
- package/lib/utilities/constant.js +8 -0
- package/lib/utilities/copyText.js +12 -12
- package/lib/utilities/hooks.js +1 -2
- package/lib/utilities/logger.js +0 -1
- package/lib/utilities/parameters.js +2 -2
- package/lib/utilities/privilege.js +0 -3
- package/lib/utilities/renderer-event.js +0 -2
- package/lib/utilities/setting-config-storage.d.ts +7 -6
- package/lib/utilities/setting-config-storage.js +55 -41
- package/lib/utilities/tools.d.ts +1 -0
- package/lib/utilities/tools.js +9 -12
- package/lib/waiting-room-control-manager.js +26 -28
- package/package.json +8 -6
- package/dist/132.js +0 -2
- package/dist/132.js.LICENSE.txt +0 -311
- package/dist/317.js +0 -2
- package/dist/317.js.LICENSE.txt +0 -20
- package/dist/651.js +0 -2
- package/dist/651.js.LICENSE.txt +0 -1
- package/dist/689343b64b60bfb7ffff.png +0 -0
- package/dist/73.js +0 -1
- package/dist/885f9369ea05a8ac0e56.png +0 -0
- package/dist/90f383876a6e93e7c7ca.png +0 -0
- package/dist/9b37584780995fc5df8c.gif +0 -0
- package/dist/annotation.e5cbd3a70b6d42361872.css +0 -1274
- package/dist/annotation.html +0 -1
- package/dist/annotation.js +0 -2
- package/dist/annotation.js.LICENSE.txt +0 -252
- package/dist/assets/browser/images/default1.jpg +0 -0
- package/dist/assets/browser/images/default2.jpg +0 -0
- package/dist/assets/browser/images/default3.jpg +0 -0
- package/dist/assets/browser/images/default4.jpg +0 -0
- package/dist/assets/browser/images/default5.jpg +0 -0
- package/dist/assets/browser/images/default6.jpg +0 -0
- package/dist/assets/browser/images/default7.jpg +0 -0
- package/dist/assets/browser/sound_effects/pretest.mp3 +0 -0
- package/dist/assets/browser/sound_effects/recording_started.mp3 +0 -0
- package/dist/assets/browser/sound_effects/remote_user_joined.mp3 +0 -0
- package/dist/assets/browser/sound_effects/speaker_test.mp3 +0 -0
- package/dist/assets/browser/videos/default8.mp4 +0 -0
- package/dist/assets/browser/videos/default9.mp4 +0 -0
- package/dist/assets/cursors/fcr_whiteboard_input.ico +0 -0
- package/dist/assets/cursors/fcr_whiteboard_pen.ico +0 -0
- package/dist/assets/cursors/fcr_whiteboard_shape_-straightline.ico +0 -0
- package/dist/assets/cursors/fcr_whiteboard_shape_arrow.ico +0 -0
- package/dist/assets/cursors/fcr_whiteboard_shape_circle.ico +0 -0
- package/dist/assets/cursors/fcr_whiteboard_shape_rectangle.ico +0 -0
- package/dist/assets/cursors/fcr_whiteboard_shape_triangle.ico +0 -0
- package/dist/assets/electron/images/default1.jpg +0 -0
- package/dist/assets/electron/images/default2.jpg +0 -0
- package/dist/assets/electron/sound_effects/pretest.mp3 +0 -0
- package/dist/assets/electron/videos/default8.mp4 +0 -0
- package/dist/assets/fcr_chat_reddot.svg +0 -5
- package/dist/assets/fcr_defaultpage.png +0 -0
- package/dist/assets/fcr_grid_big.svg +0 -3
- package/dist/assets/fcr_leave2.svg +0 -58
- package/dist/assets/fcr_listontop_big.svg +0 -3
- package/dist/assets/full-screen-error-boundary-img.png +0 -0
- package/dist/assets/leave-meeting.png +0 -0
- package/dist/assets/loading.gif +0 -0
- package/dist/assets/login_confirm.png +0 -0
- package/dist/assets/pretest.mp3 +0 -0
- package/dist/assets/state-bar-logo.png +0 -0
- package/dist/assets/step-gradient.svg +0 -10
- package/dist/b74b002687a3a3346bec.png +0 -0
- package/dist/b94869094481702f949b.png +0 -0
- package/dist/ebeace75fd46b90d890e.png +0 -0
- package/dist/electron/app.js +0 -194
- package/dist/electron/bootstrap-dev.js +0 -46
- package/dist/electron/bootstrap-sdk.js +0 -211
- package/dist/electron/default-options.js +0 -25
- package/dist/electron/env.js +0 -13
- package/dist/electron/index.js +0 -20
- package/dist/electron/injections.js +0 -903
- package/dist/electron/ipc/ipc.js +0 -141
- package/dist/electron/ipc/type.js +0 -19
- package/dist/electron/logger.js +0 -65
- package/dist/electron/main.js +0 -94
- package/dist/electron/plugins/devtool-shortcut.js +0 -33
- package/dist/electron/plugins/meeting-state.js +0 -39
- package/dist/electron/plugins/screenshot.js +0 -54
- package/dist/electron/preload.js +0 -108
- package/dist/electron/tools.js +0 -66
- package/dist/electron/window.js +0 -123
- package/dist/extensions/agora-extension-virtual-background/agora-wasm.wasm +0 -0
- package/dist/extensions/ai-denoiser/denoiser-wasm-simd.wasm +0 -0
- package/dist/extensions/ai-denoiser/denoiser-wasm.js +0 -1
- package/dist/extensions/ai-denoiser/denoiser-wasm.wasm +0 -0
- package/dist/fad688b9135b15d6c405.png +0 -0
- package/dist/index.html +0 -224
- package/dist/main.393a2a91ab7fc05ffce6.css +0 -15403
- package/dist/main.js +0 -2
- package/dist/main.js.LICENSE.txt +0 -272
- package/dist/worker-entry.worker.js.LICENSE.txt +0 -13
|
@@ -35,10 +35,6 @@ require("core-js/modules/es.object.values.js");
|
|
|
35
35
|
require("core-js/modules/es.string.includes.js");
|
|
36
36
|
require("core-js/modules/es.string.iterator.js");
|
|
37
37
|
require("core-js/modules/es.weak-map.js");
|
|
38
|
-
require("core-js/modules/esnext.async-iterator.find.js");
|
|
39
|
-
require("core-js/modules/esnext.async-iterator.for-each.js");
|
|
40
|
-
require("core-js/modules/esnext.async-iterator.reduce.js");
|
|
41
|
-
require("core-js/modules/esnext.async-iterator.some.js");
|
|
42
38
|
require("core-js/modules/esnext.iterator.constructor.js");
|
|
43
39
|
require("core-js/modules/esnext.iterator.find.js");
|
|
44
40
|
require("core-js/modules/esnext.iterator.for-each.js");
|
|
@@ -76,15 +72,14 @@ var _type2 = require("../../type");
|
|
|
76
72
|
var _env = require("agora-foundation/lib/utilities/env");
|
|
77
73
|
var _type3 = require("../whiteboard/type");
|
|
78
74
|
var _type4 = require("agora-ui-foundation/lib/components/icon/type");
|
|
79
|
-
var _type5 = require("agora-rte-sdk/lib/type");
|
|
80
75
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
81
|
-
var
|
|
76
|
+
var _type5 = require("fcr-core/lib/room-control/type");
|
|
82
77
|
var _react = require("react");
|
|
83
78
|
var _constant = require("../../utilities/constant");
|
|
84
79
|
var _enums = require("./enums");
|
|
85
80
|
var _logger = require("../../utilities/logger");
|
|
86
81
|
var _ActionBarStore;
|
|
87
|
-
var _initProto, _init_newMessageTooltipVisible, _init_totalWaitingRoomUser, _init_liveStreamingState, _init_currentMenuIs, _init_cloudRecordingState, _init_connectionSettingVisible, _init_folded, _init_boardOwnerUser,
|
|
82
|
+
var _initProto, _init_newMessageTooltipVisible, _init_totalWaitingRoomUser, _init_liveStreamingState, _init_currentMenuIs, _init_cloudRecordingState, _init_connectionSettingVisible, _init_folded, _init_boardOwnerUser, _init_showArrow, _init_phoneMicEnabled, _init_chatTabIndex, _init_popoverOpened, _init_stateBarLeaveMeeting, _init_hasOfflineUserExistence, _init_connectionState, _setCheckedStateMapDecs, _pauseCloudRecordingDecs, _resumeCloudRecordingDecs, _stopCloudRecordingDecs, _showLockedRoomToastDecs, _toggleLayoutBarLockDecs, _showNewMessageTooltipDecs, _hideNewMessageTooltipDecs, _switchMenuDecs, _setPopoverOpenedDecs, _setStateBarLeaveMeetingDecs, _handleJoinWaitingRoomDecs, _toggleFoldDecs, _setShowArrowDecs, _setEnableWaitingRoomDecs, _kickOutWaitingRoomAllMemberDecs, _moveToMainRoomAllMemberDecs, _handleRemoteUsersJoinedDecs, _handleRemoteUsersLeftDecs, _handleLiveStreamingStateUpdatedDecs, _handleChatVisibleDecs, _operateWaitingRoomDecs, _handleCloudRecordingStateUpdatedDecs, _setOutputLanguageDecs, _subscribeLanguageDecs, _subscribeExtraOriginLanguageDecs, _getOfflineUserExistenceStateDecs, _openWidgetDecs, _closeWidgetDecs, _ref;
|
|
88
83
|
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
89
84
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
90
85
|
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
@@ -116,14 +111,13 @@ var _L = /*#__PURE__*/new WeakMap();
|
|
|
116
111
|
var _M = /*#__PURE__*/new WeakMap();
|
|
117
112
|
var _N = /*#__PURE__*/new WeakMap();
|
|
118
113
|
var _O = /*#__PURE__*/new WeakMap();
|
|
119
|
-
var _P = /*#__PURE__*/new WeakMap();
|
|
120
114
|
_ref = (_setCheckedStateMapDecs = [_mobx.action, _mobx.action.bound], _pauseCloudRecordingDecs = [_decorator.bound, (0, _decorator.debounced)(500, {
|
|
121
115
|
leading: true
|
|
122
116
|
})], _resumeCloudRecordingDecs = [_decorator.bound, (0, _decorator.debounced)(500, {
|
|
123
117
|
leading: true
|
|
124
118
|
})], _stopCloudRecordingDecs = [_decorator.bound, (0, _decorator.debounced)(500, {
|
|
125
119
|
leading: true
|
|
126
|
-
})], _showLockedRoomToastDecs = [_mobx.action, _mobx.action.bound], _toggleLayoutBarLockDecs = [_mobx.action, _mobx.action.bound], _showNewMessageTooltipDecs = [_mobx.action, _mobx.action.bound], _hideNewMessageTooltipDecs = [_mobx.action, _mobx.action.bound], _switchMenuDecs = [_mobx.action, _mobx.action.bound], _setPopoverOpenedDecs = [_mobx.action, _mobx.action.bound], _setStateBarLeaveMeetingDecs = [_mobx.action, _mobx.action.bound], _handleJoinWaitingRoomDecs = [_mobx.action, _mobx.action.bound], _toggleFoldDecs = [_mobx.action, _mobx.action.bound], _setShowArrowDecs = [_mobx.action, _mobx.action.bound], _setEnableWaitingRoomDecs = [_mobx.action, _mobx.action.bound], _kickOutWaitingRoomAllMemberDecs = [_mobx.action, _mobx.action.bound], _moveToMainRoomAllMemberDecs = [_mobx.action, _mobx.action.bound], _handleRemoteUsersJoinedDecs = [_mobx.action, _mobx.action.bound], _handleRemoteUsersLeftDecs = [_mobx.action, _mobx.action.bound], _handleLiveStreamingStateUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleChatVisibleDecs = [_mobx.action, _mobx.action.bound],
|
|
120
|
+
})], _showLockedRoomToastDecs = [_mobx.action, _mobx.action.bound], _toggleLayoutBarLockDecs = [_mobx.action, _mobx.action.bound], _showNewMessageTooltipDecs = [_mobx.action, _mobx.action.bound], _hideNewMessageTooltipDecs = [_mobx.action, _mobx.action.bound], _switchMenuDecs = [_mobx.action, _mobx.action.bound], _setPopoverOpenedDecs = [_mobx.action, _mobx.action.bound], _setStateBarLeaveMeetingDecs = [_mobx.action, _mobx.action.bound], _handleJoinWaitingRoomDecs = [_mobx.action, _mobx.action.bound], _toggleFoldDecs = [_mobx.action, _mobx.action.bound], _setShowArrowDecs = [_mobx.action, _mobx.action.bound], _setEnableWaitingRoomDecs = [_mobx.action, _mobx.action.bound], _kickOutWaitingRoomAllMemberDecs = [_mobx.action, _mobx.action.bound], _moveToMainRoomAllMemberDecs = [_mobx.action, _mobx.action.bound], _handleRemoteUsersJoinedDecs = [_mobx.action, _mobx.action.bound], _handleRemoteUsersLeftDecs = [_mobx.action, _mobx.action.bound], _handleLiveStreamingStateUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleChatVisibleDecs = [_mobx.action, _mobx.action.bound], _operateWaitingRoomDecs = [_mobx.action, _mobx.action.bound], _handleCloudRecordingStateUpdatedDecs = [_mobx.action, _mobx.action.bound], _setOutputLanguageDecs = [_mobx.action, _mobx.action.bound], _subscribeLanguageDecs = [_mobx.action, _mobx.action.bound], _subscribeExtraOriginLanguageDecs = [_mobx.action, _mobx.action.bound], _getOfflineUserExistenceStateDecs = [_mobx.action, _mobx.action.bound], _openWidgetDecs = [_mobx.action, _mobx.action.bound], _closeWidgetDecs = [_mobx.action, _mobx.action.bound], "logger");
|
|
127
121
|
var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
128
122
|
function ActionBarStore(args) {
|
|
129
123
|
var _this = this,
|
|
@@ -133,7 +127,6 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
133
127
|
prefix: 'ActionBarStore'
|
|
134
128
|
})));
|
|
135
129
|
(0, _defineProperty2["default"])(this, "_disposers", []);
|
|
136
|
-
(0, _defineProperty2["default"])(this, "_screenVideoTrack", null);
|
|
137
130
|
(0, _defineProperty2["default"])(this, "_userObserver", {
|
|
138
131
|
onRemoteUsersJoined: this._handleRemoteUsersJoined,
|
|
139
132
|
onRemoteUsersLeft: this._handleRemoteUsersLeft
|
|
@@ -155,11 +148,6 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
155
148
|
(0, _defineProperty2["default"])(this, "_openedDialogIdMap", new Map());
|
|
156
149
|
(0, _defineProperty2["default"])(this, "_newMessageTooltipTimer", null);
|
|
157
150
|
(0, _defineProperty2["default"])(this, "_hideBarArrowTimer", null);
|
|
158
|
-
(0, _defineProperty2["default"])(this, "_streamObserver", {
|
|
159
|
-
onStreamsAdded: this._handleStreamsAddedOrUpdated,
|
|
160
|
-
onStreamsUpdated: this._handleStreamsAddedOrUpdated,
|
|
161
|
-
onStreamsRemoved: this._handleStreamsAddedOrUpdated
|
|
162
|
-
});
|
|
163
151
|
(0, _defineProperty2["default"])(this, "_interpreterProviderObserver", {
|
|
164
152
|
onInterpreterListUpdated: function onInterpreterListUpdated() {
|
|
165
153
|
_this.hasOfflineUserExistence = _this.getOfflineUserExistenceState();
|
|
@@ -173,14 +161,13 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
173
161
|
_classPrivateFieldInitSpec(this, _F, _init_connectionSettingVisible(this, false));
|
|
174
162
|
_classPrivateFieldInitSpec(this, _G, _init_folded(this, false));
|
|
175
163
|
_classPrivateFieldInitSpec(this, _H, _init_boardOwnerUser(this, null));
|
|
176
|
-
_classPrivateFieldInitSpec(this, _I,
|
|
177
|
-
_classPrivateFieldInitSpec(this, _J,
|
|
178
|
-
_classPrivateFieldInitSpec(this, _K,
|
|
179
|
-
_classPrivateFieldInitSpec(this, _L,
|
|
180
|
-
_classPrivateFieldInitSpec(this, _M,
|
|
181
|
-
_classPrivateFieldInitSpec(this, _N,
|
|
182
|
-
_classPrivateFieldInitSpec(this, _O,
|
|
183
|
-
_classPrivateFieldInitSpec(this, _P, _init_connectionState(this, _fcrCore.FcrConnectionState.CONNECTED));
|
|
164
|
+
_classPrivateFieldInitSpec(this, _I, _init_showArrow(this, false));
|
|
165
|
+
_classPrivateFieldInitSpec(this, _J, _init_phoneMicEnabled(this, false));
|
|
166
|
+
_classPrivateFieldInitSpec(this, _K, _init_chatTabIndex(this, _type2.FcrUIRoomType.MAIN_ROOM));
|
|
167
|
+
_classPrivateFieldInitSpec(this, _L, _init_popoverOpened(this, false));
|
|
168
|
+
_classPrivateFieldInitSpec(this, _M, _init_stateBarLeaveMeeting(this, false));
|
|
169
|
+
_classPrivateFieldInitSpec(this, _N, _init_hasOfflineUserExistence(this, true));
|
|
170
|
+
_classPrivateFieldInitSpec(this, _O, _init_connectionState(this, _fcrCore.FcrConnectionState.CONNECTED));
|
|
184
171
|
this._roomProvider = args.roomProvider;
|
|
185
172
|
this._roomControl = args.roomControl;
|
|
186
173
|
this._deviceProvider = args.deviceProvider;
|
|
@@ -200,26 +187,20 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
200
187
|
this._sharedSecuritySharedDataSource = args.sharedSecuritySharedDataSource;
|
|
201
188
|
this._sharedScreenShareSharedDataSource = args.sharedScreenShareSharedDataSource;
|
|
202
189
|
this._abilityProvider = args.abilityProvider;
|
|
203
|
-
this._streamControl = args.roomControl.getStreamControl();
|
|
204
190
|
this._userControl = this._roomControl.getUserControl();
|
|
205
|
-
this._streamControl = this._roomControl.getStreamControl();
|
|
206
191
|
this._roomType = (_this$_roomControl$ge = this._roomControl.getRoomInfo()) === null || _this$_roomControl$ge === void 0 ? void 0 : _this$_roomControl$ge.roomType;
|
|
207
192
|
this.liveStreamingState = this._roomControl.getLiveStreamingState();
|
|
208
193
|
this.cloudRecordingState = this._roomControl.getCloudRecordingState();
|
|
209
194
|
if (args.interpreterProvider) {
|
|
210
195
|
this._interpreterProvider = args.interpreterProvider;
|
|
211
|
-
if (this._roomType ===
|
|
196
|
+
if (this._roomType === _type5.FcrRoomType.Mainroom) {
|
|
212
197
|
this._roomProvider.addObserver(this._roomObserver);
|
|
213
198
|
this._interpreterProvider.addObserver(this._interpreterProviderObserver);
|
|
214
199
|
}
|
|
215
200
|
}
|
|
216
201
|
this.hasOfflineUserExistence = this.getOfflineUserExistenceState();
|
|
217
|
-
this._screenObserver = {
|
|
218
|
-
onScreenCaptureStateUpdated: this._handlerTraceScreenCaptureStateUpdate
|
|
219
|
-
};
|
|
220
202
|
this._userControl.addObserver(this._userObserver);
|
|
221
203
|
this._roomControl.addObserver(this._mainRoomObserver);
|
|
222
|
-
this._streamControl.addObserver(this._streamObserver);
|
|
223
204
|
this._eventProvider.addObserver(this._uiEventObserver);
|
|
224
205
|
this._disposers.push((0, _mobx.reaction)(function () {
|
|
225
206
|
return _this.localUserRole;
|
|
@@ -331,7 +312,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
331
312
|
_classPrivateFieldSet(_H, this, v);
|
|
332
313
|
}
|
|
333
314
|
}, {
|
|
334
|
-
key: "
|
|
315
|
+
key: "showArrow",
|
|
335
316
|
get: function get() {
|
|
336
317
|
return _classPrivateFieldGet(_I, this);
|
|
337
318
|
},
|
|
@@ -339,7 +320,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
339
320
|
_classPrivateFieldSet(_I, this, v);
|
|
340
321
|
}
|
|
341
322
|
}, {
|
|
342
|
-
key: "
|
|
323
|
+
key: "phoneMicEnabled",
|
|
343
324
|
get: function get() {
|
|
344
325
|
return _classPrivateFieldGet(_J, this);
|
|
345
326
|
},
|
|
@@ -347,7 +328,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
347
328
|
_classPrivateFieldSet(_J, this, v);
|
|
348
329
|
}
|
|
349
330
|
}, {
|
|
350
|
-
key: "
|
|
331
|
+
key: "chatTabIndex",
|
|
351
332
|
get: function get() {
|
|
352
333
|
return _classPrivateFieldGet(_K, this);
|
|
353
334
|
},
|
|
@@ -355,7 +336,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
355
336
|
_classPrivateFieldSet(_K, this, v);
|
|
356
337
|
}
|
|
357
338
|
}, {
|
|
358
|
-
key: "
|
|
339
|
+
key: "popoverOpened",
|
|
359
340
|
get: function get() {
|
|
360
341
|
return _classPrivateFieldGet(_L, this);
|
|
361
342
|
},
|
|
@@ -363,7 +344,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
363
344
|
_classPrivateFieldSet(_L, this, v);
|
|
364
345
|
}
|
|
365
346
|
}, {
|
|
366
|
-
key: "
|
|
347
|
+
key: "stateBarLeaveMeeting",
|
|
367
348
|
get: function get() {
|
|
368
349
|
return _classPrivateFieldGet(_M, this);
|
|
369
350
|
},
|
|
@@ -371,7 +352,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
371
352
|
_classPrivateFieldSet(_M, this, v);
|
|
372
353
|
}
|
|
373
354
|
}, {
|
|
374
|
-
key: "
|
|
355
|
+
key: "hasOfflineUserExistence",
|
|
375
356
|
get: function get() {
|
|
376
357
|
return _classPrivateFieldGet(_N, this);
|
|
377
358
|
},
|
|
@@ -379,21 +360,13 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
379
360
|
_classPrivateFieldSet(_N, this, v);
|
|
380
361
|
}
|
|
381
362
|
}, {
|
|
382
|
-
key: "
|
|
363
|
+
key: "connectionState",
|
|
383
364
|
get: function get() {
|
|
384
365
|
return _classPrivateFieldGet(_O, this);
|
|
385
366
|
},
|
|
386
367
|
set: function set(v) {
|
|
387
368
|
_classPrivateFieldSet(_O, this, v);
|
|
388
369
|
}
|
|
389
|
-
}, {
|
|
390
|
-
key: "connectionState",
|
|
391
|
-
get: function get() {
|
|
392
|
-
return _classPrivateFieldGet(_P, this);
|
|
393
|
-
},
|
|
394
|
-
set: function set(v) {
|
|
395
|
-
_classPrivateFieldSet(_P, this, v);
|
|
396
|
-
}
|
|
397
370
|
}, {
|
|
398
371
|
key: "checkedStateMap",
|
|
399
372
|
get: function get() {
|
|
@@ -605,6 +578,11 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
605
578
|
var _this$boardOwnerUser;
|
|
606
579
|
return this._privilegeProvider.hasCloseBoardPermission((_this$boardOwnerUser = this.boardOwnerUser) === null || _this$boardOwnerUser === void 0 ? void 0 : _this$boardOwnerUser.userRole);
|
|
607
580
|
}
|
|
581
|
+
}, {
|
|
582
|
+
key: "hasScreenShare",
|
|
583
|
+
get: function get() {
|
|
584
|
+
return this._sharedScreenShareSharedDataSource.isSharingScreen;
|
|
585
|
+
}
|
|
608
586
|
}, {
|
|
609
587
|
key: "hasAllowScreenShareAndBoardPermission",
|
|
610
588
|
get: function get() {
|
|
@@ -675,7 +653,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
675
653
|
}, {
|
|
676
654
|
key: "isMainRoom",
|
|
677
655
|
get: function get() {
|
|
678
|
-
return this._roomType ===
|
|
656
|
+
return this._roomType === _type5.FcrRoomType.Mainroom;
|
|
679
657
|
}
|
|
680
658
|
}, {
|
|
681
659
|
key: "hasAllowChangeNamePromission",
|
|
@@ -822,18 +800,15 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
822
800
|
}, {
|
|
823
801
|
key: "release",
|
|
824
802
|
value: function release() {
|
|
825
|
-
var _this$_screenVideoTra;
|
|
826
803
|
this._disposers.forEach(function (dispose) {
|
|
827
804
|
return dispose();
|
|
828
805
|
});
|
|
829
806
|
this._disposers = [];
|
|
830
807
|
this._hideBarArrowTimer && clearTimeout(this._hideBarArrowTimer);
|
|
831
|
-
(_this$_screenVideoTra = this._screenVideoTrack) === null || _this$_screenVideoTra === void 0 || _this$_screenVideoTra.removeObserver(this._screenObserver);
|
|
832
808
|
this._userControl.removeObserver(this._userObserver);
|
|
833
809
|
this._roomControl.removeObserver(this._mainRoomObserver);
|
|
834
|
-
this._streamControl.removeObserver(this._streamObserver);
|
|
835
810
|
this._eventProvider.removeObserver(this._uiEventObserver);
|
|
836
|
-
if (this._roomType ===
|
|
811
|
+
if (this._roomType === _type5.FcrRoomType.Mainroom) {
|
|
837
812
|
var _this$_interpreterPro;
|
|
838
813
|
this._roomProvider.removeObserver(this._roomObserver);
|
|
839
814
|
(_this$_interpreterPro = this._interpreterProvider) === null || _this$_interpreterPro === void 0 || _this$_interpreterPro.removeObserver(this._interpreterProviderObserver);
|
|
@@ -1020,7 +995,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1020
995
|
}, {
|
|
1021
996
|
key: "closeShareScreen",
|
|
1022
997
|
value: function closeShareScreen() {
|
|
1023
|
-
this.
|
|
998
|
+
this._screenShareProvider.removeScreenStream();
|
|
1024
999
|
}
|
|
1025
1000
|
}, {
|
|
1026
1001
|
key: "openLiveStreamingDialog",
|
|
@@ -1082,15 +1057,15 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1082
1057
|
var _setEnableWaitingRoom = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(enable, isNeedShowDialog) {
|
|
1083
1058
|
var _this4 = this;
|
|
1084
1059
|
var dialogId;
|
|
1085
|
-
return _regenerator["default"].wrap(function
|
|
1060
|
+
return _regenerator["default"].wrap(function (_context) {
|
|
1086
1061
|
while (1) switch (_context.prev = _context.next) {
|
|
1087
1062
|
case 0:
|
|
1088
1063
|
if (enable) {
|
|
1089
|
-
_context.next =
|
|
1064
|
+
_context.next = 4;
|
|
1090
1065
|
break;
|
|
1091
1066
|
}
|
|
1092
1067
|
if (!(this._sharedWaitingRoomDataSource.totalWaitingRoomUser && isNeedShowDialog)) {
|
|
1093
|
-
_context.next =
|
|
1068
|
+
_context.next = 1;
|
|
1094
1069
|
break;
|
|
1095
1070
|
}
|
|
1096
1071
|
dialogId = this._dialogProvider.openConfirmDialog({
|
|
@@ -1116,28 +1091,28 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1116
1091
|
},
|
|
1117
1092
|
alignCenter: true
|
|
1118
1093
|
});
|
|
1119
|
-
_context.next =
|
|
1094
|
+
_context.next = 3;
|
|
1120
1095
|
break;
|
|
1121
|
-
case
|
|
1122
|
-
_context.next =
|
|
1096
|
+
case 1:
|
|
1097
|
+
_context.next = 2;
|
|
1123
1098
|
return this._roomControl.enableWaitingRoom(enable);
|
|
1124
|
-
case
|
|
1099
|
+
case 2:
|
|
1125
1100
|
this._messageProvider.showToast({
|
|
1126
1101
|
type: 'normal',
|
|
1127
1102
|
message: (0, _i18n.transI18n)('fmt_waitingroom_mobile_setting_tips_disable')
|
|
1128
1103
|
});
|
|
1129
|
-
case
|
|
1130
|
-
_context.next =
|
|
1104
|
+
case 3:
|
|
1105
|
+
_context.next = 6;
|
|
1131
1106
|
break;
|
|
1132
|
-
case
|
|
1133
|
-
_context.next =
|
|
1107
|
+
case 4:
|
|
1108
|
+
_context.next = 5;
|
|
1134
1109
|
return this._roomControl.enableWaitingRoom(enable);
|
|
1135
|
-
case
|
|
1110
|
+
case 5:
|
|
1136
1111
|
this._messageProvider.showToast({
|
|
1137
1112
|
type: 'normal',
|
|
1138
1113
|
message: (0, _i18n.transI18n)('fmt_waitingroom_setting_tips_enable')
|
|
1139
1114
|
});
|
|
1140
|
-
case
|
|
1115
|
+
case 6:
|
|
1141
1116
|
case "end":
|
|
1142
1117
|
return _context.stop();
|
|
1143
1118
|
}
|
|
@@ -1153,12 +1128,12 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1153
1128
|
value: function () {
|
|
1154
1129
|
var _kickOutWaitingRoomAllMember = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(type) {
|
|
1155
1130
|
var _this$_userControl;
|
|
1156
|
-
return _regenerator["default"].wrap(function
|
|
1131
|
+
return _regenerator["default"].wrap(function (_context2) {
|
|
1157
1132
|
while (1) switch (_context2.prev = _context2.next) {
|
|
1158
1133
|
case 0:
|
|
1159
|
-
_context2.next =
|
|
1134
|
+
_context2.next = 1;
|
|
1160
1135
|
return (_this$_userControl = this._userControl) === null || _this$_userControl === void 0 ? void 0 : _this$_userControl.kickOutByUserRoles([_type.FcrUserRole.PARTICIPANT], type);
|
|
1161
|
-
case
|
|
1136
|
+
case 1:
|
|
1162
1137
|
case "end":
|
|
1163
1138
|
return _context2.stop();
|
|
1164
1139
|
}
|
|
@@ -1174,12 +1149,12 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1174
1149
|
value: function () {
|
|
1175
1150
|
var _moveToMainRoomAllMember = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3() {
|
|
1176
1151
|
var _this$_waitingRoomCon;
|
|
1177
|
-
return _regenerator["default"].wrap(function
|
|
1152
|
+
return _regenerator["default"].wrap(function (_context3) {
|
|
1178
1153
|
while (1) switch (_context3.prev = _context3.next) {
|
|
1179
1154
|
case 0:
|
|
1180
|
-
_context3.next =
|
|
1155
|
+
_context3.next = 1;
|
|
1181
1156
|
return (_this$_waitingRoomCon = this._waitingRoomControl) === null || _this$_waitingRoomCon === void 0 ? void 0 : _this$_waitingRoomCon.moveToMainRoomByUserRoles([_type.FcrUserRole.PARTICIPANT]);
|
|
1182
|
-
case
|
|
1157
|
+
case 1:
|
|
1183
1158
|
case "end":
|
|
1184
1159
|
return _context3.stop();
|
|
1185
1160
|
}
|
|
@@ -1268,14 +1243,6 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1268
1243
|
this.hideNewMessageTooltip();
|
|
1269
1244
|
this.newMessageCount[this.chatTabIndex] = 0;
|
|
1270
1245
|
}
|
|
1271
|
-
}, {
|
|
1272
|
-
key: "_handlerTraceScreenCaptureStateUpdate",
|
|
1273
|
-
value: function _handlerTraceScreenCaptureStateUpdate(_, state) {
|
|
1274
|
-
this.hasScreenShare = state === _fcrCore.FcrMediaSourceState.OPEN;
|
|
1275
|
-
// if (state === FcrMediaSourceState.CLOSE) {
|
|
1276
|
-
// this.stopScreenShare();
|
|
1277
|
-
// }
|
|
1278
|
-
}
|
|
1279
1246
|
}, {
|
|
1280
1247
|
key: "setAllowWaterMark",
|
|
1281
1248
|
value: function setAllowWaterMark() {
|
|
@@ -1365,16 +1332,6 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1365
1332
|
}) : null;
|
|
1366
1333
|
}
|
|
1367
1334
|
}
|
|
1368
|
-
if (action === _constant.FcrUIAction.SET_CURRENT_SHARE_SCREEN) {
|
|
1369
|
-
var _this$_deviceProvider, _this$_screenVideoTra2;
|
|
1370
|
-
var _ref5 = payload,
|
|
1371
|
-
id = _ref5.id;
|
|
1372
|
-
if (this._screenVideoTrack) {
|
|
1373
|
-
this._screenVideoTrack.removeObserver(this._screenObserver);
|
|
1374
|
-
}
|
|
1375
|
-
this._screenVideoTrack = (_this$_deviceProvider = this._deviceProvider) === null || _this$_deviceProvider === void 0 ? void 0 : _this$_deviceProvider.getScreenTrack(id);
|
|
1376
|
-
(_this$_screenVideoTra2 = this._screenVideoTrack) === null || _this$_screenVideoTra2 === void 0 || _this$_screenVideoTra2.addObserver(this._screenObserver);
|
|
1377
|
-
}
|
|
1378
1335
|
if (action === _constant.FcrUIAction.TOGGLE_PARTICIPANT_TAB) {
|
|
1379
1336
|
if (!this.participantVisible) {
|
|
1380
1337
|
this.toggleParticipants();
|
|
@@ -1419,19 +1376,19 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1419
1376
|
key: "_operateWaitingRoom",
|
|
1420
1377
|
value: function () {
|
|
1421
1378
|
var _operateWaitingRoom2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee4(isOperate) {
|
|
1422
|
-
return _regenerator["default"].wrap(function
|
|
1379
|
+
return _regenerator["default"].wrap(function (_context4) {
|
|
1423
1380
|
while (1) switch (_context4.prev = _context4.next) {
|
|
1424
1381
|
case 0:
|
|
1425
1382
|
if (!isOperate) {
|
|
1426
|
-
_context4.next =
|
|
1383
|
+
_context4.next = 1;
|
|
1427
1384
|
break;
|
|
1428
1385
|
}
|
|
1429
|
-
_context4.next =
|
|
1386
|
+
_context4.next = 1;
|
|
1430
1387
|
return this.moveToMainRoomAllMember();
|
|
1431
|
-
case
|
|
1432
|
-
_context4.next =
|
|
1388
|
+
case 1:
|
|
1389
|
+
_context4.next = 2;
|
|
1433
1390
|
return this.setEnableWaitingRoom(false, false);
|
|
1434
|
-
case
|
|
1391
|
+
case 2:
|
|
1435
1392
|
case "end":
|
|
1436
1393
|
return _context4.stop();
|
|
1437
1394
|
}
|
|
@@ -1447,23 +1404,16 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1447
1404
|
value: function _handleCloudRecordingStateUpdated(_roomId, state) {
|
|
1448
1405
|
this.cloudRecordingState = state;
|
|
1449
1406
|
}
|
|
1450
|
-
}, {
|
|
1451
|
-
key: "_handleStreamsAddedOrUpdated",
|
|
1452
|
-
value: function _handleStreamsAddedOrUpdated() {
|
|
1453
|
-
this.hasScreenShare = this._streamControl.getStreamList().some(function (stream) {
|
|
1454
|
-
return stream.videoSourceType === _type5.AgoraRteVideoSourceType.SCREEN;
|
|
1455
|
-
});
|
|
1456
|
-
}
|
|
1457
1407
|
}, {
|
|
1458
1408
|
key: "setOutputLanguage",
|
|
1459
1409
|
value: function () {
|
|
1460
1410
|
var _setOutputLanguage = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee5(language) {
|
|
1461
1411
|
var _this$_interpreterPro2,
|
|
1462
1412
|
_this7 = this;
|
|
1463
|
-
return _regenerator["default"].wrap(function
|
|
1413
|
+
return _regenerator["default"].wrap(function (_context5) {
|
|
1464
1414
|
while (1) switch (_context5.prev = _context5.next) {
|
|
1465
1415
|
case 0:
|
|
1466
|
-
_context5.next =
|
|
1416
|
+
_context5.next = 1;
|
|
1467
1417
|
return (_this$_interpreterPro2 = this._interpreterProvider) === null || _this$_interpreterPro2 === void 0 ? void 0 : _this$_interpreterPro2.setOutputLanguage(language, function () {
|
|
1468
1418
|
if (!_this7._deviceProvider.microphoneEnabled) {
|
|
1469
1419
|
_this7._messageProvider.showToast({
|
|
@@ -1472,7 +1422,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1472
1422
|
});
|
|
1473
1423
|
}
|
|
1474
1424
|
});
|
|
1475
|
-
case
|
|
1425
|
+
case 1:
|
|
1476
1426
|
case "end":
|
|
1477
1427
|
return _context5.stop();
|
|
1478
1428
|
}
|
|
@@ -1488,12 +1438,12 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1488
1438
|
value: function () {
|
|
1489
1439
|
var _subscribeLanguage = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee6(language) {
|
|
1490
1440
|
var _this$_interpreterPro3;
|
|
1491
|
-
return _regenerator["default"].wrap(function
|
|
1441
|
+
return _regenerator["default"].wrap(function (_context6) {
|
|
1492
1442
|
while (1) switch (_context6.prev = _context6.next) {
|
|
1493
1443
|
case 0:
|
|
1494
|
-
_context6.next =
|
|
1444
|
+
_context6.next = 1;
|
|
1495
1445
|
return (_this$_interpreterPro3 = this._interpreterProvider) === null || _this$_interpreterPro3 === void 0 ? void 0 : _this$_interpreterPro3.subscribeLanguage(language);
|
|
1496
|
-
case
|
|
1446
|
+
case 1:
|
|
1497
1447
|
case "end":
|
|
1498
1448
|
return _context6.stop();
|
|
1499
1449
|
}
|
|
@@ -1509,7 +1459,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1509
1459
|
value: function () {
|
|
1510
1460
|
var _subscribeExtraOriginLanguage = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee7(enable) {
|
|
1511
1461
|
var _this$_interpreterPro4;
|
|
1512
|
-
return _regenerator["default"].wrap(function
|
|
1462
|
+
return _regenerator["default"].wrap(function (_context7) {
|
|
1513
1463
|
while (1) switch (_context7.prev = _context7.next) {
|
|
1514
1464
|
case 0:
|
|
1515
1465
|
(_this$_interpreterPro4 = this._interpreterProvider) === null || _this$_interpreterPro4 === void 0 || _this$_interpreterPro4.subscribeExtraOriginLanguage(enable);
|
|
@@ -1558,7 +1508,7 @@ var ActionBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1558
1508
|
}]);
|
|
1559
1509
|
}();
|
|
1560
1510
|
_ActionBarStore = ActionBarStore;
|
|
1561
|
-
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ActionBarStore, [[_mobx.observable, 1, "newMessageTooltipVisible"], [_mobx.observable, 1, "totalWaitingRoomUser"], [_mobx.observable, 1, "liveStreamingState"], [_mobx.observable, 1, "currentMenuIs"], [_mobx.observable, 1, "cloudRecordingState"], [_mobx.observable, 1, "connectionSettingVisible"], [_mobx.observable, 1, "folded"], [_mobx.observable, 1, "boardOwnerUser"], [_mobx.observable, 1, "
|
|
1511
|
+
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ActionBarStore, [[_mobx.observable, 1, "newMessageTooltipVisible"], [_mobx.observable, 1, "totalWaitingRoomUser"], [_mobx.observable, 1, "liveStreamingState"], [_mobx.observable, 1, "currentMenuIs"], [_mobx.observable, 1, "cloudRecordingState"], [_mobx.observable, 1, "connectionSettingVisible"], [_mobx.observable, 1, "folded"], [_mobx.observable, 1, "boardOwnerUser"], [_mobx.observable, 1, "showArrow"], [_mobx.observable, 1, "phoneMicEnabled"], [_mobx.observable, 1, "chatTabIndex"], [_mobx.observable, 1, "popoverOpened"], [_mobx.observable, 1, "stateBarLeaveMeeting"], [_mobx.observable, 1, "hasOfflineUserExistence"], [_mobx.observable, 1, "connectionState"], [_mobx.computed, 3, "checkedStateMap"], [_setCheckedStateMapDecs, 18, "setCheckedStateMap"], [_mobx.computed, 3, "registeredWidgetConfigs"], [_mobx.computed, 3, "asideLayout"], [_mobx.computed, 3, "chatRenderAt"], [_mobx.computed, 3, "participantsRenderAt"], [_mobx.computed, 3, "participantVisible"], [_mobx.computed, 3, "chatVisible"], [_mobx.computed, 3, "hasStartScreenSharePermission"], [_mobx.computed, 3, "hasStopScreenSharePermission"], [_mobx.computed, 3, "sharingOwnerUser"], [_mobx.computed, 3, "hasEnableStartScreenSharePermission"], [_mobx.computed, 3, "hasStartLiveStreamingPermission"], [_mobx.computed, 3, "hasEnableStartAudioPermission"], [_mobx.computed, 3, "hasEnableChangeNamePermission"], [_mobx.computed, 3, "hasEnableStartVideoPermission"], [_mobx.computed, 3, "hasLockRoomPermission"], [_mobx.computed, 3, "hasEnableJoinWithAudioPermission"], [_mobx.computed, 3, "hasWaitingRoomPermission"], [_mobx.computed, 3, "hasWatermarkDisablePermission"], [_mobx.computed, 3, "hasEnableStartSharePermission"], [_mobx.computed, 3, "hasAllowWriteBoardPermission"], [_mobx.computed, 3, "hasCloseWriteBoardPermission"], [_mobx.computed, 3, "hasAllowScreenShareAndBoardPermission"], [_mobx.computed, 3, "hasAllowChatPermission"], [_mobx.computed, 3, "hasStartCloudRecordingPermission"], [_mobx.computed, 3, "hasAssignHostBeforeLeavingPermission"], [_mobx.computed, 3, "hasEndRoomPermission"], [_mobx.computed, 3, "isScreenShareAndBoardEnabled"], [_mobx.computed, 3, "isBoardWriteEnabled"], [_mobx.computed, 3, "isWaterMarkEnabled"], [_mobx.computed, 3, "isMulti"], [_mobx.computed, 3, "hasEnableInterpreterPermission"], [_mobx.computed, 3, "hasDisableInterpreterPermission"], [_mobx.computed, 3, "microphoneEnabled"], [_mobx.computed, 3, "allNewMessage"], [_mobx.computed, 3, "isMainRoom"], [_mobx.computed, 3, "hasAllowChangeNamePromission"], [_mobx.computed, 3, "hasDisallowChangeNamePromission"], [_mobx.computed, 3, "newMessageCount"], [_pauseCloudRecordingDecs, 2, "pauseCloudRecording"], [_resumeCloudRecordingDecs, 2, "resumeCloudRecording"], [_stopCloudRecordingDecs, 2, "stopCloudRecording"], [_decorator.bound, 2, "startCloudRecording"], [_showLockedRoomToastDecs, 18, "showLockedRoomToast"], [_toggleLayoutBarLockDecs, 18, "toggleLayoutBarLock"], [_showNewMessageTooltipDecs, 18, "showNewMessageTooltip"], [_hideNewMessageTooltipDecs, 18, "hideNewMessageTooltip"], [_switchMenuDecs, 18, "switchMenu"], [_mobx.computed, 3, "isLocked"], [_decorator.bound, 2, "isWaitingRoomEnabled"], [_decorator.bound, 2, "isAllowJoinWithAudioEnabled"], [_decorator.bound, 2, "enableMicrophone"], [_decorator.bound, 2, "setAllowWriteBoard"], [_decorator.bound, 2, "setAllowAnnotation"], [_decorator.bound, 2, "setAllowScreenShare"], [_setPopoverOpenedDecs, 18, "setPopoverOpened"], [_setStateBarLeaveMeetingDecs, 18, "setStateBarLeaveMeeting"], [_decorator.bound, 2, "getRoomType"], [_decorator.bound, 2, "allowJoinWithMuteAudio"], [_decorator.bound, 2, "setAllowJoinWithMuteAudio"], [_decorator.bound, 2, "isLockRoomEnabled"], [_decorator.bound, 2, "setLockRoomEnabled"], [_decorator.bound, 2, "setAllowShareScreen"], [_decorator.bound, 2, "allowShareScreen"], [_decorator.bound, 2, "allowWriteBoard"], [_decorator.bound, 2, "allowChat"], [_decorator.bound, 2, "setAllowChat"], [_decorator.bound, 2, "allowUnmuteSelfAudio"], [_decorator.bound, 2, "setAllowUnmuteSelfAudio"], [_decorator.bound, 2, "allowUnmuteSelfVideo"], [_decorator.bound, 2, "setAllowUnmuteSelfVideo"], [_decorator.bound, 2, "allowChangeName"], [_decorator.bound, 2, "toggleChat"], [_decorator.bound, 2, "openChat"], [_decorator.bound, 2, "closeChat"], [_decorator.bound, 2, "toggleParticipants"], [_decorator.bound, 2, "openParticipants"], [_decorator.bound, 2, "closeParticipants"], [_decorator.bound, 2, "openDeviceSettingDialog"], [_decorator.bound, 2, "startScreenShare"], [_decorator.bound, 2, "openInterpreterDialog"], [_decorator.bound, 2, "openWhiteboard"], [_decorator.bound, 2, "closeWhiteboard"], [_decorator.bound, 2, "closeShareScreen"], [_decorator.bound, 2, "openLiveStreamingDialog"], [_decorator.bound, 2, "toggleConnection"], [_decorator.bound, 2, "openConnection"], [_decorator.bound, 2, "closeConnection"], [_handleJoinWaitingRoomDecs, 18, "_handleJoinWaitingRoom"], [_toggleFoldDecs, 18, "toggleFold"], [_setShowArrowDecs, 18, "setShowArrow"], [_setEnableWaitingRoomDecs, 18, "setEnableWaitingRoom"], [_kickOutWaitingRoomAllMemberDecs, 18, "kickOutWaitingRoomAllMember"], [_moveToMainRoomAllMemberDecs, 18, "moveToMainRoomAllMember"], [_decorator.bound, 2, "_interceptShareScreen"], [_decorator.bound, 2, "_interceptShareBoard"], [_handleRemoteUsersJoinedDecs, 18, "_handleRemoteUsersJoined"], [_handleRemoteUsersLeftDecs, 18, "_handleRemoteUsersLeft"], [_handleLiveStreamingStateUpdatedDecs, 18, "_handleLiveStreamingStateUpdated"], [_handleChatVisibleDecs, 18, "_handleChatVisible"], [_decorator.bound, 2, "setAllowWaterMark"], [_decorator.bound, 2, "setWaterMarkLineType"], [_decorator.bound, 2, "setAlllowChangeName"], [_decorator.bound, 2, "_onEvent"], [_operateWaitingRoomDecs, 18, "_operateWaitingRoom"], [_handleCloudRecordingStateUpdatedDecs, 18, "_handleCloudRecordingStateUpdated"], [_setOutputLanguageDecs, 18, "setOutputLanguage"], [_subscribeLanguageDecs, 18, "subscribeLanguage"], [_subscribeExtraOriginLanguageDecs, 18, "subscribeExtraOriginLanguage"], [_getOfflineUserExistenceStateDecs, 18, "getOfflineUserExistenceState"], [_openWidgetDecs, 18, "openWidget"], [_closeWidgetDecs, 18, "closeWidget"]], []).e, 16);
|
|
1562
1512
|
_init_newMessageTooltipVisible = _applyDecs$e[0];
|
|
1563
1513
|
_init_totalWaitingRoomUser = _applyDecs$e[1];
|
|
1564
1514
|
_init_liveStreamingState = _applyDecs$e[2];
|
|
@@ -1567,13 +1517,12 @@ _init_cloudRecordingState = _applyDecs$e[4];
|
|
|
1567
1517
|
_init_connectionSettingVisible = _applyDecs$e[5];
|
|
1568
1518
|
_init_folded = _applyDecs$e[6];
|
|
1569
1519
|
_init_boardOwnerUser = _applyDecs$e[7];
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
_initProto = _applyDecs$e[16];
|
|
1520
|
+
_init_showArrow = _applyDecs$e[8];
|
|
1521
|
+
_init_phoneMicEnabled = _applyDecs$e[9];
|
|
1522
|
+
_init_chatTabIndex = _applyDecs$e[10];
|
|
1523
|
+
_init_popoverOpened = _applyDecs$e[11];
|
|
1524
|
+
_init_stateBarLeaveMeeting = _applyDecs$e[12];
|
|
1525
|
+
_init_hasOfflineUserExistence = _applyDecs$e[13];
|
|
1526
|
+
_init_connectionState = _applyDecs$e[14];
|
|
1527
|
+
_initProto = _applyDecs$e[15];
|
|
1579
1528
|
var ActionBarContext = exports.ActionBarContext = /*#__PURE__*/(0, _react.createContext)(null);
|