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
|
@@ -1,720 +0,0 @@
|
|
|
1
|
-
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
|
-
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
3
|
-
import _createClass from "@babel/runtime/helpers/createClass";
|
|
4
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
5
|
-
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
6
|
-
import "core-js/modules/es.error.cause.js";
|
|
7
|
-
import "core-js/modules/es.error.to-string.js";
|
|
8
|
-
import "core-js/modules/es.array.for-each.js";
|
|
9
|
-
import "core-js/modules/es.array.from.js";
|
|
10
|
-
import "core-js/modules/es.array.iterator.js";
|
|
11
|
-
import "core-js/modules/es.map.js";
|
|
12
|
-
import "core-js/modules/es.object.to-string.js";
|
|
13
|
-
import "core-js/modules/es.set.js";
|
|
14
|
-
import "core-js/modules/es.string.iterator.js";
|
|
15
|
-
import "core-js/modules/esnext.iterator.constructor.js";
|
|
16
|
-
import "core-js/modules/esnext.iterator.for-each.js";
|
|
17
|
-
import "core-js/modules/esnext.map.delete-all.js";
|
|
18
|
-
import "core-js/modules/esnext.map.emplace.js";
|
|
19
|
-
import "core-js/modules/esnext.map.every.js";
|
|
20
|
-
import "core-js/modules/esnext.map.filter.js";
|
|
21
|
-
import "core-js/modules/esnext.map.find.js";
|
|
22
|
-
import "core-js/modules/esnext.map.find-key.js";
|
|
23
|
-
import "core-js/modules/esnext.map.includes.js";
|
|
24
|
-
import "core-js/modules/esnext.map.key-of.js";
|
|
25
|
-
import "core-js/modules/esnext.map.map-keys.js";
|
|
26
|
-
import "core-js/modules/esnext.map.map-values.js";
|
|
27
|
-
import "core-js/modules/esnext.map.merge.js";
|
|
28
|
-
import "core-js/modules/esnext.map.reduce.js";
|
|
29
|
-
import "core-js/modules/esnext.map.some.js";
|
|
30
|
-
import "core-js/modules/esnext.map.update.js";
|
|
31
|
-
import "core-js/modules/esnext.set.add-all.js";
|
|
32
|
-
import "core-js/modules/esnext.set.delete-all.js";
|
|
33
|
-
import "core-js/modules/esnext.set.difference.v2.js";
|
|
34
|
-
import "core-js/modules/esnext.set.difference.js";
|
|
35
|
-
import "core-js/modules/esnext.set.every.js";
|
|
36
|
-
import "core-js/modules/esnext.set.filter.js";
|
|
37
|
-
import "core-js/modules/esnext.set.find.js";
|
|
38
|
-
import "core-js/modules/esnext.set.intersection.v2.js";
|
|
39
|
-
import "core-js/modules/esnext.set.intersection.js";
|
|
40
|
-
import "core-js/modules/esnext.set.is-disjoint-from.v2.js";
|
|
41
|
-
import "core-js/modules/esnext.set.is-disjoint-from.js";
|
|
42
|
-
import "core-js/modules/esnext.set.is-subset-of.v2.js";
|
|
43
|
-
import "core-js/modules/esnext.set.is-subset-of.js";
|
|
44
|
-
import "core-js/modules/esnext.set.is-superset-of.v2.js";
|
|
45
|
-
import "core-js/modules/esnext.set.is-superset-of.js";
|
|
46
|
-
import "core-js/modules/esnext.set.join.js";
|
|
47
|
-
import "core-js/modules/esnext.set.map.js";
|
|
48
|
-
import "core-js/modules/esnext.set.reduce.js";
|
|
49
|
-
import "core-js/modules/esnext.set.some.js";
|
|
50
|
-
import "core-js/modules/esnext.set.symmetric-difference.v2.js";
|
|
51
|
-
import "core-js/modules/esnext.set.symmetric-difference.js";
|
|
52
|
-
import "core-js/modules/esnext.set.union.v2.js";
|
|
53
|
-
import "core-js/modules/esnext.set.union.js";
|
|
54
|
-
import "core-js/modules/web.dom-collections.for-each.js";
|
|
55
|
-
import "core-js/modules/web.dom-collections.iterator.js";
|
|
56
|
-
import { ipcRenderer } from 'electron';
|
|
57
|
-
import { BrowserWindowIPCAction } from '../ipc-protocol';
|
|
58
|
-
/**
|
|
59
|
-
* BrowserWindow 代理类
|
|
60
|
-
* 通过 IPC 通信与主进程中的 BrowserWindow 进行交互
|
|
61
|
-
*/
|
|
62
|
-
export var BrowserWindowProxyImpl = /*#__PURE__*/function () {
|
|
63
|
-
function BrowserWindowProxyImpl(windowId) {
|
|
64
|
-
_classCallCheck(this, BrowserWindowProxyImpl);
|
|
65
|
-
_defineProperty(this, "_eventListeners", new Map());
|
|
66
|
-
_defineProperty(this, "_isDestroyed", false);
|
|
67
|
-
_defineProperty(this, "_runtimeEventListener", null);
|
|
68
|
-
_defineProperty(this, "_addBrowserWindowEventListener", function (listener) {
|
|
69
|
-
ipcRenderer.addListener('browser-window-event', listener);
|
|
70
|
-
});
|
|
71
|
-
_defineProperty(this, "_removeBrowserWindowEventListener", function (listener) {
|
|
72
|
-
ipcRenderer.removeListener('browser-window-event', listener);
|
|
73
|
-
});
|
|
74
|
-
// 如果没有提供 windowId,尝试从 window 对象获取
|
|
75
|
-
this._windowId = windowId;
|
|
76
|
-
this._setupEventListener();
|
|
77
|
-
console.log("BrowserWindowProxy created for windowId: ".concat(this._windowId));
|
|
78
|
-
}
|
|
79
|
-
return _createClass(BrowserWindowProxyImpl, [{
|
|
80
|
-
key: "windowId",
|
|
81
|
-
get: function get() {
|
|
82
|
-
return this._windowId;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* 检查窗口是否已销毁
|
|
87
|
-
*/
|
|
88
|
-
}, {
|
|
89
|
-
key: "isDestroyed",
|
|
90
|
-
value: function isDestroyed() {
|
|
91
|
-
return this._isDestroyed;
|
|
92
|
-
}
|
|
93
|
-
}, {
|
|
94
|
-
key: "moveTop",
|
|
95
|
-
value: function () {
|
|
96
|
-
var _moveTop = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
97
|
-
return _regeneratorRuntime.wrap(function (_context) {
|
|
98
|
-
while (1) switch (_context.prev = _context.next) {
|
|
99
|
-
case 0:
|
|
100
|
-
_context.next = 1;
|
|
101
|
-
return this._sendIpcRequest(BrowserWindowIPCAction.MOVE_TOP);
|
|
102
|
-
case 1:
|
|
103
|
-
case "end":
|
|
104
|
-
return _context.stop();
|
|
105
|
-
}
|
|
106
|
-
}, _callee, this);
|
|
107
|
-
}));
|
|
108
|
-
function moveTop() {
|
|
109
|
-
return _moveTop.apply(this, arguments);
|
|
110
|
-
}
|
|
111
|
-
return moveTop;
|
|
112
|
-
}()
|
|
113
|
-
}, {
|
|
114
|
-
key: "setPosition",
|
|
115
|
-
value: function () {
|
|
116
|
-
var _setPosition = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(x, y) {
|
|
117
|
-
var params;
|
|
118
|
-
return _regeneratorRuntime.wrap(function (_context2) {
|
|
119
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
120
|
-
case 0:
|
|
121
|
-
params = {
|
|
122
|
-
x: x,
|
|
123
|
-
y: y
|
|
124
|
-
};
|
|
125
|
-
_context2.next = 1;
|
|
126
|
-
return this._sendIpcRequest(BrowserWindowIPCAction.SET_POSITION, params);
|
|
127
|
-
case 1:
|
|
128
|
-
case "end":
|
|
129
|
-
return _context2.stop();
|
|
130
|
-
}
|
|
131
|
-
}, _callee2, this);
|
|
132
|
-
}));
|
|
133
|
-
function setPosition(_x, _x2) {
|
|
134
|
-
return _setPosition.apply(this, arguments);
|
|
135
|
-
}
|
|
136
|
-
return setPosition;
|
|
137
|
-
}()
|
|
138
|
-
}, {
|
|
139
|
-
key: "getPosition",
|
|
140
|
-
value: function () {
|
|
141
|
-
var _getPosition = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
|
|
142
|
-
var response;
|
|
143
|
-
return _regeneratorRuntime.wrap(function (_context3) {
|
|
144
|
-
while (1) switch (_context3.prev = _context3.next) {
|
|
145
|
-
case 0:
|
|
146
|
-
_context3.next = 1;
|
|
147
|
-
return this._sendIpcRequest(BrowserWindowIPCAction.GET_POSITION);
|
|
148
|
-
case 1:
|
|
149
|
-
response = _context3.sent;
|
|
150
|
-
return _context3.abrupt("return", response.data);
|
|
151
|
-
case 2:
|
|
152
|
-
case "end":
|
|
153
|
-
return _context3.stop();
|
|
154
|
-
}
|
|
155
|
-
}, _callee3, this);
|
|
156
|
-
}));
|
|
157
|
-
function getPosition() {
|
|
158
|
-
return _getPosition.apply(this, arguments);
|
|
159
|
-
}
|
|
160
|
-
return getPosition;
|
|
161
|
-
}()
|
|
162
|
-
}, {
|
|
163
|
-
key: "close",
|
|
164
|
-
value: function () {
|
|
165
|
-
var _close = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {
|
|
166
|
-
return _regeneratorRuntime.wrap(function (_context4) {
|
|
167
|
-
while (1) switch (_context4.prev = _context4.next) {
|
|
168
|
-
case 0:
|
|
169
|
-
_context4.next = 1;
|
|
170
|
-
return this._sendIpcRequest(BrowserWindowIPCAction.CLOSE);
|
|
171
|
-
case 1:
|
|
172
|
-
case "end":
|
|
173
|
-
return _context4.stop();
|
|
174
|
-
}
|
|
175
|
-
}, _callee4, this);
|
|
176
|
-
}));
|
|
177
|
-
function close() {
|
|
178
|
-
return _close.apply(this, arguments);
|
|
179
|
-
}
|
|
180
|
-
return close;
|
|
181
|
-
}()
|
|
182
|
-
}, {
|
|
183
|
-
key: "show",
|
|
184
|
-
value: function () {
|
|
185
|
-
var _show = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5() {
|
|
186
|
-
return _regeneratorRuntime.wrap(function (_context5) {
|
|
187
|
-
while (1) switch (_context5.prev = _context5.next) {
|
|
188
|
-
case 0:
|
|
189
|
-
_context5.next = 1;
|
|
190
|
-
return this._sendIpcRequest(BrowserWindowIPCAction.SHOW);
|
|
191
|
-
case 1:
|
|
192
|
-
case "end":
|
|
193
|
-
return _context5.stop();
|
|
194
|
-
}
|
|
195
|
-
}, _callee5, this);
|
|
196
|
-
}));
|
|
197
|
-
function show() {
|
|
198
|
-
return _show.apply(this, arguments);
|
|
199
|
-
}
|
|
200
|
-
return show;
|
|
201
|
-
}()
|
|
202
|
-
}, {
|
|
203
|
-
key: "hide",
|
|
204
|
-
value: function () {
|
|
205
|
-
var _hide = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6() {
|
|
206
|
-
return _regeneratorRuntime.wrap(function (_context6) {
|
|
207
|
-
while (1) switch (_context6.prev = _context6.next) {
|
|
208
|
-
case 0:
|
|
209
|
-
_context6.next = 1;
|
|
210
|
-
return this._sendIpcRequest(BrowserWindowIPCAction.HIDE);
|
|
211
|
-
case 1:
|
|
212
|
-
case "end":
|
|
213
|
-
return _context6.stop();
|
|
214
|
-
}
|
|
215
|
-
}, _callee6, this);
|
|
216
|
-
}));
|
|
217
|
-
function hide() {
|
|
218
|
-
return _hide.apply(this, arguments);
|
|
219
|
-
}
|
|
220
|
-
return hide;
|
|
221
|
-
}()
|
|
222
|
-
}, {
|
|
223
|
-
key: "focus",
|
|
224
|
-
value: function () {
|
|
225
|
-
var _focus = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7() {
|
|
226
|
-
return _regeneratorRuntime.wrap(function (_context7) {
|
|
227
|
-
while (1) switch (_context7.prev = _context7.next) {
|
|
228
|
-
case 0:
|
|
229
|
-
_context7.next = 1;
|
|
230
|
-
return this._sendIpcRequest(BrowserWindowIPCAction.FOCUS);
|
|
231
|
-
case 1:
|
|
232
|
-
case "end":
|
|
233
|
-
return _context7.stop();
|
|
234
|
-
}
|
|
235
|
-
}, _callee7, this);
|
|
236
|
-
}));
|
|
237
|
-
function focus() {
|
|
238
|
-
return _focus.apply(this, arguments);
|
|
239
|
-
}
|
|
240
|
-
return focus;
|
|
241
|
-
}()
|
|
242
|
-
}, {
|
|
243
|
-
key: "maximize",
|
|
244
|
-
value: function () {
|
|
245
|
-
var _maximize = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee8() {
|
|
246
|
-
return _regeneratorRuntime.wrap(function (_context8) {
|
|
247
|
-
while (1) switch (_context8.prev = _context8.next) {
|
|
248
|
-
case 0:
|
|
249
|
-
_context8.next = 1;
|
|
250
|
-
return this._sendIpcRequest(BrowserWindowIPCAction.MAXIMIZE);
|
|
251
|
-
case 1:
|
|
252
|
-
case "end":
|
|
253
|
-
return _context8.stop();
|
|
254
|
-
}
|
|
255
|
-
}, _callee8, this);
|
|
256
|
-
}));
|
|
257
|
-
function maximize() {
|
|
258
|
-
return _maximize.apply(this, arguments);
|
|
259
|
-
}
|
|
260
|
-
return maximize;
|
|
261
|
-
}()
|
|
262
|
-
}, {
|
|
263
|
-
key: "unmaximize",
|
|
264
|
-
value: function () {
|
|
265
|
-
var _unmaximize = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee9() {
|
|
266
|
-
return _regeneratorRuntime.wrap(function (_context9) {
|
|
267
|
-
while (1) switch (_context9.prev = _context9.next) {
|
|
268
|
-
case 0:
|
|
269
|
-
_context9.next = 1;
|
|
270
|
-
return this._sendIpcRequest(BrowserWindowIPCAction.UNMAXIMIZE);
|
|
271
|
-
case 1:
|
|
272
|
-
case "end":
|
|
273
|
-
return _context9.stop();
|
|
274
|
-
}
|
|
275
|
-
}, _callee9, this);
|
|
276
|
-
}));
|
|
277
|
-
function unmaximize() {
|
|
278
|
-
return _unmaximize.apply(this, arguments);
|
|
279
|
-
}
|
|
280
|
-
return unmaximize;
|
|
281
|
-
}()
|
|
282
|
-
}, {
|
|
283
|
-
key: "isVisible",
|
|
284
|
-
value: function () {
|
|
285
|
-
var _isVisible = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee0() {
|
|
286
|
-
var response;
|
|
287
|
-
return _regeneratorRuntime.wrap(function (_context0) {
|
|
288
|
-
while (1) switch (_context0.prev = _context0.next) {
|
|
289
|
-
case 0:
|
|
290
|
-
_context0.next = 1;
|
|
291
|
-
return this._sendIpcRequest(BrowserWindowIPCAction.IS_VISIBLE);
|
|
292
|
-
case 1:
|
|
293
|
-
response = _context0.sent;
|
|
294
|
-
return _context0.abrupt("return", response.data);
|
|
295
|
-
case 2:
|
|
296
|
-
case "end":
|
|
297
|
-
return _context0.stop();
|
|
298
|
-
}
|
|
299
|
-
}, _callee0, this);
|
|
300
|
-
}));
|
|
301
|
-
function isVisible() {
|
|
302
|
-
return _isVisible.apply(this, arguments);
|
|
303
|
-
}
|
|
304
|
-
return isVisible;
|
|
305
|
-
}()
|
|
306
|
-
}, {
|
|
307
|
-
key: "isMaximized",
|
|
308
|
-
value: function () {
|
|
309
|
-
var _isMaximized = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee1() {
|
|
310
|
-
var response;
|
|
311
|
-
return _regeneratorRuntime.wrap(function (_context1) {
|
|
312
|
-
while (1) switch (_context1.prev = _context1.next) {
|
|
313
|
-
case 0:
|
|
314
|
-
_context1.next = 1;
|
|
315
|
-
return this._sendIpcRequest(BrowserWindowIPCAction.IS_MAXIMIZED);
|
|
316
|
-
case 1:
|
|
317
|
-
response = _context1.sent;
|
|
318
|
-
return _context1.abrupt("return", response.data);
|
|
319
|
-
case 2:
|
|
320
|
-
case "end":
|
|
321
|
-
return _context1.stop();
|
|
322
|
-
}
|
|
323
|
-
}, _callee1, this);
|
|
324
|
-
}));
|
|
325
|
-
function isMaximized() {
|
|
326
|
-
return _isMaximized.apply(this, arguments);
|
|
327
|
-
}
|
|
328
|
-
return isMaximized;
|
|
329
|
-
}()
|
|
330
|
-
}, {
|
|
331
|
-
key: "isFullScreen",
|
|
332
|
-
value: function () {
|
|
333
|
-
var _isFullScreen = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee10() {
|
|
334
|
-
var response;
|
|
335
|
-
return _regeneratorRuntime.wrap(function (_context10) {
|
|
336
|
-
while (1) switch (_context10.prev = _context10.next) {
|
|
337
|
-
case 0:
|
|
338
|
-
_context10.next = 1;
|
|
339
|
-
return this._sendIpcRequest(BrowserWindowIPCAction.IS_FULLSCREEN);
|
|
340
|
-
case 1:
|
|
341
|
-
response = _context10.sent;
|
|
342
|
-
return _context10.abrupt("return", response.data);
|
|
343
|
-
case 2:
|
|
344
|
-
case "end":
|
|
345
|
-
return _context10.stop();
|
|
346
|
-
}
|
|
347
|
-
}, _callee10, this);
|
|
348
|
-
}));
|
|
349
|
-
function isFullScreen() {
|
|
350
|
-
return _isFullScreen.apply(this, arguments);
|
|
351
|
-
}
|
|
352
|
-
return isFullScreen;
|
|
353
|
-
}()
|
|
354
|
-
}, {
|
|
355
|
-
key: "getTitle",
|
|
356
|
-
value: function () {
|
|
357
|
-
var _getTitle = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee11() {
|
|
358
|
-
var response;
|
|
359
|
-
return _regeneratorRuntime.wrap(function (_context11) {
|
|
360
|
-
while (1) switch (_context11.prev = _context11.next) {
|
|
361
|
-
case 0:
|
|
362
|
-
_context11.next = 1;
|
|
363
|
-
return this._sendIpcRequest(BrowserWindowIPCAction.GET_TITLE);
|
|
364
|
-
case 1:
|
|
365
|
-
response = _context11.sent;
|
|
366
|
-
return _context11.abrupt("return", response.data);
|
|
367
|
-
case 2:
|
|
368
|
-
case "end":
|
|
369
|
-
return _context11.stop();
|
|
370
|
-
}
|
|
371
|
-
}, _callee11, this);
|
|
372
|
-
}));
|
|
373
|
-
function getTitle() {
|
|
374
|
-
return _getTitle.apply(this, arguments);
|
|
375
|
-
}
|
|
376
|
-
return getTitle;
|
|
377
|
-
}()
|
|
378
|
-
}, {
|
|
379
|
-
key: "getBounds",
|
|
380
|
-
value: function () {
|
|
381
|
-
var _getBounds = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee12() {
|
|
382
|
-
var response;
|
|
383
|
-
return _regeneratorRuntime.wrap(function (_context12) {
|
|
384
|
-
while (1) switch (_context12.prev = _context12.next) {
|
|
385
|
-
case 0:
|
|
386
|
-
_context12.next = 1;
|
|
387
|
-
return this._sendIpcRequest(BrowserWindowIPCAction.GET_BOUNDS);
|
|
388
|
-
case 1:
|
|
389
|
-
response = _context12.sent;
|
|
390
|
-
return _context12.abrupt("return", response.data);
|
|
391
|
-
case 2:
|
|
392
|
-
case "end":
|
|
393
|
-
return _context12.stop();
|
|
394
|
-
}
|
|
395
|
-
}, _callee12, this);
|
|
396
|
-
}));
|
|
397
|
-
function getBounds() {
|
|
398
|
-
return _getBounds.apply(this, arguments);
|
|
399
|
-
}
|
|
400
|
-
return getBounds;
|
|
401
|
-
}()
|
|
402
|
-
/**
|
|
403
|
-
* 窗口设置方法
|
|
404
|
-
*/
|
|
405
|
-
}, {
|
|
406
|
-
key: "setBounds",
|
|
407
|
-
value: (function () {
|
|
408
|
-
var _setBounds = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee13(bounds) {
|
|
409
|
-
var params;
|
|
410
|
-
return _regeneratorRuntime.wrap(function (_context13) {
|
|
411
|
-
while (1) switch (_context13.prev = _context13.next) {
|
|
412
|
-
case 0:
|
|
413
|
-
params = {
|
|
414
|
-
bounds: bounds
|
|
415
|
-
};
|
|
416
|
-
_context13.next = 1;
|
|
417
|
-
return this._sendIpcRequest(BrowserWindowIPCAction.SET_BOUNDS, params);
|
|
418
|
-
case 1:
|
|
419
|
-
case "end":
|
|
420
|
-
return _context13.stop();
|
|
421
|
-
}
|
|
422
|
-
}, _callee13, this);
|
|
423
|
-
}));
|
|
424
|
-
function setBounds(_x3) {
|
|
425
|
-
return _setBounds.apply(this, arguments);
|
|
426
|
-
}
|
|
427
|
-
return setBounds;
|
|
428
|
-
}())
|
|
429
|
-
}, {
|
|
430
|
-
key: "setFullScreen",
|
|
431
|
-
value: function () {
|
|
432
|
-
var _setFullScreen = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee14(fullscreen) {
|
|
433
|
-
var params;
|
|
434
|
-
return _regeneratorRuntime.wrap(function (_context14) {
|
|
435
|
-
while (1) switch (_context14.prev = _context14.next) {
|
|
436
|
-
case 0:
|
|
437
|
-
params = {
|
|
438
|
-
fullscreen: fullscreen
|
|
439
|
-
};
|
|
440
|
-
_context14.next = 1;
|
|
441
|
-
return this._sendIpcRequest(BrowserWindowIPCAction.SET_FULLSCREEN, params);
|
|
442
|
-
case 1:
|
|
443
|
-
case "end":
|
|
444
|
-
return _context14.stop();
|
|
445
|
-
}
|
|
446
|
-
}, _callee14, this);
|
|
447
|
-
}));
|
|
448
|
-
function setFullScreen(_x4) {
|
|
449
|
-
return _setFullScreen.apply(this, arguments);
|
|
450
|
-
}
|
|
451
|
-
return setFullScreen;
|
|
452
|
-
}()
|
|
453
|
-
}, {
|
|
454
|
-
key: "setIgnoreMouseEvents",
|
|
455
|
-
value: function () {
|
|
456
|
-
var _setIgnoreMouseEvents = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee15(ignore, options) {
|
|
457
|
-
var params;
|
|
458
|
-
return _regeneratorRuntime.wrap(function (_context15) {
|
|
459
|
-
while (1) switch (_context15.prev = _context15.next) {
|
|
460
|
-
case 0:
|
|
461
|
-
params = {
|
|
462
|
-
ignore: ignore,
|
|
463
|
-
options: options
|
|
464
|
-
};
|
|
465
|
-
_context15.next = 1;
|
|
466
|
-
return this._sendIpcRequest(BrowserWindowIPCAction.SET_IGNORE_MOUSE_EVENTS, params);
|
|
467
|
-
case 1:
|
|
468
|
-
case "end":
|
|
469
|
-
return _context15.stop();
|
|
470
|
-
}
|
|
471
|
-
}, _callee15, this);
|
|
472
|
-
}));
|
|
473
|
-
function setIgnoreMouseEvents(_x5, _x6) {
|
|
474
|
-
return _setIgnoreMouseEvents.apply(this, arguments);
|
|
475
|
-
}
|
|
476
|
-
return setIgnoreMouseEvents;
|
|
477
|
-
}()
|
|
478
|
-
}, {
|
|
479
|
-
key: "setAlwaysOnTop",
|
|
480
|
-
value: function () {
|
|
481
|
-
var _setAlwaysOnTop = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee16(flag, level, relativeLevel) {
|
|
482
|
-
var params;
|
|
483
|
-
return _regeneratorRuntime.wrap(function (_context16) {
|
|
484
|
-
while (1) switch (_context16.prev = _context16.next) {
|
|
485
|
-
case 0:
|
|
486
|
-
params = {
|
|
487
|
-
flag: flag,
|
|
488
|
-
level: level,
|
|
489
|
-
relativeLevel: relativeLevel
|
|
490
|
-
};
|
|
491
|
-
_context16.next = 1;
|
|
492
|
-
return this._sendIpcRequest(BrowserWindowIPCAction.SET_ALWAYS_ON_TOP, params);
|
|
493
|
-
case 1:
|
|
494
|
-
case "end":
|
|
495
|
-
return _context16.stop();
|
|
496
|
-
}
|
|
497
|
-
}, _callee16, this);
|
|
498
|
-
}));
|
|
499
|
-
function setAlwaysOnTop(_x7, _x8, _x9) {
|
|
500
|
-
return _setAlwaysOnTop.apply(this, arguments);
|
|
501
|
-
}
|
|
502
|
-
return setAlwaysOnTop;
|
|
503
|
-
}()
|
|
504
|
-
}, {
|
|
505
|
-
key: "setPreventClose",
|
|
506
|
-
value: function () {
|
|
507
|
-
var _setPreventClose = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee17(prevent) {
|
|
508
|
-
var params;
|
|
509
|
-
return _regeneratorRuntime.wrap(function (_context17) {
|
|
510
|
-
while (1) switch (_context17.prev = _context17.next) {
|
|
511
|
-
case 0:
|
|
512
|
-
params = {
|
|
513
|
-
prevent: prevent
|
|
514
|
-
};
|
|
515
|
-
_context17.next = 1;
|
|
516
|
-
return this._sendIpcRequest(BrowserWindowIPCAction.SET_PREVENT_CLOSE, params);
|
|
517
|
-
case 1:
|
|
518
|
-
case "end":
|
|
519
|
-
return _context17.stop();
|
|
520
|
-
}
|
|
521
|
-
}, _callee17, this);
|
|
522
|
-
}));
|
|
523
|
-
function setPreventClose(_x0) {
|
|
524
|
-
return _setPreventClose.apply(this, arguments);
|
|
525
|
-
}
|
|
526
|
-
return setPreventClose;
|
|
527
|
-
}()
|
|
528
|
-
/**
|
|
529
|
-
* 事件监听方法
|
|
530
|
-
*/
|
|
531
|
-
}, {
|
|
532
|
-
key: "addListener",
|
|
533
|
-
value: function addListener(event, listener) {
|
|
534
|
-
if (!this._eventListeners.has(event)) {
|
|
535
|
-
this._eventListeners.set(event, new Set());
|
|
536
|
-
// 向主进程注册事件监听
|
|
537
|
-
this._registerEventListener([event]);
|
|
538
|
-
}
|
|
539
|
-
this._eventListeners.get(event).add(listener);
|
|
540
|
-
}
|
|
541
|
-
}, {
|
|
542
|
-
key: "removeListener",
|
|
543
|
-
value: function removeListener(event, listener) {
|
|
544
|
-
var listeners = this._eventListeners.get(event);
|
|
545
|
-
if (listeners) {
|
|
546
|
-
listeners["delete"](listener);
|
|
547
|
-
if (listeners.size === 0) {
|
|
548
|
-
this._eventListeners["delete"](event);
|
|
549
|
-
// 向主进程取消事件监听
|
|
550
|
-
this._unregisterEventListener([event]);
|
|
551
|
-
}
|
|
552
|
-
}
|
|
553
|
-
}
|
|
554
|
-
}, {
|
|
555
|
-
key: "removeAllListeners",
|
|
556
|
-
value: function removeAllListeners(event) {
|
|
557
|
-
if (event) {
|
|
558
|
-
this._eventListeners["delete"](event);
|
|
559
|
-
this._unregisterEventListener([event]);
|
|
560
|
-
} else {
|
|
561
|
-
var events = Array.from(this._eventListeners.keys());
|
|
562
|
-
this._eventListeners.clear();
|
|
563
|
-
this._unregisterEventListener(events);
|
|
564
|
-
}
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
/**
|
|
568
|
-
* 销毁代理对象
|
|
569
|
-
*/
|
|
570
|
-
}, {
|
|
571
|
-
key: "destroy",
|
|
572
|
-
value: function destroy() {
|
|
573
|
-
this.removeAllListeners();
|
|
574
|
-
this._removeEventListener();
|
|
575
|
-
this._isDestroyed = true;
|
|
576
|
-
}
|
|
577
|
-
|
|
578
|
-
/**
|
|
579
|
-
* 私有方法
|
|
580
|
-
*/
|
|
581
|
-
}, {
|
|
582
|
-
key: "_sendIpcRequest",
|
|
583
|
-
value: (function () {
|
|
584
|
-
var _sendIpcRequest2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee18(action, payload) {
|
|
585
|
-
var request, result, _t;
|
|
586
|
-
return _regeneratorRuntime.wrap(function (_context18) {
|
|
587
|
-
while (1) switch (_context18.prev = _context18.next) {
|
|
588
|
-
case 0:
|
|
589
|
-
if (!this._isDestroyed) {
|
|
590
|
-
_context18.next = 1;
|
|
591
|
-
break;
|
|
592
|
-
}
|
|
593
|
-
throw new Error('BrowserWindow proxy has been destroyed');
|
|
594
|
-
case 1:
|
|
595
|
-
request = {
|
|
596
|
-
windowId: this._windowId,
|
|
597
|
-
action: action,
|
|
598
|
-
payload: payload
|
|
599
|
-
};
|
|
600
|
-
_context18.prev = 2;
|
|
601
|
-
_context18.next = 3;
|
|
602
|
-
return ipcRenderer.invoke('browser-window-request', request);
|
|
603
|
-
case 3:
|
|
604
|
-
result = _context18.sent;
|
|
605
|
-
return _context18.abrupt("return", {
|
|
606
|
-
success: true,
|
|
607
|
-
data: result
|
|
608
|
-
});
|
|
609
|
-
case 4:
|
|
610
|
-
_context18.prev = 4;
|
|
611
|
-
_t = _context18["catch"](2);
|
|
612
|
-
throw new Error(_t instanceof Error ? _t.message : 'Unknown error');
|
|
613
|
-
case 5:
|
|
614
|
-
case "end":
|
|
615
|
-
return _context18.stop();
|
|
616
|
-
}
|
|
617
|
-
}, _callee18, this, [[2, 4]]);
|
|
618
|
-
}));
|
|
619
|
-
function _sendIpcRequest(_x1, _x10) {
|
|
620
|
-
return _sendIpcRequest2.apply(this, arguments);
|
|
621
|
-
}
|
|
622
|
-
return _sendIpcRequest;
|
|
623
|
-
}())
|
|
624
|
-
}, {
|
|
625
|
-
key: "_registerEventListener",
|
|
626
|
-
value: function () {
|
|
627
|
-
var _registerEventListener2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee19(events) {
|
|
628
|
-
var params;
|
|
629
|
-
return _regeneratorRuntime.wrap(function (_context19) {
|
|
630
|
-
while (1) switch (_context19.prev = _context19.next) {
|
|
631
|
-
case 0:
|
|
632
|
-
params = {
|
|
633
|
-
events: events
|
|
634
|
-
};
|
|
635
|
-
_context19.next = 1;
|
|
636
|
-
return this._sendIpcRequest(BrowserWindowIPCAction.REGISTER_EVENT_LISTENER, params);
|
|
637
|
-
case 1:
|
|
638
|
-
case "end":
|
|
639
|
-
return _context19.stop();
|
|
640
|
-
}
|
|
641
|
-
}, _callee19, this);
|
|
642
|
-
}));
|
|
643
|
-
function _registerEventListener(_x11) {
|
|
644
|
-
return _registerEventListener2.apply(this, arguments);
|
|
645
|
-
}
|
|
646
|
-
return _registerEventListener;
|
|
647
|
-
}()
|
|
648
|
-
}, {
|
|
649
|
-
key: "_unregisterEventListener",
|
|
650
|
-
value: function () {
|
|
651
|
-
var _unregisterEventListener2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee20(events) {
|
|
652
|
-
var params;
|
|
653
|
-
return _regeneratorRuntime.wrap(function (_context20) {
|
|
654
|
-
while (1) switch (_context20.prev = _context20.next) {
|
|
655
|
-
case 0:
|
|
656
|
-
params = {
|
|
657
|
-
events: events
|
|
658
|
-
};
|
|
659
|
-
_context20.next = 1;
|
|
660
|
-
return this._sendIpcRequest(BrowserWindowIPCAction.UNREGISTER_EVENT_LISTENER, params);
|
|
661
|
-
case 1:
|
|
662
|
-
case "end":
|
|
663
|
-
return _context20.stop();
|
|
664
|
-
}
|
|
665
|
-
}, _callee20, this);
|
|
666
|
-
}));
|
|
667
|
-
function _unregisterEventListener(_x12) {
|
|
668
|
-
return _unregisterEventListener2.apply(this, arguments);
|
|
669
|
-
}
|
|
670
|
-
return _unregisterEventListener;
|
|
671
|
-
}()
|
|
672
|
-
}, {
|
|
673
|
-
key: "_setupEventListener",
|
|
674
|
-
value: function _setupEventListener() {
|
|
675
|
-
var _this = this;
|
|
676
|
-
// 使用 renderer 封装的 browser-window-event 监听方法
|
|
677
|
-
this._runtimeEventListener = function (_event, notification) {
|
|
678
|
-
_this._handleWindowEvent(_event, notification);
|
|
679
|
-
};
|
|
680
|
-
this._addBrowserWindowEventListener(this._runtimeEventListener);
|
|
681
|
-
}
|
|
682
|
-
}, {
|
|
683
|
-
key: "_removeEventListener",
|
|
684
|
-
value: function _removeEventListener() {
|
|
685
|
-
if (this._runtimeEventListener) {
|
|
686
|
-
this._removeBrowserWindowEventListener(this._runtimeEventListener);
|
|
687
|
-
this._runtimeEventListener = null;
|
|
688
|
-
}
|
|
689
|
-
}
|
|
690
|
-
}, {
|
|
691
|
-
key: "_handleWindowEvent",
|
|
692
|
-
value: function _handleWindowEvent(_event, notification) {
|
|
693
|
-
if (notification.windowId !== this._windowId) {
|
|
694
|
-
return;
|
|
695
|
-
}
|
|
696
|
-
var eventName = this._mapEventActionToName(notification.event);
|
|
697
|
-
var listeners = this._eventListeners.get(eventName);
|
|
698
|
-
if (listeners) {
|
|
699
|
-
listeners.forEach(function (listener) {
|
|
700
|
-
try {
|
|
701
|
-
listener(notification.data);
|
|
702
|
-
} catch (error) {
|
|
703
|
-
console.error("Error in event listener for ".concat(eventName, ":"), error);
|
|
704
|
-
}
|
|
705
|
-
});
|
|
706
|
-
}
|
|
707
|
-
|
|
708
|
-
// 处理特殊事件
|
|
709
|
-
if (notification.event === BrowserWindowIPCAction.EVENT_CLOSED) {
|
|
710
|
-
this._isDestroyed = true;
|
|
711
|
-
}
|
|
712
|
-
}
|
|
713
|
-
}, {
|
|
714
|
-
key: "_mapEventActionToName",
|
|
715
|
-
value: function _mapEventActionToName(action) {
|
|
716
|
-
var eventMap = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, BrowserWindowIPCAction.EVENT_SHOW, 'show'), BrowserWindowIPCAction.EVENT_HIDE, 'hide'), BrowserWindowIPCAction.EVENT_RESIZED, 'resized'), BrowserWindowIPCAction.EVENT_MOVED, 'moved'), BrowserWindowIPCAction.EVENT_CLOSE, 'close'), BrowserWindowIPCAction.EVENT_CLOSED, 'closed'), BrowserWindowIPCAction.EVENT_FOCUS, 'focus'), BrowserWindowIPCAction.EVENT_BLUR, 'blur');
|
|
717
|
-
return eventMap[action] || action;
|
|
718
|
-
}
|
|
719
|
-
}]);
|
|
720
|
-
}();
|