fcr-ui-scene 3.5.1 → 3.6.0
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/creator.d.ts +14 -0
- package/lib/creator.js +239 -14
- package/lib/electron/app.js +0 -21
- package/lib/electron/bootstrap-sdk.js +136 -7
- package/lib/electron/injections.d.ts +19 -7
- package/lib/electron/injections.js +206 -77
- package/lib/electron/ipc/ipc.d.ts +26 -0
- package/lib/electron/ipc/ipc.js +137 -0
- package/lib/electron/ipc/type.d.ts +11 -0
- package/lib/electron/ipc/type.js +19 -0
- package/lib/electron/logger.js +1 -1
- package/lib/electron/main.js +1 -1
- package/lib/electron/plugins/meeting-state.d.ts +1 -0
- package/lib/electron/plugins/meeting-state.js +3 -3
- package/lib/electron/plugins/screenshot.js +2 -2
- package/lib/electron/preload.js +67 -5
- package/lib/electron/window.js +0 -2
- package/lib/global.css +21 -0
- package/lib/modules/action-bar/components/apps/index.js +1 -0
- package/lib/modules/action-bar/components/apps/useWidgetList.js +1 -1
- package/lib/modules/action-bar/components/item/index.d.ts +2 -0
- package/lib/modules/action-bar/components/item/index.js +4 -2
- package/lib/modules/action-bar/components/leave/index.js +1 -0
- package/lib/modules/action-bar/components/more/index.js +1 -0
- package/lib/modules/action-bar/components/record/index.js +43 -106
- package/lib/modules/action-bar/components/record/popover.d.ts +4 -0
- package/lib/modules/action-bar/components/record/popover.js +57 -0
- package/lib/modules/action-bar/components/record/stop-record-dialog.js +1 -0
- package/lib/modules/action-bar/components/screen-share/index.js +15 -3
- package/lib/modules/action-bar/components/screen-share/submenu.js +2 -2
- package/lib/modules/action-bar/components/security/index.js +2 -1
- package/lib/modules/action-bar/components/smaller/index.js +1 -1
- package/lib/modules/action-bar/components/trigger-output-language/index.js +17 -22
- package/lib/modules/action-bar/components/trigger-subscribe-language/index.js +2 -1
- package/lib/modules/action-bar/index.css +3 -2
- package/lib/modules/action-bar/index.js +2 -1
- package/lib/modules/action-bar/store.d.ts +5 -0
- package/lib/modules/action-bar/store.js +30 -12
- package/lib/modules/action-bar/types.d.ts +1 -0
- package/lib/modules/chat/chat-room-store.js +1 -1
- package/lib/modules/chat/components/chat-bar/index.d.ts +1 -1
- package/lib/modules/chat/components/chat-bar/index.js +5 -3
- package/lib/modules/chat/components/chat-select/select-item/index.js +1 -1
- package/lib/modules/chat/components/message-list/index.js +1 -2
- package/lib/modules/chat/components/message-list/message-item/index.d.ts +0 -1
- package/lib/modules/chat/components/message-list/message-item/index.js +9 -10
- package/lib/modules/chat/index.css +24 -0
- package/lib/modules/chat/view.js +13 -3
- package/lib/modules/components/device-control/components/carmera/index.js +4 -5
- package/lib/modules/components/device-control/components/microphone/index.js +4 -5
- package/lib/modules/components/device-control/index.css +6 -3
- package/lib/modules/components/leave-meeting/components/assign-host.js +26 -4
- package/lib/modules/components/leave-meeting/components/index.css +35 -0
- package/lib/modules/components/leave-meeting/index.js +1 -0
- package/lib/modules/components/leave-meeting/store.js +25 -67
- package/lib/modules/components/member-window/components/member-actions/components/audio-control.js +3 -2
- package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.js +1 -1
- package/lib/modules/components/member-window/components/member-actions/components/icon-status.js +10 -9
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.js +2 -2
- package/lib/modules/components/member-window/components/member-actions/components/user-info.js +1 -1
- package/lib/modules/components/member-window/components/member-actions/index.js +2 -2
- package/lib/modules/components/member-window/components/video-player/components/remote-video-player.js +3 -14
- package/lib/modules/components/member-window/index.css +18 -7
- package/lib/modules/components/member-window/types.d.ts +1 -1
- package/lib/modules/components/security-menu/index.css +2 -2
- package/lib/modules/components/security-menu/index.js +80 -28
- package/lib/modules/components/tab-frame/index.css +1 -1
- package/lib/modules/control-bar/components/meeting-details/index.css +1 -1
- package/lib/modules/control-bar/components/meeting-details/index.js +15 -9
- package/lib/modules/control-bar/components/more-actions/index.js +3 -21
- package/lib/modules/control-bar/components/share-state-nav/index.js +4 -20
- package/lib/modules/control-bar/index.d.ts +2 -0
- package/lib/modules/control-bar/index.js +3 -1
- package/lib/modules/control-bar/store.d.ts +11 -2
- package/lib/modules/control-bar/store.js +103 -95
- package/lib/modules/control-bar/view.js +1 -6
- package/lib/modules/device-pretest/audio-preview/speaker-detection.js +1 -1
- package/lib/modules/dialog/components/chat/electron.d.ts +1 -3
- package/lib/modules/dialog/components/chat/index.js +24 -17
- package/lib/modules/dialog/components/confirm-leave-meeting/index.d.ts +6 -0
- package/lib/modules/dialog/components/confirm-leave-meeting/index.js +86 -0
- package/lib/modules/dialog/components/control-bar/index.d.ts +1 -2
- package/lib/modules/dialog/components/control-bar/index.js +5 -17
- package/lib/modules/dialog/components/dialog-container/component/body.d.ts +1 -0
- package/lib/modules/dialog/components/dialog-container/component/body.js +4 -2
- package/lib/modules/dialog/components/dialog-container/index.css +2 -1
- package/lib/modules/dialog/components/dialog-container/index.d.ts +1 -0
- package/lib/modules/dialog/components/dialog-container/index.js +3 -1
- package/lib/modules/dialog/components/participant/index.d.ts +0 -1
- package/lib/modules/dialog/components/participant/index.js +15 -24
- package/lib/modules/dialog/components/pre-setting/electron.d.ts +2 -0
- package/lib/modules/dialog/components/pre-setting/electron.js +51 -0
- package/lib/modules/dialog/components/pre-setting/index.css +26 -0
- package/lib/modules/dialog/components/pre-setting/index.d.ts +6 -0
- package/lib/modules/dialog/components/pre-setting/index.js +38 -0
- package/lib/modules/dialog/components/pre-setting-container/component/body.d.ts +8 -0
- package/lib/modules/dialog/components/pre-setting-container/component/body.js +80 -0
- package/lib/modules/dialog/components/pre-setting-container/index.css +82 -0
- package/lib/modules/dialog/components/pre-setting-container/index.d.ts +18 -0
- package/lib/modules/dialog/components/pre-setting-container/index.js +117 -0
- package/lib/modules/dialog/components/rename/index.d.ts +4 -0
- package/lib/modules/dialog/components/rename/index.js +72 -0
- package/lib/modules/dialog/components/video-window/index.js +18 -16
- package/lib/modules/dialog/components/widget/electron.d.ts +2 -1
- package/lib/modules/dialog/components/widget/electron.js +3 -2
- package/lib/modules/dialog/components/widget/index.d.ts +2 -1
- package/lib/modules/dialog/components/widget/index.js +4 -6
- package/lib/modules/dialog/dialogs.d.ts +1 -0
- package/lib/modules/dialog/dialogs.js +3 -2
- package/lib/modules/dialog/hooks/useElectron.d.ts +2 -0
- package/lib/modules/dialog/hooks/useElectron.js +11 -13
- package/lib/modules/dialog/index.d.ts +2 -0
- package/lib/modules/dialog/index.js +2 -1
- package/lib/modules/dialog/store.d.ts +8 -3
- package/lib/modules/dialog/store.js +38 -26
- package/lib/modules/dialog/type.d.ts +1 -0
- package/lib/modules/dialog/view.js +2 -1
- package/lib/modules/event-confirm/index.d.ts +2 -0
- package/lib/modules/event-confirm/index.js +2 -1
- package/lib/modules/event-confirm/store.d.ts +9 -1
- package/lib/modules/event-confirm/store.js +94 -8
- package/lib/modules/event-confirm/view.js +55 -46
- package/lib/modules/{sound-effect → event-sound}/index.d.ts +3 -2
- package/lib/modules/{sound-effect → event-sound}/index.js +9 -5
- package/lib/modules/event-toast/store.js +2 -0
- package/lib/modules/interpreter/dialog-content/index.js +4 -1
- package/lib/modules/interpreter/index.d.ts +2 -0
- package/lib/modules/interpreter/index.js +2 -1
- package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/index.js +3 -0
- package/lib/modules/interpreter/store.d.ts +2 -2
- package/lib/modules/interpreter/store.js +30 -24
- package/lib/modules/interpreter/type.d.ts +2 -0
- package/lib/modules/invite/components/pstn-invite.js +3 -9
- package/lib/modules/invite/components/voip-invite.css +26 -0
- package/lib/modules/invite/components/voip-invite.d.ts +1 -0
- package/lib/modules/invite/components/voip-invite.js +8 -11
- package/lib/modules/invite/index.css +16 -3
- package/lib/modules/invite/index.d.ts +2 -1
- package/lib/modules/invite/index.js +2 -1
- package/lib/modules/invite/store.d.ts +5 -1
- package/lib/modules/invite/store.js +8 -1
- package/lib/modules/layout/components/Carousel.d.ts +1 -1
- package/lib/modules/layout/components/Carousel.js +16 -118
- package/lib/modules/layout/components/CommonVideoRenderer.d.ts +13 -0
- package/lib/modules/layout/components/CommonVideoRenderer.js +214 -0
- package/lib/modules/layout/components/Gallery.d.ts +1 -0
- package/lib/modules/layout/components/Gallery.js +62 -205
- package/lib/modules/layout/components/index.css +17 -34
- package/lib/modules/layout/index.d.ts +2 -0
- package/lib/modules/layout/index.js +2 -1
- package/lib/modules/layout/store.d.ts +5 -2
- package/lib/modules/layout/store.js +47 -39
- package/lib/modules/layout/type.d.ts +4 -0
- package/lib/modules/layout/type.js +6 -1
- package/lib/modules/live-streaming/store.d.ts +1 -0
- package/lib/modules/live-streaming/store.js +19 -8
- package/lib/modules/participant/components/confirm-input/index.d.ts +4 -4
- package/lib/modules/participant/components/confirm-input/index.js +74 -6
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.css +27 -3
- package/lib/modules/participant/components/participants/components/footer/components/footer/index.css +4 -0
- package/lib/modules/participant/components/participants/components/footer/components/footer/index.js +3 -2
- package/lib/modules/participant/components/participants/components/participants/components/attendee/index.css +4 -3
- package/lib/modules/participant/components/participants/components/participants/components/attendee/index.js +1 -0
- package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.css +9 -1
- package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.js +1 -1
- package/lib/modules/participant/components/participants/components/participants/index.css +1 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.css +18 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.js +12 -5
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-actions-popover/index.js +1 -8
- package/lib/modules/participant/index.css +6 -0
- package/lib/modules/participant/index.d.ts +1 -0
- package/lib/modules/participant/index.js +9 -0
- package/lib/modules/participant/store.d.ts +6 -0
- package/lib/modules/participant/store.js +130 -96
- package/lib/modules/pc-audio-connect/store.js +1 -1
- package/lib/modules/phone-audio-connect/index.d.ts +2 -0
- package/lib/modules/phone-audio-connect/index.js +2 -1
- package/lib/modules/phone-audio-connect/store.d.ts +4 -1
- package/lib/modules/phone-audio-connect/store.js +4 -2
- package/lib/modules/setting/audio-settings/audio-settings.js +70 -48
- package/lib/modules/setting/audio-settings/index.css +23 -6
- package/lib/modules/setting/general-settings/general-settings.d.ts +1 -2
- package/lib/modules/setting/general-settings/general-settings.js +111 -37
- package/lib/modules/setting/general-settings/index.css +15 -0
- package/lib/modules/setting/index.d.ts +4 -1
- package/lib/modules/setting/index.js +7 -4
- package/lib/modules/setting/state/index.js +1 -1
- package/lib/modules/setting/store.d.ts +24 -11
- package/lib/modules/setting/store.js +203 -142
- package/lib/modules/setting/video-settings/index.css +13 -2
- package/lib/modules/setting/video-settings/video-settings-basic.js +18 -27
- package/lib/modules/setting/video-settings/video-settings.d.ts +0 -2
- package/lib/modules/setting/video-settings/video-settings.js +3 -2
- package/lib/modules/setting/view.d.ts +11 -2
- package/lib/modules/setting/view.js +93 -71
- package/lib/modules/share-screen/components/selection/index.js +6 -2
- package/lib/modules/share-screen/index.d.ts +4 -1
- package/lib/modules/share-screen/index.js +3 -1
- package/lib/modules/share-screen/store.d.ts +15 -5
- package/lib/modules/share-screen/store.js +105 -59
- package/lib/modules/share-screen/view.js +1 -1
- package/lib/modules/state-bar/index.css +4 -2
- package/lib/modules/state-bar/index.d.ts +2 -0
- package/lib/modules/state-bar/index.js +2 -1
- package/lib/modules/state-bar/layout-config.js +1 -0
- package/lib/modules/state-bar/live-streaming-state.js +1 -0
- package/lib/modules/state-bar/meeting-detail.css +10 -1
- package/lib/modules/state-bar/meeting-details.js +42 -26
- package/lib/modules/state-bar/meeting-network-state.css +8 -0
- package/lib/modules/state-bar/meeting-time.js +9 -20
- package/lib/modules/state-bar/store.d.ts +5 -1
- package/lib/modules/state-bar/store.js +10 -3
- package/lib/modules/state-bar/view.js +17 -6
- package/lib/modules/video-window/components/members/index.js +0 -3
- package/lib/modules/waiting-room-layout/index.css +13 -0
- package/lib/modules/waiting-room-layout/index.d.ts +2 -1
- package/lib/modules/waiting-room-layout/index.js +2 -1
- package/lib/modules/waiting-room-layout/store.d.ts +12 -1
- package/lib/modules/waiting-room-layout/store.js +42 -6
- package/lib/modules/waiting-room-layout/view.js +22 -5
- package/lib/modules/whiteboard/components/control-bar/index.css +1 -1
- package/lib/modules/whiteboard/components/switch-theme/libs.d.ts +1 -1
- package/lib/modules/whiteboard/components/switch-theme/libs.js +3 -1
- package/lib/modules/whiteboard/components/toolbar/ style.css +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.js +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/picker.js +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.js +3 -14
- package/lib/modules/whiteboard/components/toolbar/components/expansion/index.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/expansion/index.js +83 -0
- package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.js +2 -2
- package/lib/modules/whiteboard/components/toolbar/components/history.js +3 -3
- package/lib/modules/whiteboard/components/toolbar/components/item/index.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/item/index.js +42 -0
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +2 -2
- package/lib/modules/whiteboard/components/toolbar/components/screen-capture-picker.js +2 -2
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +3 -3
- package/lib/modules/whiteboard/components/toolbar/hooks/index.js +6 -6
- package/lib/modules/whiteboard/components/toolbar/index.js +9 -113
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +18 -0
- package/lib/modules/whiteboard/components/toolbar/store.js +276 -83
- package/lib/modules/whiteboard/context.d.ts +1 -2
- package/lib/modules/whiteboard/index.d.ts +1 -14
- package/lib/modules/whiteboard/index.js +131 -426
- package/lib/modules/whiteboard/view.js +12 -10
- package/lib/modules/widget/sdk.js +2 -1
- package/lib/object-manager.d.ts +8 -0
- package/lib/object-manager.js +75 -0
- package/lib/plugins/browser-runtime-plugin.js +19 -14
- package/lib/providers/ability-provider.d.ts +8 -0
- package/lib/providers/ability-provider.js +14 -0
- package/lib/providers/device-privilege-provider.d.ts +1 -0
- package/lib/providers/device-privilege-provider.js +53 -75
- package/lib/providers/device-provider.d.ts +18 -8
- package/lib/providers/device-provider.js +397 -209
- package/lib/providers/device-stream-provider.js +0 -4
- package/lib/providers/dialog-provider.d.ts +1 -0
- package/lib/providers/dialog-provider.js +4 -18
- package/lib/providers/event-provider.js +45 -2
- package/lib/providers/interpreter-provider.d.ts +4 -0
- package/lib/providers/interpreter-provider.js +166 -137
- package/lib/providers/message-provider.js +44 -2
- package/lib/providers/privilege-provider.d.ts +33 -0
- package/lib/providers/privilege-provider.js +120 -45
- package/lib/providers/room-provider.d.ts +12 -10
- package/lib/providers/room-provider.js +162 -262
- package/lib/providers/screen-share-provider.d.ts +4 -0
- package/lib/providers/screen-share-provider.js +3 -6
- package/lib/providers/widget-provider.js +6 -4
- package/lib/runtime.d.ts +20 -8
- package/lib/scenes/main-scene.d.ts +2 -0
- package/lib/scenes/main-scene.js +95 -37
- package/lib/scenes/waiting-scene.js +16 -13
- package/lib/schema.d.ts +55 -32
- package/lib/schema.js +23 -9
- package/lib/shared-data-source/config.d.ts +6 -2
- package/lib/shared-data-source/config.js +81 -10
- package/lib/shared-data-source/member-data.d.ts +16 -20
- package/lib/shared-data-source/member-data.js +121 -110
- package/lib/shared-data-source/screen-share-data-source.d.ts +37 -0
- package/lib/shared-data-source/screen-share-data-source.js +134 -0
- package/lib/shared-data-source/security-data.d.ts +1 -0
- package/lib/shared-data-source/security-data.js +3 -5
- package/lib/shared-data-source/setting.d.ts +1 -0
- package/lib/shared-data-source/setting.js +33 -17
- package/lib/shared-data-source/video-window.d.ts +3 -3
- package/lib/shared-data-source/video-window.js +55 -38
- package/lib/translations/enUS.d.ts +48 -1
- package/lib/translations/enUS.js +101 -17
- package/lib/translations/zhCN.d.ts +48 -1
- package/lib/translations/zhCN.js +88 -4
- package/lib/type.d.ts +40 -20
- package/lib/type.js +14 -1
- package/lib/ui-manager.d.ts +11 -9
- package/lib/ui-manager.js +118 -29
- package/lib/ui-scene.d.ts +7 -4
- package/lib/ui-scene.js +111 -128
- package/lib/utilities/constant.d.ts +3 -1
- package/lib/utilities/constant.js +2 -0
- package/lib/utilities/copyText.js +15 -11
- package/lib/utilities/default-config.d.ts +2 -0
- package/lib/utilities/default-config.js +11 -5
- package/lib/utilities/i18n-common-data.d.ts +2 -0
- package/lib/utilities/i18n-common-data.js +15 -0
- package/lib/utilities/logger.d.ts +0 -1
- package/lib/utilities/logger.js +3 -4
- package/lib/utilities/renderer.d.ts +0 -9
- package/lib/utilities/renderer.js +1 -70
- package/lib/utilities/screen.js +3 -1
- package/lib/utilities/setting-config-storage.d.ts +6 -1
- package/lib/utilities/setting-config-storage.js +21 -4
- package/lib/utilities/tools.d.ts +7 -6
- package/lib/utilities/tools.js +56 -44
- package/lib/utilities/ui-resources.d.ts +6 -0
- package/lib/utilities/ui-resources.js +47 -9
- package/lib/waiting-room-control-manager.d.ts +4 -4
- package/lib/waiting-room-control-manager.js +29 -9
- package/package.json +6 -6
- package/public/assets/browser/images/default1.jpg +0 -0
- package/public/assets/browser/images/default2.jpg +0 -0
- package/public/assets/browser/images/default3.jpg +0 -0
- package/public/assets/browser/images/default4.jpg +0 -0
- package/public/assets/browser/images/default5.jpg +0 -0
- package/public/assets/browser/images/default6.jpg +0 -0
- package/public/assets/browser/images/default7.jpg +0 -0
- package/public/assets/browser/sound_effects/pretest.mp3 +0 -0
- package/public/assets/browser/sound_effects/recording_started.mp3 +0 -0
- package/public/assets/browser/sound_effects/remote_user_joined.mp3 +0 -0
- package/public/assets/browser/sound_effects/speaker_test.mp3 +0 -0
- package/public/assets/browser/videos/default8.mp4 +0 -0
- package/public/assets/browser/videos/default9.mp4 +0 -0
- package/public/assets/electron/images/default1.jpg +0 -0
- package/public/assets/electron/images/default2.jpg +0 -0
- package/public/assets/electron/sound_effects/pretest.mp3 +0 -0
- package/public/assets/electron/videos/default8.mp4 +0 -0
- package/public/index.html +103 -82
- package/lib/hooks/meeting-time.d.ts +0 -15
- package/lib/hooks/meeting-time.js +0 -92
- package/lib/login-confirm-dialog.d.ts +0 -13
- package/lib/login-confirm-dialog.js +0 -85
- package/lib/modules/action-bar/components/apps/appitems.d.ts +0 -3
- package/lib/modules/action-bar/components/apps/appitems.js +0 -45
- package/lib/modules/components/member-window/components/member-board.d.ts +0 -2
- package/lib/modules/components/member-window/components/member-board.js +0 -63
- package/lib/modules/dialog/components/system-preference/bg1.png +0 -0
- package/lib/modules/dialog/components/system-preference/bg2.png +0 -0
- package/lib/modules/dialog/types/index.d.ts +0 -70
- package/lib/modules/participant/components/attendee/components/microphone-indicator/index.d.ts +0 -6
- package/lib/modules/participant/components/attendee/components/microphone-indicator/index.js +0 -28
- package/lib/modules/participant/components/attendee/components/user-avatar/index.d.ts +0 -7
- package/lib/modules/participant/components/attendee/components/user-avatar/index.js +0 -39
- package/lib/modules/participant/components/attendee/index.css +0 -69
- package/lib/modules/participant/components/attendee/index.d.ts +0 -4
- package/lib/modules/participant/components/attendee/index.js +0 -337
- package/lib/modules/participant/components/drop-menu/index.css +0 -60
- package/lib/modules/participant/components/drop-menu/index.d.ts +0 -2
- package/lib/modules/participant/components/drop-menu/index.js +0 -189
- package/lib/modules/participant/components/footer/buttons.d.ts +0 -6
- package/lib/modules/participant/components/footer/buttons.js +0 -52
- package/lib/modules/participant/components/footer/index.d.ts +0 -4
- package/lib/modules/participant/components/footer/index.js +0 -37
- package/lib/modules/participant/components/merge/index.d.ts +0 -11
- package/lib/modules/participant/components/merge/index.js +0 -49
- package/lib/modules/participant/components/rename/index.d.ts +0 -4
- package/lib/modules/participant/components/rename/index.js +0 -45
- package/lib/modules/participant/components/user-action/index.d.ts +0 -17
- package/lib/modules/participant/components/user-action/index.js +0 -169
- package/lib/modules/video-window/deviceState/index.d.ts +0 -16
- package/lib/modules/video-window/deviceState/index.js +0 -75
- package/lib/modules/video-window/members/index.css +0 -51
- package/lib/modules/video-window/members/index.d.ts +0 -2
- package/lib/modules/video-window/members/index.js +0 -157
- package/lib/modules/video-window/speaking/index.css +0 -69
- package/lib/modules/video-window/speaking/index.d.ts +0 -3
- package/lib/modules/video-window/speaking/index.js +0 -57
- package/lib/modules/video-window/topControl/index.css +0 -35
- package/lib/modules/video-window/topControl/index.d.ts +0 -3
- package/lib/modules/video-window/topControl/index.js +0 -92
- /package/lib/modules/{sound-effect → event-sound}/sound-effect-player.d.ts +0 -0
- /package/lib/modules/{sound-effect → event-sound}/sound-effect-player.js +0 -0
|
@@ -22,7 +22,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
22
22
|
value: true
|
|
23
23
|
});
|
|
24
24
|
exports["default"] = exports.StoreContext = void 0;
|
|
25
|
-
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
26
25
|
require("core-js/modules/es.array.for-each.js");
|
|
27
26
|
require("core-js/modules/es.array.iterator.js");
|
|
28
27
|
require("core-js/modules/es.date.to-string.js");
|
|
@@ -52,13 +51,11 @@ require("core-js/modules/esnext.weak-map.emplace.js");
|
|
|
52
51
|
require("core-js/modules/web.dom-collections.for-each.js");
|
|
53
52
|
require("core-js/modules/web.dom-collections.iterator.js");
|
|
54
53
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
55
|
-
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
56
54
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
57
55
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
58
56
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
59
57
|
var _mobx = require("mobx");
|
|
60
58
|
var _type = require("agora-rte-sdk/lib/core/rtc/type");
|
|
61
|
-
var _shareAudio = require("agora-ui-foundation/lib/components/room-screen-share-state-bar/share-audio");
|
|
62
59
|
var _decorator = require("agora-foundation/lib/decorator");
|
|
63
60
|
var _type2 = require("fcr-core/lib/room-control/type");
|
|
64
61
|
var _fcrCore = require("fcr-core");
|
|
@@ -73,7 +70,7 @@ var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
|
73
70
|
var _logger = require("../../utilities/logger");
|
|
74
71
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
75
72
|
var _ControlBarStore;
|
|
76
|
-
var _initProto, _leaveConfirmRefDecs, _init_leaveConfirmRef, _init_shareWithAudio,
|
|
73
|
+
var _initProto, _leaveConfirmRefDecs, _init_leaveConfirmRef, _init_shareWithAudio, _init_currentShareId, _init_currentShareType, _init_currentShareBounds, _init_recordShareBounds, _init_cloudRecordingState, _init_isHost, _init_roomDuration, _init_startTime, _init_playUrl, _init_liveStreamingState, _init_allApplicationWindows, _init_roomInfo, _init_isShowMeetingDetailPortal, _init_hiddenShareActionNav, _init_boardOwnerUser, _init_currentShareDisplayId, _setCheckedStateMapDecs, _initControlBarDecs, _updateCurrentShareContentDecs, _setShareWithAudioStateDecs, _showLockedRoomToastDecs, _createNewShareDecs, _handlerStopShareDecs, _setShareAudioProcessingChannelDecs, _handleMoreClickDecs, _pauseCloudRecordingDecs, _resumeCloudRecordingDecs, _stopCloudRecordingDecs, _showToastDecs, _setShowMeetingDetailPortalDecs, _setEnableWaitingRoomDecs, _handleLeaveRoomDecs, _resetMessageCountDecs, _ref;
|
|
77
74
|
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
78
75
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
79
76
|
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
@@ -102,7 +99,6 @@ var _O = /*#__PURE__*/new WeakMap();
|
|
|
102
99
|
var _P = /*#__PURE__*/new WeakMap();
|
|
103
100
|
var _Q = /*#__PURE__*/new WeakMap();
|
|
104
101
|
var _R = /*#__PURE__*/new WeakMap();
|
|
105
|
-
var _S = /*#__PURE__*/new WeakMap();
|
|
106
102
|
_ref = (_leaveConfirmRefDecs = [_mobx.observable, _mobx.observable.ref], _setCheckedStateMapDecs = [_mobx.action, _mobx.action.bound], _initControlBarDecs = [_mobx.action, _mobx.action.bound], _updateCurrentShareContentDecs = [_mobx.action, _mobx.action.bound], _setShareWithAudioStateDecs = [_mobx.action, _mobx.action.bound], _showLockedRoomToastDecs = [_mobx.action, _mobx.action.bound], _createNewShareDecs = [_mobx.action, _mobx.action.bound], _handlerStopShareDecs = [_mobx.action, _mobx.action.bound], _setShareAudioProcessingChannelDecs = [_mobx.action, _mobx.action.bound], _handleMoreClickDecs = [_mobx.action, _mobx.action.bound], _pauseCloudRecordingDecs = [_decorator.bound, (0, _decorator.debounced)(500, {
|
|
107
103
|
leading: true
|
|
108
104
|
})], _resumeCloudRecordingDecs = [_decorator.bound, (0, _decorator.debounced)(500, {
|
|
@@ -112,11 +108,11 @@ _ref = (_leaveConfirmRefDecs = [_mobx.observable, _mobx.observable.ref], _setChe
|
|
|
112
108
|
})], _showToastDecs = [_mobx.action, _mobx.action.bound], _setShowMeetingDetailPortalDecs = [_mobx.action, _mobx.action.bound], _setEnableWaitingRoomDecs = [_mobx.action, _mobx.action.bound], _handleLeaveRoomDecs = [_mobx.action, _mobx.action.bound], _resetMessageCountDecs = [_mobx.action, _mobx.action.bound], "logger");
|
|
113
109
|
var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
114
110
|
function ControlBarStore(_ref2) {
|
|
115
|
-
var
|
|
111
|
+
var _this = this,
|
|
112
|
+
_roomControl$getRoomS,
|
|
116
113
|
_roomControl$getRoomS2,
|
|
117
114
|
_roomControl$getRoomS3,
|
|
118
|
-
_roomControl$getRoomS4
|
|
119
|
-
_this = this;
|
|
115
|
+
_roomControl$getRoomS4;
|
|
120
116
|
var uiEventStore = _ref2.uiEventStore,
|
|
121
117
|
securityStore = _ref2.securityStore,
|
|
122
118
|
roomControl = _ref2.roomControl,
|
|
@@ -129,7 +125,9 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
129
125
|
abilityProvider = _ref2.abilityProvider,
|
|
130
126
|
sharedMeetingTimeDataSource = _ref2.sharedMeetingTimeDataSource,
|
|
131
127
|
messageProvider = _ref2.messageProvider,
|
|
132
|
-
sharedSecuritySharedDataSource = _ref2.sharedSecuritySharedDataSource
|
|
128
|
+
sharedSecuritySharedDataSource = _ref2.sharedSecuritySharedDataSource,
|
|
129
|
+
dialogProvider = _ref2.dialogProvider,
|
|
130
|
+
screenShareDataSource = _ref2.screenShareDataSource;
|
|
133
131
|
(0, _classCallCheck2["default"])(this, ControlBarStore);
|
|
134
132
|
(0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.createLogger)({
|
|
135
133
|
prefix: 'ControlBarStore'
|
|
@@ -143,36 +141,48 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
143
141
|
});
|
|
144
142
|
(0, _defineProperty2["default"])(this, "_disposers", []);
|
|
145
143
|
(0, _defineProperty2["default"])(this, "_liveStreamingDialogKey", null);
|
|
144
|
+
(0, _defineProperty2["default"])(this, "_dialogObsever", {
|
|
145
|
+
onDialogOpened: function onDialogOpened(dialogKey, dialogId, params) {
|
|
146
|
+
if (dialogKey === _constant.FcrUIDialogKey.PARTICIPANT) {
|
|
147
|
+
_this._participantDialogId = dialogId;
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
onDialogClosed: function onDialogClosed(dialogId) {
|
|
151
|
+
if (dialogId === _this._participantDialogId) {
|
|
152
|
+
_this._participantDialogId = '';
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
(0, _defineProperty2["default"])(this, "_participantDialogId", '');
|
|
146
157
|
_classPrivateFieldInitSpec(this, _A, _init_leaveConfirmRef(this, undefined));
|
|
147
158
|
_classPrivateFieldInitSpec(this, _B, _init_shareWithAudio(this, false));
|
|
148
|
-
_classPrivateFieldInitSpec(this, _C,
|
|
149
|
-
_classPrivateFieldInitSpec(this, _D,
|
|
150
|
-
_classPrivateFieldInitSpec(this, _E,
|
|
151
|
-
_classPrivateFieldInitSpec(this, _F, _init_currentShareBounds(this, {
|
|
159
|
+
_classPrivateFieldInitSpec(this, _C, _init_currentShareId(this, ''));
|
|
160
|
+
_classPrivateFieldInitSpec(this, _D, _init_currentShareType(this, _type.AgoraRtcScreenCaptureType.SCREEN));
|
|
161
|
+
_classPrivateFieldInitSpec(this, _E, _init_currentShareBounds(this, {
|
|
152
162
|
width: 0,
|
|
153
163
|
height: 0,
|
|
154
164
|
x: 0,
|
|
155
165
|
y: 0
|
|
156
166
|
}));
|
|
157
|
-
_classPrivateFieldInitSpec(this,
|
|
158
|
-
_classPrivateFieldInitSpec(this,
|
|
159
|
-
_classPrivateFieldInitSpec(this,
|
|
160
|
-
_classPrivateFieldInitSpec(this,
|
|
161
|
-
_classPrivateFieldInitSpec(this,
|
|
162
|
-
_classPrivateFieldInitSpec(this,
|
|
163
|
-
_classPrivateFieldInitSpec(this,
|
|
164
|
-
_classPrivateFieldInitSpec(this,
|
|
165
|
-
_classPrivateFieldInitSpec(this,
|
|
167
|
+
_classPrivateFieldInitSpec(this, _F, _init_recordShareBounds(this, new Map()));
|
|
168
|
+
_classPrivateFieldInitSpec(this, _G, _init_cloudRecordingState(this, _type3.FcrRecordingState.Stopped));
|
|
169
|
+
_classPrivateFieldInitSpec(this, _H, _init_isHost(this, false));
|
|
170
|
+
_classPrivateFieldInitSpec(this, _I, _init_roomDuration(this, 0));
|
|
171
|
+
_classPrivateFieldInitSpec(this, _J, _init_startTime(this, new Date().getTime()));
|
|
172
|
+
_classPrivateFieldInitSpec(this, _K, _init_playUrl(this, ''));
|
|
173
|
+
_classPrivateFieldInitSpec(this, _L, _init_liveStreamingState(this, _type3.FcrLiveStreamingState.STOPPED));
|
|
174
|
+
_classPrivateFieldInitSpec(this, _M, _init_allApplicationWindows(this, []));
|
|
175
|
+
_classPrivateFieldInitSpec(this, _N, _init_roomInfo(this, {
|
|
166
176
|
roomId: '',
|
|
167
177
|
roomName: '',
|
|
168
178
|
roomType: _type2.FcrRoomType.Mainroom,
|
|
169
179
|
password: '',
|
|
170
180
|
inviteLink: ''
|
|
171
181
|
}));
|
|
172
|
-
_classPrivateFieldInitSpec(this,
|
|
173
|
-
_classPrivateFieldInitSpec(this,
|
|
174
|
-
_classPrivateFieldInitSpec(this,
|
|
175
|
-
_classPrivateFieldInitSpec(this,
|
|
182
|
+
_classPrivateFieldInitSpec(this, _O, _init_isShowMeetingDetailPortal(this, false));
|
|
183
|
+
_classPrivateFieldInitSpec(this, _P, _init_hiddenShareActionNav(this, false));
|
|
184
|
+
_classPrivateFieldInitSpec(this, _Q, _init_boardOwnerUser(this, ''));
|
|
185
|
+
_classPrivateFieldInitSpec(this, _R, _init_currentShareDisplayId(this, 0));
|
|
176
186
|
this._uiEventStore = uiEventStore;
|
|
177
187
|
this._roomControl = roomControl;
|
|
178
188
|
this._securityStore = securityStore;
|
|
@@ -184,12 +194,15 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
184
194
|
this._sharedMeetingTimeDataSource = sharedMeetingTimeDataSource;
|
|
185
195
|
this._messageProvider = messageProvider;
|
|
186
196
|
this._sharedSecuritySharedDataSource = sharedSecuritySharedDataSource;
|
|
197
|
+
this._screenShareDataSource = screenShareDataSource;
|
|
187
198
|
this.startTime = (_roomControl$getRoomS = (_roomControl$getRoomS2 = roomControl.getRoomSchedule()) === null || _roomControl$getRoomS2 === void 0 ? void 0 : _roomControl$getRoomS2.startTime) !== null && _roomControl$getRoomS !== void 0 ? _roomControl$getRoomS : new Date().getTime();
|
|
188
199
|
this.roomInfo = roomControl.getRoomInfo();
|
|
189
200
|
this.roomDuration = (_roomControl$getRoomS3 = (_roomControl$getRoomS4 = roomControl.getRoomSchedule()) === null || _roomControl$getRoomS4 === void 0 ? void 0 : _roomControl$getRoomS4.duration) !== null && _roomControl$getRoomS3 !== void 0 ? _roomControl$getRoomS3 : 0;
|
|
190
201
|
this.liveStreamingState = roomControl.getLiveStreamingState();
|
|
191
202
|
this._deviceProvider = deviceProvider;
|
|
192
203
|
this._abilityProvider = abilityProvider;
|
|
204
|
+
this._dialogProvider = dialogProvider;
|
|
205
|
+
this._dialogProvider.addObserver(this._dialogObsever);
|
|
193
206
|
this._roomObserver = {
|
|
194
207
|
onLiveStreamingStateUpdated: function onLiveStreamingStateUpdated(roomId, state, url) {
|
|
195
208
|
_this.liveStreamingState = state;
|
|
@@ -207,20 +220,6 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
207
220
|
_this.boardOwnerUser = '';
|
|
208
221
|
}
|
|
209
222
|
};
|
|
210
|
-
(0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
211
|
-
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
212
|
-
while (1) switch (_context.prev = _context.next) {
|
|
213
|
-
case 0:
|
|
214
|
-
_context.next = 2;
|
|
215
|
-
return deviceProvider === null || deviceProvider === void 0 ? void 0 : deviceProvider.getWindowList();
|
|
216
|
-
case 2:
|
|
217
|
-
_this.allApplicationWindows = _context.sent;
|
|
218
|
-
case 3:
|
|
219
|
-
case "end":
|
|
220
|
-
return _context.stop();
|
|
221
|
-
}
|
|
222
|
-
}, _callee);
|
|
223
|
-
}))();
|
|
224
223
|
roomControl.addObserver(this._roomObserver);
|
|
225
224
|
roomControl.getBoardControl().addObserver(this._boardObserver);
|
|
226
225
|
}
|
|
@@ -241,7 +240,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
241
240
|
_classPrivateFieldSet(_B, this, v);
|
|
242
241
|
}
|
|
243
242
|
}, {
|
|
244
|
-
key: "
|
|
243
|
+
key: "currentShareId",
|
|
245
244
|
get: function get() {
|
|
246
245
|
return _classPrivateFieldGet(_C, this);
|
|
247
246
|
},
|
|
@@ -249,7 +248,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
249
248
|
_classPrivateFieldSet(_C, this, v);
|
|
250
249
|
}
|
|
251
250
|
}, {
|
|
252
|
-
key: "
|
|
251
|
+
key: "currentShareType",
|
|
253
252
|
get: function get() {
|
|
254
253
|
return _classPrivateFieldGet(_D, this);
|
|
255
254
|
},
|
|
@@ -257,7 +256,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
257
256
|
_classPrivateFieldSet(_D, this, v);
|
|
258
257
|
}
|
|
259
258
|
}, {
|
|
260
|
-
key: "
|
|
259
|
+
key: "currentShareBounds",
|
|
261
260
|
get: function get() {
|
|
262
261
|
return _classPrivateFieldGet(_E, this);
|
|
263
262
|
},
|
|
@@ -265,7 +264,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
265
264
|
_classPrivateFieldSet(_E, this, v);
|
|
266
265
|
}
|
|
267
266
|
}, {
|
|
268
|
-
key: "
|
|
267
|
+
key: "recordShareBounds",
|
|
269
268
|
get: function get() {
|
|
270
269
|
return _classPrivateFieldGet(_F, this);
|
|
271
270
|
},
|
|
@@ -273,7 +272,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
273
272
|
_classPrivateFieldSet(_F, this, v);
|
|
274
273
|
}
|
|
275
274
|
}, {
|
|
276
|
-
key: "
|
|
275
|
+
key: "cloudRecordingState",
|
|
277
276
|
get: function get() {
|
|
278
277
|
return _classPrivateFieldGet(_G, this);
|
|
279
278
|
},
|
|
@@ -281,7 +280,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
281
280
|
_classPrivateFieldSet(_G, this, v);
|
|
282
281
|
}
|
|
283
282
|
}, {
|
|
284
|
-
key: "
|
|
283
|
+
key: "isHost",
|
|
285
284
|
get: function get() {
|
|
286
285
|
return _classPrivateFieldGet(_H, this);
|
|
287
286
|
},
|
|
@@ -289,7 +288,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
289
288
|
_classPrivateFieldSet(_H, this, v);
|
|
290
289
|
}
|
|
291
290
|
}, {
|
|
292
|
-
key: "
|
|
291
|
+
key: "roomDuration",
|
|
293
292
|
get: function get() {
|
|
294
293
|
return _classPrivateFieldGet(_I, this);
|
|
295
294
|
},
|
|
@@ -297,7 +296,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
297
296
|
_classPrivateFieldSet(_I, this, v);
|
|
298
297
|
}
|
|
299
298
|
}, {
|
|
300
|
-
key: "
|
|
299
|
+
key: "startTime",
|
|
301
300
|
get: function get() {
|
|
302
301
|
return _classPrivateFieldGet(_J, this);
|
|
303
302
|
},
|
|
@@ -305,7 +304,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
305
304
|
_classPrivateFieldSet(_J, this, v);
|
|
306
305
|
}
|
|
307
306
|
}, {
|
|
308
|
-
key: "
|
|
307
|
+
key: "playUrl",
|
|
309
308
|
get: function get() {
|
|
310
309
|
return _classPrivateFieldGet(_K, this);
|
|
311
310
|
},
|
|
@@ -313,7 +312,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
313
312
|
_classPrivateFieldSet(_K, this, v);
|
|
314
313
|
}
|
|
315
314
|
}, {
|
|
316
|
-
key: "
|
|
315
|
+
key: "liveStreamingState",
|
|
317
316
|
get: function get() {
|
|
318
317
|
return _classPrivateFieldGet(_L, this);
|
|
319
318
|
},
|
|
@@ -321,7 +320,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
321
320
|
_classPrivateFieldSet(_L, this, v);
|
|
322
321
|
}
|
|
323
322
|
}, {
|
|
324
|
-
key: "
|
|
323
|
+
key: "allApplicationWindows",
|
|
325
324
|
get: function get() {
|
|
326
325
|
return _classPrivateFieldGet(_M, this);
|
|
327
326
|
},
|
|
@@ -329,7 +328,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
329
328
|
_classPrivateFieldSet(_M, this, v);
|
|
330
329
|
}
|
|
331
330
|
}, {
|
|
332
|
-
key: "
|
|
331
|
+
key: "roomInfo",
|
|
333
332
|
get: function get() {
|
|
334
333
|
return _classPrivateFieldGet(_N, this);
|
|
335
334
|
},
|
|
@@ -337,7 +336,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
337
336
|
_classPrivateFieldSet(_N, this, v);
|
|
338
337
|
}
|
|
339
338
|
}, {
|
|
340
|
-
key: "
|
|
339
|
+
key: "isShowMeetingDetailPortal",
|
|
341
340
|
get: function get() {
|
|
342
341
|
return _classPrivateFieldGet(_O, this);
|
|
343
342
|
},
|
|
@@ -345,7 +344,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
345
344
|
_classPrivateFieldSet(_O, this, v);
|
|
346
345
|
}
|
|
347
346
|
}, {
|
|
348
|
-
key: "
|
|
347
|
+
key: "hiddenShareActionNav",
|
|
349
348
|
get: function get() {
|
|
350
349
|
return _classPrivateFieldGet(_P, this);
|
|
351
350
|
},
|
|
@@ -353,7 +352,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
353
352
|
_classPrivateFieldSet(_P, this, v);
|
|
354
353
|
}
|
|
355
354
|
}, {
|
|
356
|
-
key: "
|
|
355
|
+
key: "boardOwnerUser",
|
|
357
356
|
get: function get() {
|
|
358
357
|
return _classPrivateFieldGet(_Q, this);
|
|
359
358
|
},
|
|
@@ -361,7 +360,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
361
360
|
_classPrivateFieldSet(_Q, this, v);
|
|
362
361
|
}
|
|
363
362
|
}, {
|
|
364
|
-
key: "
|
|
363
|
+
key: "currentShareDisplayId",
|
|
365
364
|
get: function get() {
|
|
366
365
|
return _classPrivateFieldGet(_R, this);
|
|
367
366
|
},
|
|
@@ -369,12 +368,9 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
369
368
|
_classPrivateFieldSet(_R, this, v);
|
|
370
369
|
}
|
|
371
370
|
}, {
|
|
372
|
-
key: "
|
|
371
|
+
key: "shareAudioProcessingChannel",
|
|
373
372
|
get: function get() {
|
|
374
|
-
return
|
|
375
|
-
},
|
|
376
|
-
set: function set(v) {
|
|
377
|
-
_classPrivateFieldSet(_S, this, v);
|
|
373
|
+
return this._screenShareDataSource.currentShareAudioProcessingChannel;
|
|
378
374
|
}
|
|
379
375
|
}, {
|
|
380
376
|
key: "privilegeProvider",
|
|
@@ -483,9 +479,9 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
483
479
|
}, {
|
|
484
480
|
key: "meetingId",
|
|
485
481
|
get: function get() {
|
|
486
|
-
var
|
|
482
|
+
var _ref3;
|
|
487
483
|
var mainRoomControl = this._roomProvider.currentRoomControl;
|
|
488
|
-
return (
|
|
484
|
+
return (_ref3 = mainRoomControl === null || mainRoomControl === void 0 ? void 0 : mainRoomControl.getRoomPropertiesByKeyPath('meetingId')) !== null && _ref3 !== void 0 ? _ref3 : this.roomId;
|
|
489
485
|
}
|
|
490
486
|
}, {
|
|
491
487
|
key: "scheduleInfo",
|
|
@@ -520,7 +516,9 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
520
516
|
}, {
|
|
521
517
|
key: "initControlBar",
|
|
522
518
|
value: function initControlBar(payload, browserWindow) {
|
|
523
|
-
this.
|
|
519
|
+
// this._screenShareDataSource.setCurrentShareAudioProcessingChannel(
|
|
520
|
+
// payload.currentShareAudioProcessingChannel,
|
|
521
|
+
// );
|
|
524
522
|
this.currentShareId = payload.currentShareId;
|
|
525
523
|
this.currentShareType = payload.currentShareType;
|
|
526
524
|
this.currentShareBounds = payload.currentShareBounds;
|
|
@@ -566,7 +564,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
566
564
|
}, {
|
|
567
565
|
key: "setShareAudioProcessingChannel",
|
|
568
566
|
value: function setShareAudioProcessingChannel(target) {
|
|
569
|
-
this.
|
|
567
|
+
this._screenShareDataSource.setCurrentShareAudioProcessingChannel(target);
|
|
570
568
|
}
|
|
571
569
|
|
|
572
570
|
// more
|
|
@@ -576,23 +574,27 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
576
574
|
var _this2 = this;
|
|
577
575
|
switch (actionKey) {
|
|
578
576
|
case _enums.MoreAction.OPEN_PARTICIPANTS:
|
|
579
|
-
this.
|
|
577
|
+
if (this._participantDialogId === '') {
|
|
578
|
+
this._dialogProvider.openDialog(_constant.FcrUIDialogKey.PARTICIPANT);
|
|
579
|
+
} else {
|
|
580
|
+
this._dialogProvider.closeDialog(this._participantDialogId);
|
|
581
|
+
}
|
|
580
582
|
this._sharedLayoutDataSource.setAsideLayout({
|
|
581
583
|
participant: false
|
|
582
584
|
});
|
|
583
585
|
break;
|
|
584
586
|
case _enums.MoreAction.OPEN_CHAT:
|
|
585
|
-
this.
|
|
587
|
+
this._dialogProvider.openDialog(_constant.FcrUIDialogKey.CHAT);
|
|
586
588
|
this._sharedLayoutDataSource.setAsideLayout({
|
|
587
589
|
chat: false
|
|
588
590
|
});
|
|
589
591
|
this._resetMessageCount();
|
|
590
592
|
break;
|
|
591
593
|
case _enums.MoreAction.OPEN_LIVE_STEAMING_DIALOG:
|
|
592
|
-
this.
|
|
594
|
+
this._dialogProvider.openDialog(_constant.FcrUIDialogKey.LIVE_STREAMING);
|
|
593
595
|
break;
|
|
594
596
|
case _enums.MoreAction.OPEN_SETTING:
|
|
595
|
-
this.
|
|
597
|
+
this._dialogProvider.openDeviceSettingDialog({});
|
|
596
598
|
break;
|
|
597
599
|
case _enums.MoreAction.CLOUD_RECORDING_START:
|
|
598
600
|
this.startCloudRecording();
|
|
@@ -619,15 +621,15 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
619
621
|
key: "openLiveStreamingDialog",
|
|
620
622
|
value: function openLiveStreamingDialog() {
|
|
621
623
|
var _this3 = this;
|
|
622
|
-
var dialogKey = this.
|
|
624
|
+
var dialogKey = this._dialogProvider.openConfirmDialog({
|
|
623
625
|
width: 256,
|
|
624
626
|
content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_stopButton["default"], {
|
|
625
627
|
onCancel: function onCancel() {
|
|
626
|
-
_this3.
|
|
628
|
+
_this3._dialogProvider.closeConfirm(dialogKey);
|
|
627
629
|
},
|
|
628
630
|
handleMoreClick: function handleMoreClick(type) {
|
|
629
631
|
_this3.handleMoreClick(type);
|
|
630
|
-
_this3.
|
|
632
|
+
_this3._dialogProvider.closeConfirm(dialogKey);
|
|
631
633
|
}
|
|
632
634
|
}),
|
|
633
635
|
showCancel: false,
|
|
@@ -669,12 +671,17 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
669
671
|
}, {
|
|
670
672
|
key: "showToast",
|
|
671
673
|
value: function showToast(params) {
|
|
672
|
-
this.
|
|
674
|
+
this._dialogProvider.openDialog(_constant.FcrUIDialogKey.SHOW_TOAST, _constant.FcrUIDialogKey.SHOW_TOAST, {
|
|
673
675
|
type: params.type,
|
|
674
676
|
message: params.content,
|
|
675
677
|
duration: params.duration
|
|
676
678
|
});
|
|
677
679
|
}
|
|
680
|
+
}, {
|
|
681
|
+
key: "roomDetailCopyText",
|
|
682
|
+
get: function get() {
|
|
683
|
+
return this._roomProvider.getRoomDetailCopyText();
|
|
684
|
+
}
|
|
678
685
|
}, {
|
|
679
686
|
key: "setShowMeetingDetailPortal",
|
|
680
687
|
value: function setShowMeetingDetailPortal(show) {
|
|
@@ -689,17 +696,18 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
689
696
|
key: "handleLeaveRoom",
|
|
690
697
|
value: function handleLeaveRoom() {
|
|
691
698
|
var _this4 = this;
|
|
692
|
-
var dailogKey = this.
|
|
699
|
+
var dailogKey = this._dialogProvider.openConfirmDialog({
|
|
700
|
+
className: 'leave-meeting-dialog',
|
|
693
701
|
width: 300,
|
|
694
702
|
content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_leaveMeeting.LeaveMeeting, {
|
|
695
703
|
setPopoverOpened: function setPopoverOpened(value) {
|
|
696
704
|
if (!value) {
|
|
697
|
-
_this4.
|
|
705
|
+
_this4._dialogProvider.closeConfirm(dailogKey);
|
|
698
706
|
}
|
|
699
707
|
}
|
|
700
708
|
}),
|
|
701
709
|
onCancel: function onCancel() {
|
|
702
|
-
_this4.
|
|
710
|
+
_this4._dialogProvider.closeConfirm(dailogKey);
|
|
703
711
|
},
|
|
704
712
|
showCancel: false,
|
|
705
713
|
showOk: false
|
|
@@ -719,6 +727,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
719
727
|
});
|
|
720
728
|
this._disposers = [];
|
|
721
729
|
this._roomControl.getBoardControl().removeObserver(this._boardObserver);
|
|
730
|
+
this._dialogProvider.removeObserver(this._dialogObsever);
|
|
722
731
|
this._roomControl.removeObserver(this._roomObserver);
|
|
723
732
|
this.recordShareBounds.clear();
|
|
724
733
|
}
|
|
@@ -730,25 +739,24 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
730
739
|
}]);
|
|
731
740
|
}();
|
|
732
741
|
_ControlBarStore = ControlBarStore;
|
|
733
|
-
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ControlBarStore, [[_leaveConfirmRefDecs, 17, "leaveConfirmRef"], [_mobx.observable, 1, "shareWithAudio"], [_mobx.observable, 1, "
|
|
742
|
+
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ControlBarStore, [[_leaveConfirmRefDecs, 17, "leaveConfirmRef"], [_mobx.observable, 1, "shareWithAudio"], [_mobx.observable, 1, "currentShareId"], [_mobx.observable, 1, "currentShareType"], [_mobx.observable, 1, "currentShareBounds"], [_mobx.observable, 1, "recordShareBounds"], [_mobx.observable, 1, "cloudRecordingState"], [_mobx.observable, 1, "isHost"], [_mobx.observable, 1, "roomDuration"], [_mobx.observable, 1, "startTime"], [_mobx.observable, 1, "playUrl"], [_mobx.observable, 1, "liveStreamingState"], [_mobx.observable, 1, "allApplicationWindows"], [_mobx.observable, 1, "roomInfo"], [_mobx.observable, 1, "isShowMeetingDetailPortal"], [_mobx.observable, 1, "hiddenShareActionNav"], [_mobx.observable, 1, "boardOwnerUser"], [_mobx.observable, 1, "currentShareDisplayId"], [_mobx.computed, 3, "hasSecurityPermission"], [_mobx.computed, 3, "hasStartCloudRecordingPermission"], [_mobx.computed, 3, "hasStopLiveStreamingPermission"], [_mobx.computed, 3, "hasGetLiveStreamingUrlPermission"], [_mobx.computed, 3, "hasStartLiveStreamingPermission"], [_mobx.computed, 3, "hasAssignHostBeforeLeavingPermission"], [_mobx.computed, 3, "hasEndRoomPermission"], [_mobx.computed, 3, "totalHourText"], [_mobx.computed, 3, "totalMinuteText"], [_mobx.computed, 3, "meetingTimeStatus"], [_mobx.computed, 3, "meetingTime"], [_mobx.computed, 3, "meetingTimeKey"], [_mobx.computed, 3, "roomId"], [_mobx.computed, 3, "meetingId"], [_mobx.computed, 3, "checkedStateMap"], [_setCheckedStateMapDecs, 18, "setCheckedStateMap"], [_initControlBarDecs, 18, "initControlBar"], [_updateCurrentShareContentDecs, 18, "updateCurrentShareContent"], [_setShareWithAudioStateDecs, 18, "setShareWithAudioState"], [_showLockedRoomToastDecs, 18, "showLockedRoomToast"], [_createNewShareDecs, 18, "createNewShare"], [_handlerStopShareDecs, 18, "handlerStopShare"], [_setShareAudioProcessingChannelDecs, 18, "setShareAudioProcessingChannel"], [_handleMoreClickDecs, 18, "handleMoreClick"], [_decorator.bound, 2, "openLiveStreamingDialog"], [_pauseCloudRecordingDecs, 2, "pauseCloudRecording"], [_resumeCloudRecordingDecs, 2, "resumeCloudRecording"], [_stopCloudRecordingDecs, 2, "stopCloudRecording"], [_decorator.bound, 2, "startCloudRecording"], [_showToastDecs, 18, "showToast"], [_setShowMeetingDetailPortalDecs, 18, "setShowMeetingDetailPortal"], [_setEnableWaitingRoomDecs, 18, "setEnableWaitingRoom"], [_handleLeaveRoomDecs, 18, "handleLeaveRoom"], [_decorator.bound, 2, "getLocalMeetingTime"], [_resetMessageCountDecs, 18, "_resetMessageCount"]], []).e, 19);
|
|
734
743
|
_init_leaveConfirmRef = _applyDecs$e[0];
|
|
735
744
|
_init_shareWithAudio = _applyDecs$e[1];
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
_initProto = _applyDecs$e[19];
|
|
745
|
+
_init_currentShareId = _applyDecs$e[2];
|
|
746
|
+
_init_currentShareType = _applyDecs$e[3];
|
|
747
|
+
_init_currentShareBounds = _applyDecs$e[4];
|
|
748
|
+
_init_recordShareBounds = _applyDecs$e[5];
|
|
749
|
+
_init_cloudRecordingState = _applyDecs$e[6];
|
|
750
|
+
_init_isHost = _applyDecs$e[7];
|
|
751
|
+
_init_roomDuration = _applyDecs$e[8];
|
|
752
|
+
_init_startTime = _applyDecs$e[9];
|
|
753
|
+
_init_playUrl = _applyDecs$e[10];
|
|
754
|
+
_init_liveStreamingState = _applyDecs$e[11];
|
|
755
|
+
_init_allApplicationWindows = _applyDecs$e[12];
|
|
756
|
+
_init_roomInfo = _applyDecs$e[13];
|
|
757
|
+
_init_isShowMeetingDetailPortal = _applyDecs$e[14];
|
|
758
|
+
_init_hiddenShareActionNav = _applyDecs$e[15];
|
|
759
|
+
_init_boardOwnerUser = _applyDecs$e[16];
|
|
760
|
+
_init_currentShareDisplayId = _applyDecs$e[17];
|
|
761
|
+
_initProto = _applyDecs$e[18];
|
|
754
762
|
var StoreContext = exports.StoreContext = /*#__PURE__*/(0, _react.createContext)(null);
|
|
@@ -97,9 +97,6 @@ var ControlBarView = exports.ControlBarView = (0, _mobxReact.observer)(function
|
|
|
97
97
|
var HIDDEN_TIMEOUT = 3000;
|
|
98
98
|
// 系统顶部的状态栏
|
|
99
99
|
var _getCurrentSharingWor = (0, _tools.getCurrentSharingWorkArea)({
|
|
100
|
-
currentShareId: currentShareId,
|
|
101
|
-
currentShareType: currentShareType,
|
|
102
|
-
allApplicationWindows: allApplicationWindows,
|
|
103
100
|
currentShareBounds: currentShareBounds
|
|
104
101
|
}),
|
|
105
102
|
browserWidth = _getCurrentSharingWor.width,
|
|
@@ -285,9 +282,6 @@ var ControlBarView = exports.ControlBarView = (0, _mobxReact.observer)(function
|
|
|
285
282
|
} else {
|
|
286
283
|
recordShareBounds.clear();
|
|
287
284
|
screenBounds = (0, _tools.getCurrentSharingWorkArea)({
|
|
288
|
-
currentShareId: currentShareId,
|
|
289
|
-
currentShareType: currentShareType,
|
|
290
|
-
allApplicationWindows: allApplicationWindows,
|
|
291
285
|
currentShareBounds: currentShareBounds
|
|
292
286
|
});
|
|
293
287
|
recordShareBounds.set(currentShareBounds, screenBounds);
|
|
@@ -360,6 +354,7 @@ var ControlBarView = exports.ControlBarView = (0, _mobxReact.observer)(function
|
|
|
360
354
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
361
355
|
className: "share-action-nav__meeting-control-group",
|
|
362
356
|
children: [hasSecurityPermission && /*#__PURE__*/(0, _jsxRuntime.jsx)(_popover.FcrPopover, {
|
|
357
|
+
showArrow: false,
|
|
363
358
|
mouseEnterDelay: 0,
|
|
364
359
|
overlayInnerStyle: {
|
|
365
360
|
width: '300px',
|
|
@@ -55,7 +55,7 @@ var SpeakerDetection = exports.SpeakerDetection = (0, _mobxReact.observer)(funct
|
|
|
55
55
|
styleType: "white"
|
|
56
56
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
|
|
57
57
|
trigger: "hover",
|
|
58
|
-
placement: "
|
|
58
|
+
placement: "rightTop",
|
|
59
59
|
mouseEnterDelay: 0.2,
|
|
60
60
|
content: t(disabled ? 'fmt_settings_popup_disable_while_microphone_detected' : isDetecting ? 'fmt_setting_tips_speaker_unwork' : 'fmt_setting_tips_speaker'),
|
|
61
61
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
|
|
@@ -1,4 +1,2 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
export declare const ChatElectronDialog: ({ children
|
|
3
|
-
chatAction: React.ReactNode;
|
|
4
|
-
}>) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const ChatElectronDialog: ({ children }: PropsWithChildren<{}>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -17,26 +17,21 @@ var _constant = require("../../../../utilities/constant");
|
|
|
17
17
|
var _tooltip = require("agora-ui-foundation/lib/components/tooltip");
|
|
18
18
|
var _iconButton = require("agora-ui-foundation/lib/components/icon-button");
|
|
19
19
|
var _type2 = require("agora-ui-foundation/lib/components/icon/type");
|
|
20
|
+
var _mobxReact = require("mobx-react");
|
|
20
21
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
|
-
var
|
|
22
|
-
var
|
|
23
|
-
chatAction = _ref.chatAction;
|
|
24
|
-
var _useContext = (0, _react.useContext)(_store.StoreContext),
|
|
25
|
-
closeChatFromDialog = _useContext.closeChatFromDialog,
|
|
26
|
-
moveChatFromDialogToAside = _useContext.moveChatFromDialogToAside,
|
|
27
|
-
chatRoomState = _useContext.chatRoomState,
|
|
28
|
-
waitingRoomState = _useContext.waitingRoomState;
|
|
22
|
+
var Container = (0, _mobxReact.observer)(function (props) {
|
|
23
|
+
var store = (0, _react.useContext)(_store.StoreContext);
|
|
29
24
|
var transI18n = (0, _i18n.useI18n)();
|
|
30
|
-
|
|
31
|
-
title: chatRoomState === _type.FcrChatRoomConnectionState.Connected ? transI18n('fmt_chat_label_chat') : transI18n('fmt_aside_status_connecting'),
|
|
25
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_dialogContainer["default"], {
|
|
26
|
+
title: store.chatRoomState === _type.FcrChatRoomConnectionState.Connected ? transI18n('fmt_chat_label_chat') : transI18n('fmt_aside_status_connecting'),
|
|
32
27
|
actions: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
33
|
-
children: [chatAction, /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
|
|
28
|
+
children: [props.chatAction, store.isSharingScreen ? null : /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
|
|
34
29
|
content: transI18n('fmt_uimanager_option_mergeview'),
|
|
35
30
|
mouseEnterDelay: 0,
|
|
36
31
|
trigger: "hover",
|
|
37
32
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_iconButton.FcrIconButton, {
|
|
38
33
|
icon: _type2.FcrIconType.FCR_WINDOWPAGE_BIGGER,
|
|
39
|
-
onClick: moveChatFromDialogToAside,
|
|
34
|
+
onClick: store.moveChatFromDialogToAside,
|
|
40
35
|
className: "frc-window-header__icon fcr-no-drag",
|
|
41
36
|
iconColors: {
|
|
42
37
|
iconPrimary: 'var(--fcr_ui_scene_icontext1)'
|
|
@@ -44,15 +39,27 @@ var ChatDialog = exports.ChatDialog = function ChatDialog(_ref) {
|
|
|
44
39
|
})
|
|
45
40
|
})]
|
|
46
41
|
}),
|
|
47
|
-
width: 800
|
|
48
|
-
|
|
42
|
+
width: (0, _env.isElectron)() ? 800 : 520 // APAAS-10264 聊天在 web 下宽度改成520
|
|
43
|
+
,
|
|
44
|
+
height: store.waitingRoomState ? 630 : 600,
|
|
49
45
|
dialogKey: _constant.FcrUIDialogKey.CHAT,
|
|
50
|
-
onClose: closeChatFromDialog,
|
|
51
|
-
children: children
|
|
46
|
+
onClose: store.closeChatFromDialog,
|
|
47
|
+
children: props.children
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
var ChatDialog = exports.ChatDialog = function ChatDialog(_ref) {
|
|
51
|
+
var children = _ref.children,
|
|
52
|
+
chatAction = _ref.chatAction;
|
|
53
|
+
var store = (0, _react.useContext)(_store.StoreContext);
|
|
54
|
+
var container = /*#__PURE__*/(0, _jsxRuntime.jsx)(_store.StoreContext.Provider, {
|
|
55
|
+
value: store,
|
|
56
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Container, {
|
|
57
|
+
chatAction: chatAction,
|
|
58
|
+
children: children
|
|
59
|
+
})
|
|
52
60
|
});
|
|
53
61
|
if ((0, _env.isElectron)()) {
|
|
54
62
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_electron.ChatElectronDialog, {
|
|
55
|
-
chatAction: chatAction,
|
|
56
63
|
children: container
|
|
57
64
|
});
|
|
58
65
|
}
|