fcr-ui-scene 3.6.0 → 3.6.2
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/dist/132.js +2 -0
- package/dist/132.js.LICENSE.txt +311 -0
- package/dist/317.js +2 -0
- package/dist/317.js.LICENSE.txt +20 -0
- package/dist/651.js +2 -0
- package/dist/651.js.LICENSE.txt +1 -0
- package/dist/689343b64b60bfb7ffff.png +0 -0
- package/dist/73.js +1 -0
- package/dist/885f9369ea05a8ac0e56.png +0 -0
- package/dist/90f383876a6e93e7c7ca.png +0 -0
- package/dist/9b37584780995fc5df8c.gif +0 -0
- package/dist/annotation.e5cbd3a70b6d42361872.css +1274 -0
- package/dist/annotation.html +1 -0
- package/dist/annotation.js +2 -0
- package/dist/annotation.js.LICENSE.txt +252 -0
- 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 +5 -0
- package/dist/assets/fcr_defaultpage.png +0 -0
- package/dist/assets/fcr_grid_big.svg +3 -0
- package/dist/assets/fcr_leave2.svg +58 -0
- package/dist/assets/fcr_listontop_big.svg +3 -0
- 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 +10 -0
- package/dist/b74b002687a3a3346bec.png +0 -0
- package/dist/b94869094481702f949b.png +0 -0
- package/dist/ebeace75fd46b90d890e.png +0 -0
- package/dist/electron/app.js +194 -0
- package/dist/electron/bootstrap-dev.js +46 -0
- package/dist/electron/bootstrap-sdk.js +211 -0
- package/dist/electron/default-options.js +25 -0
- package/dist/electron/env.js +13 -0
- package/dist/electron/index.js +20 -0
- package/dist/electron/injections.js +903 -0
- package/dist/electron/ipc/ipc.js +141 -0
- package/dist/electron/ipc/type.js +19 -0
- package/dist/electron/logger.js +65 -0
- package/dist/electron/main.js +94 -0
- package/dist/electron/plugins/devtool-shortcut.js +33 -0
- package/dist/electron/plugins/meeting-state.js +39 -0
- package/dist/electron/plugins/screenshot.js +54 -0
- package/dist/electron/preload.js +108 -0
- package/dist/electron/tools.js +66 -0
- package/dist/electron/window.js +123 -0
- 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 +1 -0
- package/dist/extensions/ai-denoiser/denoiser-wasm.wasm +0 -0
- package/dist/fad688b9135b15d6c405.png +0 -0
- package/dist/index.html +224 -0
- package/dist/main.393a2a91ab7fc05ffce6.css +15403 -0
- package/dist/main.js +2 -0
- package/dist/main.js.LICENSE.txt +272 -0
- package/dist/worker-entry.worker.js.LICENSE.txt +13 -0
- package/lib/creator.d.ts +5 -0
- package/lib/creator.js +106 -17
- package/lib/electron/bootstrap-sdk.js +19 -6
- package/lib/electron/injections.d.ts +4 -0
- package/lib/electron/injections.js +37 -8
- package/lib/electron/ipc/ipc.d.ts +1 -0
- package/lib/electron/ipc/ipc.js +4 -0
- package/lib/electron/main.js +6 -2
- package/lib/electron/plugins/screenshot.js +4 -2
- package/lib/electron/preload.js +7 -2
- package/lib/electron/window.js +4 -3
- package/lib/fragments/annotation/index.d.ts +10 -0
- package/lib/fragments/annotation/index.js +106 -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 +25 -0
- package/lib/fragments/annotation/store.js +485 -0
- package/lib/fragments/annotation/view.d.ts +2 -0
- package/lib/fragments/annotation/view.js +23 -0
- package/lib/fragments/base.d.ts +10 -0
- package/lib/fragments/base.js +44 -0
- package/lib/global.css +23 -5
- package/lib/modules/action-bar/components/board/index.js +0 -2
- package/lib/modules/action-bar/components/breakout-room/index.js +0 -2
- package/lib/modules/action-bar/components/leave/index.js +1 -12
- package/lib/modules/action-bar/components/more/poppover-content.js +6 -9
- package/lib/modules/action-bar/components/participants/index.js +1 -9
- package/lib/modules/action-bar/components/screen-share/index.js +0 -4
- package/lib/modules/action-bar/components/screen-share/submenu.js +7 -6
- package/lib/modules/action-bar/index.css +7 -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 +6 -4
- package/lib/modules/action-bar/store.js +19 -19
- package/lib/modules/action-bar/view.js +1 -1
- 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 +101 -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 +59 -0
- package/lib/modules/annotation/components/toolbar/components/graphic-tool/graphic-panel/libs.d.ts +11 -0
- package/lib/modules/annotation/components/toolbar/components/graphic-tool/graphic-panel/libs.js +59 -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 +17 -0
- package/lib/modules/annotation/components/toolbar/components/item/item.js +115 -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 +36 -0
- package/lib/modules/annotation/index.js +168 -0
- package/lib/modules/annotation/store.d.ts +85 -0
- package/lib/modules/annotation/store.js +648 -0
- package/lib/modules/annotation/style.css +26 -0
- package/lib/modules/annotation/view.d.ts +2 -0
- package/lib/modules/annotation/view.js +32 -0
- package/lib/modules/audio-stream/index.js +4 -4
- package/lib/modules/chat/chat-room-store.js +3 -4
- 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/icon-buttons/index.d.ts +2 -0
- package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.js +6 -3
- package/lib/modules/components/member-window/components/member-actions/index.js +0 -2
- package/lib/modules/components/member-window/components/member-actions/libs/index.js +0 -1
- 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 +5 -1
- package/lib/modules/components/member-window/components/video-player/index.d.ts +1 -0
- package/lib/modules/components/member-window/index.css +1 -0
- package/lib/modules/components/member-window/index.d.ts +1 -1
- package/lib/modules/components/member-window/index.js +8 -6
- package/lib/modules/components/member-window/types.d.ts +2 -0
- package/lib/modules/components/security-menu/index.js +7 -6
- package/lib/modules/connection-gateway/components/phone/index.js +1 -1
- 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 -2
- package/lib/modules/control-bar/index.js +5 -2
- package/lib/modules/control-bar/store.d.ts +24 -8
- package/lib/modules/control-bar/store.js +116 -81
- package/lib/modules/control-bar/view.js +7 -3
- 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/dialog-container/index.css +16 -0
- 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/share-screen-selection/index.js +1 -2
- 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 +22 -90
- package/lib/modules/dialog/index.d.ts +2 -0
- package/lib/modules/dialog/index.js +2 -2
- package/lib/modules/dialog/store.d.ts +9 -2
- package/lib/modules/dialog/store.js +46 -6
- 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 +40 -25
- package/lib/modules/event-confirm/view.js +23 -171
- package/lib/modules/event-sound/index.js +1 -1
- package/lib/modules/event-toast/store.js +5 -2
- package/lib/modules/invite/components/pstn-invite.js +0 -17
- package/lib/modules/layout/components/Aside.js +0 -1
- package/lib/modules/layout/components/CommonVideoRenderer.js +30 -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 +84 -46
- package/lib/modules/participant/components/participants/components/footer/components/footer/index.js +0 -2
- 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 +45 -28
- package/lib/modules/pc-audio-connect/store.js +2 -1
- package/lib/modules/setting/audio-settings/audio-settings.js +3 -14
- 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 +38 -46
- package/lib/modules/share-screen/store.js +263 -693
- 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.d.ts +2 -0
- package/lib/modules/state-bar/index.js +1 -0
- package/lib/modules/state-bar/meeting-details.js +3 -9
- package/lib/modules/state-bar/store.d.ts +5 -1
- package/lib/modules/state-bar/store.js +9 -1
- package/lib/modules/state-bar/view.js +3 -2
- 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/index.js +0 -2
- package/lib/modules/whiteboard/components/control-bar/store.d.ts +5 -1
- package/lib/modules/whiteboard/components/control-bar/store.js +8 -1
- package/lib/modules/whiteboard/components/scene-pagination.js +0 -2
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/color.js +1 -2
- 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 +9 -2
- package/lib/modules/whiteboard/components/toolbar/store.js +30 -6
- 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 +20 -20
- package/lib/modules/widget/sdk.js +0 -1
- package/lib/plugins/browser-runtime-plugin.js +10 -1
- package/lib/providers/annotation-provider.d.ts +77 -0
- package/lib/providers/annotation-provider.js +411 -0
- package/lib/providers/device-provider.js +4 -20
- 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 +561 -173
- package/lib/providers/sharing-provider.d.ts +33 -0
- package/lib/{shared-data-source/screen-share-data-source.js → providers/sharing-provider.js} +87 -39
- package/lib/runtime.d.ts +6 -1
- package/lib/scenes/main-scene.d.ts +7 -2
- package/lib/scenes/main-scene.js +54 -25
- package/lib/scenes/waiting-scene.d.ts +6 -0
- package/lib/scenes/waiting-scene.js +15 -5
- package/lib/shared-data-source/meeting-time.js +2 -2
- 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 +270 -0
- package/lib/shared-data-source/screen-share-data.js +389 -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.js +6 -4
- package/lib/shared-data-source/video-window.d.ts +0 -1
- package/lib/shared-data-source/video-window.js +3 -10
- package/lib/type.d.ts +53 -0
- package/lib/ui-manager.d.ts +3 -2
- package/lib/ui-manager.js +6 -4
- package/lib/ui-scene.js +61 -48
- package/lib/utilities/constant.d.ts +8 -1
- package/lib/utilities/constant.js +7 -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/tools.d.ts +43 -3
- package/lib/utilities/tools.js +81 -17
- package/lib/waiting-room-control-manager.js +1 -1
- package/package.json +7 -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
|
@@ -70,7 +70,7 @@ var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
|
70
70
|
var _logger = require("../../utilities/logger");
|
|
71
71
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
72
72
|
var _ControlBarStore;
|
|
73
|
-
var _initProto, _leaveConfirmRefDecs, _init_leaveConfirmRef,
|
|
73
|
+
var _initProto, _leaveConfirmRefDecs, _init_leaveConfirmRef, _init_currentShareId, _init_currentShareType, _init_currentShareBounds, _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, _initControlBarDecs, _updateCurrentShareContentDecs, _setShareWithAudioStateDecs, _showLockedRoomToastDecs, _createNewShareDecs, _handlerStopShareDecs, _setShareAudioProcessingChannelDecs, _handleMoreClickDecs, _pauseCloudRecordingDecs, _resumeCloudRecordingDecs, _stopCloudRecordingDecs, _showToastDecs, _setShowMeetingDetailPortalDecs, _setEnableWaitingRoomDecs, _handleLeaveRoomDecs, _resetMessageCountDecs, _ref;
|
|
74
74
|
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
75
75
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
76
76
|
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
@@ -98,7 +98,6 @@ var _N = /*#__PURE__*/new WeakMap();
|
|
|
98
98
|
var _O = /*#__PURE__*/new WeakMap();
|
|
99
99
|
var _P = /*#__PURE__*/new WeakMap();
|
|
100
100
|
var _Q = /*#__PURE__*/new WeakMap();
|
|
101
|
-
var _R = /*#__PURE__*/new WeakMap();
|
|
102
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, {
|
|
103
102
|
leading: true
|
|
104
103
|
})], _resumeCloudRecordingDecs = [_decorator.bound, (0, _decorator.debounced)(500, {
|
|
@@ -126,8 +125,11 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
126
125
|
sharedMeetingTimeDataSource = _ref2.sharedMeetingTimeDataSource,
|
|
127
126
|
messageProvider = _ref2.messageProvider,
|
|
128
127
|
sharedSecuritySharedDataSource = _ref2.sharedSecuritySharedDataSource,
|
|
129
|
-
|
|
130
|
-
|
|
128
|
+
annotationProvider = _ref2.annotationProvider,
|
|
129
|
+
sharingProvider = _ref2.sharingProvider,
|
|
130
|
+
screenShareProvider = _ref2.screenShareProvider,
|
|
131
|
+
sharedScreenShareSharedDataSource = _ref2.sharedScreenShareSharedDataSource,
|
|
132
|
+
dialogProvider = _ref2.dialogProvider;
|
|
131
133
|
(0, _classCallCheck2["default"])(this, ControlBarStore);
|
|
132
134
|
(0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.createLogger)({
|
|
133
135
|
prefix: 'ControlBarStore'
|
|
@@ -142,7 +144,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
142
144
|
(0, _defineProperty2["default"])(this, "_disposers", []);
|
|
143
145
|
(0, _defineProperty2["default"])(this, "_liveStreamingDialogKey", null);
|
|
144
146
|
(0, _defineProperty2["default"])(this, "_dialogObsever", {
|
|
145
|
-
onDialogOpened: function onDialogOpened(dialogKey, dialogId
|
|
147
|
+
onDialogOpened: function onDialogOpened(dialogKey, dialogId) {
|
|
146
148
|
if (dialogKey === _constant.FcrUIDialogKey.PARTICIPANT) {
|
|
147
149
|
_this._participantDialogId = dialogId;
|
|
148
150
|
}
|
|
@@ -155,34 +157,33 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
155
157
|
});
|
|
156
158
|
(0, _defineProperty2["default"])(this, "_participantDialogId", '');
|
|
157
159
|
_classPrivateFieldInitSpec(this, _A, _init_leaveConfirmRef(this, undefined));
|
|
158
|
-
_classPrivateFieldInitSpec(this, _B,
|
|
159
|
-
_classPrivateFieldInitSpec(this, _C,
|
|
160
|
-
_classPrivateFieldInitSpec(this, _D,
|
|
161
|
-
_classPrivateFieldInitSpec(this, _E, _init_currentShareBounds(this, {
|
|
160
|
+
_classPrivateFieldInitSpec(this, _B, _init_currentShareId(this, ''));
|
|
161
|
+
_classPrivateFieldInitSpec(this, _C, _init_currentShareType(this, _type.AgoraRtcScreenCaptureType.SCREEN));
|
|
162
|
+
_classPrivateFieldInitSpec(this, _D, _init_currentShareBounds(this, {
|
|
162
163
|
width: 0,
|
|
163
164
|
height: 0,
|
|
164
165
|
x: 0,
|
|
165
166
|
y: 0
|
|
166
167
|
}));
|
|
167
|
-
_classPrivateFieldInitSpec(this,
|
|
168
|
-
_classPrivateFieldInitSpec(this,
|
|
169
|
-
_classPrivateFieldInitSpec(this,
|
|
170
|
-
_classPrivateFieldInitSpec(this,
|
|
171
|
-
_classPrivateFieldInitSpec(this,
|
|
172
|
-
_classPrivateFieldInitSpec(this,
|
|
173
|
-
_classPrivateFieldInitSpec(this,
|
|
174
|
-
_classPrivateFieldInitSpec(this,
|
|
175
|
-
_classPrivateFieldInitSpec(this,
|
|
168
|
+
_classPrivateFieldInitSpec(this, _E, _init_recordShareBounds(this, new Map()));
|
|
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, {
|
|
176
177
|
roomId: '',
|
|
177
178
|
roomName: '',
|
|
178
179
|
roomType: _type2.FcrRoomType.Mainroom,
|
|
179
180
|
password: '',
|
|
180
181
|
inviteLink: ''
|
|
181
182
|
}));
|
|
182
|
-
_classPrivateFieldInitSpec(this,
|
|
183
|
-
_classPrivateFieldInitSpec(this,
|
|
184
|
-
_classPrivateFieldInitSpec(this,
|
|
185
|
-
_classPrivateFieldInitSpec(this,
|
|
183
|
+
_classPrivateFieldInitSpec(this, _N, _init_isShowMeetingDetailPortal(this, false));
|
|
184
|
+
_classPrivateFieldInitSpec(this, _O, _init_hiddenShareActionNav(this, false));
|
|
185
|
+
_classPrivateFieldInitSpec(this, _P, _init_boardOwnerUser(this, ''));
|
|
186
|
+
_classPrivateFieldInitSpec(this, _Q, _init_currentShareDisplayId(this, 0));
|
|
186
187
|
this._uiEventStore = uiEventStore;
|
|
187
188
|
this._roomControl = roomControl;
|
|
188
189
|
this._securityStore = securityStore;
|
|
@@ -194,21 +195,24 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
194
195
|
this._sharedMeetingTimeDataSource = sharedMeetingTimeDataSource;
|
|
195
196
|
this._messageProvider = messageProvider;
|
|
196
197
|
this._sharedSecuritySharedDataSource = sharedSecuritySharedDataSource;
|
|
197
|
-
this.
|
|
198
|
+
this._annotationProvider = annotationProvider;
|
|
199
|
+
this._sharingProvider = sharingProvider;
|
|
198
200
|
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
201
|
this.roomInfo = roomControl.getRoomInfo();
|
|
200
202
|
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
203
|
this.liveStreamingState = roomControl.getLiveStreamingState();
|
|
202
204
|
this._deviceProvider = deviceProvider;
|
|
203
205
|
this._abilityProvider = abilityProvider;
|
|
206
|
+
this._screenShareProvider = screenShareProvider;
|
|
207
|
+
this._sharedScreenShareSharedDataSource = sharedScreenShareSharedDataSource;
|
|
204
208
|
this._dialogProvider = dialogProvider;
|
|
205
209
|
this._dialogProvider.addObserver(this._dialogObsever);
|
|
206
210
|
this._roomObserver = {
|
|
207
|
-
onLiveStreamingStateUpdated: function onLiveStreamingStateUpdated(
|
|
211
|
+
onLiveStreamingStateUpdated: function onLiveStreamingStateUpdated(_roomId, state, url) {
|
|
208
212
|
_this.liveStreamingState = state;
|
|
209
213
|
_this.playUrl = url;
|
|
210
214
|
},
|
|
211
|
-
onCloudRecordingStateUpdated: function onCloudRecordingStateUpdated(
|
|
215
|
+
onCloudRecordingStateUpdated: function onCloudRecordingStateUpdated(_roomId, state) {
|
|
212
216
|
return _this.cloudRecordingState = state;
|
|
213
217
|
}
|
|
214
218
|
};
|
|
@@ -221,7 +225,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
221
225
|
}
|
|
222
226
|
};
|
|
223
227
|
roomControl.addObserver(this._roomObserver);
|
|
224
|
-
roomControl.getBoardControl().addObserver(this._boardObserver);
|
|
228
|
+
roomControl.getSharingControl().getBoardControl().addObserver(this._boardObserver);
|
|
225
229
|
}
|
|
226
230
|
return (0, _createClass2["default"])(ControlBarStore, [{
|
|
227
231
|
key: "leaveConfirmRef",
|
|
@@ -232,7 +236,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
232
236
|
_classPrivateFieldSet(_A, this, v);
|
|
233
237
|
}
|
|
234
238
|
}, {
|
|
235
|
-
key: "
|
|
239
|
+
key: "currentShareId",
|
|
236
240
|
get: function get() {
|
|
237
241
|
return _classPrivateFieldGet(_B, this);
|
|
238
242
|
},
|
|
@@ -240,7 +244,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
240
244
|
_classPrivateFieldSet(_B, this, v);
|
|
241
245
|
}
|
|
242
246
|
}, {
|
|
243
|
-
key: "
|
|
247
|
+
key: "currentShareType",
|
|
244
248
|
get: function get() {
|
|
245
249
|
return _classPrivateFieldGet(_C, this);
|
|
246
250
|
},
|
|
@@ -248,7 +252,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
248
252
|
_classPrivateFieldSet(_C, this, v);
|
|
249
253
|
}
|
|
250
254
|
}, {
|
|
251
|
-
key: "
|
|
255
|
+
key: "currentShareBounds",
|
|
252
256
|
get: function get() {
|
|
253
257
|
return _classPrivateFieldGet(_D, this);
|
|
254
258
|
},
|
|
@@ -256,7 +260,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
256
260
|
_classPrivateFieldSet(_D, this, v);
|
|
257
261
|
}
|
|
258
262
|
}, {
|
|
259
|
-
key: "
|
|
263
|
+
key: "recordShareBounds",
|
|
260
264
|
get: function get() {
|
|
261
265
|
return _classPrivateFieldGet(_E, this);
|
|
262
266
|
},
|
|
@@ -264,7 +268,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
264
268
|
_classPrivateFieldSet(_E, this, v);
|
|
265
269
|
}
|
|
266
270
|
}, {
|
|
267
|
-
key: "
|
|
271
|
+
key: "cloudRecordingState",
|
|
268
272
|
get: function get() {
|
|
269
273
|
return _classPrivateFieldGet(_F, this);
|
|
270
274
|
},
|
|
@@ -272,7 +276,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
272
276
|
_classPrivateFieldSet(_F, this, v);
|
|
273
277
|
}
|
|
274
278
|
}, {
|
|
275
|
-
key: "
|
|
279
|
+
key: "isHost",
|
|
276
280
|
get: function get() {
|
|
277
281
|
return _classPrivateFieldGet(_G, this);
|
|
278
282
|
},
|
|
@@ -280,7 +284,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
280
284
|
_classPrivateFieldSet(_G, this, v);
|
|
281
285
|
}
|
|
282
286
|
}, {
|
|
283
|
-
key: "
|
|
287
|
+
key: "roomDuration",
|
|
284
288
|
get: function get() {
|
|
285
289
|
return _classPrivateFieldGet(_H, this);
|
|
286
290
|
},
|
|
@@ -288,7 +292,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
288
292
|
_classPrivateFieldSet(_H, this, v);
|
|
289
293
|
}
|
|
290
294
|
}, {
|
|
291
|
-
key: "
|
|
295
|
+
key: "startTime",
|
|
292
296
|
get: function get() {
|
|
293
297
|
return _classPrivateFieldGet(_I, this);
|
|
294
298
|
},
|
|
@@ -296,7 +300,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
296
300
|
_classPrivateFieldSet(_I, this, v);
|
|
297
301
|
}
|
|
298
302
|
}, {
|
|
299
|
-
key: "
|
|
303
|
+
key: "playUrl",
|
|
300
304
|
get: function get() {
|
|
301
305
|
return _classPrivateFieldGet(_J, this);
|
|
302
306
|
},
|
|
@@ -304,7 +308,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
304
308
|
_classPrivateFieldSet(_J, this, v);
|
|
305
309
|
}
|
|
306
310
|
}, {
|
|
307
|
-
key: "
|
|
311
|
+
key: "liveStreamingState",
|
|
308
312
|
get: function get() {
|
|
309
313
|
return _classPrivateFieldGet(_K, this);
|
|
310
314
|
},
|
|
@@ -312,7 +316,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
312
316
|
_classPrivateFieldSet(_K, this, v);
|
|
313
317
|
}
|
|
314
318
|
}, {
|
|
315
|
-
key: "
|
|
319
|
+
key: "allApplicationWindows",
|
|
316
320
|
get: function get() {
|
|
317
321
|
return _classPrivateFieldGet(_L, this);
|
|
318
322
|
},
|
|
@@ -320,7 +324,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
320
324
|
_classPrivateFieldSet(_L, this, v);
|
|
321
325
|
}
|
|
322
326
|
}, {
|
|
323
|
-
key: "
|
|
327
|
+
key: "roomInfo",
|
|
324
328
|
get: function get() {
|
|
325
329
|
return _classPrivateFieldGet(_M, this);
|
|
326
330
|
},
|
|
@@ -328,7 +332,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
328
332
|
_classPrivateFieldSet(_M, this, v);
|
|
329
333
|
}
|
|
330
334
|
}, {
|
|
331
|
-
key: "
|
|
335
|
+
key: "isShowMeetingDetailPortal",
|
|
332
336
|
get: function get() {
|
|
333
337
|
return _classPrivateFieldGet(_N, this);
|
|
334
338
|
},
|
|
@@ -336,7 +340,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
336
340
|
_classPrivateFieldSet(_N, this, v);
|
|
337
341
|
}
|
|
338
342
|
}, {
|
|
339
|
-
key: "
|
|
343
|
+
key: "hiddenShareActionNav",
|
|
340
344
|
get: function get() {
|
|
341
345
|
return _classPrivateFieldGet(_O, this);
|
|
342
346
|
},
|
|
@@ -344,7 +348,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
344
348
|
_classPrivateFieldSet(_O, this, v);
|
|
345
349
|
}
|
|
346
350
|
}, {
|
|
347
|
-
key: "
|
|
351
|
+
key: "boardOwnerUser",
|
|
348
352
|
get: function get() {
|
|
349
353
|
return _classPrivateFieldGet(_P, this);
|
|
350
354
|
},
|
|
@@ -352,7 +356,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
352
356
|
_classPrivateFieldSet(_P, this, v);
|
|
353
357
|
}
|
|
354
358
|
}, {
|
|
355
|
-
key: "
|
|
359
|
+
key: "currentShareDisplayId",
|
|
356
360
|
get: function get() {
|
|
357
361
|
return _classPrivateFieldGet(_Q, this);
|
|
358
362
|
},
|
|
@@ -360,17 +364,9 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
360
364
|
_classPrivateFieldSet(_Q, this, v);
|
|
361
365
|
}
|
|
362
366
|
}, {
|
|
363
|
-
key: "
|
|
364
|
-
get: function get() {
|
|
365
|
-
return _classPrivateFieldGet(_R, this);
|
|
366
|
-
},
|
|
367
|
-
set: function set(v) {
|
|
368
|
-
_classPrivateFieldSet(_R, this, v);
|
|
369
|
-
}
|
|
370
|
-
}, {
|
|
371
|
-
key: "shareAudioProcessingChannel",
|
|
367
|
+
key: "shareWithAudio",
|
|
372
368
|
get: function get() {
|
|
373
|
-
return this.
|
|
369
|
+
return this._sharedScreenShareSharedDataSource.shareWithAudio;
|
|
374
370
|
}
|
|
375
371
|
}, {
|
|
376
372
|
key: "privilegeProvider",
|
|
@@ -427,6 +423,21 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
427
423
|
get: function get() {
|
|
428
424
|
return this._securityStore.hasEndRoomPermission();
|
|
429
425
|
}
|
|
426
|
+
}, {
|
|
427
|
+
key: "hasAnnotationAllowWritePermission",
|
|
428
|
+
get: function get() {
|
|
429
|
+
return this._securityStore.hasAnnotationAllowWritePermission();
|
|
430
|
+
}
|
|
431
|
+
}, {
|
|
432
|
+
key: "hasAnnotationStartPermission",
|
|
433
|
+
get: function get() {
|
|
434
|
+
return this._securityStore.hasAnnotationStartPermission();
|
|
435
|
+
}
|
|
436
|
+
}, {
|
|
437
|
+
key: "allowAnnotationWriteState",
|
|
438
|
+
get: function get() {
|
|
439
|
+
return this._securityStore.allowAnnotationWriteState();
|
|
440
|
+
}
|
|
430
441
|
}, {
|
|
431
442
|
key: "totalHourText",
|
|
432
443
|
get: function get() {
|
|
@@ -503,11 +514,21 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
503
514
|
get: function get() {
|
|
504
515
|
return this._sharedMemberDataSource.memberUserInfoList;
|
|
505
516
|
}
|
|
517
|
+
}, {
|
|
518
|
+
key: "shareAudioProcessingChannel",
|
|
519
|
+
get: function get() {
|
|
520
|
+
return this._sharedScreenShareSharedDataSource.currentShareAudioProcessingChannel;
|
|
521
|
+
}
|
|
506
522
|
}, {
|
|
507
523
|
key: "checkedStateMap",
|
|
508
524
|
get: function get() {
|
|
509
525
|
return this._sharedSecuritySharedDataSource.checkedStateMap;
|
|
510
526
|
}
|
|
527
|
+
}, {
|
|
528
|
+
key: "isSharingScreen",
|
|
529
|
+
get: function get() {
|
|
530
|
+
return this._sharedScreenShareSharedDataSource.isSharingScreen;
|
|
531
|
+
}
|
|
511
532
|
}, {
|
|
512
533
|
key: "setCheckedStateMap",
|
|
513
534
|
value: function setCheckedStateMap(val) {
|
|
@@ -515,7 +536,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
515
536
|
}
|
|
516
537
|
}, {
|
|
517
538
|
key: "initControlBar",
|
|
518
|
-
value: function initControlBar(payload,
|
|
539
|
+
value: function initControlBar(payload, _browserWindow) {
|
|
519
540
|
// this._screenShareDataSource.setCurrentShareAudioProcessingChannel(
|
|
520
541
|
// payload.currentShareAudioProcessingChannel,
|
|
521
542
|
// );
|
|
@@ -533,15 +554,11 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
533
554
|
this.currentShareId = id;
|
|
534
555
|
this.currentShareType = type;
|
|
535
556
|
this.currentShareBounds = bounds;
|
|
536
|
-
// this.setControlBarWindowBounds();
|
|
537
557
|
}
|
|
538
558
|
}, {
|
|
539
559
|
key: "setShareWithAudioState",
|
|
540
560
|
value: function setShareWithAudioState(withAudio) {
|
|
541
|
-
this.
|
|
542
|
-
this._uiEventStore.sendEvent(_constant.FcrUIAction.SET_SHARE_WITH_AUDIO, {
|
|
543
|
-
withAudio: withAudio
|
|
544
|
-
});
|
|
561
|
+
this._screenShareProvider.toggleScreenshareWithAudio(withAudio);
|
|
545
562
|
}
|
|
546
563
|
}, {
|
|
547
564
|
key: "showLockedRoomToast",
|
|
@@ -554,17 +571,21 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
554
571
|
}, {
|
|
555
572
|
key: "createNewShare",
|
|
556
573
|
value: function createNewShare() {
|
|
557
|
-
this.
|
|
574
|
+
this._screenShareProvider.bootstrap();
|
|
558
575
|
}
|
|
559
576
|
}, {
|
|
560
577
|
key: "handlerStopShare",
|
|
561
578
|
value: function handlerStopShare() {
|
|
562
|
-
this.
|
|
579
|
+
if (this.isSharingScreen) {
|
|
580
|
+
this._screenShareProvider.stop();
|
|
581
|
+
} else {
|
|
582
|
+
this.log('handlerStopShare: share screen is starting, please wait a moment to operate');
|
|
583
|
+
}
|
|
563
584
|
}
|
|
564
585
|
}, {
|
|
565
586
|
key: "setShareAudioProcessingChannel",
|
|
566
587
|
value: function setShareAudioProcessingChannel(target) {
|
|
567
|
-
this.
|
|
588
|
+
this._sharedScreenShareSharedDataSource.setCurrentShareAudioProcessingChannel(target);
|
|
568
589
|
}
|
|
569
590
|
|
|
570
591
|
// more
|
|
@@ -719,6 +740,16 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
719
740
|
var _this$_localStoragePr;
|
|
720
741
|
return (_this$_localStoragePr = this._localStorageProvider) === null || _this$_localStoragePr === void 0 ? void 0 : _this$_localStoragePr.read(this.meetingTimeKey);
|
|
721
742
|
}
|
|
743
|
+
}, {
|
|
744
|
+
key: "toggleAnnotation",
|
|
745
|
+
value: function toggleAnnotation() {
|
|
746
|
+
this._annotationProvider.toggleAnnotation();
|
|
747
|
+
}
|
|
748
|
+
}, {
|
|
749
|
+
key: "setAllAnnotationWrite",
|
|
750
|
+
value: function setAllAnnotationWrite(allow) {
|
|
751
|
+
this._securityStore.setAllowAnnotation(allow);
|
|
752
|
+
}
|
|
722
753
|
}, {
|
|
723
754
|
key: "release",
|
|
724
755
|
value: function release() {
|
|
@@ -726,11 +757,16 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
726
757
|
return disposer();
|
|
727
758
|
});
|
|
728
759
|
this._disposers = [];
|
|
729
|
-
this._roomControl.getBoardControl().removeObserver(this._boardObserver);
|
|
760
|
+
this._roomControl.getSharingControl().getBoardControl().removeObserver(this._boardObserver);
|
|
730
761
|
this._dialogProvider.removeObserver(this._dialogObsever);
|
|
731
762
|
this._roomControl.removeObserver(this._roomObserver);
|
|
732
763
|
this.recordShareBounds.clear();
|
|
733
764
|
}
|
|
765
|
+
}, {
|
|
766
|
+
key: "log",
|
|
767
|
+
value: function log(info) {
|
|
768
|
+
this.logger.info(info);
|
|
769
|
+
}
|
|
734
770
|
}, {
|
|
735
771
|
key: "_resetMessageCount",
|
|
736
772
|
value: function _resetMessageCount() {
|
|
@@ -739,24 +775,23 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
739
775
|
}]);
|
|
740
776
|
}();
|
|
741
777
|
_ControlBarStore = ControlBarStore;
|
|
742
|
-
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ControlBarStore, [[_leaveConfirmRefDecs, 17, "leaveConfirmRef"], [_mobx.observable, 1, "
|
|
778
|
+
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ControlBarStore, [[_leaveConfirmRefDecs, 17, "leaveConfirmRef"], [_mobx.observable, 1, "currentShareId"], [_mobx.observable, 1, "currentShareType"], [_mobx.observable, 1, "currentShareBounds"], [_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"], [_initControlBarDecs, 18, "initControlBar"], [_updateCurrentShareContentDecs, 18, "updateCurrentShareContent"], [_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, 18);
|
|
743
779
|
_init_leaveConfirmRef = _applyDecs$e[0];
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
_initProto = _applyDecs$e[18];
|
|
780
|
+
_init_currentShareId = _applyDecs$e[1];
|
|
781
|
+
_init_currentShareType = _applyDecs$e[2];
|
|
782
|
+
_init_currentShareBounds = _applyDecs$e[3];
|
|
783
|
+
_init_recordShareBounds = _applyDecs$e[4];
|
|
784
|
+
_init_cloudRecordingState = _applyDecs$e[5];
|
|
785
|
+
_init_isHost = _applyDecs$e[6];
|
|
786
|
+
_init_roomDuration = _applyDecs$e[7];
|
|
787
|
+
_init_startTime = _applyDecs$e[8];
|
|
788
|
+
_init_playUrl = _applyDecs$e[9];
|
|
789
|
+
_init_liveStreamingState = _applyDecs$e[10];
|
|
790
|
+
_init_allApplicationWindows = _applyDecs$e[11];
|
|
791
|
+
_init_roomInfo = _applyDecs$e[12];
|
|
792
|
+
_init_isShowMeetingDetailPortal = _applyDecs$e[13];
|
|
793
|
+
_init_hiddenShareActionNav = _applyDecs$e[14];
|
|
794
|
+
_init_boardOwnerUser = _applyDecs$e[15];
|
|
795
|
+
_init_currentShareDisplayId = _applyDecs$e[16];
|
|
796
|
+
_initProto = _applyDecs$e[17];
|
|
762
797
|
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");
|
|
@@ -77,20 +79,20 @@ var ControlBarView = exports.ControlBarView = (0, _mobxReact.observer)(function
|
|
|
77
79
|
cloudRecordingState = _useContext2.cloudRecordingState,
|
|
78
80
|
hasStartCloudRecordingPermission = _useContext2.hasStartCloudRecordingPermission,
|
|
79
81
|
hasStopLiveStreamingPermission = _useContext2.hasStopLiveStreamingPermission,
|
|
82
|
+
hasAnnotationStartPermission = _useContext2.hasAnnotationStartPermission,
|
|
80
83
|
hasSecurityPermission = _useContext2.hasSecurityPermission,
|
|
81
|
-
allApplicationWindows = _useContext2.allApplicationWindows,
|
|
82
84
|
isShowMeetingDetailPortal = _useContext2.isShowMeetingDetailPortal,
|
|
83
85
|
setShowMeetingDetailPortal = _useContext2.setShowMeetingDetailPortal,
|
|
84
86
|
setEnableWaitingRoom = _useContext2.setEnableWaitingRoom,
|
|
85
87
|
currentShareDisplayId = _useContext2.currentShareDisplayId,
|
|
86
88
|
privilegeProvider = _useContext2.privilegeProvider,
|
|
87
89
|
newMessageCount = _useContext2.newMessageCount,
|
|
88
|
-
currentShareType = _useContext2.currentShareType,
|
|
89
90
|
currentShareBounds = _useContext2.currentShareBounds,
|
|
90
91
|
recordShareBounds = _useContext2.recordShareBounds,
|
|
91
92
|
showLockedRoomToast = _useContext2.showLockedRoomToast,
|
|
92
93
|
checkedStateMap = _useContext2.checkedStateMap,
|
|
93
|
-
setCheckedStateMap = _useContext2.setCheckedStateMap
|
|
94
|
+
setCheckedStateMap = _useContext2.setCheckedStateMap,
|
|
95
|
+
log = _useContext2.log;
|
|
94
96
|
// 控制栏本身的高度
|
|
95
97
|
var NAV_HEIGHT = 84;
|
|
96
98
|
// 鼠标移开后自动隐藏的时间
|
|
@@ -279,12 +281,14 @@ var ControlBarView = exports.ControlBarView = (0, _mobxReact.observer)(function
|
|
|
279
281
|
y: y
|
|
280
282
|
}, bounds);
|
|
281
283
|
browserWindow.setBounds(screenBounds);
|
|
284
|
+
log("[ControlBarView]: [getScreenBounds], screenBounds: ".concat(JSON.stringify(screenBounds)));
|
|
282
285
|
} else {
|
|
283
286
|
recordShareBounds.clear();
|
|
284
287
|
screenBounds = (0, _tools.getCurrentSharingWorkArea)({
|
|
285
288
|
currentShareBounds: currentShareBounds
|
|
286
289
|
});
|
|
287
290
|
recordShareBounds.set(currentShareBounds, screenBounds);
|
|
291
|
+
log("[ControlBarView]: [getScreenBounds], screenBounds: ".concat(JSON.stringify(screenBounds)));
|
|
288
292
|
}
|
|
289
293
|
return screenBounds;
|
|
290
294
|
}
|
|
@@ -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;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.title = exports.config = exports.AnnotationBarDialog = void 0;
|
|
8
|
+
var _constant = require("../../../../utilities/constant");
|
|
9
|
+
var _useElectron = require("../../hooks/useElectron");
|
|
10
|
+
var _mobxReact = require("mobx-react");
|
|
11
|
+
var _hostAreaContainer = require("../host-area-container");
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
var title = exports.title = 'Annotation tool bar';
|
|
14
|
+
var config = exports.config = {
|
|
15
|
+
y: 0,
|
|
16
|
+
x: 0,
|
|
17
|
+
maximizable: false,
|
|
18
|
+
backgroundColor: '#00000000',
|
|
19
|
+
hiddenInMissionControl: true,
|
|
20
|
+
hasShadow: false,
|
|
21
|
+
useContentSize: true,
|
|
22
|
+
minimizable: false,
|
|
23
|
+
resizable: false,
|
|
24
|
+
title: title,
|
|
25
|
+
type: 'panel',
|
|
26
|
+
skipTaskbar: true,
|
|
27
|
+
width: 800,
|
|
28
|
+
height: 100,
|
|
29
|
+
movable: false
|
|
30
|
+
};
|
|
31
|
+
var AnnotationBarDialog = exports.AnnotationBarDialog = (0, _mobxReact.observer)(function (props) {
|
|
32
|
+
var children = props.children;
|
|
33
|
+
(0, _useElectron.useElectronDialog)({
|
|
34
|
+
dialogKey: _constant.FcrUIDialogKey.ANNOTATION_TOOL,
|
|
35
|
+
config: config,
|
|
36
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_hostAreaContainer.HotAreaContainer, {
|
|
37
|
+
width: 800,
|
|
38
|
+
height: 90,
|
|
39
|
+
dialogKey: _constant.FcrUIDialogKey.ANNOTATION_TOOL,
|
|
40
|
+
children: children
|
|
41
|
+
}),
|
|
42
|
+
hasCustomShadow: false,
|
|
43
|
+
disableShortcutClose: true,
|
|
44
|
+
alwaysOnTop: 'screen-saver',
|
|
45
|
+
fullScreen: true,
|
|
46
|
+
ignoreMouseEvents: true,
|
|
47
|
+
onOpened: function onOpened(_ref) {
|
|
48
|
+
var browserWindow = _ref.browserWindow,
|
|
49
|
+
newRendererWindow = _ref.newRendererWindow;
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {});
|
|
53
|
+
});
|
|
@@ -25,7 +25,7 @@ var Container = (0, _mobxReact.observer)(function (props) {
|
|
|
25
25
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_dialogContainer["default"], {
|
|
26
26
|
title: store.chatRoomState === _type.FcrChatRoomConnectionState.Connected ? transI18n('fmt_chat_label_chat') : transI18n('fmt_aside_status_connecting'),
|
|
27
27
|
actions: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
28
|
-
children: [props.chatAction, store.isSharingScreen ? null : /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
|
|
28
|
+
children: [props.chatAction, store.isSharingScreen && store.isSharingScreenOwner ? null : /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
|
|
29
29
|
content: transI18n('fmt_uimanager_option_mergeview'),
|
|
30
30
|
mouseEnterDelay: 0,
|
|
31
31
|
trigger: "hover",
|
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
position: relative;
|
|
4
4
|
flex: 1;
|
|
5
5
|
width: 100%;
|
|
6
|
+
font-family:
|
|
7
|
+
ui-sans-serif,
|
|
8
|
+
system-ui,
|
|
9
|
+
-apple-system,
|
|
10
|
+
BlinkMacSystemFont,
|
|
11
|
+
'Segoe UI',
|
|
12
|
+
Roboto,
|
|
13
|
+
'Helvetica Neue',
|
|
14
|
+
Arial,
|
|
15
|
+
'Noto Sans',
|
|
16
|
+
sans-serif,
|
|
17
|
+
'Apple Color Emoji',
|
|
18
|
+
'Segoe UI Emoji',
|
|
19
|
+
'Segoe UI Symbol',
|
|
20
|
+
'Noto Color Emoji';
|
|
21
|
+
font-size: 14px;
|
|
6
22
|
}
|
|
7
23
|
|
|
8
24
|
.fcr-dialog-container_shadow {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { FcrUIDialogKey } from '../../../../utilities/constant';
|
|
3
|
+
import { ToolTipProps } from 'agora-ui-foundation/lib/components/tooltip';
|
|
4
|
+
export declare const HotAreaContext: import("react").Context<{
|
|
5
|
+
placement: ToolTipProps["placement"];
|
|
6
|
+
}>;
|
|
7
|
+
export declare const HotAreaContainer: (props: PropsWithChildren<{
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
dialogKey: FcrUIDialogKey;
|
|
11
|
+
placement?: ToolTipProps["placement"];
|
|
12
|
+
}>) => import("react/jsx-runtime").JSX.Element;
|