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
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.symbol.js");
|
|
4
|
+
require("core-js/modules/es.symbol.description.js");
|
|
5
|
+
require("core-js/modules/es.symbol.to-primitive.js");
|
|
6
|
+
require("core-js/modules/es.error.cause.js");
|
|
7
|
+
require("core-js/modules/es.error.to-string.js");
|
|
8
|
+
require("core-js/modules/es.array.is-array.js");
|
|
9
|
+
require("core-js/modules/es.array.iterator.js");
|
|
10
|
+
require("core-js/modules/es.array.push.js");
|
|
11
|
+
require("core-js/modules/es.date.to-primitive.js");
|
|
12
|
+
require("core-js/modules/es.function.bind.js");
|
|
13
|
+
require("core-js/modules/es.function.name.js");
|
|
14
|
+
require("core-js/modules/es.map.js");
|
|
15
|
+
require("core-js/modules/es.number.constructor.js");
|
|
16
|
+
require("core-js/modules/es.object.create.js");
|
|
17
|
+
require("core-js/modules/es.object.define-property.js");
|
|
18
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
19
|
+
require("core-js/modules/es.object.to-string.js");
|
|
20
|
+
require("core-js/modules/es.reflect.construct.js");
|
|
21
|
+
require("core-js/modules/es.string.iterator.js");
|
|
22
|
+
require("core-js/modules/esnext.function.metadata.js");
|
|
23
|
+
require("core-js/modules/esnext.map.delete-all.js");
|
|
24
|
+
require("core-js/modules/esnext.map.emplace.js");
|
|
25
|
+
require("core-js/modules/esnext.map.every.js");
|
|
26
|
+
require("core-js/modules/esnext.map.filter.js");
|
|
27
|
+
require("core-js/modules/esnext.map.find.js");
|
|
28
|
+
require("core-js/modules/esnext.map.find-key.js");
|
|
29
|
+
require("core-js/modules/esnext.map.includes.js");
|
|
30
|
+
require("core-js/modules/esnext.map.key-of.js");
|
|
31
|
+
require("core-js/modules/esnext.map.map-keys.js");
|
|
32
|
+
require("core-js/modules/esnext.map.map-values.js");
|
|
33
|
+
require("core-js/modules/esnext.map.merge.js");
|
|
34
|
+
require("core-js/modules/esnext.map.reduce.js");
|
|
35
|
+
require("core-js/modules/esnext.map.some.js");
|
|
36
|
+
require("core-js/modules/esnext.map.update.js");
|
|
37
|
+
require("core-js/modules/esnext.symbol.metadata.js");
|
|
38
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
39
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
40
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
41
|
+
Object.defineProperty(exports, "__esModule", {
|
|
42
|
+
value: true
|
|
43
|
+
});
|
|
44
|
+
exports["default"] = void 0;
|
|
45
|
+
require("core-js/modules/es.array.concat.js");
|
|
46
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
47
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
48
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
49
|
+
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
50
|
+
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
51
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
52
|
+
var _mobx = require("mobx");
|
|
53
|
+
var _store = require("../store.base");
|
|
54
|
+
var _DeviceControlWaitingSceneStore;
|
|
55
|
+
var _initProto, _enableCameraDecs, _enableMicrophoneDecs, _ref;
|
|
56
|
+
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)); }
|
|
57
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
58
|
+
function _applyDecs(e, t, r, n, o, a) { function i(e, t, r) { return function (n, o) { return r && r(n), e[t].call(n, o); }; } function c(e, t) { for (var r = 0; r < e.length; r++) e[r].call(t); return t; } function s(e, t, r, n) { if ("function" != typeof e && (n || void 0 !== e)) throw new TypeError(t + " must " + (r || "be") + " a function" + (n ? "" : " or undefined")); return e; } function applyDec(e, t, r, n, o, a, c, u, l, f, p, d, h) { function m(e) { if (!h(e)) throw new TypeError("Attempted to access private element on non-instance"); } var y, v = t[0], g = t[3], b = !u; if (!b) { r || Array.isArray(v) || (v = [v]); var w = {}, S = [], A = 3 === o ? "get" : 4 === o || d ? "set" : "value"; f ? (p || d ? w = { get: _setFunctionName(function () { return g(this); }, n, "get"), set: function set(e) { t[4](this, e); } } : w[A] = g, p || _setFunctionName(w[A], n, 2 === o ? "" : A)) : p || (w = Object.getOwnPropertyDescriptor(e, n)); } for (var P = e, j = v.length - 1; j >= 0; j -= r ? 2 : 1) { var D = v[j], E = r ? v[j - 1] : void 0, I = {}, O = { kind: ["field", "accessor", "method", "getter", "setter", "class"][o], name: n, metadata: a, addInitializer: function (e, t) { if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); s(t, "An initializer", "be", !0), c.push(t); }.bind(null, I) }; try { if (b) (y = s(D.call(E, P, O), "class decorators", "return")) && (P = y);else { var k, F; O["static"] = l, O["private"] = f, f ? 2 === o ? k = function k(e) { return m(e), w.value; } : (o < 4 && (k = i(w, "get", m)), 3 !== o && (F = i(w, "set", m))) : (k = function k(e) { return e[n]; }, (o < 2 || 4 === o) && (F = function F(e, t) { e[n] = t; })); var N = O.access = { has: f ? h.bind() : function (e) { return n in e; } }; if (k && (N.get = k), F && (N.set = F), P = D.call(E, d ? { get: w.get, set: w.set } : w[A], O), d) { if ("object" == _typeof(P) && P) (y = s(P.get, "accessor.get")) && (w.get = y), (y = s(P.set, "accessor.set")) && (w.set = y), (y = s(P.init, "accessor.init")) && S.push(y);else if (void 0 !== P) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); } else s(P, (p ? "field" : "method") + " decorators", "return") && (p ? S.push(P) : w[A] = P); } } finally { I.v = !0; } } return (p || d) && u.push(function (e, t) { for (var r = S.length - 1; r >= 0; r--) t = S[r].call(e, t); return t; }), p || b || (f ? d ? u.push(i(w, "get"), i(w, "set")) : u.push(2 === o ? w[A] : i.call.bind(w[A])) : Object.defineProperty(e, n, w)), P; } function u(e, t) { return Object.defineProperty(e, Symbol.metadata || Symbol["for"]("Symbol.metadata"), { configurable: !0, enumerable: !0, value: t }); } if (arguments.length >= 6) var l = a[Symbol.metadata || Symbol["for"]("Symbol.metadata")]; var f = Object.create(null == l ? null : l), p = function (e, t, r, n) { var o, a, i = [], s = function s(t) { return _checkInRHS(t) === e; }, u = new Map(); function l(e) { e && i.push(c.bind(null, e)); } for (var f = 0; f < t.length; f++) { var p = t[f]; if (Array.isArray(p)) { var d = p[1], h = p[2], m = p.length > 3, y = 16 & d, v = !!(8 & d), g = 0 == (d &= 7), b = h + "/" + v; if (!g && !m) { var w = u.get(b); if (!0 === w || 3 === w && 4 !== d || 4 === w && 3 !== d) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h); u.set(b, !(d > 2) || d); } applyDec(v ? e : e.prototype, p, y, m ? "#" + h : _toPropertyKey(h), d, n, v ? a = a || [] : o = o || [], i, v, m, g, 1 === d, v && m ? s : r); } } return l(o), l(a), i; }(e, t, o, f); return r.length || u(e, f), { e: p, get c() { var t = []; return r.length && [u(applyDec(e, [r], n, e.name, 5, f, t), f), c.bind(null, t, e)]; } }; }
|
|
59
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
60
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
61
|
+
function _setFunctionName(e, t, n) { "symbol" == _typeof(t) && (t = (t = t.description) ? "[" + t + "]" : ""); try { Object.defineProperty(e, "name", { configurable: !0, value: n ? n + " " + t : t }); } catch (e) {} return e; }
|
|
62
|
+
function _checkInRHS(e) { if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (null !== e ? _typeof(e) : "null")); return e; }
|
|
63
|
+
_ref = (_enableCameraDecs = [_mobx.action, _mobx.action.bound], _enableMicrophoneDecs = [_mobx.action, _mobx.action.bound], "enableCamera");
|
|
64
|
+
var DeviceControlWaitingSceneStore = exports["default"] = /*#__PURE__*/function (_DeviceControlStoreBa) {
|
|
65
|
+
function DeviceControlWaitingSceneStore() {
|
|
66
|
+
var _this;
|
|
67
|
+
(0, _classCallCheck2["default"])(this, DeviceControlWaitingSceneStore);
|
|
68
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
69
|
+
args[_key] = arguments[_key];
|
|
70
|
+
}
|
|
71
|
+
_this = _callSuper(this, DeviceControlWaitingSceneStore, [].concat(args));
|
|
72
|
+
_initProto(_this);
|
|
73
|
+
return _this;
|
|
74
|
+
}
|
|
75
|
+
(0, _inherits2["default"])(DeviceControlWaitingSceneStore, _DeviceControlStoreBa);
|
|
76
|
+
return (0, _createClass2["default"])(DeviceControlWaitingSceneStore, [{
|
|
77
|
+
key: _ref,
|
|
78
|
+
value: function value(enable) {
|
|
79
|
+
this._deviceProvider.setCameraEnabled(enable);
|
|
80
|
+
}
|
|
81
|
+
}, {
|
|
82
|
+
key: "enableMicrophone",
|
|
83
|
+
value: function enableMicrophone(enable) {
|
|
84
|
+
this._deviceProvider.setMicrophoneEnabled(enable);
|
|
85
|
+
}
|
|
86
|
+
}]);
|
|
87
|
+
}(_store.DeviceControlStoreBase);
|
|
88
|
+
_DeviceControlWaitingSceneStore = DeviceControlWaitingSceneStore;
|
|
89
|
+
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_DeviceControlWaitingSceneStore, [[_enableCameraDecs, 18, "enableCamera"], [_enableMicrophoneDecs, 18, "enableMicrophone"]], [], 0, void 0, _store.DeviceControlStoreBase).e, 1);
|
|
90
|
+
_initProto = _applyDecs$e[0];
|
|
@@ -13,7 +13,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
13
13
|
var _mobxReact = require("mobx-react");
|
|
14
14
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
15
15
|
var _react = require("react");
|
|
16
|
-
var _store = require("./store");
|
|
16
|
+
var _store = require("./store.base");
|
|
17
17
|
var _button = require("agora-ui-foundation/lib/components/button");
|
|
18
18
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
19
|
var LeaveMeeting = exports.LeaveMeeting = (0, _mobxReact.observer)(function (props) {
|
|
@@ -30,7 +30,6 @@ var LeaveMeeting = exports.LeaveMeeting = (0, _mobxReact.observer)(function (pro
|
|
|
30
30
|
hasEndRoomPermission = _useContext.hasEndRoomPermission,
|
|
31
31
|
isPstnUser = _useContext.isPstnUser,
|
|
32
32
|
loading = _useContext.loading,
|
|
33
|
-
end = _useContext.end,
|
|
34
33
|
leave = _useContext.leave,
|
|
35
34
|
_assignHost = _useContext.assignHost,
|
|
36
35
|
setCanAssign = _useContext.setCanAssign,
|
|
@@ -67,10 +66,6 @@ var LeaveMeeting = exports.LeaveMeeting = (0, _mobxReact.observer)(function (pro
|
|
|
67
66
|
}, []);
|
|
68
67
|
if (localUserRole === _fcrCore.FcrUserRole.HOST) {
|
|
69
68
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
70
|
-
onMouseEnter: function onMouseEnter() {
|
|
71
|
-
var _window$runtime;
|
|
72
|
-
(_window$runtime = window.runtime) === null || _window$runtime === void 0 || (_window$runtime = _window$runtime.browserWindow) === null || _window$runtime === void 0 || _window$runtime.setIgnoreMouseEvents(false);
|
|
73
|
-
},
|
|
74
69
|
children: canAssign ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_assignHost2.AssignHost, {
|
|
75
70
|
setPopoverOpened: function setPopoverOpened() {
|
|
76
71
|
return _setPopoverOpened === null || _setPopoverOpened === void 0 ? void 0 : _setPopoverOpened(false);
|
|
@@ -118,11 +113,12 @@ var LeaveMeeting = exports.LeaveMeeting = (0, _mobxReact.observer)(function (pro
|
|
|
118
113
|
}
|
|
119
114
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
120
115
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
121
|
-
className: "leave-container"
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}
|
|
116
|
+
className: "leave-container"
|
|
117
|
+
// TODO: 是否需要
|
|
118
|
+
// onMouseEnter={() => {
|
|
119
|
+
// window.runtime?.browserWindow?.setIgnoreMouseEvents(false);
|
|
120
|
+
// }}
|
|
121
|
+
,
|
|
126
122
|
onBlur: function onBlur() {
|
|
127
123
|
_setPopoverOpened === null || _setPopoverOpened === void 0 || _setPopoverOpened(false);
|
|
128
124
|
},
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { LeaveMeetingStoreBase } from '../store.base';
|
|
2
|
+
import { LeaveMeetingStoreArgs } from '../type';
|
|
3
|
+
import { FcrPlatform } from 'fcr-core/lib/type';
|
|
4
|
+
export default class LeaveMeetingStoreMain extends LeaveMeetingStoreBase {
|
|
5
|
+
private _sharedMemberDataSource;
|
|
6
|
+
private _abilityProvider;
|
|
7
|
+
private _memberDataSource;
|
|
8
|
+
constructor(args: LeaveMeetingStoreArgs);
|
|
9
|
+
get localUserId(): string;
|
|
10
|
+
get localUserRole(): import("fcr-core/lib/type").FcrUserRole;
|
|
11
|
+
get hostAvailibleRemoteUsers(): import("fcr-core/lib/type").FcrUserInfo[];
|
|
12
|
+
get isPstnUser(): boolean;
|
|
13
|
+
isHostSupportedByPlatform(platform: FcrPlatform): boolean;
|
|
14
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.symbol.js");
|
|
4
|
+
require("core-js/modules/es.symbol.description.js");
|
|
5
|
+
require("core-js/modules/es.symbol.to-primitive.js");
|
|
6
|
+
require("core-js/modules/es.error.cause.js");
|
|
7
|
+
require("core-js/modules/es.error.to-string.js");
|
|
8
|
+
require("core-js/modules/es.array.is-array.js");
|
|
9
|
+
require("core-js/modules/es.array.iterator.js");
|
|
10
|
+
require("core-js/modules/es.array.push.js");
|
|
11
|
+
require("core-js/modules/es.date.to-primitive.js");
|
|
12
|
+
require("core-js/modules/es.function.bind.js");
|
|
13
|
+
require("core-js/modules/es.function.name.js");
|
|
14
|
+
require("core-js/modules/es.map.js");
|
|
15
|
+
require("core-js/modules/es.number.constructor.js");
|
|
16
|
+
require("core-js/modules/es.object.create.js");
|
|
17
|
+
require("core-js/modules/es.object.define-property.js");
|
|
18
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
19
|
+
require("core-js/modules/es.reflect.construct.js");
|
|
20
|
+
require("core-js/modules/es.string.iterator.js");
|
|
21
|
+
require("core-js/modules/esnext.function.metadata.js");
|
|
22
|
+
require("core-js/modules/esnext.map.delete-all.js");
|
|
23
|
+
require("core-js/modules/esnext.map.emplace.js");
|
|
24
|
+
require("core-js/modules/esnext.map.every.js");
|
|
25
|
+
require("core-js/modules/esnext.map.filter.js");
|
|
26
|
+
require("core-js/modules/esnext.map.find.js");
|
|
27
|
+
require("core-js/modules/esnext.map.find-key.js");
|
|
28
|
+
require("core-js/modules/esnext.map.includes.js");
|
|
29
|
+
require("core-js/modules/esnext.map.key-of.js");
|
|
30
|
+
require("core-js/modules/esnext.map.map-keys.js");
|
|
31
|
+
require("core-js/modules/esnext.map.map-values.js");
|
|
32
|
+
require("core-js/modules/esnext.map.merge.js");
|
|
33
|
+
require("core-js/modules/esnext.map.reduce.js");
|
|
34
|
+
require("core-js/modules/esnext.map.some.js");
|
|
35
|
+
require("core-js/modules/esnext.map.update.js");
|
|
36
|
+
require("core-js/modules/esnext.symbol.metadata.js");
|
|
37
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
38
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
39
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
40
|
+
Object.defineProperty(exports, "__esModule", {
|
|
41
|
+
value: true
|
|
42
|
+
});
|
|
43
|
+
exports["default"] = void 0;
|
|
44
|
+
require("core-js/modules/es.array.filter.js");
|
|
45
|
+
require("core-js/modules/es.object.to-string.js");
|
|
46
|
+
require("core-js/modules/esnext.iterator.constructor.js");
|
|
47
|
+
require("core-js/modules/esnext.iterator.filter.js");
|
|
48
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
49
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
50
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
51
|
+
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
52
|
+
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
53
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
54
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
55
|
+
var _mobx = require("mobx");
|
|
56
|
+
var _objectManager = require("../../../../object-manager");
|
|
57
|
+
var _store = require("../store.base");
|
|
58
|
+
var _LeaveMeetingStoreMain;
|
|
59
|
+
var _initProto, _isHostSupportedByPlatformDecs, _ref;
|
|
60
|
+
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)); }
|
|
61
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
62
|
+
function _applyDecs(e, t, r, n, o, a) { function i(e, t, r) { return function (n, o) { return r && r(n), e[t].call(n, o); }; } function c(e, t) { for (var r = 0; r < e.length; r++) e[r].call(t); return t; } function s(e, t, r, n) { if ("function" != typeof e && (n || void 0 !== e)) throw new TypeError(t + " must " + (r || "be") + " a function" + (n ? "" : " or undefined")); return e; } function applyDec(e, t, r, n, o, a, c, u, l, f, p, d, h) { function m(e) { if (!h(e)) throw new TypeError("Attempted to access private element on non-instance"); } var y, v = t[0], g = t[3], b = !u; if (!b) { r || Array.isArray(v) || (v = [v]); var w = {}, S = [], A = 3 === o ? "get" : 4 === o || d ? "set" : "value"; f ? (p || d ? w = { get: _setFunctionName(function () { return g(this); }, n, "get"), set: function set(e) { t[4](this, e); } } : w[A] = g, p || _setFunctionName(w[A], n, 2 === o ? "" : A)) : p || (w = Object.getOwnPropertyDescriptor(e, n)); } for (var P = e, j = v.length - 1; j >= 0; j -= r ? 2 : 1) { var D = v[j], E = r ? v[j - 1] : void 0, I = {}, O = { kind: ["field", "accessor", "method", "getter", "setter", "class"][o], name: n, metadata: a, addInitializer: function (e, t) { if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); s(t, "An initializer", "be", !0), c.push(t); }.bind(null, I) }; try { if (b) (y = s(D.call(E, P, O), "class decorators", "return")) && (P = y);else { var k, F; O["static"] = l, O["private"] = f, f ? 2 === o ? k = function k(e) { return m(e), w.value; } : (o < 4 && (k = i(w, "get", m)), 3 !== o && (F = i(w, "set", m))) : (k = function k(e) { return e[n]; }, (o < 2 || 4 === o) && (F = function F(e, t) { e[n] = t; })); var N = O.access = { has: f ? h.bind() : function (e) { return n in e; } }; if (k && (N.get = k), F && (N.set = F), P = D.call(E, d ? { get: w.get, set: w.set } : w[A], O), d) { if ("object" == _typeof(P) && P) (y = s(P.get, "accessor.get")) && (w.get = y), (y = s(P.set, "accessor.set")) && (w.set = y), (y = s(P.init, "accessor.init")) && S.push(y);else if (void 0 !== P) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); } else s(P, (p ? "field" : "method") + " decorators", "return") && (p ? S.push(P) : w[A] = P); } } finally { I.v = !0; } } return (p || d) && u.push(function (e, t) { for (var r = S.length - 1; r >= 0; r--) t = S[r].call(e, t); return t; }), p || b || (f ? d ? u.push(i(w, "get"), i(w, "set")) : u.push(2 === o ? w[A] : i.call.bind(w[A])) : Object.defineProperty(e, n, w)), P; } function u(e, t) { return Object.defineProperty(e, Symbol.metadata || Symbol["for"]("Symbol.metadata"), { configurable: !0, enumerable: !0, value: t }); } if (arguments.length >= 6) var l = a[Symbol.metadata || Symbol["for"]("Symbol.metadata")]; var f = Object.create(null == l ? null : l), p = function (e, t, r, n) { var o, a, i = [], s = function s(t) { return _checkInRHS(t) === e; }, u = new Map(); function l(e) { e && i.push(c.bind(null, e)); } for (var f = 0; f < t.length; f++) { var p = t[f]; if (Array.isArray(p)) { var d = p[1], h = p[2], m = p.length > 3, y = 16 & d, v = !!(8 & d), g = 0 == (d &= 7), b = h + "/" + v; if (!g && !m) { var w = u.get(b); if (!0 === w || 3 === w && 4 !== d || 4 === w && 3 !== d) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h); u.set(b, !(d > 2) || d); } applyDec(v ? e : e.prototype, p, y, m ? "#" + h : _toPropertyKey(h), d, n, v ? a = a || [] : o = o || [], i, v, m, g, 1 === d, v && m ? s : r); } } return l(o), l(a), i; }(e, t, o, f); return r.length || u(e, f), { e: p, get c() { var t = []; return r.length && [u(applyDec(e, [r], n, e.name, 5, f, t), f), c.bind(null, t, e)]; } }; }
|
|
63
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
64
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
65
|
+
function _setFunctionName(e, t, n) { "symbol" == _typeof(t) && (t = (t = t.description) ? "[" + t + "]" : ""); try { Object.defineProperty(e, "name", { configurable: !0, value: n ? n + " " + t : t }); } catch (e) {} return e; }
|
|
66
|
+
function _checkInRHS(e) { if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (null !== e ? _typeof(e) : "null")); return e; }
|
|
67
|
+
_ref = (_isHostSupportedByPlatformDecs = [_mobx.action, _mobx.action.bound], "_sharedMemberDataSource");
|
|
68
|
+
var LeaveMeetingStoreMain = exports["default"] = /*#__PURE__*/function (_LeaveMeetingStoreBas) {
|
|
69
|
+
function LeaveMeetingStoreMain(args) {
|
|
70
|
+
var _this;
|
|
71
|
+
(0, _classCallCheck2["default"])(this, LeaveMeetingStoreMain);
|
|
72
|
+
_this = _callSuper(this, LeaveMeetingStoreMain, [args]);
|
|
73
|
+
(0, _defineProperty2["default"])(_this, _ref, void _initProto(_this));
|
|
74
|
+
_this._sharedMemberDataSource = args.objectManager.getObject(_objectManager.FcrUIObjectKeys.S_SHARED_MEMBER_DATA_SOURCE);
|
|
75
|
+
_this._abilityProvider = args.objectManager.getObject(_objectManager.FcrUIObjectKeys.P_ABILITY_PROVIDER);
|
|
76
|
+
var memberDataSource = args.objectManager.getObject(_objectManager.FcrUIObjectKeys.S_SHARED_MEMBER_DATA_SOURCE);
|
|
77
|
+
_this._memberDataSource = memberDataSource;
|
|
78
|
+
return _this;
|
|
79
|
+
}
|
|
80
|
+
(0, _inherits2["default"])(LeaveMeetingStoreMain, _LeaveMeetingStoreBas);
|
|
81
|
+
return (0, _createClass2["default"])(LeaveMeetingStoreMain, [{
|
|
82
|
+
key: "localUserId",
|
|
83
|
+
get: function get() {
|
|
84
|
+
return this._memberDataSource.localUser.userId;
|
|
85
|
+
}
|
|
86
|
+
}, {
|
|
87
|
+
key: "localUserRole",
|
|
88
|
+
get: function get() {
|
|
89
|
+
return this._memberDataSource.localUserRole;
|
|
90
|
+
}
|
|
91
|
+
}, {
|
|
92
|
+
key: "hostAvailibleRemoteUsers",
|
|
93
|
+
get: function get() {
|
|
94
|
+
var _this2 = this;
|
|
95
|
+
return this._sharedMemberDataSource.remoteMembersUserInfosList.filter(function (user) {
|
|
96
|
+
return user.platform && _this2.isHostSupportedByPlatform(user.platform);
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}, {
|
|
100
|
+
key: "isPstnUser",
|
|
101
|
+
get: function get() {
|
|
102
|
+
return this._sharedMemberDataSource.hasOwnPstnStream;
|
|
103
|
+
}
|
|
104
|
+
}, {
|
|
105
|
+
key: "isHostSupportedByPlatform",
|
|
106
|
+
value: function isHostSupportedByPlatform(platform) {
|
|
107
|
+
return this._abilityProvider.isHostSupportedByPlatform(platform);
|
|
108
|
+
}
|
|
109
|
+
}]);
|
|
110
|
+
}(_store.LeaveMeetingStoreBase);
|
|
111
|
+
_LeaveMeetingStoreMain = LeaveMeetingStoreMain;
|
|
112
|
+
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_LeaveMeetingStoreMain, [[_mobx.computed, 3, "hostAvailibleRemoteUsers"], [_mobx.computed, 3, "isPstnUser"], [_isHostSupportedByPlatformDecs, 18, "isHostSupportedByPlatform"]], [], 0, void 0, _store.LeaveMeetingStoreBase).e, 1);
|
|
113
|
+
_initProto = _applyDecs$e[0];
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { FcrUserInfo, FcrUserRole, FcrPlatform } from 'fcr-core/lib/type';
|
|
2
|
+
import { FcrUserControl } from 'fcr-core';
|
|
3
|
+
import { LeaveMeetingStoreArgs } from './type';
|
|
4
|
+
export declare abstract class LeaveMeetingStoreBase {
|
|
5
|
+
private _roomControl;
|
|
6
|
+
protected _userControl: FcrUserControl;
|
|
7
|
+
private _streamControl;
|
|
8
|
+
private _privilegeProvider;
|
|
9
|
+
private _dialogProvider;
|
|
10
|
+
private _roomProvider;
|
|
11
|
+
private _objectManager;
|
|
12
|
+
accessor keepConnect: boolean;
|
|
13
|
+
accessor canAssign: boolean;
|
|
14
|
+
accessor loading: boolean;
|
|
15
|
+
get isLocked(): boolean;
|
|
16
|
+
abstract get localUserId(): string;
|
|
17
|
+
abstract get localUserRole(): FcrUserRole;
|
|
18
|
+
get hasAssignHostBeforeLeavingPermission(): boolean;
|
|
19
|
+
get hasEndRoomPermission(): boolean;
|
|
20
|
+
abstract get hostAvailibleRemoteUsers(): FcrUserInfo[];
|
|
21
|
+
abstract get isPstnUser(): boolean;
|
|
22
|
+
get isAssignHostAvailable(): boolean;
|
|
23
|
+
constructor({ objectManager }: LeaveMeetingStoreArgs);
|
|
24
|
+
showEndConfirmDialog(): void;
|
|
25
|
+
abstract isHostSupportedByPlatform(platform: FcrPlatform): boolean;
|
|
26
|
+
assignHost(user: FcrUserInfo): void;
|
|
27
|
+
setIsSelfEndMeeting(value: boolean): void;
|
|
28
|
+
leave(): Promise<void>;
|
|
29
|
+
resetPreventClose(): void;
|
|
30
|
+
keepPhoneAudioConnection(): Promise<void>;
|
|
31
|
+
setCanAssign(value: boolean): void;
|
|
32
|
+
setKeepConnect(value: boolean): void;
|
|
33
|
+
end(): Promise<void>;
|
|
34
|
+
release(): void;
|
|
35
|
+
}
|
|
36
|
+
export declare const LeaveMeetingStoreContext: import("react").Context<LeaveMeetingStoreBase>;
|
|
@@ -36,16 +36,14 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", {
|
|
37
37
|
value: true
|
|
38
38
|
});
|
|
39
|
-
exports.LeaveMeetingStoreContext = exports.
|
|
39
|
+
exports.LeaveMeetingStoreContext = exports.LeaveMeetingStoreBase = void 0;
|
|
40
40
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
41
|
-
require("core-js/modules/es.array.filter.js");
|
|
42
41
|
require("core-js/modules/es.array.iterator.js");
|
|
43
42
|
require("core-js/modules/es.array.some.js");
|
|
44
43
|
require("core-js/modules/es.object.to-string.js");
|
|
45
44
|
require("core-js/modules/es.string.iterator.js");
|
|
46
45
|
require("core-js/modules/es.weak-map.js");
|
|
47
46
|
require("core-js/modules/esnext.iterator.constructor.js");
|
|
48
|
-
require("core-js/modules/esnext.iterator.filter.js");
|
|
49
47
|
require("core-js/modules/esnext.iterator.some.js");
|
|
50
48
|
require("core-js/modules/esnext.weak-map.delete-all.js");
|
|
51
49
|
require("core-js/modules/esnext.weak-map.emplace.js");
|
|
@@ -59,8 +57,10 @@ var _type = require("fcr-core/lib/type");
|
|
|
59
57
|
var _mobx = require("mobx");
|
|
60
58
|
var _react = require("react");
|
|
61
59
|
var _constant = require("../../../utilities/constant");
|
|
62
|
-
var
|
|
63
|
-
var
|
|
60
|
+
var _objectManager = require("../../../object-manager");
|
|
61
|
+
var _env = require("agora-foundation/lib/utilities/env");
|
|
62
|
+
var _LeaveMeetingStoreBase;
|
|
63
|
+
var _initProto, _init_keepConnect, _init_canAssign, _init_loading, _showEndConfirmDialogDecs, _assignHostDecs, _setIsSelfEndMeetingDecs, _leaveDecs, _keepPhoneAudioConnectionDecs, _setCanAssignDecs, _setKeepConnectDecs, _endDecs, _ref;
|
|
64
64
|
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
65
65
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
66
66
|
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
@@ -74,24 +74,25 @@ function _checkInRHS(e) { if (Object(e) !== e) throw TypeError("right-hand side
|
|
|
74
74
|
var _A = /*#__PURE__*/new WeakMap();
|
|
75
75
|
var _B = /*#__PURE__*/new WeakMap();
|
|
76
76
|
var _C = /*#__PURE__*/new WeakMap();
|
|
77
|
-
_ref = (_showEndConfirmDialogDecs = [_mobx.action, _mobx.action.bound],
|
|
78
|
-
var
|
|
79
|
-
function
|
|
80
|
-
|
|
77
|
+
_ref = (_showEndConfirmDialogDecs = [_mobx.action, _mobx.action.bound], _assignHostDecs = [_mobx.action, _mobx.action.bound], _setIsSelfEndMeetingDecs = [_mobx.action, _mobx.action.bound], _leaveDecs = [_mobx.action, _mobx.action.bound], _keepPhoneAudioConnectionDecs = [_mobx.action, _mobx.action.bound], _setCanAssignDecs = [_mobx.action, _mobx.action.bound], _setKeepConnectDecs = [_mobx.action, _mobx.action.bound], _endDecs = [_mobx.action, _mobx.action.bound], "_roomControl");
|
|
78
|
+
var LeaveMeetingStoreBase = exports.LeaveMeetingStoreBase = /*#__PURE__*/function () {
|
|
79
|
+
function LeaveMeetingStoreBase(_ref2) {
|
|
80
|
+
var objectManager = _ref2.objectManager;
|
|
81
|
+
(0, _classCallCheck2["default"])(this, LeaveMeetingStoreBase);
|
|
81
82
|
(0, _defineProperty2["default"])(this, _ref, void _initProto(this));
|
|
82
83
|
_classPrivateFieldInitSpec(this, _A, _init_keepConnect(this, false));
|
|
83
84
|
_classPrivateFieldInitSpec(this, _B, _init_canAssign(this, false));
|
|
84
85
|
_classPrivateFieldInitSpec(this, _C, _init_loading(this, false));
|
|
85
|
-
this.
|
|
86
|
-
this.
|
|
87
|
-
this.
|
|
88
|
-
this.
|
|
89
|
-
|
|
90
|
-
this.
|
|
86
|
+
this._objectManager = objectManager;
|
|
87
|
+
this._privilegeProvider = objectManager.getObject(_objectManager.FcrUIObjectKeys.P_PRIVILEGE_PROVIDER);
|
|
88
|
+
this._dialogProvider = objectManager.getObject(_objectManager.FcrUIObjectKeys.P_DIALOG_PROVIDER);
|
|
89
|
+
this._roomProvider = objectManager.getObject(_objectManager.FcrUIObjectKeys.P_ROOM_PROVIDER);
|
|
90
|
+
var roomControlProvider = objectManager.getObject(_objectManager.FcrUIObjectKeys.P_CURRENT_ROOM_CONTROL_PROVIDER);
|
|
91
|
+
this._roomControl = roomControlProvider.currentRoomControl;
|
|
91
92
|
this._userControl = this._roomControl.getUserControl();
|
|
92
93
|
this._streamControl = this._roomControl.getStreamControl();
|
|
93
94
|
}
|
|
94
|
-
return (0, _createClass2["default"])(
|
|
95
|
+
return (0, _createClass2["default"])(LeaveMeetingStoreBase, [{
|
|
95
96
|
key: "keepConnect",
|
|
96
97
|
get: function get() {
|
|
97
98
|
return _classPrivateFieldGet(_A, this);
|
|
@@ -120,16 +121,6 @@ var LeaveMeetingStore = exports.LeaveMeetingStore = /*#__PURE__*/function () {
|
|
|
120
121
|
get: function get() {
|
|
121
122
|
return this._privilegeProvider.isLockRoomEnabled();
|
|
122
123
|
}
|
|
123
|
-
}, {
|
|
124
|
-
key: "localUserId",
|
|
125
|
-
get: function get() {
|
|
126
|
-
return this._sharedMemberDataSource.localUser.userId;
|
|
127
|
-
}
|
|
128
|
-
}, {
|
|
129
|
-
key: "localUserRole",
|
|
130
|
-
get: function get() {
|
|
131
|
-
return this._sharedMemberDataSource.localUserRole;
|
|
132
|
-
}
|
|
133
124
|
}, {
|
|
134
125
|
key: "hasAssignHostBeforeLeavingPermission",
|
|
135
126
|
get: function get() {
|
|
@@ -140,36 +131,18 @@ var LeaveMeetingStore = exports.LeaveMeetingStore = /*#__PURE__*/function () {
|
|
|
140
131
|
get: function get() {
|
|
141
132
|
return this._privilegeProvider.hasEndRoomPermission();
|
|
142
133
|
}
|
|
143
|
-
}, {
|
|
144
|
-
key: "hostAvailibleRemoteUsers",
|
|
145
|
-
get: function get() {
|
|
146
|
-
var _this = this;
|
|
147
|
-
return this._sharedMemberDataSource.remoteMembersUserInfosList.filter(function (user) {
|
|
148
|
-
return user.platform && _this.isHostSupportedByPlatform(user.platform);
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
}, {
|
|
152
|
-
key: "isPstnUser",
|
|
153
|
-
get: function get() {
|
|
154
|
-
return this._sharedMemberDataSource.hasOwnPstnStream;
|
|
155
|
-
}
|
|
156
134
|
}, {
|
|
157
135
|
key: "isAssignHostAvailable",
|
|
158
136
|
get: function get() {
|
|
159
|
-
var
|
|
137
|
+
var _this = this;
|
|
160
138
|
return this.hasAssignHostBeforeLeavingPermission && this.hostAvailibleRemoteUsers.some(function (item) {
|
|
161
|
-
return
|
|
139
|
+
return _this.isHostSupportedByPlatform(item.platform);
|
|
162
140
|
});
|
|
163
141
|
}
|
|
164
142
|
}, {
|
|
165
143
|
key: "showEndConfirmDialog",
|
|
166
144
|
value: function showEndConfirmDialog() {
|
|
167
|
-
this.
|
|
168
|
-
}
|
|
169
|
-
}, {
|
|
170
|
-
key: "isHostSupportedByPlatform",
|
|
171
|
-
value: function isHostSupportedByPlatform(platform) {
|
|
172
|
-
return this._abilityProvider.isHostSupportedByPlatform(platform);
|
|
145
|
+
this._dialogProvider.openDialog(_constant.FcrUIDialogKey.LEAVE_MEETING);
|
|
173
146
|
}
|
|
174
147
|
}, {
|
|
175
148
|
key: "assignHost",
|
|
@@ -177,6 +150,11 @@ var LeaveMeetingStore = exports.LeaveMeetingStore = /*#__PURE__*/function () {
|
|
|
177
150
|
this._userControl.updateRemoteUserRole(user.userId, _type.FcrUserRole.HOST);
|
|
178
151
|
this.leave();
|
|
179
152
|
}
|
|
153
|
+
}, {
|
|
154
|
+
key: "setIsSelfEndMeeting",
|
|
155
|
+
value: function setIsSelfEndMeeting(value) {
|
|
156
|
+
this._roomProvider.setIsSelfEndMeeting(value);
|
|
157
|
+
}
|
|
180
158
|
}, {
|
|
181
159
|
key: "leave",
|
|
182
160
|
value: function () {
|
|
@@ -196,6 +174,7 @@ var LeaveMeetingStore = exports.LeaveMeetingStore = /*#__PURE__*/function () {
|
|
|
196
174
|
case 1:
|
|
197
175
|
this.loading = false;
|
|
198
176
|
this._roomProvider.exitRoom();
|
|
177
|
+
this.resetPreventClose();
|
|
199
178
|
case 2:
|
|
200
179
|
case "end":
|
|
201
180
|
return _context.stop();
|
|
@@ -206,7 +185,22 @@ var LeaveMeetingStore = exports.LeaveMeetingStore = /*#__PURE__*/function () {
|
|
|
206
185
|
return _leave.apply(this, arguments);
|
|
207
186
|
}
|
|
208
187
|
return leave;
|
|
209
|
-
}()
|
|
188
|
+
}() // TODO 等候室和主窗口的scene不需要有父store
|
|
189
|
+
// 并且这里的base命名会和现在base/Electron/Browser 冲突,会让人以为是解决平台的逻辑
|
|
190
|
+
}, {
|
|
191
|
+
key: "resetPreventClose",
|
|
192
|
+
value: function resetPreventClose() {
|
|
193
|
+
// 在Electron环境下,需要重置当前窗口的preventClose状态
|
|
194
|
+
if ((0, _env.isElectron)()) {
|
|
195
|
+
try {
|
|
196
|
+
var windowProvider = this._objectManager.getObject(_objectManager.FcrUIObjectKeys.P_WINDOW_PROVIDER);
|
|
197
|
+
var currentWindow = windowProvider.getCurrentWindow();
|
|
198
|
+
currentWindow.setPreventClose(false);
|
|
199
|
+
} catch (error) {
|
|
200
|
+
console.error('Failed to reset prevent close:', error);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
210
204
|
}, {
|
|
211
205
|
key: "keepPhoneAudioConnection",
|
|
212
206
|
value: function () {
|
|
@@ -245,6 +239,7 @@ var LeaveMeetingStore = exports.LeaveMeetingStore = /*#__PURE__*/function () {
|
|
|
245
239
|
case 0:
|
|
246
240
|
this._roomControl.close();
|
|
247
241
|
this._roomProvider.exitRoom();
|
|
242
|
+
this.resetPreventClose();
|
|
248
243
|
case 1:
|
|
249
244
|
case "end":
|
|
250
245
|
return _context3.stop();
|
|
@@ -261,8 +256,8 @@ var LeaveMeetingStore = exports.LeaveMeetingStore = /*#__PURE__*/function () {
|
|
|
261
256
|
value: function release() {}
|
|
262
257
|
}]);
|
|
263
258
|
}();
|
|
264
|
-
|
|
265
|
-
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(
|
|
259
|
+
_LeaveMeetingStoreBase = LeaveMeetingStoreBase;
|
|
260
|
+
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_LeaveMeetingStoreBase, [[_mobx.observable, 1, "keepConnect"], [_mobx.observable, 1, "canAssign"], [_mobx.observable, 1, "loading"], [_mobx.computed, 3, "isAssignHostAvailable"], [_showEndConfirmDialogDecs, 18, "showEndConfirmDialog"], [_assignHostDecs, 18, "assignHost"], [_setIsSelfEndMeetingDecs, 18, "setIsSelfEndMeeting"], [_leaveDecs, 18, "leave"], [_keepPhoneAudioConnectionDecs, 18, "keepPhoneAudioConnection"], [_setCanAssignDecs, 18, "setCanAssign"], [_setKeepConnectDecs, 18, "setKeepConnect"], [_endDecs, 18, "end"]], []).e, 4);
|
|
266
261
|
_init_keepConnect = _applyDecs$e[0];
|
|
267
262
|
_init_canAssign = _applyDecs$e[1];
|
|
268
263
|
_init_loading = _applyDecs$e[2];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LeaveMeetingStoreBase } from '../store.base';
|
|
2
|
+
import { LeaveMeetingStoreArgs } from '../type';
|
|
3
|
+
import { FcrPlatform, FcrUserRole } from 'fcr-core/lib/type';
|
|
4
|
+
export default class LeaveMeetingStoreWaiting extends LeaveMeetingStoreBase {
|
|
5
|
+
private _localUserId;
|
|
6
|
+
private _localUserRole;
|
|
7
|
+
constructor(args: LeaveMeetingStoreArgs);
|
|
8
|
+
get localUserId(): string;
|
|
9
|
+
get localUserRole(): FcrUserRole;
|
|
10
|
+
get hostAvailibleRemoteUsers(): never[];
|
|
11
|
+
get isPstnUser(): boolean;
|
|
12
|
+
isHostSupportedByPlatform(platform: FcrPlatform): boolean;
|
|
13
|
+
}
|