fcr-ui-scene 3.8.2 → 3.9.0-alpha
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 +2 -2
- package/lib/creator/index.js +25 -10
- package/lib/creator/provider-initializer.browser.js +28 -3
- package/lib/creator/provider-initializer.electron.js +28 -5
- package/lib/electron/app.js +26 -9
- package/lib/electron/asar-validation.js +5 -1
- package/lib/electron/env.d.ts +1 -0
- package/lib/electron/env.js +2 -2
- package/lib/electron/injections.d.ts +2 -1
- package/lib/electron/injections.js +23 -17
- package/lib/electron/ipc/type.d.ts +2 -1
- package/lib/electron/ipc/type.js +1 -0
- package/lib/electron/ipc-protocol.d.ts +2 -0
- package/lib/electron/main.js +6 -6
- package/lib/electron/plugins/main-window-display.d.ts +8 -0
- package/lib/electron/plugins/main-window-display.js +23 -0
- package/lib/electron/preload.js +2 -1
- package/lib/electron/process-manager/index.d.ts +1 -0
- package/lib/electron/process-manager/index.js +37 -0
- package/lib/electron/process-manager/state-manager.d.ts +10 -0
- package/lib/electron/process-manager/state-manager.js +46 -4
- package/lib/electron/sdk-helper.js +4 -0
- package/lib/electron/window-proxy/browser-window-proxy-factory.d.ts +7 -0
- package/lib/electron/window-proxy/browser-window-proxy-factory.js +46 -0
- package/lib/electron/window-proxy/{browser-window-proxy.d.ts → implementations/browser-window-proxy.d.ts} +3 -24
- package/lib/electron/window-proxy/implementations/browser-window-proxy.js +335 -0
- package/lib/electron/window-proxy/implementations/electron-event-broadcaster.d.ts +9 -0
- package/lib/electron/window-proxy/implementations/electron-event-broadcaster.js +32 -0
- package/lib/electron/window-proxy/implementations/electron-ipc-handler.d.ts +6 -0
- package/lib/electron/window-proxy/implementations/electron-ipc-handler.js +27 -0
- package/lib/electron/window-proxy/implementations/electron-logger.d.ts +7 -0
- package/lib/electron/window-proxy/implementations/electron-logger.js +34 -0
- package/lib/electron/window-proxy/{main-process-handler.d.ts → implementations/main-process-handler.d.ts} +16 -9
- package/lib/electron/window-proxy/{main-process-handler.js → implementations/main-process-handler.js} +111 -111
- package/lib/electron/window-proxy/interfaces.d.ts +52 -0
- package/lib/electron/window-proxy/interfaces.js +6 -0
- package/lib/fragments/annotation/cursor.css +77 -0
- package/lib/fragments/annotation/index.d.ts +2 -4
- package/lib/fragments/annotation/index.js +4 -82
- package/lib/fragments/annotation/libs.d.ts +15 -11
- package/lib/fragments/annotation/libs.js +75 -26
- package/lib/fragments/annotation/store.d.ts +23 -43
- package/lib/fragments/annotation/store.js +319 -709
- package/lib/fragments/annotation/style.css +5 -6
- package/lib/fragments/annotation/view.d.ts +1 -0
- package/lib/fragments/annotation/view.js +8 -48
- package/lib/fragments/base.js +1 -1
- package/lib/fragments/whiteboard/libs.d.ts +72 -0
- package/lib/fragments/whiteboard/libs.js +155 -0
- package/lib/fragments/whiteboard/store.d.ts +1 -4
- package/lib/fragments/whiteboard/store.js +64 -128
- package/lib/modules/action-bar/components/apps/index.js +2 -2
- package/lib/modules/action-bar/components/collapse/index.js +8 -3
- package/lib/modules/action-bar/components/{confirm-leave-meeting → confirm-end-meeting}/index.d.ts +1 -1
- package/lib/modules/action-bar/components/{confirm-leave-meeting → confirm-end-meeting}/index.js +14 -33
- package/lib/modules/action-bar/components/leave/index.js +1 -1
- package/lib/modules/action-bar/components/notification-bar/components/interpreter/index.css +6 -0
- package/lib/modules/action-bar/components/notification-bar/components/interpreter/index.d.ts +3 -7
- package/lib/modules/action-bar/components/notification-bar/components/interpreter/index.js +66 -42
- package/lib/modules/action-bar/components/notification-bar/components/virtual-image/index.d.ts +2 -2
- package/lib/modules/action-bar/components/notification-bar/components/virtual-image/index.js +11 -7
- package/lib/modules/action-bar/components/notification-bar/index.js +12 -70
- package/lib/modules/action-bar/components/screen-share/submenu.js +39 -2
- package/lib/modules/action-bar/components/trigger-subscribe-language/guide-tooltip/index.css +1 -0
- package/lib/modules/action-bar/components/trigger-subscribe-language/guide-tooltip/index.js +10 -7
- package/lib/modules/action-bar/index.css +1 -1
- package/lib/modules/action-bar/main-scene/index.d.ts +1 -1
- package/lib/modules/action-bar/main-scene/index.js +4 -4
- package/lib/modules/action-bar/main-scene/store.base.d.ts +16 -9
- package/lib/modules/action-bar/main-scene/store.base.js +165 -94
- package/lib/modules/action-bar/type.d.ts +1 -15
- package/lib/modules/action-bar/type.js +14 -0
- package/lib/modules/action-bar/waiting-scene/view.js +1 -1
- package/lib/modules/annotation/board-cursor.css +77 -0
- package/lib/modules/annotation/components/color-picker/components/color.d.ts +5 -0
- package/lib/modules/annotation/components/color-picker/components/color.js +37 -0
- package/lib/modules/annotation/components/color-picker/components/panel.d.ts +1 -0
- package/lib/modules/annotation/components/color-picker/components/panel.js +108 -0
- package/lib/modules/annotation/components/color-picker/components/picker.d.ts +1 -0
- package/lib/modules/annotation/components/color-picker/components/picker.js +75 -0
- package/lib/modules/annotation/components/color-picker/index.d.ts +2 -0
- package/lib/modules/annotation/components/color-picker/index.js +45 -0
- package/lib/modules/annotation/components/eraser-picker.d.ts +4 -0
- package/lib/modules/annotation/components/eraser-picker.js +142 -0
- package/lib/modules/annotation/components/expansion/index.d.ts +1 -0
- package/lib/modules/annotation/components/expansion/index.js +100 -0
- package/lib/modules/annotation/components/extra-tool-picker.d.ts +1 -0
- package/lib/modules/annotation/components/extra-tool-picker.js +62 -0
- package/lib/modules/annotation/components/history.d.ts +2 -0
- package/lib/modules/annotation/components/history.js +76 -0
- package/lib/modules/annotation/components/icons/fold-icon.d.ts +2 -0
- package/lib/modules/annotation/components/icons/fold-icon.js +41 -0
- package/lib/modules/annotation/components/icons/move-icon.d.ts +1 -0
- package/lib/modules/annotation/components/icons/move-icon.js +66 -0
- package/lib/modules/annotation/components/item/index.d.ts +1 -0
- package/lib/modules/annotation/components/item/index.js +43 -0
- package/lib/modules/annotation/components/move-handle.d.ts +5 -0
- package/lib/modules/annotation/components/move-handle.js +134 -0
- package/lib/modules/annotation/components/pen-picker.d.ts +4 -0
- package/lib/modules/annotation/components/pen-picker.js +150 -0
- package/lib/modules/annotation/components/screen-capture-picker.d.ts +4 -0
- package/lib/modules/annotation/components/screen-capture-picker.js +84 -0
- package/lib/modules/annotation/components/shape-picker.d.ts +4 -0
- package/lib/modules/annotation/components/shape-picker.js +201 -0
- package/lib/modules/annotation/hooks/index.d.ts +14 -0
- package/lib/modules/annotation/hooks/index.js +164 -0
- package/lib/modules/annotation/index.d.ts +31 -0
- package/lib/modules/annotation/index.js +152 -0
- package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/color-tool/color-panel/index.js +2 -2
- package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/color-tool/index.js +22 -9
- package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/graphic-tool/graphic-panel/index.js +2 -3
- package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/graphic-tool/index.js +22 -9
- package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/pen-tool/index.js +22 -9
- package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/pen-tool/pen-panel/index.js +1 -1
- package/lib/modules/annotation/standalone-toolbar/components/permission-tool/index.d.ts +1 -0
- package/lib/modules/annotation/standalone-toolbar/components/permission-tool/index.js +52 -0
- package/lib/modules/annotation/standalone-toolbar/store.d.ts +104 -0
- package/lib/modules/annotation/standalone-toolbar/store.js +618 -0
- package/{lib-es/fragments/annotation/toolbar → lib/modules/annotation/standalone-toolbar}/style.css +4 -1
- package/lib/modules/annotation/standalone-toolbar/view.js +193 -0
- package/lib/modules/annotation/store.base.d.ts +27 -0
- package/lib/modules/annotation/store.base.js +185 -0
- package/lib/modules/annotation/store.browser.d.ts +3 -0
- package/lib/modules/annotation/store.browser.js +25 -0
- package/lib/modules/annotation/store.electron.d.ts +8 -0
- package/lib/modules/annotation/store.electron.js +75 -0
- package/lib/modules/annotation/style.css +36 -0
- package/lib/modules/annotation/toolbar-store.d.ts +86 -0
- package/lib/modules/annotation/toolbar-store.js +473 -0
- package/lib/modules/annotation/type.d.ts +7 -0
- package/lib/modules/annotation/type.js +6 -0
- package/lib/modules/annotation/view.d.ts +5 -0
- package/lib/modules/annotation/view.js +107 -0
- package/lib/modules/chat/chat-room-store.d.ts +8 -1
- package/lib/modules/chat/chat-room-store.js +152 -72
- package/lib/modules/chat/components/message-list/index.js +123 -93
- package/lib/modules/chat/components/message-list/message-item/index.js +89 -67
- package/lib/modules/chat/components/message-list/scroll-bottom-button/index.js +6 -8
- package/lib/modules/chat/index.css +1 -9
- package/lib/modules/chat/store.js +7 -5
- package/lib/modules/chat/view.js +4 -9
- package/lib/modules/components/annotation-menu/index.d.ts +5 -3
- package/lib/modules/components/annotation-menu/index.js +29 -34
- package/lib/modules/components/apps/index.css +3 -2
- package/lib/modules/components/caption-menu/translation-setting-options.js +2 -2
- package/lib/modules/components/confirm-wrapper/index.css +48 -0
- package/lib/modules/components/confirm-wrapper/index.d.ts +25 -0
- package/lib/modules/components/confirm-wrapper/index.js +87 -0
- package/lib/modules/components/control-bar/index.d.ts +40 -8
- package/lib/modules/components/control-bar/index.js +350 -200
- package/lib/modules/components/device-control/components/audio-menu/index.js +3 -2
- package/lib/modules/components/device-control/components/video-menu/index.js +5 -3
- package/lib/modules/components/device-control/store.base.d.ts +5 -0
- package/lib/modules/components/device-control/store.base.js +17 -1
- package/lib/modules/components/leave-meeting/index.css +21 -0
- package/lib/modules/components/leave-meeting/index.d.ts +0 -2
- package/lib/modules/components/leave-meeting/index.js +63 -103
- package/lib/modules/components/leave-meeting/portal.d.ts +0 -1
- package/lib/modules/components/leave-meeting/portal.js +4 -6
- package/lib/modules/components/leave-meeting/store.base.d.ts +3 -4
- package/lib/modules/components/leave-meeting/store.base.js +49 -55
- package/lib/modules/components/leave-meeting/style.css +0 -1
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.js +2 -1
- package/lib/modules/components/member-window/components/member-actions/provider.js +1 -1
- package/lib/modules/components/member-window/index.d.ts +1 -1
- package/lib/modules/components/member-window/index.js +3 -3
- package/lib/modules/components/security-menu/store.js +7 -9
- package/lib/modules/components/tab-frame/index.css +2 -2
- package/lib/modules/connection-gateway/components/phone/index.js +1 -1
- package/lib/modules/connection-gateway/store.js +6 -8
- package/lib/modules/control-bar/components/annotation-button/index.d.ts +11 -0
- package/lib/modules/control-bar/components/annotation-button/index.js +51 -0
- package/lib/modules/control-bar/components/apps-popover/index.css +3 -0
- package/lib/modules/control-bar/components/apps-popover/index.d.ts +1 -0
- package/lib/modules/control-bar/components/apps-popover/index.js +2 -0
- package/lib/modules/control-bar/components/carmera/index.js +1 -1
- package/lib/modules/control-bar/components/meeting-details/index.js +14 -20
- package/lib/modules/control-bar/components/microphone/index.js +2 -2
- package/lib/modules/control-bar/hooks.js +1 -1
- package/lib/modules/control-bar/index.css +11 -0
- package/lib/modules/control-bar/store.d.ts +20 -5
- package/lib/modules/control-bar/store.js +190 -59
- package/lib/modules/control-bar/view.js +72 -39
- package/lib/modules/device-pretest/audio-preview/microphone-detection.js +3 -9
- package/lib/modules/device-pretest/audio-preview/speaker-detection.js +1 -1
- package/lib/modules/device-pretest/index.js +1 -1
- package/lib/modules/device-pretest/settings/beauty.js +1 -1
- package/lib/modules/device-pretest/settings/video-effect.d.ts +2 -0
- package/lib/modules/device-pretest/settings/video-effect.js +27 -12
- package/lib/modules/device-pretest/settings/video-settings-basic.js +1 -1
- package/lib/modules/device-pretest/settings/virtual-background-setting.js +1 -1
- package/lib/modules/dialog/components/confirm/index.css +0 -18
- package/lib/modules/dialog/components/confirm/index.d.ts +1 -0
- package/lib/modules/dialog/components/confirm/index.js +2 -2
- package/lib/modules/dialog/components/dialog-container/index.css +3 -4
- package/lib/modules/dialog/components/dialog-container/index.d.ts +6 -21
- package/lib/modules/dialog/components/dialog-container/index.js +80 -132
- package/lib/modules/dialog/components/normal-window/index.d.ts +8 -20
- package/lib/modules/dialog/components/normal-window/index.js +14 -34
- package/lib/modules/dialog/dialogConfig/browser.d.ts +12 -0
- package/lib/modules/dialog/dialogConfig/browser.js +11 -0
- package/lib/modules/dialog/dialogConfig/electron.d.ts +4 -0
- package/lib/modules/dialog/dialogConfig/electron.js +15 -0
- package/lib/modules/dialog/dialogs/annotation-mask/index.d.ts +8 -0
- package/lib/modules/dialog/dialogs/annotation-mask/index.js +41 -0
- package/lib/modules/dialog/dialogs/annotation-tool/index.d.ts +5 -4
- package/lib/modules/dialog/dialogs/annotation-tool/index.js +19 -35
- package/lib/modules/dialog/dialogs/caption/index.d.ts +4 -16
- package/lib/modules/dialog/dialogs/caption/index.js +25 -19
- package/lib/modules/dialog/dialogs/chat/index.d.ts +4 -18
- package/lib/modules/dialog/dialogs/chat/index.js +33 -54
- package/lib/modules/dialog/dialogs/confirm/index.css +2 -13
- package/lib/modules/dialog/dialogs/confirm/index.d.ts +2 -17
- package/lib/modules/dialog/dialogs/confirm/index.js +5 -7
- package/lib/modules/dialog/dialogs/confirm-leave-meeting/index.d.ts +5 -16
- package/lib/modules/dialog/dialogs/confirm-leave-meeting/index.js +4 -24
- package/lib/modules/dialog/dialogs/connection-gateway/index.d.ts +4 -20
- package/lib/modules/dialog/dialogs/connection-gateway/index.js +6 -29
- package/lib/modules/dialog/dialogs/control-bar/index.d.ts +2 -16
- package/lib/modules/dialog/dialogs/control-bar/index.js +4 -6
- package/lib/modules/dialog/dialogs/control-bar-leave-meeting/index.d.ts +4 -14
- package/lib/modules/dialog/dialogs/control-bar-leave-meeting/index.js +3 -21
- package/lib/modules/dialog/dialogs/device-setting/index.d.ts +4 -13
- package/lib/modules/dialog/dialogs/device-setting/index.js +4 -20
- package/lib/modules/dialog/dialogs/end-meeting-notice/index.d.ts +8 -0
- package/lib/modules/dialog/dialogs/{end-meeting → end-meeting-notice}/index.js +4 -14
- package/lib/modules/dialog/dialogs/interpreter/index.d.ts +4 -14
- package/lib/modules/dialog/dialogs/interpreter/index.js +33 -24
- package/lib/modules/dialog/dialogs/invite/index.d.ts +4 -18
- package/lib/modules/dialog/dialogs/invite/index.js +25 -24
- package/lib/modules/dialog/dialogs/live-streaming/index.d.ts +4 -8
- package/lib/modules/dialog/dialogs/live-streaming/index.js +7 -11
- package/lib/modules/dialog/dialogs/mute-all/index.d.ts +4 -15
- package/lib/modules/dialog/dialogs/mute-all/index.js +4 -20
- package/lib/modules/dialog/dialogs/participant/index.d.ts +4 -18
- package/lib/modules/dialog/dialogs/participant/index.js +31 -31
- package/lib/modules/dialog/dialogs/rename/index.d.ts +2 -14
- package/lib/modules/dialog/dialogs/rename/index.js +2 -13
- package/lib/modules/dialog/dialogs/sample-dialog/index.d.ts +2 -13
- package/lib/modules/dialog/dialogs/sample-dialog/index.js +2 -2
- package/lib/modules/dialog/dialogs/share-screen-selection/index.d.ts +2 -14
- package/lib/modules/dialog/dialogs/share-screen-selection/index.js +3 -12
- package/lib/modules/dialog/dialogs/sub-window/index.d.ts +2 -17
- package/lib/modules/dialog/dialogs/sub-window/index.js +4 -3
- package/lib/modules/dialog/dialogs/subtitles-history/index.d.ts +4 -19
- package/lib/modules/dialog/dialogs/subtitles-history/index.js +32 -25
- package/lib/modules/dialog/dialogs/system-preference/index.css +3 -2
- package/lib/modules/dialog/dialogs/system-preference/index.d.ts +5 -28
- package/lib/modules/dialog/dialogs/system-preference/index.js +13 -13
- package/lib/modules/dialog/dialogs/toast/index.d.ts +2 -16
- package/lib/modules/dialog/dialogs/toast/index.js +5 -5
- package/lib/modules/dialog/dialogs/video-window/index.d.ts +2 -18
- package/lib/modules/dialog/dialogs/video-window/index.js +4 -4
- package/lib/modules/dialog/dialogs/whiteboard/index.d.ts +2 -18
- package/lib/modules/dialog/dialogs/whiteboard/index.js +2 -2
- package/lib/modules/dialog/dialogs/widget/index.d.ts +4 -14
- package/lib/modules/dialog/dialogs/widget/index.js +22 -26
- package/lib/modules/dialog/index.css +4 -11
- package/lib/modules/dialog/level-config.d.ts +1 -0
- package/lib/modules/dialog/level-config.js +1 -0
- package/lib/modules/dialog/store.base.js +0 -3
- package/lib/modules/dialog/store.electron.d.ts +1 -0
- package/lib/modules/dialog/store.electron.js +16 -9
- package/lib/modules/dialog/type.d.ts +3 -1
- package/lib/modules/dialog/view.js +25 -1
- package/lib/modules/dialog/web-dialog-wrapper.d.ts +3 -0
- package/lib/modules/dialog/web-dialog-wrapper.js +154 -0
- package/lib/modules/event-toast/index.css +5 -2
- package/lib/modules/event-toast/store.browser.js +1 -1
- package/lib/modules/event-toast/store.electron.js +1 -1
- package/lib/modules/interpreter/index.css +1 -2
- package/lib/modules/interpreter/store.js +22 -19
- package/lib/modules/interpreter/utils.js +1 -1
- package/lib/modules/invite/components/pstn-invite.js +5 -5
- package/lib/modules/invite/store.d.ts +2 -2
- package/lib/modules/invite/store.js +1 -1
- package/lib/modules/layout/components/Aside.js +1 -1
- package/lib/modules/layout/components/Carousel.js +1 -1
- package/lib/modules/layout/components/CommonVideoRenderer.js +14 -4
- package/lib/modules/layout/components/Gallery.js +1 -1
- package/lib/modules/layout/index.css +0 -31
- package/lib/modules/layout/store.base.d.ts +9 -15
- package/lib/modules/layout/store.base.js +69 -198
- package/lib/modules/layout/store.browser.d.ts +2 -1
- package/lib/modules/layout/store.browser.js +62 -2
- package/lib/modules/layout/store.electron.d.ts +1 -3
- package/lib/modules/layout/store.electron.js +10 -28
- package/lib/modules/layout/view.js +1 -3
- package/lib/modules/live-streaming/index.dev.js +1 -1
- package/lib/modules/live-streaming/store.js +3 -4
- package/lib/modules/participant/components/confirm-input/index.css +15 -0
- package/lib/modules/participant/components/confirm-input/index.js +10 -13
- package/lib/modules/participant/components/mute-all/index.css +34 -0
- package/lib/modules/participant/components/mute-all/index.d.ts +1 -0
- package/lib/modules/participant/components/mute-all/index.js +21 -15
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.js +16 -2
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/util.d.ts +2 -1
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/util.js +3 -1
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/microphone-indicator/index.js +3 -2
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/index.js +1 -1
- package/lib/modules/participant/index.css +0 -16
- package/lib/modules/participant/store.base.d.ts +18 -5
- package/lib/modules/participant/store.base.js +219 -127
- package/lib/modules/participant/store.browser.d.ts +2 -1
- package/lib/modules/participant/store.browser.js +2 -2
- package/lib/modules/participant/store.electron.d.ts +2 -1
- package/lib/modules/participant/store.electron.js +2 -2
- package/lib/modules/pc-audio-connect/waiting-scene/index.js +6 -1
- package/lib/modules/phone-audio-connect/store.js +1 -1
- package/lib/modules/phone-audio-connect/view.js +1 -1
- package/lib/modules/secondary-window/index.d.ts +14 -7
- package/lib/modules/secondary-window/index.js +51 -25
- package/lib/modules/secondary-window/store.d.ts +4 -2
- package/lib/modules/secondary-window/store.js +39 -8
- package/lib/modules/secondary-window/type.d.ts +16 -25
- package/lib/modules/secondary-window/type.js +1 -0
- package/lib/modules/secondary-window/view.js +59 -58
- package/lib/modules/setting/audio-settings/audio-settings.js +2 -2
- package/lib/modules/setting/audio-whiteList/audio-device-adaptation.js +2 -2
- package/lib/modules/setting/audio-whiteList/audio-whiteList-manager.js +1 -1
- package/lib/modules/setting/caption_and_transcribing/index.js +1 -1
- package/lib/modules/setting/general-settings/general-settings.js +4 -4
- package/lib/modules/setting/index.css +2 -3
- package/lib/modules/setting/index.d.ts +1 -2
- package/lib/modules/setting/index.js +3 -10
- package/lib/modules/setting/minutes-settings/minutes-settings.js +1 -1
- package/lib/modules/setting/state/index.js +1 -1
- package/lib/modules/setting/storage-settings/storage-settings.js +1 -1
- package/lib/modules/setting/store.base.d.ts +11 -9
- package/lib/modules/setting/store.base.js +103 -88
- package/lib/modules/setting/store.electron.d.ts +2 -1
- package/lib/modules/setting/store.electron.js +19 -1
- package/lib/modules/setting/translate-settings/translate-settings.js +1 -1
- package/lib/modules/setting/type.d.ts +1 -9
- package/lib/modules/setting/video-settings/video-settings-basic.js +1 -1
- package/lib/modules/setting/video-settings/video-settings.js +11 -7
- package/lib/modules/setting/view.js +1 -1
- package/lib/modules/share-screen/components/control-bar/index.js +0 -86
- package/lib/modules/share-screen/components/selection/index.js +3 -1
- package/lib/modules/share-screen/store.base.d.ts +1 -1
- package/lib/modules/share-screen/store.base.js +10 -14
- package/lib/modules/share-screen/store.electron.d.ts +4 -0
- package/lib/modules/share-screen/store.electron.js +108 -34
- package/lib/modules/state-bar/layout-config.js +1 -1
- package/lib/modules/state-bar/live-streaming-state.js +6 -7
- package/lib/modules/state-bar/main-scene/store.browser.js +1 -1
- package/lib/modules/state-bar/main-scene/store.electron.js +1 -1
- package/lib/modules/state-bar/meeting-details.js +14 -21
- package/lib/modules/state-bar/meeting-network-state.css +5 -1
- package/lib/modules/state-bar/meeting-network-state.js +7 -1
- package/lib/modules/state-bar/meeting-time.js +1 -1
- package/lib/modules/state-bar/network-quality.js +1 -1
- package/lib/modules/state-bar/recording.js +1 -1
- package/lib/modules/state-bar/store.base.d.ts +3 -3
- package/lib/modules/state-bar/store.base.js +15 -24
- package/lib/modules/state-bar/view.js +6 -7
- package/lib/modules/subtitles-history/components/list-item.js +6 -1
- package/lib/modules/subtitles-history/index.css +2 -5
- package/lib/modules/subtitles-history/store.base.js +24 -12
- package/lib/modules/subtitles-history/store.electron.js +8 -2
- package/lib/modules/subtitles-history/view.js +7 -5
- package/lib/modules/toast-manager/index.d.ts +8 -0
- package/lib/modules/toast-manager/index.js +58 -0
- package/lib/modules/toast-manager/store.d.ts +28 -0
- package/lib/modules/toast-manager/store.js +391 -0
- package/lib/modules/toast-manager/toast-params.d.ts +7 -0
- package/lib/modules/toast-manager/toast-params.js +89 -0
- package/lib/modules/toast-manager/type.d.ts +112 -0
- package/lib/modules/toast-manager/type.js +337 -0
- package/lib/modules/video-window/store.d.ts +2 -2
- package/lib/modules/video-window/store.js +28 -50
- package/lib/modules/whiteboard/components/control-bar/store.d.ts +0 -1
- package/lib/modules/whiteboard/components/control-bar/store.js +0 -6
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/store.js +25 -14
- package/lib/modules/whiteboard/store.js +10 -9
- package/lib/modules/whiteboard/view.js +0 -1
- package/lib/modules/widget/store.electron.d.ts +0 -4
- package/lib/modules/widget/store.electron.js +3 -38
- package/lib/modules/widget/view.js +1 -1
- package/lib/modules/widget/web-widget.d.ts +1 -1
- package/lib/object-manager.d.ts +2 -0
- package/lib/object-manager.js +2 -0
- package/lib/plugins/multi-lang-plugin.js +1 -1
- package/lib/providers/ability-provider.d.ts +33 -1
- package/lib/providers/ability-provider.js +29 -1
- package/lib/providers/annotation/provider.base.d.ts +39 -0
- package/lib/providers/annotation/provider.base.js +270 -0
- package/lib/providers/annotation/provider.browser.d.ts +3 -0
- package/lib/providers/annotation/provider.browser.js +25 -0
- package/lib/providers/annotation/provider.electron.d.ts +34 -0
- package/lib/providers/annotation/provider.electron.js +231 -0
- package/lib/providers/annotation/standalone-toolbar-control/index.d.ts +26 -0
- package/lib/{fragments/annotation/toolbar/store.js → providers/annotation/standalone-toolbar-control/index.js} +103 -175
- package/lib/providers/annotation/toolbar-control/index.d.ts +31 -0
- package/lib/providers/annotation/toolbar-control/index.js +205 -0
- package/lib/providers/annotation/type.d.ts +64 -21
- package/lib/providers/app-list-provider.d.ts +4 -1
- package/lib/providers/app-list-provider.js +13 -7
- package/lib/providers/board-share/bar-control/base.d.ts +6 -8
- package/lib/providers/board-share/bar-control/base.js +7 -36
- package/lib/providers/board-share/bar-control/browser.d.ts +4 -1
- package/lib/providers/board-share/bar-control/browser.js +76 -3
- package/lib/providers/board-share/bar-control/electron.d.ts +4 -6
- package/lib/providers/board-share/bar-control/electron.js +36 -12
- package/lib/providers/board-share/provider.base.d.ts +11 -8
- package/lib/providers/board-share/provider.base.js +72 -13
- package/lib/providers/board-share/type.d.ts +11 -12
- package/lib/providers/device-privilege-provider.d.ts +5 -4
- package/lib/providers/device-privilege-provider.js +85 -62
- package/lib/providers/device-provider.d.ts +32 -1
- package/lib/providers/device-provider.js +412 -161
- package/lib/providers/device-stream-provider.d.ts +3 -3
- package/lib/providers/device-stream-provider.js +37 -111
- package/lib/providers/dialog/provider.electron.js +6 -1
- package/lib/providers/interpreter-provider.js +5 -5
- package/lib/providers/message/provider.d.ts +3 -1
- package/lib/providers/message/provider.js +12 -0
- package/lib/providers/message/type.d.ts +15 -0
- package/lib/providers/mouse-detect/provider.js +2 -2
- package/lib/providers/mouse-detect/struct.d.ts +2 -1
- package/lib/providers/mouse-detect/struct.js +1 -0
- package/lib/providers/multi-display-provider.d.ts +1 -0
- package/lib/providers/multi-display-provider.js +13 -0
- package/lib/providers/phone-audio-provider.d.ts +15 -0
- package/lib/providers/phone-audio-provider.js +17 -10
- package/lib/providers/privilege-provider.d.ts +15 -15
- package/lib/providers/room-provider/room-provider.d.ts +23 -11
- package/lib/providers/room-provider/room-provider.js +93 -199
- package/lib/providers/room-provider/waiting-room-control-manager.d.ts +2 -2
- package/lib/providers/room-provider/waiting-room-control-manager.js +2 -2
- package/lib/providers/screen-share/provider.base.d.ts +1 -0
- package/lib/providers/screen-share/provider.base.js +6 -1
- package/lib/providers/screen-share/provider.browser.js +13 -9
- package/lib/providers/screen-share/provider.electron.d.ts +1 -1
- package/lib/providers/screen-share/provider.electron.js +54 -44
- package/lib/providers/screen-share/strategy/electron.js +18 -3
- package/lib/providers/screen-share/stream-state-sync.d.ts +1 -1
- package/lib/providers/screen-share/stream-state-sync.js +4 -4
- package/lib/providers/screen-share/type.d.ts +9 -1
- package/lib/providers/session-provider.d.ts +1 -1
- package/lib/providers/stt-provider/stt-provider.d.ts +1 -1
- package/lib/providers/stt-provider/stt-provider.js +40 -77
- package/lib/providers/stt-provider/type.d.ts +5 -3
- package/lib/providers/stt-provider/type.js +4 -2
- package/lib/providers/user-audio-volume-provider.d.ts +47 -0
- package/lib/providers/user-audio-volume-provider.js +319 -0
- package/lib/providers/window/provider.d.ts +1 -1
- package/lib/providers/window/provider.js +23 -12
- package/lib/providers/window/renderer-window.d.ts +8 -2
- package/lib/providers/window/renderer-window.js +118 -33
- package/lib/providers/window/type.d.ts +1 -3
- package/lib/runtime.d.ts +12 -13
- package/lib/scenes/main-scene.js +98 -69
- package/lib/scenes/waiting-scene.js +4 -4
- package/lib/shared-data/member-data.d.ts +0 -9
- package/lib/shared-data/member-data.js +35 -61
- package/lib/shared-data/pin-data.d.ts +3 -2
- package/lib/shared-data/pin-data.js +8 -11
- package/lib/shared-data/setting.js +1 -1
- package/lib/shared-data/user-audio-volume.d.ts +19 -0
- package/lib/shared-data/user-audio-volume.js +104 -0
- package/lib/shared-data/video-window.js +49 -60
- package/lib/translations/enUS.d.ts +10 -0
- package/lib/translations/enUS.js +13 -3
- package/lib/translations/zhCN.d.ts +10 -0
- package/lib/translations/zhCN.js +12 -2
- package/lib/type.d.ts +27 -19
- package/lib/type.js +20 -2
- package/lib/ui-manager.js +1 -1
- package/lib/ui-scene-switch.d.ts +1 -0
- package/lib/ui-scene-switch.js +197 -87
- package/lib/utilities/browser-api.d.ts +0 -1
- package/lib/utilities/browser-api.js +0 -42
- package/lib/utilities/constant.d.ts +4 -4
- package/lib/utilities/constant.js +4 -5
- package/lib/utilities/default-config.d.ts +2 -8
- package/lib/utilities/default-config.js +8 -48
- package/lib/utilities/dialog-utils.js +1 -2
- package/lib/utilities/focus-helper.js +2 -2
- package/lib/utilities/logger.d.ts +1 -2
- package/lib/utilities/logger.js +12 -40
- package/lib/utilities/package-info.d.ts +1 -2
- package/lib/utilities/package-info.js +5 -6
- package/lib/utilities/renderer.d.ts +1 -0
- package/lib/utilities/renderer.js +7 -1
- package/lib/utilities/shared-storage.d.ts +2 -3
- package/lib/utilities/shared-storage.js +15 -11
- package/lib/utilities/tools.d.ts +1 -44
- package/lib/utilities/tools.js +28 -193
- package/lib/utilities/validate-params.js +3 -5
- package/lib-es/base.js +2 -2
- package/lib-es/creator/index.js +28 -12
- package/lib-es/creator/provider-initializer.browser.js +28 -3
- package/lib-es/creator/provider-initializer.electron.js +28 -5
- package/lib-es/electron/app.js +24 -7
- package/lib-es/electron/asar-validation.js +5 -1
- package/lib-es/electron/env.js +1 -1
- package/lib-es/electron/injections.js +22 -17
- package/lib-es/electron/ipc/type.js +1 -0
- package/lib-es/electron/main.js +3 -2
- package/lib-es/electron/plugins/main-window-display.js +16 -0
- package/lib-es/electron/preload.js +3 -2
- package/lib-es/electron/process-manager/index.js +37 -0
- package/lib-es/electron/process-manager/state-manager.js +46 -4
- package/lib-es/electron/sdk-helper.js +4 -0
- package/lib-es/electron/window-proxy/browser-window-proxy-factory.js +38 -0
- package/lib-es/electron/window-proxy/implementations/browser-window-proxy.js +328 -0
- package/lib-es/electron/window-proxy/implementations/electron-event-broadcaster.js +24 -0
- package/lib-es/electron/window-proxy/implementations/electron-ipc-handler.js +19 -0
- package/lib-es/electron/window-proxy/implementations/electron-logger.js +26 -0
- package/lib-es/electron/window-proxy/{main-process-handler.js → implementations/main-process-handler.js} +110 -113
- package/lib-es/electron/window-proxy/interfaces.js +1 -0
- package/lib-es/fragments/annotation/cursor.css +77 -0
- package/lib-es/fragments/annotation/index.js +5 -83
- package/lib-es/fragments/annotation/libs.js +63 -14
- package/lib-es/fragments/annotation/store.js +321 -711
- package/lib-es/fragments/annotation/style.css +5 -6
- package/lib-es/fragments/annotation/view.js +9 -48
- package/lib-es/fragments/base.js +1 -1
- package/lib-es/fragments/whiteboard/libs.js +147 -0
- package/lib-es/fragments/whiteboard/store.js +65 -129
- package/lib-es/modules/action-bar/components/apps/index.js +2 -2
- package/lib-es/modules/action-bar/components/collapse/index.js +8 -3
- package/lib-es/modules/action-bar/components/{confirm-leave-meeting → confirm-end-meeting}/index.js +14 -33
- package/lib-es/modules/action-bar/components/leave/index.js +1 -1
- package/lib-es/modules/action-bar/components/notification-bar/components/interpreter/index.css +6 -0
- package/lib-es/modules/action-bar/components/notification-bar/components/interpreter/index.js +66 -42
- package/lib-es/modules/action-bar/components/notification-bar/components/virtual-image/index.js +11 -7
- package/lib-es/modules/action-bar/components/notification-bar/index.js +13 -71
- package/lib-es/modules/action-bar/components/screen-share/submenu.js +39 -2
- package/lib-es/modules/action-bar/components/trigger-subscribe-language/guide-tooltip/index.css +1 -0
- package/lib-es/modules/action-bar/components/trigger-subscribe-language/guide-tooltip/index.js +11 -8
- package/lib-es/modules/action-bar/index.css +1 -1
- package/lib-es/modules/action-bar/main-scene/index.js +4 -4
- package/lib-es/modules/action-bar/main-scene/store.base.js +165 -94
- package/lib-es/modules/action-bar/type.js +15 -0
- package/lib-es/modules/action-bar/waiting-scene/view.js +1 -1
- package/lib-es/modules/annotation/board-cursor.css +77 -0
- package/lib-es/modules/annotation/components/color-picker/components/color.js +29 -0
- package/lib-es/modules/annotation/components/color-picker/components/panel.js +100 -0
- package/lib-es/modules/annotation/components/color-picker/components/picker.js +67 -0
- package/lib-es/modules/annotation/components/color-picker/index.js +38 -0
- package/lib-es/modules/annotation/components/eraser-picker.js +134 -0
- package/lib-es/modules/annotation/components/expansion/index.js +85 -0
- package/lib-es/modules/annotation/components/extra-tool-picker.js +46 -0
- package/lib-es/modules/annotation/components/history.js +68 -0
- package/lib-es/modules/annotation/components/icons/fold-icon.js +33 -0
- package/lib-es/modules/annotation/components/icons/move-icon.js +59 -0
- package/lib-es/modules/annotation/components/item/index.js +35 -0
- package/lib-es/modules/annotation/components/move-handle.js +127 -0
- package/lib-es/modules/annotation/components/pen-picker.js +142 -0
- package/lib-es/modules/annotation/components/screen-capture-picker.js +77 -0
- package/lib-es/modules/annotation/components/shape-picker.js +193 -0
- package/lib-es/modules/annotation/hooks/index.js +156 -0
- package/lib-es/modules/annotation/index.js +144 -0
- package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/color-tool/color-panel/index.js +2 -2
- package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/color-tool/index.js +23 -10
- package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/graphic-tool/graphic-panel/index.js +2 -3
- package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/graphic-tool/index.js +23 -10
- package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/pen-tool/index.js +23 -10
- package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/pen-tool/pen-panel/index.js +2 -2
- package/lib-es/modules/annotation/standalone-toolbar/components/permission-tool/index.js +44 -0
- package/lib-es/modules/annotation/standalone-toolbar/store.js +611 -0
- package/{lib/fragments/annotation/toolbar → lib-es/modules/annotation/standalone-toolbar}/style.css +4 -1
- package/lib-es/modules/annotation/standalone-toolbar/view.js +186 -0
- package/lib-es/modules/annotation/store.base.js +178 -0
- package/lib-es/modules/annotation/store.browser.js +17 -0
- package/lib-es/modules/annotation/store.electron.js +67 -0
- package/lib-es/modules/annotation/style.css +36 -0
- package/lib-es/modules/annotation/toolbar-store.js +466 -0
- package/lib-es/modules/annotation/type.js +1 -0
- package/lib-es/modules/annotation/view.js +99 -0
- package/lib-es/modules/chat/chat-room-store.js +152 -72
- package/lib-es/modules/chat/components/message-list/index.js +123 -89
- package/lib-es/modules/chat/components/message-list/message-item/index.js +89 -67
- package/lib-es/modules/chat/components/message-list/scroll-bottom-button/index.js +6 -8
- package/lib-es/modules/chat/index.css +1 -9
- package/lib-es/modules/chat/store.js +7 -5
- package/lib-es/modules/chat/view.js +2 -7
- package/lib-es/modules/components/annotation-menu/index.js +28 -33
- package/lib-es/modules/components/apps/index.css +3 -2
- package/lib-es/modules/components/caption-menu/translation-setting-options.js +2 -2
- package/lib-es/modules/components/confirm-wrapper/index.css +48 -0
- package/lib-es/modules/components/confirm-wrapper/index.js +80 -0
- package/lib-es/modules/components/control-bar/index.js +349 -199
- package/lib-es/modules/components/device-control/components/audio-menu/index.js +3 -2
- package/lib-es/modules/components/device-control/components/video-menu/index.js +5 -3
- package/lib-es/modules/components/device-control/store.base.js +17 -1
- package/lib-es/modules/components/leave-meeting/index.css +21 -0
- package/lib-es/modules/components/leave-meeting/index.js +63 -102
- package/lib-es/modules/components/leave-meeting/portal.js +3 -5
- package/lib-es/modules/components/leave-meeting/store.base.js +49 -55
- package/lib-es/modules/components/leave-meeting/style.css +0 -1
- package/lib-es/modules/components/member-window/components/member-actions/components/more-actions.js +2 -1
- package/lib-es/modules/components/member-window/components/member-actions/provider.js +1 -1
- package/lib-es/modules/components/member-window/index.js +3 -3
- package/lib-es/modules/components/security-menu/store.js +7 -9
- package/lib-es/modules/components/tab-frame/index.css +2 -2
- package/lib-es/modules/connection-gateway/components/phone/index.js +1 -1
- package/lib-es/modules/connection-gateway/store.js +6 -8
- package/lib-es/modules/control-bar/components/annotation-button/index.js +43 -0
- package/lib-es/modules/control-bar/components/apps-popover/index.css +3 -0
- package/lib-es/modules/control-bar/components/apps-popover/index.js +2 -0
- package/lib-es/modules/control-bar/components/carmera/index.js +1 -1
- package/lib-es/modules/control-bar/components/meeting-details/index.js +10 -16
- package/lib-es/modules/control-bar/components/microphone/index.js +2 -2
- package/lib-es/modules/control-bar/hooks.js +1 -1
- package/lib-es/modules/control-bar/index.css +11 -0
- package/lib-es/modules/control-bar/store.js +184 -53
- package/lib-es/modules/control-bar/view.js +72 -39
- package/lib-es/modules/device-pretest/audio-preview/microphone-detection.js +4 -10
- package/lib-es/modules/device-pretest/audio-preview/speaker-detection.js +1 -1
- package/lib-es/modules/device-pretest/index.js +1 -1
- package/lib-es/modules/device-pretest/settings/beauty.js +1 -1
- package/lib-es/modules/device-pretest/settings/video-effect.js +27 -12
- package/lib-es/modules/device-pretest/settings/video-settings-basic.js +1 -1
- package/lib-es/modules/device-pretest/settings/virtual-background-setting.js +1 -1
- package/lib-es/modules/dialog/components/confirm/index.css +0 -18
- package/lib-es/modules/dialog/components/confirm/index.js +2 -1
- package/lib-es/modules/dialog/components/dialog-container/index.css +3 -4
- package/lib-es/modules/dialog/components/dialog-container/index.js +80 -126
- package/lib-es/modules/dialog/components/normal-window/index.js +15 -35
- package/lib-es/modules/dialog/dialogConfig/browser.js +4 -0
- package/lib-es/modules/dialog/dialogConfig/electron.js +8 -0
- package/lib-es/modules/dialog/dialogs/annotation-mask/index.js +34 -0
- package/lib-es/modules/dialog/dialogs/annotation-tool/index.js +18 -34
- package/lib-es/modules/dialog/dialogs/caption/index.js +24 -18
- package/lib-es/modules/dialog/dialogs/chat/index.js +32 -53
- package/lib-es/modules/dialog/dialogs/confirm/index.css +2 -13
- package/lib-es/modules/dialog/dialogs/confirm/index.js +4 -6
- package/lib-es/modules/dialog/dialogs/confirm-leave-meeting/index.js +3 -23
- package/lib-es/modules/dialog/dialogs/connection-gateway/index.js +5 -28
- package/lib-es/modules/dialog/dialogs/control-bar/index.js +3 -5
- package/lib-es/modules/dialog/dialogs/control-bar-leave-meeting/index.js +2 -20
- package/lib-es/modules/dialog/dialogs/device-setting/index.js +3 -19
- package/lib-es/modules/dialog/dialogs/{end-meeting → end-meeting-notice}/index.js +3 -13
- package/lib-es/modules/dialog/dialogs/interpreter/index.js +32 -23
- package/lib-es/modules/dialog/dialogs/invite/index.js +24 -23
- package/lib-es/modules/dialog/dialogs/live-streaming/index.js +6 -10
- package/lib-es/modules/dialog/dialogs/mute-all/index.js +3 -19
- package/lib-es/modules/dialog/dialogs/participant/index.js +31 -30
- package/lib-es/modules/dialog/dialogs/rename/index.js +1 -12
- package/lib-es/modules/dialog/dialogs/sample-dialog/index.js +1 -1
- package/lib-es/modules/dialog/dialogs/share-screen-selection/index.js +2 -11
- package/lib-es/modules/dialog/dialogs/sub-window/index.js +3 -2
- package/lib-es/modules/dialog/dialogs/subtitles-history/index.js +31 -24
- package/lib-es/modules/dialog/dialogs/system-preference/index.css +3 -2
- package/lib-es/modules/dialog/dialogs/system-preference/index.js +12 -12
- package/lib-es/modules/dialog/dialogs/toast/index.js +4 -4
- package/lib-es/modules/dialog/dialogs/video-window/index.js +3 -3
- package/lib-es/modules/dialog/dialogs/whiteboard/index.js +1 -1
- package/lib-es/modules/dialog/dialogs/widget/index.js +21 -25
- package/lib-es/modules/dialog/index.css +4 -11
- package/lib-es/modules/dialog/level-config.js +1 -0
- package/lib-es/modules/dialog/store.base.js +0 -3
- package/lib-es/modules/dialog/store.electron.js +16 -9
- package/lib-es/modules/dialog/view.js +25 -1
- package/lib-es/modules/dialog/web-dialog-wrapper.js +147 -0
- package/lib-es/modules/event-toast/index.css +5 -2
- package/lib-es/modules/event-toast/store.browser.js +1 -1
- package/lib-es/modules/event-toast/store.electron.js +1 -1
- package/lib-es/modules/interpreter/index.css +1 -2
- package/lib-es/modules/interpreter/store.js +22 -19
- package/lib-es/modules/interpreter/utils.js +1 -1
- package/lib-es/modules/invite/components/pstn-invite.js +4 -4
- package/lib-es/modules/invite/store.js +1 -1
- package/lib-es/modules/layout/components/Aside.js +1 -1
- package/lib-es/modules/layout/components/Carousel.js +1 -1
- package/lib-es/modules/layout/components/CommonVideoRenderer.js +15 -5
- package/lib-es/modules/layout/components/Gallery.js +1 -1
- package/lib-es/modules/layout/index.css +0 -31
- package/lib-es/modules/layout/store.base.js +71 -200
- package/lib-es/modules/layout/store.browser.js +62 -1
- package/lib-es/modules/layout/store.electron.js +10 -28
- package/lib-es/modules/layout/view.js +1 -3
- package/lib-es/modules/live-streaming/index.dev.js +1 -1
- package/lib-es/modules/live-streaming/store.js +3 -4
- package/lib-es/modules/participant/components/confirm-input/index.css +15 -0
- package/lib-es/modules/participant/components/confirm-input/index.js +10 -13
- package/lib-es/modules/participant/components/mute-all/index.css +34 -0
- package/lib-es/modules/participant/components/mute-all/index.js +21 -15
- package/lib-es/modules/participant/components/participants/components/footer/components/drop-menu/index.js +17 -3
- package/lib-es/modules/participant/components/participants/components/footer/components/drop-menu/util.js +3 -1
- package/lib-es/modules/participant/components/participants/components/render-user/components/attendee/components/microphone-indicator/index.js +3 -2
- package/lib-es/modules/participant/components/participants/components/render-user/components/user-action/index.js +1 -1
- package/lib-es/modules/participant/index.css +0 -16
- package/lib-es/modules/participant/store.base.js +219 -127
- package/lib-es/modules/participant/store.browser.js +2 -2
- package/lib-es/modules/participant/store.electron.js +2 -2
- package/lib-es/modules/pc-audio-connect/waiting-scene/index.js +6 -1
- package/lib-es/modules/phone-audio-connect/store.js +1 -1
- package/lib-es/modules/phone-audio-connect/view.js +1 -1
- package/lib-es/modules/secondary-window/index.js +51 -25
- package/lib-es/modules/secondary-window/store.js +40 -9
- package/lib-es/modules/secondary-window/type.js +1 -0
- package/lib-es/modules/secondary-window/view.js +60 -59
- package/lib-es/modules/setting/audio-settings/audio-settings.js +2 -2
- package/lib-es/modules/setting/audio-whiteList/audio-device-adaptation.js +2 -2
- package/lib-es/modules/setting/audio-whiteList/audio-whiteList-manager.js +1 -1
- package/lib-es/modules/setting/caption_and_transcribing/index.js +1 -1
- package/lib-es/modules/setting/general-settings/general-settings.js +5 -5
- package/lib-es/modules/setting/index.css +2 -3
- package/lib-es/modules/setting/index.js +3 -10
- package/lib-es/modules/setting/minutes-settings/minutes-settings.js +1 -1
- package/lib-es/modules/setting/state/index.js +1 -1
- package/lib-es/modules/setting/storage-settings/storage-settings.js +1 -1
- package/lib-es/modules/setting/store.base.js +103 -88
- package/lib-es/modules/setting/store.electron.js +19 -1
- package/lib-es/modules/setting/translate-settings/translate-settings.js +1 -1
- package/lib-es/modules/setting/video-settings/video-settings-basic.js +1 -1
- package/lib-es/modules/setting/video-settings/video-settings.js +11 -7
- package/lib-es/modules/setting/view.js +1 -1
- package/lib-es/modules/share-screen/components/control-bar/index.js +0 -86
- package/lib-es/modules/share-screen/components/selection/index.js +3 -1
- package/lib-es/modules/share-screen/store.base.js +10 -14
- package/lib-es/modules/share-screen/store.electron.js +109 -35
- package/lib-es/modules/state-bar/layout-config.js +1 -1
- package/lib-es/modules/state-bar/live-streaming-state.js +5 -6
- package/lib-es/modules/state-bar/main-scene/store.browser.js +1 -1
- package/lib-es/modules/state-bar/main-scene/store.electron.js +1 -1
- package/lib-es/modules/state-bar/meeting-details.js +10 -17
- package/lib-es/modules/state-bar/meeting-network-state.css +5 -1
- package/lib-es/modules/state-bar/meeting-network-state.js +7 -1
- package/lib-es/modules/state-bar/meeting-time.js +1 -1
- package/lib-es/modules/state-bar/network-quality.js +1 -1
- package/lib-es/modules/state-bar/recording.js +1 -1
- package/lib-es/modules/state-bar/store.base.js +15 -24
- package/lib-es/modules/state-bar/view.js +5 -6
- package/lib-es/modules/subtitles-history/components/list-item.js +6 -1
- package/lib-es/modules/subtitles-history/index.css +2 -5
- package/lib-es/modules/subtitles-history/store.base.js +24 -12
- package/lib-es/modules/subtitles-history/store.electron.js +8 -2
- package/lib-es/modules/subtitles-history/view.js +7 -5
- package/lib-es/modules/toast-manager/index.js +50 -0
- package/lib-es/modules/toast-manager/store.js +383 -0
- package/lib-es/modules/toast-manager/toast-params.js +82 -0
- package/lib-es/modules/toast-manager/type.js +329 -0
- package/lib-es/modules/video-window/store.js +28 -50
- package/lib-es/modules/whiteboard/components/control-bar/store.js +0 -6
- package/lib-es/modules/whiteboard/components/toolbar/store.js +25 -14
- package/lib-es/modules/whiteboard/store.js +10 -9
- package/lib-es/modules/whiteboard/view.js +0 -1
- package/lib-es/modules/widget/store.electron.js +12 -47
- package/lib-es/modules/widget/view.js +1 -1
- package/lib-es/object-manager.js +2 -0
- package/lib-es/plugins/multi-lang-plugin.js +1 -1
- package/lib-es/providers/ability-provider.js +29 -1
- package/lib-es/providers/annotation/provider.base.js +263 -0
- package/lib-es/providers/annotation/provider.browser.js +17 -0
- package/lib-es/providers/annotation/provider.electron.js +224 -0
- package/lib-es/{fragments/annotation/toolbar/store.js → providers/annotation/standalone-toolbar-control/index.js} +102 -174
- package/lib-es/providers/annotation/toolbar-control/index.js +198 -0
- package/lib-es/providers/app-list-provider.js +13 -7
- package/lib-es/providers/board-share/bar-control/base.js +7 -36
- package/lib-es/providers/board-share/bar-control/browser.js +78 -4
- package/lib-es/providers/board-share/bar-control/electron.js +36 -12
- package/lib-es/providers/board-share/provider.base.js +73 -14
- package/lib-es/providers/device-privilege-provider.js +85 -62
- package/lib-es/providers/device-provider.js +413 -162
- package/lib-es/providers/device-stream-provider.js +37 -111
- package/lib-es/providers/dialog/provider.electron.js +6 -1
- package/lib-es/providers/interpreter-provider.js +5 -5
- package/lib-es/providers/message/provider.js +12 -0
- package/lib-es/providers/mouse-detect/provider.js +1 -1
- package/lib-es/providers/mouse-detect/struct.js +1 -0
- package/lib-es/providers/multi-display-provider.js +15 -2
- package/lib-es/providers/phone-audio-provider.js +17 -10
- package/lib-es/providers/room-provider/room-provider.js +95 -201
- package/lib-es/providers/room-provider/waiting-room-control-manager.js +1 -1
- package/lib-es/providers/screen-share/provider.base.js +6 -1
- package/lib-es/providers/screen-share/provider.browser.js +13 -9
- package/lib-es/providers/screen-share/provider.electron.js +54 -44
- package/lib-es/providers/screen-share/strategy/electron.js +18 -3
- package/lib-es/providers/screen-share/stream-state-sync.js +4 -4
- package/lib-es/providers/stt-provider/stt-provider.js +65 -102
- package/lib-es/providers/stt-provider/type.js +4 -2
- package/lib-es/providers/user-audio-volume-provider.js +312 -0
- package/lib-es/providers/window/provider.js +23 -13
- package/lib-es/providers/window/renderer-window.js +118 -33
- package/lib-es/scenes/main-scene.js +113 -83
- package/lib-es/scenes/waiting-scene.js +5 -5
- package/lib-es/shared-data/member-data.js +35 -61
- package/lib-es/shared-data/pin-data.js +8 -11
- package/lib-es/shared-data/setting.js +1 -1
- package/lib-es/shared-data/user-audio-volume.js +97 -0
- package/lib-es/shared-data/video-window.js +49 -60
- package/lib-es/translations/enUS.js +13 -3
- package/lib-es/translations/zhCN.js +12 -2
- package/lib-es/type.js +19 -1
- package/lib-es/ui-manager.js +1 -1
- package/lib-es/ui-scene-switch.js +199 -88
- package/lib-es/utilities/browser-api.js +0 -40
- package/lib-es/utilities/constant.js +4 -5
- package/lib-es/utilities/default-config.js +8 -48
- package/lib-es/utilities/dialog-utils.js +1 -1
- package/lib-es/utilities/focus-helper.js +1 -1
- package/lib-es/utilities/logger.js +12 -40
- package/lib-es/utilities/package-info.js +5 -6
- package/lib-es/utilities/renderer.js +7 -1
- package/lib-es/utilities/shared-storage.js +16 -12
- package/lib-es/utilities/tools.js +2 -188
- package/lib-es/utilities/validate-params.js +3 -5
- package/package.json +7 -8
- package/public/js/meeting-manager.js +13 -11
- package/lib/electron/window-proxy/browser-window-proxy.js +0 -728
- package/lib/fragments/annotation/toolbar/store.d.ts +0 -64
- package/lib/fragments/annotation/toolbar/view.js +0 -148
- package/lib/fragments/annotation/utils.d.ts +0 -1
- package/lib/fragments/annotation/utils.js +0 -27
- package/lib/modules/dialog/components/dialog-container/component/body.d.ts +0 -20
- package/lib/modules/dialog/components/dialog-container/component/body.js +0 -111
- package/lib/modules/dialog/components/host-area-container/index.d.ts +0 -12
- package/lib/modules/dialog/components/host-area-container/index.js +0 -153
- package/lib/modules/dialog/dialogs/end-meeting/index.d.ts +0 -13
- package/lib/modules/dialog/dialogs/interpreter/index.css +0 -30
- package/lib/modules/dialog/dialogs/mute-all/index.css +0 -20
- package/lib/modules/whiteboard/components/multi-window/index.css +0 -63
- package/lib/modules/whiteboard/components/multi-window/index.d.ts +0 -5
- package/lib/modules/whiteboard/components/multi-window/index.js +0 -39
- package/lib/providers/annotation/provider.d.ts +0 -15
- package/lib/providers/annotation/provider.js +0 -69
- package/lib/utilities/hooks.d.ts +0 -14
- package/lib/utilities/hooks.js +0 -100
- package/lib/utilities/mute-action.d.ts +0 -4
- package/lib/utilities/mute-action.js +0 -48
- package/lib/utilities/platform.d.ts +0 -2
- package/lib/utilities/platform.js +0 -14
- package/lib/utilities/regex.d.ts +0 -1
- package/lib/utilities/regex.js +0 -14
- package/lib/utilities/useNamespace.d.ts +0 -15
- package/lib/utilities/useNamespace.js +0 -66
- package/lib-es/electron/window-proxy/browser-window-proxy.js +0 -720
- package/lib-es/fragments/annotation/toolbar/view.js +0 -140
- package/lib-es/fragments/annotation/utils.js +0 -20
- package/lib-es/modules/dialog/components/dialog-container/component/body.js +0 -103
- package/lib-es/modules/dialog/components/host-area-container/index.js +0 -146
- package/lib-es/modules/dialog/dialogs/interpreter/index.css +0 -30
- package/lib-es/modules/dialog/dialogs/mute-all/index.css +0 -20
- package/lib-es/modules/whiteboard/components/multi-window/index.css +0 -63
- package/lib-es/modules/whiteboard/components/multi-window/index.js +0 -31
- package/lib-es/providers/annotation/provider.js +0 -61
- package/lib-es/utilities/hooks.js +0 -82
- package/lib-es/utilities/mute-action.js +0 -41
- package/lib-es/utilities/platform.js +0 -7
- package/lib-es/utilities/regex.js +0 -7
- package/lib-es/utilities/useNamespace.js +0 -59
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/color-tool/color-panel/index.d.ts +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/color-tool/index.d.ts +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/graphic-tool/graphic-panel/index.d.ts +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/graphic-tool/graphic-panel/libs.d.ts +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/graphic-tool/graphic-panel/libs.js +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/graphic-tool/index.d.ts +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/item/item.d.ts +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/item/item.js +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/item/style.css +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/panel/index.d.ts +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/panel/index.js +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/panel/style.css +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/pen-tool/index.d.ts +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/pen-tool/pen-panel/index.d.ts +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/tips/index.d.ts +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/tips/index.js +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/tips/style.css +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/view.d.ts +0 -0
- /package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/graphic-tool/graphic-panel/libs.js +0 -0
- /package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/item/item.js +0 -0
- /package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/item/style.css +0 -0
- /package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/panel/index.js +0 -0
- /package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/panel/style.css +0 -0
- /package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/tips/index.js +0 -0
- /package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/tips/style.css +0 -0
|
@@ -31,6 +31,7 @@ import { ShareAudio } from 'agora-ui-foundation/lib/components/room-screen-share
|
|
|
31
31
|
import './index.css';
|
|
32
32
|
import { FcrUIShareType } from '../../type';
|
|
33
33
|
import { FcrIconType } from 'agora-ui-foundation/lib/components/icon/type';
|
|
34
|
+
import { isWindows } from 'agora-foundation/lib/utilities/env';
|
|
34
35
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
35
36
|
export var ShareSelection = observer(function () {
|
|
36
37
|
var _useContext = useContext(StoreContext),
|
|
@@ -157,7 +158,8 @@ var ThumbnailRender = function ThumbnailRender(_ref3) {
|
|
|
157
158
|
return uint8ArrayToImageData({
|
|
158
159
|
buffer: image,
|
|
159
160
|
width: width,
|
|
160
|
-
height: height
|
|
161
|
+
height: height,
|
|
162
|
+
isWindows: isWindows()
|
|
161
163
|
});
|
|
162
164
|
}, [image]);
|
|
163
165
|
return /*#__PURE__*/_jsx("img", {
|
|
@@ -82,6 +82,7 @@ import { FcrScreenCaptureType, FcrUserRole, FcrVideoRenderMode } from 'fcr-core/
|
|
|
82
82
|
import { transI18n } from 'agora-ui-foundation/lib/i18n';
|
|
83
83
|
import { FcrUIScreenShareErrorCode, FcrUIScreenShareStopReason } from '../../providers/screen-share/struct';
|
|
84
84
|
import { FcrIconType } from 'agora-ui-foundation/lib/components/icon/type';
|
|
85
|
+
import { FcrUIToastKey } from '../../modules/toast-manager/type';
|
|
85
86
|
var _A = /*#__PURE__*/new WeakMap();
|
|
86
87
|
var _B = /*#__PURE__*/new WeakMap();
|
|
87
88
|
var _C = /*#__PURE__*/new WeakMap();
|
|
@@ -115,9 +116,8 @@ var ShareScreenStoreBase = /*#__PURE__*/function () {
|
|
|
115
116
|
});
|
|
116
117
|
_this.dialogProvider.setSharingDisplayBounds(null);
|
|
117
118
|
if (reason === FcrUIScreenShareStopReason.STOPPED_BY_OTHER) {
|
|
118
|
-
_this.messageProvider.
|
|
119
|
-
|
|
120
|
-
message: transI18n('fmt_share_tips_sharingdisabled')
|
|
119
|
+
_this.messageProvider.showToastByKey({
|
|
120
|
+
key: FcrUIToastKey.FMT_SHARE_TIPS_SHARINGDISABLED
|
|
121
121
|
});
|
|
122
122
|
_this._replaceShareConfirmDialog(operator);
|
|
123
123
|
}
|
|
@@ -131,11 +131,9 @@ var ShareScreenStoreBase = /*#__PURE__*/function () {
|
|
|
131
131
|
onScreenShareErrorOccurred: function onScreenShareErrorOccurred(code) {
|
|
132
132
|
if (code === FcrUIScreenShareErrorCode.NETWORK_DISCONNECTED) {
|
|
133
133
|
if (!_this.facilityProvider.isNetworkConnected) {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
};
|
|
138
|
-
_this.messageProvider.showToast(params);
|
|
134
|
+
_this.messageProvider.showToastByKey({
|
|
135
|
+
key: FcrUIToastKey.FMT_SCREENTIPS_NETWORK_ERROR_UNABLE_START_SCREEN_SHARE
|
|
136
|
+
});
|
|
139
137
|
return false;
|
|
140
138
|
}
|
|
141
139
|
}
|
|
@@ -314,7 +312,7 @@ var ShareScreenStoreBase = /*#__PURE__*/function () {
|
|
|
314
312
|
key: "startShareScreen",
|
|
315
313
|
value: function () {
|
|
316
314
|
var _startShareScreen = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
317
|
-
var
|
|
315
|
+
var captureType, videoSourceId, _t;
|
|
318
316
|
return _regeneratorRuntime.wrap(function (_context2) {
|
|
319
317
|
while (1) switch (_context2.prev = _context2.next) {
|
|
320
318
|
case 0:
|
|
@@ -328,11 +326,9 @@ var ShareScreenStoreBase = /*#__PURE__*/function () {
|
|
|
328
326
|
_context2.next = 2;
|
|
329
327
|
break;
|
|
330
328
|
}
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
};
|
|
335
|
-
this.messageProvider.showToast(params);
|
|
329
|
+
this.messageProvider.showToastByKey({
|
|
330
|
+
key: FcrUIToastKey.FMT_SCREENTIPS_NETWORK_ERROR_UNABLE_START_SCREEN_SHARE
|
|
331
|
+
});
|
|
336
332
|
return _context2.abrupt("return");
|
|
337
333
|
case 2:
|
|
338
334
|
_context2.prev = 2;
|
|
@@ -5,7 +5,6 @@ import "core-js/modules/es.error.cause.js";
|
|
|
5
5
|
import "core-js/modules/es.error.to-string.js";
|
|
6
6
|
import "core-js/modules/es.array.is-array.js";
|
|
7
7
|
import "core-js/modules/es.array.iterator.js";
|
|
8
|
-
import "core-js/modules/es.array.push.js";
|
|
9
8
|
import "core-js/modules/es.date.to-primitive.js";
|
|
10
9
|
import "core-js/modules/es.function.bind.js";
|
|
11
10
|
import "core-js/modules/es.function.name.js";
|
|
@@ -46,10 +45,15 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
46
45
|
var _ElectronShareScreenStore;
|
|
47
46
|
var _initProto, _handleSelectionOpenDecs, _setShareWithAudioStateDecs, _setShareInSmoothModeDecs, _ref;
|
|
48
47
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
48
|
+
import "core-js/modules/es.array.concat.js";
|
|
49
49
|
import "core-js/modules/es.array.find.js";
|
|
50
|
+
import "core-js/modules/es.array.for-each.js";
|
|
51
|
+
import "core-js/modules/es.array.push.js";
|
|
50
52
|
import "core-js/modules/es.object.to-string.js";
|
|
51
53
|
import "core-js/modules/esnext.iterator.constructor.js";
|
|
52
54
|
import "core-js/modules/esnext.iterator.find.js";
|
|
55
|
+
import "core-js/modules/esnext.iterator.for-each.js";
|
|
56
|
+
import "core-js/modules/web.dom-collections.for-each.js";
|
|
53
57
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
54
58
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
55
59
|
function _superPropGet(t, o, e, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; }
|
|
@@ -66,12 +70,13 @@ import { FcrDialogInterceptorEventName } from '../../providers/dialog/type';
|
|
|
66
70
|
import { AudioProcessingChannel } from '../control-bar/components/share-audio';
|
|
67
71
|
import { setVideoWindowDialogPosition } from '../dialog/dialogs/video-window';
|
|
68
72
|
import { bound, trace } from 'agora-foundation/lib/decorator';
|
|
69
|
-
import { action, runInAction } from 'mobx';
|
|
73
|
+
import { action, reaction, runInAction } from 'mobx';
|
|
70
74
|
import { getStartScreenSharing } from '../../utilities/parameters';
|
|
71
75
|
import { FcrScreenCaptureType } from 'fcr-core/lib/type';
|
|
72
76
|
import { WindowRelativeLevel } from '../dialog/level-config';
|
|
73
77
|
import { sleep } from 'fcr-core/lib/imports';
|
|
74
78
|
import { FcrUISelectionBoundsChangeReason } from '../../providers/screen-share/struct';
|
|
79
|
+
import { isMac } from 'agora-foundation/lib/utilities/env';
|
|
75
80
|
_ref = (_handleSelectionOpenDecs = [action, action.bound], _setShareWithAudioStateDecs = [action, action.bound], _setShareInSmoothModeDecs = [action, action.bound], "_windowProvider");
|
|
76
81
|
var ElectronShareScreenStore = /*#__PURE__*/function (_ShareScreenStoreBase) {
|
|
77
82
|
function ElectronShareScreenStore(args) {
|
|
@@ -80,10 +85,12 @@ var ElectronShareScreenStore = /*#__PURE__*/function (_ShareScreenStoreBase) {
|
|
|
80
85
|
_this = _callSuper(this, ElectronShareScreenStore, [args]);
|
|
81
86
|
_defineProperty(_this, _ref, void _initProto(_this));
|
|
82
87
|
_defineProperty(_this, "_isSharing", false);
|
|
88
|
+
_defineProperty(_this, "_disposers", []);
|
|
83
89
|
_defineProperty(_this, "_screenShareElectronObserver", {
|
|
84
90
|
onPrepreScreenCapture: _this._showControlBar,
|
|
85
|
-
|
|
86
|
-
|
|
91
|
+
onScreenShareStarted: _this._handleScreenShareStarted,
|
|
92
|
+
onScreenShareErrorOccurred: _this._handleScreenShareEnded,
|
|
93
|
+
onScreenShareStopped: _this._handleScreenShareEnded,
|
|
87
94
|
onShareSourceReplaced: _this._handleSourceReplaced
|
|
88
95
|
});
|
|
89
96
|
_this._windowProvider = args.objectManager.getObject(FcrUIObjectKeys.P_WINDOW_PROVIDER);
|
|
@@ -94,6 +101,7 @@ var ElectronShareScreenStore = /*#__PURE__*/function (_ShareScreenStoreBase) {
|
|
|
94
101
|
_this._renderer = args.objectManager.getObject(FcrUIObjectKeys.RENDERER_WRAPPER);
|
|
95
102
|
_this._renderer.addEventListener(_this._handleDisplayCountUpdated);
|
|
96
103
|
_this.screenShareProvider.addObserver(_this._screenShareElectronObserver);
|
|
104
|
+
_this._addReactions();
|
|
97
105
|
_this._checkAutoStartScreenSharing();
|
|
98
106
|
return _this;
|
|
99
107
|
}
|
|
@@ -174,6 +182,7 @@ var ElectronShareScreenStore = /*#__PURE__*/function (_ShareScreenStoreBase) {
|
|
|
174
182
|
}, {
|
|
175
183
|
key: "release",
|
|
176
184
|
value: function release() {
|
|
185
|
+
this._renderer.setMainWindowDisplaySupport(true);
|
|
177
186
|
this._isSharing = false;
|
|
178
187
|
this._dialogProvider.removeInterceptor(FcrDialogInterceptorEventName.ON_CLOSE, this._interceptDialogClose);
|
|
179
188
|
this._dialogProvider.closeDialog(FcrUIDialogKey.SHARE_SCREEN_CONTROL_BAR);
|
|
@@ -184,6 +193,10 @@ var ElectronShareScreenStore = /*#__PURE__*/function (_ShareScreenStoreBase) {
|
|
|
184
193
|
_superPropGet(ElectronShareScreenStore, "release", this, 3)([]);
|
|
185
194
|
this.screenShareProvider.removeObserver(this._screenShareElectronObserver);
|
|
186
195
|
this._renderer.removeEventListener(this._handleDisplayCountUpdated);
|
|
196
|
+
this._disposers.forEach(function (disposer) {
|
|
197
|
+
return disposer();
|
|
198
|
+
});
|
|
199
|
+
this._disposers = [];
|
|
187
200
|
}
|
|
188
201
|
}, {
|
|
189
202
|
key: "_ensureWindowsAreOpenAndPositioned",
|
|
@@ -233,7 +246,7 @@ var ElectronShareScreenStore = /*#__PURE__*/function (_ShareScreenStoreBase) {
|
|
|
233
246
|
isMultiDisplayActive = this._multiDisplayProvider.isActive;
|
|
234
247
|
mainWindow = this._windowProvider.getCurrentWindow();
|
|
235
248
|
if (isMultiDisplayActive) {
|
|
236
|
-
_context2.next =
|
|
249
|
+
_context2.next = 2;
|
|
237
250
|
break;
|
|
238
251
|
}
|
|
239
252
|
if (!mainWindow.isFullScreen()) {
|
|
@@ -251,13 +264,14 @@ var ElectronShareScreenStore = /*#__PURE__*/function (_ShareScreenStoreBase) {
|
|
|
251
264
|
videoWindow.show();
|
|
252
265
|
}
|
|
253
266
|
videoWindow.setAlwaysOnTop(true, 'screen-saver', WindowRelativeLevel.VIDEO_WINDOW_LEVEL);
|
|
267
|
+
case 2:
|
|
254
268
|
this._ensureWindowsAreOpenAndPositioned(true, isMultiDisplayActive);
|
|
255
269
|
if (isMultiDisplayActive) {
|
|
256
270
|
this._multiDisplayProvider.moveMainWindowToIndexLeastDisplay();
|
|
257
271
|
} else {
|
|
258
272
|
mainWindow.hide();
|
|
259
273
|
}
|
|
260
|
-
case
|
|
274
|
+
case 3:
|
|
261
275
|
case "end":
|
|
262
276
|
return _context2.stop();
|
|
263
277
|
}
|
|
@@ -268,6 +282,23 @@ var ElectronShareScreenStore = /*#__PURE__*/function (_ShareScreenStoreBase) {
|
|
|
268
282
|
}
|
|
269
283
|
return _showControlBar;
|
|
270
284
|
}()
|
|
285
|
+
}, {
|
|
286
|
+
key: "_handleScreenShareStarted",
|
|
287
|
+
value: function _handleScreenShareStarted() {
|
|
288
|
+
var isMultiDisplayActive = this._multiDisplayProvider.isActive;
|
|
289
|
+
|
|
290
|
+
// 单屏幕模式下,需要通知主进程屏幕共享已开启,不支持显示主窗口,避免主窗口和control bar 重复显示
|
|
291
|
+
if (!isMultiDisplayActive) {
|
|
292
|
+
this._renderer.setMainWindowDisplaySupport(false);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}, {
|
|
296
|
+
key: "_handleScreenShareEnded",
|
|
297
|
+
value: function _handleScreenShareEnded() {
|
|
298
|
+
// 通知主进程屏幕共享已关闭,支持显示主窗口
|
|
299
|
+
this._renderer.setMainWindowDisplaySupport(true);
|
|
300
|
+
this._hideControlBar();
|
|
301
|
+
}
|
|
271
302
|
}, {
|
|
272
303
|
key: "_hideControlBar",
|
|
273
304
|
value: function _hideControlBar() {
|
|
@@ -277,6 +308,22 @@ var ElectronShareScreenStore = /*#__PURE__*/function (_ShareScreenStoreBase) {
|
|
|
277
308
|
var mainWindow = this._windowProvider.getCurrentWindow();
|
|
278
309
|
mainWindow.show();
|
|
279
310
|
}
|
|
311
|
+
}, {
|
|
312
|
+
key: "_addReactions",
|
|
313
|
+
value: function _addReactions() {
|
|
314
|
+
var _this3 = this;
|
|
315
|
+
// 监听多屏模式状态变化,当用户正在屏幕共享时同步更新主窗口显示支持
|
|
316
|
+
this._disposers.push(reaction(function () {
|
|
317
|
+
return _this3._multiDisplayProvider.isActive;
|
|
318
|
+
}, function (isActive) {
|
|
319
|
+
if (_this3.screenShareProvider.isLocalUserScreenSharing) {
|
|
320
|
+
// 单屏模式下(isActive = false),禁用主窗口显示支持
|
|
321
|
+
// 多屏模式下(isActive = true),启用主窗口显示支持
|
|
322
|
+
_this3._renderer.setMainWindowDisplaySupport(isActive);
|
|
323
|
+
_this3.logger.info("Multi-display mode changed to ".concat(isActive ? 'active' : 'inactive', ", setMainWindowDisplaySupport(").concat(isActive, ")"));
|
|
324
|
+
}
|
|
325
|
+
}));
|
|
326
|
+
}
|
|
280
327
|
}, {
|
|
281
328
|
key: "_handleSourceReplaced",
|
|
282
329
|
value: function _handleSourceReplaced() {
|
|
@@ -329,7 +376,7 @@ var ElectronShareScreenStore = /*#__PURE__*/function (_ShareScreenStoreBase) {
|
|
|
329
376
|
key: "_handleDisplayCountUpdated",
|
|
330
377
|
value: function () {
|
|
331
378
|
var _handleDisplayCountUpdated2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(event) {
|
|
332
|
-
var eventAction, _this$selectedShareIt, type, id, sharingTargetBounds, displayList, display, windowList, window, selectionBounds, _t;
|
|
379
|
+
var eventAction, _this$selectedShareIt, removedDisplay, _this$selectedShareIt2, x, y, _removedDisplay$bound, displayX, displayY, width, height, isPointInRemovedDisplay, _this$selectedShareIt3, type, id, sharingTargetBounds, displayList, display, windowList, window, selectionBounds, _t;
|
|
333
380
|
return _regeneratorRuntime.wrap(function (_context4) {
|
|
334
381
|
while (1) switch (_context4.prev = _context4.next) {
|
|
335
382
|
case 0:
|
|
@@ -339,82 +386,109 @@ var ElectronShareScreenStore = /*#__PURE__*/function (_ShareScreenStoreBase) {
|
|
|
339
386
|
// ||
|
|
340
387
|
// eventAction === FcrUIRendererEventAction.SCREEN_DISPLAY_METRICS_CHANGED
|
|
341
388
|
)) {
|
|
342
|
-
_context4.next =
|
|
389
|
+
_context4.next = 14;
|
|
343
390
|
break;
|
|
344
391
|
}
|
|
345
392
|
this.logger.info("action: ".concat(eventAction));
|
|
393
|
+
if (!(eventAction === FcrUIRendererEventAction.SCREEN_DISPLAY_REMOVED)) {
|
|
394
|
+
_context4.next = 3;
|
|
395
|
+
break;
|
|
396
|
+
}
|
|
397
|
+
removedDisplay = event.display;
|
|
398
|
+
if (!(
|
|
399
|
+
// macOS: some versions do not emit screen track callbacks when a display is unplugged.
|
|
400
|
+
isMac() && removedDisplay && this.screenShareProvider.isLocalUserScreenSharing && ((_this$selectedShareIt = this.selectedShareItem) === null || _this$selectedShareIt === void 0 ? void 0 : _this$selectedShareIt.type) === FcrUIShareType.DISPLAY && this.selectedShareItem.bounds)) {
|
|
401
|
+
_context4.next = 3;
|
|
402
|
+
break;
|
|
403
|
+
}
|
|
404
|
+
_this$selectedShareIt2 = this.selectedShareItem.bounds, x = _this$selectedShareIt2.x, y = _this$selectedShareIt2.y;
|
|
405
|
+
_removedDisplay$bound = removedDisplay.bounds, displayX = _removedDisplay$bound.x, displayY = _removedDisplay$bound.y, width = _removedDisplay$bound.width, height = _removedDisplay$bound.height;
|
|
406
|
+
isPointInRemovedDisplay = x >= displayX && x < displayX + width && y >= displayY && y < displayY + height;
|
|
407
|
+
if (isPointInRemovedDisplay) {
|
|
408
|
+
_context4.next = 1;
|
|
409
|
+
break;
|
|
410
|
+
}
|
|
411
|
+
this.logger.info("removed display ".concat(removedDisplay.id, " does not match shared display, skip stop"));
|
|
412
|
+
return _context4.abrupt("return");
|
|
413
|
+
case 1:
|
|
414
|
+
this.logger.info("shared display removed (".concat(removedDisplay.id, "), stop screen sharing"));
|
|
415
|
+
_context4.next = 2;
|
|
416
|
+
return this.screenShareProvider.stopShare();
|
|
417
|
+
case 2:
|
|
418
|
+
return _context4.abrupt("return");
|
|
419
|
+
case 3:
|
|
346
420
|
if (!this.screenShareProvider.isLocalUserScreenSharing) {
|
|
347
|
-
_context4.next =
|
|
421
|
+
_context4.next = 14;
|
|
348
422
|
break;
|
|
349
423
|
}
|
|
350
424
|
if (this.selectedShareItem) {
|
|
351
|
-
_context4.next =
|
|
425
|
+
_context4.next = 4;
|
|
352
426
|
break;
|
|
353
427
|
}
|
|
354
428
|
this.logger.warn('no selected share item, supposed to be non-null');
|
|
355
429
|
return _context4.abrupt("return");
|
|
356
|
-
case
|
|
357
|
-
_this$
|
|
430
|
+
case 4:
|
|
431
|
+
_this$selectedShareIt3 = this.selectedShareItem, type = _this$selectedShareIt3.type, id = _this$selectedShareIt3.id;
|
|
358
432
|
if (!(type === FcrUIShareType.DISPLAY)) {
|
|
359
|
-
_context4.next =
|
|
433
|
+
_context4.next = 8;
|
|
360
434
|
break;
|
|
361
435
|
}
|
|
362
|
-
_context4.next =
|
|
436
|
+
_context4.next = 5;
|
|
363
437
|
return this.screenShareProvider.getDisplayList();
|
|
364
|
-
case
|
|
438
|
+
case 5:
|
|
365
439
|
displayList = _context4.sent;
|
|
366
440
|
display = displayList.find(function (item) {
|
|
367
441
|
return item.id === id;
|
|
368
442
|
});
|
|
369
443
|
if (!display) {
|
|
370
|
-
_context4.next =
|
|
444
|
+
_context4.next = 6;
|
|
371
445
|
break;
|
|
372
446
|
}
|
|
373
447
|
sharingTargetBounds = display.bounds;
|
|
374
|
-
_context4.next =
|
|
448
|
+
_context4.next = 7;
|
|
375
449
|
break;
|
|
376
|
-
case
|
|
450
|
+
case 6:
|
|
377
451
|
this.logger.warn("can not find display info for shared screen id: ".concat(id));
|
|
378
452
|
return _context4.abrupt("return");
|
|
379
|
-
case
|
|
380
|
-
_context4.next =
|
|
453
|
+
case 7:
|
|
454
|
+
_context4.next = 13;
|
|
381
455
|
break;
|
|
382
|
-
case
|
|
383
|
-
_context4.next =
|
|
456
|
+
case 8:
|
|
457
|
+
_context4.next = 9;
|
|
384
458
|
return this.screenShareProvider.getWindowList();
|
|
385
|
-
case
|
|
459
|
+
case 9:
|
|
386
460
|
windowList = _context4.sent;
|
|
387
461
|
window = windowList.find(function (item) {
|
|
388
462
|
return item.id === id;
|
|
389
463
|
});
|
|
390
464
|
if (!window) {
|
|
391
|
-
_context4.next =
|
|
465
|
+
_context4.next = 10;
|
|
392
466
|
break;
|
|
393
467
|
}
|
|
394
468
|
sharingTargetBounds = window.bounds;
|
|
395
|
-
_context4.next =
|
|
469
|
+
_context4.next = 13;
|
|
396
470
|
break;
|
|
397
|
-
case
|
|
471
|
+
case 10:
|
|
398
472
|
this.logger.warn("can not find window info for shared window id: ".concat(id));
|
|
399
473
|
|
|
400
474
|
// 共享的窗口被隐藏时,尝试使用 selectionBounds 作为位置依据
|
|
401
|
-
_context4.prev =
|
|
475
|
+
_context4.prev = 11;
|
|
402
476
|
selectionBounds = this.screenShareProvider.selectionBounds;
|
|
403
477
|
sharingTargetBounds = this._renderer.getDisplayMatching(selectionBounds).bounds;
|
|
404
|
-
_context4.next =
|
|
478
|
+
_context4.next = 13;
|
|
405
479
|
break;
|
|
406
|
-
case
|
|
407
|
-
_context4.prev =
|
|
408
|
-
_t = _context4["catch"](
|
|
480
|
+
case 12:
|
|
481
|
+
_context4.prev = 12;
|
|
482
|
+
_t = _context4["catch"](11);
|
|
409
483
|
this.logger.warn("get selection bounds error, can not set video window position: ".concat(_t));
|
|
410
484
|
return _context4.abrupt("return");
|
|
411
|
-
case
|
|
485
|
+
case 13:
|
|
412
486
|
this.screenShareProvider.changeSelectionBounds(sharingTargetBounds, FcrUISelectionBoundsChangeReason.DISPLAY_CHANGE);
|
|
413
|
-
case
|
|
487
|
+
case 14:
|
|
414
488
|
case "end":
|
|
415
489
|
return _context4.stop();
|
|
416
490
|
}
|
|
417
|
-
}, _callee4, this, [[
|
|
491
|
+
}, _callee4, this, [[11, 12]]);
|
|
418
492
|
}));
|
|
419
493
|
function _handleDisplayCountUpdated(_x) {
|
|
420
494
|
return _handleDisplayCountUpdated2.apply(this, arguments);
|
|
@@ -424,6 +498,6 @@ var ElectronShareScreenStore = /*#__PURE__*/function (_ShareScreenStoreBase) {
|
|
|
424
498
|
}]);
|
|
425
499
|
}(ShareScreenStoreBase);
|
|
426
500
|
_ElectronShareScreenStore = ElectronShareScreenStore;
|
|
427
|
-
var _applyDecs$e = _slicedToArray(_applyDecs(_ElectronShareScreenStore, [[_handleSelectionOpenDecs, 18, "handleSelectionOpen"], [_setShareWithAudioStateDecs, 18, "setShareWithAudioState"], [_setShareInSmoothModeDecs, 18, "setShareInSmoothMode"], [bound, 2, "setShareAudioMode"], [bound, 2, "setSelectedItem"], [[bound, trace], 2, "release"], [bound, 2, "_interceptDialogClose"], [bound, 2, "_showControlBar"], [bound, 2, "_hideControlBar"], [bound, 2, "_handleSourceReplaced"], [bound, 2, "_handleDisplayCountUpdated"]], [], 0, void 0, ShareScreenStoreBase).e, 1);
|
|
501
|
+
var _applyDecs$e = _slicedToArray(_applyDecs(_ElectronShareScreenStore, [[_handleSelectionOpenDecs, 18, "handleSelectionOpen"], [_setShareWithAudioStateDecs, 18, "setShareWithAudioState"], [_setShareInSmoothModeDecs, 18, "setShareInSmoothMode"], [bound, 2, "setShareAudioMode"], [bound, 2, "setSelectedItem"], [[bound, trace], 2, "release"], [bound, 2, "_interceptDialogClose"], [bound, 2, "_showControlBar"], [bound, 2, "_handleScreenShareStarted"], [bound, 2, "_handleScreenShareEnded"], [bound, 2, "_hideControlBar"], [bound, 2, "_handleSourceReplaced"], [bound, 2, "_handleDisplayCountUpdated"]], [], 0, void 0, ShareScreenStoreBase).e, 1);
|
|
428
502
|
_initProto = _applyDecs$e[0];
|
|
429
503
|
export { ElectronShareScreenStore as default };
|
|
@@ -5,7 +5,7 @@ import "core-js/modules/esnext.iterator.constructor.js";
|
|
|
5
5
|
import "core-js/modules/esnext.iterator.map.js";
|
|
6
6
|
import { useI18n } from 'agora-ui-foundation/lib/i18n';
|
|
7
7
|
import { observer } from 'mobx-react';
|
|
8
|
-
import { useNamespace } from '
|
|
8
|
+
import { useNamespace } from 'agora-ui-foundation/lib/utilities/use-namespace';
|
|
9
9
|
import './index.css';
|
|
10
10
|
import { FcrIcon } from 'agora-ui-foundation/lib/components/icon';
|
|
11
11
|
import { FcrIconType } from 'agora-ui-foundation/lib/components/icon/type';
|
|
@@ -10,10 +10,11 @@ import { FcrDropMenu } from 'agora-ui-foundation/lib/components/drop-menu';
|
|
|
10
10
|
import { useContext, useRef, useState, useEffect } from 'react';
|
|
11
11
|
import { StoreContext } from './main-scene/store.base';
|
|
12
12
|
import liveStreamingGif from './assets/live-streaming.gif';
|
|
13
|
-
import { useNamespace } from '
|
|
13
|
+
import { useNamespace } from 'agora-ui-foundation/lib/utilities/use-namespace';
|
|
14
14
|
import { useI18n } from 'agora-ui-foundation/lib/i18n';
|
|
15
|
-
import { copyText } from '
|
|
15
|
+
import { copyText } from 'agora-ui-foundation/lib/utilities/copy-text';
|
|
16
16
|
import { GALLERY_MIN_SIZE } from '../../utilities/constant';
|
|
17
|
+
import { FcrUIToastKey } from '../../modules/toast-manager/type';
|
|
17
18
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
19
|
export var LiveStreamingState = observer(function () {
|
|
19
20
|
var _useContext = useContext(StoreContext),
|
|
@@ -75,13 +76,11 @@ export var LiveStreamingState = observer(function () {
|
|
|
75
76
|
toggleLayoutBarLock(false);
|
|
76
77
|
copyText(liveStreamingPlayUrl).then(function () {
|
|
77
78
|
showToast({
|
|
78
|
-
|
|
79
|
-
message: transI18n('fmt_statusbar_status_coppied')
|
|
79
|
+
key: FcrUIToastKey.FMT_STATUSBAR_STATUS_COPPIED
|
|
80
80
|
});
|
|
81
81
|
})["catch"](function () {
|
|
82
82
|
showToast({
|
|
83
|
-
|
|
84
|
-
message: transI18n('fmt_statusbar_tips_copyfailed')
|
|
83
|
+
key: FcrUIToastKey.FMT_STATUSBAR_TIPS_COPYFAILED
|
|
85
84
|
});
|
|
86
85
|
});
|
|
87
86
|
}
|
|
@@ -70,7 +70,7 @@ var StateBarBrowserStore = /*#__PURE__*/function (_StateBarMainSceneSto) {
|
|
|
70
70
|
get: function get() {
|
|
71
71
|
// 浏览器环境中,如果正在共享屏幕则禁用布局切换
|
|
72
72
|
// 复用 state-bar/store.browser.ts 中的逻辑
|
|
73
|
-
return this.isSharingScreen
|
|
73
|
+
return this.isSharingScreen;
|
|
74
74
|
}
|
|
75
75
|
}]);
|
|
76
76
|
}(StateBarMainSceneStoreBase);
|
|
@@ -11,7 +11,8 @@ import { useContext, useMemo, useState, useEffect } from 'react';
|
|
|
11
11
|
import { StoreContext } from './main-scene/store.base';
|
|
12
12
|
import './meeting-detail.css';
|
|
13
13
|
import classNames from 'classnames';
|
|
14
|
-
import { copyText } from '
|
|
14
|
+
import { copyText } from 'agora-ui-foundation/lib/utilities/copy-text';
|
|
15
|
+
import { FcrUIToastKey } from '../../modules/toast-manager/type';
|
|
15
16
|
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
17
|
var CopyState = /*#__PURE__*/function (CopyState) {
|
|
17
18
|
CopyState[CopyState["COPYINIT"] = 1] = "COPYINIT";
|
|
@@ -50,39 +51,33 @@ export var MeetingDetails = observer(function () {
|
|
|
50
51
|
var content = meetingId ? copyContent : copyContent.replace(/\s+/g, '');
|
|
51
52
|
copyText(content).then(function () {
|
|
52
53
|
showToast({
|
|
53
|
-
|
|
54
|
-
message: t('fmt_statusbar_status_coppied')
|
|
54
|
+
key: FcrUIToastKey.FMT_STATUSBAR_STATUS_COPPIED
|
|
55
55
|
});
|
|
56
56
|
})["catch"](function () {
|
|
57
57
|
showToast({
|
|
58
|
-
|
|
59
|
-
message: t('fmt_information_tips_numbercopyfailed')
|
|
58
|
+
key: FcrUIToastKey.FMT_INFORMATION_TIPS_NUMBERCOPYFAILED
|
|
60
59
|
});
|
|
61
60
|
});
|
|
62
61
|
}
|
|
63
62
|
function handleCopyMeetingPassword(password) {
|
|
64
63
|
copyText(password).then(function () {
|
|
65
64
|
showToast({
|
|
66
|
-
|
|
67
|
-
message: t('fmt_uimanager_tips_passwordcopied')
|
|
65
|
+
key: FcrUIToastKey.FMT_UIMANAGER_TIPS_PASSWORDCOPIED
|
|
68
66
|
});
|
|
69
67
|
})["catch"](function () {
|
|
70
68
|
showToast({
|
|
71
|
-
|
|
72
|
-
message: t('fmt_settings_tips_passwordcopyfailed')
|
|
69
|
+
key: FcrUIToastKey.FMT_SETTINGS_TIPS_PASSWORDCOPYFAILED
|
|
73
70
|
});
|
|
74
71
|
});
|
|
75
72
|
}
|
|
76
73
|
function handlerCopyMeetingShareLink(shareLink) {
|
|
77
74
|
copyText(shareLink).then(function () {
|
|
78
75
|
showToast({
|
|
79
|
-
|
|
80
|
-
message: t('fmt_additional_tips_invitation')
|
|
76
|
+
key: FcrUIToastKey.FMT_ADDITIONAL_TIPS_INVITATION
|
|
81
77
|
});
|
|
82
78
|
})["catch"](function () {
|
|
83
79
|
showToast({
|
|
84
|
-
|
|
85
|
-
message: t('fmt_additional_tips_invitationfailed')
|
|
80
|
+
key: FcrUIToastKey.FMT_ADDITIONAL_TIPS_INVITATIONFAILED
|
|
86
81
|
});
|
|
87
82
|
});
|
|
88
83
|
}
|
|
@@ -102,13 +97,11 @@ export var MeetingDetails = observer(function () {
|
|
|
102
97
|
copyText: t('fmt_statusbar_status_coppied')
|
|
103
98
|
});
|
|
104
99
|
showToast({
|
|
105
|
-
|
|
106
|
-
message: t('fmt_meeting_mainwindow_topbar_left_popup_toast_copy_done')
|
|
100
|
+
key: FcrUIToastKey.FMT_MEETING_MAINWINDOW_TOPBAR_LEFT_POPUP_TOAST_COPY_DONE
|
|
107
101
|
});
|
|
108
102
|
})["catch"](function () {
|
|
109
103
|
showToast({
|
|
110
|
-
|
|
111
|
-
message: t('fmt_sharing_tips_copyfull_failed')
|
|
104
|
+
key: FcrUIToastKey.FMT_SHARING_TIPS_COPYFULL_FAILED
|
|
112
105
|
});
|
|
113
106
|
});
|
|
114
107
|
}
|
|
@@ -85,7 +85,11 @@
|
|
|
85
85
|
flex-grow: 1;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
.meeting-network-
|
|
88
|
+
.meeting-network-state__loss-rate__value_web {
|
|
89
|
+
display: flex;
|
|
90
|
+
flex-grow: 1;
|
|
91
|
+
justify-content: flex-start;
|
|
92
|
+
align-items: center;
|
|
89
93
|
}
|
|
90
94
|
|
|
91
95
|
.meeting-network-state__loss-rate__value {
|
|
@@ -8,6 +8,7 @@ import { FcrIcon } from 'agora-ui-foundation/lib/components/icon';
|
|
|
8
8
|
import { FcrIconType } from 'agora-ui-foundation/lib/components/icon/type';
|
|
9
9
|
import { FcrUIHighlightElement } from '../../utilities/constant';
|
|
10
10
|
import { DeviceSettingTab } from '../setting/type';
|
|
11
|
+
import { isElectron } from 'agora-foundation/lib/utilities/env';
|
|
11
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
13
|
export var MeetingNetworkState = observer(function () {
|
|
13
14
|
var t = useI18n();
|
|
@@ -65,7 +66,7 @@ export var MeetingNetworkState = observer(function () {
|
|
|
65
66
|
className: "meeting-network-state__loss-rate",
|
|
66
67
|
children: [/*#__PURE__*/_jsx("label", {
|
|
67
68
|
children: t('fmt_networkstatus_window_loss')
|
|
68
|
-
}), /*#__PURE__*/_jsxs("div", {
|
|
69
|
+
}), isElectron() ? /*#__PURE__*/_jsxs("div", {
|
|
69
70
|
className: "meeting-network-state__loss-rate__value",
|
|
70
71
|
children: [/*#__PURE__*/_jsxs("div", {
|
|
71
72
|
children: [/*#__PURE__*/_jsxs("span", {
|
|
@@ -80,6 +81,11 @@ export var MeetingNetworkState = observer(function () {
|
|
|
80
81
|
children: "\u2193"
|
|
81
82
|
})]
|
|
82
83
|
})]
|
|
84
|
+
}) : /*#__PURE__*/_jsx("div", {
|
|
85
|
+
className: "meeting-network-state__loss-rate__value_web",
|
|
86
|
+
children: /*#__PURE__*/_jsxs("span", {
|
|
87
|
+
children: [networkStats.downlinkPacketLossRate, "%"]
|
|
88
|
+
})
|
|
83
89
|
})]
|
|
84
90
|
}), /*#__PURE__*/_jsx("div", {
|
|
85
91
|
className: "meeting-network-state__divider"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { observer } from 'mobx-react';
|
|
2
2
|
import { FcrIcon } from 'agora-ui-foundation/lib/components/icon';
|
|
3
3
|
import { FcrIconType } from 'agora-ui-foundation/lib/components/icon/type';
|
|
4
|
-
import { useNamespace } from '
|
|
4
|
+
import { useNamespace } from 'agora-ui-foundation/lib/utilities/use-namespace';
|
|
5
5
|
import './index.css';
|
|
6
6
|
import classnames from 'classnames';
|
|
7
7
|
import { useContext } from 'react';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { observer } from 'mobx-react';
|
|
2
|
-
import { useNamespace } from '
|
|
2
|
+
import { useNamespace } from 'agora-ui-foundation/lib/utilities/use-namespace';
|
|
3
3
|
import { FcrIcon } from 'agora-ui-foundation/lib/components/icon';
|
|
4
4
|
import { FcrIconType } from 'agora-ui-foundation/lib/components/icon/type';
|
|
5
5
|
import { useContext } from 'react';
|
|
@@ -6,7 +6,7 @@ import { FcrIcon } from 'agora-ui-foundation/lib/components/icon';
|
|
|
6
6
|
import { FcrIconType } from 'agora-ui-foundation/lib/components/icon/type';
|
|
7
7
|
import { FcrToolTip } from 'agora-ui-foundation/lib/components/tooltip';
|
|
8
8
|
import { useI18n } from 'agora-ui-foundation/lib/i18n';
|
|
9
|
-
import { useNamespace } from '
|
|
9
|
+
import { useNamespace } from 'agora-ui-foundation/lib/utilities/use-namespace';
|
|
10
10
|
import { StopCloudRecording } from '../action-bar/components/record/stop-record-dialog';
|
|
11
11
|
import { StoreContext } from './main-scene/store.base';
|
|
12
12
|
import { GALLERY_MIN_SIZE } from '../../utilities/constant';
|