fcr-ui-scene 3.6.1 → 3.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/creator.d.ts +6 -0
- package/lib/creator.js +125 -24
- package/lib/electron/app.js +5 -4
- package/lib/electron/bootstrap-dev.js +3 -0
- package/lib/electron/bootstrap-sdk.js +4 -0
- package/lib/electron/injections.d.ts +5 -0
- package/lib/electron/injections.js +36 -8
- package/lib/electron/ipc/ipc.d.ts +1 -0
- package/lib/electron/ipc/ipc.js +4 -0
- package/lib/electron/main.js +16 -8
- package/lib/electron/plugins/screenshot.js +4 -2
- package/lib/electron/preload.js +7 -2
- package/lib/electron/window.js +4 -6
- package/lib/fragments/annotation/index.d.ts +11 -0
- package/lib/fragments/annotation/index.js +121 -0
- package/lib/fragments/annotation/libs.d.ts +55 -0
- package/lib/fragments/annotation/libs.js +93 -0
- package/lib/fragments/annotation/store.d.ts +30 -0
- package/lib/fragments/annotation/store.js +565 -0
- package/lib/fragments/annotation/view.d.ts +3 -0
- package/lib/fragments/annotation/view.js +31 -0
- package/lib/fragments/base.d.ts +10 -0
- package/lib/fragments/base.js +44 -0
- package/lib/modules/action-bar/components/screen-share/submenu.js +7 -6
- package/lib/modules/action-bar/index.css +11 -0
- package/lib/modules/action-bar/index.d.ts +2 -0
- package/lib/modules/action-bar/index.js +1 -0
- package/lib/modules/action-bar/store.d.ts +7 -9
- package/lib/modules/action-bar/store.js +49 -90
- package/lib/modules/annotation/board-cursor.css +76 -0
- package/lib/modules/annotation/components/control-bar/index.css +48 -0
- package/lib/modules/annotation/components/control-bar/index.d.ts +3 -0
- package/lib/modules/annotation/components/control-bar/index.js +141 -0
- package/lib/modules/annotation/components/toolbar/components/color-tool/color-panel/index.d.ts +3 -0
- package/lib/modules/annotation/components/toolbar/components/color-tool/color-panel/index.js +46 -0
- package/lib/modules/annotation/components/toolbar/components/color-tool/index.d.ts +1 -0
- package/lib/modules/annotation/components/toolbar/components/color-tool/index.js +52 -0
- package/lib/modules/annotation/components/toolbar/components/graphic-tool/graphic-panel/index.d.ts +3 -0
- package/lib/modules/annotation/components/toolbar/components/graphic-tool/graphic-panel/index.js +61 -0
- package/lib/modules/annotation/components/toolbar/components/graphic-tool/graphic-panel/libs.d.ts +12 -0
- package/lib/modules/annotation/components/toolbar/components/graphic-tool/graphic-panel/libs.js +65 -0
- package/lib/modules/annotation/components/toolbar/components/graphic-tool/index.d.ts +1 -0
- package/lib/modules/annotation/components/toolbar/components/graphic-tool/index.js +68 -0
- package/lib/modules/annotation/components/toolbar/components/item/item.d.ts +18 -0
- package/lib/modules/annotation/components/toolbar/components/item/item.js +116 -0
- package/lib/modules/annotation/components/toolbar/components/item/style.css +43 -0
- package/lib/modules/annotation/components/toolbar/components/panel/index.d.ts +5 -0
- package/lib/modules/annotation/components/toolbar/components/panel/index.js +22 -0
- package/lib/modules/annotation/components/toolbar/components/panel/style.css +24 -0
- package/lib/modules/annotation/components/toolbar/components/pen-tool/index.d.ts +1 -0
- package/lib/modules/annotation/components/toolbar/components/pen-tool/index.js +58 -0
- package/lib/modules/annotation/components/toolbar/components/pen-tool/pen-panel/index.d.ts +3 -0
- package/lib/modules/annotation/components/toolbar/components/pen-tool/pen-panel/index.js +34 -0
- package/lib/modules/annotation/components/toolbar/components/tips/index.d.ts +2 -0
- package/lib/modules/annotation/components/toolbar/components/tips/index.js +25 -0
- package/lib/modules/annotation/components/toolbar/components/tips/style.css +19 -0
- package/lib/modules/annotation/components/toolbar/index.d.ts +0 -0
- package/lib/modules/annotation/components/toolbar/index.js +1 -0
- package/lib/modules/annotation/components/toolbar/store.d.ts +40 -0
- package/lib/modules/annotation/components/toolbar/store.js +279 -0
- package/lib/modules/annotation/components/toolbar/style.css +55 -0
- package/lib/modules/annotation/components/toolbar/view.d.ts +2 -0
- package/lib/modules/annotation/components/toolbar/view.js +120 -0
- package/lib/modules/annotation/index.d.ts +38 -0
- package/lib/modules/annotation/index.js +169 -0
- package/lib/modules/annotation/store.d.ts +93 -0
- package/lib/modules/annotation/store.js +673 -0
- package/lib/modules/annotation/style.css +26 -0
- package/lib/modules/annotation/view.d.ts +3 -0
- package/lib/modules/annotation/view.js +49 -0
- package/lib/modules/chat/view.js +112 -100
- package/lib/modules/components/annotation-menu/index.d.ts +7 -0
- package/lib/modules/components/annotation-menu/index.js +119 -0
- package/lib/modules/components/leave-meeting/components/assign-host.js +26 -23
- package/lib/modules/components/member-window/components/member-actions/components/audio-control.d.ts +0 -1
- package/lib/modules/components/member-window/components/member-actions/components/audio-control.js +10 -4
- package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.d.ts +4 -2
- package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.js +10 -6
- package/lib/modules/components/member-window/components/member-actions/components/icon-status.d.ts +0 -2
- package/lib/modules/components/member-window/components/member-actions/components/icon-status.js +3 -4
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.d.ts +0 -3
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.js +6 -32
- package/lib/modules/components/member-window/components/member-actions/components/share-status.js +11 -3
- package/lib/modules/components/member-window/components/member-actions/components/user-info.d.ts +0 -1
- package/lib/modules/components/member-window/components/member-actions/components/user-info.js +7 -10
- package/lib/modules/components/member-window/components/member-actions/components/user-tag.d.ts +0 -1
- package/lib/modules/components/member-window/components/member-actions/components/user-tag.js +0 -2
- package/lib/modules/components/member-window/components/member-actions/index.js +1 -32
- package/lib/modules/components/member-window/components/member-actions/store.d.ts +38 -1
- package/lib/modules/components/member-window/components/member-actions/store.js +130 -23
- package/lib/modules/components/member-window/components/video-player/components/remote-video-player.d.ts +2 -1
- package/lib/modules/components/member-window/components/video-player/components/remote-video-player.js +6 -1
- package/lib/modules/components/member-window/components/video-player/index.d.ts +1 -0
- package/lib/modules/components/member-window/index.css +37 -0
- package/lib/modules/components/member-window/index.d.ts +1 -1
- package/lib/modules/components/member-window/index.js +8 -5
- package/lib/modules/components/member-window/types.d.ts +2 -0
- package/lib/modules/components/security-menu/index.js +7 -6
- package/lib/modules/control-bar/components/annotation-button/index.d.ts +1 -0
- package/lib/modules/control-bar/components/annotation-button/index.js +59 -0
- package/lib/modules/control-bar/index.d.ts +6 -6
- package/lib/modules/control-bar/index.js +5 -34
- package/lib/modules/control-bar/store.d.ts +27 -13
- package/lib/modules/control-bar/store.js +121 -126
- package/lib/modules/control-bar/view.js +50 -4
- package/lib/modules/dialog/components/annotation-tool/index.d.ts +4 -0
- package/lib/modules/dialog/components/annotation-tool/index.js +53 -0
- package/lib/modules/dialog/components/chat/index.js +1 -1
- package/lib/modules/dialog/components/control-bar/index.d.ts +0 -2
- package/lib/modules/dialog/components/control-bar/index.js +1 -3
- package/lib/modules/dialog/components/host-area-container/index.d.ts +12 -0
- package/lib/modules/dialog/components/host-area-container/index.js +214 -0
- package/lib/modules/dialog/components/participant/index.js +1 -1
- package/lib/modules/dialog/components/system-preference/index.js +1 -1
- package/lib/modules/dialog/components/video-window/index.js +1 -0
- package/lib/modules/dialog/hooks/use-popover-watcher.d.ts +14 -0
- package/lib/modules/dialog/hooks/use-popover-watcher.js +112 -0
- package/lib/modules/dialog/hooks/useElectron.d.ts +1 -0
- package/lib/modules/dialog/hooks/useElectron.js +13 -3
- package/lib/modules/dialog/index.d.ts +2 -3
- package/lib/modules/dialog/index.js +3 -26
- package/lib/modules/dialog/store.d.ts +14 -9
- package/lib/modules/dialog/store.js +56 -50
- package/lib/modules/event-confirm/components/window/index.d.ts +7 -0
- package/lib/modules/event-confirm/components/window/index.js +188 -0
- package/lib/modules/event-confirm/index.d.ts +4 -4
- package/lib/modules/event-confirm/index.js +6 -4
- package/lib/modules/event-confirm/store.d.ts +4 -5
- package/lib/modules/event-confirm/store.js +35 -26
- package/lib/modules/event-confirm/view.js +23 -171
- package/lib/modules/event-sound/index.js +1 -1
- package/lib/modules/layout/components/CommonVideoRenderer.js +33 -16
- package/lib/modules/layout/index.d.ts +4 -0
- package/lib/modules/layout/index.js +2 -0
- package/lib/modules/layout/store.d.ts +14 -2
- package/lib/modules/layout/store.js +77 -45
- package/lib/modules/layout/type.d.ts +7 -0
- package/lib/modules/participant/index.d.ts +2 -0
- package/lib/modules/participant/index.js +2 -1
- package/lib/modules/participant/store.d.ts +5 -2
- package/lib/modules/participant/store.js +73 -25
- package/lib/modules/setting/audio-settings/audio-settings.js +3 -14
- package/lib/modules/setting/index.d.ts +2 -0
- package/lib/modules/setting/index.js +3 -3
- package/lib/modules/setting/store.d.ts +8 -10
- package/lib/modules/setting/store.js +22 -20
- package/lib/modules/share-screen/components/selection/index.js +18 -42
- package/lib/modules/share-screen/index.d.ts +6 -2
- package/lib/modules/share-screen/index.js +4 -2
- package/lib/modules/share-screen/store.d.ts +41 -46
- package/lib/modules/share-screen/store.js +297 -718
- package/lib/modules/share-screen/view.js +2 -2
- package/lib/modules/state-bar/assets/fcr_grid_big.svg +1 -1
- package/lib/modules/state-bar/assets/fcr_listontop_big.svg +1 -1
- package/lib/modules/state-bar/index.css +8 -6
- package/lib/modules/state-bar/index.d.ts +4 -0
- package/lib/modules/state-bar/index.js +3 -1
- package/lib/modules/state-bar/layout-config.d.ts +1 -0
- package/lib/modules/state-bar/layout-config.js +15 -5
- package/lib/modules/state-bar/store.d.ts +9 -1
- package/lib/modules/state-bar/store.js +17 -2
- package/lib/modules/state-bar/view.js +9 -4
- package/lib/modules/video-window/components/members/index.js +2 -1
- package/lib/modules/waiting-room-layout/store.js +1 -1
- package/lib/modules/whiteboard/components/control-bar/store.d.ts +5 -1
- package/lib/modules/whiteboard/components/control-bar/store.js +10 -1
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/picker.js +16 -5
- package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.js +67 -12
- package/lib/modules/whiteboard/components/toolbar/components/expansion/index.js +22 -2
- package/lib/modules/whiteboard/components/toolbar/components/history.js +46 -14
- package/lib/modules/whiteboard/components/toolbar/components/item/index.js +3 -2
- package/lib/modules/whiteboard/components/toolbar/components/move-handle.js +1 -1
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +58 -16
- package/lib/modules/whiteboard/components/toolbar/components/screen-capture-picker.js +15 -4
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +45 -2
- package/lib/modules/whiteboard/components/toolbar/hooks/index.d.ts +14 -0
- package/lib/modules/whiteboard/components/toolbar/hooks/index.js +235 -7
- package/lib/modules/whiteboard/components/toolbar/index.d.ts +1 -1
- package/lib/modules/whiteboard/components/toolbar/index.js +1 -1
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +13 -2
- package/lib/modules/whiteboard/components/toolbar/store.js +74 -24
- package/lib/modules/whiteboard/components/toolbar/{ style.css → style.css} +1 -0
- package/lib/modules/whiteboard/index.d.ts +2 -0
- package/lib/modules/whiteboard/index.js +22 -21
- package/lib/modules/whiteboard/style.css +0 -4
- package/lib/modules/whiteboard/view.js +8 -2
- package/lib/plugins/browser-runtime-plugin.js +10 -1
- package/lib/providers/annotation-provider.d.ts +128 -0
- package/lib/providers/annotation-provider.js +421 -0
- package/lib/providers/device-provider.d.ts +3 -3
- package/lib/providers/device-provider.js +8 -6
- package/lib/providers/event-provider.d.ts +3 -3
- package/lib/providers/interpreter-provider.d.ts +1 -0
- package/lib/providers/interpreter-provider.js +182 -154
- package/lib/providers/privilege-provider.d.ts +35 -6
- package/lib/providers/privilege-provider.js +105 -49
- package/lib/providers/renderer-provider.js +3 -7
- package/lib/providers/room-provider.d.ts +13 -1
- package/lib/providers/room-provider.js +21 -7
- package/lib/providers/screen-share-provider.d.ts +131 -34
- package/lib/providers/screen-share-provider.js +554 -173
- package/lib/providers/sharing-provider.d.ts +37 -0
- package/lib/{shared-data-source/screen-share-data-source.js → providers/sharing-provider.js} +102 -39
- package/lib/providers/user-setting-storage-provider.d.ts +20 -0
- package/lib/providers/user-setting-storage-provider.js +74 -0
- package/lib/runtime.d.ts +6 -1
- package/lib/scenes/main-scene.d.ts +7 -2
- package/lib/scenes/main-scene.js +55 -27
- package/lib/scenes/waiting-scene.d.ts +6 -0
- package/lib/scenes/waiting-scene.js +15 -5
- package/lib/shared-data-source/config.d.ts +1 -5
- package/lib/shared-data-source/config.js +11 -81
- package/lib/shared-data-source/member-data.d.ts +21 -5
- package/lib/shared-data-source/member-data.js +69 -17
- package/lib/shared-data-source/screen-share-data.d.ts +274 -0
- package/lib/shared-data-source/screen-share-data.js +390 -0
- package/lib/shared-data-source/security-data.d.ts +4 -1
- package/lib/shared-data-source/security-data.js +5 -2
- package/lib/shared-data-source/setting.d.ts +13 -13
- package/lib/shared-data-source/setting.js +16 -10
- package/lib/shared-data-source/video-window.d.ts +2 -1
- package/lib/shared-data-source/video-window.js +56 -36
- package/lib/translations/enUS.d.ts +8 -0
- package/lib/translations/enUS.js +9 -1
- package/lib/translations/zhCN.d.ts +8 -0
- package/lib/translations/zhCN.js +11 -3
- package/lib/type.d.ts +55 -1
- package/lib/ui-manager.d.ts +3 -2
- package/lib/ui-manager.js +6 -4
- package/lib/ui-scene.js +70 -50
- package/lib/utilities/constant.d.ts +10 -2
- package/lib/utilities/constant.js +8 -0
- package/lib/utilities/logger.d.ts +4 -0
- package/lib/utilities/logger.js +8 -1
- package/lib/utilities/renderer-event.d.ts +3 -0
- package/lib/utilities/renderer-event.js +14 -1
- package/lib/utilities/screen.js +2 -1
- package/lib/utilities/setting-config-storage.d.ts +5 -6
- package/lib/utilities/setting-config-storage.js +33 -39
- package/lib/utilities/tools.d.ts +19 -1
- package/lib/utilities/tools.js +51 -4
- package/package.json +9 -7
- package/public/assets/cursors/fcr_whiteboard_input.ico +0 -0
- package/public/assets/cursors/fcr_whiteboard_pen.ico +0 -0
- package/public/assets/cursors/fcr_whiteboard_shape_-straightline.ico +0 -0
- package/public/assets/cursors/fcr_whiteboard_shape_arrow.ico +0 -0
- package/public/assets/cursors/fcr_whiteboard_shape_circle.ico +0 -0
- package/public/assets/cursors/fcr_whiteboard_shape_rectangle.ico +0 -0
- package/public/assets/cursors/fcr_whiteboard_shape_triangle.ico +0 -0
- package/public/assets/fcr_chat_reddot.svg +3 -3
- package/public/assets/fcr_grid_big.svg +1 -1
- package/public/assets/fcr_leave2.svg +14 -14
- package/public/assets/fcr_listontop_big.svg +1 -1
- package/public/assets/step-gradient.svg +1 -1
- package/public/fragment.html +10 -0
- package/public/index.html +3 -1
- package/lib/shared-data-source/screen-share-data-source.d.ts +0 -37
|
@@ -110,7 +110,7 @@ var _view = require("./view");
|
|
|
110
110
|
var _logger = require("../../utilities/logger");
|
|
111
111
|
var _env = require("agora-foundation/lib/utilities/env");
|
|
112
112
|
var _LayoutStore;
|
|
113
|
-
var _initProto, _participantDecs, _init_participant, _chatDecs, _init_chat, _chatActionDecs, _init_chatAction, _stateBarDecs, _init_stateBar, _actionBarDecs, _init_actionBar, _layersDecs, _init_layers, _whiteboardDecs, _init_whiteboard, _init_collapsed, _init_aside, _init_barHovering, _init_barLocked, _init_barHidden, _init_asideWidth, _init_userVolumeMap, _init_chatRoomState, _init_whiteboardActive, _init_ownerUser, _addPinMessageDecs, _cancelPinMessageDecs, _setWhiteboardActiveDecs, _setAsideWidthDecs, _updateSlotsDecs, _toggleLayoutDecs, _toggleCollapsedDecs, _toggleAsideDecs, _asideWidthChangedDecs, _toggleLayoutBarLockDecs, _toggleLayoutBarHiddenDecs, _resetLockTimerDecs, _setHoveringHandlerDecs, _setHoveringLeaveHandlerDecs, _handleLiveLayoutChangeDecs, _onUserInfoUpdatedDecs, _handleLayoutUpdatedDecs, _init__handleLayoutUpdated, _handleFoldListChangedDecs, _handleMainListLengthChangedDecs, _handleMainListChangedDecs, _setBarHoveringDecs, _handleConnectionUpdatedDecs, _onAudioVolumeUpdatedDecs, _ref;
|
|
113
|
+
var _initProto, _participantDecs, _init_participant, _chatDecs, _init_chat, _chatActionDecs, _init_chatAction, _stateBarDecs, _init_stateBar, _actionBarDecs, _init_actionBar, _layersDecs, _init_layers, _whiteboardDecs, _init_whiteboard, _annotationDecs, _init_annotation, _annotationControlDecs, _init_annotationControl, _init_collapsed, _init_aside, _init_barHovering, _init_barLocked, _init_barHidden, _init_asideWidth, _init_userVolumeMap, _init_chatRoomState, _init_whiteboardActive, _init_ownerUser, _addPinMessageDecs, _cancelPinMessageDecs, _setWhiteboardActiveDecs, _setAsideWidthDecs, _updateSlotsDecs, _toggleLayoutDecs, _toggleCollapsedDecs, _toggleAsideDecs, _asideWidthChangedDecs, _toggleLayoutBarLockDecs, _toggleLayoutBarHiddenDecs, _resetLockTimerDecs, _setHoveringHandlerDecs, _setHoveringLeaveHandlerDecs, _handleLiveLayoutChangeDecs, _onUserInfoUpdatedDecs, _handleLayoutUpdatedDecs, _init__handleLayoutUpdated, _handleFoldListChangedDecs, _handleMainListLengthChangedDecs, _handleMainListChangedDecs, _setBarHoveringDecs, _handleConnectionUpdatedDecs, _onAudioVolumeUpdatedDecs, _ref;
|
|
114
114
|
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
115
115
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
116
116
|
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
@@ -138,7 +138,9 @@ var _N = /*#__PURE__*/new WeakMap();
|
|
|
138
138
|
var _O = /*#__PURE__*/new WeakMap();
|
|
139
139
|
var _P = /*#__PURE__*/new WeakMap();
|
|
140
140
|
var _Q = /*#__PURE__*/new WeakMap();
|
|
141
|
-
|
|
141
|
+
var _R = /*#__PURE__*/new WeakMap();
|
|
142
|
+
var _S = /*#__PURE__*/new WeakMap();
|
|
143
|
+
_ref = (_participantDecs = [_mobx.observable, _mobx.observable.ref], _chatDecs = [_mobx.observable, _mobx.observable.ref], _chatActionDecs = [_mobx.observable, _mobx.observable.ref], _stateBarDecs = [_mobx.observable, _mobx.observable.ref], _actionBarDecs = [_mobx.observable, _mobx.observable.ref], _layersDecs = [_mobx.observable, _mobx.observable.ref], _whiteboardDecs = [_mobx.observable, _mobx.observable.ref], _annotationDecs = [_mobx.observable, _mobx.observable.ref], _annotationControlDecs = [_mobx.observable, _mobx.observable.ref], _addPinMessageDecs = [_mobx.action, _mobx.action.bound], _cancelPinMessageDecs = [_mobx.action, _mobx.action.bound], _setWhiteboardActiveDecs = [_mobx.action, _mobx.action.bound], _setAsideWidthDecs = [_mobx.action, _mobx.action.bound], _updateSlotsDecs = [_mobx.action, _mobx.action.bound], _toggleLayoutDecs = [_mobx.action, _mobx.action.bound], _toggleCollapsedDecs = [_mobx.action, _mobx.action.bound], _toggleAsideDecs = [_mobx.action, _mobx.action.bound], _asideWidthChangedDecs = [_mobx.action, _mobx.action.bound], _toggleLayoutBarLockDecs = [_mobx.action, _mobx.action.bound], _toggleLayoutBarHiddenDecs = [_mobx.action, _mobx.action.bound], _resetLockTimerDecs = [_mobx.action, _mobx.action.bound], _setHoveringHandlerDecs = [_mobx.action, _mobx.action.bound], _setHoveringLeaveHandlerDecs = [_mobx.action, _mobx.action.bound], _handleLiveLayoutChangeDecs = [_mobx.action, _mobx.action.bound], _onUserInfoUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleLayoutUpdatedDecs = [_mobx.action, _mobx.action.bound], _handleFoldListChangedDecs = [_mobx.action, _mobx.action.bound], _handleMainListLengthChangedDecs = [_mobx.action, _mobx.action.bound], _handleMainListChangedDecs = [_mobx.action, _mobx.action.bound], _setBarHoveringDecs = [_mobx.action, _mobx.action.bound], _handleConnectionUpdatedDecs = [_mobx.action, _mobx.action.bound], _onAudioVolumeUpdatedDecs = [_mobx.action, _mobx.action.bound], "logger");
|
|
142
144
|
var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
143
145
|
function LayoutStore(params) {
|
|
144
146
|
var _this = this;
|
|
@@ -159,17 +161,19 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
159
161
|
_classPrivateFieldInitSpec(this, _E, _init_actionBar(this, null));
|
|
160
162
|
_classPrivateFieldInitSpec(this, _F, _init_layers(this, null));
|
|
161
163
|
_classPrivateFieldInitSpec(this, _G, _init_whiteboard(this, null));
|
|
164
|
+
_classPrivateFieldInitSpec(this, _H, _init_annotation(this, null));
|
|
165
|
+
_classPrivateFieldInitSpec(this, _I, _init_annotationControl(this, null));
|
|
162
166
|
// State
|
|
163
|
-
_classPrivateFieldInitSpec(this,
|
|
164
|
-
_classPrivateFieldInitSpec(this,
|
|
165
|
-
_classPrivateFieldInitSpec(this,
|
|
166
|
-
_classPrivateFieldInitSpec(this,
|
|
167
|
-
_classPrivateFieldInitSpec(this,
|
|
168
|
-
_classPrivateFieldInitSpec(this,
|
|
169
|
-
_classPrivateFieldInitSpec(this,
|
|
170
|
-
_classPrivateFieldInitSpec(this,
|
|
171
|
-
_classPrivateFieldInitSpec(this,
|
|
172
|
-
_classPrivateFieldInitSpec(this,
|
|
167
|
+
_classPrivateFieldInitSpec(this, _J, _init_collapsed(this, true));
|
|
168
|
+
_classPrivateFieldInitSpec(this, _K, _init_aside(this, false));
|
|
169
|
+
_classPrivateFieldInitSpec(this, _L, _init_barHovering(this, true));
|
|
170
|
+
_classPrivateFieldInitSpec(this, _M, _init_barLocked(this, true));
|
|
171
|
+
_classPrivateFieldInitSpec(this, _N, _init_barHidden(this, false));
|
|
172
|
+
_classPrivateFieldInitSpec(this, _O, _init_asideWidth(this, _view.MinAsideWidth));
|
|
173
|
+
_classPrivateFieldInitSpec(this, _P, _init_userVolumeMap(this, new Map()));
|
|
174
|
+
_classPrivateFieldInitSpec(this, _Q, _init_chatRoomState(this, _type4.FcrChatRoomConnectionState.Disconnected));
|
|
175
|
+
_classPrivateFieldInitSpec(this, _R, _init_whiteboardActive(this, false));
|
|
176
|
+
_classPrivateFieldInitSpec(this, _S, _init_ownerUser(this, undefined));
|
|
173
177
|
(0, _defineProperty2["default"])(this, "getAllowedOperations", (0, _mobxUtils.computedFn)(function (targetRole, isSelf) {
|
|
174
178
|
return _this._privilegeProvider.getAllowedOperations(targetRole, isSelf);
|
|
175
179
|
}));
|
|
@@ -191,7 +195,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
191
195
|
this._userControl = roomControl.getUserControl();
|
|
192
196
|
this._streamControl = roomControl.getStreamControl();
|
|
193
197
|
this._chatRoomControl = roomControl.getChatRoomControl();
|
|
194
|
-
this._whiteBoardControl = roomControl.getBoardControl();
|
|
198
|
+
this._whiteBoardControl = roomControl.getSharingControl().getBoardControl();
|
|
195
199
|
this._roomControl = roomControl;
|
|
196
200
|
this._sharedLayoutDataSource = params.sharedLayoutDataSource;
|
|
197
201
|
this._eventProvider = params.eventProvider;
|
|
@@ -206,6 +210,8 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
206
210
|
this._screenShareProvider = params.screenShareProvider;
|
|
207
211
|
this._pinDataSource = params.sharedPinDataSource;
|
|
208
212
|
this.chatRoomState = this._chatRoomControl.getConnectionState();
|
|
213
|
+
this._annotationProvider = params.annotationProvider;
|
|
214
|
+
this._sharedScreenShareDataSource = params.sharedScreenShareDataSource;
|
|
209
215
|
this._interpreterProvider = params.interpreterProvider;
|
|
210
216
|
this._addListeners();
|
|
211
217
|
//@ts-ignore
|
|
@@ -215,7 +221,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
215
221
|
this._handleMainListChanged();
|
|
216
222
|
this._handleMainListLengthChanged();
|
|
217
223
|
this._handleLayoutUpdated(this._videoWindowDataSource.layoutType);
|
|
218
|
-
this.setWhiteboardActive(this._whiteBoardControl.
|
|
224
|
+
this.setWhiteboardActive(this._whiteBoardControl.getActivity());
|
|
219
225
|
}
|
|
220
226
|
return (0, _createClass2["default"])(LayoutStore, [{
|
|
221
227
|
key: "participant",
|
|
@@ -274,7 +280,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
274
280
|
_classPrivateFieldSet(_G, this, v);
|
|
275
281
|
}
|
|
276
282
|
}, {
|
|
277
|
-
key: "
|
|
283
|
+
key: "annotation",
|
|
278
284
|
get: function get() {
|
|
279
285
|
return _classPrivateFieldGet(_H, this);
|
|
280
286
|
},
|
|
@@ -282,7 +288,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
282
288
|
_classPrivateFieldSet(_H, this, v);
|
|
283
289
|
}
|
|
284
290
|
}, {
|
|
285
|
-
key: "
|
|
291
|
+
key: "annotationControl",
|
|
286
292
|
get: function get() {
|
|
287
293
|
return _classPrivateFieldGet(_I, this);
|
|
288
294
|
},
|
|
@@ -290,7 +296,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
290
296
|
_classPrivateFieldSet(_I, this, v);
|
|
291
297
|
}
|
|
292
298
|
}, {
|
|
293
|
-
key: "
|
|
299
|
+
key: "collapsed",
|
|
294
300
|
get: function get() {
|
|
295
301
|
return _classPrivateFieldGet(_J, this);
|
|
296
302
|
},
|
|
@@ -298,7 +304,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
298
304
|
_classPrivateFieldSet(_J, this, v);
|
|
299
305
|
}
|
|
300
306
|
}, {
|
|
301
|
-
key: "
|
|
307
|
+
key: "aside",
|
|
302
308
|
get: function get() {
|
|
303
309
|
return _classPrivateFieldGet(_K, this);
|
|
304
310
|
},
|
|
@@ -306,7 +312,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
306
312
|
_classPrivateFieldSet(_K, this, v);
|
|
307
313
|
}
|
|
308
314
|
}, {
|
|
309
|
-
key: "
|
|
315
|
+
key: "barHovering",
|
|
310
316
|
get: function get() {
|
|
311
317
|
return _classPrivateFieldGet(_L, this);
|
|
312
318
|
},
|
|
@@ -314,7 +320,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
314
320
|
_classPrivateFieldSet(_L, this, v);
|
|
315
321
|
}
|
|
316
322
|
}, {
|
|
317
|
-
key: "
|
|
323
|
+
key: "barLocked",
|
|
318
324
|
get: function get() {
|
|
319
325
|
return _classPrivateFieldGet(_M, this);
|
|
320
326
|
},
|
|
@@ -322,7 +328,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
322
328
|
_classPrivateFieldSet(_M, this, v);
|
|
323
329
|
}
|
|
324
330
|
}, {
|
|
325
|
-
key: "
|
|
331
|
+
key: "barHidden",
|
|
326
332
|
get: function get() {
|
|
327
333
|
return _classPrivateFieldGet(_N, this);
|
|
328
334
|
},
|
|
@@ -330,7 +336,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
330
336
|
_classPrivateFieldSet(_N, this, v);
|
|
331
337
|
}
|
|
332
338
|
}, {
|
|
333
|
-
key: "
|
|
339
|
+
key: "asideWidth",
|
|
334
340
|
get: function get() {
|
|
335
341
|
return _classPrivateFieldGet(_O, this);
|
|
336
342
|
},
|
|
@@ -338,7 +344,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
338
344
|
_classPrivateFieldSet(_O, this, v);
|
|
339
345
|
}
|
|
340
346
|
}, {
|
|
341
|
-
key: "
|
|
347
|
+
key: "userVolumeMap",
|
|
342
348
|
get: function get() {
|
|
343
349
|
return _classPrivateFieldGet(_P, this);
|
|
344
350
|
},
|
|
@@ -346,13 +352,29 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
346
352
|
_classPrivateFieldSet(_P, this, v);
|
|
347
353
|
}
|
|
348
354
|
}, {
|
|
349
|
-
key: "
|
|
355
|
+
key: "chatRoomState",
|
|
350
356
|
get: function get() {
|
|
351
357
|
return _classPrivateFieldGet(_Q, this);
|
|
352
358
|
},
|
|
353
359
|
set: function set(v) {
|
|
354
360
|
_classPrivateFieldSet(_Q, this, v);
|
|
355
361
|
}
|
|
362
|
+
}, {
|
|
363
|
+
key: "whiteboardActive",
|
|
364
|
+
get: function get() {
|
|
365
|
+
return _classPrivateFieldGet(_R, this);
|
|
366
|
+
},
|
|
367
|
+
set: function set(v) {
|
|
368
|
+
_classPrivateFieldSet(_R, this, v);
|
|
369
|
+
}
|
|
370
|
+
}, {
|
|
371
|
+
key: "ownerUser",
|
|
372
|
+
get: function get() {
|
|
373
|
+
return _classPrivateFieldGet(_S, this);
|
|
374
|
+
},
|
|
375
|
+
set: function set(v) {
|
|
376
|
+
_classPrivateFieldSet(_S, this, v);
|
|
377
|
+
}
|
|
356
378
|
}, {
|
|
357
379
|
key: "streamControl",
|
|
358
380
|
get: function get() {
|
|
@@ -403,6 +425,16 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
403
425
|
get: function get() {
|
|
404
426
|
return this._videoWindowDataSource.manualLayout;
|
|
405
427
|
}
|
|
428
|
+
}, {
|
|
429
|
+
key: "scalcValue",
|
|
430
|
+
get: function get() {
|
|
431
|
+
return this._annotationProvider.scalcValue;
|
|
432
|
+
}
|
|
433
|
+
}, {
|
|
434
|
+
key: "annotationHasStart",
|
|
435
|
+
get: function get() {
|
|
436
|
+
return this._annotationProvider.annotationHasStart;
|
|
437
|
+
}
|
|
406
438
|
}, {
|
|
407
439
|
key: "sourceList",
|
|
408
440
|
get: function get() {
|
|
@@ -578,8 +610,8 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
578
610
|
}, {
|
|
579
611
|
key: "isVideoSuspended",
|
|
580
612
|
get: function get() {
|
|
581
|
-
var isSharingScreen = this.
|
|
582
|
-
var shareScreenOwner = this.
|
|
613
|
+
var isSharingScreen = !!this._sharedScreenShareDataSource.isSharingScreen;
|
|
614
|
+
var shareScreenOwner = this._sharedScreenShareDataSource.screenSharingOwner;
|
|
583
615
|
var isSharingScreenBySelf = this.localUserId === (shareScreenOwner === null || shareScreenOwner === void 0 ? void 0 : shareScreenOwner.userId);
|
|
584
616
|
if ((0, _env.isElectron)() && isSharingScreen && isSharingScreenBySelf) {
|
|
585
617
|
return true;
|
|
@@ -917,9 +949,8 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
917
949
|
if (isLoneyWindow) {
|
|
918
950
|
this._videoWindowDataSource.removeBoard();
|
|
919
951
|
} else {
|
|
920
|
-
var
|
|
921
|
-
|
|
922
|
-
isActive = _this$_whiteBoardCont.isActive;
|
|
952
|
+
var isActive = this._whiteBoardControl.getActivity();
|
|
953
|
+
var ownerUserId = this._whiteBoardControl.getOwnerId();
|
|
923
954
|
if (isActive) {
|
|
924
955
|
var ownerUser = this._userControl.getUser(ownerUserId);
|
|
925
956
|
this._videoWindowDataSource.addBoard(ownerUser, ownerUserId === this.localUserId, this._privilegeProvider.hasWriteBoardPermission());
|
|
@@ -1002,9 +1033,8 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1002
1033
|
return _this5.whiteboardActive;
|
|
1003
1034
|
}, function (opened) {
|
|
1004
1035
|
if (opened) {
|
|
1005
|
-
var
|
|
1006
|
-
|
|
1007
|
-
isActive = _this5$_whiteBoardCon.isActive;
|
|
1036
|
+
var isActive = _this5._whiteBoardControl.getActivity();
|
|
1037
|
+
var ownerUserId = _this5._whiteBoardControl.getOwnerId();
|
|
1008
1038
|
if (isActive) {
|
|
1009
1039
|
var ownerUser = _this5._userControl.getUser(ownerUserId);
|
|
1010
1040
|
_this5._videoWindowDataSource.addBoard(ownerUser, ownerUserId === _this5.localUserId);
|
|
@@ -1269,7 +1299,7 @@ var LayoutStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1269
1299
|
}]);
|
|
1270
1300
|
}();
|
|
1271
1301
|
_LayoutStore = LayoutStore;
|
|
1272
|
-
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_LayoutStore, [[_participantDecs, 17, "participant"], [_chatDecs, 17, "chat"], [_chatActionDecs, 17, "chatAction"], [_stateBarDecs, 17, "stateBar"], [_actionBarDecs, 17, "actionBar"], [_layersDecs, 17, "layers"], [_whiteboardDecs, 17, "whiteboard"], [_mobx.observable, 1, "collapsed"], [_mobx.observable, 1, "aside"], [_mobx.observable, 1, "barHovering"], [_mobx.observable, 1, "barLocked"], [_mobx.observable, 1, "barHidden"], [_mobx.observable, 1, "asideWidth"], [_mobx.observable, 1, "userVolumeMap"], [_mobx.observable, 1, "chatRoomState"], [_mobx.observable, 1, "whiteboardActive"], [_mobx.observable, 1, "ownerUser"], [_mobx.computed, 3, "isWaterMarkEnabled"], [_mobx.computed, 3, "isMulti"], [_mobx.computed, 3, "layout"], [_mobx.computed, 3, "manualLayout"], [_mobx.computed, 3, "sourceList"], [_mobx.computed, 3, "layoutMainList"], [_mobx.computed, 3, "mainList"], [_mobx.computed, 3, "mainListMapByAudioStreamId"], [_mobx.computed, 3, "spotlightStreamId"], [_mobx.computed, 3, "foldList"], [_mobx.computed, 3, "galleryList"], [_mobx.computed, 3, "asideLayout"], [_mobx.computed, 3, "carouselList"], [_mobx.computed, 3, "hasPinnedStream"], [_mobx.computed, 3, "isRobot"], [_mobx.computed, 3, "findSpotlightUser"], [_mobx.computed, 3, "microphoneEnabled"], [_mobx.computed, 3, "galleryMaxSize"], [_mobx.computed, 3, "isVideoSuspended"], [_mobx.computed, 3, "asideContent"], [_mobx.computed, 3, "participantsRenderAt"], [_mobx.computed, 3, "chatRenderAt"], [_decorator.bound, 2, "getWaterMarkContent"], [_decorator.bound, 2, "hasMutePermission"], [_decorator.bound, 2, "hasUnmutePermission"], [_decorator.bound, 2, "hasRequestStartAudioPermission"], [_decorator.bound, 2, "toggleMainStream"], [_addPinMessageDecs, 18, "addPinMessage"], [_cancelPinMessageDecs, 18, "cancelPinMessage"], [_decorator.bound, 2, "addPin"], [_decorator.bound, 2, "removePin"], [_decorator.bound, 2, "setVideoOrientation"], [_decorator.bound, 2, "setAllowChat"], [_decorator.bound, 2, "handleSetPinState"], [_setWhiteboardActiveDecs, 18, "setWhiteboardActive"], [_setAsideWidthDecs, 18, "setAsideWidth"], [_updateSlotsDecs, 18, "updateSlots"], [_decorator.bound, 2, "closeParticipantFromAside"], [_decorator.bound, 2, "moveParticipantFromAsideToDialog"], [_decorator.bound, 2, "closeChatFromAside"], [_decorator.bound, 2, "closeAsideChat"], [_decorator.bound, 2, "moveChatFromAsideToDialog"], [_decorator.bound, 2, "openPrivateChat"], [_decorator.bound, 2, "openRenameDialog"], [_toggleLayoutDecs, 18, "toggleLayout"], [_toggleCollapsedDecs, 18, "toggleCollapsed"], [_toggleAsideDecs, 18, "toggleAside"], [_asideWidthChangedDecs, 18, "asideWidthChanged"], [_toggleLayoutBarLockDecs, 18, "toggleLayoutBarLock"], [_toggleLayoutBarHiddenDecs, 18, "toggleLayoutBarHidden"], [_resetLockTimerDecs, 18, "resetLockTimer"], [_setHoveringHandlerDecs, 18, "setHoveringHandler"], [_setHoveringLeaveHandlerDecs, 18, "setHoveringLeaveHandler"], [_handleLiveLayoutChangeDecs, 18, "handleLiveLayoutChange"], [_onUserInfoUpdatedDecs, 18, "onUserInfoUpdated"], [_decorator.bound, 2, "stopLocalPreview"], [_decorator.bound, 2, "startLocalPreview"], [_decorator.bound, 2, "setAllowChatWithPayload"], [_decorator.bound, 2, "muteAudio"], [_decorator.bound, 2, "sendParticipantEvent"], [_decorator.bound, 2, "onEvent"], [_decorator.bound, 2, "_addListeners"], [_mobx.computed, 3, "_hasVideoStreamUser"], [_handleFoldListChangedDecs, 18, "_handleFoldListChanged"], [_handleMainListLengthChangedDecs, 18, "_handleMainListLengthChanged"], [_handleMainListChangedDecs, 18, "_handleMainListChanged"], [_mobx.action, 2, "_switchToSpeaker"], [_mobx.action, 2, "_switchToGallery"], [_setBarHoveringDecs, 18, "_setBarHovering"], [_decorator.bound, 2, "_initStream"], [_decorator.bound, 2, "_isSetSpotlightEnable"], [_handleConnectionUpdatedDecs, 18, "_handleConnectionUpdated"], [_decorator.bound, 2, "_handleLiveStreamingStateUpdated"], [_decorator.bound, 2, "_handleStreamAdded"], [_decorator.bound, 2, "_onStreamsAdded"], [_decorator.bound, 2, "_onStreamsUpdated"], [_decorator.bound, 2, "_onStreamsRemoved"], [_onAudioVolumeUpdatedDecs, 18, "_onAudioVolumeUpdated"], [_handleLayoutUpdatedDecs, 16, "_handleLayoutUpdated"]], []).e,
|
|
1302
|
+
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_LayoutStore, [[_participantDecs, 17, "participant"], [_chatDecs, 17, "chat"], [_chatActionDecs, 17, "chatAction"], [_stateBarDecs, 17, "stateBar"], [_actionBarDecs, 17, "actionBar"], [_layersDecs, 17, "layers"], [_whiteboardDecs, 17, "whiteboard"], [_annotationDecs, 17, "annotation"], [_annotationControlDecs, 17, "annotationControl"], [_mobx.observable, 1, "collapsed"], [_mobx.observable, 1, "aside"], [_mobx.observable, 1, "barHovering"], [_mobx.observable, 1, "barLocked"], [_mobx.observable, 1, "barHidden"], [_mobx.observable, 1, "asideWidth"], [_mobx.observable, 1, "userVolumeMap"], [_mobx.observable, 1, "chatRoomState"], [_mobx.observable, 1, "whiteboardActive"], [_mobx.observable, 1, "ownerUser"], [_mobx.computed, 3, "isWaterMarkEnabled"], [_mobx.computed, 3, "isMulti"], [_mobx.computed, 3, "layout"], [_mobx.computed, 3, "manualLayout"], [_mobx.computed, 3, "scalcValue"], [_mobx.computed, 3, "sourceList"], [_mobx.computed, 3, "layoutMainList"], [_mobx.computed, 3, "mainList"], [_mobx.computed, 3, "mainListMapByAudioStreamId"], [_mobx.computed, 3, "spotlightStreamId"], [_mobx.computed, 3, "foldList"], [_mobx.computed, 3, "galleryList"], [_mobx.computed, 3, "asideLayout"], [_mobx.computed, 3, "carouselList"], [_mobx.computed, 3, "hasPinnedStream"], [_mobx.computed, 3, "isRobot"], [_mobx.computed, 3, "findSpotlightUser"], [_mobx.computed, 3, "microphoneEnabled"], [_mobx.computed, 3, "galleryMaxSize"], [_mobx.computed, 3, "isVideoSuspended"], [_mobx.computed, 3, "asideContent"], [_mobx.computed, 3, "participantsRenderAt"], [_mobx.computed, 3, "chatRenderAt"], [_decorator.bound, 2, "getWaterMarkContent"], [_decorator.bound, 2, "hasMutePermission"], [_decorator.bound, 2, "hasUnmutePermission"], [_decorator.bound, 2, "hasRequestStartAudioPermission"], [_decorator.bound, 2, "toggleMainStream"], [_addPinMessageDecs, 18, "addPinMessage"], [_cancelPinMessageDecs, 18, "cancelPinMessage"], [_decorator.bound, 2, "addPin"], [_decorator.bound, 2, "removePin"], [_decorator.bound, 2, "setVideoOrientation"], [_decorator.bound, 2, "setAllowChat"], [_decorator.bound, 2, "handleSetPinState"], [_setWhiteboardActiveDecs, 18, "setWhiteboardActive"], [_setAsideWidthDecs, 18, "setAsideWidth"], [_updateSlotsDecs, 18, "updateSlots"], [_decorator.bound, 2, "closeParticipantFromAside"], [_decorator.bound, 2, "moveParticipantFromAsideToDialog"], [_decorator.bound, 2, "closeChatFromAside"], [_decorator.bound, 2, "closeAsideChat"], [_decorator.bound, 2, "moveChatFromAsideToDialog"], [_decorator.bound, 2, "openPrivateChat"], [_decorator.bound, 2, "openRenameDialog"], [_toggleLayoutDecs, 18, "toggleLayout"], [_toggleCollapsedDecs, 18, "toggleCollapsed"], [_toggleAsideDecs, 18, "toggleAside"], [_asideWidthChangedDecs, 18, "asideWidthChanged"], [_toggleLayoutBarLockDecs, 18, "toggleLayoutBarLock"], [_toggleLayoutBarHiddenDecs, 18, "toggleLayoutBarHidden"], [_resetLockTimerDecs, 18, "resetLockTimer"], [_setHoveringHandlerDecs, 18, "setHoveringHandler"], [_setHoveringLeaveHandlerDecs, 18, "setHoveringLeaveHandler"], [_handleLiveLayoutChangeDecs, 18, "handleLiveLayoutChange"], [_onUserInfoUpdatedDecs, 18, "onUserInfoUpdated"], [_decorator.bound, 2, "stopLocalPreview"], [_decorator.bound, 2, "startLocalPreview"], [_decorator.bound, 2, "setAllowChatWithPayload"], [_decorator.bound, 2, "muteAudio"], [_decorator.bound, 2, "sendParticipantEvent"], [_decorator.bound, 2, "onEvent"], [_decorator.bound, 2, "_addListeners"], [_mobx.computed, 3, "_hasVideoStreamUser"], [_handleFoldListChangedDecs, 18, "_handleFoldListChanged"], [_handleMainListLengthChangedDecs, 18, "_handleMainListLengthChanged"], [_handleMainListChangedDecs, 18, "_handleMainListChanged"], [_mobx.action, 2, "_switchToSpeaker"], [_mobx.action, 2, "_switchToGallery"], [_setBarHoveringDecs, 18, "_setBarHovering"], [_decorator.bound, 2, "_initStream"], [_decorator.bound, 2, "_isSetSpotlightEnable"], [_handleConnectionUpdatedDecs, 18, "_handleConnectionUpdated"], [_decorator.bound, 2, "_handleLiveStreamingStateUpdated"], [_decorator.bound, 2, "_handleStreamAdded"], [_decorator.bound, 2, "_onStreamsAdded"], [_decorator.bound, 2, "_onStreamsUpdated"], [_decorator.bound, 2, "_onStreamsRemoved"], [_onAudioVolumeUpdatedDecs, 18, "_onAudioVolumeUpdated"], [_handleLayoutUpdatedDecs, 16, "_handleLayoutUpdated"]], []).e, 21);
|
|
1273
1303
|
_init_participant = _applyDecs$e[0];
|
|
1274
1304
|
_init_chat = _applyDecs$e[1];
|
|
1275
1305
|
_init_chatAction = _applyDecs$e[2];
|
|
@@ -1277,17 +1307,19 @@ _init_stateBar = _applyDecs$e[3];
|
|
|
1277
1307
|
_init_actionBar = _applyDecs$e[4];
|
|
1278
1308
|
_init_layers = _applyDecs$e[5];
|
|
1279
1309
|
_init_whiteboard = _applyDecs$e[6];
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1310
|
+
_init_annotation = _applyDecs$e[7];
|
|
1311
|
+
_init_annotationControl = _applyDecs$e[8];
|
|
1312
|
+
_init_collapsed = _applyDecs$e[9];
|
|
1313
|
+
_init_aside = _applyDecs$e[10];
|
|
1314
|
+
_init_barHovering = _applyDecs$e[11];
|
|
1315
|
+
_init_barLocked = _applyDecs$e[12];
|
|
1316
|
+
_init_barHidden = _applyDecs$e[13];
|
|
1317
|
+
_init_asideWidth = _applyDecs$e[14];
|
|
1318
|
+
_init_userVolumeMap = _applyDecs$e[15];
|
|
1319
|
+
_init_chatRoomState = _applyDecs$e[16];
|
|
1320
|
+
_init_whiteboardActive = _applyDecs$e[17];
|
|
1321
|
+
_init_ownerUser = _applyDecs$e[18];
|
|
1322
|
+
_init__handleLayoutUpdated = _applyDecs$e[19];
|
|
1323
|
+
_initProto = _applyDecs$e[20];
|
|
1292
1324
|
(0, _defineProperty2["default"])(LayoutStore, "MIN_USERS_TO_ENABLE_SPOTLIGHT", 2);
|
|
1293
1325
|
var StoreContext = exports.StoreContext = /*#__PURE__*/(0, _react.createContext)(null);
|
|
@@ -22,6 +22,7 @@ import { FcrUIDialogProvider } from '../../providers/dialog-provider';
|
|
|
22
22
|
import { FcrUIAbilityProviderImpl } from '../../providers/ability-provider';
|
|
23
23
|
import { FcrUIMessageProvider } from '../../providers/message-provider';
|
|
24
24
|
import { FcrUISecuritySharedDataSource } from '../../shared-data-source/security-data';
|
|
25
|
+
import { FcrUIScreenShareSharedDataSource } from '../../shared-data-source/screen-share-data';
|
|
25
26
|
export declare class ParticipantUIModule extends UIModule {
|
|
26
27
|
private _store;
|
|
27
28
|
deviceStreamProvider?: FcrUIDeviceStreamProvider;
|
|
@@ -46,6 +47,7 @@ export declare class ParticipantUIModule extends UIModule {
|
|
|
46
47
|
messageProvider?: FcrUIMessageProvider;
|
|
47
48
|
abilityProvider?: FcrUIAbilityProviderImpl;
|
|
48
49
|
sharedSecuritySharedDataSource?: FcrUISecuritySharedDataSource;
|
|
50
|
+
sharedScreenShareSharedDataSource?: FcrUIScreenShareSharedDataSource;
|
|
49
51
|
onNodeWillActive(): void;
|
|
50
52
|
onNodeWillInactive(): void;
|
|
51
53
|
getComponent(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -87,7 +87,8 @@ var ParticipantUIModule = exports.ParticipantUIModule = /*#__PURE__*/function (_
|
|
|
87
87
|
dialogProvider: this.dialogProvider,
|
|
88
88
|
abilityProvider: this.abilityProvider,
|
|
89
89
|
messageProvider: this.messageProvider,
|
|
90
|
-
sharedSecuritySharedDataSource: this.sharedSecuritySharedDataSource
|
|
90
|
+
sharedSecuritySharedDataSource: this.sharedSecuritySharedDataSource,
|
|
91
|
+
sharedScreenShareSharedDataSource: this.sharedScreenShareSharedDataSource
|
|
91
92
|
});
|
|
92
93
|
}
|
|
93
94
|
}, {
|
|
@@ -28,9 +28,9 @@ import { FcrUIDialogProvider } from '../../providers/dialog-provider';
|
|
|
28
28
|
import { FcrUIMessageProvider } from '../../providers/message-provider';
|
|
29
29
|
import { FcrUIAbilityProviderImpl } from '../../providers/ability-provider';
|
|
30
30
|
import { FcrUISecuritySharedDataSource } from '../../shared-data-source/security-data';
|
|
31
|
+
import { FcrUIScreenShareSharedDataSource } from '../../shared-data-source/screen-share-data';
|
|
31
32
|
export default class ParticipantStore {
|
|
32
33
|
protected logger: import("agora-foundation/lib/logger").Logger;
|
|
33
|
-
private _screenSharingState;
|
|
34
34
|
private _roomStore;
|
|
35
35
|
private _chatProvider;
|
|
36
36
|
private _roomControl;
|
|
@@ -57,6 +57,7 @@ export default class ParticipantStore {
|
|
|
57
57
|
private _sharedWaitingRoomDataSource;
|
|
58
58
|
private _sharedMemberDataSource;
|
|
59
59
|
private _sharedChatDataSource;
|
|
60
|
+
private _sharedScreenShareSharedDataSource;
|
|
60
61
|
private _peerSessionObserver;
|
|
61
62
|
private _dialogProvider;
|
|
62
63
|
private _abilityProvider;
|
|
@@ -93,6 +94,7 @@ export default class ParticipantStore {
|
|
|
93
94
|
get localUserRole(): FcrUserRole;
|
|
94
95
|
get isLocalUserHost(): boolean;
|
|
95
96
|
get enableSpotlight(): boolean;
|
|
97
|
+
get screenSharingOwner(): FcrUserInfo | undefined;
|
|
96
98
|
get userListSource(): import("./member-list-data-source").FcrUIMemberDataImpl[];
|
|
97
99
|
get spotlightStreamId(): string;
|
|
98
100
|
get mergeUserInfo(): FcrUserInfo | undefined;
|
|
@@ -115,7 +117,7 @@ export default class ParticipantStore {
|
|
|
115
117
|
get isHostKeyEnabled(): boolean;
|
|
116
118
|
get hasInvite(): boolean;
|
|
117
119
|
get checkedStateMap(): import("../../shared-data-source/security-data").FcrSecurityCheckedStateType;
|
|
118
|
-
constructor({ roomControl, securityStore, uiEventStore, deviceStore, deviceStreamStore, roomStore, sessionProvider, sharedSpeakerSpotlightDataSource, sharedPinDataSource, sharedLayoutDataSource, sharedInterpreterDataSource, sharedSettingDataSource, sharedWaitingRoomDataSource, chatProvider, sharedVideoWindowDataSource, sharedMemberDataSource, sharedChatDataSource, dialogProvider, abilityProvider, messageProvider, sharedSecuritySharedDataSource, }: {
|
|
120
|
+
constructor({ roomControl, securityStore, uiEventStore, deviceStore, deviceStreamStore, roomStore, sessionProvider, sharedSpeakerSpotlightDataSource, sharedPinDataSource, sharedLayoutDataSource, sharedInterpreterDataSource, sharedSettingDataSource, sharedWaitingRoomDataSource, chatProvider, sharedVideoWindowDataSource, sharedMemberDataSource, sharedChatDataSource, dialogProvider, abilityProvider, messageProvider, sharedSecuritySharedDataSource, sharedScreenShareSharedDataSource, }: {
|
|
119
121
|
roomControl: FcrMainRoomControl;
|
|
120
122
|
securityStore: FcrUIPrivilegeProvider;
|
|
121
123
|
uiEventStore: FcrUIEventProvider;
|
|
@@ -137,6 +139,7 @@ export default class ParticipantStore {
|
|
|
137
139
|
abilityProvider: FcrUIAbilityProviderImpl;
|
|
138
140
|
messageProvider: FcrUIMessageProvider;
|
|
139
141
|
sharedSecuritySharedDataSource: FcrUISecuritySharedDataSource;
|
|
142
|
+
sharedScreenShareSharedDataSource: FcrUIScreenShareSharedDataSource;
|
|
140
143
|
});
|
|
141
144
|
release(): void;
|
|
142
145
|
allowedOperations: (userId: string, userRole: FcrUserRole) => string[];
|
|
@@ -155,6 +155,7 @@ _ref = (_setCurrentModalDecs = [_mobx.action, _mobx.action.bound], _openParticip
|
|
|
155
155
|
var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
156
156
|
function ParticipantStore(_ref2) {
|
|
157
157
|
var _this = this,
|
|
158
|
+
_this$_roomControl$ge,
|
|
158
159
|
_this$_roomStore;
|
|
159
160
|
var _roomControl = _ref2.roomControl,
|
|
160
161
|
securityStore = _ref2.securityStore,
|
|
@@ -176,12 +177,12 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
176
177
|
dialogProvider = _ref2.dialogProvider,
|
|
177
178
|
abilityProvider = _ref2.abilityProvider,
|
|
178
179
|
messageProvider = _ref2.messageProvider,
|
|
179
|
-
sharedSecuritySharedDataSource = _ref2.sharedSecuritySharedDataSource
|
|
180
|
+
sharedSecuritySharedDataSource = _ref2.sharedSecuritySharedDataSource,
|
|
181
|
+
sharedScreenShareSharedDataSource = _ref2.sharedScreenShareSharedDataSource;
|
|
180
182
|
(0, _classCallCheck2["default"])(this, ParticipantStore);
|
|
181
183
|
(0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.createLogger)({
|
|
182
184
|
prefix: 'ParticipantStore'
|
|
183
185
|
})));
|
|
184
|
-
(0, _defineProperty2["default"])(this, "_screenSharingState", _fcrCore.FcrMediaSourceState.CLOSE);
|
|
185
186
|
(0, _defineProperty2["default"])(this, "_disposers", []);
|
|
186
187
|
(0, _defineProperty2["default"])(this, "_changeNameDialogKey", []);
|
|
187
188
|
(0, _defineProperty2["default"])(this, "_unmuteAudioTimestamp", new Map());
|
|
@@ -302,7 +303,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
302
303
|
hasVideo = isSelf ? _this._deviceStore.cameraEnabled : hasVideoPublishedAndStarted(defaultStream);
|
|
303
304
|
if (pstnStream) {
|
|
304
305
|
audioDeviceType = 'phone-mic';
|
|
305
|
-
hasAudio =
|
|
306
|
+
hasAudio = pstnStream.audioSourceState === _fcrCore.FcrMediaSourceState.OPEN;
|
|
306
307
|
} else {
|
|
307
308
|
audioDeviceType = 'computer-mic';
|
|
308
309
|
hasAudio = isSelf ? _this._deviceStore.microphoneEnabled : hasAudioPublishedAndStarted(defaultStream);
|
|
@@ -361,11 +362,12 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
361
362
|
this._sharedVideoWindowDataSource = sharedVideoWindowDataSource;
|
|
362
363
|
this._sharedChatDataSource = sharedChatDataSource;
|
|
363
364
|
this._sharedSecuritySharedDataSource = sharedSecuritySharedDataSource;
|
|
365
|
+
this._sharedScreenShareSharedDataSource = sharedScreenShareSharedDataSource;
|
|
364
366
|
this.allowUnmute = this._securityStore.allowUnmuteSelfAudio();
|
|
365
367
|
this.joinWithMuteAudio = this._securityStore.allowJoinWithMuteAudio();
|
|
366
368
|
this._uiEventStore.addObserver(this._eventObserver);
|
|
367
369
|
this._peerSessionControl.addObserver(this._peerSessionObserver);
|
|
368
|
-
this._roomControl.getBoardControl().addObserver(this._whitebaordObderver);
|
|
370
|
+
(_this$_roomControl$ge = this._roomControl.getSharingControl()) === null || _this$_roomControl$ge === void 0 || _this$_roomControl$ge.getBoardControl().addObserver(this._whitebaordObderver);
|
|
369
371
|
this._roomControl.getPrivilegeControl().addObserver(this._privilegeControlObserver);
|
|
370
372
|
(_this$_roomStore = this._roomStore) === null || _this$_roomStore === void 0 || _this$_roomStore.addObserver(this._roomStoreObserver);
|
|
371
373
|
this._sharedInterpreterDataSource = sharedInterpreterDataSource;
|
|
@@ -522,6 +524,11 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
522
524
|
get: function get() {
|
|
523
525
|
return this._sharedSettingDataSource.setting.spotlightEnabled;
|
|
524
526
|
}
|
|
527
|
+
}, {
|
|
528
|
+
key: "screenSharingOwner",
|
|
529
|
+
get: function get() {
|
|
530
|
+
return this._sharedScreenShareSharedDataSource.screenSharingOwner;
|
|
531
|
+
}
|
|
525
532
|
}, {
|
|
526
533
|
key: "userListSource",
|
|
527
534
|
get: function get() {
|
|
@@ -666,7 +673,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
666
673
|
this._dialogProvider.removeObserver(this._eventObserver);
|
|
667
674
|
this._userControl.removeObserver(this._userObserver);
|
|
668
675
|
this._peerSessionControl.removeObserver(this._peerSessionObserver);
|
|
669
|
-
this._roomControl.getBoardControl().removeObserver(this._whitebaordObderver);
|
|
676
|
+
this._roomControl.getSharingControl().getBoardControl().removeObserver(this._whitebaordObderver);
|
|
670
677
|
this._roomControl.getPrivilegeControl().removeObserver(this._privilegeControlObserver);
|
|
671
678
|
this._roomStore.removeObserver(this._roomStoreObserver);
|
|
672
679
|
this._sharedWaitingRoomDataSource.release();
|
|
@@ -1252,12 +1259,6 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1252
1259
|
if (action === _constant.FcrUIAction.CHANGE_PARTICIPANT_TAB) {
|
|
1253
1260
|
this.handleActiveTab(payload);
|
|
1254
1261
|
}
|
|
1255
|
-
if (action === _constant.FcrUIAction.START_SHARE_SCREEN) {
|
|
1256
|
-
this._screenSharingState = _fcrCore.FcrMediaSourceState.OPEN;
|
|
1257
|
-
}
|
|
1258
|
-
if (action === _constant.FcrUIAction.STOP_SHARE_SCREEN) {
|
|
1259
|
-
this._screenSharingState = _fcrCore.FcrMediaSourceState.CLOSE;
|
|
1260
|
-
}
|
|
1261
1262
|
if (action === _constant.FcrUIAction.PARTICIPANT_ACTION) {
|
|
1262
1263
|
this.handlerUserAction(payload.action, payload.userId);
|
|
1263
1264
|
}
|
|
@@ -1283,18 +1284,20 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1283
1284
|
value:
|
|
1284
1285
|
// user actions
|
|
1285
1286
|
function _muteUserAudio(user) {
|
|
1287
|
+
var userStreams = this._streamControl.getStreamsByUserId(user);
|
|
1288
|
+
var hardStream = userStreams.find(function (stream) {
|
|
1289
|
+
return stream.connectorType !== _fcrCore.FcrRoomConnectorType.NONE;
|
|
1290
|
+
});
|
|
1291
|
+
var normalStream = userStreams.find(function (stream) {
|
|
1292
|
+
return stream.videoSourceType === _type2.AgoraRteVideoSourceType.CAMERA;
|
|
1293
|
+
});
|
|
1286
1294
|
var isSelf = user === this.localUser.userId;
|
|
1287
1295
|
if (isSelf) {
|
|
1288
1296
|
this._deviceStreamStore.enableMicrophoneWithPreCheck(false);
|
|
1289
|
-
}
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
});
|
|
1294
|
-
if (!targetUser) {
|
|
1295
|
-
return;
|
|
1296
|
-
}
|
|
1297
|
-
this._streamControl.updatePublishPrivilegeOfStreams((0, _defineProperty2["default"])({}, targetUser.streamId, {
|
|
1297
|
+
}
|
|
1298
|
+
var targetStream = hardStream !== null && hardStream !== void 0 ? hardStream : normalStream;
|
|
1299
|
+
if (targetStream) {
|
|
1300
|
+
this._streamControl.updatePublishPrivilegeOfStreams((0, _defineProperty2["default"])({}, targetStream.streamId, {
|
|
1298
1301
|
audioPrivilege: _fcrCore.FcrStreamPrivilegeOperation.NOPRIVILEGE,
|
|
1299
1302
|
videoPrivilege: _fcrCore.FcrStreamPrivilegeOperation.NOOPERATION
|
|
1300
1303
|
}));
|
|
@@ -1303,10 +1306,17 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1303
1306
|
}, {
|
|
1304
1307
|
key: "_unmuteUserAudio",
|
|
1305
1308
|
value: function _unmuteUserAudio(userId) {
|
|
1309
|
+
var streamInfos = this._streamControl.getStreamsByUserId(userId);
|
|
1310
|
+
var hardStream = streamInfos.find(function (streamInfo) {
|
|
1311
|
+
return streamInfo.connectorType !== _imports.AgoraRteRoomConnectorType.NONE;
|
|
1312
|
+
});
|
|
1313
|
+
// const normalStream = streamInfos.find(streamInfo => streamInfo.videoSourceType === AgoraRteVideoSourceType.CAMERA);
|
|
1306
1314
|
var isSelf = userId === this.localUser.userId;
|
|
1307
|
-
if (isSelf) {
|
|
1315
|
+
if (isSelf && !hardStream) {
|
|
1308
1316
|
this._deviceStreamStore.enableMicrophoneWithPreCheck(true);
|
|
1309
|
-
|
|
1317
|
+
return;
|
|
1318
|
+
}
|
|
1319
|
+
if (!hardStream) {
|
|
1310
1320
|
var _this$_unmuteAudioTim;
|
|
1311
1321
|
var now = Date.now();
|
|
1312
1322
|
if (now - ((_this$_unmuteAudioTim = this._unmuteAudioTimestamp.get(userId)) !== null && _this$_unmuteAudioTim !== void 0 ? _this$_unmuteAudioTim : 0) <= SESSION_DURATION * 1000) {
|
|
@@ -1321,7 +1331,40 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1321
1331
|
sender: this.localUser
|
|
1322
1332
|
}
|
|
1323
1333
|
});
|
|
1334
|
+
} else {
|
|
1335
|
+
this._streamControl.updatePublishPrivilegeOfStreams((0, _defineProperty2["default"])({}, hardStream.streamId, {
|
|
1336
|
+
audioPrivilege: _fcrCore.FcrStreamPrivilegeOperation.HAS_PRIVILEGE,
|
|
1337
|
+
videoPrivilege: _fcrCore.FcrStreamPrivilegeOperation.NOOPERATION
|
|
1338
|
+
}));
|
|
1324
1339
|
}
|
|
1340
|
+
|
|
1341
|
+
// if (streamInfos && streamInfos.length > 0) {
|
|
1342
|
+
// const streamInfo = streamInfos[0];
|
|
1343
|
+
// const isNotCommonClientConnectorType =
|
|
1344
|
+
// streamInfo.connectorType !== AgoraRteRoomConnectorType.NONE;
|
|
1345
|
+
// if (!isNotCommonClientConnectorType) {
|
|
1346
|
+
// const now = Date.now();
|
|
1347
|
+
// if (now - (this._unmuteAudioTimestamp.get(userId) ?? 0) <= SESSION_DURATION * 1000) {
|
|
1348
|
+
// return;
|
|
1349
|
+
// }
|
|
1350
|
+
// this._unmuteAudioTimestamp.set(userId, now);
|
|
1351
|
+
// this._peerSessionControl.startPeerSession({
|
|
1352
|
+
// sessionKey: 'REQUEST_OPEN_MICROPHONE',
|
|
1353
|
+
// receiverId: userId,
|
|
1354
|
+
// duration: SESSION_DURATION,
|
|
1355
|
+
// payload: {
|
|
1356
|
+
// sender: this.localUser,
|
|
1357
|
+
// },
|
|
1358
|
+
// });
|
|
1359
|
+
// } else {
|
|
1360
|
+
// this._streamControl.updatePublishPrivilegeOfStreams({
|
|
1361
|
+
// [streamInfo.streamId]: {
|
|
1362
|
+
// audioPrivilege: FcrStreamPrivilegeOperation.HAS_PRIVILEGE,
|
|
1363
|
+
// videoPrivilege: FcrStreamPrivilegeOperation.NOOPERATION,
|
|
1364
|
+
// },
|
|
1365
|
+
// });
|
|
1366
|
+
// }
|
|
1367
|
+
// }
|
|
1325
1368
|
}
|
|
1326
1369
|
}, {
|
|
1327
1370
|
key: "_muteUserVideo",
|
|
@@ -1380,6 +1423,7 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1380
1423
|
return u.userId === userId;
|
|
1381
1424
|
});
|
|
1382
1425
|
if (userData) {
|
|
1426
|
+
var _this$screenSharingOw;
|
|
1383
1427
|
var hasPermissionToSendPrivateMessage = this._securityStore.hasPermissionToSendPrivateMessage(userData.userInfo.userRole);
|
|
1384
1428
|
if (!hasPermissionToSendPrivateMessage) {
|
|
1385
1429
|
this._messageProvider.showToast({
|
|
@@ -1391,14 +1435,18 @@ var ParticipantStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1391
1435
|
if (!this._securityStore.permitPrivateChat(userId)) {
|
|
1392
1436
|
return;
|
|
1393
1437
|
}
|
|
1438
|
+
this._chatProvider.setPrivateChatTargetUser(userData.userInfo, this.activeTab);
|
|
1439
|
+
if ((0, _env.isElectron)() && ((_this$screenSharingOw = this.screenSharingOwner) === null || _this$screenSharingOw === void 0 ? void 0 : _this$screenSharingOw.userId) === this.localUser.userId) {
|
|
1440
|
+
this._sharedLayoutDataSource.setParticipantsRenderAt('dialog');
|
|
1441
|
+
this._uiEventStore.openDialog(_constant.FcrUIDialogKey.CHAT);
|
|
1442
|
+
return;
|
|
1443
|
+
}
|
|
1394
1444
|
if (this._sharedLayoutDataSource.chatRenderAt !== 'dialog') {
|
|
1395
1445
|
this._sharedLayoutDataSource.setAsideLayout({
|
|
1396
1446
|
chat: true
|
|
1397
1447
|
});
|
|
1398
1448
|
this._sharedChatDataSource.activeTab = this.activeTab;
|
|
1399
|
-
}
|
|
1400
|
-
this._chatProvider.setPrivateChatTargetUser(userData.userInfo, this.activeTab);
|
|
1401
|
-
if ((0, _env.isElectron)() && this._screenSharingState === _fcrCore.FcrMediaSourceState.OPEN || this._sharedLayoutDataSource.chatRenderAt === 'dialog') {
|
|
1449
|
+
} else {
|
|
1402
1450
|
this._uiEventStore.openDialog(_constant.FcrUIDialogKey.CHAT);
|
|
1403
1451
|
}
|
|
1404
1452
|
}
|
|
@@ -33,7 +33,6 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
33
33
|
var _react = require("react");
|
|
34
34
|
var _radio = require("agora-ui-foundation/lib/components/radio");
|
|
35
35
|
var _checkbox = require("agora-ui-foundation/lib/components/checkbox");
|
|
36
|
-
var _switch = require("agora-ui-foundation/lib/components/switch");
|
|
37
36
|
var _volumeIndicator = require("agora-ui-foundation/lib/components/volume-indicator");
|
|
38
37
|
var _slider = require("agora-ui-foundation/lib/components/slider");
|
|
39
38
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
@@ -259,22 +258,12 @@ var AudioSettings = exports.AudioSettings = (0, _mobxReact.observer)(function ()
|
|
|
259
258
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
260
259
|
className: ns.e('section-title'),
|
|
261
260
|
children: t('fmt_setting_label_professional')
|
|
262
|
-
}), /*#__PURE__*/(0, _jsxRuntime.
|
|
261
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
263
262
|
className: ns.e('switch-wrapper'),
|
|
264
|
-
children:
|
|
263
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
265
264
|
className: ns.e('switch-wrapper-orinalvoise-tip'),
|
|
266
265
|
children: t('fmt_setting_option_orinalvoise')
|
|
267
|
-
})
|
|
268
|
-
className: ns.e('switch-wrapper-switch'),
|
|
269
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_switch.FcrSwitch, {
|
|
270
|
-
value: setting.audioVoiceChanger,
|
|
271
|
-
onChange: function onChange(v) {
|
|
272
|
-
setSetting({
|
|
273
|
-
audioVoiceChanger: v
|
|
274
|
-
});
|
|
275
|
-
}
|
|
276
|
-
})
|
|
277
|
-
})]
|
|
266
|
+
})
|
|
278
267
|
}), setting.audioVoiceChanger && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
279
268
|
className: ns.e('options-section'),
|
|
280
269
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
@@ -11,6 +11,7 @@ import { FcrUIMessageProvider } from '../../providers/message-provider';
|
|
|
11
11
|
import { FcrUISharedSettingDataSource } from '../../shared-data-source/setting';
|
|
12
12
|
import { FcrUIDialogProvider } from '../../providers/dialog-provider';
|
|
13
13
|
import { FcrUILocalStorageProviderImpl } from '../../providers/local-storage-provider';
|
|
14
|
+
import { FcrUIUserSettingStorageProviderImpl } from '../../providers/user-setting-storage-provider';
|
|
14
15
|
export declare class SettingUIModule extends UIModule {
|
|
15
16
|
private _store?;
|
|
16
17
|
deviceProvider?: FcrUIDeviceProvider;
|
|
@@ -25,6 +26,7 @@ export declare class SettingUIModule extends UIModule {
|
|
|
25
26
|
dialogProvider?: FcrUIDialogProvider;
|
|
26
27
|
sharedSettingDataSource?: FcrUISharedSettingDataSource;
|
|
27
28
|
localStorageProvider?: FcrUILocalStorageProviderImpl;
|
|
29
|
+
userSettingStorageProvider?: FcrUIUserSettingStorageProviderImpl;
|
|
28
30
|
constructor(parentNode: FcrUINode, rootNode: FcrUINode);
|
|
29
31
|
onNodeWillActive(): void;
|
|
30
32
|
onNodeWillInactive(): void;
|