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
|
@@ -9,91 +9,5 @@ var _mobxReact = require("mobx-react");
|
|
|
9
9
|
require("./index.css");
|
|
10
10
|
var FcrScreenShareControlBar = (0, _mobxReact.observer)(function (props) {
|
|
11
11
|
return null;
|
|
12
|
-
// const { secondaryWindowProprs } = props;
|
|
13
|
-
// const {
|
|
14
|
-
// screenShareWindowData,
|
|
15
|
-
// zoomIn,
|
|
16
|
-
// zoomOut,
|
|
17
|
-
// fullContainer,
|
|
18
|
-
// setOriginScalc,
|
|
19
|
-
// toggleIsShowToolbar,
|
|
20
|
-
// annotationHasStart,
|
|
21
|
-
// isShowToolbar,
|
|
22
|
-
// isZoomMaxmum,
|
|
23
|
-
// isZoomMinimum,
|
|
24
|
-
// isCurrentOriginal,
|
|
25
|
-
// isAspectRatioPreserved,
|
|
26
|
-
// isAnnotationSupported,
|
|
27
|
-
// allowAnnotationSelfWriteState,
|
|
28
|
-
// participantShareCanWeAnnotation,
|
|
29
|
-
// } = useContext(StoreContext);
|
|
30
|
-
// const transI18n = useI18n();
|
|
31
|
-
|
|
32
|
-
// const hasScreenSharing =
|
|
33
|
-
// screenShareWindowData && screenShareWindowData.videoSourceType === FcrVideoSourceType.SCREEN;
|
|
34
|
-
// const hasLoopbackAudioStream =
|
|
35
|
-
// hasScreenSharing &&
|
|
36
|
-
// screenShareWindowData.hasLoopbackSharing &&
|
|
37
|
-
// screenShareWindowData.hasMicrophoneAudioStream;
|
|
38
|
-
|
|
39
|
-
// const clickFn = useCallback(() => {
|
|
40
|
-
// toggleIsShowToolbar();
|
|
41
|
-
// }, []);
|
|
42
|
-
|
|
43
|
-
// return (
|
|
44
|
-
// <div className="fcr-screen-share-controlbar">
|
|
45
|
-
// <div className="fcr-screen-share-controlbar-left">
|
|
46
|
-
// {screenShareWindowData ? (
|
|
47
|
-
// <>
|
|
48
|
-
// <div className="fcr-screen-share-controlbar-username">
|
|
49
|
-
// {screenShareWindowData.userName}
|
|
50
|
-
// {transI18n('fmt_uimanager_labels_sharing')}
|
|
51
|
-
// </div>
|
|
52
|
-
// <FcrIcon
|
|
53
|
-
// type={
|
|
54
|
-
// !!hasLoopbackAudioStream
|
|
55
|
-
// ? FcrIconType.FCR_DEVICEAUDIOON
|
|
56
|
-
// : FcrIconType.FCR_DEVICEAUDIOOFF
|
|
57
|
-
// }
|
|
58
|
-
// size={22}
|
|
59
|
-
// colors={{ iconPrimary: 'var(--fcr_ui_scene_ramp_green6)' }}
|
|
60
|
-
// style={{ marginRight: '10px' }}
|
|
61
|
-
// />
|
|
62
|
-
// </>
|
|
63
|
-
// ) : null}
|
|
64
|
-
// </div>
|
|
65
|
-
|
|
66
|
-
// <div className="fcr-screen-share-controlbar-center">
|
|
67
|
-
// <FcrScreenShareZoomInBtn
|
|
68
|
-
// isMinimum={secondaryWindowProprs?.isZoomMinimum ?? isZoomMinimum}
|
|
69
|
-
// zoomIn={secondaryWindowProprs?.zoomIn || zoomIn}
|
|
70
|
-
// />
|
|
71
|
-
// <FcrScreenShareZoomOutBtn
|
|
72
|
-
// isMaxmum={secondaryWindowProprs?.isZoomMaxmum ?? isZoomMaxmum}
|
|
73
|
-
// zoomOut={secondaryWindowProprs?.zoomOut || zoomOut}
|
|
74
|
-
// />
|
|
75
|
-
// <FcrScreenShareFullContainerBtn
|
|
76
|
-
// isAdaptived={secondaryWindowProprs?.isAspectRatioPreserved ?? isAspectRatioPreserved}
|
|
77
|
-
// fullContainer={secondaryWindowProprs?.fullContainer || fullContainer}
|
|
78
|
-
// />
|
|
79
|
-
// <FcrScreenShareOrgSizeBtn
|
|
80
|
-
// isOriginal={secondaryWindowProprs?.isCurrentOriginal ?? isCurrentOriginal}
|
|
81
|
-
// setOriginScalc={secondaryWindowProprs?.setOriginScalc || setOriginScalc}
|
|
82
|
-
// />
|
|
83
|
-
// </div>
|
|
84
|
-
// <div className="fcr-screen-share-controlbar-right">
|
|
85
|
-
// {isAnnotationSupported && annotationHasStart && participantShareCanWeAnnotation() && (
|
|
86
|
-
// <FcrScreenShareAnnotationBtn
|
|
87
|
-
// visible={
|
|
88
|
-
// secondaryWindowProprs ? secondaryWindowProprs.isShowToolbarToggle : annotationHasStart
|
|
89
|
-
// }
|
|
90
|
-
// disable={!allowAnnotationSelfWriteState}
|
|
91
|
-
// isShowToolbar={isShowToolbar}
|
|
92
|
-
// clickFn={clickFn}
|
|
93
|
-
// />
|
|
94
|
-
// )}
|
|
95
|
-
// </div>
|
|
96
|
-
// </div>
|
|
97
|
-
// );
|
|
98
12
|
});
|
|
99
13
|
var _default = exports["default"] = FcrScreenShareControlBar;
|
|
@@ -36,6 +36,7 @@ var _shareAudio = require("agora-ui-foundation/lib/components/room-screen-share-
|
|
|
36
36
|
require("./index.css");
|
|
37
37
|
var _type = require("../../type");
|
|
38
38
|
var _type2 = require("agora-ui-foundation/lib/components/icon/type");
|
|
39
|
+
var _env = require("agora-foundation/lib/utilities/env");
|
|
39
40
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
40
41
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
41
42
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -164,7 +165,8 @@ var ThumbnailRender = function ThumbnailRender(_ref3) {
|
|
|
164
165
|
return (0, _tools.uint8ArrayToImageData)({
|
|
165
166
|
buffer: image,
|
|
166
167
|
width: width,
|
|
167
|
-
height: height
|
|
168
|
+
height: height,
|
|
169
|
+
isWindows: (0, _env.isWindows)()
|
|
168
170
|
});
|
|
169
171
|
}, [image]);
|
|
170
172
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
@@ -7,7 +7,7 @@ import { FcrUIFacilityProvider } from '../../providers/facility/type';
|
|
|
7
7
|
import { FcrUIMessageProvider } from '../../providers/message/type';
|
|
8
8
|
import { FcrUIDialogProvider } from '../../providers/dialog/type';
|
|
9
9
|
export default abstract class ShareScreenStoreBase implements FcrUIManagedObject {
|
|
10
|
-
protected logger: import("
|
|
10
|
+
protected logger: import("agora-foundation/lib/logger").Logger;
|
|
11
11
|
protected dialogProvider: FcrUIDialogProvider;
|
|
12
12
|
protected screenShareProvider: FcrUIScreenShareProvider;
|
|
13
13
|
protected boardShareProvider: FcrUIBoardShareProvider;
|
|
@@ -74,6 +74,7 @@ var _type2 = require("fcr-core/lib/type");
|
|
|
74
74
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
75
75
|
var _struct = require("../../providers/screen-share/struct");
|
|
76
76
|
var _type3 = require("agora-ui-foundation/lib/components/icon/type");
|
|
77
|
+
var _type4 = require("../../modules/toast-manager/type");
|
|
77
78
|
var _ShareScreenStoreBase;
|
|
78
79
|
var _initProto, _init_isSharing, _init_displayList, _init_applicationList, _init_selectedShareItem, _init_isWhiteboardSelected, _init_isSharingWithAudio, _init_isSharingInSmoothMode, _loadSelectionListDecs, _setSelectedItemDecs, _ref;
|
|
79
80
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -121,9 +122,8 @@ var ShareScreenStoreBase = exports["default"] = /*#__PURE__*/function () {
|
|
|
121
122
|
});
|
|
122
123
|
_this.dialogProvider.setSharingDisplayBounds(null);
|
|
123
124
|
if (reason === _struct.FcrUIScreenShareStopReason.STOPPED_BY_OTHER) {
|
|
124
|
-
_this.messageProvider.
|
|
125
|
-
|
|
126
|
-
message: (0, _i18n.transI18n)('fmt_share_tips_sharingdisabled')
|
|
125
|
+
_this.messageProvider.showToastByKey({
|
|
126
|
+
key: _type4.FcrUIToastKey.FMT_SHARE_TIPS_SHARINGDISABLED
|
|
127
127
|
});
|
|
128
128
|
_this._replaceShareConfirmDialog(operator);
|
|
129
129
|
}
|
|
@@ -137,11 +137,9 @@ var ShareScreenStoreBase = exports["default"] = /*#__PURE__*/function () {
|
|
|
137
137
|
onScreenShareErrorOccurred: function onScreenShareErrorOccurred(code) {
|
|
138
138
|
if (code === _struct.FcrUIScreenShareErrorCode.NETWORK_DISCONNECTED) {
|
|
139
139
|
if (!_this.facilityProvider.isNetworkConnected) {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
};
|
|
144
|
-
_this.messageProvider.showToast(params);
|
|
140
|
+
_this.messageProvider.showToastByKey({
|
|
141
|
+
key: _type4.FcrUIToastKey.FMT_SCREENTIPS_NETWORK_ERROR_UNABLE_START_SCREEN_SHARE
|
|
142
|
+
});
|
|
145
143
|
return false;
|
|
146
144
|
}
|
|
147
145
|
}
|
|
@@ -320,7 +318,7 @@ var ShareScreenStoreBase = exports["default"] = /*#__PURE__*/function () {
|
|
|
320
318
|
key: "startShareScreen",
|
|
321
319
|
value: function () {
|
|
322
320
|
var _startShareScreen = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2() {
|
|
323
|
-
var
|
|
321
|
+
var captureType, videoSourceId, _t;
|
|
324
322
|
return _regenerator["default"].wrap(function (_context2) {
|
|
325
323
|
while (1) switch (_context2.prev = _context2.next) {
|
|
326
324
|
case 0:
|
|
@@ -334,11 +332,9 @@ var ShareScreenStoreBase = exports["default"] = /*#__PURE__*/function () {
|
|
|
334
332
|
_context2.next = 2;
|
|
335
333
|
break;
|
|
336
334
|
}
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
};
|
|
341
|
-
this.messageProvider.showToast(params);
|
|
335
|
+
this.messageProvider.showToastByKey({
|
|
336
|
+
key: _type4.FcrUIToastKey.FMT_SCREENTIPS_NETWORK_ERROR_UNABLE_START_SCREEN_SHARE
|
|
337
|
+
});
|
|
342
338
|
return _context2.abrupt("return");
|
|
343
339
|
case 2:
|
|
344
340
|
_context2.prev = 2;
|
|
@@ -8,6 +8,7 @@ export default class ElectronShareScreenStore extends ShareScreenStoreBase {
|
|
|
8
8
|
private _sharedConfigDataSource;
|
|
9
9
|
private _renderer;
|
|
10
10
|
private _isSharing;
|
|
11
|
+
private _disposers;
|
|
11
12
|
private _screenShareElectronObserver;
|
|
12
13
|
get audioShareMode(): AudioProcessingChannel;
|
|
13
14
|
constructor(args: ShareScreenStoreArgs);
|
|
@@ -20,7 +21,10 @@ export default class ElectronShareScreenStore extends ShareScreenStoreBase {
|
|
|
20
21
|
private _ensureWindowsAreOpenAndPositioned;
|
|
21
22
|
private _interceptDialogClose;
|
|
22
23
|
private _showControlBar;
|
|
24
|
+
private _handleScreenShareStarted;
|
|
25
|
+
private _handleScreenShareEnded;
|
|
23
26
|
private _hideControlBar;
|
|
27
|
+
private _addReactions;
|
|
24
28
|
private _handleSourceReplaced;
|
|
25
29
|
private _checkAutoStartScreenSharing;
|
|
26
30
|
private _handleDisplayCountUpdated;
|
|
@@ -7,7 +7,6 @@ require("core-js/modules/es.error.cause.js");
|
|
|
7
7
|
require("core-js/modules/es.error.to-string.js");
|
|
8
8
|
require("core-js/modules/es.array.is-array.js");
|
|
9
9
|
require("core-js/modules/es.array.iterator.js");
|
|
10
|
-
require("core-js/modules/es.array.push.js");
|
|
11
10
|
require("core-js/modules/es.date.to-primitive.js");
|
|
12
11
|
require("core-js/modules/es.function.bind.js");
|
|
13
12
|
require("core-js/modules/es.function.name.js");
|
|
@@ -42,10 +41,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
42
41
|
});
|
|
43
42
|
exports["default"] = void 0;
|
|
44
43
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
44
|
+
require("core-js/modules/es.array.concat.js");
|
|
45
45
|
require("core-js/modules/es.array.find.js");
|
|
46
|
+
require("core-js/modules/es.array.for-each.js");
|
|
47
|
+
require("core-js/modules/es.array.push.js");
|
|
46
48
|
require("core-js/modules/es.object.to-string.js");
|
|
47
49
|
require("core-js/modules/esnext.iterator.constructor.js");
|
|
48
50
|
require("core-js/modules/esnext.iterator.find.js");
|
|
51
|
+
require("core-js/modules/esnext.iterator.for-each.js");
|
|
52
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
49
53
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
50
54
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
51
55
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
@@ -69,6 +73,7 @@ var _type3 = require("fcr-core/lib/type");
|
|
|
69
73
|
var _levelConfig = require("../dialog/level-config");
|
|
70
74
|
var _imports = require("fcr-core/lib/imports");
|
|
71
75
|
var _struct = require("../../providers/screen-share/struct");
|
|
76
|
+
var _env = require("agora-foundation/lib/utilities/env");
|
|
72
77
|
var _ElectronShareScreenStore;
|
|
73
78
|
var _initProto, _handleSelectionOpenDecs, _setShareWithAudioStateDecs, _setShareInSmoothModeDecs, _ref;
|
|
74
79
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
|
|
@@ -87,10 +92,12 @@ var ElectronShareScreenStore = exports["default"] = /*#__PURE__*/function (_Shar
|
|
|
87
92
|
_this = _callSuper(this, ElectronShareScreenStore, [args]);
|
|
88
93
|
(0, _defineProperty2["default"])(_this, _ref, void _initProto(_this));
|
|
89
94
|
(0, _defineProperty2["default"])(_this, "_isSharing", false);
|
|
95
|
+
(0, _defineProperty2["default"])(_this, "_disposers", []);
|
|
90
96
|
(0, _defineProperty2["default"])(_this, "_screenShareElectronObserver", {
|
|
91
97
|
onPrepreScreenCapture: _this._showControlBar,
|
|
92
|
-
|
|
93
|
-
|
|
98
|
+
onScreenShareStarted: _this._handleScreenShareStarted,
|
|
99
|
+
onScreenShareErrorOccurred: _this._handleScreenShareEnded,
|
|
100
|
+
onScreenShareStopped: _this._handleScreenShareEnded,
|
|
94
101
|
onShareSourceReplaced: _this._handleSourceReplaced
|
|
95
102
|
});
|
|
96
103
|
_this._windowProvider = args.objectManager.getObject(_objectManager.FcrUIObjectKeys.P_WINDOW_PROVIDER);
|
|
@@ -101,6 +108,7 @@ var ElectronShareScreenStore = exports["default"] = /*#__PURE__*/function (_Shar
|
|
|
101
108
|
_this._renderer = args.objectManager.getObject(_objectManager.FcrUIObjectKeys.RENDERER_WRAPPER);
|
|
102
109
|
_this._renderer.addEventListener(_this._handleDisplayCountUpdated);
|
|
103
110
|
_this.screenShareProvider.addObserver(_this._screenShareElectronObserver);
|
|
111
|
+
_this._addReactions();
|
|
104
112
|
_this._checkAutoStartScreenSharing();
|
|
105
113
|
return _this;
|
|
106
114
|
}
|
|
@@ -181,6 +189,7 @@ var ElectronShareScreenStore = exports["default"] = /*#__PURE__*/function (_Shar
|
|
|
181
189
|
}, {
|
|
182
190
|
key: "release",
|
|
183
191
|
value: function release() {
|
|
192
|
+
this._renderer.setMainWindowDisplaySupport(true);
|
|
184
193
|
this._isSharing = false;
|
|
185
194
|
this._dialogProvider.removeInterceptor(_type2.FcrDialogInterceptorEventName.ON_CLOSE, this._interceptDialogClose);
|
|
186
195
|
this._dialogProvider.closeDialog(_constant.FcrUIDialogKey.SHARE_SCREEN_CONTROL_BAR);
|
|
@@ -191,6 +200,10 @@ var ElectronShareScreenStore = exports["default"] = /*#__PURE__*/function (_Shar
|
|
|
191
200
|
_superPropGet(ElectronShareScreenStore, "release", this, 3)([]);
|
|
192
201
|
this.screenShareProvider.removeObserver(this._screenShareElectronObserver);
|
|
193
202
|
this._renderer.removeEventListener(this._handleDisplayCountUpdated);
|
|
203
|
+
this._disposers.forEach(function (disposer) {
|
|
204
|
+
return disposer();
|
|
205
|
+
});
|
|
206
|
+
this._disposers = [];
|
|
194
207
|
}
|
|
195
208
|
}, {
|
|
196
209
|
key: "_ensureWindowsAreOpenAndPositioned",
|
|
@@ -240,7 +253,7 @@ var ElectronShareScreenStore = exports["default"] = /*#__PURE__*/function (_Shar
|
|
|
240
253
|
isMultiDisplayActive = this._multiDisplayProvider.isActive;
|
|
241
254
|
mainWindow = this._windowProvider.getCurrentWindow();
|
|
242
255
|
if (isMultiDisplayActive) {
|
|
243
|
-
_context2.next =
|
|
256
|
+
_context2.next = 2;
|
|
244
257
|
break;
|
|
245
258
|
}
|
|
246
259
|
if (!mainWindow.isFullScreen()) {
|
|
@@ -258,13 +271,14 @@ var ElectronShareScreenStore = exports["default"] = /*#__PURE__*/function (_Shar
|
|
|
258
271
|
videoWindow.show();
|
|
259
272
|
}
|
|
260
273
|
videoWindow.setAlwaysOnTop(true, 'screen-saver', _levelConfig.WindowRelativeLevel.VIDEO_WINDOW_LEVEL);
|
|
274
|
+
case 2:
|
|
261
275
|
this._ensureWindowsAreOpenAndPositioned(true, isMultiDisplayActive);
|
|
262
276
|
if (isMultiDisplayActive) {
|
|
263
277
|
this._multiDisplayProvider.moveMainWindowToIndexLeastDisplay();
|
|
264
278
|
} else {
|
|
265
279
|
mainWindow.hide();
|
|
266
280
|
}
|
|
267
|
-
case
|
|
281
|
+
case 3:
|
|
268
282
|
case "end":
|
|
269
283
|
return _context2.stop();
|
|
270
284
|
}
|
|
@@ -275,6 +289,23 @@ var ElectronShareScreenStore = exports["default"] = /*#__PURE__*/function (_Shar
|
|
|
275
289
|
}
|
|
276
290
|
return _showControlBar;
|
|
277
291
|
}()
|
|
292
|
+
}, {
|
|
293
|
+
key: "_handleScreenShareStarted",
|
|
294
|
+
value: function _handleScreenShareStarted() {
|
|
295
|
+
var isMultiDisplayActive = this._multiDisplayProvider.isActive;
|
|
296
|
+
|
|
297
|
+
// 单屏幕模式下,需要通知主进程屏幕共享已开启,不支持显示主窗口,避免主窗口和control bar 重复显示
|
|
298
|
+
if (!isMultiDisplayActive) {
|
|
299
|
+
this._renderer.setMainWindowDisplaySupport(false);
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
}, {
|
|
303
|
+
key: "_handleScreenShareEnded",
|
|
304
|
+
value: function _handleScreenShareEnded() {
|
|
305
|
+
// 通知主进程屏幕共享已关闭,支持显示主窗口
|
|
306
|
+
this._renderer.setMainWindowDisplaySupport(true);
|
|
307
|
+
this._hideControlBar();
|
|
308
|
+
}
|
|
278
309
|
}, {
|
|
279
310
|
key: "_hideControlBar",
|
|
280
311
|
value: function _hideControlBar() {
|
|
@@ -284,6 +315,22 @@ var ElectronShareScreenStore = exports["default"] = /*#__PURE__*/function (_Shar
|
|
|
284
315
|
var mainWindow = this._windowProvider.getCurrentWindow();
|
|
285
316
|
mainWindow.show();
|
|
286
317
|
}
|
|
318
|
+
}, {
|
|
319
|
+
key: "_addReactions",
|
|
320
|
+
value: function _addReactions() {
|
|
321
|
+
var _this3 = this;
|
|
322
|
+
// 监听多屏模式状态变化,当用户正在屏幕共享时同步更新主窗口显示支持
|
|
323
|
+
this._disposers.push((0, _mobx.reaction)(function () {
|
|
324
|
+
return _this3._multiDisplayProvider.isActive;
|
|
325
|
+
}, function (isActive) {
|
|
326
|
+
if (_this3.screenShareProvider.isLocalUserScreenSharing) {
|
|
327
|
+
// 单屏模式下(isActive = false),禁用主窗口显示支持
|
|
328
|
+
// 多屏模式下(isActive = true),启用主窗口显示支持
|
|
329
|
+
_this3._renderer.setMainWindowDisplaySupport(isActive);
|
|
330
|
+
_this3.logger.info("Multi-display mode changed to ".concat(isActive ? 'active' : 'inactive', ", setMainWindowDisplaySupport(").concat(isActive, ")"));
|
|
331
|
+
}
|
|
332
|
+
}));
|
|
333
|
+
}
|
|
287
334
|
}, {
|
|
288
335
|
key: "_handleSourceReplaced",
|
|
289
336
|
value: function _handleSourceReplaced() {
|
|
@@ -336,7 +383,7 @@ var ElectronShareScreenStore = exports["default"] = /*#__PURE__*/function (_Shar
|
|
|
336
383
|
key: "_handleDisplayCountUpdated",
|
|
337
384
|
value: function () {
|
|
338
385
|
var _handleDisplayCountUpdated2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee4(event) {
|
|
339
|
-
var eventAction, _this$selectedShareIt, type, id, sharingTargetBounds, displayList, display, windowList, window, selectionBounds, _t;
|
|
386
|
+
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;
|
|
340
387
|
return _regenerator["default"].wrap(function (_context4) {
|
|
341
388
|
while (1) switch (_context4.prev = _context4.next) {
|
|
342
389
|
case 0:
|
|
@@ -346,82 +393,109 @@ var ElectronShareScreenStore = exports["default"] = /*#__PURE__*/function (_Shar
|
|
|
346
393
|
// ||
|
|
347
394
|
// eventAction === FcrUIRendererEventAction.SCREEN_DISPLAY_METRICS_CHANGED
|
|
348
395
|
)) {
|
|
349
|
-
_context4.next =
|
|
396
|
+
_context4.next = 14;
|
|
350
397
|
break;
|
|
351
398
|
}
|
|
352
399
|
this.logger.info("action: ".concat(eventAction));
|
|
400
|
+
if (!(eventAction === _constant.FcrUIRendererEventAction.SCREEN_DISPLAY_REMOVED)) {
|
|
401
|
+
_context4.next = 3;
|
|
402
|
+
break;
|
|
403
|
+
}
|
|
404
|
+
removedDisplay = event.display;
|
|
405
|
+
if (!(
|
|
406
|
+
// macOS: some versions do not emit screen track callbacks when a display is unplugged.
|
|
407
|
+
(0, _env.isMac)() && removedDisplay && this.screenShareProvider.isLocalUserScreenSharing && ((_this$selectedShareIt = this.selectedShareItem) === null || _this$selectedShareIt === void 0 ? void 0 : _this$selectedShareIt.type) === _type.FcrUIShareType.DISPLAY && this.selectedShareItem.bounds)) {
|
|
408
|
+
_context4.next = 3;
|
|
409
|
+
break;
|
|
410
|
+
}
|
|
411
|
+
_this$selectedShareIt2 = this.selectedShareItem.bounds, x = _this$selectedShareIt2.x, y = _this$selectedShareIt2.y;
|
|
412
|
+
_removedDisplay$bound = removedDisplay.bounds, displayX = _removedDisplay$bound.x, displayY = _removedDisplay$bound.y, width = _removedDisplay$bound.width, height = _removedDisplay$bound.height;
|
|
413
|
+
isPointInRemovedDisplay = x >= displayX && x < displayX + width && y >= displayY && y < displayY + height;
|
|
414
|
+
if (isPointInRemovedDisplay) {
|
|
415
|
+
_context4.next = 1;
|
|
416
|
+
break;
|
|
417
|
+
}
|
|
418
|
+
this.logger.info("removed display ".concat(removedDisplay.id, " does not match shared display, skip stop"));
|
|
419
|
+
return _context4.abrupt("return");
|
|
420
|
+
case 1:
|
|
421
|
+
this.logger.info("shared display removed (".concat(removedDisplay.id, "), stop screen sharing"));
|
|
422
|
+
_context4.next = 2;
|
|
423
|
+
return this.screenShareProvider.stopShare();
|
|
424
|
+
case 2:
|
|
425
|
+
return _context4.abrupt("return");
|
|
426
|
+
case 3:
|
|
353
427
|
if (!this.screenShareProvider.isLocalUserScreenSharing) {
|
|
354
|
-
_context4.next =
|
|
428
|
+
_context4.next = 14;
|
|
355
429
|
break;
|
|
356
430
|
}
|
|
357
431
|
if (this.selectedShareItem) {
|
|
358
|
-
_context4.next =
|
|
432
|
+
_context4.next = 4;
|
|
359
433
|
break;
|
|
360
434
|
}
|
|
361
435
|
this.logger.warn('no selected share item, supposed to be non-null');
|
|
362
436
|
return _context4.abrupt("return");
|
|
363
|
-
case
|
|
364
|
-
_this$
|
|
437
|
+
case 4:
|
|
438
|
+
_this$selectedShareIt3 = this.selectedShareItem, type = _this$selectedShareIt3.type, id = _this$selectedShareIt3.id;
|
|
365
439
|
if (!(type === _type.FcrUIShareType.DISPLAY)) {
|
|
366
|
-
_context4.next =
|
|
440
|
+
_context4.next = 8;
|
|
367
441
|
break;
|
|
368
442
|
}
|
|
369
|
-
_context4.next =
|
|
443
|
+
_context4.next = 5;
|
|
370
444
|
return this.screenShareProvider.getDisplayList();
|
|
371
|
-
case
|
|
445
|
+
case 5:
|
|
372
446
|
displayList = _context4.sent;
|
|
373
447
|
display = displayList.find(function (item) {
|
|
374
448
|
return item.id === id;
|
|
375
449
|
});
|
|
376
450
|
if (!display) {
|
|
377
|
-
_context4.next =
|
|
451
|
+
_context4.next = 6;
|
|
378
452
|
break;
|
|
379
453
|
}
|
|
380
454
|
sharingTargetBounds = display.bounds;
|
|
381
|
-
_context4.next =
|
|
455
|
+
_context4.next = 7;
|
|
382
456
|
break;
|
|
383
|
-
case
|
|
457
|
+
case 6:
|
|
384
458
|
this.logger.warn("can not find display info for shared screen id: ".concat(id));
|
|
385
459
|
return _context4.abrupt("return");
|
|
386
|
-
case
|
|
387
|
-
_context4.next =
|
|
460
|
+
case 7:
|
|
461
|
+
_context4.next = 13;
|
|
388
462
|
break;
|
|
389
|
-
case
|
|
390
|
-
_context4.next =
|
|
463
|
+
case 8:
|
|
464
|
+
_context4.next = 9;
|
|
391
465
|
return this.screenShareProvider.getWindowList();
|
|
392
|
-
case
|
|
466
|
+
case 9:
|
|
393
467
|
windowList = _context4.sent;
|
|
394
468
|
window = windowList.find(function (item) {
|
|
395
469
|
return item.id === id;
|
|
396
470
|
});
|
|
397
471
|
if (!window) {
|
|
398
|
-
_context4.next =
|
|
472
|
+
_context4.next = 10;
|
|
399
473
|
break;
|
|
400
474
|
}
|
|
401
475
|
sharingTargetBounds = window.bounds;
|
|
402
|
-
_context4.next =
|
|
476
|
+
_context4.next = 13;
|
|
403
477
|
break;
|
|
404
|
-
case
|
|
478
|
+
case 10:
|
|
405
479
|
this.logger.warn("can not find window info for shared window id: ".concat(id));
|
|
406
480
|
|
|
407
481
|
// 共享的窗口被隐藏时,尝试使用 selectionBounds 作为位置依据
|
|
408
|
-
_context4.prev =
|
|
482
|
+
_context4.prev = 11;
|
|
409
483
|
selectionBounds = this.screenShareProvider.selectionBounds;
|
|
410
484
|
sharingTargetBounds = this._renderer.getDisplayMatching(selectionBounds).bounds;
|
|
411
|
-
_context4.next =
|
|
485
|
+
_context4.next = 13;
|
|
412
486
|
break;
|
|
413
|
-
case
|
|
414
|
-
_context4.prev =
|
|
415
|
-
_t = _context4["catch"](
|
|
487
|
+
case 12:
|
|
488
|
+
_context4.prev = 12;
|
|
489
|
+
_t = _context4["catch"](11);
|
|
416
490
|
this.logger.warn("get selection bounds error, can not set video window position: ".concat(_t));
|
|
417
491
|
return _context4.abrupt("return");
|
|
418
|
-
case
|
|
492
|
+
case 13:
|
|
419
493
|
this.screenShareProvider.changeSelectionBounds(sharingTargetBounds, _struct.FcrUISelectionBoundsChangeReason.DISPLAY_CHANGE);
|
|
420
|
-
case
|
|
494
|
+
case 14:
|
|
421
495
|
case "end":
|
|
422
496
|
return _context4.stop();
|
|
423
497
|
}
|
|
424
|
-
}, _callee4, this, [[
|
|
498
|
+
}, _callee4, this, [[11, 12]]);
|
|
425
499
|
}));
|
|
426
500
|
function _handleDisplayCountUpdated(_x) {
|
|
427
501
|
return _handleDisplayCountUpdated2.apply(this, arguments);
|
|
@@ -431,5 +505,5 @@ var ElectronShareScreenStore = exports["default"] = /*#__PURE__*/function (_Shar
|
|
|
431
505
|
}]);
|
|
432
506
|
}(_store["default"]);
|
|
433
507
|
_ElectronShareScreenStore = ElectronShareScreenStore;
|
|
434
|
-
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ElectronShareScreenStore, [[_handleSelectionOpenDecs, 18, "handleSelectionOpen"], [_setShareWithAudioStateDecs, 18, "setShareWithAudioState"], [_setShareInSmoothModeDecs, 18, "setShareInSmoothMode"], [_decorator.bound, 2, "setShareAudioMode"], [_decorator.bound, 2, "setSelectedItem"], [[_decorator.bound, _decorator.trace], 2, "release"], [_decorator.bound, 2, "_interceptDialogClose"], [_decorator.bound, 2, "_showControlBar"], [_decorator.bound, 2, "_hideControlBar"], [_decorator.bound, 2, "_handleSourceReplaced"], [_decorator.bound, 2, "_handleDisplayCountUpdated"]], [], 0, void 0, _store["default"]).e, 1);
|
|
508
|
+
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ElectronShareScreenStore, [[_handleSelectionOpenDecs, 18, "handleSelectionOpen"], [_setShareWithAudioStateDecs, 18, "setShareWithAudioState"], [_setShareInSmoothModeDecs, 18, "setShareInSmoothMode"], [_decorator.bound, 2, "setShareAudioMode"], [_decorator.bound, 2, "setSelectedItem"], [[_decorator.bound, _decorator.trace], 2, "release"], [_decorator.bound, 2, "_interceptDialogClose"], [_decorator.bound, 2, "_showControlBar"], [_decorator.bound, 2, "_handleScreenShareStarted"], [_decorator.bound, 2, "_handleScreenShareEnded"], [_decorator.bound, 2, "_hideControlBar"], [_decorator.bound, 2, "_handleSourceReplaced"], [_decorator.bound, 2, "_handleDisplayCountUpdated"]], [], 0, void 0, _store["default"]).e, 1);
|
|
435
509
|
_initProto = _applyDecs$e[0];
|
|
@@ -13,7 +13,7 @@ require("core-js/modules/esnext.iterator.constructor.js");
|
|
|
13
13
|
require("core-js/modules/esnext.iterator.map.js");
|
|
14
14
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
15
15
|
var _mobxReact = require("mobx-react");
|
|
16
|
-
var _useNamespace = require("
|
|
16
|
+
var _useNamespace = require("agora-ui-foundation/lib/utilities/use-namespace");
|
|
17
17
|
require("./index.css");
|
|
18
18
|
var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
19
19
|
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
@@ -18,10 +18,11 @@ var _dropMenu = require("agora-ui-foundation/lib/components/drop-menu");
|
|
|
18
18
|
var _react = require("react");
|
|
19
19
|
var _store = require("./main-scene/store.base");
|
|
20
20
|
var _liveStreaming = _interopRequireDefault(require("./assets/live-streaming.gif"));
|
|
21
|
-
var _useNamespace = require("
|
|
21
|
+
var _useNamespace = require("agora-ui-foundation/lib/utilities/use-namespace");
|
|
22
22
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
23
|
-
var
|
|
23
|
+
var _copyText = require("agora-ui-foundation/lib/utilities/copy-text");
|
|
24
24
|
var _constant = require("../../utilities/constant");
|
|
25
|
+
var _type2 = require("../../modules/toast-manager/type");
|
|
25
26
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
26
27
|
var LiveStreamingState = exports.LiveStreamingState = (0, _mobxReact.observer)(function () {
|
|
27
28
|
var _useContext = (0, _react.useContext)(_store.StoreContext),
|
|
@@ -81,15 +82,13 @@ var LiveStreamingState = exports.LiveStreamingState = (0, _mobxReact.observer)(f
|
|
|
81
82
|
onButtonClick: function onButtonClick() {
|
|
82
83
|
setVisible(false);
|
|
83
84
|
toggleLayoutBarLock(false);
|
|
84
|
-
(0,
|
|
85
|
+
(0, _copyText.copyText)(liveStreamingPlayUrl).then(function () {
|
|
85
86
|
showToast({
|
|
86
|
-
|
|
87
|
-
message: transI18n('fmt_statusbar_status_coppied')
|
|
87
|
+
key: _type2.FcrUIToastKey.FMT_STATUSBAR_STATUS_COPPIED
|
|
88
88
|
});
|
|
89
89
|
})["catch"](function () {
|
|
90
90
|
showToast({
|
|
91
|
-
|
|
92
|
-
message: transI18n('fmt_statusbar_tips_copyfailed')
|
|
91
|
+
key: _type2.FcrUIToastKey.FMT_STATUSBAR_TIPS_COPYFAILED
|
|
93
92
|
});
|
|
94
93
|
});
|
|
95
94
|
}
|
|
@@ -77,7 +77,7 @@ var StateBarBrowserStore = exports["default"] = /*#__PURE__*/function (_StateBar
|
|
|
77
77
|
get: function get() {
|
|
78
78
|
// 浏览器环境中,如果正在共享屏幕则禁用布局切换
|
|
79
79
|
// 复用 state-bar/store.browser.ts 中的逻辑
|
|
80
|
-
return this.isSharingScreen
|
|
80
|
+
return this.isSharingScreen;
|
|
81
81
|
}
|
|
82
82
|
}]);
|
|
83
83
|
}(_store.StateBarMainSceneStoreBase);
|
|
@@ -104,7 +104,7 @@ var StateBarElectronStore = exports["default"] = /*#__PURE__*/function (_StateBa
|
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
// 如果正在共享屏幕,则禁用布局切换
|
|
107
|
-
return this.isSharingScreen
|
|
107
|
+
return this.isSharingScreen;
|
|
108
108
|
}
|
|
109
109
|
}]);
|
|
110
110
|
}(_store.StateBarMainSceneStoreBase);
|
|
@@ -19,7 +19,8 @@ var _react = require("react");
|
|
|
19
19
|
var _store = require("./main-scene/store.base");
|
|
20
20
|
require("./meeting-detail.css");
|
|
21
21
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
22
|
-
var
|
|
22
|
+
var _copyText = require("agora-ui-foundation/lib/utilities/copy-text");
|
|
23
|
+
var _type2 = require("../../modules/toast-manager/type");
|
|
23
24
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
24
25
|
var CopyState = /*#__PURE__*/function (CopyState) {
|
|
25
26
|
CopyState[CopyState["COPYINIT"] = 1] = "COPYINIT";
|
|
@@ -56,41 +57,35 @@ var MeetingDetails = exports.MeetingDetails = (0, _mobxReact.observer)(function
|
|
|
56
57
|
function handleCopyMeetingId(copyContent) {
|
|
57
58
|
if (!copyContent) return;
|
|
58
59
|
var content = meetingId ? copyContent : copyContent.replace(/\s+/g, '');
|
|
59
|
-
(0,
|
|
60
|
+
(0, _copyText.copyText)(content).then(function () {
|
|
60
61
|
showToast({
|
|
61
|
-
|
|
62
|
-
message: t('fmt_statusbar_status_coppied')
|
|
62
|
+
key: _type2.FcrUIToastKey.FMT_STATUSBAR_STATUS_COPPIED
|
|
63
63
|
});
|
|
64
64
|
})["catch"](function () {
|
|
65
65
|
showToast({
|
|
66
|
-
|
|
67
|
-
message: t('fmt_information_tips_numbercopyfailed')
|
|
66
|
+
key: _type2.FcrUIToastKey.FMT_INFORMATION_TIPS_NUMBERCOPYFAILED
|
|
68
67
|
});
|
|
69
68
|
});
|
|
70
69
|
}
|
|
71
70
|
function handleCopyMeetingPassword(password) {
|
|
72
|
-
(0,
|
|
71
|
+
(0, _copyText.copyText)(password).then(function () {
|
|
73
72
|
showToast({
|
|
74
|
-
|
|
75
|
-
message: t('fmt_uimanager_tips_passwordcopied')
|
|
73
|
+
key: _type2.FcrUIToastKey.FMT_UIMANAGER_TIPS_PASSWORDCOPIED
|
|
76
74
|
});
|
|
77
75
|
})["catch"](function () {
|
|
78
76
|
showToast({
|
|
79
|
-
|
|
80
|
-
message: t('fmt_settings_tips_passwordcopyfailed')
|
|
77
|
+
key: _type2.FcrUIToastKey.FMT_SETTINGS_TIPS_PASSWORDCOPYFAILED
|
|
81
78
|
});
|
|
82
79
|
});
|
|
83
80
|
}
|
|
84
81
|
function handlerCopyMeetingShareLink(shareLink) {
|
|
85
|
-
(0,
|
|
82
|
+
(0, _copyText.copyText)(shareLink).then(function () {
|
|
86
83
|
showToast({
|
|
87
|
-
|
|
88
|
-
message: t('fmt_additional_tips_invitation')
|
|
84
|
+
key: _type2.FcrUIToastKey.FMT_ADDITIONAL_TIPS_INVITATION
|
|
89
85
|
});
|
|
90
86
|
})["catch"](function () {
|
|
91
87
|
showToast({
|
|
92
|
-
|
|
93
|
-
message: t('fmt_additional_tips_invitationfailed')
|
|
88
|
+
key: _type2.FcrUIToastKey.FMT_ADDITIONAL_TIPS_INVITATIONFAILED
|
|
94
89
|
});
|
|
95
90
|
});
|
|
96
91
|
}
|
|
@@ -103,20 +98,18 @@ var MeetingDetails = exports.MeetingDetails = (0, _mobxReact.observer)(function
|
|
|
103
98
|
copyIcon: _type.FcrIconType.FCR_RESET,
|
|
104
99
|
copyText: t('fmt_meeting_call_voice_call_button_copy_info')
|
|
105
100
|
});
|
|
106
|
-
(0,
|
|
101
|
+
(0, _copyText.copyText)(roomDetailCopyText).then(function () {
|
|
107
102
|
setCopyInfoState({
|
|
108
103
|
copyState: CopyState.COPIED,
|
|
109
104
|
copyIcon: _type.FcrIconType.FCR_CHOOSEIT,
|
|
110
105
|
copyText: t('fmt_statusbar_status_coppied')
|
|
111
106
|
});
|
|
112
107
|
showToast({
|
|
113
|
-
|
|
114
|
-
message: t('fmt_meeting_mainwindow_topbar_left_popup_toast_copy_done')
|
|
108
|
+
key: _type2.FcrUIToastKey.FMT_MEETING_MAINWINDOW_TOPBAR_LEFT_POPUP_TOAST_COPY_DONE
|
|
115
109
|
});
|
|
116
110
|
})["catch"](function () {
|
|
117
111
|
showToast({
|
|
118
|
-
|
|
119
|
-
message: t('fmt_sharing_tips_copyfull_failed')
|
|
112
|
+
key: _type2.FcrUIToastKey.FMT_SHARING_TIPS_COPYFULL_FAILED
|
|
120
113
|
});
|
|
121
114
|
});
|
|
122
115
|
}
|