fcr-ui-scene 3.7.4 → 3.7.6
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/installer/icons/icon.png +0 -0
- package/installer/mac/entitlements.mac.plist +5 -1
- package/lib/assets/mic-loading.gif +0 -0
- package/lib/base.d.ts +15 -6
- package/lib/base.js +139 -107
- package/lib/{creator.d.ts → creator/index.d.ts} +16 -12
- package/lib/{creator.js → creator/index.js} +281 -210
- package/lib/creator/provider-initializer.browser.d.ts +14 -0
- package/lib/creator/provider-initializer.browser.js +303 -0
- package/lib/creator/provider-initializer.electron.d.ts +14 -0
- package/lib/creator/provider-initializer.electron.js +343 -0
- package/lib/creator/type.d.ts +15 -0
- package/lib/electron/app.js +84 -48
- package/lib/electron/bootstrap-sdk.js +138 -15
- package/lib/electron/event-manager.d.ts +88 -0
- package/lib/electron/event-manager.js +242 -0
- package/lib/electron/injections.d.ts +14 -32
- package/lib/electron/injections.js +207 -326
- package/lib/electron/ipc/type.d.ts +2 -0
- package/lib/electron/ipc/type.js +2 -0
- package/lib/electron/ipc-protocol.d.ts +91 -0
- package/lib/electron/ipc-protocol.js +61 -0
- package/lib/electron/main.js +64 -86
- package/lib/electron/preload.d.ts +1 -1
- package/lib/electron/preload.js +18 -112
- package/lib/electron/sdk-helper.d.ts +4 -0
- package/lib/electron/sdk-helper.js +272 -0
- package/lib/electron/struct.d.ts +12 -0
- package/lib/electron/struct.js +21 -0
- package/lib/electron/until.d.ts +32 -0
- package/lib/electron/until.js +58 -0
- package/lib/electron/window-proxy/browser-window-proxy.d.ts +63 -0
- package/lib/electron/window-proxy/browser-window-proxy.js +728 -0
- package/lib/electron/window-proxy/main-process-handler.d.ts +45 -0
- package/lib/electron/window-proxy/main-process-handler.js +446 -0
- package/lib/electron/window.d.ts +0 -4
- package/lib/electron/window.js +10 -21
- package/lib/fragments/annotation/index.d.ts +1 -0
- package/lib/fragments/annotation/index.js +3 -1
- package/lib/fragments/annotation/store.d.ts +1 -0
- package/lib/fragments/annotation/store.js +45 -18
- package/lib/fragments/annotation/toolbar/store.d.ts +6 -6
- package/lib/fragments/annotation/toolbar/store.js +13 -41
- package/lib/fragments/annotation/toolbar/view.js +32 -37
- package/lib/fragments/annotation/view.d.ts +0 -1
- package/lib/fragments/annotation/view.js +11 -12
- package/lib/fragments/base.d.ts +3 -0
- package/lib/fragments/base.js +3 -1
- package/lib/fragments/whiteboard/index.d.ts +1 -1
- package/lib/fragments/whiteboard/index.js +3 -6
- package/lib/fragments/whiteboard/store.d.ts +1 -0
- package/lib/fragments/whiteboard/store.js +15 -8
- package/lib/global.css +22 -10
- package/lib/global.d.ts +19 -1
- package/lib/modules/action-bar/components/apps/index.js +1 -1
- package/lib/modules/action-bar/components/chat/index.js +1 -1
- package/lib/modules/action-bar/components/collapse/index.d.ts +1 -1
- package/lib/modules/action-bar/components/collapse/index.js +1 -3
- package/lib/modules/action-bar/components/confirm-leave-meeting/index.d.ts +3 -0
- package/lib/modules/action-bar/components/confirm-leave-meeting/index.js +78 -0
- package/lib/modules/action-bar/components/interpreter/index.d.ts +1 -1
- package/lib/modules/action-bar/components/interpreter/index.js +1 -1
- package/lib/modules/action-bar/components/item/index.d.ts +1 -1
- package/lib/modules/action-bar/components/leave/index.js +1 -1
- package/lib/modules/action-bar/components/live-streaming/index.js +1 -1
- package/lib/modules/action-bar/components/more/index.js +3 -9
- package/lib/modules/action-bar/components/more/poppover-content.d.ts +1 -1
- package/lib/modules/action-bar/components/more/poppover-content.js +13 -13
- package/lib/modules/action-bar/components/notification-bar/index.js +1 -1
- package/lib/modules/action-bar/components/participants/index.js +1 -1
- package/lib/modules/action-bar/components/placement/index.d.ts +1 -1
- package/lib/modules/action-bar/components/record/index.js +1 -1
- package/lib/modules/action-bar/components/record/popover.js +1 -1
- package/lib/modules/action-bar/components/record/stop-record-dialog.d.ts +1 -1
- package/lib/modules/action-bar/components/screen-share/index.browser.d.ts +4 -0
- package/lib/modules/action-bar/components/screen-share/index.browser.js +62 -0
- package/lib/modules/action-bar/components/screen-share/index.electron.d.ts +4 -0
- package/lib/modules/action-bar/components/screen-share/index.electron.js +72 -0
- package/lib/modules/action-bar/components/screen-share/index.js +3 -85
- package/lib/modules/action-bar/components/screen-share/submenu.d.ts +5 -1
- package/lib/modules/action-bar/components/screen-share/submenu.js +56 -43
- package/lib/modules/action-bar/components/security/index.js +2 -14
- package/lib/modules/action-bar/components/settings/index.js +3 -3
- package/lib/modules/action-bar/components/smaller/index.js +1 -1
- package/lib/modules/action-bar/components/trigger-output-language/index.js +1 -1
- package/lib/modules/action-bar/components/trigger-subscribe-language/guide-tooltip/index.d.ts +1 -1
- package/lib/modules/action-bar/components/trigger-subscribe-language/index.js +2 -2
- package/lib/modules/action-bar/constants.d.ts +1 -0
- package/lib/modules/action-bar/constants.js +8 -0
- package/lib/modules/action-bar/main-scene/index.d.ts +19 -0
- package/lib/modules/action-bar/main-scene/index.js +141 -0
- package/lib/modules/action-bar/{store.d.ts → main-scene/store.base.d.ts} +84 -108
- package/lib/modules/action-bar/{store.js → main-scene/store.base.js} +285 -288
- package/lib/modules/action-bar/main-scene/store.browser.d.ts +4 -0
- package/lib/modules/action-bar/main-scene/store.browser.js +111 -0
- package/lib/modules/action-bar/main-scene/store.electron.d.ts +10 -0
- package/lib/modules/action-bar/main-scene/store.electron.js +100 -0
- package/lib/modules/action-bar/main-scene/view.d.ts +4 -0
- package/lib/modules/action-bar/{view.js → main-scene/view.js} +16 -17
- package/lib/modules/action-bar/{types.d.ts → type.d.ts} +9 -0
- package/lib/modules/action-bar/type.js +13 -0
- package/lib/modules/action-bar/waiting-scene/index.d.ts +15 -0
- package/lib/modules/action-bar/waiting-scene/index.js +102 -0
- package/lib/modules/action-bar/waiting-scene/store.base.d.ts +9 -0
- package/lib/{shared-data-source/annotation-data.js → modules/action-bar/waiting-scene/store.base.js} +20 -35
- package/lib/modules/action-bar/waiting-scene/store.browser.d.ts +3 -0
- package/lib/modules/action-bar/waiting-scene/store.browser.js +25 -0
- package/lib/modules/action-bar/waiting-scene/store.electron.d.ts +9 -0
- package/lib/modules/action-bar/waiting-scene/store.electron.js +45 -0
- package/lib/modules/action-bar/waiting-scene/view.d.ts +2 -0
- package/lib/modules/action-bar/waiting-scene/view.js +123 -0
- package/lib/modules/audio-stream/index.d.ts +3 -14
- package/lib/modules/audio-stream/index.js +21 -16
- package/lib/modules/chat/chat-room-store.d.ts +7 -20
- package/lib/modules/chat/chat-room-store.js +21 -20
- package/lib/modules/chat/components/message-list/index.js +1 -1
- package/lib/modules/chat/components/message-list/message-item/index.js +2 -2
- package/lib/modules/chat/index.css +4 -0
- package/lib/modules/chat/index.d.ts +6 -22
- package/lib/modules/chat/index.dev.js +9 -9
- package/lib/modules/chat/index.js +52 -108
- package/lib/modules/chat/store.d.ts +16 -30
- package/lib/modules/chat/store.js +138 -53
- package/lib/modules/chat/types.d.ts +19 -2
- package/lib/modules/chat/view.js +5 -4
- package/lib/modules/components/annotation-menu/index.js +1 -6
- package/lib/modules/components/control-bar/components/switch-theme/index.js +2 -2
- package/lib/modules/components/control-bar/index.css +17 -5
- package/lib/modules/components/control-bar/index.d.ts +19 -11
- package/lib/modules/components/control-bar/index.js +101 -29
- package/lib/modules/components/device-control/components/audio-menu/index.js +4 -4
- package/lib/modules/components/device-control/components/carmera/index.js +16 -16
- package/lib/modules/components/device-control/components/microphone/index.d.ts +3 -2
- package/lib/modules/components/device-control/components/microphone/index.js +44 -28
- package/lib/modules/components/device-control/components/none-menu/index.js +4 -4
- package/lib/modules/components/device-control/components/phone-menu/index.js +4 -4
- package/lib/modules/components/device-control/components/video-menu/index.js +4 -4
- package/lib/modules/components/device-control/main-scene/store.d.ts +9 -0
- package/lib/modules/components/device-control/main-scene/store.js +94 -0
- package/lib/modules/components/device-control/{store.d.ts → store.base.d.ts} +12 -15
- package/lib/modules/components/device-control/{store.js → store.base.js} +39 -33
- package/lib/modules/components/device-control/type.d.ts +4 -0
- package/lib/modules/components/device-control/waiting-scene/store.d.ts +5 -0
- package/lib/modules/components/device-control/waiting-scene/store.js +90 -0
- package/lib/modules/components/leave-meeting/components/assign-host.d.ts +1 -1
- package/lib/modules/components/leave-meeting/index.js +7 -11
- package/lib/modules/components/leave-meeting/main-scene/store.d.ts +14 -0
- package/lib/modules/components/leave-meeting/main-scene/store.js +113 -0
- package/lib/modules/components/leave-meeting/store.base.d.ts +36 -0
- package/lib/modules/components/leave-meeting/{store.js → store.base.js} +45 -50
- package/lib/modules/components/leave-meeting/type.d.ts +4 -0
- package/lib/modules/components/leave-meeting/waiting-scene/store.d.ts +13 -0
- package/lib/modules/components/leave-meeting/waiting-scene/store.js +104 -0
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.js +5 -6
- package/lib/modules/components/member-window/components/member-actions/index.js +2 -0
- package/lib/modules/components/member-window/components/member-actions/libs/index.js +12 -14
- package/lib/modules/components/member-window/components/member-actions/provider.d.ts +1 -0
- package/lib/modules/components/member-window/components/member-actions/provider.js +14 -3
- package/lib/modules/components/member-window/components/member-actions/store.d.ts +17 -5
- package/lib/modules/components/member-window/components/member-actions/store.js +28 -10
- package/lib/modules/components/member-window/components/video-player/components/local-video-player-with-zoom.js +4 -4
- package/lib/modules/components/member-window/components/video-player/components/remote-video-player-with-zoom.js +1 -1
- package/lib/modules/components/member-window/components/video-player/components/zoomable-container.js +18 -32
- package/lib/modules/components/member-window/types.d.ts +1 -0
- package/lib/modules/components/security-menu/index.d.ts +1 -9
- package/lib/modules/components/security-menu/index.js +42 -39
- package/lib/modules/components/security-menu/store.d.ts +47 -0
- package/lib/modules/components/security-menu/store.js +332 -0
- package/lib/modules/components/security-menu/type.d.ts +4 -0
- package/lib/modules/components/security-menu/type.js +6 -0
- package/lib/modules/components/tab-frame/index.js +6 -21
- package/lib/modules/components/toolbar/components/capture-tool/index.d.ts +1 -0
- package/lib/modules/components/toolbar/components/capture-tool/index.js +3 -4
- package/lib/modules/components/toolbar/components/color-tool/index.d.ts +2 -1
- package/lib/modules/components/toolbar/components/graphic-tool/index.js +0 -2
- package/lib/modules/components/toolbar/components/multiple-color-tool/index.d.ts +2 -1
- package/lib/modules/components/toolbar/components/multiple-color-tool/index.js +1 -1
- package/lib/modules/components/toolbar/components/vertical-frame/index.js +9 -5
- package/lib/modules/components/toolbar/hooks/use-resize-visible.js +16 -4
- package/lib/modules/components/toolbar/index.d.ts +3 -1
- package/lib/modules/components/toolbar/index.js +5 -3
- package/lib/modules/connection-gateway/index.d.ts +3 -18
- package/lib/modules/connection-gateway/index.js +25 -28
- package/lib/modules/connection-gateway/store.d.ts +4 -20
- package/lib/modules/connection-gateway/store.js +19 -21
- package/lib/modules/connection-gateway/types.d.ts +4 -0
- package/lib/modules/control-bar/components/boundary-detector.d.ts +8 -0
- package/lib/modules/control-bar/components/boundary-detector.js +56 -0
- package/lib/modules/control-bar/components/carmera/index.d.ts +1 -0
- package/lib/modules/control-bar/components/carmera/index.js +147 -0
- package/lib/modules/control-bar/components/cloud-recording-buttons.js +3 -0
- package/lib/modules/control-bar/components/meeting-details/index.js +7 -17
- package/lib/modules/control-bar/components/microphone/index.d.ts +6 -0
- package/lib/modules/control-bar/components/microphone/index.js +233 -0
- package/lib/modules/control-bar/components/more-actions/index.d.ts +1 -1
- package/lib/modules/control-bar/components/more-actions/index.js +22 -59
- package/lib/modules/control-bar/components/share-audio/index.d.ts +0 -2
- package/lib/modules/control-bar/components/share-audio/index.js +6 -24
- package/lib/modules/control-bar/components/share-state-nav/index.d.ts +1 -1
- package/lib/modules/control-bar/components/share-state-nav/index.js +9 -5
- package/lib/modules/control-bar/components/transfer-position-icon/index.d.ts +1 -1
- package/lib/modules/control-bar/context.d.ts +5 -0
- package/lib/modules/control-bar/context.js +12 -0
- package/lib/modules/control-bar/enums.d.ts +3 -1
- package/lib/modules/control-bar/enums.js +2 -0
- package/lib/modules/control-bar/hooks.d.ts +3 -0
- package/lib/modules/control-bar/hooks.js +36 -0
- package/lib/modules/control-bar/index.d.ts +21 -49
- package/lib/modules/control-bar/index.dev.js +40 -0
- package/lib/modules/control-bar/index.js +99 -45
- package/lib/modules/control-bar/reactor.d.ts +2 -0
- package/lib/modules/control-bar/reactor.js +8 -0
- package/lib/modules/control-bar/store.d.ts +58 -117
- package/lib/modules/control-bar/store.js +360 -456
- package/lib/modules/control-bar/type.d.ts +43 -0
- package/lib/modules/control-bar/type.js +6 -0
- package/lib/modules/control-bar/view.d.ts +1 -5
- package/lib/modules/control-bar/view.js +622 -459
- package/lib/modules/device-pretest/audio-preview/microphone-detection.js +1 -1
- package/lib/modules/device-pretest/audio-preview/speaker-control.js +3 -0
- package/lib/modules/device-pretest/audio-preview/speaker-detection.js +1 -1
- package/lib/modules/device-pretest/index.d.ts +0 -1
- package/lib/modules/device-pretest/index.js +3 -4
- package/lib/modules/device-pretest/settings/beauty.d.ts +1 -1
- package/lib/modules/device-pretest/settings/beauty.js +3 -3
- package/lib/modules/device-pretest/settings/video-effect.js +1 -1
- 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/device-pretest/store.d.ts +3 -2
- package/lib/modules/dialog/components/confirm/index.d.ts +5 -0
- package/lib/modules/dialog/components/confirm/index.js +162 -0
- package/lib/modules/dialog/components/dialog-container/component/body.d.ts +10 -8
- package/lib/modules/dialog/components/dialog-container/component/body.js +40 -26
- package/lib/modules/dialog/components/dialog-container/index.css +10 -0
- package/lib/modules/dialog/components/dialog-container/index.d.ts +5 -7
- package/lib/modules/dialog/components/dialog-container/index.js +42 -62
- package/lib/modules/dialog/components/host-area-container/index.d.ts +1 -1
- package/lib/modules/dialog/components/host-area-container/index.js +142 -200
- package/lib/modules/dialog/components/normal-window/index.d.ts +17 -14
- package/lib/modules/dialog/components/normal-window/index.js +40 -57
- package/lib/modules/dialog/dialogs/annotation-tool/index.d.ts +6 -3
- package/lib/modules/dialog/dialogs/annotation-tool/index.js +18 -19
- package/lib/modules/dialog/dialogs/chat/components/actions.d.ts +3 -1
- package/lib/modules/dialog/dialogs/chat/components/actions.js +17 -7
- package/lib/modules/dialog/dialogs/chat/index.d.ts +27 -4
- package/lib/modules/dialog/dialogs/chat/index.js +51 -30
- package/lib/modules/dialog/dialogs/confirm/index.css +24 -0
- package/lib/modules/dialog/dialogs/confirm/index.d.ts +22 -1
- package/lib/modules/dialog/dialogs/confirm/index.js +49 -33
- package/lib/modules/dialog/dialogs/confirm-leave-meeting/index.d.ts +18 -6
- package/lib/modules/dialog/dialogs/confirm-leave-meeting/index.js +25 -43
- package/lib/modules/dialog/dialogs/connection-gateway/index.d.ts +24 -8
- package/lib/modules/dialog/dialogs/connection-gateway/index.js +36 -43
- package/lib/modules/dialog/dialogs/connection-gateway/tabs.js +17 -15
- package/lib/modules/dialog/dialogs/control-bar/index.d.ts +21 -8
- package/lib/modules/dialog/dialogs/control-bar/index.js +19 -114
- package/lib/modules/dialog/dialogs/control-bar-leave-meeting/index.d.ts +19 -0
- package/lib/modules/dialog/dialogs/control-bar-leave-meeting/index.js +41 -0
- package/lib/modules/dialog/dialogs/device-setting/index.d.ts +16 -1
- package/lib/modules/dialog/dialogs/device-setting/index.js +29 -27
- package/lib/modules/dialog/dialogs/end-meeting/index.d.ts +10 -10
- package/lib/modules/dialog/dialogs/end-meeting/index.js +35 -26
- package/lib/modules/dialog/dialogs/interpreter/index.d.ts +18 -3
- package/lib/modules/dialog/dialogs/interpreter/index.js +33 -31
- package/lib/modules/dialog/dialogs/invite/index.d.ts +22 -1
- package/lib/modules/dialog/dialogs/invite/index.js +43 -43
- package/lib/modules/dialog/dialogs/live-streaming/index.d.ts +12 -1
- package/lib/modules/dialog/dialogs/live-streaming/index.js +23 -22
- package/lib/modules/dialog/dialogs/mute-all/index.css +20 -0
- package/lib/modules/dialog/dialogs/mute-all/index.d.ts +20 -0
- package/lib/modules/dialog/dialogs/mute-all/index.js +49 -0
- package/lib/modules/dialog/dialogs/participant/components/actions.d.ts +3 -1
- package/lib/modules/dialog/dialogs/participant/components/actions.js +6 -8
- package/lib/modules/dialog/dialogs/participant/components/title.d.ts +6 -1
- package/lib/modules/dialog/dialogs/participant/components/title.js +4 -7
- package/lib/modules/dialog/dialogs/participant/index.d.ts +26 -2
- package/lib/modules/dialog/dialogs/participant/index.js +46 -40
- package/lib/modules/dialog/dialogs/rename/index.d.ts +18 -3
- package/lib/modules/dialog/dialogs/rename/index.js +29 -14
- package/lib/modules/dialog/dialogs/sample-dialog/index.d.ts +21 -0
- package/lib/modules/dialog/dialogs/sample-dialog/index.js +55 -0
- package/lib/modules/dialog/dialogs/share-screen-selection/index.d.ts +19 -4
- package/lib/modules/dialog/dialogs/share-screen-selection/index.js +40 -33
- package/lib/modules/dialog/dialogs/sub-window/index.d.ts +21 -1
- package/lib/modules/dialog/dialogs/sub-window/index.js +27 -91
- package/lib/modules/dialog/dialogs/system-preference/electron.js +15 -16
- package/lib/modules/dialog/dialogs/system-preference/index.css +2 -2
- package/lib/modules/dialog/dialogs/system-preference/index.d.ts +32 -5
- package/lib/modules/dialog/dialogs/system-preference/index.js +55 -46
- package/lib/modules/dialog/dialogs/toast/index.d.ts +21 -3
- package/lib/modules/dialog/dialogs/toast/index.js +18 -41
- package/lib/modules/dialog/dialogs/video-window/index.d.ts +29 -2
- package/lib/modules/dialog/dialogs/video-window/index.js +50 -261
- package/lib/modules/dialog/dialogs/whiteboard/index.d.ts +23 -4
- package/lib/modules/dialog/dialogs/whiteboard/index.js +58 -64
- package/lib/modules/dialog/dialogs/widget/index.d.ts +18 -6
- package/lib/modules/dialog/dialogs/widget/index.js +34 -28
- package/lib/modules/dialog/index.css +8 -1
- package/lib/modules/dialog/index.d.ts +5 -46
- package/lib/modules/dialog/index.js +29 -74
- package/lib/modules/dialog/level-config.d.ts +11 -11
- package/lib/modules/dialog/level-config.js +12 -15
- package/lib/modules/dialog/store.base.d.ts +46 -0
- package/lib/modules/dialog/store.base.js +279 -0
- package/lib/modules/dialog/store.browser.d.ts +18 -0
- package/lib/modules/dialog/store.browser.js +141 -0
- package/lib/modules/dialog/store.electron.d.ts +36 -0
- package/lib/modules/dialog/store.electron.js +299 -0
- package/lib/modules/dialog/type.d.ts +16 -11
- package/lib/modules/dialog/view.d.ts +1 -1
- package/lib/modules/dialog/view.js +10 -12
- package/lib/modules/event-sound/index.d.ts +3 -37
- package/lib/modules/event-sound/index.js +18 -273
- package/lib/modules/event-sound/store.d.ts +36 -0
- package/lib/modules/event-sound/store.js +283 -0
- package/lib/modules/event-sound/type.d.ts +4 -0
- package/lib/modules/event-sound/type.js +6 -0
- package/lib/modules/event-toast/index.css +0 -1
- package/lib/modules/event-toast/index.d.ts +5 -6
- package/lib/modules/event-toast/index.js +41 -24
- package/lib/modules/event-toast/store.base.d.ts +20 -0
- package/lib/modules/event-toast/{store.js → store.base.js} +80 -86
- package/lib/modules/event-toast/store.browser.d.ts +4 -0
- package/lib/modules/event-toast/store.browser.js +30 -0
- package/lib/modules/event-toast/store.electron.d.ts +17 -0
- package/lib/modules/event-toast/store.electron.js +144 -0
- package/lib/modules/event-toast/type.d.ts +10 -0
- package/lib/modules/event-toast/type.js +6 -0
- package/lib/modules/event-toast/view.js +13 -9
- package/lib/modules/interpreter/index.css +4 -0
- package/lib/modules/interpreter/index.d.ts +3 -15
- package/lib/modules/interpreter/index.js +18 -16
- package/lib/modules/interpreter/store.d.ts +10 -16
- package/lib/modules/interpreter/store.js +20 -49
- package/lib/modules/interpreter/type.d.ts +3 -15
- package/lib/modules/interpreter/view.d.ts +1 -0
- package/lib/modules/interpreter/view.js +4 -19
- package/lib/modules/invite/components/pstn-invite.js +2 -2
- package/lib/modules/invite/index.d.ts +3 -10
- package/lib/modules/invite/index.js +25 -12
- package/lib/modules/invite/store.d.ts +17 -30
- package/lib/modules/invite/store.js +65 -79
- package/lib/modules/invite/types.d.ts +5 -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 +41 -5
- package/lib/modules/layout/components/Gallery.js +1 -1
- package/lib/modules/layout/components/who-is-speaking.js +1 -1
- package/lib/modules/layout/index.d.ts +3 -39
- package/lib/modules/layout/index.dev.js +8 -8
- package/lib/modules/layout/index.js +32 -45
- package/lib/modules/layout/{store.d.ts → store.base.d.ts} +31 -24
- package/lib/modules/layout/{store.js → store.base.js} +65 -137
- package/lib/modules/layout/store.browser.d.ts +11 -0
- package/lib/modules/layout/store.browser.js +56 -0
- package/lib/modules/layout/store.electron.d.ts +16 -0
- package/lib/modules/layout/store.electron.js +177 -0
- package/lib/modules/layout/type.d.ts +3 -39
- package/lib/modules/layout/view.js +1 -1
- package/lib/modules/live-streaming/index.d.ts +2 -15
- package/lib/modules/live-streaming/index.dev.js +3 -3
- package/lib/modules/live-streaming/index.js +25 -12
- package/lib/modules/live-streaming/store.d.ts +6 -18
- package/lib/modules/live-streaming/store.js +22 -26
- package/lib/modules/live-streaming/type.d.ts +4 -0
- package/lib/modules/live-streaming/type.js +6 -0
- package/lib/modules/notification/index.d.ts +3 -7
- package/lib/modules/notification/index.js +26 -16
- package/lib/modules/notification/store.d.ts +11 -6
- package/lib/modules/notification/store.js +51 -11
- package/lib/modules/notification/type.d.ts +4 -0
- package/lib/modules/notification/type.js +6 -0
- package/lib/modules/notification/view.d.ts +6 -6
- package/lib/modules/notification/view.js +23 -32
- package/lib/modules/offscreen-pulling/index.js +1 -1
- package/lib/modules/participant/components/confirm-input/index.js +5 -4
- package/lib/modules/participant/components/mute-all/index.d.ts +1 -4
- package/lib/modules/participant/components/mute-all/index.js +32 -11
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.js +1 -1
- package/lib/modules/participant/components/participants/components/footer/components/footer/index.js +3 -2
- package/lib/modules/participant/components/participants/components/footer/index.js +5 -3
- package/lib/modules/participant/components/participants/components/merge/index.d.ts +1 -2
- package/lib/modules/participant/components/participants/components/merge/index.js +1 -3
- package/lib/modules/participant/components/participants/components/render-tab/index.js +1 -1
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/interpreter-tag/index.js +1 -1
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/microphone-indicator/index.js +1 -1
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.js +1 -1
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-actions-popover/index.js +1 -1
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/index.js +5 -4
- package/lib/modules/participant/components/participants/index.js +17 -37
- package/lib/modules/participant/components/participants/types.d.ts +1 -0
- package/lib/modules/participant/index.css +4 -0
- package/lib/modules/participant/index.d.ts +6 -47
- package/lib/modules/participant/index.dev.js +9 -9
- package/lib/modules/participant/index.js +60 -56
- package/lib/modules/participant/member-list-data-source.d.ts +2 -1
- package/lib/modules/participant/member-list-data-source.js +14 -14
- package/lib/modules/participant/store.base.d.ts +434 -0
- package/lib/modules/participant/store.base.js +2365 -0
- package/lib/modules/participant/store.browser.d.ts +9 -0
- package/lib/modules/participant/store.browser.js +123 -0
- package/lib/modules/participant/store.electron.d.ts +13 -0
- package/lib/modules/participant/store.electron.js +130 -0
- package/lib/modules/participant/struct.d.ts +49 -0
- package/lib/modules/participant/struct.js +60 -0
- package/lib/modules/participant/type.d.ts +5 -22
- package/lib/modules/participant/type.js +1 -25
- package/lib/modules/participant/view.js +1 -1
- package/lib/modules/pc-audio-connect/main-scene/index.d.ts +14 -0
- package/lib/modules/pc-audio-connect/{index.js → main-scene/index.js} +38 -19
- package/lib/modules/pc-audio-connect/main-scene/store.d.ts +33 -0
- package/lib/modules/pc-audio-connect/main-scene/store.js +313 -0
- package/lib/modules/pc-audio-connect/types.d.ts +4 -0
- package/lib/modules/pc-audio-connect/types.js +6 -1
- package/lib/modules/pc-audio-connect/view.js +2 -1
- package/lib/modules/pc-audio-connect/waiting-scene/index.d.ts +10 -0
- package/lib/modules/pc-audio-connect/waiting-scene/index.js +69 -0
- package/lib/modules/pc-audio-connect/waiting-scene/store.d.ts +30 -0
- package/lib/modules/pc-audio-connect/{store.js → waiting-scene/store.js} +38 -47
- package/lib/modules/phone-audio-connect/index.d.ts +2 -10
- package/lib/modules/phone-audio-connect/index.js +16 -9
- package/lib/modules/phone-audio-connect/store.d.ts +2 -11
- package/lib/modules/phone-audio-connect/store.js +12 -13
- package/lib/modules/phone-audio-connect/types.d.ts +4 -0
- package/lib/modules/secondary-window/index.d.ts +8 -29
- package/lib/modules/secondary-window/index.js +51 -9
- package/lib/modules/secondary-window/store.d.ts +27 -24
- package/lib/modules/secondary-window/store.js +171 -64
- package/lib/modules/secondary-window/type.d.ts +4 -0
- package/lib/modules/secondary-window/view.js +105 -73
- package/lib/modules/setting/audio-settings/audio-settings.js +5 -16
- package/lib/modules/setting/general-settings/general-settings.js +16 -11
- package/lib/modules/setting/index.css +1 -0
- package/lib/modules/setting/index.d.ts +8 -27
- package/lib/modules/setting/index.dev.js +10 -10
- package/lib/modules/setting/index.js +57 -30
- package/lib/modules/setting/minutes-settings/minutes-settings.js +1 -1
- package/lib/modules/setting/state/index.js +3 -3
- package/lib/modules/setting/storage-settings/storage-settings.js +3 -14
- package/lib/modules/setting/{store.d.ts → store.base.d.ts} +32 -92
- package/lib/modules/setting/{store.js → store.base.js} +304 -286
- package/lib/modules/setting/store.browser.d.ts +7 -0
- package/lib/modules/setting/store.browser.js +55 -0
- package/lib/modules/setting/store.electron.d.ts +9 -0
- package/lib/modules/setting/store.electron.js +69 -0
- package/lib/modules/setting/translate-settings/translate-settings.js +2 -2
- package/lib/modules/setting/type.d.ts +69 -0
- package/lib/modules/setting/type.js +26 -0
- package/lib/modules/setting/video-settings/video-settings-basic.js +2 -2
- package/lib/modules/setting/video-settings/video-settings.d.ts +0 -2
- package/lib/modules/setting/video-settings/video-settings.js +9 -10
- package/lib/modules/setting/view.d.ts +0 -8
- package/lib/modules/setting/view.js +15 -27
- package/lib/modules/share-screen/components/control-bar/index.js +87 -81
- package/lib/modules/share-screen/components/selection/index.css +6 -3
- package/lib/modules/share-screen/components/selection/index.js +178 -202
- package/lib/modules/share-screen/index.d.ts +16 -30
- package/lib/modules/share-screen/index.dev.js +11 -11
- package/lib/modules/share-screen/index.js +47 -35
- package/lib/modules/share-screen/store.base.d.ts +49 -0
- package/lib/modules/share-screen/store.base.js +468 -0
- package/lib/modules/share-screen/store.browser.d.ts +9 -0
- package/lib/modules/share-screen/store.browser.js +43 -0
- package/lib/modules/share-screen/store.electron.d.ts +25 -0
- package/lib/modules/share-screen/store.electron.js +268 -0
- package/lib/modules/share-screen/type.d.ts +40 -0
- package/lib/modules/share-screen/type.js +13 -0
- package/lib/modules/share-screen/view.js +5 -6
- package/lib/modules/state-bar/index.d.ts +6 -35
- package/lib/modules/state-bar/index.dev.js +7 -7
- package/lib/modules/state-bar/index.js +18 -48
- package/lib/modules/state-bar/layout-config.js +5 -4
- package/lib/modules/state-bar/live-streaming-state.js +6 -5
- package/lib/modules/state-bar/main-scene/index.d.ts +5 -0
- package/lib/modules/state-bar/main-scene/index.js +47 -0
- package/lib/modules/state-bar/main-scene/store.base.d.ts +23 -0
- package/lib/modules/state-bar/main-scene/store.base.js +132 -0
- package/lib/modules/state-bar/main-scene/store.browser.d.ts +4 -0
- package/lib/modules/state-bar/main-scene/store.browser.js +86 -0
- package/lib/modules/state-bar/main-scene/store.electron.d.ts +13 -0
- package/lib/modules/state-bar/main-scene/store.electron.js +113 -0
- package/lib/modules/state-bar/meeting-details.js +20 -36
- package/lib/modules/state-bar/meeting-network-state.js +3 -3
- 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 +7 -6
- package/lib/modules/state-bar/store.base.d.ts +82 -0
- package/lib/modules/state-bar/store.base.electron.d.ts +15 -0
- package/lib/{providers/whiteboard-provider.js → modules/state-bar/store.base.electron.js} +42 -60
- package/lib/modules/state-bar/{store.js → store.base.js} +140 -208
- package/lib/modules/state-bar/type.d.ts +5 -0
- package/lib/modules/state-bar/type.js +6 -0
- package/lib/modules/state-bar/view.js +36 -38
- package/lib/modules/state-bar/waiting-scene/index.d.ts +5 -0
- package/lib/modules/state-bar/waiting-scene/index.js +47 -0
- package/lib/modules/state-bar/waiting-scene/store.base.d.ts +11 -0
- package/lib/modules/state-bar/waiting-scene/store.base.js +50 -0
- package/lib/modules/state-bar/waiting-scene/store.browser.d.ts +4 -0
- package/lib/modules/state-bar/waiting-scene/store.browser.js +86 -0
- package/lib/modules/state-bar/waiting-scene/store.electron.d.ts +12 -0
- package/lib/modules/state-bar/waiting-scene/store.electron.js +105 -0
- package/lib/modules/video-window/components/members/index.js +3 -5
- package/lib/modules/video-window/index.d.ts +6 -38
- package/lib/modules/video-window/index.js +46 -56
- package/lib/modules/video-window/popover-watcher.d.ts +9 -0
- package/lib/modules/video-window/popover-watcher.js +60 -0
- package/lib/modules/video-window/store.d.ts +32 -22
- package/lib/modules/video-window/store.js +181 -140
- package/lib/modules/video-window/type.d.ts +3 -27
- package/lib/modules/video-window/view.js +58 -7
- package/lib/modules/waiting-room-layout/index.d.ts +3 -9
- package/lib/modules/waiting-room-layout/index.js +28 -21
- package/lib/modules/waiting-room-layout/store.d.ts +4 -10
- package/lib/modules/waiting-room-layout/store.js +10 -7
- package/lib/modules/whiteboard/components/control-bar/store.d.ts +6 -14
- package/lib/modules/whiteboard/components/control-bar/store.js +29 -31
- package/lib/modules/whiteboard/components/loading/index.d.ts +7 -1
- package/lib/modules/whiteboard/components/loading/index.js +6 -9
- package/lib/modules/whiteboard/components/multi-window/index.js +1 -1
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +1 -6
- package/lib/modules/whiteboard/components/toolbar/store.js +4 -13
- package/lib/modules/whiteboard/index.d.ts +4 -92
- package/lib/modules/whiteboard/index.js +24 -813
- package/lib/modules/whiteboard/libs/theme.d.ts +4 -0
- package/lib/modules/whiteboard/libs/theme.js +31 -0
- package/lib/modules/whiteboard/store.browser.d.ts +5 -0
- package/lib/modules/whiteboard/store.browser.js +28 -0
- package/lib/modules/whiteboard/store.d.ts +67 -0
- package/lib/modules/whiteboard/store.electron.d.ts +10 -0
- package/lib/modules/whiteboard/store.electron.js +135 -0
- package/lib/modules/whiteboard/store.js +433 -0
- package/lib/modules/whiteboard/style.css +2 -12
- package/lib/modules/whiteboard/type.d.ts +4 -0
- package/lib/modules/whiteboard/view.js +95 -41
- package/lib/modules/widget/index.css +7 -15
- package/lib/modules/widget/index.d.ts +3 -3
- package/lib/modules/widget/index.js +22 -14
- package/lib/modules/widget/store.base.d.ts +15 -0
- package/lib/modules/widget/{store.js → store.base.js} +8 -6
- package/lib/modules/widget/store.browser.d.ts +6 -0
- package/lib/modules/widget/store.browser.js +81 -0
- package/lib/modules/widget/store.electron.d.ts +12 -0
- package/lib/modules/widget/store.electron.js +129 -0
- package/lib/modules/widget/type.d.ts +8 -7
- package/lib/modules/widget/view.d.ts +1 -0
- package/lib/modules/widget/view.js +22 -16
- package/lib/modules/widget/web-widget.d.ts +5 -4
- package/lib/modules/widget/web-widget.js +32 -40
- package/lib/object-manager.d.ts +79 -4
- package/lib/object-manager.js +135 -10
- package/lib/plugins/browser-runtime-plugin.js +1 -110
- package/lib/plugins/css-preset-plugin.js +0 -2
- package/lib/plugins/module-dev-plugin.js +62 -81
- package/lib/providers/ability-provider.d.ts +9 -1
- package/lib/providers/ability-provider.js +51 -49
- package/lib/providers/annotation/provider.d.ts +15 -0
- package/lib/providers/annotation/provider.js +69 -0
- package/lib/providers/annotation/type.d.ts +60 -0
- package/lib/providers/annotation/type.js +6 -0
- package/lib/providers/app-list-provider.d.ts +8 -6
- package/lib/providers/app-list-provider.js +17 -15
- package/lib/providers/board-share/bar-control/base.d.ts +47 -0
- package/lib/providers/board-share/bar-control/base.js +306 -0
- package/lib/providers/board-share/bar-control/browser.d.ts +10 -0
- package/lib/providers/board-share/bar-control/browser.js +42 -0
- package/lib/providers/board-share/bar-control/electron.d.ts +29 -0
- package/lib/providers/board-share/bar-control/electron.js +202 -0
- package/lib/providers/board-share/bar-control.d.ts +51 -0
- package/lib/{shared-data-source/whiteboard-data.js → providers/board-share/bar-control.js} +104 -62
- package/lib/providers/board-share/provider.base.d.ts +63 -0
- package/lib/providers/board-share/provider.base.js +394 -0
- package/lib/providers/board-share/provider.browser.d.ts +15 -0
- package/lib/providers/board-share/provider.browser.js +136 -0
- package/lib/providers/board-share/provider.electron.d.ts +22 -0
- package/lib/providers/board-share/provider.electron.js +163 -0
- package/lib/providers/board-share/struct.d.ts +14 -0
- package/lib/providers/board-share/struct.js +23 -0
- package/lib/providers/board-share/type.d.ts +161 -0
- package/lib/providers/board-share/type.js +6 -0
- package/lib/providers/chat-provider.d.ts +8 -2
- package/lib/providers/chat-provider.js +26 -12
- package/lib/providers/device-privilege-provider.d.ts +3 -2
- package/lib/providers/device-privilege-provider.js +1 -3
- package/lib/providers/device-provider.d.ts +39 -8
- package/lib/providers/device-provider.js +237 -142
- package/lib/providers/device-stream-provider.d.ts +6 -6
- package/lib/providers/device-stream-provider.js +31 -36
- package/lib/providers/dialog/provider.base.d.ts +43 -0
- package/lib/providers/dialog/provider.base.js +289 -0
- package/lib/providers/dialog/provider.browser.d.ts +16 -0
- package/lib/{modules/annotation/index.js → providers/dialog/provider.browser.js} +91 -92
- package/lib/providers/dialog/provider.electron.d.ts +16 -0
- package/lib/providers/dialog/provider.electron.js +263 -0
- package/lib/providers/dialog/type.d.ts +168 -0
- package/lib/providers/dialog/type.js +15 -0
- package/lib/providers/event-provider.d.ts +3 -67
- package/lib/providers/event-provider.js +4 -229
- package/lib/providers/facility/provider.base.d.ts +31 -0
- package/lib/providers/facility/provider.base.js +159 -0
- package/lib/providers/facility/provider.browser.d.ts +14 -0
- package/lib/providers/facility/provider.browser.js +75 -0
- package/lib/providers/facility/provider.electron.d.ts +17 -0
- package/lib/providers/facility/provider.electron.js +91 -0
- package/lib/providers/facility/struct.d.ts +5 -0
- package/lib/providers/facility/struct.js +13 -0
- package/lib/providers/facility/type.d.ts +36 -0
- package/lib/providers/facility/type.js +6 -0
- package/lib/providers/interpreter-provider.d.ts +4 -3
- package/lib/providers/interpreter-provider.js +2 -4
- package/lib/providers/local-storage-provider.d.ts +8 -1
- package/lib/providers/local-storage-provider.js +4 -3
- package/lib/providers/message/provider.d.ts +14 -0
- package/lib/providers/{message-provider.js → message/provider.js} +16 -52
- package/lib/providers/message/struct.d.ts +4 -0
- package/lib/providers/message/struct.js +12 -0
- package/lib/providers/{message-provider.d.ts → message/type.d.ts} +9 -27
- package/lib/providers/message/type.js +6 -0
- package/lib/providers/monitor-provider.d.ts +3 -1
- package/lib/providers/monitor-provider.js +4 -3
- package/lib/providers/mouse-detect/provider.d.ts +24 -0
- package/lib/providers/mouse-detect/provider.js +294 -0
- package/lib/providers/mouse-detect/struct.d.ts +4 -0
- package/lib/providers/mouse-detect/struct.js +12 -0
- package/lib/providers/mouse-detect/type.d.ts +14 -0
- package/lib/providers/mouse-detect/type.js +6 -0
- package/lib/providers/multi-display-provider.d.ts +27 -19
- package/lib/providers/multi-display-provider.js +127 -101
- package/lib/providers/phone-audio-provider.d.ts +3 -2
- package/lib/providers/phone-audio-provider.js +16 -16
- package/lib/providers/privilege-provider.d.ts +2 -1
- package/lib/providers/privilege-provider.js +9 -9
- package/lib/providers/renderer-provider.d.ts +23 -8
- package/lib/providers/renderer-provider.js +93 -28
- package/lib/providers/{room-provider.d.ts → room-provider/room-provider.d.ts} +19 -47
- package/lib/providers/{room-provider.js → room-provider/room-provider.js} +48 -206
- package/lib/{waiting-room-control-manager.d.ts → providers/room-provider/waiting-room-control-manager.d.ts} +1 -1
- package/lib/{waiting-room-control-manager.js → providers/room-provider/waiting-room-control-manager.js} +1 -1
- package/lib/providers/screen-share/provider.base.d.ts +95 -0
- package/lib/providers/screen-share/provider.base.js +525 -0
- package/lib/providers/screen-share/provider.browser.d.ts +19 -0
- package/lib/providers/screen-share/provider.browser.js +301 -0
- package/lib/providers/screen-share/provider.electron.d.ts +18 -0
- package/lib/providers/screen-share/provider.electron.js +452 -0
- package/lib/providers/screen-share/strategy/browser.d.ts +22 -0
- package/lib/providers/screen-share/strategy/browser.js +266 -0
- package/lib/providers/screen-share/strategy/electron.d.ts +22 -0
- package/lib/providers/screen-share/strategy/electron.js +294 -0
- package/lib/providers/screen-share/strategy/type.d.ts +39 -0
- package/lib/providers/screen-share/strategy/type.js +39 -0
- package/lib/providers/screen-share/stream-state-sync.d.ts +18 -0
- package/lib/providers/screen-share/stream-state-sync.js +217 -0
- package/lib/providers/screen-share/struct.d.ts +46 -0
- package/lib/providers/screen-share/struct.js +56 -0
- package/lib/providers/screen-share/type.d.ts +170 -0
- package/lib/providers/screen-share/type.js +6 -0
- package/lib/providers/session-provider.d.ts +3 -1
- package/lib/providers/session-provider.js +4 -3
- package/lib/providers/setting-storage/provider.base.d.ts +9 -0
- package/lib/providers/setting-storage/provider.base.js +14 -0
- package/lib/providers/setting-storage/provider.browser.d.ts +7 -0
- package/lib/providers/{user-setting-storage-provider.js → setting-storage/provider.browser.js} +23 -24
- package/lib/providers/setting-storage/provider.electron.d.ts +10 -0
- package/lib/providers/setting-storage/provider.electron.js +62 -0
- package/lib/providers/setting-storage/type.d.ts +18 -0
- package/lib/providers/setting-storage/type.js +6 -0
- package/lib/providers/widget-provider.d.ts +14 -6
- package/lib/providers/widget-provider.js +18 -24
- package/lib/providers/window/main-window.d.ts +51 -0
- package/lib/providers/window/main-window.js +306 -0
- package/lib/providers/window/provider.d.ts +27 -0
- package/lib/providers/window/provider.js +164 -0
- package/lib/providers/window/renderer-window.d.ts +77 -0
- package/lib/providers/window/renderer-window.js +512 -0
- package/lib/providers/window/type.d.ts +122 -0
- package/lib/providers/window/type.js +6 -0
- package/lib/runtime.d.ts +85 -82
- package/lib/runtime.js +7 -0
- package/lib/scenes/main-scene.d.ts +4 -110
- package/lib/scenes/main-scene.js +442 -545
- package/lib/scenes/type.d.ts +7 -0
- package/lib/scenes/type.js +6 -0
- package/lib/scenes/waiting-scene.d.ts +2 -76
- package/lib/scenes/waiting-scene.js +58 -165
- package/lib/schema.d.ts +2 -2
- package/lib/{utilities → shared-context}/board-context.d.ts +2 -0
- package/lib/{utilities → shared-context}/board-context.js +2 -0
- package/lib/shared-context/dialog-context.d.ts +13 -0
- package/lib/shared-context/dialog-context.js +10 -0
- package/lib/{utilities → shared-context}/video-track-render-context.js +1 -1
- package/lib/{shared-data-source → shared-data}/app-list-data.d.ts +6 -4
- package/lib/{shared-data-source → shared-data}/app-list-data.js +7 -4
- package/lib/{shared-data-source → shared-data}/chat-data.d.ts +4 -2
- package/lib/{shared-data-source → shared-data}/chat-data.js +11 -8
- package/lib/{shared-data-source → shared-data}/config.d.ts +8 -3
- package/lib/{shared-data-source → shared-data}/config.js +9 -3
- package/lib/{shared-data-source → shared-data}/confirm-data.d.ts +10 -9
- package/lib/{shared-data-source → shared-data}/confirm-data.js +10 -9
- package/lib/{shared-data-source → shared-data}/device-privilege-data.d.ts +3 -1
- package/lib/{shared-data-source → shared-data}/device-privilege-data.js +4 -3
- package/lib/{shared-data-source → shared-data}/interpreter.d.ts +5 -5
- package/lib/{shared-data-source → shared-data}/interpreter.js +16 -21
- package/lib/{shared-data-source → shared-data}/layout-data.d.ts +3 -1
- package/lib/{shared-data-source → shared-data}/layout-data.js +12 -9
- package/lib/{shared-data-source → shared-data}/meeting-time.d.ts +2 -6
- package/lib/{shared-data-source → shared-data}/meeting-time.js +12 -12
- package/lib/{shared-data-source → shared-data}/member-data.d.ts +8 -17
- package/lib/{shared-data-source → shared-data}/member-data.js +66 -94
- package/lib/{shared-data-source → shared-data}/pin-data.d.ts +6 -4
- package/lib/{shared-data-source → shared-data}/pin-data.js +14 -11
- package/lib/shared-data/screen-share/index.d.ts +26 -0
- package/lib/shared-data/screen-share/index.js +211 -0
- package/lib/shared-data/screen-share/type.d.ts +42 -0
- package/lib/shared-data/screen-share/type.js +6 -0
- package/lib/{shared-data-source → shared-data}/security-data.d.ts +5 -5
- package/lib/{shared-data-source → shared-data}/security-data.js +13 -13
- package/lib/{shared-data-source → shared-data}/setting.d.ts +5 -3
- package/lib/{shared-data-source → shared-data}/setting.js +8 -5
- package/lib/shared-data/speaker-spotlight.d.ts +7 -0
- package/lib/{shared-data-source → shared-data}/speaker-spotlight.js +10 -6
- package/lib/{shared-data-source → shared-data}/video-window.d.ts +3 -2
- package/lib/{shared-data-source → shared-data}/video-window.js +4 -3
- package/lib/{shared-data-source → shared-data}/waiting-room.d.ts +5 -5
- package/lib/{shared-data-source → shared-data}/waiting-room.js +10 -10
- package/lib/shared-data/widget-data.d.ts +13 -0
- package/lib/shared-data/widget-data.js +50 -0
- package/lib/translations/enUS.d.ts +16 -3
- package/lib/translations/enUS.js +22 -9
- package/lib/translations/zhCN.d.ts +16 -3
- package/lib/translations/zhCN.js +22 -9
- package/lib/type.d.ts +70 -79
- package/lib/type.js +16 -4
- package/lib/ui-manager.d.ts +6 -6
- package/lib/ui-manager.js +38 -10
- package/lib/ui-scene.d.ts +9 -39
- package/lib/ui-scene.js +160 -226
- package/lib/utilities/{screen.d.ts → browser-api.d.ts} +1 -0
- package/lib/utilities/{copyText.js → browser-api.js} +36 -1
- package/lib/utilities/constant.d.ts +67 -73
- package/lib/utilities/constant.js +70 -73
- package/lib/utilities/default-config.d.ts +32 -1
- package/lib/utilities/default-config.js +33 -1
- package/lib/utilities/dialog-utils.d.ts +8 -12
- package/lib/utilities/dialog-utils.js +63 -74
- package/lib/utilities/focus-helper.d.ts +2 -0
- package/lib/utilities/focus-helper.js +26 -0
- package/lib/utilities/logger.js +9 -1
- package/lib/utilities/meeting-detail.d.ts +10 -1
- package/lib/utilities/meeting-detail.js +25 -3
- package/lib/utilities/platform.d.ts +1 -0
- package/lib/utilities/platform.js +4 -1
- package/lib/utilities/renderer.d.ts +75 -17
- package/lib/utilities/renderer.js +418 -78
- package/package.json +6 -6
- package/public/index.html +50 -21
- package/lib/modules/action-bar/index.d.ts +0 -58
- 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 -109
- package/lib/modules/action-bar/view.d.ts +0 -5
- 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.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 -620
- 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/leave-meeting/store.d.ts +0 -39
- 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/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 -7
- package/lib/modules/event-confirm/components/window/index.js +0 -221
- package/lib/modules/event-confirm/index.d.ts +0 -27
- package/lib/modules/event-confirm/index.js +0 -76
- package/lib/modules/event-confirm/store.d.ts +0 -50
- package/lib/modules/event-confirm/store.js +0 -394
- package/lib/modules/event-confirm/view.d.ts +0 -2
- package/lib/modules/event-confirm/view.js +0 -55
- package/lib/modules/event-toast/store.d.ts +0 -27
- package/lib/modules/participant/store.d.ts +0 -222
- package/lib/modules/participant/store.js +0 -1929
- package/lib/modules/pc-audio-connect/index.d.ts +0 -22
- package/lib/modules/pc-audio-connect/store.d.ts +0 -46
- 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/dialog-wrapper.d.ts +0 -2
- package/lib/modules/setting/dialog-wrapper.js +0 -110
- 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/whiteboard/components/progress/electron.d.ts +0 -1
- package/lib/modules/whiteboard/components/progress/electron.js +0 -33
- package/lib/modules/widget/store.d.ts +0 -14
- 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/screen-share-provider.d.ts +0 -246
- package/lib/providers/screen-share-provider.js +0 -850
- package/lib/providers/sharing-provider.d.ts +0 -42
- package/lib/providers/sharing-provider.js +0 -228
- package/lib/providers/user-setting-storage-provider.d.ts +0 -21
- package/lib/providers/whiteboard-provider.d.ts +0 -24
- package/lib/shared-data-source/annotation-data.d.ts +0 -17
- 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/speaker-spotlight.d.ts +0 -5
- package/lib/shared-data-source/whiteboard-data.d.ts +0 -70
- package/lib/utilities/copyText.d.ts +0 -2
- 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.js +0 -53
- /package/lib/{modules/action-bar/types.js → creator/type.js} +0 -0
- /package/lib/modules/{control-bar/types.js → components/device-control/type.js} +0 -0
- /package/lib/modules/{share-screen/types.js → components/leave-meeting/type.js} +0 -0
- /package/lib/modules/{annotation/components/expansion/index.d.ts → control-bar/index.dev.d.ts} +0 -0
- /package/lib/modules/{event-confirm → dialog/components/confirm}/index.css +0 -0
- /package/lib/{utilities → shared-context}/video-track-render-context.d.ts +0 -0
|
@@ -1,73 +1,64 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("core-js/modules/es.array.iterator.js");
|
|
4
3
|
require("core-js/modules/es.object.define-property.js");
|
|
5
|
-
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
6
|
-
require("core-js/modules/es.object.to-string.js");
|
|
7
4
|
require("core-js/modules/es.reflect.construct.js");
|
|
8
|
-
require("core-js/modules/es.string.iterator.js");
|
|
9
|
-
require("core-js/modules/es.weak-map.js");
|
|
10
|
-
require("core-js/modules/esnext.weak-map.delete-all.js");
|
|
11
|
-
require("core-js/modules/esnext.weak-map.emplace.js");
|
|
12
|
-
require("core-js/modules/web.dom-collections.iterator.js");
|
|
13
5
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
14
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
15
6
|
Object.defineProperty(exports, "__esModule", {
|
|
16
7
|
value: true
|
|
17
8
|
});
|
|
18
9
|
exports.LayoutUIModule = void 0;
|
|
19
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
|
+
require("core-js/modules/es.error.cause.js");
|
|
12
|
+
require("core-js/modules/es.error.to-string.js");
|
|
13
|
+
require("core-js/modules/es.array.concat.js");
|
|
20
14
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
21
15
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
22
16
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
23
17
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
24
18
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
19
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
25
20
|
var _base = require("../../base");
|
|
26
|
-
var
|
|
27
|
-
var _toast = _interopRequireDefault(require("../dialog/dialogs/toast"));
|
|
28
|
-
var _store = _interopRequireWildcard(require("./store"));
|
|
21
|
+
var _store = require("./store.base");
|
|
29
22
|
var _view = require("./view");
|
|
23
|
+
var _env = require("agora-foundation/lib/utilities/env");
|
|
24
|
+
var _store2 = _interopRequireDefault(require("./store.electron"));
|
|
25
|
+
var _store3 = _interopRequireDefault(require("./store.browser"));
|
|
30
26
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
31
27
|
var _excluded = ["globalToast", "confirm"];
|
|
32
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
33
28
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
|
|
34
29
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
35
30
|
var LayoutUIModule = exports.LayoutUIModule = /*#__PURE__*/function (_UIModule) {
|
|
36
31
|
function LayoutUIModule() {
|
|
32
|
+
var _this;
|
|
37
33
|
(0, _classCallCheck2["default"])(this, LayoutUIModule);
|
|
38
|
-
|
|
34
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
35
|
+
args[_key] = arguments[_key];
|
|
36
|
+
}
|
|
37
|
+
_this = _callSuper(this, LayoutUIModule, [].concat(args));
|
|
38
|
+
(0, _defineProperty2["default"])(_this, "_store", null);
|
|
39
|
+
return _this;
|
|
39
40
|
}
|
|
40
41
|
(0, _inherits2["default"])(LayoutUIModule, _UIModule);
|
|
41
42
|
return (0, _createClass2["default"])(LayoutUIModule, [{
|
|
43
|
+
key: "store",
|
|
44
|
+
get: function get() {
|
|
45
|
+
if (!this._store) {
|
|
46
|
+
throw new Error('LayoutStore is not initialized');
|
|
47
|
+
}
|
|
48
|
+
return this._store;
|
|
49
|
+
}
|
|
50
|
+
}, {
|
|
42
51
|
key: "onNodeWillActive",
|
|
43
52
|
value: function onNodeWillActive() {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
roomControl: this.mainRoomControlProvider.mainRoomControl,
|
|
49
|
-
sharedConfigDataSource: this.sharedConfigDataSource,
|
|
50
|
-
sharedSpeakerSpotlightDataSource: this.sharedSpeakerSpotlightDataSource,
|
|
51
|
-
sharedLayoutDataSource: this.sharedLayoutDataSource,
|
|
52
|
-
sharedInterpreterDataSource: this.sharedInterpreterDataSource,
|
|
53
|
-
sharedSettingDataSource: this.sharedSettingDataSource,
|
|
54
|
-
chatProvider: this.chatProvider,
|
|
55
|
-
sharedVideoWindowDataSource: this.sharedVideoWindowDataSource,
|
|
56
|
-
sharedMemberDataSource: this.sharedMemberDataSource,
|
|
57
|
-
screenShareProvider: this.screenShareProvider,
|
|
58
|
-
sharedPinDataSource: this.sharedPinDataSource,
|
|
59
|
-
annotationProvider: this.annotationProvider,
|
|
60
|
-
sharedScreenShareDataSource: this.sharedScreenShareSharedDataSource,
|
|
61
|
-
interpreterProvider: this.interpreterProvider,
|
|
62
|
-
sharedAnnotationDataSource: this.sharedAnnotationDataSource,
|
|
63
|
-
multiDisplayProvider: this.multiDisplayProvider
|
|
64
|
-
});
|
|
53
|
+
var args = {
|
|
54
|
+
objectManager: this.objectManager
|
|
55
|
+
};
|
|
56
|
+
this._store = (0, _env.isElectron)() ? new _store2["default"](args) : new _store3["default"](args);
|
|
65
57
|
}
|
|
66
58
|
}, {
|
|
67
59
|
key: "onNodeWillInactive",
|
|
68
60
|
value: function onNodeWillInactive() {
|
|
69
|
-
|
|
70
|
-
(_this$_store = this._store) === null || _this$_store === void 0 || _this$_store.release();
|
|
61
|
+
this.store.release();
|
|
71
62
|
}
|
|
72
63
|
}, {
|
|
73
64
|
key: "getComponent",
|
|
@@ -76,14 +67,10 @@ var LayoutUIModule = exports.LayoutUIModule = /*#__PURE__*/function (_UIModule)
|
|
|
76
67
|
var globalToast = slots.globalToast,
|
|
77
68
|
confirm = slots.confirm,
|
|
78
69
|
restSlots = (0, _objectWithoutProperties2["default"])(slots, _excluded);
|
|
79
|
-
this.
|
|
80
|
-
return /*#__PURE__*/(0, _jsxRuntime.
|
|
81
|
-
value: this.
|
|
82
|
-
children:
|
|
83
|
-
children: globalToast
|
|
84
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_confirm.ConfirmDialog, {
|
|
85
|
-
children: confirm
|
|
86
|
-
})]
|
|
70
|
+
this.store.updateSlots(restSlots);
|
|
71
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_store.StoreContext.Provider, {
|
|
72
|
+
value: this.store,
|
|
73
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_view.View, {})
|
|
87
74
|
});
|
|
88
75
|
}
|
|
89
76
|
}, {
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import { FcrPrivilegeUserRole, FcrStreamControl } from 'fcr-core';
|
|
2
2
|
import { FcrUserInfo, FcrUserRole } from 'fcr-core/lib/type';
|
|
3
|
-
import { FcrLayoutSlots, FcrUIVideoWindowData, FcrUIVideoWindowLayoutType,
|
|
3
|
+
import { FcrLayoutSlots, FcrUIVideoWindowData, FcrUIVideoWindowLayoutType, LayoutStoreArgs } from './type';
|
|
4
4
|
import { FcrChatRoomConnectionState } from 'fcr-core/lib/room-control/chatroom-control/type';
|
|
5
5
|
import { FcrUserUpdatedEvent } from 'fcr-core/lib/room-control/user-control/type';
|
|
6
|
-
import { FcrUIEventObserver } from '../../providers/event-provider';
|
|
6
|
+
import { FcrUIEventObserver, FcrUIEventProvider } from '../../providers/event-provider';
|
|
7
7
|
import { FcrUIAction } from '../../utilities/constant';
|
|
8
|
-
import {
|
|
9
|
-
|
|
8
|
+
import { FcrUIManagedObject } from '../../object-manager';
|
|
9
|
+
import { FcrUIDisplayDistributionContentType, SharingType } from '../secondary-window/type';
|
|
10
|
+
import { FcrUIDialogProvider } from '../../providers/dialog/type';
|
|
11
|
+
export declare abstract class LayoutStoreBase implements FcrLayoutSlots, FcrUIEventObserver, FcrUIManagedObject {
|
|
10
12
|
private readonly logger;
|
|
11
13
|
private _videoWindowDataSource;
|
|
12
|
-
|
|
14
|
+
protected _eventProvider: FcrUIEventProvider;
|
|
15
|
+
private _messageProvider;
|
|
16
|
+
protected _dialogProvider: FcrUIDialogProvider;
|
|
13
17
|
private _deviceProvider;
|
|
14
18
|
private _privilegeProvider;
|
|
15
19
|
private _userControl;
|
|
@@ -18,7 +22,7 @@ export default class LayoutStore implements FcrLayoutSlots, FcrUIEventObserver {
|
|
|
18
22
|
private _whiteBoardControl;
|
|
19
23
|
private _chatRoomControl;
|
|
20
24
|
private _localView;
|
|
21
|
-
|
|
25
|
+
protected _disposers: (() => void)[];
|
|
22
26
|
private _barLockTimer;
|
|
23
27
|
private _liveStreamState;
|
|
24
28
|
private _sharedInterpreterDataSource;
|
|
@@ -28,8 +32,6 @@ export default class LayoutStore implements FcrLayoutSlots, FcrUIEventObserver {
|
|
|
28
32
|
private _chatProvider;
|
|
29
33
|
private _pinDataSource;
|
|
30
34
|
private _sharedScreenShareDataSource;
|
|
31
|
-
private _sharedAnnotationDataSource;
|
|
32
|
-
private _multiDisplayProvider;
|
|
33
35
|
accessor participant: React.ReactNode;
|
|
34
36
|
accessor chat: React.ReactNode;
|
|
35
37
|
accessor chatAction: React.ReactNode;
|
|
@@ -61,24 +63,26 @@ export default class LayoutStore implements FcrLayoutSlots, FcrUIEventObserver {
|
|
|
61
63
|
get manualLayout(): import("../../type").FcrUIVideoWindowLayoutType | undefined;
|
|
62
64
|
get scalcValue(): number;
|
|
63
65
|
get annotationHasStart(): boolean;
|
|
64
|
-
get
|
|
65
|
-
get
|
|
66
|
-
get
|
|
66
|
+
get isSharingWithAudio(): boolean;
|
|
67
|
+
get sourceList(): import("../../shared-data/video-window").FcrUIVideoWindowDataImpl[];
|
|
68
|
+
get layoutMainList(): import("../../shared-data/video-window").FcrUIVideoWindowDataImpl[];
|
|
69
|
+
get mainList(): import("../../shared-data/video-window").FcrUIVideoWindowDataImpl[];
|
|
67
70
|
get mainListMapByAudioStreamId(): Map<string, FcrUIVideoWindowData>;
|
|
68
71
|
get spotlightStreamId(): string;
|
|
69
|
-
get foldList(): import("../../shared-data
|
|
70
|
-
get currentShareData(): import("../../shared-data
|
|
71
|
-
get galleryList(): import("../../shared-data
|
|
72
|
+
get foldList(): import("../../shared-data/video-window").FcrUIVideoWindowDataImpl[];
|
|
73
|
+
get currentShareData(): import("../../shared-data/video-window").FcrUIVideoWindowDataImpl | undefined;
|
|
74
|
+
get galleryList(): import("../../shared-data/video-window").FcrUIVideoWindowDataImpl[];
|
|
72
75
|
get isMainWindow(): boolean;
|
|
73
76
|
get isMainWindowInScreenSharing(): boolean;
|
|
74
77
|
get isCurrentUserInBoardSharing(): boolean;
|
|
75
78
|
get asideLayout(): import("../../type").FcrUIUpdateAsideParams;
|
|
76
|
-
get carouselList(): import("../../shared-data
|
|
79
|
+
get carouselList(): import("../../shared-data/video-window").FcrUIVideoWindowDataImpl[];
|
|
77
80
|
get hasPinnedStream(): boolean;
|
|
78
81
|
get isRobot(): boolean;
|
|
79
|
-
get findSpotlightUser(): import("../../shared-data
|
|
82
|
+
get findSpotlightUser(): import("../../shared-data/video-window").FcrUIVideoWindowDataImpl | null | undefined;
|
|
80
83
|
get isWhoISpeakingActive(): boolean | "" | undefined;
|
|
81
84
|
get microphoneEnabled(): boolean;
|
|
85
|
+
get cameraEnabled(): boolean;
|
|
82
86
|
get allowChat(): boolean;
|
|
83
87
|
get allowUnmuteSelfAudio(): boolean;
|
|
84
88
|
get allowUnmuteSelfVideo(): boolean;
|
|
@@ -92,12 +96,13 @@ export default class LayoutStore implements FcrLayoutSlots, FcrUIEventObserver {
|
|
|
92
96
|
get localUserId(): string;
|
|
93
97
|
get interpreterUserList(): import("fcr-core/lib/room-control/interpreter-control/types").FcrInterpreterUserInfo[] | null;
|
|
94
98
|
get isInterpreterEnabled(): boolean;
|
|
95
|
-
get secondaryWindowContentType():
|
|
96
|
-
get isMultiDisplayActive(): boolean;
|
|
97
|
-
get isLocalCameraInSecondaryWindow(): boolean;
|
|
98
|
-
|
|
99
|
+
abstract get secondaryWindowContentType(): `${FcrUIDisplayDistributionContentType}`;
|
|
100
|
+
abstract get isMultiDisplayActive(): boolean;
|
|
101
|
+
abstract get isLocalCameraInSecondaryWindow(): boolean;
|
|
102
|
+
abstract get multiDisplaySharingType(): SharingType;
|
|
103
|
+
constructor({ objectManager }: LayoutStoreArgs);
|
|
99
104
|
get participantCount(): number;
|
|
100
|
-
get isVideoSuspended(): boolean;
|
|
105
|
+
abstract get isVideoSuspended(): boolean;
|
|
101
106
|
get asideContent(): import("../../type").FcrUIUpdateAsideParams;
|
|
102
107
|
get participantsRenderAt(): "aside" | "dialog";
|
|
103
108
|
get chatRenderAt(): "aside" | "dialog";
|
|
@@ -147,14 +152,16 @@ export default class LayoutStore implements FcrLayoutSlots, FcrUIEventObserver {
|
|
|
147
152
|
setScaleValue(scale: number): void;
|
|
148
153
|
muteAudio(mute: boolean, userId: string): void;
|
|
149
154
|
sendParticipantEvent(payload: unknown): void;
|
|
150
|
-
onEvent(action: FcrUIAction.SET_MAIN_SPEAKER, payload: FcrUISetMainSpeakerParams): void;
|
|
151
155
|
onEvent(action: FcrUIAction.TOGGLE_LAYOUT_BAR_LOCK, payload: boolean): void;
|
|
156
|
+
/**
|
|
157
|
+
* Initialize the store, must be called in the sub class construction
|
|
158
|
+
*/
|
|
159
|
+
protected _initialize(): void;
|
|
152
160
|
private _addListeners;
|
|
153
161
|
private get _hasVideoStreamUser();
|
|
154
162
|
private _shouldUnpin;
|
|
155
163
|
private _isVideoParticipantVisible;
|
|
156
164
|
private _handleLayoutUpdated;
|
|
157
|
-
private _handleFoldListChanged;
|
|
158
165
|
private _handleMainListLengthChanged;
|
|
159
166
|
private _handleMainListChanged;
|
|
160
167
|
private _switchToSpeaker;
|
|
@@ -173,4 +180,4 @@ export default class LayoutStore implements FcrLayoutSlots, FcrUIEventObserver {
|
|
|
173
180
|
private _setSpotlightStream;
|
|
174
181
|
private _findSpotlightStream;
|
|
175
182
|
}
|
|
176
|
-
export declare const StoreContext: import("react").Context<
|
|
183
|
+
export declare const StoreContext: import("react").Context<LayoutStoreBase>;
|
|
@@ -19,7 +19,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
19
19
|
Object.defineProperty(exports, "__esModule", {
|
|
20
20
|
value: true
|
|
21
21
|
});
|
|
22
|
-
exports
|
|
22
|
+
exports.StoreContext = exports.LayoutStoreBase = void 0;
|
|
23
23
|
require("core-js/modules/es.array.every.js");
|
|
24
24
|
require("core-js/modules/es.array.filter.js");
|
|
25
25
|
require("core-js/modules/es.array.find.js");
|
|
@@ -80,9 +80,10 @@ var _type6 = require("../../type");
|
|
|
80
80
|
var _view = require("./view");
|
|
81
81
|
var _logger = require("../../utilities/logger");
|
|
82
82
|
var _env = require("agora-foundation/lib/utilities/env");
|
|
83
|
+
var _objectManager = require("../../object-manager");
|
|
83
84
|
var _type7 = require("../secondary-window/type");
|
|
84
|
-
var
|
|
85
|
-
var _initProto, _participantDecs, _init_participant, _chatDecs, _init_chat, _chatActionDecs, _init_chatAction, _stateBarDecs, _init_stateBar, _actionBarDecs, _init_actionBar, _layersDecs, _init_layers, _whiteboardDecs, _init_whiteboard, _annotationDecs, _init_annotation, _screenShareControlDecs, _init_screenShareControl, _init_collapsed, _init_aside, _init_barHovering, _init_barLocked, _init_barHidden, _init_asideWidth, _init_userVolumeMap, _init_chatRoomState, _init_whiteboardActive, _init_ownerUser, _addPinMessageDecs, _cancelPinMessageDecs, _setWhiteboardActiveDecs, _setAsideWidthDecs, _updateSlotsDecs, _toggleLayoutDecs, _toggleCollapsedDecs, _toggleAsideDecs, _asideWidthChangedDecs, _toggleLayoutBarLockDecs, _toggleLayoutBarHiddenDecs, _resetLockTimerDecs, _setHoveringHandlerDecs, _setHoveringLeaveHandlerDecs, _setScreenShareSpeakerViewSizeDecs, _handleLiveLayoutChangeDecs, _onUserInfoUpdatedDecs, _handleLayoutUpdatedDecs, _init__handleLayoutUpdated,
|
|
85
|
+
var _LayoutStoreBase;
|
|
86
|
+
var _initProto, _participantDecs, _init_participant, _chatDecs, _init_chat, _chatActionDecs, _init_chatAction, _stateBarDecs, _init_stateBar, _actionBarDecs, _init_actionBar, _layersDecs, _init_layers, _whiteboardDecs, _init_whiteboard, _annotationDecs, _init_annotation, _screenShareControlDecs, _init_screenShareControl, _init_collapsed, _init_aside, _init_barHovering, _init_barLocked, _init_barHidden, _init_asideWidth, _init_userVolumeMap, _init_chatRoomState, _init_whiteboardActive, _init_ownerUser, _addPinMessageDecs, _cancelPinMessageDecs, _setWhiteboardActiveDecs, _setAsideWidthDecs, _updateSlotsDecs, _toggleLayoutDecs, _toggleCollapsedDecs, _toggleAsideDecs, _asideWidthChangedDecs, _toggleLayoutBarLockDecs, _toggleLayoutBarHiddenDecs, _resetLockTimerDecs, _setHoveringHandlerDecs, _setHoveringLeaveHandlerDecs, _setScreenShareSpeakerViewSizeDecs, _handleLiveLayoutChangeDecs, _onUserInfoUpdatedDecs, _handleLayoutUpdatedDecs, _init__handleLayoutUpdated, _handleMainListLengthChangedDecs, _handleMainListChangedDecs, _setBarHoveringDecs, _handleConnectionUpdatedDecs, _findVideoWindowByUserIdDecs, _onRemoteUsersLeftDecs, _onAudioVolumeUpdatedDecs, _ref;
|
|
86
87
|
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
87
88
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
88
89
|
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
@@ -112,11 +113,12 @@ var _P = /*#__PURE__*/new WeakMap();
|
|
|
112
113
|
var _Q = /*#__PURE__*/new WeakMap();
|
|
113
114
|
var _R = /*#__PURE__*/new WeakMap();
|
|
114
115
|
var _S = /*#__PURE__*/new WeakMap();
|
|
115
|
-
_ref = (_participantDecs = [_mobx.observable, _mobx.observable.ref], _chatDecs = [_mobx.observable, _mobx.observable.ref], _chatActionDecs = [_mobx.observable, _mobx.observable.ref], _stateBarDecs = [_mobx.observable, _mobx.observable.ref], _actionBarDecs = [_mobx.observable, _mobx.observable.ref], _layersDecs = [_mobx.observable, _mobx.observable.ref], _whiteboardDecs = [_mobx.observable, _mobx.observable.ref], _annotationDecs = [_mobx.observable, _mobx.observable.ref], _screenShareControlDecs = [_mobx.observable, _mobx.observable.ref], _addPinMessageDecs = [_mobx.action, _mobx.action.bound], _cancelPinMessageDecs = [_mobx.action, _mobx.action.bound], _setWhiteboardActiveDecs = [_mobx.action, _mobx.action.bound], _setAsideWidthDecs = [_mobx.action, _mobx.action.bound], _updateSlotsDecs = [_mobx.action, _mobx.action.bound], _toggleLayoutDecs = [_mobx.action, _mobx.action.bound], _toggleCollapsedDecs = [_mobx.action, _mobx.action.bound], _toggleAsideDecs = [_mobx.action, _mobx.action.bound], _asideWidthChangedDecs = [_mobx.action, _mobx.action.bound], _toggleLayoutBarLockDecs = [_mobx.action, _mobx.action.bound], _toggleLayoutBarHiddenDecs = [_mobx.action, _mobx.action.bound], _resetLockTimerDecs = [_mobx.action, _mobx.action.bound], _setHoveringHandlerDecs = [_mobx.action, _mobx.action.bound], _setHoveringLeaveHandlerDecs = [_mobx.action, _mobx.action.bound], _setScreenShareSpeakerViewSizeDecs = [(0, _decorator.debounced)(400), _decorator.bound], _handleLiveLayoutChangeDecs = [_mobx.action, _mobx.action.bound], _onUserInfoUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleLayoutUpdatedDecs = [_mobx.action, _mobx.action.bound],
|
|
116
|
-
var
|
|
117
|
-
function
|
|
116
|
+
_ref = (_participantDecs = [_mobx.observable, _mobx.observable.ref], _chatDecs = [_mobx.observable, _mobx.observable.ref], _chatActionDecs = [_mobx.observable, _mobx.observable.ref], _stateBarDecs = [_mobx.observable, _mobx.observable.ref], _actionBarDecs = [_mobx.observable, _mobx.observable.ref], _layersDecs = [_mobx.observable, _mobx.observable.ref], _whiteboardDecs = [_mobx.observable, _mobx.observable.ref], _annotationDecs = [_mobx.observable, _mobx.observable.ref], _screenShareControlDecs = [_mobx.observable, _mobx.observable.ref], _addPinMessageDecs = [_mobx.action, _mobx.action.bound], _cancelPinMessageDecs = [_mobx.action, _mobx.action.bound], _setWhiteboardActiveDecs = [_mobx.action, _mobx.action.bound], _setAsideWidthDecs = [_mobx.action, _mobx.action.bound], _updateSlotsDecs = [_mobx.action, _mobx.action.bound], _toggleLayoutDecs = [_mobx.action, _mobx.action.bound], _toggleCollapsedDecs = [_mobx.action, _mobx.action.bound], _toggleAsideDecs = [_mobx.action, _mobx.action.bound], _asideWidthChangedDecs = [_mobx.action, _mobx.action.bound], _toggleLayoutBarLockDecs = [_mobx.action, _mobx.action.bound], _toggleLayoutBarHiddenDecs = [_mobx.action, _mobx.action.bound], _resetLockTimerDecs = [_mobx.action, _mobx.action.bound], _setHoveringHandlerDecs = [_mobx.action, _mobx.action.bound], _setHoveringLeaveHandlerDecs = [_mobx.action, _mobx.action.bound], _setScreenShareSpeakerViewSizeDecs = [(0, _decorator.debounced)(400), _decorator.bound], _handleLiveLayoutChangeDecs = [_mobx.action, _mobx.action.bound], _onUserInfoUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleLayoutUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleMainListLengthChangedDecs = [_mobx.action, _mobx.action.bound], _handleMainListChangedDecs = [_mobx.action, _mobx.action.bound], _setBarHoveringDecs = [_mobx.action, _mobx.action.bound], _handleConnectionUpdatedDecs = [_mobx.action, _mobx.action.bound], _findVideoWindowByUserIdDecs = [_mobx.action, _mobx.action.bound], _onRemoteUsersLeftDecs = [_mobx.action, _mobx.action.bound], _onAudioVolumeUpdatedDecs = [_mobx.action, _mobx.action.bound], "logger");
|
|
117
|
+
var LayoutStoreBase = exports.LayoutStoreBase = /*#__PURE__*/function () {
|
|
118
|
+
function LayoutStoreBase(_ref2) {
|
|
118
119
|
var _this = this;
|
|
119
|
-
|
|
120
|
+
var objectManager = _ref2.objectManager;
|
|
121
|
+
(0, _classCallCheck2["default"])(this, LayoutStoreBase);
|
|
120
122
|
(0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.createLogger)({
|
|
121
123
|
prefix: 'LayoutStore'
|
|
122
124
|
})));
|
|
@@ -161,45 +163,29 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
161
163
|
var streamId = spotlightStream.streamId;
|
|
162
164
|
_this._videoWindowDataSource.setSpeakerSpotlight(streamId);
|
|
163
165
|
});
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
this.
|
|
167
|
-
this.
|
|
168
|
-
this.
|
|
169
|
-
this.
|
|
170
|
-
this.
|
|
171
|
-
this.
|
|
172
|
-
this.
|
|
173
|
-
this.
|
|
174
|
-
this.
|
|
175
|
-
this.
|
|
176
|
-
this.
|
|
177
|
-
this._sharedSettingDataSource =
|
|
178
|
-
this.
|
|
179
|
-
this.
|
|
180
|
-
this.
|
|
181
|
-
this.
|
|
166
|
+
// Get all required objects from objectManager
|
|
167
|
+
var roomProvider = objectManager.getObject(_objectManager.FcrUIObjectKeys.P_ROOM_PROVIDER);
|
|
168
|
+
this._dialogProvider = objectManager.getObject(_objectManager.FcrUIObjectKeys.P_DIALOG_PROVIDER);
|
|
169
|
+
this._messageProvider = objectManager.getObject(_objectManager.FcrUIObjectKeys.P_MESSAGE_PROVIDER);
|
|
170
|
+
this._roomControl = roomProvider.currentRoomControl;
|
|
171
|
+
this._userControl = this._roomControl.getUserControl();
|
|
172
|
+
this._streamControl = this._roomControl.getStreamControl();
|
|
173
|
+
this._chatRoomControl = this._roomControl.getChatRoomControl();
|
|
174
|
+
this._whiteBoardControl = this._roomControl.getSharingControl().getBoardControl();
|
|
175
|
+
this._sharedLayoutDataSource = objectManager.getObject(_objectManager.FcrUIObjectKeys.S_SHARED_LAYOUT_DATA_SOURCE);
|
|
176
|
+
this._eventProvider = objectManager.getObject(_objectManager.FcrUIObjectKeys.P_EVENT_PROVIDER);
|
|
177
|
+
this._deviceProvider = objectManager.getObject(_objectManager.FcrUIObjectKeys.P_DEVICE_PROVIDER);
|
|
178
|
+
this._privilegeProvider = objectManager.getObject(_objectManager.FcrUIObjectKeys.P_PRIVILEGE_PROVIDER);
|
|
179
|
+
this._sharedSettingDataSource = objectManager.getObject(_objectManager.FcrUIObjectKeys.S_SHARED_SETTING_DATA_SOURCE);
|
|
180
|
+
this._sharedInterpreterDataSource = objectManager.getObject(_objectManager.FcrUIObjectKeys.S_SHARED_INTERPRETER_DATA_SOURCE);
|
|
181
|
+
this._chatProvider = objectManager.getObject(_objectManager.FcrUIObjectKeys.P_CHAT_PROVIDER);
|
|
182
|
+
this._videoWindowDataSource = objectManager.getObject(_objectManager.FcrUIObjectKeys.S_SHARED_VIDEO_WINDOW_DATA_SOURCE);
|
|
183
|
+
this._sharedMemberDataSource = objectManager.getObject(_objectManager.FcrUIObjectKeys.S_SHARED_MEMBER_DATA_SOURCE);
|
|
184
|
+
this._pinDataSource = objectManager.getObject(_objectManager.FcrUIObjectKeys.S_SHARED_PIN_DATA_SOURCE);
|
|
185
|
+
this._sharedScreenShareDataSource = objectManager.getObject(_objectManager.FcrUIObjectKeys.S_SHARED_SCREEN_SHARE_DATA_SOURCE);
|
|
182
186
|
this.chatRoomState = this._chatRoomControl.getConnectionState();
|
|
183
|
-
this._sharedScreenShareDataSource = params.sharedScreenShareDataSource;
|
|
184
|
-
this._sharedAnnotationDataSource = params.sharedAnnotationDataSource;
|
|
185
|
-
this._multiDisplayProvider = params.multiDisplayProvider;
|
|
186
|
-
this._addListeners();
|
|
187
|
-
this._initStream();
|
|
188
|
-
this._handleFoldListChanged();
|
|
189
|
-
this._handleMainListChanged();
|
|
190
|
-
this._handleMainListLengthChanged();
|
|
191
|
-
this._handleLayoutUpdated(this._videoWindowDataSource.layoutType);
|
|
192
|
-
this.setWhiteboardActive(this._whiteBoardControl.getActivity());
|
|
193
|
-
|
|
194
|
-
// 进入房间后,如果双屏模式处于激活状态,则需要设置主窗口为窗口最大化
|
|
195
|
-
if (this._multiDisplayProvider.isActive) {
|
|
196
|
-
this._multiDisplayProvider.setMainWindowMaximize();
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
// @ts-ignore
|
|
200
|
-
window._layoutStore = this;
|
|
201
187
|
}
|
|
202
|
-
return (0, _createClass2["default"])(
|
|
188
|
+
return (0, _createClass2["default"])(LayoutStoreBase, [{
|
|
203
189
|
key: "participant",
|
|
204
190
|
get: function get() {
|
|
205
191
|
return _classPrivateFieldGet(_A, this);
|
|
@@ -409,7 +395,13 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
409
395
|
}, {
|
|
410
396
|
key: "annotationHasStart",
|
|
411
397
|
get: function get() {
|
|
412
|
-
return this._sharedAnnotationDataSource.annotationHasStart;
|
|
398
|
+
// return this._sharedAnnotationDataSource.annotationHasStart;
|
|
399
|
+
return false;
|
|
400
|
+
}
|
|
401
|
+
}, {
|
|
402
|
+
key: "isSharingWithAudio",
|
|
403
|
+
get: function get() {
|
|
404
|
+
return this._sharedScreenShareDataSource.isSharingWithAudio;
|
|
413
405
|
}
|
|
414
406
|
}, {
|
|
415
407
|
key: "sourceList",
|
|
@@ -435,7 +427,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
435
427
|
return item.type !== _type2.FcrUIWindowType.BOARD;
|
|
436
428
|
});
|
|
437
429
|
case _type7.FcrUIDisplayDistributionContentType.HIDDEN:
|
|
438
|
-
var sharingType = this.
|
|
430
|
+
var sharingType = this.multiDisplaySharingType;
|
|
439
431
|
|
|
440
432
|
// 当自己进行屏幕共享时,会隐藏副窗口,主窗口中不需要显示屏幕共享流
|
|
441
433
|
if (sharingType === _type7.FcrUIDisplayDistributionContentType.SHARING_SCREEN || sharingType === _type7.FcrUIDisplayDistributionContentType.SHARING_SCREEN_WITH_ANNOTATION) {
|
|
@@ -583,6 +575,11 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
583
575
|
get: function get() {
|
|
584
576
|
return this._deviceProvider.microphoneEnabled;
|
|
585
577
|
}
|
|
578
|
+
}, {
|
|
579
|
+
key: "cameraEnabled",
|
|
580
|
+
get: function get() {
|
|
581
|
+
return this._deviceProvider.cameraEnabled;
|
|
582
|
+
}
|
|
586
583
|
}, {
|
|
587
584
|
key: "allowChat",
|
|
588
585
|
get: function get() {
|
|
@@ -649,42 +646,11 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
649
646
|
get: function get() {
|
|
650
647
|
return this._sharedInterpreterDataSource.isInterpreterEnabled;
|
|
651
648
|
}
|
|
652
|
-
}, {
|
|
653
|
-
key: "secondaryWindowContentType",
|
|
654
|
-
get: function get() {
|
|
655
|
-
return this._multiDisplayProvider.secondaryWindowContentType;
|
|
656
|
-
}
|
|
657
|
-
}, {
|
|
658
|
-
key: "isMultiDisplayActive",
|
|
659
|
-
get: function get() {
|
|
660
|
-
return this._multiDisplayProvider.isActive;
|
|
661
|
-
}
|
|
662
|
-
}, {
|
|
663
|
-
key: "isLocalCameraInSecondaryWindow",
|
|
664
|
-
get: function get() {
|
|
665
|
-
return this._multiDisplayProvider.isLocalCameraInSecondaryWindow;
|
|
666
|
-
}
|
|
667
649
|
}, {
|
|
668
650
|
key: "participantCount",
|
|
669
651
|
get: function get() {
|
|
670
652
|
return this._sharedMemberDataSource.totalUserCount;
|
|
671
653
|
}
|
|
672
|
-
}, {
|
|
673
|
-
key: "isVideoSuspended",
|
|
674
|
-
get: function get() {
|
|
675
|
-
var isSharingScreen = !!this._sharedScreenShareDataSource.isSharingScreen;
|
|
676
|
-
var shareScreenOwner = this._sharedScreenShareDataSource.screenSharingOwner;
|
|
677
|
-
var isSharingScreenBySelf = this.localUserId === (shareScreenOwner === null || shareScreenOwner === void 0 ? void 0 : shareScreenOwner.userId);
|
|
678
|
-
|
|
679
|
-
// 多屏模式开启时, 不需要显示悬浮窗
|
|
680
|
-
if (this.isMultiDisplayActive) {
|
|
681
|
-
return false;
|
|
682
|
-
}
|
|
683
|
-
if ((0, _env.isElectron)() && isSharingScreen && isSharingScreenBySelf) {
|
|
684
|
-
return true;
|
|
685
|
-
}
|
|
686
|
-
return false;
|
|
687
|
-
}
|
|
688
654
|
}, {
|
|
689
655
|
key: "asideContent",
|
|
690
656
|
get: function get() {
|
|
@@ -813,7 +779,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
813
779
|
value: function moveParticipantFromAsideToDialog() {
|
|
814
780
|
this.closeParticipantFromAside();
|
|
815
781
|
this._sharedLayoutDataSource.setParticipantsRenderAt('dialog');
|
|
816
|
-
this.
|
|
782
|
+
this._dialogProvider.openDialog(_constant.FcrUIDialogKey.PARTICIPANT);
|
|
817
783
|
}
|
|
818
784
|
}, {
|
|
819
785
|
key: "closeChatFromAside",
|
|
@@ -833,7 +799,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
833
799
|
value: function moveChatFromAsideToDialog() {
|
|
834
800
|
this.closeChatFromAside();
|
|
835
801
|
this._sharedLayoutDataSource.setChatRenderAt('dialog');
|
|
836
|
-
this.
|
|
802
|
+
this._dialogProvider.openDialog(_constant.FcrUIDialogKey.CHAT);
|
|
837
803
|
this._sharedLayoutDataSource.setAsideLayout({
|
|
838
804
|
chat: true
|
|
839
805
|
});
|
|
@@ -853,7 +819,6 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
853
819
|
var user = Object.values(this === null || this === void 0 || (_this$_userControl = this._userControl) === null || _this$_userControl === void 0 ? void 0 : _this$_userControl.getUsers()).find(function (u) {
|
|
854
820
|
return u.userId === userId;
|
|
855
821
|
});
|
|
856
|
-
// user && this._eventProvider.notifyChatUpdateTarget(user, FcrRoomType.Mainroom);
|
|
857
822
|
user && this._chatProvider.setPrivateChatTargetUser(user, _type6.FcrUIRoomType.MAIN_ROOM);
|
|
858
823
|
}
|
|
859
824
|
}, {
|
|
@@ -993,24 +958,13 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
993
958
|
value: function sendParticipantEvent(payload) {
|
|
994
959
|
this._eventProvider.sendEvent(_constant.FcrUIAction.PARTICIPANT_ACTION, payload);
|
|
995
960
|
}
|
|
996
|
-
|
|
997
|
-
// onEvent(action: FcrUIAction.UPDATE_ASIDE, payload: FcrUIUpdateAsideParams): void;
|
|
998
961
|
}, {
|
|
999
962
|
key: "onEvent",
|
|
1000
|
-
value:
|
|
1001
|
-
// onEvent(
|
|
1002
|
-
// action: FcrUIAction.WHITEBOARD_CHANGED,
|
|
1003
|
-
// payload: { action: WhiteboardControlbarEvents; payload: boolean },
|
|
1004
|
-
// ): void;
|
|
1005
|
-
function onEvent(action, payload) {
|
|
1006
|
-
if (action === _constant.FcrUIAction.SET_MAIN_SPEAKER) {
|
|
1007
|
-
var _ref2 = payload,
|
|
1008
|
-
userId = _ref2.userId;
|
|
1009
|
-
}
|
|
963
|
+
value: function onEvent(action, payload) {
|
|
1010
964
|
if (action === _constant.FcrUIAction.SET_USER_PIN_STATE) {
|
|
1011
965
|
var _ref3 = payload,
|
|
1012
|
-
|
|
1013
|
-
this.handleSetPinState(
|
|
966
|
+
userId = _ref3.userId;
|
|
967
|
+
this.handleSetPinState(userId);
|
|
1014
968
|
}
|
|
1015
969
|
if (action === _constant.FcrUIAction.TOGGLE_LAYOUT_BAR_LOCK) {
|
|
1016
970
|
this.toggleLayoutBarLock(payload);
|
|
@@ -1043,6 +997,20 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1043
997
|
}
|
|
1044
998
|
}
|
|
1045
999
|
}
|
|
1000
|
+
|
|
1001
|
+
/**
|
|
1002
|
+
* Initialize the store, must be called in the sub class construction
|
|
1003
|
+
*/
|
|
1004
|
+
}, {
|
|
1005
|
+
key: "_initialize",
|
|
1006
|
+
value: function _initialize() {
|
|
1007
|
+
this._addListeners();
|
|
1008
|
+
this._initStream();
|
|
1009
|
+
this._handleMainListChanged();
|
|
1010
|
+
this._handleMainListLengthChanged();
|
|
1011
|
+
this._handleLayoutUpdated(this._videoWindowDataSource.layoutType);
|
|
1012
|
+
this.setWhiteboardActive(this._whiteBoardControl.getActivity());
|
|
1013
|
+
}
|
|
1046
1014
|
}, {
|
|
1047
1015
|
key: "_addListeners",
|
|
1048
1016
|
value: function _addListeners() {
|
|
@@ -1065,9 +1033,6 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1065
1033
|
};
|
|
1066
1034
|
var videoWindowObserver = {
|
|
1067
1035
|
onLayoutUpdated: this._handleLayoutUpdated,
|
|
1068
|
-
onFoldListAdded: this._handleFoldListChanged,
|
|
1069
|
-
onFoldListRemoved: this._handleFoldListChanged,
|
|
1070
|
-
onFoldListUpdated: this._handleFoldListChanged,
|
|
1071
1036
|
onMainListAdded: this._handleMainListChanged,
|
|
1072
1037
|
onMainListUpdated: this._handleMainListChanged,
|
|
1073
1038
|
onMainListRemoved: this._handleMainListChanged
|
|
@@ -1107,38 +1072,6 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1107
1072
|
}
|
|
1108
1073
|
}
|
|
1109
1074
|
_this5._handleMainListLengthChanged();
|
|
1110
|
-
}), (0, _mobx.reaction)(function () {
|
|
1111
|
-
return _this5._multiDisplayProvider.isActive;
|
|
1112
|
-
}, function (isActive) {
|
|
1113
|
-
var _this5$_multiDisplayP = _this5._multiDisplayProvider.displayState,
|
|
1114
|
-
sharingBySelf = _this5$_multiDisplayP.sharingBySelf,
|
|
1115
|
-
isSharingScreen = _this5$_multiDisplayP.isSharingScreen;
|
|
1116
|
-
if (isActive) {
|
|
1117
|
-
// 多屏模式激活时,需要设置主窗口为窗口最大化
|
|
1118
|
-
// 如果自己正在共享屏幕,则关闭 vidoe window 悬浮窗、显示主窗口
|
|
1119
|
-
if (sharingBySelf && isSharingScreen) {
|
|
1120
|
-
var _this5$_eventProvider;
|
|
1121
|
-
(_this5$_eventProvider = _this5._eventProvider) === null || _this5$_eventProvider === void 0 || _this5$_eventProvider.sendEvent(_constant.FcrUIAction.CLOSE_TOP_VIDEO_WINDOW);
|
|
1122
|
-
_this5._multiDisplayProvider.showMainWindowInIndexLeastDisplay({
|
|
1123
|
-
maximize: true
|
|
1124
|
-
});
|
|
1125
|
-
} else {
|
|
1126
|
-
_this5._multiDisplayProvider.setMainWindowMaximize();
|
|
1127
|
-
}
|
|
1128
|
-
return;
|
|
1129
|
-
}
|
|
1130
|
-
|
|
1131
|
-
// 多屏模式从激活状态转变为非激活状态时,
|
|
1132
|
-
// 如果当前是自己在共享屏幕,则隐藏主窗口,打开 vidoe window 悬浮窗
|
|
1133
|
-
// 如果不是自己在共享,则切换布局到演讲者模式
|
|
1134
|
-
// 没屏幕共享时,不做操作
|
|
1135
|
-
if (sharingBySelf && isSharingScreen) {
|
|
1136
|
-
var _this5$_eventProvider2;
|
|
1137
|
-
window.runtime.browserWindow.hide();
|
|
1138
|
-
(_this5$_eventProvider2 = _this5._eventProvider) === null || _this5$_eventProvider2 === void 0 || _this5$_eventProvider2.sendEvent(_constant.FcrUIAction.OPEN_TOP_VIDEO_WINDOW);
|
|
1139
|
-
} else if (isSharingScreen) {
|
|
1140
|
-
_this5.toggleLayout(_type2.FcrUIVideoWindowLayoutType.Speaker);
|
|
1141
|
-
}
|
|
1142
1075
|
}), (0, _mobx.reaction)(function () {
|
|
1143
1076
|
return _this5.whiteboardActive;
|
|
1144
1077
|
}, function (isBoardActive) {
|
|
@@ -1250,11 +1183,6 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1250
1183
|
value: function _isVideoParticipantVisible(item) {
|
|
1251
1184
|
return item.isMySelf && !this._hasVideoStreamUser || item.hasVideoStream || item.videoSourceType === _fcrCore.FcrVideoSourceType.SCREEN || item.type === _type2.FcrUIWindowType.BOARD;
|
|
1252
1185
|
}
|
|
1253
|
-
}, {
|
|
1254
|
-
key: "_handleFoldListChanged",
|
|
1255
|
-
value: function _handleFoldListChanged() {
|
|
1256
|
-
this._eventProvider.sendEvent(_constant.FcrUIAction.FOLD_LIST_CHANGED, this.foldList);
|
|
1257
|
-
}
|
|
1258
1186
|
}, {
|
|
1259
1187
|
key: "_handleMainListLengthChanged",
|
|
1260
1188
|
value: function _handleMainListLengthChanged() {
|
|
@@ -1328,7 +1256,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1328
1256
|
value: function _handleLiveStreamingStateUpdated(_, state, url, reason) {
|
|
1329
1257
|
this._liveStreamState = state;
|
|
1330
1258
|
if (state === _type.FcrLiveStreamingState.STOPPED && reason === _type5.FcrLiveStreamingStateUpdatedReason.HOSTCHANGED) {
|
|
1331
|
-
this.
|
|
1259
|
+
this._messageProvider.showToast({
|
|
1332
1260
|
type: 'info',
|
|
1333
1261
|
message: (0, _i18n.transI18n)('fmt_broadcast_livestream_tips_hand_over_pc_to_mobile')
|
|
1334
1262
|
});
|
|
@@ -1426,8 +1354,8 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1426
1354
|
}
|
|
1427
1355
|
}]);
|
|
1428
1356
|
}();
|
|
1429
|
-
|
|
1430
|
-
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(
|
|
1357
|
+
_LayoutStoreBase = LayoutStoreBase;
|
|
1358
|
+
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_LayoutStoreBase, [[_participantDecs, 17, "participant"], [_chatDecs, 17, "chat"], [_chatActionDecs, 17, "chatAction"], [_stateBarDecs, 17, "stateBar"], [_actionBarDecs, 17, "actionBar"], [_layersDecs, 17, "layers"], [_whiteboardDecs, 17, "whiteboard"], [_annotationDecs, 17, "annotation"], [_screenShareControlDecs, 17, "screenShareControl"], [_mobx.observable, 1, "collapsed"], [_mobx.observable, 1, "aside"], [_mobx.observable, 1, "barHovering"], [_mobx.observable, 1, "barLocked"], [_mobx.observable, 1, "barHidden"], [_mobx.observable, 1, "asideWidth"], [_mobx.observable, 1, "userVolumeMap"], [_mobx.observable, 1, "chatRoomState"], [_mobx.observable, 1, "whiteboardActive"], [_mobx.observable, 1, "ownerUser"], [_mobx.computed, 3, "isWaterMarkEnabled"], [_mobx.computed, 3, "isMulti"], [_mobx.computed, 3, "layout"], [_mobx.computed, 3, "manualLayout"], [_mobx.computed, 3, "scalcValue"], [_mobx.computed, 3, "sourceList"], [_mobx.computed, 3, "layoutMainList"], [_mobx.computed, 3, "mainList"], [_mobx.computed, 3, "mainListMapByAudioStreamId"], [_mobx.computed, 3, "spotlightStreamId"], [_mobx.computed, 3, "foldList"], [_mobx.computed, 3, "galleryList"], [_mobx.computed, 3, "isMainWindowInScreenSharing"], [_mobx.computed, 3, "isCurrentUserInBoardSharing"], [_mobx.computed, 3, "asideLayout"], [_mobx.computed, 3, "carouselList"], [_mobx.computed, 3, "hasPinnedStream"], [_mobx.computed, 3, "isRobot"], [_mobx.computed, 3, "findSpotlightUser"], [_mobx.computed, 3, "isWhoISpeakingActive"], [_mobx.computed, 3, "microphoneEnabled"], [_mobx.computed, 3, "cameraEnabled"], [_mobx.computed, 3, "galleryMaxSize"], [_mobx.computed, 3, "asideContent"], [_mobx.computed, 3, "participantsRenderAt"], [_mobx.computed, 3, "chatRenderAt"], [_decorator.bound, 2, "getWaterMarkContent"], [_decorator.bound, 2, "hasMutePermission"], [_decorator.bound, 2, "hasUnmutePermission"], [_decorator.bound, 2, "hasRequestStartAudioPermission"], [_decorator.bound, 2, "toggleMainStream"], [_addPinMessageDecs, 18, "addPinMessage"], [_cancelPinMessageDecs, 18, "cancelPinMessage"], [_decorator.bound, 2, "addPin"], [_decorator.bound, 2, "removePin"], [_decorator.bound, 2, "setVideoOrientation"], [_decorator.bound, 2, "setAllowChat"], [_decorator.bound, 2, "handleSetPinState"], [_setWhiteboardActiveDecs, 18, "setWhiteboardActive"], [_setAsideWidthDecs, 18, "setAsideWidth"], [_updateSlotsDecs, 18, "updateSlots"], [_decorator.bound, 2, "closeParticipantFromAside"], [_decorator.bound, 2, "moveParticipantFromAsideToDialog"], [_decorator.bound, 2, "closeChatFromAside"], [_decorator.bound, 2, "closeAsideChat"], [_decorator.bound, 2, "moveChatFromAsideToDialog"], [_decorator.bound, 2, "openPrivateChat"], [_decorator.bound, 2, "openRenameDialog"], [_toggleLayoutDecs, 18, "toggleLayout"], [_toggleCollapsedDecs, 18, "toggleCollapsed"], [_toggleAsideDecs, 18, "toggleAside"], [_asideWidthChangedDecs, 18, "asideWidthChanged"], [_toggleLayoutBarLockDecs, 18, "toggleLayoutBarLock"], [_toggleLayoutBarHiddenDecs, 18, "toggleLayoutBarHidden"], [_resetLockTimerDecs, 18, "resetLockTimer"], [_setHoveringHandlerDecs, 18, "setHoveringHandler"], [_setHoveringLeaveHandlerDecs, 18, "setHoveringLeaveHandler"], [_setScreenShareSpeakerViewSizeDecs, 2, "setScreenShareSpeakerViewSize"], [_handleLiveLayoutChangeDecs, 18, "handleLiveLayoutChange"], [_onUserInfoUpdatedDecs, 18, "onUserInfoUpdated"], [_decorator.bound, 2, "stopLocalPreview"], [_decorator.bound, 2, "startLocalPreview"], [_decorator.bound, 2, "setAllowChatWithPayload"], [_decorator.bound, 2, "setScaleValue"], [_decorator.bound, 2, "muteAudio"], [_decorator.bound, 2, "sendParticipantEvent"], [_decorator.bound, 2, "onEvent"], [_decorator.bound, 2, "_addListeners"], [_mobx.computed, 3, "_hasVideoStreamUser"], [_handleMainListLengthChangedDecs, 18, "_handleMainListLengthChanged"], [_handleMainListChangedDecs, 18, "_handleMainListChanged"], [_mobx.action, 2, "_switchToSpeaker"], [_mobx.action, 2, "_switchToGallery"], [_setBarHoveringDecs, 18, "_setBarHovering"], [_handleConnectionUpdatedDecs, 18, "_handleConnectionUpdated"], [_findVideoWindowByUserIdDecs, 18, "_findVideoWindowByUserId"], [_onRemoteUsersLeftDecs, 18, "_onRemoteUsersLeft"], [_decorator.bound, 2, "_handleLiveStreamingStateUpdated"], [_decorator.bound, 2, "_handleStreamAdded"], [_decorator.bound, 2, "_onStreamsAdded"], [_decorator.bound, 2, "_onStreamsUpdated"], [_decorator.bound, 2, "_onStreamsRemoved"], [_onAudioVolumeUpdatedDecs, 18, "_onAudioVolumeUpdated"], [_handleLayoutUpdatedDecs, 16, "_handleLayoutUpdated"]], []).e, 21);
|
|
1431
1359
|
_init_participant = _applyDecs$e[0];
|
|
1432
1360
|
_init_chat = _applyDecs$e[1];
|
|
1433
1361
|
_init_chatAction = _applyDecs$e[2];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FcrUIDisplayDistributionContentType } from '../secondary-window/type';
|
|
2
|
+
import { LayoutStoreBase } from './store.base';
|
|
3
|
+
import { LayoutStoreArgs } from './type';
|
|
4
|
+
export default class LayoutStoreBrowser extends LayoutStoreBase {
|
|
5
|
+
get secondaryWindowContentType(): FcrUIDisplayDistributionContentType;
|
|
6
|
+
get multiDisplaySharingType(): undefined;
|
|
7
|
+
get isMultiDisplayActive(): boolean;
|
|
8
|
+
get isLocalCameraInSecondaryWindow(): boolean;
|
|
9
|
+
get isVideoSuspended(): boolean;
|
|
10
|
+
constructor(layoutStoreArgs: LayoutStoreArgs);
|
|
11
|
+
}
|