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
|
@@ -55,22 +55,21 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
|
|
|
55
55
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
56
56
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
57
57
|
var _mobx = require("mobx");
|
|
58
|
-
var _type = require("agora-rte-sdk/lib/core/rtc/type");
|
|
59
58
|
var _decorator = require("agora-foundation/lib/decorator");
|
|
60
|
-
var
|
|
59
|
+
var _type = require("fcr-core/lib/room-control/type");
|
|
61
60
|
var _fcrCore = require("fcr-core");
|
|
62
|
-
var
|
|
61
|
+
var _type2 = require("fcr-core/lib/type");
|
|
63
62
|
var _react = require("react");
|
|
64
63
|
var _stopButton = _interopRequireDefault(require("./components/stop-live-streaming/stop-button"));
|
|
65
64
|
var _constant = require("../../utilities/constant");
|
|
66
65
|
var _enums = require("./enums");
|
|
67
66
|
var _leaveMeeting = require("../components/leave-meeting");
|
|
68
|
-
var
|
|
67
|
+
var _type3 = require("../../type");
|
|
69
68
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
70
69
|
var _logger = require("../../utilities/logger");
|
|
71
70
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
72
71
|
var _ControlBarStore;
|
|
73
|
-
var _initProto, _leaveConfirmRefDecs, _init_leaveConfirmRef,
|
|
72
|
+
var _initProto, _leaveConfirmRefDecs, _init_leaveConfirmRef, _init_recordShareBounds, _init_cloudRecordingState, _init_isHost, _init_roomDuration, _init_startTime, _init_playUrl, _init_liveStreamingState, _init_allApplicationWindows, _init_roomInfo, _init_isShowMeetingDetailPortal, _init_hiddenShareActionNav, _init_boardOwnerUser, _init_currentShareDisplayId, _setCheckedStateMapDecs, _setShareWithAudioStateDecs, _showLockedRoomToastDecs, _createNewShareDecs, _handlerStopShareDecs, _setShareAudioProcessingChannelDecs, _handleMoreClickDecs, _pauseCloudRecordingDecs, _resumeCloudRecordingDecs, _stopCloudRecordingDecs, _showToastDecs, _setShowMeetingDetailPortalDecs, _setEnableWaitingRoomDecs, _handleLeaveRoomDecs, _resetMessageCountDecs, _ref;
|
|
74
73
|
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
75
74
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
76
75
|
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
@@ -95,11 +94,7 @@ var _K = /*#__PURE__*/new WeakMap();
|
|
|
95
94
|
var _L = /*#__PURE__*/new WeakMap();
|
|
96
95
|
var _M = /*#__PURE__*/new WeakMap();
|
|
97
96
|
var _N = /*#__PURE__*/new WeakMap();
|
|
98
|
-
|
|
99
|
-
var _P = /*#__PURE__*/new WeakMap();
|
|
100
|
-
var _Q = /*#__PURE__*/new WeakMap();
|
|
101
|
-
var _R = /*#__PURE__*/new WeakMap();
|
|
102
|
-
_ref = (_leaveConfirmRefDecs = [_mobx.observable, _mobx.observable.ref], _setCheckedStateMapDecs = [_mobx.action, _mobx.action.bound], _initControlBarDecs = [_mobx.action, _mobx.action.bound], _updateCurrentShareContentDecs = [_mobx.action, _mobx.action.bound], _setShareWithAudioStateDecs = [_mobx.action, _mobx.action.bound], _showLockedRoomToastDecs = [_mobx.action, _mobx.action.bound], _createNewShareDecs = [_mobx.action, _mobx.action.bound], _handlerStopShareDecs = [_mobx.action, _mobx.action.bound], _setShareAudioProcessingChannelDecs = [_mobx.action, _mobx.action.bound], _handleMoreClickDecs = [_mobx.action, _mobx.action.bound], _pauseCloudRecordingDecs = [_decorator.bound, (0, _decorator.debounced)(500, {
|
|
97
|
+
_ref = (_leaveConfirmRefDecs = [_mobx.observable, _mobx.observable.ref], _setCheckedStateMapDecs = [_mobx.action, _mobx.action.bound], _setShareWithAudioStateDecs = [_mobx.action, _mobx.action.bound], _showLockedRoomToastDecs = [_mobx.action, _mobx.action.bound], _createNewShareDecs = [_mobx.action, _mobx.action.bound], _handlerStopShareDecs = [_mobx.action, _mobx.action.bound], _setShareAudioProcessingChannelDecs = [_mobx.action, _mobx.action.bound], _handleMoreClickDecs = [_mobx.action, _mobx.action.bound], _pauseCloudRecordingDecs = [_decorator.bound, (0, _decorator.debounced)(500, {
|
|
103
98
|
leading: true
|
|
104
99
|
})], _resumeCloudRecordingDecs = [_decorator.bound, (0, _decorator.debounced)(500, {
|
|
105
100
|
leading: true
|
|
@@ -126,8 +121,11 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
126
121
|
sharedMeetingTimeDataSource = _ref2.sharedMeetingTimeDataSource,
|
|
127
122
|
messageProvider = _ref2.messageProvider,
|
|
128
123
|
sharedSecuritySharedDataSource = _ref2.sharedSecuritySharedDataSource,
|
|
129
|
-
|
|
130
|
-
|
|
124
|
+
annotationProvider = _ref2.annotationProvider,
|
|
125
|
+
sharingProvider = _ref2.sharingProvider,
|
|
126
|
+
screenShareProvider = _ref2.screenShareProvider,
|
|
127
|
+
sharedScreenShareSharedDataSource = _ref2.sharedScreenShareSharedDataSource,
|
|
128
|
+
dialogProvider = _ref2.dialogProvider;
|
|
131
129
|
(0, _classCallCheck2["default"])(this, ControlBarStore);
|
|
132
130
|
(0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.createLogger)({
|
|
133
131
|
prefix: 'ControlBarStore'
|
|
@@ -155,34 +153,25 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
155
153
|
});
|
|
156
154
|
(0, _defineProperty2["default"])(this, "_participantDialogId", '');
|
|
157
155
|
_classPrivateFieldInitSpec(this, _A, _init_leaveConfirmRef(this, undefined));
|
|
158
|
-
_classPrivateFieldInitSpec(this, _B,
|
|
159
|
-
_classPrivateFieldInitSpec(this, _C,
|
|
160
|
-
_classPrivateFieldInitSpec(this, _D,
|
|
161
|
-
_classPrivateFieldInitSpec(this, _E,
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
_classPrivateFieldInitSpec(this, _F, _init_recordShareBounds(this, new Map()));
|
|
168
|
-
_classPrivateFieldInitSpec(this, _G, _init_cloudRecordingState(this, _type3.FcrRecordingState.Stopped));
|
|
169
|
-
_classPrivateFieldInitSpec(this, _H, _init_isHost(this, false));
|
|
170
|
-
_classPrivateFieldInitSpec(this, _I, _init_roomDuration(this, 0));
|
|
171
|
-
_classPrivateFieldInitSpec(this, _J, _init_startTime(this, new Date().getTime()));
|
|
172
|
-
_classPrivateFieldInitSpec(this, _K, _init_playUrl(this, ''));
|
|
173
|
-
_classPrivateFieldInitSpec(this, _L, _init_liveStreamingState(this, _type3.FcrLiveStreamingState.STOPPED));
|
|
174
|
-
_classPrivateFieldInitSpec(this, _M, _init_allApplicationWindows(this, []));
|
|
175
|
-
_classPrivateFieldInitSpec(this, _N, _init_roomInfo(this, {
|
|
156
|
+
_classPrivateFieldInitSpec(this, _B, _init_recordShareBounds(this, new Map()));
|
|
157
|
+
_classPrivateFieldInitSpec(this, _C, _init_cloudRecordingState(this, _type2.FcrRecordingState.Stopped));
|
|
158
|
+
_classPrivateFieldInitSpec(this, _D, _init_isHost(this, false));
|
|
159
|
+
_classPrivateFieldInitSpec(this, _E, _init_roomDuration(this, 0));
|
|
160
|
+
_classPrivateFieldInitSpec(this, _F, _init_startTime(this, new Date().getTime()));
|
|
161
|
+
_classPrivateFieldInitSpec(this, _G, _init_playUrl(this, ''));
|
|
162
|
+
_classPrivateFieldInitSpec(this, _H, _init_liveStreamingState(this, _type2.FcrLiveStreamingState.STOPPED));
|
|
163
|
+
_classPrivateFieldInitSpec(this, _I, _init_allApplicationWindows(this, []));
|
|
164
|
+
_classPrivateFieldInitSpec(this, _J, _init_roomInfo(this, {
|
|
176
165
|
roomId: '',
|
|
177
166
|
roomName: '',
|
|
178
|
-
roomType:
|
|
167
|
+
roomType: _type.FcrRoomType.Mainroom,
|
|
179
168
|
password: '',
|
|
180
169
|
inviteLink: ''
|
|
181
170
|
}));
|
|
182
|
-
_classPrivateFieldInitSpec(this,
|
|
183
|
-
_classPrivateFieldInitSpec(this,
|
|
184
|
-
_classPrivateFieldInitSpec(this,
|
|
185
|
-
_classPrivateFieldInitSpec(this,
|
|
171
|
+
_classPrivateFieldInitSpec(this, _K, _init_isShowMeetingDetailPortal(this, false));
|
|
172
|
+
_classPrivateFieldInitSpec(this, _L, _init_hiddenShareActionNav(this, false));
|
|
173
|
+
_classPrivateFieldInitSpec(this, _M, _init_boardOwnerUser(this, ''));
|
|
174
|
+
_classPrivateFieldInitSpec(this, _N, _init_currentShareDisplayId(this, 0));
|
|
186
175
|
this._uiEventStore = uiEventStore;
|
|
187
176
|
this._roomControl = roomControl;
|
|
188
177
|
this._securityStore = securityStore;
|
|
@@ -194,13 +183,16 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
194
183
|
this._sharedMeetingTimeDataSource = sharedMeetingTimeDataSource;
|
|
195
184
|
this._messageProvider = messageProvider;
|
|
196
185
|
this._sharedSecuritySharedDataSource = sharedSecuritySharedDataSource;
|
|
197
|
-
this.
|
|
186
|
+
this._annotationProvider = annotationProvider;
|
|
187
|
+
this._sharingProvider = sharingProvider;
|
|
198
188
|
this.startTime = (_roomControl$getRoomS = (_roomControl$getRoomS2 = roomControl.getRoomSchedule()) === null || _roomControl$getRoomS2 === void 0 ? void 0 : _roomControl$getRoomS2.startTime) !== null && _roomControl$getRoomS !== void 0 ? _roomControl$getRoomS : new Date().getTime();
|
|
199
189
|
this.roomInfo = roomControl.getRoomInfo();
|
|
200
190
|
this.roomDuration = (_roomControl$getRoomS3 = (_roomControl$getRoomS4 = roomControl.getRoomSchedule()) === null || _roomControl$getRoomS4 === void 0 ? void 0 : _roomControl$getRoomS4.duration) !== null && _roomControl$getRoomS3 !== void 0 ? _roomControl$getRoomS3 : 0;
|
|
201
191
|
this.liveStreamingState = roomControl.getLiveStreamingState();
|
|
202
192
|
this._deviceProvider = deviceProvider;
|
|
203
193
|
this._abilityProvider = abilityProvider;
|
|
194
|
+
this._screenShareProvider = screenShareProvider;
|
|
195
|
+
this._sharedScreenShareSharedDataSource = sharedScreenShareSharedDataSource;
|
|
204
196
|
this._dialogProvider = dialogProvider;
|
|
205
197
|
this._dialogProvider.addObserver(this._dialogObsever);
|
|
206
198
|
this._roomObserver = {
|
|
@@ -221,7 +213,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
221
213
|
}
|
|
222
214
|
};
|
|
223
215
|
roomControl.addObserver(this._roomObserver);
|
|
224
|
-
roomControl.getBoardControl().addObserver(this._boardObserver);
|
|
216
|
+
roomControl.getSharingControl().getBoardControl().addObserver(this._boardObserver);
|
|
225
217
|
}
|
|
226
218
|
return (0, _createClass2["default"])(ControlBarStore, [{
|
|
227
219
|
key: "leaveConfirmRef",
|
|
@@ -232,7 +224,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
232
224
|
_classPrivateFieldSet(_A, this, v);
|
|
233
225
|
}
|
|
234
226
|
}, {
|
|
235
|
-
key: "
|
|
227
|
+
key: "recordShareBounds",
|
|
236
228
|
get: function get() {
|
|
237
229
|
return _classPrivateFieldGet(_B, this);
|
|
238
230
|
},
|
|
@@ -240,7 +232,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
240
232
|
_classPrivateFieldSet(_B, this, v);
|
|
241
233
|
}
|
|
242
234
|
}, {
|
|
243
|
-
key: "
|
|
235
|
+
key: "cloudRecordingState",
|
|
244
236
|
get: function get() {
|
|
245
237
|
return _classPrivateFieldGet(_C, this);
|
|
246
238
|
},
|
|
@@ -248,7 +240,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
248
240
|
_classPrivateFieldSet(_C, this, v);
|
|
249
241
|
}
|
|
250
242
|
}, {
|
|
251
|
-
key: "
|
|
243
|
+
key: "isHost",
|
|
252
244
|
get: function get() {
|
|
253
245
|
return _classPrivateFieldGet(_D, this);
|
|
254
246
|
},
|
|
@@ -256,7 +248,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
256
248
|
_classPrivateFieldSet(_D, this, v);
|
|
257
249
|
}
|
|
258
250
|
}, {
|
|
259
|
-
key: "
|
|
251
|
+
key: "roomDuration",
|
|
260
252
|
get: function get() {
|
|
261
253
|
return _classPrivateFieldGet(_E, this);
|
|
262
254
|
},
|
|
@@ -264,7 +256,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
264
256
|
_classPrivateFieldSet(_E, this, v);
|
|
265
257
|
}
|
|
266
258
|
}, {
|
|
267
|
-
key: "
|
|
259
|
+
key: "startTime",
|
|
268
260
|
get: function get() {
|
|
269
261
|
return _classPrivateFieldGet(_F, this);
|
|
270
262
|
},
|
|
@@ -272,7 +264,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
272
264
|
_classPrivateFieldSet(_F, this, v);
|
|
273
265
|
}
|
|
274
266
|
}, {
|
|
275
|
-
key: "
|
|
267
|
+
key: "playUrl",
|
|
276
268
|
get: function get() {
|
|
277
269
|
return _classPrivateFieldGet(_G, this);
|
|
278
270
|
},
|
|
@@ -280,7 +272,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
280
272
|
_classPrivateFieldSet(_G, this, v);
|
|
281
273
|
}
|
|
282
274
|
}, {
|
|
283
|
-
key: "
|
|
275
|
+
key: "liveStreamingState",
|
|
284
276
|
get: function get() {
|
|
285
277
|
return _classPrivateFieldGet(_H, this);
|
|
286
278
|
},
|
|
@@ -288,7 +280,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
288
280
|
_classPrivateFieldSet(_H, this, v);
|
|
289
281
|
}
|
|
290
282
|
}, {
|
|
291
|
-
key: "
|
|
283
|
+
key: "allApplicationWindows",
|
|
292
284
|
get: function get() {
|
|
293
285
|
return _classPrivateFieldGet(_I, this);
|
|
294
286
|
},
|
|
@@ -296,7 +288,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
296
288
|
_classPrivateFieldSet(_I, this, v);
|
|
297
289
|
}
|
|
298
290
|
}, {
|
|
299
|
-
key: "
|
|
291
|
+
key: "roomInfo",
|
|
300
292
|
get: function get() {
|
|
301
293
|
return _classPrivateFieldGet(_J, this);
|
|
302
294
|
},
|
|
@@ -304,7 +296,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
304
296
|
_classPrivateFieldSet(_J, this, v);
|
|
305
297
|
}
|
|
306
298
|
}, {
|
|
307
|
-
key: "
|
|
299
|
+
key: "isShowMeetingDetailPortal",
|
|
308
300
|
get: function get() {
|
|
309
301
|
return _classPrivateFieldGet(_K, this);
|
|
310
302
|
},
|
|
@@ -312,7 +304,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
312
304
|
_classPrivateFieldSet(_K, this, v);
|
|
313
305
|
}
|
|
314
306
|
}, {
|
|
315
|
-
key: "
|
|
307
|
+
key: "hiddenShareActionNav",
|
|
316
308
|
get: function get() {
|
|
317
309
|
return _classPrivateFieldGet(_L, this);
|
|
318
310
|
},
|
|
@@ -320,7 +312,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
320
312
|
_classPrivateFieldSet(_L, this, v);
|
|
321
313
|
}
|
|
322
314
|
}, {
|
|
323
|
-
key: "
|
|
315
|
+
key: "boardOwnerUser",
|
|
324
316
|
get: function get() {
|
|
325
317
|
return _classPrivateFieldGet(_M, this);
|
|
326
318
|
},
|
|
@@ -328,7 +320,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
328
320
|
_classPrivateFieldSet(_M, this, v);
|
|
329
321
|
}
|
|
330
322
|
}, {
|
|
331
|
-
key: "
|
|
323
|
+
key: "currentShareDisplayId",
|
|
332
324
|
get: function get() {
|
|
333
325
|
return _classPrivateFieldGet(_N, this);
|
|
334
326
|
},
|
|
@@ -336,41 +328,24 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
336
328
|
_classPrivateFieldSet(_N, this, v);
|
|
337
329
|
}
|
|
338
330
|
}, {
|
|
339
|
-
key: "
|
|
340
|
-
get: function get() {
|
|
341
|
-
return _classPrivateFieldGet(_O, this);
|
|
342
|
-
},
|
|
343
|
-
set: function set(v) {
|
|
344
|
-
_classPrivateFieldSet(_O, this, v);
|
|
345
|
-
}
|
|
346
|
-
}, {
|
|
347
|
-
key: "hiddenShareActionNav",
|
|
331
|
+
key: "shareWithAudio",
|
|
348
332
|
get: function get() {
|
|
349
|
-
return
|
|
350
|
-
},
|
|
351
|
-
set: function set(v) {
|
|
352
|
-
_classPrivateFieldSet(_P, this, v);
|
|
333
|
+
return this._sharedScreenShareSharedDataSource.shareWithAudio;
|
|
353
334
|
}
|
|
354
335
|
}, {
|
|
355
|
-
key: "
|
|
336
|
+
key: "currentShareId",
|
|
356
337
|
get: function get() {
|
|
357
|
-
return
|
|
358
|
-
},
|
|
359
|
-
set: function set(v) {
|
|
360
|
-
_classPrivateFieldSet(_Q, this, v);
|
|
338
|
+
return this._sharedScreenShareSharedDataSource.currentShareId;
|
|
361
339
|
}
|
|
362
340
|
}, {
|
|
363
|
-
key: "
|
|
341
|
+
key: "currentShareType",
|
|
364
342
|
get: function get() {
|
|
365
|
-
return
|
|
366
|
-
},
|
|
367
|
-
set: function set(v) {
|
|
368
|
-
_classPrivateFieldSet(_R, this, v);
|
|
343
|
+
return this._sharedScreenShareSharedDataSource.currentShareType;
|
|
369
344
|
}
|
|
370
345
|
}, {
|
|
371
|
-
key: "
|
|
346
|
+
key: "currentShareBounds",
|
|
372
347
|
get: function get() {
|
|
373
|
-
return this.
|
|
348
|
+
return this._sharedScreenShareSharedDataSource.currentSelectionBounds;
|
|
374
349
|
}
|
|
375
350
|
}, {
|
|
376
351
|
key: "privilegeProvider",
|
|
@@ -427,6 +402,21 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
427
402
|
get: function get() {
|
|
428
403
|
return this._securityStore.hasEndRoomPermission();
|
|
429
404
|
}
|
|
405
|
+
}, {
|
|
406
|
+
key: "hasAnnotationAllowWritePermission",
|
|
407
|
+
get: function get() {
|
|
408
|
+
return this._securityStore.hasAnnotationAllowWritePermission();
|
|
409
|
+
}
|
|
410
|
+
}, {
|
|
411
|
+
key: "hasAnnotationStartPermission",
|
|
412
|
+
get: function get() {
|
|
413
|
+
return this._securityStore.hasAnnotationStartPermission();
|
|
414
|
+
}
|
|
415
|
+
}, {
|
|
416
|
+
key: "allowAnnotationWriteState",
|
|
417
|
+
get: function get() {
|
|
418
|
+
return this._securityStore.allowAnnotationWriteState();
|
|
419
|
+
}
|
|
430
420
|
}, {
|
|
431
421
|
key: "totalHourText",
|
|
432
422
|
get: function get() {
|
|
@@ -503,45 +493,35 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
503
493
|
get: function get() {
|
|
504
494
|
return this._sharedMemberDataSource.memberUserInfoList;
|
|
505
495
|
}
|
|
496
|
+
}, {
|
|
497
|
+
key: "shareAudioProcessingChannel",
|
|
498
|
+
get: function get() {
|
|
499
|
+
return this._sharedScreenShareSharedDataSource.currentShareAudioProcessingChannel;
|
|
500
|
+
}
|
|
506
501
|
}, {
|
|
507
502
|
key: "checkedStateMap",
|
|
508
503
|
get: function get() {
|
|
509
504
|
return this._sharedSecuritySharedDataSource.checkedStateMap;
|
|
510
505
|
}
|
|
511
506
|
}, {
|
|
512
|
-
key: "
|
|
513
|
-
|
|
514
|
-
this.
|
|
507
|
+
key: "isSharingScreen",
|
|
508
|
+
get: function get() {
|
|
509
|
+
return this._sharedScreenShareSharedDataSource.isSharingScreen;
|
|
515
510
|
}
|
|
516
511
|
}, {
|
|
517
|
-
key: "
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
// payload.currentShareAudioProcessingChannel,
|
|
521
|
-
// );
|
|
522
|
-
this.currentShareId = payload.currentShareId;
|
|
523
|
-
this.currentShareType = payload.currentShareType;
|
|
524
|
-
this.currentShareBounds = payload.currentShareBounds;
|
|
525
|
-
this.setShareWithAudioState(payload.shareWithAudio);
|
|
512
|
+
key: "isReplaceScreen",
|
|
513
|
+
get: function get() {
|
|
514
|
+
return this._sharedScreenShareSharedDataSource.isReplaceScreen;
|
|
526
515
|
}
|
|
527
516
|
}, {
|
|
528
|
-
key: "
|
|
529
|
-
value: function
|
|
530
|
-
|
|
531
|
-
type = payload.type,
|
|
532
|
-
bounds = payload.bounds;
|
|
533
|
-
this.currentShareId = id;
|
|
534
|
-
this.currentShareType = type;
|
|
535
|
-
this.currentShareBounds = bounds;
|
|
536
|
-
// this.setControlBarWindowBounds();
|
|
517
|
+
key: "setCheckedStateMap",
|
|
518
|
+
value: function setCheckedStateMap(val) {
|
|
519
|
+
this._sharedSecuritySharedDataSource.setCheckedStateMap(val);
|
|
537
520
|
}
|
|
538
521
|
}, {
|
|
539
522
|
key: "setShareWithAudioState",
|
|
540
523
|
value: function setShareWithAudioState(withAudio) {
|
|
541
|
-
this.
|
|
542
|
-
this._uiEventStore.sendEvent(_constant.FcrUIAction.SET_SHARE_WITH_AUDIO, {
|
|
543
|
-
withAudio: withAudio
|
|
544
|
-
});
|
|
524
|
+
this._screenShareProvider.toggleScreenshareWithAudio(withAudio);
|
|
545
525
|
}
|
|
546
526
|
}, {
|
|
547
527
|
key: "showLockedRoomToast",
|
|
@@ -554,17 +534,21 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
554
534
|
}, {
|
|
555
535
|
key: "createNewShare",
|
|
556
536
|
value: function createNewShare() {
|
|
557
|
-
this.
|
|
537
|
+
this._screenShareProvider.bootstrap();
|
|
558
538
|
}
|
|
559
539
|
}, {
|
|
560
540
|
key: "handlerStopShare",
|
|
561
541
|
value: function handlerStopShare() {
|
|
562
|
-
this.
|
|
542
|
+
if (this.isSharingScreen) {
|
|
543
|
+
this._screenShareProvider.stop();
|
|
544
|
+
} else {
|
|
545
|
+
this.log('handlerStopShare: share screen is starting, please wait a moment to operate');
|
|
546
|
+
}
|
|
563
547
|
}
|
|
564
548
|
}, {
|
|
565
549
|
key: "setShareAudioProcessingChannel",
|
|
566
550
|
value: function setShareAudioProcessingChannel(target) {
|
|
567
|
-
this.
|
|
551
|
+
this._sharedScreenShareSharedDataSource.setCurrentShareAudioProcessingChannel(target);
|
|
568
552
|
}
|
|
569
553
|
|
|
570
554
|
// more
|
|
@@ -607,7 +591,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
607
591
|
var dispose = (0, _mobx.reaction)(function () {
|
|
608
592
|
return _this2.liveStreamingState;
|
|
609
593
|
}, function (liveStreamingState) {
|
|
610
|
-
if (liveStreamingState ===
|
|
594
|
+
if (liveStreamingState === _type2.FcrLiveStreamingState.STOPPED) {
|
|
611
595
|
_this2._liveStreamingDialogKey && _this2._uiEventStore.closeDialog(_this2._liveStreamingDialogKey);
|
|
612
596
|
dispose();
|
|
613
597
|
}
|
|
@@ -656,7 +640,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
656
640
|
key: "startCloudRecording",
|
|
657
641
|
value: function startCloudRecording() {
|
|
658
642
|
this._roomControl.startCloudRecording({
|
|
659
|
-
audioProfile:
|
|
643
|
+
audioProfile: _type2.FcrCloudRecordingAudioProfile.DEFAULT,
|
|
660
644
|
videoEncoderConfig: {
|
|
661
645
|
dimensions: {
|
|
662
646
|
width: 1280,
|
|
@@ -719,6 +703,16 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
719
703
|
var _this$_localStoragePr;
|
|
720
704
|
return (_this$_localStoragePr = this._localStorageProvider) === null || _this$_localStoragePr === void 0 ? void 0 : _this$_localStoragePr.read(this.meetingTimeKey);
|
|
721
705
|
}
|
|
706
|
+
}, {
|
|
707
|
+
key: "toggleAnnotation",
|
|
708
|
+
value: function toggleAnnotation() {
|
|
709
|
+
this._annotationProvider.toggleAnnotation();
|
|
710
|
+
}
|
|
711
|
+
}, {
|
|
712
|
+
key: "setAllAnnotationWrite",
|
|
713
|
+
value: function setAllAnnotationWrite(allow) {
|
|
714
|
+
this._securityStore.setAllowAnnotation(allow);
|
|
715
|
+
}
|
|
722
716
|
}, {
|
|
723
717
|
key: "release",
|
|
724
718
|
value: function release() {
|
|
@@ -726,37 +720,38 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
726
720
|
return disposer();
|
|
727
721
|
});
|
|
728
722
|
this._disposers = [];
|
|
729
|
-
this._roomControl.getBoardControl().removeObserver(this._boardObserver);
|
|
723
|
+
this._roomControl.getSharingControl().getBoardControl().removeObserver(this._boardObserver);
|
|
730
724
|
this._dialogProvider.removeObserver(this._dialogObsever);
|
|
731
725
|
this._roomControl.removeObserver(this._roomObserver);
|
|
732
726
|
this.recordShareBounds.clear();
|
|
733
727
|
}
|
|
728
|
+
}, {
|
|
729
|
+
key: "log",
|
|
730
|
+
value: function log(info) {
|
|
731
|
+
this.logger.info(info);
|
|
732
|
+
}
|
|
734
733
|
}, {
|
|
735
734
|
key: "_resetMessageCount",
|
|
736
735
|
value: function _resetMessageCount() {
|
|
737
|
-
this.newMessageCount = (0, _defineProperty2["default"])({},
|
|
736
|
+
this.newMessageCount = (0, _defineProperty2["default"])({}, _type3.FcrUIRoomType.MAIN_ROOM, 0);
|
|
738
737
|
}
|
|
739
738
|
}]);
|
|
740
739
|
}();
|
|
741
740
|
_ControlBarStore = ControlBarStore;
|
|
742
|
-
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ControlBarStore, [[_leaveConfirmRefDecs, 17, "leaveConfirmRef"], [_mobx.observable, 1, "
|
|
741
|
+
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ControlBarStore, [[_leaveConfirmRefDecs, 17, "leaveConfirmRef"], [_mobx.observable, 1, "recordShareBounds"], [_mobx.observable, 1, "cloudRecordingState"], [_mobx.observable, 1, "isHost"], [_mobx.observable, 1, "roomDuration"], [_mobx.observable, 1, "startTime"], [_mobx.observable, 1, "playUrl"], [_mobx.observable, 1, "liveStreamingState"], [_mobx.observable, 1, "allApplicationWindows"], [_mobx.observable, 1, "roomInfo"], [_mobx.observable, 1, "isShowMeetingDetailPortal"], [_mobx.observable, 1, "hiddenShareActionNav"], [_mobx.observable, 1, "boardOwnerUser"], [_mobx.observable, 1, "currentShareDisplayId"], [_mobx.computed, 3, "hasSecurityPermission"], [_mobx.computed, 3, "hasStartCloudRecordingPermission"], [_mobx.computed, 3, "hasStopLiveStreamingPermission"], [_mobx.computed, 3, "hasGetLiveStreamingUrlPermission"], [_mobx.computed, 3, "hasStartLiveStreamingPermission"], [_mobx.computed, 3, "hasAssignHostBeforeLeavingPermission"], [_mobx.computed, 3, "hasEndRoomPermission"], [_mobx.computed, 3, "hasAnnotationAllowWritePermission"], [_mobx.computed, 3, "hasAnnotationStartPermission"], [_mobx.computed, 3, "allowAnnotationWriteState"], [_mobx.computed, 3, "totalHourText"], [_mobx.computed, 3, "totalMinuteText"], [_mobx.computed, 3, "meetingTimeStatus"], [_mobx.computed, 3, "meetingTime"], [_mobx.computed, 3, "meetingTimeKey"], [_mobx.computed, 3, "roomId"], [_mobx.computed, 3, "meetingId"], [_mobx.computed, 3, "checkedStateMap"], [_setCheckedStateMapDecs, 18, "setCheckedStateMap"], [_setShareWithAudioStateDecs, 18, "setShareWithAudioState"], [_showLockedRoomToastDecs, 18, "showLockedRoomToast"], [_createNewShareDecs, 18, "createNewShare"], [_handlerStopShareDecs, 18, "handlerStopShare"], [_setShareAudioProcessingChannelDecs, 18, "setShareAudioProcessingChannel"], [_handleMoreClickDecs, 18, "handleMoreClick"], [_decorator.bound, 2, "openLiveStreamingDialog"], [_pauseCloudRecordingDecs, 2, "pauseCloudRecording"], [_resumeCloudRecordingDecs, 2, "resumeCloudRecording"], [_stopCloudRecordingDecs, 2, "stopCloudRecording"], [_decorator.bound, 2, "startCloudRecording"], [_showToastDecs, 18, "showToast"], [_setShowMeetingDetailPortalDecs, 18, "setShowMeetingDetailPortal"], [_setEnableWaitingRoomDecs, 18, "setEnableWaitingRoom"], [_handleLeaveRoomDecs, 18, "handleLeaveRoom"], [_decorator.bound, 2, "getLocalMeetingTime"], [_decorator.bound, 2, "toggleAnnotation"], [_decorator.bound, 2, "setAllAnnotationWrite"], [_decorator.bound, 2, "log"], [_resetMessageCountDecs, 18, "_resetMessageCount"]], []).e, 15);
|
|
743
742
|
_init_leaveConfirmRef = _applyDecs$e[0];
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
_init_hiddenShareActionNav = _applyDecs$e[15];
|
|
759
|
-
_init_boardOwnerUser = _applyDecs$e[16];
|
|
760
|
-
_init_currentShareDisplayId = _applyDecs$e[17];
|
|
761
|
-
_initProto = _applyDecs$e[18];
|
|
743
|
+
_init_recordShareBounds = _applyDecs$e[1];
|
|
744
|
+
_init_cloudRecordingState = _applyDecs$e[2];
|
|
745
|
+
_init_isHost = _applyDecs$e[3];
|
|
746
|
+
_init_roomDuration = _applyDecs$e[4];
|
|
747
|
+
_init_startTime = _applyDecs$e[5];
|
|
748
|
+
_init_playUrl = _applyDecs$e[6];
|
|
749
|
+
_init_liveStreamingState = _applyDecs$e[7];
|
|
750
|
+
_init_allApplicationWindows = _applyDecs$e[8];
|
|
751
|
+
_init_roomInfo = _applyDecs$e[9];
|
|
752
|
+
_init_isShowMeetingDetailPortal = _applyDecs$e[10];
|
|
753
|
+
_init_hiddenShareActionNav = _applyDecs$e[11];
|
|
754
|
+
_init_boardOwnerUser = _applyDecs$e[12];
|
|
755
|
+
_init_currentShareDisplayId = _applyDecs$e[13];
|
|
756
|
+
_initProto = _applyDecs$e[14];
|
|
762
757
|
var StoreContext = exports.StoreContext = /*#__PURE__*/(0, _react.createContext)(null);
|
|
@@ -23,6 +23,8 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
23
23
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
24
24
|
require("core-js/modules/es.array.concat.js");
|
|
25
25
|
require("core-js/modules/es.array.find.js");
|
|
26
|
+
require("core-js/modules/es.date.to-json.js");
|
|
27
|
+
require("core-js/modules/es.json.stringify.js");
|
|
26
28
|
require("core-js/modules/es.object.to-string.js");
|
|
27
29
|
require("core-js/modules/esnext.async-iterator.find.js");
|
|
28
30
|
require("core-js/modules/esnext.iterator.constructor.js");
|
|
@@ -56,6 +58,7 @@ var _tools = require("../../utilities/tools");
|
|
|
56
58
|
var _enums = require("./enums");
|
|
57
59
|
var _constant = require("../../utilities/constant");
|
|
58
60
|
var _type2 = require("../../type");
|
|
61
|
+
var _annotationButton = require("./components/annotation-button");
|
|
59
62
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
60
63
|
var _excluded = ["x", "y"];
|
|
61
64
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -72,25 +75,27 @@ var ControlBarView = exports.ControlBarView = (0, _mobxReact.observer)(function
|
|
|
72
75
|
setShareAudioProcessingChannel = _useContext2.setShareAudioProcessingChannel,
|
|
73
76
|
createNewShare = _useContext2.createNewShare,
|
|
74
77
|
currentShareId = _useContext2.currentShareId,
|
|
78
|
+
isSharingScreen = _useContext2.isSharingScreen,
|
|
75
79
|
handleMoreClick = _useContext2.handleMoreClick,
|
|
76
80
|
liveStreamingState = _useContext2.liveStreamingState,
|
|
77
81
|
cloudRecordingState = _useContext2.cloudRecordingState,
|
|
78
82
|
hasStartCloudRecordingPermission = _useContext2.hasStartCloudRecordingPermission,
|
|
79
83
|
hasStopLiveStreamingPermission = _useContext2.hasStopLiveStreamingPermission,
|
|
84
|
+
hasAnnotationStartPermission = _useContext2.hasAnnotationStartPermission,
|
|
80
85
|
hasSecurityPermission = _useContext2.hasSecurityPermission,
|
|
81
|
-
allApplicationWindows = _useContext2.allApplicationWindows,
|
|
82
86
|
isShowMeetingDetailPortal = _useContext2.isShowMeetingDetailPortal,
|
|
83
87
|
setShowMeetingDetailPortal = _useContext2.setShowMeetingDetailPortal,
|
|
84
88
|
setEnableWaitingRoom = _useContext2.setEnableWaitingRoom,
|
|
85
89
|
currentShareDisplayId = _useContext2.currentShareDisplayId,
|
|
86
90
|
privilegeProvider = _useContext2.privilegeProvider,
|
|
87
91
|
newMessageCount = _useContext2.newMessageCount,
|
|
88
|
-
currentShareType = _useContext2.currentShareType,
|
|
89
92
|
currentShareBounds = _useContext2.currentShareBounds,
|
|
90
93
|
recordShareBounds = _useContext2.recordShareBounds,
|
|
91
94
|
showLockedRoomToast = _useContext2.showLockedRoomToast,
|
|
92
95
|
checkedStateMap = _useContext2.checkedStateMap,
|
|
93
|
-
setCheckedStateMap = _useContext2.setCheckedStateMap
|
|
96
|
+
setCheckedStateMap = _useContext2.setCheckedStateMap,
|
|
97
|
+
isReplaceScreen = _useContext2.isReplaceScreen,
|
|
98
|
+
log = _useContext2.log;
|
|
94
99
|
// 控制栏本身的高度
|
|
95
100
|
var NAV_HEIGHT = 84;
|
|
96
101
|
// 鼠标移开后自动隐藏的时间
|
|
@@ -279,12 +284,14 @@ var ControlBarView = exports.ControlBarView = (0, _mobxReact.observer)(function
|
|
|
279
284
|
y: y
|
|
280
285
|
}, bounds);
|
|
281
286
|
browserWindow.setBounds(screenBounds);
|
|
287
|
+
log("[ControlBarView]: [getScreenBounds][screen-share], screenBounds: ".concat(JSON.stringify(screenBounds)));
|
|
282
288
|
} else {
|
|
283
289
|
recordShareBounds.clear();
|
|
284
290
|
screenBounds = (0, _tools.getCurrentSharingWorkArea)({
|
|
285
291
|
currentShareBounds: currentShareBounds
|
|
286
292
|
});
|
|
287
293
|
recordShareBounds.set(currentShareBounds, screenBounds);
|
|
294
|
+
log("[ControlBarView]: [getScreenBounds][screen-share], screenBounds: ".concat(JSON.stringify(screenBounds)));
|
|
288
295
|
}
|
|
289
296
|
return screenBounds;
|
|
290
297
|
}
|
|
@@ -325,6 +332,45 @@ var ControlBarView = exports.ControlBarView = (0, _mobxReact.observer)(function
|
|
|
325
332
|
clearInterval(windowFocusTimerRef.current);
|
|
326
333
|
};
|
|
327
334
|
}, [currentShareId]);
|
|
335
|
+
|
|
336
|
+
// useEffect(() => {
|
|
337
|
+
// console.log('isReplaceScreen', isReplaceScreen);
|
|
338
|
+
// return () => {
|
|
339
|
+
// if (isReplaceScreen) {
|
|
340
|
+
// const mainWindowVisible = window.runtime.browserWindow.isVisible();
|
|
341
|
+
// log(
|
|
342
|
+
// `[ControlBarView]:[screen-share]: control bar is destroying, main window is ${mainWindowVisible ? 'visible' : 'hidden'}, isReplaceScreen: ${isReplaceScreen}`,
|
|
343
|
+
// );
|
|
344
|
+
// // 当 control bar 卸载时,看看主窗口是否隐藏,如果隐藏,则显示主窗口
|
|
345
|
+
// if (!mainWindowVisible) {
|
|
346
|
+
// window.runtime.browserWindow.show();
|
|
347
|
+
// log(
|
|
348
|
+
// `[ControlBarView]:[screen-share]: main window is hiding at control bar destroyed, show main window`,
|
|
349
|
+
// );
|
|
350
|
+
// }
|
|
351
|
+
// // 当 control bar 卸载时,看看 controlbar 的 window 是否仍然存在 ,如果存在则隐藏
|
|
352
|
+
// if (browserWindow.isVisible()) {
|
|
353
|
+
// browserWindow.hide();
|
|
354
|
+
// log(
|
|
355
|
+
// `[ControlBarView]:[screen-share]: control bar window is showing at control bar destroyed, hide control bar window`,
|
|
356
|
+
// );
|
|
357
|
+
// }
|
|
358
|
+
// }
|
|
359
|
+
// };
|
|
360
|
+
// }, [isReplaceScreen]);
|
|
361
|
+
|
|
362
|
+
// useEffect(() => {
|
|
363
|
+
// return () => {
|
|
364
|
+
// log(
|
|
365
|
+
// `[ControlBarView]:[screen-share]: control bar is destroying, sharing state is ${isSharingScreen ? 'sharing' : 'not sharing'}`,
|
|
366
|
+
// );
|
|
367
|
+
// // 如果 controlbar 销毁后共享状态仍然进行,则再次尝试停止共享
|
|
368
|
+
// if (isSharingScreen) {
|
|
369
|
+
// handlerStopShare();
|
|
370
|
+
// }
|
|
371
|
+
// };
|
|
372
|
+
// }, [isSharingScreen]);
|
|
373
|
+
|
|
328
374
|
return currentShareId ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", _objectSpread(_objectSpread({}, bind()), {}, {
|
|
329
375
|
style: {
|
|
330
376
|
width: 'fit-content',
|
|
@@ -389,7 +435,7 @@ var ControlBarView = exports.ControlBarView = (0, _mobxReact.observer)(function
|
|
|
389
435
|
}
|
|
390
436
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_shareScreenButton.ShareScreenButton, {
|
|
391
437
|
onCreateNewShareButtonClick: createNewShare
|
|
392
|
-
}), hasStopLiveStreamingPermission && liveStreamingState === _type.FcrLiveStreamingState.STARTED && /*#__PURE__*/(0, _jsxRuntime.jsx)(_stopLiveStreaming.StopLiveStreamingButton, {}), hasStartCloudRecordingPermission && cloudRecordingState !== _type.FcrRecordingState.Stopped && /*#__PURE__*/(0, _jsxRuntime.jsx)(_cloudRecordingButtons.CloudRecordingButtons, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_badge.FcrBadge, {
|
|
438
|
+
}), hasAnnotationStartPermission && /*#__PURE__*/(0, _jsxRuntime.jsx)(_annotationButton.AnnotationButton, {}), hasStopLiveStreamingPermission && liveStreamingState === _type.FcrLiveStreamingState.STARTED && /*#__PURE__*/(0, _jsxRuntime.jsx)(_stopLiveStreaming.StopLiveStreamingButton, {}), hasStartCloudRecordingPermission && cloudRecordingState !== _type.FcrRecordingState.Stopped && /*#__PURE__*/(0, _jsxRuntime.jsx)(_cloudRecordingButtons.CloudRecordingButtons, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_badge.FcrBadge, {
|
|
393
439
|
count: newMessageCount[_type2.FcrUIRoomType.MAIN_ROOM] || 0,
|
|
394
440
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_more.More, {
|
|
395
441
|
visible: moreVisible,
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
export declare const title = "Annotation tool bar";
|
|
3
|
+
export declare const config: Electron.BrowserWindowConstructorOptions;
|
|
4
|
+
export declare const AnnotationBarDialog: (props: PropsWithChildren<{}>) => import("react/jsx-runtime").JSX.Element;
|