fcr-ui-scene 3.7.8 → 3.8.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/creator/index.d.ts +6 -3
- package/lib/creator/index.js +45 -33
- package/lib/creator/provider-initializer.browser.js +34 -5
- package/lib/creator/provider-initializer.electron.js +34 -6
- package/lib/electron/bootstrap-sdk.d.ts +3 -1
- package/lib/electron/bootstrap-sdk.js +93 -358
- package/lib/electron/exit-codes.d.ts +6 -1
- package/lib/electron/exit-codes.js +5 -0
- package/lib/electron/injections.d.ts +10 -4
- package/lib/electron/injections.js +116 -74
- package/lib/electron/ipc/ipc.js +13 -11
- package/lib/electron/ipc/type.d.ts +3 -1
- package/lib/electron/ipc/type.js +2 -0
- package/lib/electron/main.js +3 -1
- package/lib/electron/preload.js +2 -1
- package/lib/electron/process-manager/constants.d.ts +1 -0
- package/lib/{modules/control-bar/types.js → electron/process-manager/constants.js} +3 -1
- package/lib/electron/{event-manager.d.ts → process-manager/event-manager.d.ts} +3 -4
- package/lib/electron/{event-manager.js → process-manager/event-manager.js} +38 -30
- package/lib/electron/process-manager/index.d.ts +179 -0
- package/lib/electron/process-manager/index.js +848 -0
- package/lib/electron/process-manager/state-manager.d.ts +135 -0
- package/lib/electron/process-manager/state-manager.js +358 -0
- package/lib/electron/process-manager/types.d.ts +80 -0
- package/lib/electron/process-manager/types.js +79 -0
- package/lib/electron/sdk-helper.d.ts +4 -0
- package/lib/electron/sdk-helper.js +45 -4
- package/lib/electron/until.js +3 -0
- package/lib/fragments/annotation/libs.d.ts +1 -1
- package/lib/fragments/annotation/libs.js +12 -12
- package/lib/fragments/annotation/store.d.ts +1 -1
- package/lib/fragments/annotation/toolbar/components/graphic-tool/graphic-panel/libs.d.ts +1 -1
- package/lib/fragments/annotation/toolbar/components/graphic-tool/graphic-panel/libs.js +21 -21
- package/lib/fragments/annotation/toolbar/components/pen-tool/index.js +3 -3
- package/lib/fragments/annotation/toolbar/store.d.ts +1 -1
- package/lib/fragments/annotation/toolbar/store.js +10 -10
- package/lib/fragments/annotation/toolbar/view.js +7 -7
- package/lib/fragments/whiteboard/store.d.ts +2 -2
- package/lib/fragments/whiteboard/store.js +27 -21
- package/lib/fragments/whiteboard/view.js +2 -2
- package/lib/index.d.ts +1 -1
- package/lib/index.js +10 -3
- package/lib/modules/action-bar/components/apps/index.js +1 -37
- package/lib/modules/action-bar/components/collapse/index.d.ts +2 -1
- package/lib/modules/action-bar/components/collapse/index.js +11 -2
- package/lib/modules/action-bar/components/item/index.js +2 -2
- package/lib/modules/action-bar/components/screen-share/index.browser.js +21 -14
- package/lib/modules/action-bar/components/screen-share/index.electron.js +38 -24
- package/lib/modules/action-bar/components/screen-share/submenu.js +6 -5
- package/lib/modules/action-bar/components/security/index.js +2 -2
- package/lib/modules/action-bar/index.css +26 -0
- package/lib/modules/action-bar/main-scene/store.base.d.ts +6 -4
- package/lib/modules/action-bar/main-scene/store.base.js +41 -46
- package/lib/modules/action-bar/type.d.ts +0 -10
- package/lib/modules/audio-stream/index.d.ts +1 -1
- package/lib/modules/audio-stream/index.js +22 -8
- package/lib/modules/caption/draggable-container/index.css +10 -0
- package/lib/modules/caption/draggable-container/index.d.ts +4 -0
- package/lib/modules/caption/draggable-container/index.js +145 -0
- package/lib/modules/caption/index.d.ts +10 -0
- package/lib/modules/{annotation → caption}/index.js +43 -84
- package/lib/modules/caption/store.d.ts +56 -0
- package/lib/modules/caption/store.js +366 -0
- package/lib/modules/caption/type.d.ts +13 -0
- package/lib/modules/caption/type.js +14 -0
- package/lib/modules/caption/view.css +158 -0
- package/lib/modules/caption/view.d.ts +4 -0
- package/lib/modules/caption/view.js +292 -0
- package/lib/modules/chat/chat-room-store.d.ts +1 -1
- package/lib/modules/chat/chat-room-store.js +6 -6
- package/lib/modules/chat/components/message-list/message-item/index.js +60 -18
- package/lib/modules/chat/index.css +7 -0
- package/lib/modules/chat/store.js +1 -1
- package/lib/modules/components/apps/app-item/index.css +16 -1
- package/lib/modules/components/apps/app-item/index.js +102 -35
- package/lib/modules/components/apps/app-list.js +17 -1
- package/lib/modules/components/apps/types.d.ts +11 -1
- package/lib/modules/components/caption-menu/index.css +58 -0
- package/lib/modules/components/caption-menu/index.d.ts +41 -0
- package/lib/modules/components/caption-menu/index.js +112 -0
- package/lib/modules/components/caption-menu/participants-privilege-control-options.d.ts +2 -0
- package/lib/modules/components/caption-menu/participants-privilege-control-options.js +87 -0
- package/lib/modules/components/caption-menu/steps/index.css +73 -0
- package/lib/modules/components/caption-menu/steps/index.d.ts +11 -0
- package/lib/modules/components/caption-menu/steps/index.js +56 -0
- package/lib/modules/components/caption-menu/translation-setting-options.d.ts +17 -0
- package/lib/modules/components/caption-menu/translation-setting-options.js +181 -0
- package/lib/modules/components/control-bar/index.d.ts +3 -3
- package/lib/modules/components/control-bar/index.js +10 -10
- package/lib/modules/components/device-control/components/audio-menu/index.js +17 -0
- package/lib/modules/components/device-control/components/carmera/index.js +3 -0
- package/lib/modules/components/device-control/components/microphone/index.js +4 -1
- package/lib/modules/components/device-control/index.css +12 -4
- package/lib/modules/components/device-control/store.base.d.ts +1 -0
- package/lib/modules/components/device-control/store.base.js +2 -0
- package/lib/modules/components/leave-meeting/store.base.d.ts +1 -0
- package/lib/modules/components/leave-meeting/store.base.js +46 -5
- package/lib/modules/components/security-menu/index.js +147 -65
- package/lib/modules/components/security-menu/store.d.ts +15 -0
- package/lib/modules/components/security-menu/store.js +78 -16
- package/lib/modules/components/toolbar/components/clean-tool/index.d.ts +1 -1
- package/lib/modules/components/toolbar/components/clean-tool/index.js +4 -4
- package/lib/modules/components/toolbar/components/color-tool/index.d.ts +1 -1
- package/lib/modules/components/toolbar/components/graphic-tool/graphic-panel/index.d.ts +1 -1
- package/lib/modules/components/toolbar/components/graphic-tool/graphic-panel/libs.d.ts +1 -1
- package/lib/modules/components/toolbar/components/graphic-tool/graphic-panel/libs.js +21 -21
- package/lib/modules/components/toolbar/components/graphic-tool/index.d.ts +1 -1
- package/lib/modules/components/toolbar/components/multiple-color-tool/index.d.ts +1 -1
- package/lib/modules/components/toolbar/components/pen-tool/index.d.ts +1 -1
- package/lib/modules/components/toolbar/components/pen-tool/index.js +3 -3
- package/lib/modules/components/toolbar/index.d.ts +2 -2
- package/lib/modules/components/toolbar/index.js +35 -34
- package/lib/modules/components/toolbar/style.css +1 -1
- package/lib/modules/components/toolbar/types.d.ts +1 -1
- package/lib/modules/connection-gateway/store.d.ts +1 -0
- package/lib/modules/connection-gateway/store.js +5 -0
- package/lib/modules/control-bar/components/apps-popover/index.d.ts +3 -0
- package/lib/modules/control-bar/components/apps-popover/index.js +41 -0
- package/lib/modules/control-bar/components/more-actions/index.js +9 -1
- package/lib/modules/control-bar/enums.d.ts +2 -1
- package/lib/modules/control-bar/enums.js +1 -0
- package/lib/modules/control-bar/store.d.ts +6 -1
- package/lib/modules/control-bar/store.js +56 -12
- package/lib/modules/control-bar/view.js +16 -11
- package/lib/modules/dialog/components/dialog-container/component/body.d.ts +8 -0
- package/lib/modules/dialog/components/dialog-container/component/body.js +44 -5
- package/lib/modules/dialog/components/dialog-container/index.css +4 -1
- package/lib/modules/dialog/components/dialog-container/index.d.ts +1 -0
- package/lib/modules/dialog/components/dialog-container/index.js +7 -1
- package/lib/modules/dialog/components/normal-window/index.d.ts +1 -0
- package/lib/modules/dialog/components/normal-window/index.js +3 -1
- package/lib/modules/dialog/dialogs/caption/index.d.ts +21 -0
- package/lib/modules/dialog/dialogs/caption/index.js +42 -0
- package/lib/modules/dialog/dialogs/chat/components/actions.js +2 -2
- package/lib/modules/dialog/dialogs/confirm/index.js +1 -1
- package/lib/modules/dialog/dialogs/confirm-leave-meeting/index.d.ts +1 -0
- package/lib/modules/dialog/dialogs/confirm-leave-meeting/index.js +2 -1
- package/lib/modules/dialog/dialogs/participant/components/actions.js +2 -2
- package/lib/modules/dialog/dialogs/share-screen-selection/index.js +0 -12
- package/lib/modules/dialog/dialogs/subtitles-history/index.d.ts +27 -0
- package/lib/modules/dialog/dialogs/subtitles-history/index.js +51 -0
- package/lib/modules/dialog/store.base.d.ts +1 -1
- package/lib/modules/dialog/store.browser.d.ts +1 -1
- package/lib/modules/dialog/store.electron.d.ts +1 -3
- package/lib/modules/dialog/store.electron.js +0 -9
- package/lib/modules/event-sound/enum.d.ts +5 -0
- package/lib/modules/event-sound/enum.js +20 -0
- package/lib/modules/event-sound/index.d.ts +0 -10
- package/lib/modules/event-sound/index.js +1 -12
- package/lib/modules/event-sound/store.d.ts +2 -2
- package/lib/modules/event-sound/store.js +21 -22
- package/lib/modules/interpreter/store.js +4 -2
- package/lib/modules/layout/components/Aside.d.ts +2 -1
- package/lib/modules/layout/components/Aside.js +97 -58
- package/lib/modules/layout/components/CommonVideoRenderer.js +1 -2
- package/lib/modules/layout/components/index.css +15 -2
- package/lib/modules/layout/store.base.d.ts +13 -2
- package/lib/modules/layout/store.base.js +149 -54
- package/lib/modules/layout/store.electron.d.ts +1 -0
- package/lib/modules/layout/store.electron.js +132 -32
- package/lib/modules/layout/type.d.ts +4 -0
- package/lib/modules/layout/view.js +27 -5
- package/lib/modules/notification/index.css +4 -4
- package/lib/modules/notification/store.d.ts +5 -3
- package/lib/modules/notification/store.js +9 -2
- package/lib/modules/notification/view.d.ts +1 -0
- package/lib/modules/notification/view.js +33 -2
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.css +0 -1
- package/lib/modules/participant/components/participants/components/footer/index.js +1 -1
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.js +2 -2
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/index.d.ts +6 -1
- package/lib/modules/participant/components/participants/components/render-user/index.d.ts +1 -1
- package/lib/modules/participant/components/participants/index.js +13 -1
- package/lib/modules/participant/store.base.d.ts +1 -2
- package/lib/modules/participant/store.base.js +70 -71
- package/lib/modules/participant/type.d.ts +3 -1
- package/lib/modules/participant/type.js +2 -0
- package/lib/modules/pc-audio-connect/main-scene/store.d.ts +1 -0
- package/lib/modules/pc-audio-connect/main-scene/store.js +5 -0
- package/lib/modules/pc-audio-connect/waiting-scene/store.d.ts +2 -0
- package/lib/modules/pc-audio-connect/waiting-scene/store.js +10 -6
- package/lib/modules/phone-audio-connect/store.d.ts +1 -0
- package/lib/modules/phone-audio-connect/store.js +5 -0
- package/lib/modules/secondary-window/store.d.ts +1 -2
- package/lib/modules/secondary-window/store.js +22 -12
- package/lib/modules/secondary-window/type.d.ts +1 -1
- package/lib/modules/secondary-window/view.js +7 -8
- package/lib/modules/setting/audio-whiteList/audio-device-adaptation.d.ts +18 -0
- package/lib/modules/setting/audio-whiteList/audio-device-adaptation.js +34 -0
- package/lib/modules/setting/audio-whiteList/audio-whiteList-manager.d.ts +63 -0
- package/lib/modules/setting/audio-whiteList/audio-whiteList-manager.js +353 -0
- package/lib/modules/setting/caption_and_transcribing/index.css +88 -0
- package/lib/modules/setting/caption_and_transcribing/index.d.ts +3 -0
- package/lib/modules/setting/caption_and_transcribing/index.js +96 -0
- package/lib/modules/setting/general-settings/general-settings.d.ts +4 -0
- package/lib/modules/setting/general-settings/general-settings.js +3 -3
- package/lib/modules/setting/index.d.ts +1 -0
- package/lib/modules/setting/index.js +10 -7
- package/lib/modules/setting/state/index.js +5 -3
- package/lib/modules/setting/store.base.d.ts +29 -4
- package/lib/modules/setting/store.base.js +143 -62
- package/lib/modules/setting/store.browser.js +4 -9
- package/lib/modules/setting/store.electron.d.ts +11 -0
- package/lib/modules/setting/store.electron.js +110 -1
- package/lib/modules/setting/type.d.ts +2 -1
- package/lib/modules/setting/type.js +1 -0
- package/lib/modules/setting/video-settings/video-settings-basic.js +1 -7
- package/lib/modules/setting/view.js +11 -4
- package/lib/modules/share-screen/store.base.d.ts +1 -1
- package/lib/modules/share-screen/store.base.js +3 -2
- package/lib/modules/share-screen/store.electron.d.ts +3 -1
- package/lib/modules/share-screen/store.electron.js +168 -38
- package/lib/modules/state-bar/index.css +73 -2
- package/lib/modules/state-bar/main-scene/store.base.d.ts +2 -0
- package/lib/modules/state-bar/main-scene/store.base.js +7 -1
- 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/store.base.d.ts +5 -0
- package/lib/modules/state-bar/store.base.js +29 -2
- package/lib/modules/state-bar/subtitles-history-state.d.ts +7 -0
- package/lib/modules/state-bar/subtitles-history-state.js +108 -0
- package/lib/modules/state-bar/view.js +16 -1
- package/lib/modules/state-bar/waiting-scene/store.base.d.ts +1 -0
- package/lib/modules/state-bar/waiting-scene/store.base.js +5 -0
- package/lib/modules/subtitles-history/components/actions.d.ts +5 -0
- package/lib/modules/subtitles-history/components/actions.js +36 -0
- package/lib/modules/subtitles-history/components/list-item.d.ts +12 -0
- package/lib/modules/subtitles-history/components/list-item.js +105 -0
- package/lib/modules/subtitles-history/components/list.d.ts +10 -0
- package/lib/modules/subtitles-history/components/list.js +182 -0
- package/lib/modules/subtitles-history/components/respond-dialog-content.d.ts +5 -0
- package/lib/modules/subtitles-history/components/respond-dialog-content.js +44 -0
- package/lib/modules/subtitles-history/components/settings/index.css +5 -0
- package/lib/modules/subtitles-history/components/settings/index.d.ts +2 -0
- package/lib/modules/subtitles-history/components/settings/index.js +53 -0
- package/lib/modules/subtitles-history/components/timer.d.ts +3 -0
- package/lib/modules/subtitles-history/components/timer.js +44 -0
- package/lib/modules/subtitles-history/components/title.d.ts +1 -0
- package/lib/modules/subtitles-history/components/title.js +15 -0
- package/lib/modules/subtitles-history/empty.d.ts +2 -0
- package/lib/modules/subtitles-history/empty.js +22 -0
- package/lib/modules/subtitles-history/index.css +129 -0
- package/lib/modules/subtitles-history/index.d.ts +13 -0
- package/lib/modules/{event-confirm → subtitles-history}/index.js +62 -31
- package/lib/modules/subtitles-history/store.base.d.ts +74 -0
- package/lib/modules/subtitles-history/store.base.js +786 -0
- package/lib/modules/subtitles-history/store.electron.d.ts +15 -0
- package/lib/{shared-data-source/security-data.js → modules/subtitles-history/store.electron.js} +75 -77
- package/lib/modules/subtitles-history/type.d.ts +4 -0
- package/lib/modules/subtitles-history/view.d.ts +1 -0
- package/lib/modules/subtitles-history/view.js +104 -0
- package/lib/modules/video-window/popover-watcher.js +4 -1
- package/lib/modules/video-window/store.js +7 -1
- package/lib/modules/video-window/view.js +14 -4
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/picker.js +2 -2
- package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.js +5 -5
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +15 -15
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +21 -21
- package/lib/modules/whiteboard/components/toolbar/hooks/index.js +23 -21
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +7 -6
- package/lib/modules/whiteboard/components/toolbar/store.js +14 -15
- package/lib/modules/whiteboard/store.d.ts +2 -3
- package/lib/modules/whiteboard/store.electron.d.ts +2 -0
- package/lib/modules/whiteboard/store.electron.js +35 -0
- package/lib/modules/whiteboard/store.js +14 -2
- package/lib/modules/whiteboard/type.d.ts +0 -35
- package/lib/modules/whiteboard/type.js +1 -26
- package/lib/modules/widget/type.d.ts +3 -66
- package/lib/object-manager.d.ts +3 -1
- package/lib/object-manager.js +2 -0
- package/lib/providers/ability-provider.d.ts +24 -0
- package/lib/providers/ability-provider.js +21 -0
- package/lib/providers/app-list-provider.d.ts +90 -4
- package/lib/providers/app-list-provider.js +157 -13
- package/lib/providers/board-share/bar-control/base.d.ts +4 -5
- package/lib/providers/board-share/bar-control/base.js +4 -4
- package/lib/providers/board-share/bar-control/browser.d.ts +2 -2
- package/lib/providers/board-share/bar-control/electron.d.ts +4 -5
- package/lib/providers/board-share/bar-control/electron.js +2 -0
- package/lib/providers/board-share/provider.base.d.ts +6 -6
- package/lib/providers/board-share/provider.base.js +20 -3
- package/lib/providers/board-share/provider.browser.js +2 -2
- package/lib/providers/board-share/provider.electron.js +1 -2
- package/lib/providers/board-share/type.d.ts +1 -2
- package/lib/providers/device-provider.d.ts +15 -5
- package/lib/providers/device-provider.js +198 -144
- package/lib/providers/dialog/provider.base.js +1 -1
- package/lib/providers/dialog/provider.electron.js +3 -0
- package/lib/providers/interpreter-provider.js +4 -9
- package/lib/providers/multi-display-provider.d.ts +1 -1
- package/lib/providers/privilege-provider.d.ts +241 -139
- package/lib/providers/privilege-provider.js +577 -318
- package/lib/providers/room-provider/waiting-room-control-manager.d.ts +1 -1
- package/lib/providers/screen-share/constant.d.ts +1 -0
- package/lib/{modules/share-screen/types.js → providers/screen-share/constant.js} +3 -1
- package/lib/providers/screen-share/provider.base.d.ts +20 -7
- package/lib/providers/screen-share/provider.base.js +27 -27
- package/lib/providers/screen-share/provider.browser.js +14 -18
- package/lib/providers/screen-share/provider.electron.d.ts +8 -0
- package/lib/providers/screen-share/provider.electron.js +41 -13
- package/lib/providers/screen-share/strategy/browser.js +1 -1
- package/lib/providers/screen-share/strategy/electron.d.ts +2 -1
- package/lib/providers/screen-share/strategy/electron.js +64 -56
- package/lib/providers/screen-share/strategy/type.d.ts +2 -2
- package/lib/providers/screen-share/stream-state-sync.js +5 -3
- package/lib/providers/screen-share/struct.d.ts +14 -4
- package/lib/providers/screen-share/struct.js +16 -5
- package/lib/providers/screen-share/type.d.ts +32 -2
- package/lib/providers/stt-provider/stt-provider.d.ts +89 -0
- package/lib/providers/stt-provider/stt-provider.js +1008 -0
- package/lib/providers/stt-provider/type.d.ts +168 -0
- package/lib/providers/stt-provider/type.js +19 -0
- package/lib/providers/window/main-window.d.ts +1 -0
- package/lib/providers/window/main-window.js +6 -4
- package/lib/providers/window/renderer-window.d.ts +7 -0
- package/lib/providers/window/renderer-window.js +65 -4
- package/lib/providers/window/type.d.ts +5 -0
- package/lib/runtime.d.ts +8 -7
- package/lib/runtime.js +1 -2
- package/lib/scenes/main-scene.d.ts +1 -0
- package/lib/scenes/main-scene.js +144 -67
- package/lib/schema.d.ts +70 -8
- package/lib/schema.js +7 -2
- package/lib/shared-data/app-list-data.d.ts +4 -0
- package/lib/shared-data/app-list-data.js +21 -1
- package/lib/shared-data/config.d.ts +5 -1
- package/lib/shared-data/layout-data.d.ts +5 -0
- package/lib/shared-data/layout-data.js +35 -9
- package/lib/shared-data/member-data.d.ts +2 -3
- package/lib/shared-data/screen-share/index.d.ts +0 -2
- package/lib/shared-data/screen-share/index.js +20 -36
- package/lib/shared-data/screen-share/type.d.ts +0 -8
- package/lib/shared-data/security-data.d.ts +4 -0
- package/lib/shared-data/security-data.js +14 -10
- package/lib/shared-data/setting.d.ts +16 -1
- package/lib/shared-data/setting.js +32 -5
- package/lib/shared-data/stt-setting.ts/constant.d.ts +29 -0
- package/lib/shared-data/stt-setting.ts/constant.js +35 -0
- package/lib/shared-data/stt-setting.ts/index.d.ts +67 -0
- package/lib/{shared-data-source/layout-data.js → shared-data/stt-setting.ts/index.js} +96 -83
- package/lib/shared-data/stt-setting.ts/type.d.ts +10 -0
- package/lib/shared-data/stt-setting.ts/type.js +14 -0
- package/lib/shared-data/video-window.d.ts +1 -2
- package/lib/shared-data/video-window.js +20 -32
- package/lib/translations/enUS.d.ts +9 -0
- package/lib/translations/enUS.js +21 -4
- package/lib/translations/zhCN.d.ts +9 -0
- package/lib/translations/zhCN.js +21 -4
- package/lib/type.d.ts +20 -15
- package/lib/type.js +1 -0
- package/lib/{ui-scene.d.ts → ui-scene-switch.d.ts} +1 -1
- package/lib/{ui-scene.js → ui-scene-switch.js} +29 -9
- package/lib/utilities/constant.d.ts +6 -2
- package/lib/utilities/constant.js +5 -1
- package/lib/utilities/default-config.d.ts +3 -3
- package/lib/utilities/default-config.js +8 -18
- package/lib/utilities/focus-helper.js +18 -11
- package/lib/utilities/logger.js +1 -1
- package/lib/utilities/renderer.d.ts +4 -6
- package/lib/utilities/renderer.js +10 -4
- package/lib/utilities/tools.d.ts +1 -0
- package/lib/utilities/tools.js +6 -1
- package/lib/utilities/ui-resources.d.ts +9 -2
- package/lib/utilities/ui-resources.js +36 -12
- package/package.json +11 -6
- package/public/index.html +3 -149
- package/public/meeting-manager.js +405 -0
- package/installer/icons/favicon.ico +0 -0
- package/installer/icons/favicon.png +0 -0
- package/installer/icons/icon.png +0 -0
- package/installer/mac/entitlements.mac.plist +0 -20
- package/lib/creator.d.ts +0 -36
- package/lib/creator.js +0 -465
- package/lib/modules/action-bar/index.d.ts +0 -56
- package/lib/modules/action-bar/index.dev.d.ts +0 -0
- package/lib/modules/action-bar/index.dev.js +0 -94
- package/lib/modules/action-bar/index.js +0 -108
- package/lib/modules/action-bar/store.d.ts +0 -256
- package/lib/modules/action-bar/store.js +0 -1572
- package/lib/modules/action-bar/types.d.ts +0 -90
- package/lib/modules/action-bar/view.d.ts +0 -5
- package/lib/modules/action-bar/view.js +0 -112
- package/lib/modules/annotation/annotation-index.d.ts +0 -2
- package/lib/modules/annotation/annotation-index.js +0 -80
- package/lib/modules/annotation/annotation-toolbar-store.d.ts +0 -75
- package/lib/modules/annotation/annotation-toolbar-store.js +0 -459
- package/lib/modules/annotation/board-cursor.css +0 -77
- package/lib/modules/annotation/components/color-picker/components/color.d.ts +0 -5
- package/lib/modules/annotation/components/color-picker/components/color.js +0 -38
- package/lib/modules/annotation/components/color-picker/components/panel.d.ts +0 -1
- package/lib/modules/annotation/components/color-picker/components/panel.js +0 -109
- package/lib/modules/annotation/components/color-picker/components/picker.d.ts +0 -1
- package/lib/modules/annotation/components/color-picker/components/picker.js +0 -75
- package/lib/modules/annotation/components/color-picker/index.d.ts +0 -2
- package/lib/modules/annotation/components/color-picker/index.js +0 -47
- package/lib/modules/annotation/components/eraser-picker.d.ts +0 -4
- package/lib/modules/annotation/components/eraser-picker.js +0 -144
- package/lib/modules/annotation/components/expansion/index.d.ts +0 -1
- package/lib/modules/annotation/components/expansion/index.js +0 -100
- package/lib/modules/annotation/components/extra-tool-picker.d.ts +0 -1
- package/lib/modules/annotation/components/extra-tool-picker.js +0 -62
- package/lib/modules/annotation/components/history.d.ts +0 -2
- package/lib/modules/annotation/components/history.js +0 -78
- package/lib/modules/annotation/components/icons/fold-icon.d.ts +0 -2
- package/lib/modules/annotation/components/icons/fold-icon.js +0 -41
- package/lib/modules/annotation/components/icons/move-icon.d.ts +0 -1
- package/lib/modules/annotation/components/icons/move-icon.js +0 -66
- package/lib/modules/annotation/components/item/index.d.ts +0 -1
- package/lib/modules/annotation/components/item/index.js +0 -43
- package/lib/modules/annotation/components/move-handle.d.ts +0 -5
- package/lib/modules/annotation/components/move-handle.js +0 -134
- package/lib/modules/annotation/components/pen-picker.d.ts +0 -4
- package/lib/modules/annotation/components/pen-picker.js +0 -155
- package/lib/modules/annotation/components/screen-capture-picker.d.ts +0 -4
- package/lib/modules/annotation/components/screen-capture-picker.js +0 -85
- package/lib/modules/annotation/components/shape-picker.d.ts +0 -4
- package/lib/modules/annotation/components/shape-picker.js +0 -210
- package/lib/modules/annotation/hooks/index.d.ts +0 -14
- package/lib/modules/annotation/hooks/index.js +0 -292
- package/lib/modules/annotation/index.d.ts +0 -45
- package/lib/modules/annotation/store.d.ts +0 -98
- package/lib/modules/annotation/store.js +0 -621
- package/lib/modules/annotation/style.css +0 -36
- package/lib/modules/annotation/view.d.ts +0 -3
- package/lib/modules/annotation/view.js +0 -44
- package/lib/modules/components/device-control/store.d.ts +0 -42
- package/lib/modules/components/device-control/store.js +0 -241
- package/lib/modules/components/leave-meeting/store.d.ts +0 -39
- package/lib/modules/components/leave-meeting/store.js +0 -270
- package/lib/modules/control-bar/components/annotation-button/index.d.ts +0 -1
- package/lib/modules/control-bar/components/annotation-button/index.js +0 -72
- package/lib/modules/control-bar/reactor.d.ts +0 -2
- package/lib/modules/control-bar/reactor.js +0 -8
- package/lib/modules/control-bar/types.d.ts +0 -20
- package/lib/modules/dialog/dialogs/pre-setting/index.css +0 -26
- package/lib/modules/dialog/dialogs/pre-setting/index.d.ts +0 -6
- package/lib/modules/dialog/dialogs/pre-setting/index.js +0 -62
- package/lib/modules/dialog/dialogs/widget/electron.d.ts +0 -6
- package/lib/modules/dialog/dialogs/widget/electron.js +0 -38
- package/lib/modules/dialog/hooks/use-popover-watcher.d.ts +0 -14
- package/lib/modules/dialog/hooks/use-popover-watcher.js +0 -110
- package/lib/modules/dialog/hooks/useElectron.d.ts +0 -28
- package/lib/modules/dialog/hooks/useElectron.js +0 -277
- package/lib/modules/dialog/store.d.ts +0 -135
- package/lib/modules/dialog/store.js +0 -616
- package/lib/modules/event-confirm/components/window/index.d.ts +0 -4
- package/lib/modules/event-confirm/components/window/index.js +0 -197
- package/lib/modules/event-confirm/index.css +0 -24
- package/lib/modules/event-confirm/index.d.ts +0 -27
- package/lib/modules/event-confirm/store.d.ts +0 -45
- package/lib/modules/event-confirm/store.js +0 -345
- package/lib/modules/event-confirm/view.d.ts +0 -2
- package/lib/modules/event-confirm/view.js +0 -53
- package/lib/modules/event-toast/store.d.ts +0 -27
- package/lib/modules/event-toast/store.js +0 -205
- package/lib/modules/layout/store.d.ts +0 -176
- package/lib/modules/layout/store.js +0 -1466
- package/lib/modules/participant/components/participants/components/footer/components/footer/index.css +0 -17
- package/lib/modules/participant/components/participants/components/footer/components/footer/index.d.ts +0 -5
- package/lib/modules/participant/components/participants/components/footer/components/footer/index.js +0 -242
- package/lib/modules/participant/components/participants/components/participants/components/attendee/index.css +0 -192
- package/lib/modules/participant/components/participants/components/participants/components/attendee/index.d.ts +0 -4
- package/lib/modules/participant/components/participants/components/participants/components/attendee/index.js +0 -206
- package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.css +0 -57
- package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.d.ts +0 -5
- package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.js +0 -229
- package/lib/modules/participant/components/participants/components/participants/components/user-row/index.d.ts +0 -5
- package/lib/modules/participant/components/participants/components/participants/components/user-row/index.js +0 -68
- package/lib/modules/participant/components/participants/components/participants/index.css +0 -105
- package/lib/modules/participant/components/participants/components/participants/index.d.ts +0 -3
- package/lib/modules/participant/components/participants/components/participants/index.js +0 -117
- package/lib/modules/participant/components/participants/types.d.ts +0 -101
- package/lib/modules/participant/components/participants/types.js +0 -37
- package/lib/modules/participant/store.d.ts +0 -222
- package/lib/modules/participant/store.js +0 -1927
- package/lib/modules/pc-audio-connect/index.d.ts +0 -22
- package/lib/modules/pc-audio-connect/index.js +0 -67
- package/lib/modules/pc-audio-connect/store.d.ts +0 -46
- package/lib/modules/pc-audio-connect/store.js +0 -304
- package/lib/modules/setting/common/advance-link.d.ts +0 -3
- package/lib/modules/setting/common/advance-link.js +0 -27
- package/lib/modules/setting/common/index.css +0 -26
- package/lib/modules/setting/common/useNamespace.d.ts +0 -15
- package/lib/modules/setting/common/useNamespace.js +0 -66
- package/lib/modules/setting/config.d.ts +0 -36
- package/lib/modules/setting/config.js +0 -36
- package/lib/modules/setting/dialog-wrapper.d.ts +0 -2
- package/lib/modules/setting/dialog-wrapper.js +0 -110
- package/lib/modules/setting/store.d.ts +0 -261
- package/lib/modules/setting/store.js +0 -1321
- package/lib/modules/share-screen/store.d.ts +0 -148
- package/lib/modules/share-screen/store.js +0 -950
- package/lib/modules/share-screen/types.d.ts +0 -26
- package/lib/modules/state-bar/store.d.ts +0 -124
- package/lib/modules/state-bar/store.js +0 -664
- package/lib/modules/whiteboard/components/progress/electron.d.ts +0 -1
- package/lib/modules/whiteboard/components/progress/electron.js +0 -33
- package/lib/modules/widget/sdk.d.ts +0 -30
- package/lib/modules/widget/sdk.js +0 -224
- package/lib/modules/widget/store.d.ts +0 -14
- package/lib/modules/widget/store.js +0 -28
- package/lib/providers/annotation-provider.d.ts +0 -124
- package/lib/providers/annotation-provider.js +0 -369
- package/lib/providers/dialog-provider.d.ts +0 -137
- package/lib/providers/dialog-provider.js +0 -194
- package/lib/providers/message-provider.d.ts +0 -69
- package/lib/providers/message-provider.js +0 -140
- package/lib/providers/room-provider.d.ts +0 -194
- package/lib/providers/room-provider.js +0 -916
- package/lib/providers/screen-share-provider.d.ts +0 -244
- package/lib/providers/screen-share-provider.js +0 -835
- package/lib/providers/sharing-provider.d.ts +0 -42
- package/lib/providers/sharing-provider.js +0 -221
- package/lib/providers/user-setting-storage-provider.d.ts +0 -21
- package/lib/providers/user-setting-storage-provider.js +0 -65
- package/lib/providers/whiteboard-provider.d.ts +0 -24
- package/lib/providers/whiteboard-provider.js +0 -127
- package/lib/shared-data-source/annotation-data.d.ts +0 -17
- package/lib/shared-data-source/annotation-data.js +0 -110
- package/lib/shared-data-source/app-list-data.d.ts +0 -34
- package/lib/shared-data-source/app-list-data.js +0 -133
- package/lib/shared-data-source/chat-data.d.ts +0 -25
- package/lib/shared-data-source/chat-data.js +0 -139
- package/lib/shared-data-source/config.d.ts +0 -35
- package/lib/shared-data-source/config.js +0 -40
- package/lib/shared-data-source/confirm-data.d.ts +0 -25
- package/lib/shared-data-source/confirm-data.js +0 -97
- package/lib/shared-data-source/device-privilege-data.d.ts +0 -8
- package/lib/shared-data-source/device-privilege-data.js +0 -25
- package/lib/shared-data-source/interpreter.d.ts +0 -77
- package/lib/shared-data-source/interpreter.js +0 -247
- package/lib/shared-data-source/layout-data.d.ts +0 -31
- package/lib/shared-data-source/meeting-time.d.ts +0 -90
- package/lib/shared-data-source/meeting-time.js +0 -416
- package/lib/shared-data-source/member-data.d.ts +0 -139
- package/lib/shared-data-source/member-data.js +0 -517
- package/lib/shared-data-source/pin-data.d.ts +0 -13
- package/lib/shared-data-source/pin-data.js +0 -111
- package/lib/shared-data-source/screen-share-data.d.ts +0 -364
- package/lib/shared-data-source/screen-share-data.js +0 -520
- package/lib/shared-data-source/security-data.d.ts +0 -39
- package/lib/shared-data-source/setting.d.ts +0 -67
- package/lib/shared-data-source/setting.js +0 -220
- package/lib/shared-data-source/speaker-spotlight.d.ts +0 -5
- package/lib/shared-data-source/speaker-spotlight.js +0 -15
- package/lib/shared-data-source/video-window.d.ts +0 -165
- package/lib/shared-data-source/video-window.js +0 -1266
- package/lib/shared-data-source/waiting-room.d.ts +0 -46
- package/lib/shared-data-source/waiting-room.js +0 -222
- package/lib/shared-data-source/whiteboard-data.d.ts +0 -68
- package/lib/shared-data-source/whiteboard-data.js +0 -347
- package/lib/utilities/board-context.d.ts +0 -4
- package/lib/utilities/board-context.js +0 -12
- package/lib/utilities/copyText.d.ts +0 -2
- package/lib/utilities/copyText.js +0 -48
- package/lib/utilities/renderer-event.d.ts +0 -10
- package/lib/utilities/renderer-event.js +0 -95
- package/lib/utilities/screen-capture-permission.d.ts +0 -2
- package/lib/utilities/screen-capture-permission.js +0 -24
- package/lib/utilities/screen.d.ts +0 -3
- package/lib/utilities/screen.js +0 -53
- package/lib/utilities/video-track-render-context.d.ts +0 -6
- package/lib/utilities/video-track-render-context.js +0 -9
- package/lib/waiting-room-control-manager.d.ts +0 -28
- package/lib/waiting-room-control-manager.js +0 -230
- package/lib/widget-sdk.d.ts +0 -2
- package/lib/widget-sdk.js +0 -13
- /package/lib/modules/{action-bar/types.js → subtitles-history/type.js} +0 -0
- /package/public/assets/electron/sound_effects/{pretest.mp3 → speakerTest.mp3} +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FcrDropMenuOption } from 'agora-ui-foundation/lib/components/drop-menu';
|
|
2
|
+
import { FcrLanguage } from 'fcr-core/lib/type';
|
|
3
|
+
import { NONE } from '../../../shared-data/stt-setting.ts/type';
|
|
4
|
+
import { FcrUISttLanguageOptions } from '../../../providers/stt-provider/type';
|
|
5
|
+
import { OptionsItem } from 'agora-ui-foundation/lib/components/select';
|
|
6
|
+
import { GenerateI18nKey } from 'agora-ui-foundation/lib/i18n';
|
|
7
|
+
type TranslateLanguageOption = Omit<OptionsItem, 'value'> & {
|
|
8
|
+
value: FcrLanguage | typeof NONE;
|
|
9
|
+
};
|
|
10
|
+
export declare const SourceLanguageMapGenerateI18nKey: Partial<Record<FcrLanguage, GenerateI18nKey<I18nResouceTypes>>>;
|
|
11
|
+
export declare enum FcrUICaptionMenuType {
|
|
12
|
+
CAPTION = "caption",
|
|
13
|
+
TRANSCRIBING = "transcribing"
|
|
14
|
+
}
|
|
15
|
+
export declare const useTranslateLanguageOptions: (languageOptions: FcrUISttLanguageOptions) => TranslateLanguageOption[];
|
|
16
|
+
export declare const useTranslationSettingOptions: () => FcrDropMenuOption[];
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.useTranslationSettingOptions = exports.useTranslateLanguageOptions = exports.SourceLanguageMapGenerateI18nKey = exports.FcrUICaptionMenuType = void 0;
|
|
9
|
+
require("core-js/modules/es.array.concat.js");
|
|
10
|
+
require("core-js/modules/es.array.map.js");
|
|
11
|
+
require("core-js/modules/es.function.name.js");
|
|
12
|
+
require("core-js/modules/es.object.to-string.js");
|
|
13
|
+
require("core-js/modules/esnext.iterator.constructor.js");
|
|
14
|
+
require("core-js/modules/esnext.iterator.map.js");
|
|
15
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
16
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
17
|
+
var _checkbox = require("agora-ui-foundation/lib/components/checkbox");
|
|
18
|
+
var _switch = require("agora-ui-foundation/lib/components/switch");
|
|
19
|
+
var _type = require("fcr-core/lib/type");
|
|
20
|
+
var _react = require("react");
|
|
21
|
+
var _ = require(".");
|
|
22
|
+
var _type2 = require("../../../shared-data/stt-setting.ts/type");
|
|
23
|
+
var _useLanguageConfig = require("../../interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig");
|
|
24
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
25
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
26
|
+
var SourceLanguageMapGenerateI18nKey = exports.SourceLanguageMapGenerateI18nKey = (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])({}, _type.FcrLanguage.ZH, 'fmt_ai_subtitles_source_language_options_chinese'), _type.FcrLanguage.EN, 'fmt_ai_subtitles_source_language_options_english'), _type.FcrLanguage.JP, 'fmt_ai_subtitles_source_language_options_japanese');
|
|
27
|
+
var FcrUICaptionMenuType = exports.FcrUICaptionMenuType = /*#__PURE__*/function (FcrUICaptionMenuType) {
|
|
28
|
+
FcrUICaptionMenuType["CAPTION"] = "caption";
|
|
29
|
+
FcrUICaptionMenuType["TRANSCRIBING"] = "transcribing";
|
|
30
|
+
return FcrUICaptionMenuType;
|
|
31
|
+
}({});
|
|
32
|
+
var useTranslateLanguageOptions = exports.useTranslateLanguageOptions = function useTranslateLanguageOptions(languageOptions) {
|
|
33
|
+
var getLanguageConfig = (0, _useLanguageConfig.useLanguageConfig)();
|
|
34
|
+
var t = (0, _i18n.useI18n)();
|
|
35
|
+
var translateLanguageOptions = languageOptions.translateList.map(function (language) {
|
|
36
|
+
var languageConfig = getLanguageConfig(language);
|
|
37
|
+
var text = languageConfig.name;
|
|
38
|
+
if (language === _type.FcrLanguage.ZH) {
|
|
39
|
+
text = t('fmt_ai_subtitles_setting_options_chinese');
|
|
40
|
+
} else if (language === _type.FcrLanguage.EN) {
|
|
41
|
+
text = t('fmt_ai_subtitles_setting_options_english');
|
|
42
|
+
} else if (language === _type.FcrLanguage.JP) {
|
|
43
|
+
text = t('fmt_ai_subtitles_setting_options_japanese');
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
text: text,
|
|
47
|
+
value: language
|
|
48
|
+
};
|
|
49
|
+
});
|
|
50
|
+
return [{
|
|
51
|
+
text: t('fmt_ai_subtitles_setting_options_not_translated'),
|
|
52
|
+
value: _type2.NONE
|
|
53
|
+
}].concat((0, _toConsumableArray2["default"])(translateLanguageOptions));
|
|
54
|
+
};
|
|
55
|
+
var useSourceLanguageMenuOptions = function useSourceLanguageMenuOptions() {
|
|
56
|
+
var _useContext = (0, _react.useContext)(_.CaptionMenuContext),
|
|
57
|
+
languageOptions = _useContext.languageOptions,
|
|
58
|
+
updateSourceLanguage = _useContext.updateSourceLanguage,
|
|
59
|
+
sourceLanguage = _useContext.sourceLanguage,
|
|
60
|
+
setIsSourceLanguageVisible = _useContext.setIsSourceLanguageVisible;
|
|
61
|
+
var getLanguageConfig = (0, _useLanguageConfig.useLanguageConfig)();
|
|
62
|
+
var transI18n = (0, _i18n.useI18n)();
|
|
63
|
+
var sourceLanguageOptions = languageOptions.sourceList.map(function (language) {
|
|
64
|
+
var languageConfig = getLanguageConfig(language);
|
|
65
|
+
var name = SourceLanguageMapGenerateI18nKey[language] ? transI18n(SourceLanguageMapGenerateI18nKey[language]) : languageConfig.name;
|
|
66
|
+
return {
|
|
67
|
+
key: language,
|
|
68
|
+
title: /*#__PURE__*/(0, _jsxRuntime.jsx)(_checkbox.FcrCheckbox, {
|
|
69
|
+
label: name,
|
|
70
|
+
styleType: "white",
|
|
71
|
+
checked: sourceLanguage === language,
|
|
72
|
+
checkIconAlignRight: true
|
|
73
|
+
}),
|
|
74
|
+
onButtonClick: function onButtonClick() {
|
|
75
|
+
updateSourceLanguage(language);
|
|
76
|
+
setIsSourceLanguageVisible(false);
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
});
|
|
80
|
+
return [{
|
|
81
|
+
title: transI18n('fmt_ai_subtitles_setting_label_source_language'),
|
|
82
|
+
key: 'source_language_title',
|
|
83
|
+
type: 'title'
|
|
84
|
+
}, _.line].concat((0, _toConsumableArray2["default"])(sourceLanguageOptions));
|
|
85
|
+
};
|
|
86
|
+
var useTranslationMenuOptions = function useTranslationMenuOptions() {
|
|
87
|
+
var _useContext2 = (0, _react.useContext)(_.CaptionMenuContext),
|
|
88
|
+
languageOptions = _useContext2.languageOptions,
|
|
89
|
+
subscribeTranslateLanguage = _useContext2.subscribeTranslateLanguage,
|
|
90
|
+
translateLanguage = _useContext2.translateLanguage;
|
|
91
|
+
var transI18n = (0, _i18n.useI18n)();
|
|
92
|
+
var translateLanguageOptions = useTranslateLanguageOptions(languageOptions);
|
|
93
|
+
var translationLanguageOptions = translateLanguageOptions.map(function (item) {
|
|
94
|
+
var language = translateLanguage === null ? _type2.NONE : translateLanguage;
|
|
95
|
+
return {
|
|
96
|
+
title: /*#__PURE__*/(0, _jsxRuntime.jsx)(_checkbox.FcrCheckbox, {
|
|
97
|
+
label: item.text,
|
|
98
|
+
styleType: "white",
|
|
99
|
+
checked: language === item.value
|
|
100
|
+
}),
|
|
101
|
+
key: item.value,
|
|
102
|
+
onButtonClick: function onButtonClick() {
|
|
103
|
+
var value = item.value === _type2.NONE ? null : item.value;
|
|
104
|
+
subscribeTranslateLanguage(value);
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
});
|
|
108
|
+
return [{
|
|
109
|
+
title: transI18n('fmt_ai_subtitles_setting_label_translation_setting'),
|
|
110
|
+
key: 'traslation_settings_title'
|
|
111
|
+
}, _.line].concat((0, _toConsumableArray2["default"])(translationLanguageOptions));
|
|
112
|
+
};
|
|
113
|
+
var useTranslationSettingOptions = exports.useTranslationSettingOptions = function useTranslationSettingOptions() {
|
|
114
|
+
var _useContext3 = (0, _react.useContext)(_.CaptionMenuContext),
|
|
115
|
+
isTwoLineCaptionEnabled = _useContext3.isTwoLineCaptionEnabled,
|
|
116
|
+
toggleTwoLineCaptionEnabled = _useContext3.toggleTwoLineCaptionEnabled,
|
|
117
|
+
_useContext3$menuType = _useContext3.menuType,
|
|
118
|
+
menuType = _useContext3$menuType === void 0 ? FcrUICaptionMenuType.CAPTION : _useContext3$menuType,
|
|
119
|
+
isTwoLineTranscribingEnabled = _useContext3.isTwoLineTranscribingEnabled,
|
|
120
|
+
toggleTwoLineTranscribingEnabled = _useContext3.toggleTwoLineTranscribingEnabled,
|
|
121
|
+
hasSetSourceLanguagePermission = _useContext3.hasSetSourceLanguagePermission,
|
|
122
|
+
captionState = _useContext3.captionState,
|
|
123
|
+
transcribingState = _useContext3.transcribingState,
|
|
124
|
+
isSourceLanguageVisible = _useContext3.isSourceLanguageVisible,
|
|
125
|
+
setIsSourceLanguageVisible = _useContext3.setIsSourceLanguageVisible;
|
|
126
|
+
var transI18n = (0, _i18n.useI18n)();
|
|
127
|
+
0;
|
|
128
|
+
var sourceLanguageOptions = useSourceLanguageMenuOptions();
|
|
129
|
+
var translationLanguageOptions = useTranslationMenuOptions();
|
|
130
|
+
var twoLineProps = menuType === FcrUICaptionMenuType.CAPTION ? {
|
|
131
|
+
value: isTwoLineCaptionEnabled,
|
|
132
|
+
onChange: toggleTwoLineCaptionEnabled
|
|
133
|
+
} : {
|
|
134
|
+
value: isTwoLineTranscribingEnabled,
|
|
135
|
+
onChange: toggleTwoLineTranscribingEnabled
|
|
136
|
+
};
|
|
137
|
+
var isDisabled = menuType === FcrUICaptionMenuType.CAPTION ? !captionState : !transcribingState;
|
|
138
|
+
return [{
|
|
139
|
+
key: 'translate_settings_title',
|
|
140
|
+
title: transI18n('fmt_ai_subtitles_setting_label_translation_setting'),
|
|
141
|
+
type: 'title',
|
|
142
|
+
onButtonClick: function onButtonClick() {
|
|
143
|
+
setIsSourceLanguageVisible(false);
|
|
144
|
+
}
|
|
145
|
+
}, {
|
|
146
|
+
title: transI18n('fmt_ai_subtitles_setting_label_source_language'),
|
|
147
|
+
key: 'source_language',
|
|
148
|
+
options: sourceLanguageOptions,
|
|
149
|
+
disabled: !hasSetSourceLanguagePermission || isDisabled,
|
|
150
|
+
onButtonClick: function onButtonClick() {
|
|
151
|
+
setIsSourceLanguageVisible(true);
|
|
152
|
+
},
|
|
153
|
+
visible: isSourceLanguageVisible
|
|
154
|
+
}, {
|
|
155
|
+
title: transI18n('fmt_ai_subtitles_setting_label_translations_display'),
|
|
156
|
+
key: 'translate_display',
|
|
157
|
+
options: translationLanguageOptions,
|
|
158
|
+
disabled: isDisabled,
|
|
159
|
+
onButtonClick: function onButtonClick() {
|
|
160
|
+
setIsSourceLanguageVisible(false);
|
|
161
|
+
}
|
|
162
|
+
}, _.line, {
|
|
163
|
+
key: 'two_line_caption_enabled',
|
|
164
|
+
title: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
165
|
+
className: "fcr-subtitles-menu-switch-container",
|
|
166
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
167
|
+
children: transI18n('fmt_ai_subtitles_setting_label_bilingual_display')
|
|
168
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_switch.FcrSwitch, {
|
|
169
|
+
labels: {
|
|
170
|
+
on: 'ON',
|
|
171
|
+
off: 'OFF'
|
|
172
|
+
},
|
|
173
|
+
value: twoLineProps.value,
|
|
174
|
+
onChange: twoLineProps.onChange
|
|
175
|
+
})]
|
|
176
|
+
}),
|
|
177
|
+
onButtonClick: function onButtonClick() {
|
|
178
|
+
setIsSourceLanguageVisible(false);
|
|
179
|
+
}
|
|
180
|
+
}];
|
|
181
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
2
|
import { WhiteboardThemeType } from '../../whiteboard/type';
|
|
3
|
-
import { FcrBoardToolType } from 'fcr-core
|
|
3
|
+
import { FcrBoardToolType } from 'fcr-core';
|
|
4
4
|
import './index.css';
|
|
5
5
|
type WhiteboardProps = {
|
|
6
6
|
onClose: () => void;
|
|
@@ -17,12 +17,12 @@ type WhiteboardProps = {
|
|
|
17
17
|
onAdaptive?: () => boolean;
|
|
18
18
|
onOrigin?: () => boolean;
|
|
19
19
|
onBoardDomLoaded?: (dom: HTMLDivElement) => void;
|
|
20
|
-
|
|
20
|
+
isSharingAudio?: boolean;
|
|
21
21
|
ownerUserName: string;
|
|
22
22
|
isMyBoard: boolean;
|
|
23
23
|
showControlBar?: boolean;
|
|
24
24
|
};
|
|
25
25
|
type PickRequired<T extends object, K extends keyof T> = Required<Pick<T, K>> & Omit<T, K>;
|
|
26
|
-
type SharingType<T extends 'whiteboard' | 'screenshare' | undefined> = T extends 'whiteboard' ? WhiteboardProps : PickRequired<Partial<WhiteboardProps>, 'onZoomIn' | 'onZoomOut' | 'onAdaptive' | 'onOrigin' | '
|
|
26
|
+
type SharingType<T extends 'whiteboard' | 'screenshare' | undefined> = T extends 'whiteboard' ? WhiteboardProps : PickRequired<Partial<WhiteboardProps>, 'onZoomIn' | 'onZoomOut' | 'onAdaptive' | 'onOrigin' | 'isSharingAudio'>;
|
|
27
27
|
export declare const WhiteboardControlbar: <T extends "whiteboard" | "screenshare">(props: PropsWithChildren<SharingType<T>>) => import("react/jsx-runtime").JSX.Element;
|
|
28
28
|
export {};
|
|
@@ -19,7 +19,7 @@ var _button = require("agora-ui-foundation/lib/components/button");
|
|
|
19
19
|
var _divider = _interopRequireDefault(require("agora-ui-foundation/lib/components/divider"));
|
|
20
20
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
21
21
|
var _type2 = require("../../whiteboard/type");
|
|
22
|
-
var
|
|
22
|
+
var _fcrCore = require("fcr-core");
|
|
23
23
|
require("./index.css");
|
|
24
24
|
var _debounce = _interopRequireDefault(require("lodash/debounce"));
|
|
25
25
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -44,7 +44,7 @@ var WhiteboardControlbar = exports.WhiteboardControlbar = function WhiteboardCon
|
|
|
44
44
|
onZoomOut = props.onZoomOut,
|
|
45
45
|
onAdaptive = props.onAdaptive,
|
|
46
46
|
onOrigin = props.onOrigin,
|
|
47
|
-
|
|
47
|
+
isSharingAudio = props.isSharingAudio,
|
|
48
48
|
_props$showControlBar = props.showControlBar,
|
|
49
49
|
showControlBar = _props$showControlBar === void 0 ? true : _props$showControlBar;
|
|
50
50
|
var boardRef = (0, _react.useRef)(undefined);
|
|
@@ -80,9 +80,9 @@ var WhiteboardControlbar = exports.WhiteboardControlbar = function WhiteboardCon
|
|
|
80
80
|
_useState14 = (0, _slicedToArray2["default"])(_useState13, 2),
|
|
81
81
|
contianHeight = _useState14[0],
|
|
82
82
|
setContianHeight = _useState14[1];
|
|
83
|
-
var
|
|
83
|
+
var isSharingWhiteboard = sharingType === 'whiteboard';
|
|
84
84
|
var cursor = (0, _react.useMemo)(function () {
|
|
85
|
-
return
|
|
85
|
+
return _fcrCore.FcrBoardToolType[currentTool || _fcrCore.FcrBoardToolType.NONE].toLowerCase();
|
|
86
86
|
}, [currentTool]);
|
|
87
87
|
var resetHeight = (0, _react.useCallback)(function () {
|
|
88
88
|
var _boardRef$current;
|
|
@@ -111,7 +111,7 @@ var WhiteboardControlbar = exports.WhiteboardControlbar = function WhiteboardCon
|
|
|
111
111
|
boardRef.current.addEventListener('transitionend', resetHeight);
|
|
112
112
|
}
|
|
113
113
|
};
|
|
114
|
-
var showEditButton = !controlEnabled && !isMyBoard && !isHost &&
|
|
114
|
+
var showEditButton = !controlEnabled && !isMyBoard && !isHost && isSharingWhiteboard;
|
|
115
115
|
var showChangeThemeButton = (canWriteBoard || isMyBoard || isHost) && setTheme && currentTheme;
|
|
116
116
|
function setCanvasBound(oprate) {
|
|
117
117
|
if (!Object.values(_type2.WhiteboardControlbarEvents).includes(oprate) || oprate === _type2.WhiteboardControlbarEvents.ENABLE_CONTROL) {
|
|
@@ -207,19 +207,19 @@ var WhiteboardControlbar = exports.WhiteboardControlbar = function WhiteboardCon
|
|
|
207
207
|
className: "fcr-whiteboard-controlbar",
|
|
208
208
|
id: "fcr-whiteboard-controlbar",
|
|
209
209
|
style: {
|
|
210
|
-
height:
|
|
210
|
+
height: isSharingWhiteboard ? '100%' : 'auto'
|
|
211
211
|
},
|
|
212
212
|
children: [showControlBar && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
213
213
|
className: "fcr-whiteboard-controlbar-header",
|
|
214
214
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
215
215
|
className: "fcr-whiteboard-controlbar-left",
|
|
216
|
-
children: transI18n(
|
|
216
|
+
children: transI18n(isSharingWhiteboard ? 'fmt_screenshare_whiteboard_tips_someonesharing' : 'fmt_screenshare_room_new_screen_share', {
|
|
217
217
|
reason1: isMyBoard ? transI18n('fmt_settings_labels_you') : ownerUserName
|
|
218
218
|
})
|
|
219
219
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
220
220
|
className: "fcr-whiteboard-controlbar-center",
|
|
221
|
-
children: [!
|
|
222
|
-
type:
|
|
221
|
+
children: [!isSharingWhiteboard && /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
222
|
+
type: isSharingAudio ? _type.FcrIconType.FCR_DEVICEAUDIOON : _type.FcrIconType.FCR_DEVICEAUDIOOFF,
|
|
223
223
|
size: 22,
|
|
224
224
|
colors: {
|
|
225
225
|
iconPrimary: 'var(--fcr_ui_scene_ramp_green6)'
|
|
@@ -335,7 +335,7 @@ var WhiteboardControlbar = exports.WhiteboardControlbar = function WhiteboardCon
|
|
|
335
335
|
children: transI18n('fmt_screenshare_whiteboard_button_exitdrawing')
|
|
336
336
|
})]
|
|
337
337
|
})]
|
|
338
|
-
}),
|
|
338
|
+
}), isSharingWhiteboard && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
339
339
|
className: "fcr-whiteboard-controlbar-body",
|
|
340
340
|
ref: handleBoardRef,
|
|
341
341
|
style: {
|
|
@@ -19,6 +19,7 @@ var _store = require("../../store.base");
|
|
|
19
19
|
require("../../index.css");
|
|
20
20
|
var _type2 = require("../../../../../type");
|
|
21
21
|
var _type3 = require("../../../../setting/type");
|
|
22
|
+
var _deviceProvider = require("../../../../../providers/device-provider");
|
|
22
23
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
23
24
|
var AudioMenu = (0, _mobxReact.observer)(function (_ref) {
|
|
24
25
|
var onConnectClick = _ref.onConnectClick,
|
|
@@ -36,12 +37,28 @@ var AudioMenu = (0, _mobxReact.observer)(function (_ref) {
|
|
|
36
37
|
connectType = _useContext.connectType,
|
|
37
38
|
stopAudioByComputer = _useContext.stopAudioByComputer;
|
|
38
39
|
var microphoneOptions = microphoneList.map(function (device) {
|
|
40
|
+
if (device.deviceId === _deviceProvider.DEFAULT_DEVICE_ID) {
|
|
41
|
+
return {
|
|
42
|
+
text: transI18n('fmt_device_label_speaker_follow_system', {
|
|
43
|
+
reason1: transI18n('fmt_device_label_speaker_default')
|
|
44
|
+
}),
|
|
45
|
+
value: device.deviceId
|
|
46
|
+
};
|
|
47
|
+
}
|
|
39
48
|
return {
|
|
40
49
|
text: device.deviceName,
|
|
41
50
|
value: device.deviceId
|
|
42
51
|
};
|
|
43
52
|
});
|
|
44
53
|
var speakerOptions = speakerList.map(function (device) {
|
|
54
|
+
if (device.deviceId === _deviceProvider.DEFAULT_DEVICE_ID) {
|
|
55
|
+
return {
|
|
56
|
+
text: transI18n('fmt_device_label_speaker_follow_system', {
|
|
57
|
+
reason1: transI18n('fmt_device_label_speaker_default')
|
|
58
|
+
}),
|
|
59
|
+
value: device.deviceId
|
|
60
|
+
};
|
|
61
|
+
}
|
|
45
62
|
return {
|
|
46
63
|
text: device.deviceName,
|
|
47
64
|
value: device.deviceId
|
|
@@ -86,6 +86,9 @@ var CameraControl = exports.CameraControl = (0, _mobxReact.observer)(function (p
|
|
|
86
86
|
onMoreClick: function onMoreClick() {}
|
|
87
87
|
}),
|
|
88
88
|
trigger: "click",
|
|
89
|
+
overlayInnerStyle: {
|
|
90
|
+
width: 'fit-content'
|
|
91
|
+
},
|
|
89
92
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
90
93
|
onClick: function onClick(e) {
|
|
91
94
|
e.stopPropagation();
|
|
@@ -79,7 +79,7 @@ var MicrophoneControl = exports.MicrophoneControl = (0, _mobxReact.observer)(fun
|
|
|
79
79
|
} else {
|
|
80
80
|
return transI18n('fmt_audio_popup_button_turning_on');
|
|
81
81
|
}
|
|
82
|
-
}, [microphoneState]);
|
|
82
|
+
}, [microphoneState, transI18n]);
|
|
83
83
|
var noMic = microphoneList.length === 0;
|
|
84
84
|
var noMicColor = {
|
|
85
85
|
iconPrimary: "var(--fcr_web_ui_scene_mainicon1)",
|
|
@@ -142,6 +142,9 @@ var MicrophoneControl = exports.MicrophoneControl = (0, _mobxReact.observer)(fun
|
|
|
142
142
|
visible: popoverOpened,
|
|
143
143
|
onVisibleChange: handlePopoverVisibleChanged,
|
|
144
144
|
trigger: "click",
|
|
145
|
+
overlayInnerStyle: {
|
|
146
|
+
width: 'fit-content'
|
|
147
|
+
},
|
|
145
148
|
content: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
146
149
|
children: [connectType === _type2.FcrUIConnectType.NONE && /*#__PURE__*/(0, _jsxRuntime.jsx)(_noneMenu["default"], {
|
|
147
150
|
onItemClick: function onItemClick() {
|
|
@@ -64,6 +64,8 @@
|
|
|
64
64
|
box-shadow: var(--fcr_web_light_dropup_m) !important;
|
|
65
65
|
text-align: left !important;
|
|
66
66
|
margin-left: 10px;
|
|
67
|
+
max-width: 280px;
|
|
68
|
+
min-width: 200px;
|
|
67
69
|
}
|
|
68
70
|
|
|
69
71
|
.fcr-device-popover-content-device {
|
|
@@ -74,10 +76,12 @@
|
|
|
74
76
|
border-top-style: solid;
|
|
75
77
|
}
|
|
76
78
|
.fcr-device-popover-content-device-label {
|
|
77
|
-
color: var(--fcr_ui_scene_icontext1);
|
|
78
79
|
font-size: 12px;
|
|
80
|
+
color: var(--fcr_ui_scene_icontext1);
|
|
81
|
+
padding: 0 10px;
|
|
82
|
+
height: 32px;
|
|
79
83
|
line-height: 32px;
|
|
80
|
-
|
|
84
|
+
font-weight: 700;
|
|
81
85
|
}
|
|
82
86
|
.fcr-device-popover-content-device-options {
|
|
83
87
|
margin-top: 8px;
|
|
@@ -88,6 +92,8 @@
|
|
|
88
92
|
width: 100%;
|
|
89
93
|
padding: 0 6px;
|
|
90
94
|
transition: all 0.2s ease;
|
|
95
|
+
flex-direction: row-reverse;
|
|
96
|
+
justify-content: space-between;
|
|
91
97
|
}
|
|
92
98
|
.fcr-device-popover-content-device-options .fcr-radio:hover {
|
|
93
99
|
background: var(--fcr_web_ui_scene_hover);
|
|
@@ -111,7 +117,6 @@
|
|
|
111
117
|
transition: all 0.1s ease;
|
|
112
118
|
}
|
|
113
119
|
.fcr-device-popover-content-device-options .fcr-radio-label {
|
|
114
|
-
padding-left: 8px;
|
|
115
120
|
color: var(--fcr_ui_scene_icontext1);
|
|
116
121
|
font-size: 13px;
|
|
117
122
|
line-height: 100%;
|
|
@@ -126,7 +131,7 @@
|
|
|
126
131
|
border-radius: var(--fcr_cornerradius_xxs);
|
|
127
132
|
height: 32px;
|
|
128
133
|
width: 100%;
|
|
129
|
-
padding: 4px 6px 4px
|
|
134
|
+
padding: 4px 6px 4px 10px;
|
|
130
135
|
font-size: 13px;
|
|
131
136
|
line-height: 100%;
|
|
132
137
|
color: var(--fcr_ui_scene_icontext1, #373c42);
|
|
@@ -138,6 +143,9 @@
|
|
|
138
143
|
}
|
|
139
144
|
.fcr-device-popover-content-more-item.contain-icon {
|
|
140
145
|
padding: 4px 6px;
|
|
146
|
+
padding-left: 10px;
|
|
147
|
+
flex-direction: row-reverse;
|
|
148
|
+
justify-content: space-between;
|
|
141
149
|
}
|
|
142
150
|
.fcr-device-popover-content-more-item:hover {
|
|
143
151
|
color: var(--fcr_web_ui_scene_mainicon2);
|
|
@@ -7,6 +7,7 @@ export declare abstract class DeviceControlStoreBase {
|
|
|
7
7
|
private _roomControl;
|
|
8
8
|
private _dialogProvider;
|
|
9
9
|
private _facilityProvider;
|
|
10
|
+
private _sharedSettingDataSource;
|
|
10
11
|
private _streamControlObserver;
|
|
11
12
|
accessor isPstnUser: boolean;
|
|
12
13
|
accessor phoneMicEnabled: boolean;
|
|
@@ -89,6 +89,7 @@ var DeviceControlStoreBase = exports.DeviceControlStoreBase = /*#__PURE__*/funct
|
|
|
89
89
|
this._deviceProvider = objectManager.getObject(_objectManager.FcrUIObjectKeys.P_DEVICE_PROVIDER);
|
|
90
90
|
this._facilityProvider = objectManager.getObject(_objectManager.FcrUIObjectKeys.P_FACILITY_PROVIDER);
|
|
91
91
|
var currentRoomProvider = objectManager.getObject(_objectManager.FcrUIObjectKeys.P_CURRENT_ROOM_CONTROL_PROVIDER);
|
|
92
|
+
this._sharedSettingDataSource = objectManager.getObject(_objectManager.FcrUIObjectKeys.S_SHARED_SETTING_DATA_SOURCE);
|
|
92
93
|
this._roomControl = currentRoomProvider.currentRoomControl;
|
|
93
94
|
this._roomControl.getStreamControl().addObserver(this._streamControlObserver);
|
|
94
95
|
}
|
|
@@ -172,6 +173,7 @@ var DeviceControlStoreBase = exports.DeviceControlStoreBase = /*#__PURE__*/funct
|
|
|
172
173
|
key: "openDeviceSettingDialog",
|
|
173
174
|
value: function openDeviceSettingDialog(arg) {
|
|
174
175
|
this._dialogProvider.openDialog(_constant.FcrUIDialogKey.SETTINGS, arg);
|
|
176
|
+
this._sharedSettingDataSource.setDialogConfig(arg);
|
|
175
177
|
}
|
|
176
178
|
}, {
|
|
177
179
|
key: "openConnection",
|
|
@@ -32,5 +32,6 @@ export declare abstract class LeaveMeetingStoreBase {
|
|
|
32
32
|
setKeepConnect(value: boolean): void;
|
|
33
33
|
end(): Promise<void>;
|
|
34
34
|
release(): void;
|
|
35
|
+
private _checkIfQuitFullScreen;
|
|
35
36
|
}
|
|
36
37
|
export declare const LeaveMeetingStoreContext: import("react").Context<LeaveMeetingStoreBase>;
|
|
@@ -59,6 +59,7 @@ var _react = require("react");
|
|
|
59
59
|
var _constant = require("../../../utilities/constant");
|
|
60
60
|
var _objectManager = require("../../../object-manager");
|
|
61
61
|
var _env = require("agora-foundation/lib/utilities/env");
|
|
62
|
+
var _imports = require("fcr-core/lib/imports");
|
|
62
63
|
var _LeaveMeetingStoreBase;
|
|
63
64
|
var _initProto, _init_keepConnect, _init_canAssign, _init_loading, _showEndConfirmDialogDecs, _assignHostDecs, _setIsSelfEndMeetingDecs, _leaveDecs, _keepPhoneAudioConnectionDecs, _setCanAssignDecs, _setKeepConnectDecs, _endDecs, _ref;
|
|
64
65
|
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
@@ -163,19 +164,22 @@ var LeaveMeetingStoreBase = exports.LeaveMeetingStoreBase = /*#__PURE__*/functio
|
|
|
163
164
|
return _regenerator["default"].wrap(function (_context) {
|
|
164
165
|
while (1) switch (_context.prev = _context.next) {
|
|
165
166
|
case 0:
|
|
167
|
+
_context.next = 1;
|
|
168
|
+
return this._checkIfQuitFullScreen();
|
|
169
|
+
case 1:
|
|
166
170
|
this.loading = true;
|
|
167
171
|
_t = this.keepConnect && this.isPstnUser;
|
|
168
172
|
if (!_t) {
|
|
169
|
-
_context.next =
|
|
173
|
+
_context.next = 2;
|
|
170
174
|
break;
|
|
171
175
|
}
|
|
172
|
-
_context.next =
|
|
176
|
+
_context.next = 2;
|
|
173
177
|
return this.keepPhoneAudioConnection();
|
|
174
|
-
case
|
|
178
|
+
case 2:
|
|
175
179
|
this.loading = false;
|
|
176
180
|
this._roomProvider.exitRoom();
|
|
177
181
|
this.resetPreventClose();
|
|
178
|
-
case
|
|
182
|
+
case 3:
|
|
179
183
|
case "end":
|
|
180
184
|
return _context.stop();
|
|
181
185
|
}
|
|
@@ -237,10 +241,13 @@ var LeaveMeetingStoreBase = exports.LeaveMeetingStoreBase = /*#__PURE__*/functio
|
|
|
237
241
|
return _regenerator["default"].wrap(function (_context3) {
|
|
238
242
|
while (1) switch (_context3.prev = _context3.next) {
|
|
239
243
|
case 0:
|
|
244
|
+
_context3.next = 1;
|
|
245
|
+
return this._checkIfQuitFullScreen();
|
|
246
|
+
case 1:
|
|
240
247
|
this._roomControl.close();
|
|
241
248
|
this._roomProvider.exitRoom();
|
|
242
249
|
this.resetPreventClose();
|
|
243
|
-
case
|
|
250
|
+
case 2:
|
|
244
251
|
case "end":
|
|
245
252
|
return _context3.stop();
|
|
246
253
|
}
|
|
@@ -254,6 +261,40 @@ var LeaveMeetingStoreBase = exports.LeaveMeetingStoreBase = /*#__PURE__*/functio
|
|
|
254
261
|
}, {
|
|
255
262
|
key: "release",
|
|
256
263
|
value: function release() {}
|
|
264
|
+
}, {
|
|
265
|
+
key: "_checkIfQuitFullScreen",
|
|
266
|
+
value: function () {
|
|
267
|
+
var _checkIfQuitFullScreen2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee4() {
|
|
268
|
+
var windowProvider, mainWindow;
|
|
269
|
+
return _regenerator["default"].wrap(function (_context4) {
|
|
270
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
271
|
+
case 0:
|
|
272
|
+
if (!(0, _env.isElectron)()) {
|
|
273
|
+
_context4.next = 1;
|
|
274
|
+
break;
|
|
275
|
+
}
|
|
276
|
+
windowProvider = this._objectManager.getObject(_objectManager.FcrUIObjectKeys.P_WINDOW_PROVIDER);
|
|
277
|
+
mainWindow = windowProvider.getCurrentWindow();
|
|
278
|
+
if (!mainWindow.isFullScreen()) {
|
|
279
|
+
_context4.next = 1;
|
|
280
|
+
break;
|
|
281
|
+
}
|
|
282
|
+
mainWindow.setFullScreen(false);
|
|
283
|
+
|
|
284
|
+
// 需要等待窗口退出全屏完成
|
|
285
|
+
_context4.next = 1;
|
|
286
|
+
return (0, _imports.sleep)(500);
|
|
287
|
+
case 1:
|
|
288
|
+
case "end":
|
|
289
|
+
return _context4.stop();
|
|
290
|
+
}
|
|
291
|
+
}, _callee4, this);
|
|
292
|
+
}));
|
|
293
|
+
function _checkIfQuitFullScreen() {
|
|
294
|
+
return _checkIfQuitFullScreen2.apply(this, arguments);
|
|
295
|
+
}
|
|
296
|
+
return _checkIfQuitFullScreen;
|
|
297
|
+
}()
|
|
257
298
|
}]);
|
|
258
299
|
}();
|
|
259
300
|
_LeaveMeetingStoreBase = LeaveMeetingStoreBase;
|