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
|
@@ -43,7 +43,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
43
43
|
value: true
|
|
44
44
|
});
|
|
45
45
|
exports.FragmentWhiteboardStoreContext = exports.FragmentWhiteboardStore = void 0;
|
|
46
|
-
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
47
46
|
require("core-js/modules/es.error.cause.js");
|
|
48
47
|
require("core-js/modules/es.error.to-string.js");
|
|
49
48
|
require("core-js/modules/es.array.concat.js");
|
|
@@ -52,33 +51,29 @@ require("core-js/modules/es.date.to-json.js");
|
|
|
52
51
|
require("core-js/modules/es.json.stringify.js");
|
|
53
52
|
require("core-js/modules/es.object.keys.js");
|
|
54
53
|
require("core-js/modules/es.object.to-string.js");
|
|
55
|
-
require("core-js/modules/es.regexp.exec.js");
|
|
56
54
|
require("core-js/modules/es.string.iterator.js");
|
|
57
|
-
require("core-js/modules/es.string.search.js");
|
|
58
55
|
require("core-js/modules/es.weak-map.js");
|
|
59
56
|
require("core-js/modules/esnext.json.parse.js");
|
|
60
57
|
require("core-js/modules/esnext.weak-map.delete-all.js");
|
|
61
58
|
require("core-js/modules/esnext.weak-map.emplace.js");
|
|
62
59
|
require("core-js/modules/web.dom-collections.iterator.js");
|
|
63
|
-
require("
|
|
64
|
-
require("core-js/modules/web.url-search-params.delete.js");
|
|
65
|
-
require("core-js/modules/web.url-search-params.has.js");
|
|
66
|
-
require("core-js/modules/web.url-search-params.size.js");
|
|
60
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
67
61
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
68
62
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
69
63
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
70
64
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
71
65
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
72
|
-
var _fcrCore = require("fcr-core");
|
|
73
|
-
var _react = require("react");
|
|
74
|
-
var _logger = require("../../utilities/logger");
|
|
75
|
-
var _libs = require("../annotation/libs");
|
|
76
66
|
var _decorator = require("agora-foundation/lib/decorator");
|
|
67
|
+
var _fcrCore = require("fcr-core");
|
|
77
68
|
var _imports = require("fcr-core/lib/imports");
|
|
78
|
-
var _type = require("../../modules/secondary-window/type");
|
|
79
|
-
var _libs2 = require("../annotation/toolbar/components/graphic-tool/graphic-panel/libs");
|
|
80
69
|
var _mobx = require("mobx");
|
|
81
|
-
var
|
|
70
|
+
var _react = require("react");
|
|
71
|
+
var _tinycolor = _interopRequireDefault(require("tinycolor2"));
|
|
72
|
+
var _type = require("../../modules/secondary-window/type");
|
|
73
|
+
require("../../plugins/rtm-plugin");
|
|
74
|
+
var _logger = require("../../utilities/logger");
|
|
75
|
+
var _tools = require("agora-foundation/lib/utilities/tools");
|
|
76
|
+
var _libs = require("./libs");
|
|
82
77
|
var _FragmentWhiteboardStore;
|
|
83
78
|
var _initProto, _init_currentTool;
|
|
84
79
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -93,7 +88,6 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
93
88
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
94
89
|
function _setFunctionName(e, t, n) { "symbol" == _typeof(t) && (t = (t = t.description) ? "[" + t + "]" : ""); try { Object.defineProperty(e, "name", { configurable: !0, value: n ? n + " " + t : t }); } catch (e) {} return e; }
|
|
95
90
|
function _checkInRHS(e) { if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (null !== e ? _typeof(e) : "null")); return e; }
|
|
96
|
-
var STORAGE_KEY_ANNOTATION_BOARD_OPTIONS = 'annotation_board_options';
|
|
97
91
|
var STORAGE_KEY_WHITEBOARD_OPTIONS = 'whiteboard_options';
|
|
98
92
|
var STORAGE_KEY_ANNOTATION_NICKNAME = 'annotation_nickname';
|
|
99
93
|
var _A = /*#__PURE__*/new WeakMap();
|
|
@@ -105,7 +99,6 @@ var FragmentWhiteboardStore = exports.FragmentWhiteboardStore = /*#__PURE__*/fun
|
|
|
105
99
|
prefix: 'FragmentWhiteboardStore'
|
|
106
100
|
})));
|
|
107
101
|
(0, _defineProperty2["default"])(this, "_engine", null);
|
|
108
|
-
(0, _defineProperty2["default"])(this, "_sharingType", 'whiteboard');
|
|
109
102
|
(0, _defineProperty2["default"])(this, "_isMounted", false);
|
|
110
103
|
(0, _defineProperty2["default"])(this, "_boardObserver", {
|
|
111
104
|
onConnectionStateUpdated: this._handleConnectionStateUpdated
|
|
@@ -126,53 +119,55 @@ var FragmentWhiteboardStore = exports.FragmentWhiteboardStore = /*#__PURE__*/fun
|
|
|
126
119
|
_this.logger.info("[whiteboard-fragment]: onBackgroundColorUpdated ".concat(color));
|
|
127
120
|
(_this$_boardInstance = _this._boardInstance) === null || _this$_boardInstance === void 0 || _this$_boardInstance.setBackgroundColor(color);
|
|
128
121
|
},
|
|
129
|
-
onSharingUserUpdated: function onSharingUserUpdated(userInfo) {
|
|
130
|
-
_this.logger.info("[whiteboard-fragment]: onSharingUserUpdated ".concat(userInfo));
|
|
131
|
-
},
|
|
132
122
|
onPermissionUpdated: function onPermissionUpdated(hasWriteBoardPermission) {
|
|
133
123
|
_this.logger.info("[whiteboard-fragment]: onPermissionUpdated ".concat(hasWriteBoardPermission));
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
}
|
|
139
|
-
} else {
|
|
140
|
-
// TODO
|
|
124
|
+
|
|
125
|
+
// 子窗口的白板需要独立更新权限, FcrMainRoomControlImpl 内只处理了主窗口权限更新
|
|
126
|
+
if (_this._whiteboardControl) {
|
|
127
|
+
_this._whiteboardControl.setOperationPrivilege(hasWriteBoardPermission);
|
|
141
128
|
}
|
|
142
129
|
},
|
|
143
130
|
onWhiteboardInActive: function onWhiteboardInActive() {
|
|
144
131
|
_this.logger.info("[whiteboard-fragment]: onWhiteboardInActive");
|
|
145
132
|
_this.unload();
|
|
146
133
|
},
|
|
147
|
-
|
|
148
|
-
var _this$_boardInstance2
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
134
|
+
onWhiteboardStrokeColorChanged: function onWhiteboardStrokeColorChanged(color) {
|
|
135
|
+
var _this$_boardInstance2;
|
|
136
|
+
_this.logger.info("[whiteboard-fragment]: onWhiteboardStrokeColorChanged ".concat(color));
|
|
137
|
+
(_this$_boardInstance2 = _this._boardInstance) === null || _this$_boardInstance2 === void 0 || _this$_boardInstance2.setStrokeColor((0, _tinycolor["default"])(color).toRgb());
|
|
138
|
+
},
|
|
139
|
+
onWhiteboardStrokeWidthChanged: function onWhiteboardStrokeWidthChanged(width) {
|
|
140
|
+
var _this$_boardInstance3;
|
|
141
|
+
_this.logger.info("[whiteboard-fragment]: onWhiteboardStrokeWidthChanged ".concat(width));
|
|
142
|
+
(_this$_boardInstance3 = _this._boardInstance) === null || _this$_boardInstance3 === void 0 || _this$_boardInstance3.setStrokeWidth(width);
|
|
143
|
+
},
|
|
144
|
+
onWhiteboardToolSelected: function onWhiteboardToolSelected(_ref) {
|
|
145
|
+
var _this$_boardInstance6, _this$_boardInstance7, _this$_boardInstance8;
|
|
146
|
+
var tool = _ref.tool,
|
|
147
|
+
shape = _ref.shape,
|
|
148
|
+
action = _ref.action;
|
|
149
|
+
if (tool !== undefined) {
|
|
150
|
+
var _this$_boardInstance4;
|
|
151
|
+
_this.currentTool = tool;
|
|
152
|
+
(_this$_boardInstance4 = _this._boardInstance) === null || _this$_boardInstance4 === void 0 || _this$_boardInstance4.setToolType(tool);
|
|
153
|
+
}
|
|
154
|
+
if (shape !== undefined) {
|
|
155
|
+
var _this$_boardInstance5;
|
|
156
|
+
_this.currentTool = (0, _libs.convertShapeToBoardToolType)(shape);
|
|
157
|
+
(_this$_boardInstance5 = _this._boardInstance) === null || _this$_boardInstance5 === void 0 || _this$_boardInstance5.setToolType((0, _libs.convertShapeToBoardToolType)(shape));
|
|
158
|
+
}
|
|
159
|
+
if (action) {
|
|
160
|
+
switch (action) {
|
|
161
|
+
case _type.WhiteboardToolAction.UNDO:
|
|
162
|
+
(_this$_boardInstance6 = _this._boardInstance) === null || _this$_boardInstance6 === void 0 || _this$_boardInstance6.undo();
|
|
163
|
+
break;
|
|
164
|
+
case _type.WhiteboardToolAction.REDO:
|
|
165
|
+
(_this$_boardInstance7 = _this._boardInstance) === null || _this$_boardInstance7 === void 0 || _this$_boardInstance7.redo();
|
|
166
|
+
break;
|
|
167
|
+
case _type.WhiteboardToolAction.CLEAR:
|
|
168
|
+
(_this$_boardInstance8 = _this._boardInstance) === null || _this$_boardInstance8 === void 0 || _this$_boardInstance8.clean();
|
|
169
|
+
break;
|
|
170
|
+
}
|
|
176
171
|
}
|
|
177
172
|
},
|
|
178
173
|
onSaveDraft: function () {
|
|
@@ -203,27 +198,18 @@ var FragmentWhiteboardStore = exports.FragmentWhiteboardStore = /*#__PURE__*/fun
|
|
|
203
198
|
});
|
|
204
199
|
(0, _defineProperty2["default"])(this, "_engineObserver", {});
|
|
205
200
|
_classPrivateFieldInitSpec(this, _A, _init_currentTool(this, _fcrCore.FcrBoardToolType.NONE));
|
|
206
|
-
var urlParams = new URLSearchParams(window.location.search);
|
|
207
|
-
var type = urlParams.get('type');
|
|
208
201
|
window.require = parent.window.require;
|
|
209
202
|
var appId = _tools.storage.get('annotation_rtm_app_id') || '';
|
|
210
203
|
var boardOptions = _tools.storage.get(STORAGE_KEY_WHITEBOARD_OPTIONS);
|
|
211
204
|
var _JSON$parse = JSON.parse(boardOptions || '{}'),
|
|
212
205
|
roomToken = _JSON$parse.boardUserToken,
|
|
213
206
|
userId = _JSON$parse.boardUserUuid;
|
|
214
|
-
if (type === 'annotation') {
|
|
215
|
-
this._sharingType = 'annotation';
|
|
216
|
-
this.logger.info("[whiteboard-fragment]: sharing type is annotation, with a annotation user id: ".concat(userId));
|
|
217
|
-
} else {
|
|
218
|
-
this._sharingType = 'whiteboard';
|
|
219
|
-
this.logger.info("[whiteboard-fragment]: sharing type is whiteboard, with a board user id: ".concat(userId));
|
|
220
|
-
}
|
|
221
207
|
if (!roomToken) {
|
|
222
|
-
this.logger.error("[whiteboard-fragment]: room token is not found
|
|
208
|
+
this.logger.error("[whiteboard-fragment]: room token is not found");
|
|
223
209
|
return;
|
|
224
210
|
}
|
|
225
211
|
if (!userId) {
|
|
226
|
-
this.logger.error("[whiteboard-fragment]: user id is not found
|
|
212
|
+
this.logger.error("[whiteboard-fragment]: user id is not found");
|
|
227
213
|
return;
|
|
228
214
|
}
|
|
229
215
|
this._init(this._initEngine({
|
|
@@ -253,11 +239,6 @@ var FragmentWhiteboardStore = exports.FragmentWhiteboardStore = /*#__PURE__*/fun
|
|
|
253
239
|
get: function get() {
|
|
254
240
|
return this._boardDom;
|
|
255
241
|
}
|
|
256
|
-
}, {
|
|
257
|
-
key: "sharingType",
|
|
258
|
-
get: function get() {
|
|
259
|
-
return this._sharingType;
|
|
260
|
-
}
|
|
261
242
|
}, {
|
|
262
243
|
key: "mainWindowRenderer",
|
|
263
244
|
get: function get() {
|
|
@@ -318,13 +299,13 @@ var FragmentWhiteboardStore = exports.FragmentWhiteboardStore = /*#__PURE__*/fun
|
|
|
318
299
|
// @ts-ignore
|
|
319
300
|
window.parent.FcrUIMainWindowRenderer.notifyObservers('onConnectionStateUpdated', state);
|
|
320
301
|
if (state === _fcrCore.FcrConnectionState.CONNECTED) {
|
|
321
|
-
var _this$
|
|
302
|
+
var _this$_boardInstance0;
|
|
322
303
|
this.logger.info(// @ts-ignore
|
|
323
304
|
"[whiteboard-fragment]: connection state updated: ".concat(_fcrCore.FcrConnectionState[state], ", background color: ").concat(window.parent.FcrUIMainWindowRenderer.backgroundColor));
|
|
324
|
-
this._boardInstance = this.
|
|
325
|
-
|
|
305
|
+
this._boardInstance = this._boardControl.getMainWindow();
|
|
306
|
+
|
|
326
307
|
// @ts-ignore
|
|
327
|
-
window.parent.FcrUIMainWindowRenderer.backgroundColor
|
|
308
|
+
var backgroundColor = window.parent.FcrUIMainWindowRenderer.backgroundColor;
|
|
328
309
|
(_this$_boardInstance0 = this._boardInstance) === null || _this$_boardInstance0 === void 0 || _this$_boardInstance0.setBackgroundColor(backgroundColor);
|
|
329
310
|
this._boardInstance && this._boardInstance.addObserver(this._boardMainWindowObserver);
|
|
330
311
|
this._mount();
|
|
@@ -342,8 +323,11 @@ var FragmentWhiteboardStore = exports.FragmentWhiteboardStore = /*#__PURE__*/fun
|
|
|
342
323
|
onConnectionStateUpdated: function onConnectionStateUpdated(state) {
|
|
343
324
|
if (state === _fcrCore.FcrConnectionState.CONNECTED) {
|
|
344
325
|
_this2._engine = engine;
|
|
345
|
-
|
|
346
|
-
//
|
|
326
|
+
|
|
327
|
+
// 只需要初始化一次, 网络断开重连时不需要重复初始化
|
|
328
|
+
if (!_this2._whiteboardControl) {
|
|
329
|
+
_this2._initWhiteboardControl();
|
|
330
|
+
}
|
|
347
331
|
_this2.logger.info("[whiteboard-fragment][initEngine]: engine connection state updated => CONNECTED}");
|
|
348
332
|
}
|
|
349
333
|
if (state === _fcrCore.FcrConnectionState.DISCONNECTED) {
|
|
@@ -421,55 +405,6 @@ var FragmentWhiteboardStore = exports.FragmentWhiteboardStore = /*#__PURE__*/fun
|
|
|
421
405
|
}
|
|
422
406
|
return _initWhiteboardControl;
|
|
423
407
|
}()
|
|
424
|
-
}, {
|
|
425
|
-
key: "_initAnnotationControl",
|
|
426
|
-
value: function () {
|
|
427
|
-
var _initAnnotationControl2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee4() {
|
|
428
|
-
var nickName, annotationOptions, _JSON$parse3, boardAppId, boardId, region, boardToken, userId, config, hasPrivilege;
|
|
429
|
-
return _regenerator["default"].wrap(function (_context4) {
|
|
430
|
-
while (1) switch (_context4.prev = _context4.next) {
|
|
431
|
-
case 0:
|
|
432
|
-
nickName = _tools.storage.get(STORAGE_KEY_ANNOTATION_NICKNAME) || '';
|
|
433
|
-
annotationOptions = _tools.storage.get(STORAGE_KEY_ANNOTATION_BOARD_OPTIONS);
|
|
434
|
-
_JSON$parse3 = JSON.parse(annotationOptions || '{}'), boardAppId = _JSON$parse3.boardAppId, boardId = _JSON$parse3.boardId, region = _JSON$parse3.boardRegion, boardToken = _JSON$parse3.boardToken, userId = _JSON$parse3.boardUserUuid;
|
|
435
|
-
config = {
|
|
436
|
-
userId: userId,
|
|
437
|
-
userName: nickName,
|
|
438
|
-
boardRatio: 1,
|
|
439
|
-
roomId: boardId,
|
|
440
|
-
// extra: {
|
|
441
|
-
// boardAppId,
|
|
442
|
-
// boardId,
|
|
443
|
-
// region,
|
|
444
|
-
// boardToken,
|
|
445
|
-
// },
|
|
446
|
-
size: {
|
|
447
|
-
width: 1920,
|
|
448
|
-
height: 1220
|
|
449
|
-
}
|
|
450
|
-
};
|
|
451
|
-
this.logger.info("[whiteboard-fragment]: start create annotation sub process with config: ".concat(JSON.stringify(config)));
|
|
452
|
-
hasPrivilege = false;
|
|
453
|
-
this._annotationControl = new _imports.FcrAnnotationControlFactoryImpl().createForSubProcess(
|
|
454
|
-
// @ts-ignore
|
|
455
|
-
this._engine._rteEngine._rtmClient._client, hasPrivilege, config);
|
|
456
|
-
this.logger.info("[whiteboard-fragment]: annotation sub process created, the control is ".concat(this._annotationControl));
|
|
457
|
-
this._annotationControl.addObserver(this._boardObserver);
|
|
458
|
-
_context4.next = 1;
|
|
459
|
-
return this._annotationControl.open();
|
|
460
|
-
case 1:
|
|
461
|
-
this.logger.info("[whiteboard-fragment]: annotation opened, the instance is ".concat(this._boardInstance));
|
|
462
|
-
case 2:
|
|
463
|
-
case "end":
|
|
464
|
-
return _context4.stop();
|
|
465
|
-
}
|
|
466
|
-
}, _callee4, this);
|
|
467
|
-
}));
|
|
468
|
-
function _initAnnotationControl() {
|
|
469
|
-
return _initAnnotationControl2.apply(this, arguments);
|
|
470
|
-
}
|
|
471
|
-
return _initAnnotationControl;
|
|
472
|
-
}()
|
|
473
408
|
}, {
|
|
474
409
|
key: "_initEngine",
|
|
475
410
|
value: function _initEngine(config) {
|
|
@@ -477,17 +412,18 @@ var FragmentWhiteboardStore = exports.FragmentWhiteboardStore = /*#__PURE__*/fun
|
|
|
477
412
|
token = config.roomToken,
|
|
478
413
|
appId = config.appId;
|
|
479
414
|
this.logger.info("[whiteboard-fragment][initEngine]: init engine with config => ".concat(JSON.stringify(config)));
|
|
480
|
-
|
|
415
|
+
var engineConfig = new _fcrCore.FcrCoreEngineConfig(_objectSpread({
|
|
481
416
|
appId: appId,
|
|
482
417
|
token: token,
|
|
483
418
|
userId: userId,
|
|
484
419
|
region: _fcrCore.FcrRegion.CN
|
|
485
420
|
}, _libs.engineRestConfig));
|
|
421
|
+
return new _fcrCore.FcrCoreEngine(engineConfig);
|
|
486
422
|
}
|
|
487
423
|
}]);
|
|
488
424
|
}();
|
|
489
425
|
_FragmentWhiteboardStore = FragmentWhiteboardStore;
|
|
490
|
-
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_FragmentWhiteboardStore, [[_mobx.observable, 1, "currentTool"], [_decorator.bound, 2, "handleBoardDomLoad"], [_decorator.bound, 2, "_mount"], [_decorator.bound, 2, "_unmount"], [_decorator.bound, 2, "_handleConnectionStateUpdated"], [_decorator.bound, 2, "_init"], [_decorator.bound, 2, "_initWhiteboardControl"], [_decorator.bound, 2, "
|
|
426
|
+
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_FragmentWhiteboardStore, [[_mobx.observable, 1, "currentTool"], [_decorator.bound, 2, "handleBoardDomLoad"], [_decorator.bound, 2, "_mount"], [_decorator.bound, 2, "_unmount"], [_decorator.bound, 2, "_handleConnectionStateUpdated"], [_decorator.bound, 2, "_init"], [_decorator.bound, 2, "_initWhiteboardControl"], [_decorator.bound, 2, "_initEngine"]], []).e, 2);
|
|
491
427
|
_init_currentTool = _applyDecs$e[0];
|
|
492
428
|
_initProto = _applyDecs$e[1];
|
|
493
429
|
var FragmentWhiteboardStoreContext = exports.FragmentWhiteboardStoreContext = /*#__PURE__*/(0, _react.createContext)(null);
|
|
@@ -31,8 +31,8 @@ var Apps = exports.Apps = (0, _mobxReact.observer)(function (_ref) {
|
|
|
31
31
|
overlayInnerStyle: {
|
|
32
32
|
boxShadow: 'var(--fcr_web_light_dropup_m)',
|
|
33
33
|
border: 'none',
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
height: 'auto',
|
|
35
|
+
width: 'max-content'
|
|
36
36
|
},
|
|
37
37
|
onVisibleChange: function onVisibleChange(visible) {
|
|
38
38
|
toggleLayoutBarLock(visible);
|
|
@@ -84,6 +84,10 @@ var ActionBarCollapseItems = exports.ActionBarCollapseItems = (0, _mobxReact.obs
|
|
|
84
84
|
var appItemOptions = _ref.appItemOptions;
|
|
85
85
|
var _useContext = (0, _react.useContext)(_store.ActionBarContext),
|
|
86
86
|
isInterpreterEnabled = _useContext.isInterpreterEnabled,
|
|
87
|
+
isInterpreterSupported = _useContext.isInterpreterSupported,
|
|
88
|
+
isLiveSupported = _useContext.isLiveSupported,
|
|
89
|
+
isVirtualBackgroundSupported = _useContext.isVirtualBackgroundSupported,
|
|
90
|
+
isBeautyModeAbilitySupported = _useContext.isBeautyModeAbilitySupported,
|
|
87
91
|
hasSecurityPermissions = _useContext.hasSecurityPermissions,
|
|
88
92
|
isRecordingSupported = _useContext.isRecordingSupported;
|
|
89
93
|
var _useState = (0, _react.useState)(function () {
|
|
@@ -95,8 +99,8 @@ var ActionBarCollapseItems = exports.ActionBarCollapseItems = (0, _mobxReact.obs
|
|
|
95
99
|
var filteredItems = (0, _react.useMemo)(function () {
|
|
96
100
|
var filter = function filter(item) {
|
|
97
101
|
switch (item.name) {
|
|
98
|
-
|
|
99
|
-
|
|
102
|
+
case 'Record':
|
|
103
|
+
return isRecordingSupported;
|
|
100
104
|
// case 'ScreenShare':
|
|
101
105
|
// return hasStartScreenSharePermission;
|
|
102
106
|
case 'Security':
|
|
@@ -106,7 +110,8 @@ var ActionBarCollapseItems = exports.ActionBarCollapseItems = (0, _mobxReact.obs
|
|
|
106
110
|
case _enums.MidActionOrderMapKey.TriggerSubscribeLanguage:
|
|
107
111
|
return isInterpreterEnabled;
|
|
108
112
|
case _enums.MidActionOrderMapKey.Apps:
|
|
109
|
-
|
|
113
|
+
var isAppsLayerVisible = appItemOptions.length > 0 && (isInterpreterSupported || isLiveSupported || isVirtualBackgroundSupported || isBeautyModeAbilitySupported);
|
|
114
|
+
return isAppsLayerVisible;
|
|
110
115
|
default:
|
|
111
116
|
return true;
|
|
112
117
|
}
|
package/lib/modules/action-bar/components/{confirm-leave-meeting → confirm-end-meeting}/index.js
RENAMED
|
@@ -5,22 +5,21 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.ConfirmEndMeeting = void 0;
|
|
9
9
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
10
10
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
11
|
-
var _button = require("agora-ui-foundation/lib/components/button");
|
|
12
11
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
13
12
|
var _react = require("react");
|
|
14
13
|
var _store = require("../../../components/leave-meeting/store.base");
|
|
15
14
|
var _store2 = require("../../../dialog/store.base");
|
|
16
15
|
var _store3 = require("../../main-scene/store.base");
|
|
16
|
+
var _confirmWrapper = require("../../../components/confirm-wrapper");
|
|
17
17
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
|
-
var
|
|
18
|
+
var ConfirmEndMeeting = exports.ConfirmEndMeeting = function ConfirmEndMeeting(_ref) {
|
|
19
19
|
var dialogId = _ref.dialogId;
|
|
20
20
|
var t = (0, _i18n.useI18n)();
|
|
21
21
|
var _useContext = (0, _react.useContext)(_store.LeaveMeetingStoreContext),
|
|
22
|
-
|
|
23
|
-
setIsSelfEndMeeting = _useContext.setIsSelfEndMeeting;
|
|
22
|
+
endMeeting = _useContext.endMeeting;
|
|
24
23
|
var _useContext2 = (0, _react.useContext)(_store2.StoreContext),
|
|
25
24
|
handleDialogClose = _useContext2.handleDialogClose;
|
|
26
25
|
var _useContext3 = (0, _react.useContext)(_store3.ActionBarContext),
|
|
@@ -30,8 +29,7 @@ var ConfirmLeaveMeeting = exports.ConfirmLeaveMeeting = function ConfirmLeaveMee
|
|
|
30
29
|
return _regenerator["default"].wrap(function (_context) {
|
|
31
30
|
while (1) switch (_context.prev = _context.next) {
|
|
32
31
|
case 0:
|
|
33
|
-
|
|
34
|
-
end();
|
|
32
|
+
endMeeting();
|
|
35
33
|
handleDialogClose(dialogId);
|
|
36
34
|
case 1:
|
|
37
35
|
case "end":
|
|
@@ -47,32 +45,15 @@ var ConfirmLeaveMeeting = exports.ConfirmLeaveMeeting = function ConfirmLeaveMee
|
|
|
47
45
|
setEndMeetingPopoverOpened(true);
|
|
48
46
|
handleDialogClose(dialogId);
|
|
49
47
|
};
|
|
50
|
-
return /*#__PURE__*/(0, _jsxRuntime.
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
48
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_confirmWrapper.ConfirmWrapper, {
|
|
49
|
+
title: t('fmt_actionbar_labels_endmeeting'),
|
|
50
|
+
confirmBtnProps: {
|
|
51
|
+
text: t('fmt_toolbar_leave_room_end_submit'),
|
|
52
|
+
onClick: handleOk
|
|
55
53
|
},
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
})
|
|
61
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
|
|
62
|
-
size: "XS",
|
|
63
|
-
styleType: "danger",
|
|
64
|
-
type: "primary",
|
|
65
|
-
shape: "rounded",
|
|
66
|
-
block: true,
|
|
67
|
-
onClick: handleOk,
|
|
68
|
-
children: t('fmt_toolbar_leave_room_end_submit')
|
|
69
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
|
|
70
|
-
size: "XS",
|
|
71
|
-
type: "secondary",
|
|
72
|
-
shape: "rounded",
|
|
73
|
-
block: true,
|
|
74
|
-
onClick: handleCancel,
|
|
75
|
-
children: t('fmt_toolbar_tips_leave_room_end_cancel')
|
|
76
|
-
})]
|
|
54
|
+
cancelBtnProps: {
|
|
55
|
+
text: t('fmt_toolbar_tips_leave_room_end_cancel'),
|
|
56
|
+
onClick: handleCancel
|
|
57
|
+
}
|
|
77
58
|
});
|
|
78
59
|
};
|
|
@@ -107,7 +107,7 @@ var End = exports.End = (0, _mobxReact.observer)(function (props) {
|
|
|
107
107
|
showArrow: false,
|
|
108
108
|
overlayClassName: "fcr-action-bar--device-popover fcr-action-bar--leave-popover",
|
|
109
109
|
overlayInnerStyle: {
|
|
110
|
-
width:
|
|
110
|
+
width: 'auto'
|
|
111
111
|
},
|
|
112
112
|
visible: endMeetingPopoverOpened,
|
|
113
113
|
onVisibleChange: onPopoverChanged,
|
|
@@ -18,6 +18,12 @@
|
|
|
18
18
|
background: var(--fcr_ui_scene_white10);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
.interpreter-notification .interpreter-notification-inner-reenter {
|
|
22
|
+
justify-content: center;
|
|
23
|
+
align-items: center;
|
|
24
|
+
display: flex;
|
|
25
|
+
}
|
|
26
|
+
|
|
21
27
|
.interpreter-notification .interpreter-notification-header {
|
|
22
28
|
display: flex;
|
|
23
29
|
justify-content: space-between;
|
package/lib/modules/action-bar/components/notification-bar/components/interpreter/index.d.ts
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import './index.css';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
reenter: FcrInterpreterUserInfo[] | undefined;
|
|
6
|
-
onClose?: () => void;
|
|
7
|
-
onAssign?: () => void;
|
|
8
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const InterpreterNotification: ({ hidden }: {
|
|
3
|
+
hidden: boolean;
|
|
4
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports
|
|
8
|
+
exports.InterpreterNotification = void 0;
|
|
9
9
|
require("core-js/modules/es.array.concat.js");
|
|
10
10
|
require("core-js/modules/es.array.join.js");
|
|
11
11
|
require("core-js/modules/es.array.map.js");
|
|
@@ -19,64 +19,88 @@ var _button = require("agora-ui-foundation/lib/components/button");
|
|
|
19
19
|
require("./index.css");
|
|
20
20
|
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
21
21
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
22
|
+
var _store = require("../../../../main-scene/store.base");
|
|
23
|
+
var _mobxReact = require("mobx-react");
|
|
24
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
22
25
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
23
|
-
function
|
|
24
|
-
var
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
var InterpreterNotification = exports.InterpreterNotification = (0, _mobxReact.observer)(function (_ref) {
|
|
27
|
+
var hidden = _ref.hidden;
|
|
28
|
+
var timerRef = (0, _react.useRef)(null);
|
|
29
|
+
var _useContext = (0, _react.useContext)(_store.ActionBarContext),
|
|
30
|
+
openInterpreterDialog = _useContext.openInterpreterDialog,
|
|
31
|
+
offlineInterpreterUserList = _useContext.offlineInterpreterUserList,
|
|
32
|
+
reEnterInterpreterUserList = _useContext.reEnterInterpreterUserList,
|
|
33
|
+
clearReEnterInterpreterUserList = _useContext.clearReEnterInterpreterUserList,
|
|
34
|
+
clearOfflineInterpreterUserList = _useContext.clearOfflineInterpreterUserList;
|
|
30
35
|
var _useState = (0, _react.useState)(5),
|
|
31
36
|
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
32
37
|
second = _useState2[0],
|
|
33
38
|
setSecond = _useState2[1];
|
|
34
39
|
var transI18n = (0, _i18n.useI18n)();
|
|
35
|
-
var text = (0, _react.useMemo)(function () {
|
|
36
|
-
return transI18n('fmt_interpretation_popup_label_set', {
|
|
37
|
-
reason1: offline.map(function (interpreter) {
|
|
38
|
-
return interpreter.userName;
|
|
39
|
-
}).join('、')
|
|
40
|
-
});
|
|
41
|
-
}, [offline]);
|
|
42
40
|
var reEnterText = (0, _react.useMemo)(function () {
|
|
43
41
|
return transI18n('fmt_interpretation_popup_toast_label_return_meeting', {
|
|
44
|
-
reason1:
|
|
45
|
-
return interpreter.userName;
|
|
42
|
+
reason1: reEnterInterpreterUserList.map(function (interpreter) {
|
|
43
|
+
return interpreter.userInfo.userName;
|
|
44
|
+
}).join('、')
|
|
45
|
+
});
|
|
46
|
+
}, [reEnterInterpreterUserList]);
|
|
47
|
+
var offlineText = (0, _react.useMemo)(function () {
|
|
48
|
+
return transI18n('fmt_interpretation_popup_label_set', {
|
|
49
|
+
reason1: offlineInterpreterUserList.map(function (interpreter) {
|
|
50
|
+
return interpreter.userInfo.userName;
|
|
46
51
|
}).join('、')
|
|
47
52
|
});
|
|
48
|
-
}, [
|
|
53
|
+
}, [offlineInterpreterUserList]);
|
|
54
|
+
var reEnterTextContent = "".concat(reEnterText, "(").concat(second, "s)");
|
|
55
|
+
var hasReEnterInterpreterUsers = reEnterInterpreterUserList.length > 0;
|
|
56
|
+
var hasOfflineInterpreterUsers = offlineInterpreterUserList.length > 0;
|
|
57
|
+
var clearTimer = function clearTimer() {
|
|
58
|
+
if (timerRef.current) {
|
|
59
|
+
clearInterval(timerRef.current);
|
|
60
|
+
timerRef.current = null;
|
|
61
|
+
}
|
|
62
|
+
};
|
|
49
63
|
(0, _react.useEffect)(function () {
|
|
50
|
-
if (
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
64
|
+
if (hasReEnterInterpreterUsers) {
|
|
65
|
+
setSecond(5);
|
|
66
|
+
timerRef.current = setInterval(function () {
|
|
67
|
+
setSecond(function (preSecond) {
|
|
68
|
+
if (preSecond === 0) {
|
|
69
|
+
clearReEnterInterpreterUserList();
|
|
70
|
+
clearTimer();
|
|
71
|
+
return 0;
|
|
72
|
+
}
|
|
73
|
+
return preSecond - 1;
|
|
74
|
+
});
|
|
75
|
+
}, 1000);
|
|
76
|
+
} else {
|
|
77
|
+
clearTimer();
|
|
55
78
|
}
|
|
56
|
-
var timer = setInterval(function () {
|
|
57
|
-
setSecond(function (second) {
|
|
58
|
-
return second - 1;
|
|
59
|
-
});
|
|
60
|
-
}, 1000);
|
|
61
79
|
return function () {
|
|
62
|
-
|
|
80
|
+
clearTimer();
|
|
63
81
|
};
|
|
64
|
-
}, [
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
82
|
+
}, [reEnterInterpreterUserList]);
|
|
83
|
+
var handleClose = function handleClose() {
|
|
84
|
+
clearReEnterInterpreterUserList();
|
|
85
|
+
clearOfflineInterpreterUserList();
|
|
86
|
+
};
|
|
87
|
+
if (hidden) {
|
|
88
|
+
return null;
|
|
89
|
+
}
|
|
68
90
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
69
91
|
className: "interpreter-notification",
|
|
70
92
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
71
93
|
className: "interpreter-notification-close",
|
|
72
|
-
onClick:
|
|
94
|
+
onClick: handleClose,
|
|
73
95
|
children: "\xD7"
|
|
74
|
-
}),
|
|
96
|
+
}), hasOfflineInterpreterUsers && hasReEnterInterpreterUsers && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
75
97
|
className: "interpreter-notification-backtext",
|
|
76
|
-
children:
|
|
98
|
+
children: reEnterTextContent
|
|
77
99
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
78
|
-
className: "interpreter-notification-inner
|
|
79
|
-
|
|
100
|
+
className: (0, _classnames["default"])('interpreter-notification-inner', {
|
|
101
|
+
'interpreter-notification-inner-reenter': hasReEnterInterpreterUsers && !hasOfflineInterpreterUsers
|
|
102
|
+
}),
|
|
103
|
+
children: [hasOfflineInterpreterUsers && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
80
104
|
className: "interpreter-notification-header",
|
|
81
105
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
82
106
|
children: transI18n('fmt_interpretation_pupup_interpreter_offline')
|
|
@@ -89,13 +113,13 @@ function interpreterNotification(props) {
|
|
|
89
113
|
size: 18
|
|
90
114
|
},
|
|
91
115
|
size: "XXS",
|
|
92
|
-
onClick:
|
|
116
|
+
onClick: openInterpreterDialog,
|
|
93
117
|
children: transI18n('fmt_interpretation_popup_button_set')
|
|
94
118
|
})]
|
|
95
|
-
}), /*#__PURE__*/(0, _jsxRuntime.
|
|
119
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
96
120
|
className: "interpreter-notification-content",
|
|
97
|
-
children:
|
|
121
|
+
children: [hasOfflineInterpreterUsers && offlineText, hasReEnterInterpreterUsers && !hasOfflineInterpreterUsers && reEnterTextContent]
|
|
98
122
|
})]
|
|
99
123
|
})]
|
|
100
124
|
});
|
|
101
|
-
}
|
|
125
|
+
});
|