fcr-ui-scene 3.6.2 → 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 +1 -0
- package/lib/creator.js +38 -26
- package/lib/electron/app.js +5 -4
- package/lib/electron/bootstrap-dev.js +3 -0
- package/lib/electron/injections.d.ts +3 -2
- package/lib/electron/injections.js +5 -6
- package/lib/electron/main.js +15 -11
- package/lib/electron/window.js +0 -3
- package/lib/fragments/annotation/index.d.ts +1 -0
- package/lib/fragments/annotation/index.js +55 -40
- package/lib/fragments/annotation/store.d.ts +7 -2
- package/lib/fragments/annotation/store.js +170 -90
- package/lib/fragments/annotation/view.d.ts +1 -0
- package/lib/fragments/annotation/view.js +10 -2
- package/lib/modules/action-bar/index.css +4 -0
- package/lib/modules/action-bar/store.d.ts +1 -7
- package/lib/modules/action-bar/store.js +35 -82
- package/lib/modules/annotation/board-cursor.css +76 -0
- package/lib/modules/annotation/components/control-bar/index.js +42 -2
- package/lib/modules/annotation/components/toolbar/components/graphic-tool/graphic-panel/index.js +3 -1
- package/lib/modules/annotation/components/toolbar/components/graphic-tool/graphic-panel/libs.d.ts +1 -0
- package/lib/modules/annotation/components/toolbar/components/graphic-tool/graphic-panel/libs.js +11 -5
- package/lib/modules/annotation/components/toolbar/components/item/item.d.ts +1 -0
- package/lib/modules/annotation/components/toolbar/components/item/item.js +3 -2
- package/lib/modules/annotation/index.d.ts +2 -0
- package/lib/modules/annotation/index.js +2 -1
- package/lib/modules/annotation/store.d.ts +11 -3
- package/lib/modules/annotation/store.js +209 -184
- package/lib/modules/annotation/style.css +3 -3
- package/lib/modules/annotation/view.d.ts +1 -0
- package/lib/modules/annotation/view.js +26 -9
- 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 +2 -2
- package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.js +4 -4
- 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/index.css +37 -0
- package/lib/modules/control-bar/index.d.ts +0 -4
- package/lib/modules/control-bar/index.js +0 -32
- package/lib/modules/control-bar/store.d.ts +4 -6
- package/lib/modules/control-bar/store.js +63 -103
- package/lib/modules/control-bar/view.js +45 -3
- 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/hooks/useElectron.js +3 -2
- package/lib/modules/dialog/index.d.ts +0 -3
- package/lib/modules/dialog/index.js +1 -25
- package/lib/modules/dialog/store.d.ts +6 -8
- package/lib/modules/dialog/store.js +21 -55
- package/lib/modules/layout/components/CommonVideoRenderer.js +5 -2
- package/lib/modules/layout/type.d.ts +7 -0
- package/lib/modules/participant/store.js +59 -28
- 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/store.d.ts +3 -0
- package/lib/modules/share-screen/store.js +63 -54
- package/lib/modules/state-bar/index.css +8 -6
- package/lib/modules/state-bar/index.d.ts +2 -0
- package/lib/modules/state-bar/index.js +2 -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 +5 -1
- package/lib/modules/state-bar/store.js +8 -1
- package/lib/modules/state-bar/view.js +9 -5
- package/lib/modules/whiteboard/components/control-bar/store.js +2 -0
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +7 -3
- package/lib/modules/whiteboard/components/toolbar/store.js +61 -35
- package/lib/modules/whiteboard/index.js +3 -2
- package/lib/modules/whiteboard/style.css +0 -4
- package/lib/modules/whiteboard/view.js +8 -2
- package/lib/providers/annotation-provider.d.ts +63 -12
- package/lib/providers/annotation-provider.js +51 -41
- 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/screen-share-provider.js +53 -60
- package/lib/providers/sharing-provider.d.ts +5 -1
- package/lib/providers/sharing-provider.js +16 -1
- package/lib/providers/user-setting-storage-provider.d.ts +20 -0
- package/lib/providers/user-setting-storage-provider.js +74 -0
- package/lib/scenes/main-scene.js +2 -3
- package/lib/scenes/waiting-scene.js +1 -1
- package/lib/shared-data-source/config.d.ts +1 -5
- package/lib/shared-data-source/config.js +11 -81
- package/lib/shared-data-source/screen-share-data.d.ts +4 -0
- package/lib/shared-data-source/screen-share-data.js +1 -0
- package/lib/shared-data-source/setting.d.ts +13 -13
- package/lib/shared-data-source/setting.js +10 -6
- 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 +2 -1
- package/lib/ui-scene.js +11 -6
- package/lib/utilities/constant.d.ts +2 -1
- package/lib/utilities/constant.js +1 -0
- 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 +1 -0
- package/lib/utilities/tools.js +3 -2
- package/package.json +8 -6
- package/dist/132.js +0 -2
- package/dist/132.js.LICENSE.txt +0 -311
- package/dist/317.js +0 -2
- package/dist/317.js.LICENSE.txt +0 -20
- package/dist/651.js +0 -2
- package/dist/651.js.LICENSE.txt +0 -1
- package/dist/689343b64b60bfb7ffff.png +0 -0
- package/dist/73.js +0 -1
- package/dist/885f9369ea05a8ac0e56.png +0 -0
- package/dist/90f383876a6e93e7c7ca.png +0 -0
- package/dist/9b37584780995fc5df8c.gif +0 -0
- package/dist/annotation.e5cbd3a70b6d42361872.css +0 -1274
- package/dist/annotation.html +0 -1
- package/dist/annotation.js +0 -2
- package/dist/annotation.js.LICENSE.txt +0 -252
- package/dist/assets/browser/images/default1.jpg +0 -0
- package/dist/assets/browser/images/default2.jpg +0 -0
- package/dist/assets/browser/images/default3.jpg +0 -0
- package/dist/assets/browser/images/default4.jpg +0 -0
- package/dist/assets/browser/images/default5.jpg +0 -0
- package/dist/assets/browser/images/default6.jpg +0 -0
- package/dist/assets/browser/images/default7.jpg +0 -0
- package/dist/assets/browser/sound_effects/pretest.mp3 +0 -0
- package/dist/assets/browser/sound_effects/recording_started.mp3 +0 -0
- package/dist/assets/browser/sound_effects/remote_user_joined.mp3 +0 -0
- package/dist/assets/browser/sound_effects/speaker_test.mp3 +0 -0
- package/dist/assets/browser/videos/default8.mp4 +0 -0
- package/dist/assets/browser/videos/default9.mp4 +0 -0
- package/dist/assets/cursors/fcr_whiteboard_input.ico +0 -0
- package/dist/assets/cursors/fcr_whiteboard_pen.ico +0 -0
- package/dist/assets/cursors/fcr_whiteboard_shape_-straightline.ico +0 -0
- package/dist/assets/cursors/fcr_whiteboard_shape_arrow.ico +0 -0
- package/dist/assets/cursors/fcr_whiteboard_shape_circle.ico +0 -0
- package/dist/assets/cursors/fcr_whiteboard_shape_rectangle.ico +0 -0
- package/dist/assets/cursors/fcr_whiteboard_shape_triangle.ico +0 -0
- package/dist/assets/electron/images/default1.jpg +0 -0
- package/dist/assets/electron/images/default2.jpg +0 -0
- package/dist/assets/electron/sound_effects/pretest.mp3 +0 -0
- package/dist/assets/electron/videos/default8.mp4 +0 -0
- package/dist/assets/fcr_chat_reddot.svg +0 -5
- package/dist/assets/fcr_defaultpage.png +0 -0
- package/dist/assets/fcr_grid_big.svg +0 -3
- package/dist/assets/fcr_leave2.svg +0 -58
- package/dist/assets/fcr_listontop_big.svg +0 -3
- package/dist/assets/full-screen-error-boundary-img.png +0 -0
- package/dist/assets/leave-meeting.png +0 -0
- package/dist/assets/loading.gif +0 -0
- package/dist/assets/login_confirm.png +0 -0
- package/dist/assets/pretest.mp3 +0 -0
- package/dist/assets/state-bar-logo.png +0 -0
- package/dist/assets/step-gradient.svg +0 -10
- package/dist/b74b002687a3a3346bec.png +0 -0
- package/dist/b94869094481702f949b.png +0 -0
- package/dist/ebeace75fd46b90d890e.png +0 -0
- package/dist/electron/app.js +0 -194
- package/dist/electron/bootstrap-dev.js +0 -46
- package/dist/electron/bootstrap-sdk.js +0 -211
- package/dist/electron/default-options.js +0 -25
- package/dist/electron/env.js +0 -13
- package/dist/electron/index.js +0 -20
- package/dist/electron/injections.js +0 -903
- package/dist/electron/ipc/ipc.js +0 -141
- package/dist/electron/ipc/type.js +0 -19
- package/dist/electron/logger.js +0 -65
- package/dist/electron/main.js +0 -94
- package/dist/electron/plugins/devtool-shortcut.js +0 -33
- package/dist/electron/plugins/meeting-state.js +0 -39
- package/dist/electron/plugins/screenshot.js +0 -54
- package/dist/electron/preload.js +0 -108
- package/dist/electron/tools.js +0 -66
- package/dist/electron/window.js +0 -123
- package/dist/extensions/agora-extension-virtual-background/agora-wasm.wasm +0 -0
- package/dist/extensions/ai-denoiser/denoiser-wasm-simd.wasm +0 -0
- package/dist/extensions/ai-denoiser/denoiser-wasm.js +0 -1
- package/dist/extensions/ai-denoiser/denoiser-wasm.wasm +0 -0
- package/dist/fad688b9135b15d6c405.png +0 -0
- package/dist/index.html +0 -224
- package/dist/main.393a2a91ab7fc05ffce6.css +0 -15403
- package/dist/main.js +0 -2
- package/dist/main.js.LICENSE.txt +0 -272
- package/dist/worker-entry.worker.js.LICENSE.txt +0 -13
|
@@ -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,10 +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
|
-
_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, {
|
|
102
98
|
leading: true
|
|
103
99
|
})], _resumeCloudRecordingDecs = [_decorator.bound, (0, _decorator.debounced)(500, {
|
|
104
100
|
leading: true
|
|
@@ -157,33 +153,25 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
157
153
|
});
|
|
158
154
|
(0, _defineProperty2["default"])(this, "_participantDialogId", '');
|
|
159
155
|
_classPrivateFieldInitSpec(this, _A, _init_leaveConfirmRef(this, undefined));
|
|
160
|
-
_classPrivateFieldInitSpec(this, _B,
|
|
161
|
-
_classPrivateFieldInitSpec(this, _C,
|
|
162
|
-
_classPrivateFieldInitSpec(this, _D,
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
_classPrivateFieldInitSpec(this,
|
|
169
|
-
_classPrivateFieldInitSpec(this, _F, _init_cloudRecordingState(this, _type3.FcrRecordingState.Stopped));
|
|
170
|
-
_classPrivateFieldInitSpec(this, _G, _init_isHost(this, false));
|
|
171
|
-
_classPrivateFieldInitSpec(this, _H, _init_roomDuration(this, 0));
|
|
172
|
-
_classPrivateFieldInitSpec(this, _I, _init_startTime(this, new Date().getTime()));
|
|
173
|
-
_classPrivateFieldInitSpec(this, _J, _init_playUrl(this, ''));
|
|
174
|
-
_classPrivateFieldInitSpec(this, _K, _init_liveStreamingState(this, _type3.FcrLiveStreamingState.STOPPED));
|
|
175
|
-
_classPrivateFieldInitSpec(this, _L, _init_allApplicationWindows(this, []));
|
|
176
|
-
_classPrivateFieldInitSpec(this, _M, _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, {
|
|
177
165
|
roomId: '',
|
|
178
166
|
roomName: '',
|
|
179
|
-
roomType:
|
|
167
|
+
roomType: _type.FcrRoomType.Mainroom,
|
|
180
168
|
password: '',
|
|
181
169
|
inviteLink: ''
|
|
182
170
|
}));
|
|
183
|
-
_classPrivateFieldInitSpec(this,
|
|
184
|
-
_classPrivateFieldInitSpec(this,
|
|
185
|
-
_classPrivateFieldInitSpec(this,
|
|
186
|
-
_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));
|
|
187
175
|
this._uiEventStore = uiEventStore;
|
|
188
176
|
this._roomControl = roomControl;
|
|
189
177
|
this._securityStore = securityStore;
|
|
@@ -236,7 +224,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
236
224
|
_classPrivateFieldSet(_A, this, v);
|
|
237
225
|
}
|
|
238
226
|
}, {
|
|
239
|
-
key: "
|
|
227
|
+
key: "recordShareBounds",
|
|
240
228
|
get: function get() {
|
|
241
229
|
return _classPrivateFieldGet(_B, this);
|
|
242
230
|
},
|
|
@@ -244,7 +232,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
244
232
|
_classPrivateFieldSet(_B, this, v);
|
|
245
233
|
}
|
|
246
234
|
}, {
|
|
247
|
-
key: "
|
|
235
|
+
key: "cloudRecordingState",
|
|
248
236
|
get: function get() {
|
|
249
237
|
return _classPrivateFieldGet(_C, this);
|
|
250
238
|
},
|
|
@@ -252,7 +240,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
252
240
|
_classPrivateFieldSet(_C, this, v);
|
|
253
241
|
}
|
|
254
242
|
}, {
|
|
255
|
-
key: "
|
|
243
|
+
key: "isHost",
|
|
256
244
|
get: function get() {
|
|
257
245
|
return _classPrivateFieldGet(_D, this);
|
|
258
246
|
},
|
|
@@ -260,7 +248,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
260
248
|
_classPrivateFieldSet(_D, this, v);
|
|
261
249
|
}
|
|
262
250
|
}, {
|
|
263
|
-
key: "
|
|
251
|
+
key: "roomDuration",
|
|
264
252
|
get: function get() {
|
|
265
253
|
return _classPrivateFieldGet(_E, this);
|
|
266
254
|
},
|
|
@@ -268,7 +256,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
268
256
|
_classPrivateFieldSet(_E, this, v);
|
|
269
257
|
}
|
|
270
258
|
}, {
|
|
271
|
-
key: "
|
|
259
|
+
key: "startTime",
|
|
272
260
|
get: function get() {
|
|
273
261
|
return _classPrivateFieldGet(_F, this);
|
|
274
262
|
},
|
|
@@ -276,7 +264,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
276
264
|
_classPrivateFieldSet(_F, this, v);
|
|
277
265
|
}
|
|
278
266
|
}, {
|
|
279
|
-
key: "
|
|
267
|
+
key: "playUrl",
|
|
280
268
|
get: function get() {
|
|
281
269
|
return _classPrivateFieldGet(_G, this);
|
|
282
270
|
},
|
|
@@ -284,7 +272,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
284
272
|
_classPrivateFieldSet(_G, this, v);
|
|
285
273
|
}
|
|
286
274
|
}, {
|
|
287
|
-
key: "
|
|
275
|
+
key: "liveStreamingState",
|
|
288
276
|
get: function get() {
|
|
289
277
|
return _classPrivateFieldGet(_H, this);
|
|
290
278
|
},
|
|
@@ -292,7 +280,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
292
280
|
_classPrivateFieldSet(_H, this, v);
|
|
293
281
|
}
|
|
294
282
|
}, {
|
|
295
|
-
key: "
|
|
283
|
+
key: "allApplicationWindows",
|
|
296
284
|
get: function get() {
|
|
297
285
|
return _classPrivateFieldGet(_I, this);
|
|
298
286
|
},
|
|
@@ -300,7 +288,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
300
288
|
_classPrivateFieldSet(_I, this, v);
|
|
301
289
|
}
|
|
302
290
|
}, {
|
|
303
|
-
key: "
|
|
291
|
+
key: "roomInfo",
|
|
304
292
|
get: function get() {
|
|
305
293
|
return _classPrivateFieldGet(_J, this);
|
|
306
294
|
},
|
|
@@ -308,7 +296,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
308
296
|
_classPrivateFieldSet(_J, this, v);
|
|
309
297
|
}
|
|
310
298
|
}, {
|
|
311
|
-
key: "
|
|
299
|
+
key: "isShowMeetingDetailPortal",
|
|
312
300
|
get: function get() {
|
|
313
301
|
return _classPrivateFieldGet(_K, this);
|
|
314
302
|
},
|
|
@@ -316,7 +304,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
316
304
|
_classPrivateFieldSet(_K, this, v);
|
|
317
305
|
}
|
|
318
306
|
}, {
|
|
319
|
-
key: "
|
|
307
|
+
key: "hiddenShareActionNav",
|
|
320
308
|
get: function get() {
|
|
321
309
|
return _classPrivateFieldGet(_L, this);
|
|
322
310
|
},
|
|
@@ -324,7 +312,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
324
312
|
_classPrivateFieldSet(_L, this, v);
|
|
325
313
|
}
|
|
326
314
|
}, {
|
|
327
|
-
key: "
|
|
315
|
+
key: "boardOwnerUser",
|
|
328
316
|
get: function get() {
|
|
329
317
|
return _classPrivateFieldGet(_M, this);
|
|
330
318
|
},
|
|
@@ -332,7 +320,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
332
320
|
_classPrivateFieldSet(_M, this, v);
|
|
333
321
|
}
|
|
334
322
|
}, {
|
|
335
|
-
key: "
|
|
323
|
+
key: "currentShareDisplayId",
|
|
336
324
|
get: function get() {
|
|
337
325
|
return _classPrivateFieldGet(_N, this);
|
|
338
326
|
},
|
|
@@ -340,33 +328,24 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
340
328
|
_classPrivateFieldSet(_N, this, v);
|
|
341
329
|
}
|
|
342
330
|
}, {
|
|
343
|
-
key: "
|
|
331
|
+
key: "shareWithAudio",
|
|
344
332
|
get: function get() {
|
|
345
|
-
return
|
|
346
|
-
},
|
|
347
|
-
set: function set(v) {
|
|
348
|
-
_classPrivateFieldSet(_O, this, v);
|
|
333
|
+
return this._sharedScreenShareSharedDataSource.shareWithAudio;
|
|
349
334
|
}
|
|
350
335
|
}, {
|
|
351
|
-
key: "
|
|
336
|
+
key: "currentShareId",
|
|
352
337
|
get: function get() {
|
|
353
|
-
return
|
|
354
|
-
},
|
|
355
|
-
set: function set(v) {
|
|
356
|
-
_classPrivateFieldSet(_P, this, v);
|
|
338
|
+
return this._sharedScreenShareSharedDataSource.currentShareId;
|
|
357
339
|
}
|
|
358
340
|
}, {
|
|
359
|
-
key: "
|
|
341
|
+
key: "currentShareType",
|
|
360
342
|
get: function get() {
|
|
361
|
-
return
|
|
362
|
-
},
|
|
363
|
-
set: function set(v) {
|
|
364
|
-
_classPrivateFieldSet(_Q, this, v);
|
|
343
|
+
return this._sharedScreenShareSharedDataSource.currentShareType;
|
|
365
344
|
}
|
|
366
345
|
}, {
|
|
367
|
-
key: "
|
|
346
|
+
key: "currentShareBounds",
|
|
368
347
|
get: function get() {
|
|
369
|
-
return this._sharedScreenShareSharedDataSource.
|
|
348
|
+
return this._sharedScreenShareSharedDataSource.currentSelectionBounds;
|
|
370
349
|
}
|
|
371
350
|
}, {
|
|
372
351
|
key: "privilegeProvider",
|
|
@@ -529,32 +508,16 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
529
508
|
get: function get() {
|
|
530
509
|
return this._sharedScreenShareSharedDataSource.isSharingScreen;
|
|
531
510
|
}
|
|
511
|
+
}, {
|
|
512
|
+
key: "isReplaceScreen",
|
|
513
|
+
get: function get() {
|
|
514
|
+
return this._sharedScreenShareSharedDataSource.isReplaceScreen;
|
|
515
|
+
}
|
|
532
516
|
}, {
|
|
533
517
|
key: "setCheckedStateMap",
|
|
534
518
|
value: function setCheckedStateMap(val) {
|
|
535
519
|
this._sharedSecuritySharedDataSource.setCheckedStateMap(val);
|
|
536
520
|
}
|
|
537
|
-
}, {
|
|
538
|
-
key: "initControlBar",
|
|
539
|
-
value: function initControlBar(payload, _browserWindow) {
|
|
540
|
-
// this._screenShareDataSource.setCurrentShareAudioProcessingChannel(
|
|
541
|
-
// payload.currentShareAudioProcessingChannel,
|
|
542
|
-
// );
|
|
543
|
-
this.currentShareId = payload.currentShareId;
|
|
544
|
-
this.currentShareType = payload.currentShareType;
|
|
545
|
-
this.currentShareBounds = payload.currentShareBounds;
|
|
546
|
-
this.setShareWithAudioState(payload.shareWithAudio);
|
|
547
|
-
}
|
|
548
|
-
}, {
|
|
549
|
-
key: "updateCurrentShareContent",
|
|
550
|
-
value: function updateCurrentShareContent(payload) {
|
|
551
|
-
var id = payload.id,
|
|
552
|
-
type = payload.type,
|
|
553
|
-
bounds = payload.bounds;
|
|
554
|
-
this.currentShareId = id;
|
|
555
|
-
this.currentShareType = type;
|
|
556
|
-
this.currentShareBounds = bounds;
|
|
557
|
-
}
|
|
558
521
|
}, {
|
|
559
522
|
key: "setShareWithAudioState",
|
|
560
523
|
value: function setShareWithAudioState(withAudio) {
|
|
@@ -628,7 +591,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
628
591
|
var dispose = (0, _mobx.reaction)(function () {
|
|
629
592
|
return _this2.liveStreamingState;
|
|
630
593
|
}, function (liveStreamingState) {
|
|
631
|
-
if (liveStreamingState ===
|
|
594
|
+
if (liveStreamingState === _type2.FcrLiveStreamingState.STOPPED) {
|
|
632
595
|
_this2._liveStreamingDialogKey && _this2._uiEventStore.closeDialog(_this2._liveStreamingDialogKey);
|
|
633
596
|
dispose();
|
|
634
597
|
}
|
|
@@ -677,7 +640,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
677
640
|
key: "startCloudRecording",
|
|
678
641
|
value: function startCloudRecording() {
|
|
679
642
|
this._roomControl.startCloudRecording({
|
|
680
|
-
audioProfile:
|
|
643
|
+
audioProfile: _type2.FcrCloudRecordingAudioProfile.DEFAULT,
|
|
681
644
|
videoEncoderConfig: {
|
|
682
645
|
dimensions: {
|
|
683
646
|
width: 1280,
|
|
@@ -770,28 +733,25 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
770
733
|
}, {
|
|
771
734
|
key: "_resetMessageCount",
|
|
772
735
|
value: function _resetMessageCount() {
|
|
773
|
-
this.newMessageCount = (0, _defineProperty2["default"])({},
|
|
736
|
+
this.newMessageCount = (0, _defineProperty2["default"])({}, _type3.FcrUIRoomType.MAIN_ROOM, 0);
|
|
774
737
|
}
|
|
775
738
|
}]);
|
|
776
739
|
}();
|
|
777
740
|
_ControlBarStore = ControlBarStore;
|
|
778
|
-
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);
|
|
779
742
|
_init_leaveConfirmRef = _applyDecs$e[0];
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
_init_boardOwnerUser = _applyDecs$e[15];
|
|
795
|
-
_init_currentShareDisplayId = _applyDecs$e[16];
|
|
796
|
-
_initProto = _applyDecs$e[17];
|
|
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];
|
|
797
757
|
var StoreContext = exports.StoreContext = /*#__PURE__*/(0, _react.createContext)(null);
|
|
@@ -58,6 +58,7 @@ var _tools = require("../../utilities/tools");
|
|
|
58
58
|
var _enums = require("./enums");
|
|
59
59
|
var _constant = require("../../utilities/constant");
|
|
60
60
|
var _type2 = require("../../type");
|
|
61
|
+
var _annotationButton = require("./components/annotation-button");
|
|
61
62
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
62
63
|
var _excluded = ["x", "y"];
|
|
63
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; }
|
|
@@ -74,6 +75,7 @@ var ControlBarView = exports.ControlBarView = (0, _mobxReact.observer)(function
|
|
|
74
75
|
setShareAudioProcessingChannel = _useContext2.setShareAudioProcessingChannel,
|
|
75
76
|
createNewShare = _useContext2.createNewShare,
|
|
76
77
|
currentShareId = _useContext2.currentShareId,
|
|
78
|
+
isSharingScreen = _useContext2.isSharingScreen,
|
|
77
79
|
handleMoreClick = _useContext2.handleMoreClick,
|
|
78
80
|
liveStreamingState = _useContext2.liveStreamingState,
|
|
79
81
|
cloudRecordingState = _useContext2.cloudRecordingState,
|
|
@@ -92,6 +94,7 @@ var ControlBarView = exports.ControlBarView = (0, _mobxReact.observer)(function
|
|
|
92
94
|
showLockedRoomToast = _useContext2.showLockedRoomToast,
|
|
93
95
|
checkedStateMap = _useContext2.checkedStateMap,
|
|
94
96
|
setCheckedStateMap = _useContext2.setCheckedStateMap,
|
|
97
|
+
isReplaceScreen = _useContext2.isReplaceScreen,
|
|
95
98
|
log = _useContext2.log;
|
|
96
99
|
// 控制栏本身的高度
|
|
97
100
|
var NAV_HEIGHT = 84;
|
|
@@ -281,14 +284,14 @@ var ControlBarView = exports.ControlBarView = (0, _mobxReact.observer)(function
|
|
|
281
284
|
y: y
|
|
282
285
|
}, bounds);
|
|
283
286
|
browserWindow.setBounds(screenBounds);
|
|
284
|
-
log("[ControlBarView]: [getScreenBounds], screenBounds: ".concat(JSON.stringify(screenBounds)));
|
|
287
|
+
log("[ControlBarView]: [getScreenBounds][screen-share], screenBounds: ".concat(JSON.stringify(screenBounds)));
|
|
285
288
|
} else {
|
|
286
289
|
recordShareBounds.clear();
|
|
287
290
|
screenBounds = (0, _tools.getCurrentSharingWorkArea)({
|
|
288
291
|
currentShareBounds: currentShareBounds
|
|
289
292
|
});
|
|
290
293
|
recordShareBounds.set(currentShareBounds, screenBounds);
|
|
291
|
-
log("[ControlBarView]: [getScreenBounds], screenBounds: ".concat(JSON.stringify(screenBounds)));
|
|
294
|
+
log("[ControlBarView]: [getScreenBounds][screen-share], screenBounds: ".concat(JSON.stringify(screenBounds)));
|
|
292
295
|
}
|
|
293
296
|
return screenBounds;
|
|
294
297
|
}
|
|
@@ -329,6 +332,45 @@ var ControlBarView = exports.ControlBarView = (0, _mobxReact.observer)(function
|
|
|
329
332
|
clearInterval(windowFocusTimerRef.current);
|
|
330
333
|
};
|
|
331
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
|
+
|
|
332
374
|
return currentShareId ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", _objectSpread(_objectSpread({}, bind()), {}, {
|
|
333
375
|
style: {
|
|
334
376
|
width: 'fit-content',
|
|
@@ -393,7 +435,7 @@ var ControlBarView = exports.ControlBarView = (0, _mobxReact.observer)(function
|
|
|
393
435
|
}
|
|
394
436
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_shareScreenButton.ShareScreenButton, {
|
|
395
437
|
onCreateNewShareButtonClick: createNewShare
|
|
396
|
-
}), 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, {
|
|
397
439
|
count: newMessageCount[_type2.FcrUIRoomType.MAIN_ROOM] || 0,
|
|
398
440
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_more.More, {
|
|
399
441
|
visible: moreVisible,
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { ControlBarUIModule } from '../../../control-bar';
|
|
2
|
-
import { FcrUIShareSelectionDisplayProps } from '../../../share-screen/types';
|
|
3
2
|
import { PropsWithChildren } from 'react';
|
|
4
3
|
import { CurrentShareBounds } from '../../../control-bar/types';
|
|
5
4
|
export declare const config: Electron.BrowserWindowConstructorOptions;
|
|
6
5
|
export declare const ControlBarDialog: (props: PropsWithChildren<{
|
|
7
|
-
params: FcrUIShareSelectionDisplayProps;
|
|
8
6
|
module: ControlBarUIModule;
|
|
9
7
|
}>) => null;
|
|
10
8
|
export declare const setBounds: (currentShareBounds: CurrentShareBounds, browserWindow: Electron.BrowserWindow) => Promise<void>;
|
|
@@ -32,15 +32,13 @@ var config = exports.config = {
|
|
|
32
32
|
skipTaskbar: true
|
|
33
33
|
};
|
|
34
34
|
var ControlBarDialog = exports.ControlBarDialog = (0, _mobxReact.observer)(function (props) {
|
|
35
|
-
var module = props.module
|
|
36
|
-
params = props.params;
|
|
35
|
+
var module = props.module;
|
|
37
36
|
var eventProvider = module.eventProvider;
|
|
38
37
|
var _useContext = (0, _react.useContext)(_store.StoreContext),
|
|
39
38
|
currentShareId = _useContext.currentShareId,
|
|
40
39
|
currentShareBounds = _useContext.currentShareBounds;
|
|
41
40
|
var children = function children(browserWindow) {
|
|
42
41
|
return module.getComponent({
|
|
43
|
-
params: params,
|
|
44
42
|
browserWindow: browserWindow
|
|
45
43
|
});
|
|
46
44
|
};
|
|
@@ -101,8 +101,9 @@ function useElectronDialog(props) {
|
|
|
101
101
|
browserWindow: browserWindow,
|
|
102
102
|
alwaysFollowScreen: fullScreen
|
|
103
103
|
}),
|
|
104
|
-
nearDisplayBounds = _ref.nearDisplayBounds
|
|
105
|
-
|
|
104
|
+
nearDisplayBounds = _ref.nearDisplayBounds,
|
|
105
|
+
followControlbar = _ref.followControlbar;
|
|
106
|
+
store === null || store === void 0 || store.log("[useElectronDialog]: dialogKey: ".concat(dialogKey, ", ").concat(followControlbar ? 'control bar' : 'main window', " nearing display bounds: ").concat(JSON.stringify(nearDisplayBounds)));
|
|
106
107
|
|
|
107
108
|
// 设置所有窗口为所有工作区可见
|
|
108
109
|
browserWindow.setVisibleOnAllWorkspaces(true, {
|
|
@@ -10,8 +10,6 @@ import { FcrUIPrivilegeProvider } from '../../providers/privilege-provider';
|
|
|
10
10
|
import { FcrUIDialogProvider } from '../../providers/dialog-provider';
|
|
11
11
|
import { FcrUIPhoneAudioConnectorProvider } from '../../providers/phone-audio-provider';
|
|
12
12
|
import { FcrUIAbilityProviderImpl } from '../../providers/ability-provider';
|
|
13
|
-
import { FcrUIAction } from '../../utilities/constant';
|
|
14
|
-
import { CurrentShareScreenTypes } from '../share-screen/types';
|
|
15
13
|
import { FcrUIDialogInfo } from './type';
|
|
16
14
|
import { FcrUIWidgetProvider } from '../../providers/widget-provider';
|
|
17
15
|
import { FcrUIChatProvider } from '../../providers/chat-provider';
|
|
@@ -43,5 +41,4 @@ export declare class DialogUIModule extends UIModule {
|
|
|
43
41
|
onNodeWillInactive(): void;
|
|
44
42
|
getComponent(): import("react/jsx-runtime").JSX.Element;
|
|
45
43
|
addDialogs(dialogs: FcrUIDialogInfo[]): void;
|
|
46
|
-
onUiEvent(event: FcrUIAction, payload: CurrentShareScreenTypes): void;
|
|
47
44
|
}
|
|
@@ -1,17 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("core-js/modules/es.symbol.js");
|
|
4
|
-
require("core-js/modules/es.array.filter.js");
|
|
5
|
-
require("core-js/modules/es.array.push.js");
|
|
6
|
-
require("core-js/modules/es.object.define-properties.js");
|
|
7
3
|
require("core-js/modules/es.object.define-property.js");
|
|
8
4
|
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
9
|
-
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
10
|
-
require("core-js/modules/es.object.keys.js");
|
|
11
5
|
require("core-js/modules/es.reflect.construct.js");
|
|
12
6
|
require("core-js/modules/es.weak-map.js");
|
|
13
|
-
require("core-js/modules/esnext.async-iterator.filter.js");
|
|
14
|
-
require("core-js/modules/esnext.iterator.filter.js");
|
|
15
7
|
require("core-js/modules/esnext.weak-map.delete-all.js");
|
|
16
8
|
require("core-js/modules/esnext.weak-map.emplace.js");
|
|
17
9
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -23,7 +15,6 @@ exports.DialogUIModule = void 0;
|
|
|
23
15
|
require("core-js/modules/es.array.concat.js");
|
|
24
16
|
require("core-js/modules/es.array.for-each.js");
|
|
25
17
|
require("core-js/modules/es.array.iterator.js");
|
|
26
|
-
require("core-js/modules/es.function.bind.js");
|
|
27
18
|
require("core-js/modules/es.map.js");
|
|
28
19
|
require("core-js/modules/es.object.to-string.js");
|
|
29
20
|
require("core-js/modules/es.string.iterator.js");
|
|
@@ -56,12 +47,9 @@ var _base = require("../../base");
|
|
|
56
47
|
var _store = _interopRequireWildcard(require("./store"));
|
|
57
48
|
var _view = require("./view");
|
|
58
49
|
var _type = require("fcr-core/lib/room-control/type");
|
|
59
|
-
var _constant = require("../../utilities/constant");
|
|
60
50
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
61
51
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
62
52
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
63
|
-
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; }
|
|
64
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
65
53
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
|
|
66
54
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
67
55
|
var DialogUIModule = exports.DialogUIModule = /*#__PURE__*/function (_UIModule) {
|
|
@@ -91,7 +79,7 @@ var DialogUIModule = exports.DialogUIModule = /*#__PURE__*/function (_UIModule)
|
|
|
91
79
|
remoteVideoRenderManager: this.remoteVideoRenderProvider,
|
|
92
80
|
localVideoRenderProvider: this.localVideoRenderProvider,
|
|
93
81
|
securityStore: ((_this$currentRoomCont3 = this.currentRoomControlProvider) === null || _this$currentRoomCont3 === void 0 || (_this$currentRoomCont3 = _this$currentRoomCont3.currentRoomControl.getRoomInfo()) === null || _this$currentRoomCont3 === void 0 ? void 0 : _this$currentRoomCont3.roomType) === _type.FcrRoomType.Mainroom ? (_this$mainRoomControl = this.mainRoomControlProvider) === null || _this$mainRoomControl === void 0 ? void 0 : _this$mainRoomControl.privilegeProvider : (_this$waitingRoomCont = this.waitingRoomControlProvider) === null || _this$waitingRoomCont === void 0 ? void 0 : _this$waitingRoomCont.privilegeProvider,
|
|
94
|
-
|
|
82
|
+
eventProvider: this.eventProvider,
|
|
95
83
|
sharedLayoutDataSource: this.sharedLayoutDataSource,
|
|
96
84
|
dialogProvider: this.dialogProvider,
|
|
97
85
|
phoneAudioConnectorProvider: this.phoneAudioConnectorProvider,
|
|
@@ -102,9 +90,6 @@ var DialogUIModule = exports.DialogUIModule = /*#__PURE__*/function (_UIModule)
|
|
|
102
90
|
screenShareProvider: this.screenShareProvider,
|
|
103
91
|
sharedScreenShareSharedDataSource: this.sharedScreenShareSharedDataSource
|
|
104
92
|
});
|
|
105
|
-
this.eventProvider.addObserver({
|
|
106
|
-
onEvent: this.onUiEvent.bind(this)
|
|
107
|
-
});
|
|
108
93
|
}
|
|
109
94
|
}
|
|
110
95
|
}, {
|
|
@@ -132,14 +117,5 @@ var DialogUIModule = exports.DialogUIModule = /*#__PURE__*/function (_UIModule)
|
|
|
132
117
|
_this2._dialogsByKey.set(dialog.key, dialog.component);
|
|
133
118
|
});
|
|
134
119
|
}
|
|
135
|
-
}, {
|
|
136
|
-
key: "onUiEvent",
|
|
137
|
-
value: function onUiEvent(event, payload) {
|
|
138
|
-
switch (event) {
|
|
139
|
-
case _constant.FcrUIAction.SET_CURRENT_SHARE_SCREEN:
|
|
140
|
-
this._store.updateCurrentShareContent(_objectSpread({}, payload));
|
|
141
|
-
break;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
120
|
}]);
|
|
145
121
|
}(_base.UIModule);
|
|
@@ -9,7 +9,6 @@ import { FcrUIDialogProvider } from '../../providers/dialog-provider';
|
|
|
9
9
|
import { FcrUIPhoneAudioConnectorProvider } from '../../providers/phone-audio-provider';
|
|
10
10
|
import { AgoraRtcScreenCaptureType, AgoraRtcWindowInfo } from 'agora-rte-sdk/lib/core/rtc/type';
|
|
11
11
|
import { CurrentShareBounds } from '../control-bar/types';
|
|
12
|
-
import { CurrentShareScreenTypes } from '../share-screen/types';
|
|
13
12
|
import { FcrUIDialogComponent } from './type';
|
|
14
13
|
import { FcrUIWidgetProvider } from '../../providers/widget-provider';
|
|
15
14
|
import { FcrUIChatProvider } from '../../providers/chat-provider';
|
|
@@ -21,7 +20,7 @@ export declare const HIGH_LEVEL_DIALOG_LAYER: FcrUIDialogKey[];
|
|
|
21
20
|
export declare const TOP_LEVEL_DIALOG_LAYER: FcrUIDialogKey[];
|
|
22
21
|
export default class DialogStore {
|
|
23
22
|
protected logger: import("agora-foundation/lib/logger").Logger;
|
|
24
|
-
private
|
|
23
|
+
private _eventProvider;
|
|
25
24
|
private _userInfo;
|
|
26
25
|
private _streamControl;
|
|
27
26
|
private _userControl;
|
|
@@ -50,11 +49,11 @@ export default class DialogStore {
|
|
|
50
49
|
accessor participantElectronDialogContainer: HTMLElement | null;
|
|
51
50
|
accessor currentDialogBounds: Map<FcrUIDialogKey, number>;
|
|
52
51
|
accessor videoWindowBounds: any;
|
|
53
|
-
accessor currentShareId: string;
|
|
54
|
-
accessor currentShareType: AgoraRtcScreenCaptureType;
|
|
55
|
-
accessor currentShareBounds: CurrentShareBounds;
|
|
56
52
|
accessor recordShareBounds: Map<CurrentShareBounds, CurrentShareScreenWorkArea>;
|
|
57
53
|
accessor allApplicationWindows: AgoraRtcWindowInfo[];
|
|
54
|
+
get currentShareId(): string;
|
|
55
|
+
get currentShareType(): AgoraRtcScreenCaptureType;
|
|
56
|
+
get currentShareBounds(): CurrentShareBounds;
|
|
58
57
|
get dialogComponentMapByKey(): Map<FcrUIDialogKey, FcrUIDialogComponent>;
|
|
59
58
|
get participantCount(): number;
|
|
60
59
|
get isManager(): boolean;
|
|
@@ -74,10 +73,10 @@ export default class DialogStore {
|
|
|
74
73
|
get chatRoomState(): import("fcr-core/lib/room-control/chatroom-control/type").FcrChatRoomConnectionState;
|
|
75
74
|
get isSharingScreen(): boolean;
|
|
76
75
|
get isSharingScreenOwner(): boolean;
|
|
77
|
-
constructor({
|
|
76
|
+
constructor({ eventProvider, userControl, deviceStore, streamControl, localVideoRenderProvider, remoteVideoRenderManager, securityStore, sharedLayoutDataSource, dialogProvider, phoneAudioConnectorProvider, dialogsByKey, widgetProvider, screenShareProvider, chatProvider, sharedScreenShareSharedDataSource, }: {
|
|
78
77
|
streamControl: FcrStreamControl;
|
|
79
78
|
userControl: FcrUserControl;
|
|
80
|
-
|
|
79
|
+
eventProvider: FcrUIEventProvider;
|
|
81
80
|
securityStore: FcrUIPrivilegeProvider;
|
|
82
81
|
deviceStore: FcrUIDeviceProvider;
|
|
83
82
|
localVideoRenderProvider: FcrUILocalVideoRenderProvider;
|
|
@@ -104,7 +103,6 @@ export default class DialogStore {
|
|
|
104
103
|
moveParticipantFromDialogToAside(): void;
|
|
105
104
|
release(): void;
|
|
106
105
|
resizeVideoWindow(width: number, height: number): void;
|
|
107
|
-
updateCurrentShareContent(payload: CurrentShareScreenTypes): void;
|
|
108
106
|
recordCurrentSharingScreenBounds(): CurrentShareScreenWorkArea;
|
|
109
107
|
log(info: string): void;
|
|
110
108
|
private _handleDialogEvent;
|