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
|
@@ -46,6 +46,7 @@ import { CameraControl } from './components/carmera';
|
|
|
46
46
|
import { BoundaryDetector } from './components/boundary-detector';
|
|
47
47
|
import { AppsPopover } from './components/apps-popover';
|
|
48
48
|
import { usePopoverWatcher } from './hooks';
|
|
49
|
+
import { AnnotationButton } from './components/annotation-button';
|
|
49
50
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
50
51
|
var HIDDEN_TIMEOUT = 3000;
|
|
51
52
|
var NAV_HEIGHT = 84;
|
|
@@ -279,8 +280,8 @@ var ControlBar = observer(function () {
|
|
|
279
280
|
draggableArea = _useContext5.draggableArea,
|
|
280
281
|
currentShareDisplayId = _useContext5.currentShareDisplayId,
|
|
281
282
|
updateWindowBounds = _useContext5.updateWindowBounds,
|
|
282
|
-
|
|
283
|
-
|
|
283
|
+
setPopoverArea = _useContext5.setPopoverArea,
|
|
284
|
+
resetPopoverArea = _useContext5.resetPopoverArea;
|
|
284
285
|
var updatePosition = useContext(DragStateUpdaterContext);
|
|
285
286
|
var _useContext6 = useContext(ControlBarCalculationUpdaterContext),
|
|
286
287
|
setDimensions = _useContext6.setDimensions,
|
|
@@ -337,7 +338,7 @@ var ControlBar = observer(function () {
|
|
|
337
338
|
};
|
|
338
339
|
}
|
|
339
340
|
}, [visibility]);
|
|
340
|
-
usePopoverWatcher(containerRef,
|
|
341
|
+
usePopoverWatcher(containerRef, setPopoverArea, resetPopoverArea);
|
|
341
342
|
return /*#__PURE__*/_jsxs("div", {
|
|
342
343
|
ref: containerRef,
|
|
343
344
|
className: rootClassNames,
|
|
@@ -441,7 +442,7 @@ var MeetingControlGroup = observer(function () {
|
|
|
441
442
|
margin: '0 8px',
|
|
442
443
|
height: '20px'
|
|
443
444
|
}
|
|
444
|
-
}), /*#__PURE__*/_jsx(ShareScreenSection, {}), liveStreamingButtonVisible && /*#__PURE__*/_jsx(StopLiveStreamingButton, {}), recordingButtonVisible && /*#__PURE__*/_jsx(CloudRecordingButtons, {}), /*#__PURE__*/_jsx(MoreActionsSection, {}), /*#__PURE__*/_jsx(FcrDivider, {
|
|
445
|
+
}), /*#__PURE__*/_jsx(ShareScreenSection, {}), /*#__PURE__*/_jsx(AnnotationSection, {}), liveStreamingButtonVisible && /*#__PURE__*/_jsx(StopLiveStreamingButton, {}), recordingButtonVisible && /*#__PURE__*/_jsx(CloudRecordingButtons, {}), /*#__PURE__*/_jsx(MoreActionsSection, {}), /*#__PURE__*/_jsx(FcrDivider, {
|
|
445
446
|
style: {
|
|
446
447
|
margin: '0 8px',
|
|
447
448
|
height: '20px'
|
|
@@ -469,6 +470,7 @@ var SecurityMenuSection = /*#__PURE__*/memo(function (_ref4) {
|
|
|
469
470
|
}
|
|
470
471
|
}, [isShareActionNavHidden]);
|
|
471
472
|
return /*#__PURE__*/_jsx(FcrPopover, {
|
|
473
|
+
overlayClassName: "share-action-nav__security-popover",
|
|
472
474
|
showArrow: false,
|
|
473
475
|
mouseEnterDelay: 0,
|
|
474
476
|
overlayInnerStyle: {
|
|
@@ -509,22 +511,53 @@ var ShareScreenSection = /*#__PURE__*/memo(function () {
|
|
|
509
511
|
});
|
|
510
512
|
});
|
|
511
513
|
|
|
512
|
-
//
|
|
513
|
-
var
|
|
514
|
+
// 开启批注区块
|
|
515
|
+
var AnnotationSection = observer(function () {
|
|
516
|
+
var _useContext11 = useContext(StoreContext),
|
|
517
|
+
toggleAnnotation = _useContext11.toggleAnnotation,
|
|
518
|
+
allowWriteAnnotation = _useContext11.allowWriteAnnotation,
|
|
519
|
+
clearAnnotation = _useContext11.clearAnnotation,
|
|
520
|
+
isWriteAnnotationAllowed = _useContext11.isWriteAnnotationAllowed,
|
|
521
|
+
hasPermissionAllowWriteAnnotation = _useContext11.hasPermissionAllowWriteAnnotation,
|
|
522
|
+
hasAnnotationStartPermission = _useContext11.hasAnnotationStartPermission;
|
|
523
|
+
var _useContext12 = useContext(ControlBarCalculationContext),
|
|
524
|
+
isShareActionNavHidden = _useContext12.isShareActionNavHidden;
|
|
514
525
|
var _useState11 = useState(false),
|
|
515
526
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
516
|
-
|
|
517
|
-
|
|
527
|
+
visible = _useState12[0],
|
|
528
|
+
setVisible = _useState12[1];
|
|
529
|
+
useEffect(function () {
|
|
530
|
+
if (isShareActionNavHidden) {
|
|
531
|
+
setVisible(false);
|
|
532
|
+
}
|
|
533
|
+
}, [isShareActionNavHidden]);
|
|
534
|
+
return /*#__PURE__*/_jsx(AnnotationButton, {
|
|
535
|
+
onAllowWriteClick: allowWriteAnnotation,
|
|
536
|
+
onCleanAnnotationClick: clearAnnotation,
|
|
537
|
+
onAnnotationButtonClick: toggleAnnotation,
|
|
538
|
+
isWriteAllowed: isWriteAnnotationAllowed,
|
|
539
|
+
haPermissionAllowWrite: hasPermissionAllowWriteAnnotation,
|
|
540
|
+
visible: visible,
|
|
541
|
+
setVisible: setVisible
|
|
542
|
+
});
|
|
543
|
+
});
|
|
544
|
+
|
|
545
|
+
// 更多操作区块
|
|
546
|
+
var MoreActionsSection = observer(function () {
|
|
518
547
|
var _useState13 = useState(false),
|
|
519
548
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
var
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
var
|
|
527
|
-
|
|
549
|
+
moreVisible = _useState14[0],
|
|
550
|
+
setMoreVisible = _useState14[1];
|
|
551
|
+
var _useState15 = useState(false),
|
|
552
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
553
|
+
isShowMeetingDetailPortal = _useState16[0],
|
|
554
|
+
setIsShowMeetingDetailPortal = _useState16[1];
|
|
555
|
+
var _useContext13 = useContext(StoreContext),
|
|
556
|
+
newMessageCount = _useContext13.newMessageCount,
|
|
557
|
+
hasChatPermission = _useContext13.hasChatPermission,
|
|
558
|
+
setAppActionbarPopoverVisible = _useContext13.setAppActionbarPopoverVisible;
|
|
559
|
+
var _useContext14 = useContext(ControlBarCalculationContext),
|
|
560
|
+
isShareActionNavHidden = _useContext14.isShareActionNavHidden;
|
|
528
561
|
useEffect(function () {
|
|
529
562
|
if (!moreVisible) {
|
|
530
563
|
setIsShowMeetingDetailPortal(false);
|
|
@@ -570,17 +603,17 @@ var MoreActionsSection = observer(function () {
|
|
|
570
603
|
|
|
571
604
|
// 音频分享区块
|
|
572
605
|
var ShareAudioSection = observer(function () {
|
|
573
|
-
var
|
|
574
|
-
setShareWithAudioState =
|
|
575
|
-
isSharingWithAudio =
|
|
576
|
-
setShareAudioMode =
|
|
577
|
-
audioShareMode =
|
|
578
|
-
var
|
|
579
|
-
isShareActionNavHidden =
|
|
580
|
-
var
|
|
581
|
-
|
|
582
|
-
popoverVisible =
|
|
583
|
-
setPopoverVisible =
|
|
606
|
+
var _useContext15 = useContext(StoreContext),
|
|
607
|
+
setShareWithAudioState = _useContext15.setShareWithAudioState,
|
|
608
|
+
isSharingWithAudio = _useContext15.isSharingWithAudio,
|
|
609
|
+
setShareAudioMode = _useContext15.setShareAudioMode,
|
|
610
|
+
audioShareMode = _useContext15.audioShareMode;
|
|
611
|
+
var _useContext16 = useContext(ControlBarCalculationContext),
|
|
612
|
+
isShareActionNavHidden = _useContext16.isShareActionNavHidden;
|
|
613
|
+
var _useState17 = useState(false),
|
|
614
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
615
|
+
popoverVisible = _useState18[0],
|
|
616
|
+
setPopoverVisible = _useState18[1];
|
|
584
617
|
useEffect(function () {
|
|
585
618
|
if (isShareActionNavHidden) {
|
|
586
619
|
setPopoverVisible(false);
|
|
@@ -598,19 +631,19 @@ var ShareAudioSection = observer(function () {
|
|
|
598
631
|
|
|
599
632
|
// 分享状态导航(控制栏下部)
|
|
600
633
|
var ShareStateNavigation = /*#__PURE__*/memo(function () {
|
|
601
|
-
var
|
|
602
|
-
handlerStopShare =
|
|
603
|
-
handleMouseEnter =
|
|
604
|
-
handleMouseLeave =
|
|
605
|
-
setStateNavArea =
|
|
634
|
+
var _useContext17 = useContext(StoreContext),
|
|
635
|
+
handlerStopShare = _useContext17.handlerStopShare,
|
|
636
|
+
handleMouseEnter = _useContext17.handleMouseEnter,
|
|
637
|
+
handleMouseLeave = _useContext17.handleMouseLeave,
|
|
638
|
+
setStateNavArea = _useContext17.setStateNavArea;
|
|
606
639
|
var calculation = useContext(ControlBarCalculationContext);
|
|
607
|
-
var
|
|
608
|
-
setIsShareActionNavHidden =
|
|
609
|
-
setNavPosition =
|
|
610
|
-
moveBottom =
|
|
611
|
-
moveTop =
|
|
612
|
-
restartActiveTask =
|
|
613
|
-
cancelActiveTask =
|
|
640
|
+
var _useContext18 = useContext(ControlBarCalculationUpdaterContext),
|
|
641
|
+
setIsShareActionNavHidden = _useContext18.setIsShareActionNavHidden,
|
|
642
|
+
setNavPosition = _useContext18.setNavPosition,
|
|
643
|
+
moveBottom = _useContext18.moveBottom,
|
|
644
|
+
moveTop = _useContext18.moveTop,
|
|
645
|
+
restartActiveTask = _useContext18.restartActiveTask,
|
|
646
|
+
cancelActiveTask = _useContext18.cancelActiveTask;
|
|
614
647
|
|
|
615
648
|
// 从store获取当前位置和相关方法
|
|
616
649
|
var navCurrentPosition = calculation.navPosition; // 从store获取
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
|
-
import
|
|
3
|
-
import { useEffect, useState } from 'react';
|
|
2
|
+
import { useEffect } from 'react';
|
|
4
3
|
import { useI18n } from 'agora-ui-foundation/lib/i18n';
|
|
5
4
|
import { FcrSelect } from 'agora-ui-foundation/lib/components/select';
|
|
6
5
|
import { FcrToolTip } from 'agora-ui-foundation/lib/components/tooltip';
|
|
7
6
|
import { FcrButton } from 'agora-ui-foundation/lib/components/button';
|
|
8
7
|
import { observer } from 'mobx-react';
|
|
9
|
-
import { useNamespace } from '
|
|
8
|
+
import { useNamespace } from 'agora-ui-foundation/lib/utilities/use-namespace';
|
|
10
9
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
10
|
export var MicrophoneDetection = observer(function (_ref) {
|
|
12
11
|
var microphoneDeviceId = _ref.microphoneDeviceId,
|
|
@@ -18,10 +17,6 @@ export var MicrophoneDetection = observer(function (_ref) {
|
|
|
18
17
|
microphoneDetecting = _ref.microphoneDetecting;
|
|
19
18
|
var ns = useNamespace('microphone-detection');
|
|
20
19
|
var t = useI18n();
|
|
21
|
-
var _useState = useState(false),
|
|
22
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
23
|
-
isDetecting = _useState2[0],
|
|
24
|
-
setIsDetecting = _useState2[1];
|
|
25
20
|
useEffect(function () {
|
|
26
21
|
return function () {
|
|
27
22
|
stopMicrophoneTest();
|
|
@@ -41,11 +36,10 @@ export var MicrophoneDetection = observer(function (_ref) {
|
|
|
41
36
|
trigger: "hover",
|
|
42
37
|
placement: "top",
|
|
43
38
|
mouseEnterDelay: 0.2,
|
|
44
|
-
content: t(disabled ? 'fmt_settings_popup_disable_while_speaker_detected' :
|
|
39
|
+
content: t(disabled ? 'fmt_settings_popup_disable_while_speaker_detected' : microphoneDetecting ? 'fmt_setting_tips_mic' : 'fmt_premeeting_setting_label_speak_into_your_microphone'),
|
|
45
40
|
children: /*#__PURE__*/_jsx(FcrButton, {
|
|
46
41
|
onClick: function onClick() {
|
|
47
|
-
|
|
48
|
-
if (isDetecting) {
|
|
42
|
+
if (microphoneDetecting) {
|
|
49
43
|
stopMicrophoneTest();
|
|
50
44
|
} else {
|
|
51
45
|
startMicrophoneTest();
|
|
@@ -6,7 +6,7 @@ import { FcrSelect } from 'agora-ui-foundation/lib/components/select';
|
|
|
6
6
|
import { FcrToolTip } from 'agora-ui-foundation/lib/components/tooltip';
|
|
7
7
|
import { FcrButton } from 'agora-ui-foundation/lib/components/button';
|
|
8
8
|
import { observer } from 'mobx-react';
|
|
9
|
-
import { useNamespace } from '
|
|
9
|
+
import { useNamespace } from 'agora-ui-foundation/lib/utilities/use-namespace';
|
|
10
10
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
11
|
export var SpeakerDetection = observer(function (_ref) {
|
|
12
12
|
var speakerDeviceId = _ref.speakerDeviceId,
|
|
@@ -4,7 +4,7 @@ import { FcrDevicePretestPage } from 'agora-ui-foundation/lib/components/device-
|
|
|
4
4
|
import { useContext, useEffect, useRef, useState } from 'react';
|
|
5
5
|
import { DEFAULT_BEAUTY_VALUE, VideoViewType, LocalVideoPlayer } from 'agora-ui-foundation/lib/components/local-video-player';
|
|
6
6
|
import { observer } from 'mobx-react';
|
|
7
|
-
import { useNamespace } from '
|
|
7
|
+
import { useNamespace } from 'agora-ui-foundation/lib/utilities/use-namespace';
|
|
8
8
|
import './index.css';
|
|
9
9
|
import { PretestStoreContext } from './store';
|
|
10
10
|
import '../setting/video-settings/index.css';
|
|
@@ -10,7 +10,7 @@ import { useMemo } from 'react';
|
|
|
10
10
|
import { useI18n } from 'agora-ui-foundation/lib/i18n';
|
|
11
11
|
import { FcrToolTip } from 'agora-ui-foundation/lib/components/tooltip';
|
|
12
12
|
import { DEFAULT_BEAUTY_VALUE } from 'agora-ui-foundation/lib/components/local-video-player';
|
|
13
|
-
import { useNamespace } from '
|
|
13
|
+
import { useNamespace } from 'agora-ui-foundation/lib/utilities/use-namespace';
|
|
14
14
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
15
|
var BeautyOptionsCard = function BeautyOptionsCard(props) {
|
|
16
16
|
var ns = useNamespace('beauty-setting');
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import "core-js/modules/es.array.filter.js";
|
|
2
|
+
import "core-js/modules/es.object.to-string.js";
|
|
1
3
|
import { FcrFashionTabs } from 'agora-ui-foundation/lib/components/tabs';
|
|
2
4
|
import { observer } from 'mobx-react';
|
|
3
5
|
import { useI18n } from 'agora-ui-foundation/lib/i18n';
|
|
4
|
-
import { useNamespace } from '
|
|
6
|
+
import { useNamespace } from 'agora-ui-foundation/lib/utilities/use-namespace';
|
|
7
|
+
import { useMemo } from 'react';
|
|
5
8
|
|
|
6
9
|
// import './index.css';
|
|
7
10
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -11,17 +14,29 @@ export var VideoEffect = observer(function (props) {
|
|
|
11
14
|
var tabContents = props.tabContents,
|
|
12
15
|
_props$currentTab = props.currentTab,
|
|
13
16
|
currentTab = _props$currentTab === void 0 ? 'basic' : _props$currentTab,
|
|
14
|
-
handleActiveTab = props.handleActiveTab
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
17
|
+
handleActiveTab = props.handleActiveTab,
|
|
18
|
+
_props$isBeautyModeAb = props.isBeautyModeAbilitySupported,
|
|
19
|
+
isBeautyModeAbilitySupported = _props$isBeautyModeAb === void 0 ? true : _props$isBeautyModeAb,
|
|
20
|
+
_props$isVirtualBackg = props.isVirtualBackgroundSupported,
|
|
21
|
+
isVirtualBackgroundSupported = _props$isVirtualBackg === void 0 ? true : _props$isVirtualBackg;
|
|
22
|
+
var tabItems = useMemo(function () {
|
|
23
|
+
var items = [{
|
|
24
|
+
label: t('fmt_setting_option_basics'),
|
|
25
|
+
key: 'basic',
|
|
26
|
+
hidden: false
|
|
27
|
+
}, {
|
|
28
|
+
label: t('fmt_setting_option_backgrounds'),
|
|
29
|
+
key: 'virtual-background',
|
|
30
|
+
hidden: !isVirtualBackgroundSupported
|
|
31
|
+
}, {
|
|
32
|
+
label: t('fmt_device_labels_specialeffects'),
|
|
33
|
+
key: 'beauty-filter',
|
|
34
|
+
hidden: !isBeautyModeAbilitySupported
|
|
35
|
+
}];
|
|
36
|
+
return items.filter(function (item) {
|
|
37
|
+
return !item.hidden;
|
|
38
|
+
});
|
|
39
|
+
}, [t, isVirtualBackgroundSupported, isBeautyModeAbilitySupported]);
|
|
25
40
|
return /*#__PURE__*/_jsxs("div", {
|
|
26
41
|
className: ns.e('tab-wrapper'),
|
|
27
42
|
children: [/*#__PURE__*/_jsx("div", {
|
|
@@ -8,7 +8,7 @@ import { PretestStoreContext } from '../store';
|
|
|
8
8
|
import { FcrVolumeIndicator } from 'agora-ui-foundation/lib/components/volume-indicator';
|
|
9
9
|
import { SpeakerDetection } from '../audio-preview/speaker-detection';
|
|
10
10
|
import { FcrUIHighlightElement } from '../../../utilities/constant';
|
|
11
|
-
import { useNamespace } from '
|
|
11
|
+
import { useNamespace } from 'agora-ui-foundation/lib/utilities/use-namespace';
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
export var VideoSettingsBasic4Custom = observer(function () {
|
|
14
14
|
var ns = useNamespace('video-settings-basic_preview');
|
|
@@ -11,7 +11,7 @@ import classNames from 'classnames';
|
|
|
11
11
|
import { observer } from 'mobx-react';
|
|
12
12
|
import { throttle } from 'lodash';
|
|
13
13
|
import { useI18n } from 'agora-ui-foundation/lib/i18n';
|
|
14
|
-
import { useNamespace } from '
|
|
14
|
+
import { useNamespace } from 'agora-ui-foundation/lib/utilities/use-namespace';
|
|
15
15
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
16
|
export var VirtualBackgroundSetting = observer(function (_ref) {
|
|
17
17
|
var currentVirtualBackgroundName = _ref.currentVirtualBackgroundName,
|
|
@@ -1,21 +1,3 @@
|
|
|
1
|
-
.fcr-event-confirm-wrapper.fcr-event-confirm-container {
|
|
2
|
-
width: 100vw;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
position: absolute;
|
|
5
|
-
top: 0;
|
|
6
|
-
left: 0;
|
|
7
|
-
z-index: 2000;
|
|
8
|
-
pointer-events: none;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.fcr-event-confirm-wrapper.fcr-event-confirm-container div {
|
|
12
|
-
pointer-events: all;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.fcr-confirm-dialog-wrapper {
|
|
16
|
-
background: #fff;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
1
|
.fcr-confirm-dialog-wrapper_web {
|
|
20
2
|
background: var(--fcr_mobile_ui_scene_color_popup_fill2);
|
|
21
3
|
border-radius: var(--fcr_cornerradius_xl);
|
|
@@ -22,7 +22,8 @@ import { useDrag } from '@use-gesture/react';
|
|
|
22
22
|
import { useContext, useEffect, useMemo, useRef, useState } from 'react';
|
|
23
23
|
import { StoreContext } from '../../store.base';
|
|
24
24
|
import { isElectron } from 'agora-foundation/lib/utilities/env';
|
|
25
|
-
import { isMac } from '
|
|
25
|
+
import { isMac } from 'agora-foundation/lib/utilities/env';
|
|
26
|
+
import './index.css';
|
|
26
27
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
27
28
|
export var ConfirmWindow = observer(function (_ref) {
|
|
28
29
|
var _confirmBodyRef$curre;
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
position: relative;
|
|
4
4
|
flex: 1;
|
|
5
5
|
width: 100%;
|
|
6
|
-
/* height: 100%; 此处设置 100% 会影响自适应高度布局 */
|
|
7
6
|
box-sizing: border-box;
|
|
8
7
|
overflow: hidden;
|
|
9
8
|
font-family:
|
|
@@ -23,20 +22,20 @@
|
|
|
23
22
|
'Noto Color Emoji';
|
|
24
23
|
font-size: 14px;
|
|
25
24
|
z-index: 0;
|
|
25
|
+
/* border: 1px solid var(--fcr_ui_scene_line1); */
|
|
26
|
+
border-radius: var(--fcr_cornerradius_xl);
|
|
26
27
|
}
|
|
27
28
|
|
|
28
29
|
::-webkit-scrollbar {
|
|
29
30
|
display: none;
|
|
30
31
|
}
|
|
32
|
+
|
|
31
33
|
.fcr-dialog-container_shadow {
|
|
32
34
|
box-shadow: var(--fcr_web_light_dropup);
|
|
33
|
-
border: 1px solid var(--fcr_ui_scene_line1);
|
|
34
|
-
border-radius: var(--fcr_cornerradius_xl);
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
.fcr-dialog-container-header {
|
|
38
38
|
width: 100%;
|
|
39
|
-
height: 46px;
|
|
40
39
|
display: flex;
|
|
41
40
|
align-items: center;
|
|
42
41
|
-webkit-app-region: drag;
|
|
@@ -1,135 +1,89 @@
|
|
|
1
|
-
import "core-js/modules/es.symbol.js";
|
|
2
|
-
import "core-js/modules/es.array.filter.js";
|
|
3
|
-
import "core-js/modules/es.array.for-each.js";
|
|
4
|
-
import "core-js/modules/es.array.push.js";
|
|
5
|
-
import "core-js/modules/es.object.define-properties.js";
|
|
6
|
-
import "core-js/modules/es.object.define-property.js";
|
|
7
|
-
import "core-js/modules/es.object.get-own-property-descriptor.js";
|
|
8
|
-
import "core-js/modules/es.object.get-own-property-descriptors.js";
|
|
9
|
-
import "core-js/modules/es.object.keys.js";
|
|
10
|
-
import "core-js/modules/es.object.to-string.js";
|
|
11
|
-
import "core-js/modules/esnext.iterator.constructor.js";
|
|
12
|
-
import "core-js/modules/esnext.iterator.filter.js";
|
|
13
|
-
import "core-js/modules/esnext.iterator.for-each.js";
|
|
14
|
-
import "core-js/modules/web.dom-collections.for-each.js";
|
|
15
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
16
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
17
|
-
import
|
|
18
|
-
|
|
19
|
-
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) { _defineProperty(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; }
|
|
20
|
-
import React from 'react';
|
|
21
|
-
import { useState } from 'react';
|
|
22
|
-
import { observer } from 'mobx-react';
|
|
2
|
+
import { useCallback, useContext, useState } from 'react';
|
|
3
|
+
import './index.css';
|
|
23
4
|
import { isElectron } from 'agora-foundation/lib/utilities/env';
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
5
|
+
import { StoreContext } from '../../store.base';
|
|
6
|
+
import { FcrIconButton } from 'agora-ui-foundation/lib/components/icon-button';
|
|
7
|
+
import { FcrIconType } from 'agora-ui-foundation/lib/components/icon/type';
|
|
8
|
+
import classNames from 'classnames';
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
var HEADER_HEIGHT = '46px';
|
|
11
|
+
export var DialogContainer = function DialogContainer(_ref) {
|
|
12
|
+
var actions = _ref.actions,
|
|
31
13
|
title = _ref.title,
|
|
32
|
-
|
|
33
|
-
children = _ref.children,
|
|
34
|
-
actions = _ref.actions,
|
|
35
|
-
autoHeight = _ref.autoHeight,
|
|
36
|
-
showTopIcon = _ref.showTopIcon,
|
|
14
|
+
body = _ref.body,
|
|
37
15
|
closable = _ref.closable,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
maxHeight = _ref.maxHeight,
|
|
41
|
-
minWidth = _ref.minWidth,
|
|
42
|
-
minHeight = _ref.minHeight,
|
|
43
|
-
hasSystemShadow = _ref.hasSystemShadow,
|
|
16
|
+
_ref$showTopIcon = _ref.showTopIcon,
|
|
17
|
+
showTopIcon = _ref$showTopIcon === void 0 ? false : _ref$showTopIcon,
|
|
44
18
|
dialogKey = _ref.dialogKey,
|
|
45
|
-
dialogId = _ref.dialogId
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
dialogId: dialogId,
|
|
56
|
-
children: children
|
|
57
|
-
});
|
|
58
|
-
if (isElectron()) return dialogBody;
|
|
59
|
-
var _useState = useState({
|
|
60
|
-
width: width || 400,
|
|
61
|
-
height: height || 160
|
|
62
|
-
}),
|
|
63
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
64
|
-
webSize = _useState2[0],
|
|
65
|
-
updateSize = _useState2[1];
|
|
66
|
-
var windowWidth = window.innerWidth;
|
|
67
|
-
var windowHeight = window.innerHeight;
|
|
68
|
-
var x = windowWidth / 2 - webSize.width / 2;
|
|
69
|
-
var y = windowHeight / 2 - webSize.height / 2;
|
|
70
|
-
var _useState3 = useState({
|
|
71
|
-
x: x,
|
|
72
|
-
y: y
|
|
73
|
-
}),
|
|
74
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
75
|
-
position = _useState4[0],
|
|
76
|
-
updatePosition = _useState4[1];
|
|
77
|
-
|
|
78
|
-
// 应用尺寸限制的辅助函数
|
|
79
|
-
var constrainSize = function constrainSize(newSize) {
|
|
80
|
-
var constrainedWidth = newSize.width;
|
|
81
|
-
var constrainedHeight = newSize.height;
|
|
82
|
-
|
|
83
|
-
// 应用最小尺寸限制
|
|
84
|
-
if (minWidth && constrainedWidth < minWidth) {
|
|
85
|
-
constrainedWidth = minWidth;
|
|
86
|
-
}
|
|
87
|
-
if (minHeight && constrainedHeight < minHeight) {
|
|
88
|
-
constrainedHeight = minHeight;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
// 应用最大尺寸限制
|
|
92
|
-
if (maxWidth && constrainedWidth > maxWidth) {
|
|
93
|
-
constrainedWidth = maxWidth;
|
|
94
|
-
}
|
|
95
|
-
if (maxHeight && constrainedHeight > maxHeight) {
|
|
96
|
-
constrainedHeight = maxHeight;
|
|
97
|
-
}
|
|
98
|
-
return {
|
|
99
|
-
width: constrainedWidth,
|
|
100
|
-
height: constrainedHeight
|
|
101
|
-
};
|
|
19
|
+
_ref$dialogId = _ref.dialogId,
|
|
20
|
+
dialogId = _ref$dialogId === void 0 ? '' : _ref$dialogId;
|
|
21
|
+
var _useContext = useContext(StoreContext),
|
|
22
|
+
handleDialogClose = _useContext.handleDialogClose;
|
|
23
|
+
var onClose = useCallback(function () {
|
|
24
|
+
handleDialogClose(dialogId);
|
|
25
|
+
}, [dialogId]);
|
|
26
|
+
var hasTitleOrActions = title || actions;
|
|
27
|
+
var contentStyle = {
|
|
28
|
+
height: "calc(100% - ".concat(hasTitleOrActions ? HEADER_HEIGHT : '0px', " )")
|
|
102
29
|
};
|
|
103
|
-
return /*#__PURE__*/
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
flexDirection: 'column',
|
|
110
|
-
zIndex: WEB_DIALOG_LAYER.NORMAL_DIALOG
|
|
111
|
-
}, style),
|
|
112
|
-
size: webSize,
|
|
113
|
-
position: position,
|
|
114
|
-
minWidth: minWidth,
|
|
115
|
-
minHeight: minHeight,
|
|
116
|
-
maxWidth: maxWidth,
|
|
117
|
-
maxHeight: maxHeight,
|
|
118
|
-
bounds: "window",
|
|
119
|
-
onDragStop: function onDragStop(e, d) {
|
|
120
|
-
updatePosition({
|
|
121
|
-
x: d.x,
|
|
122
|
-
y: d.y
|
|
123
|
-
});
|
|
30
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
31
|
+
className: classNames('fcr-dialog-container', {
|
|
32
|
+
'fcr-dialog-container_shadow': !isElectron()
|
|
33
|
+
}),
|
|
34
|
+
onClick: function onClick(e) {
|
|
35
|
+
return e.stopPropagation();
|
|
124
36
|
},
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
height:
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
|
|
37
|
+
children: [hasTitleOrActions ? /*#__PURE__*/_jsxs("header", {
|
|
38
|
+
className: "fcr-dialog-container-header",
|
|
39
|
+
style: {
|
|
40
|
+
height: HEADER_HEIGHT
|
|
41
|
+
},
|
|
42
|
+
children: [actions && /*#__PURE__*/_jsx("div", {
|
|
43
|
+
style: {
|
|
44
|
+
flex: 1
|
|
45
|
+
}
|
|
46
|
+
}), /*#__PURE__*/_jsx("h2", {
|
|
47
|
+
children: title
|
|
48
|
+
}), actions && /*#__PURE__*/_jsxs("div", {
|
|
49
|
+
className: "fcr-dialog-container-actions",
|
|
50
|
+
children: [actions, showTopIcon && isElectron() && /*#__PURE__*/_jsx(TopButton, {
|
|
51
|
+
dialogKey: dialogKey,
|
|
52
|
+
dialogId: dialogId
|
|
53
|
+
})]
|
|
54
|
+
})]
|
|
55
|
+
}) : null, /*#__PURE__*/_jsx("section", {
|
|
56
|
+
className: "fcr-dialog-container-content",
|
|
57
|
+
style: contentStyle,
|
|
58
|
+
children: body
|
|
59
|
+
}), closable ? /*#__PURE__*/_jsx("a", {
|
|
60
|
+
className: "fcr-dialog-container-close",
|
|
61
|
+
onClick: onClose,
|
|
62
|
+
children: /*#__PURE__*/_jsx("span", {
|
|
63
|
+
children: "\xD7"
|
|
64
|
+
})
|
|
65
|
+
}) : null]
|
|
66
|
+
});
|
|
67
|
+
};
|
|
68
|
+
export var TopButton = function TopButton(props) {
|
|
69
|
+
var dialogKey = props.dialogKey,
|
|
70
|
+
dialogId = props.dialogId;
|
|
71
|
+
var _useContext2 = useContext(StoreContext),
|
|
72
|
+
getDialogWindow = _useContext2.getDialogWindow;
|
|
73
|
+
var _useState = useState(false),
|
|
74
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
75
|
+
isAlwaysOnTop = _useState2[0],
|
|
76
|
+
setIsAlwaysOnTop = _useState2[1];
|
|
77
|
+
return /*#__PURE__*/_jsx(FcrIconButton, {
|
|
78
|
+
onClick: function onClick() {
|
|
79
|
+
var browserWindow = getDialogWindow(dialogKey);
|
|
80
|
+
browserWindow.setAlwaysOnTop(!isAlwaysOnTop, 'screen-saver');
|
|
81
|
+
setIsAlwaysOnTop(!isAlwaysOnTop);
|
|
132
82
|
},
|
|
133
|
-
|
|
83
|
+
icon: isAlwaysOnTop ? FcrIconType.FCR_UNTOP : FcrIconType.FCR_TOP,
|
|
84
|
+
className: "frc-window-header__icon fcr-toggle-window-header__icon fcr-no-drag",
|
|
85
|
+
iconColors: {
|
|
86
|
+
iconPrimary: 'var(--fcr_ui_scene_icontext1)'
|
|
87
|
+
}
|
|
134
88
|
});
|
|
135
|
-
}
|
|
89
|
+
};
|