fcr-ui-scene 3.4.0 → 3.4.1
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/ scenes/base.d.ts +10 -0
- package/lib/ scenes/base.js +75 -0
- package/lib/ scenes/main-scene.d.ts +43 -0
- package/lib/ scenes/main-scene.js +368 -0
- package/lib/ scenes/waiting-scene.d.ts +31 -0
- package/lib/ scenes/waiting-scene.js +119 -0
- package/lib/common/device-store.d.ts +1 -2
- package/lib/common/device-store.js +169 -153
- package/lib/common/device-stream-store.d.ts +5 -29
- package/lib/common/device-stream-store.js +47 -93
- package/lib/common/room-store.js +4 -4
- package/lib/common/security-store.d.ts +6 -16
- package/lib/common/security-store.js +16 -17
- package/lib/common/type.d.ts +8 -0
- package/lib/common/type.js +6 -0
- package/lib/creator.js +3 -3
- package/lib/electron/app.js +21 -5
- package/lib/electron/bootstrap-sdk.js +1 -2
- package/lib/electron/injections.d.ts +1 -1
- package/lib/error-fallback.css +62 -0
- package/lib/error-fallback.d.ts +2 -0
- package/lib/error-fallback.js +19 -0
- package/lib/modules/Interpreter/action/delete-btn/index.d.ts +1 -1
- package/lib/modules/Interpreter/action/edit-btn/index.d.ts +0 -1
- package/lib/modules/Interpreter/action/edit-btn/index.js +0 -2
- package/lib/modules/Interpreter/action/switch-btn/index.css +3 -0
- package/lib/modules/Interpreter/action/switch-btn/index.d.ts +2 -4
- package/lib/modules/Interpreter/action/switch-btn/index.js +3 -3
- package/lib/modules/Interpreter/footer/index.css +4 -3
- package/lib/modules/Interpreter/index.d.ts +2 -17
- package/lib/modules/Interpreter/index.js +2 -18
- package/lib/modules/Interpreter/interpreter-list/index.css +5 -1
- package/lib/modules/Interpreter/interpreter-list/index.d.ts +1 -0
- package/lib/modules/Interpreter/interpreter-list/index.js +3 -1
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.css +0 -6
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.d.ts +1 -1
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.css +1 -3
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.d.ts +1 -6
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.js +55 -81
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/option-Item.d.ts +6 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/option-Item.js +58 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.d.ts +1 -1
- package/lib/modules/Interpreter/store.d.ts +36 -29
- package/lib/modules/Interpreter/store.js +575 -606
- package/lib/modules/Interpreter/type.d.ts +41 -0
- package/lib/modules/Interpreter/type.js +20 -0
- package/lib/modules/Interpreter/utils.d.ts +12 -0
- package/lib/modules/Interpreter/utils.js +139 -0
- package/lib/modules/Interpreter/view.d.ts +0 -1
- package/lib/modules/Interpreter/view.js +3 -5
- package/lib/modules/action-bar/action-bar-collapes-items.d.ts +1 -1
- package/lib/modules/action-bar/action-bar-collapes-items.js +11 -11
- package/lib/modules/action-bar/apps/useInterpreter.js +4 -2
- package/lib/modules/action-bar/components/apps/app-item/index.css +35 -0
- package/lib/modules/action-bar/components/apps/app-item/index.d.ts +12 -0
- package/lib/modules/action-bar/components/apps/app-item/index.js +61 -0
- package/lib/modules/action-bar/components/apps/appitems.d.ts +5 -0
- package/lib/modules/action-bar/components/apps/appitems.js +45 -0
- package/lib/modules/action-bar/components/apps/index.css +8 -0
- package/lib/modules/action-bar/components/apps/index.d.ts +4 -0
- package/lib/modules/action-bar/components/apps/index.js +57 -0
- package/lib/modules/action-bar/components/apps/useAppItemOptions.d.ts +9 -0
- package/lib/modules/action-bar/components/apps/useAppItemOptions.js +29 -0
- package/lib/modules/action-bar/components/apps/useBeautyBackground.d.ts +10 -0
- package/lib/modules/action-bar/components/apps/useBeautyBackground.js +36 -0
- package/lib/modules/action-bar/components/apps/useInterpreter.d.ts +14 -0
- package/lib/modules/action-bar/components/apps/useInterpreter.js +37 -0
- package/lib/modules/action-bar/components/apps/useLiveStreaming.d.ts +16 -0
- package/lib/modules/action-bar/components/apps/useLiveStreaming.js +41 -0
- package/lib/modules/action-bar/components/board/index.d.ts +4 -0
- package/lib/modules/action-bar/components/board/index.js +34 -0
- package/lib/modules/action-bar/components/breakout-room/index.d.ts +4 -0
- package/lib/modules/action-bar/components/breakout-room/index.js +32 -0
- package/lib/modules/action-bar/components/chat/index.css +80 -0
- package/lib/modules/action-bar/components/chat/index.d.ts +5 -0
- package/lib/modules/action-bar/components/chat/index.js +154 -0
- package/lib/modules/action-bar/components/device/index.css +162 -0
- package/lib/modules/action-bar/components/device/index.d.ts +8 -0
- package/lib/modules/action-bar/components/device/index.js +611 -0
- package/lib/modules/action-bar/components/interpreter/index.d.ts +6 -0
- package/lib/modules/action-bar/components/interpreter/index.js +41 -0
- package/lib/modules/action-bar/components/item.d.ts +27 -0
- package/lib/modules/action-bar/components/item.js +164 -0
- package/lib/modules/action-bar/components/leave/assign-host.d.ts +10 -0
- package/lib/modules/action-bar/components/leave/assign-host.js +64 -0
- package/lib/modules/action-bar/components/leave/index.css +126 -0
- package/lib/modules/action-bar/components/leave/index.d.ts +3 -0
- package/lib/modules/action-bar/components/leave/index.js +159 -0
- package/lib/modules/action-bar/components/leave/leave-meeting.d.ts +18 -0
- package/lib/modules/action-bar/components/leave/leave-meeting.js +153 -0
- package/lib/modules/action-bar/components/live-streaming/index.d.ts +4 -0
- package/lib/modules/action-bar/components/live-streaming/index.js +39 -0
- package/lib/modules/action-bar/components/more/index.css +114 -0
- package/lib/modules/action-bar/components/more/index.d.ts +5 -0
- package/lib/modules/action-bar/components/more/index.js +83 -0
- package/lib/modules/action-bar/components/more/poppover-content.d.ts +8 -0
- package/lib/modules/action-bar/components/more/poppover-content.js +400 -0
- package/lib/modules/action-bar/components/participants/index.css +21 -0
- package/lib/modules/action-bar/components/participants/index.d.ts +5 -0
- package/lib/modules/action-bar/components/participants/index.js +83 -0
- package/lib/modules/action-bar/components/record/index.css +39 -0
- package/lib/modules/action-bar/components/record/index.d.ts +5 -0
- package/lib/modules/action-bar/components/record/index.js +166 -0
- package/lib/modules/action-bar/components/record/stop-record-dialog.d.ts +5 -0
- package/lib/modules/action-bar/components/record/stop-record-dialog.js +48 -0
- package/lib/modules/action-bar/components/respond/index.d.ts +4 -0
- package/lib/modules/action-bar/components/respond/index.js +32 -0
- package/lib/modules/action-bar/components/screen-share/index.d.ts +4 -0
- package/lib/modules/action-bar/components/screen-share/index.js +106 -0
- package/lib/modules/action-bar/components/screen-share/submenu.d.ts +1 -0
- package/lib/modules/action-bar/components/screen-share/submenu.js +154 -0
- package/lib/modules/action-bar/components/security/index.d.ts +4 -0
- package/lib/modules/action-bar/components/security/index.js +58 -0
- package/lib/modules/action-bar/components/settings/index.d.ts +4 -0
- package/lib/modules/action-bar/components/settings/index.js +42 -0
- package/lib/modules/action-bar/index.css +23 -1
- package/lib/modules/action-bar/index.d.ts +2 -22
- package/lib/modules/action-bar/index.dev.js +37 -16
- package/lib/modules/action-bar/notification-bar/components/interpreter/index.css +58 -0
- package/lib/modules/action-bar/notification-bar/components/interpreter/index.d.ts +8 -0
- package/lib/modules/action-bar/notification-bar/components/interpreter/index.js +100 -0
- package/lib/modules/action-bar/notification-bar/components/virtual-image/index.css +56 -0
- package/lib/modules/action-bar/notification-bar/components/virtual-image/index.d.ts +5 -0
- package/lib/modules/action-bar/notification-bar/components/virtual-image/index.js +33 -0
- package/lib/modules/action-bar/notification-bar/dome.png +0 -0
- package/lib/modules/action-bar/notification-bar/fcr_translateswitch.png +0 -0
- package/lib/modules/action-bar/notification-bar/index.css +74 -0
- package/lib/modules/action-bar/notification-bar/index.d.ts +2 -0
- package/lib/modules/action-bar/notification-bar/index.js +99 -0
- package/lib/modules/action-bar/screen-share/index.js +5 -0
- package/lib/modules/action-bar/security/index.js +1 -0
- package/lib/modules/action-bar/smaller.js +2 -2
- package/lib/modules/action-bar/store.d.ts +6 -7
- package/lib/modules/action-bar/store.js +114 -128
- package/lib/modules/action-bar/trigger-input-language-room/fcr_translateswitch.png +0 -0
- package/lib/modules/action-bar/trigger-input-language-room/index.css +86 -0
- package/lib/modules/action-bar/trigger-input-language-room/index.d.ts +15 -0
- package/lib/modules/action-bar/trigger-input-language-room/index.js +220 -0
- package/lib/modules/action-bar/trigger-output-language-room/constant.d.ts +10 -0
- package/lib/modules/action-bar/trigger-output-language-room/constant.js +8 -0
- package/lib/modules/action-bar/trigger-output-language-room/guide-tooltip/index.css +22 -0
- package/lib/modules/action-bar/trigger-output-language-room/guide-tooltip/index.d.ts +14 -0
- package/lib/modules/action-bar/trigger-output-language-room/guide-tooltip/index.js +75 -0
- package/lib/modules/action-bar/trigger-output-language-room/index.d.ts +4 -0
- package/lib/modules/action-bar/trigger-output-language-room/index.js +98 -0
- package/lib/modules/action-bar/trigger-output-language-room/trigger-language-room.d.ts +5 -0
- package/lib/modules/action-bar/trigger-output-language-room/trigger-language-room.js +66 -0
- package/lib/modules/action-bar/trigger-output-language-room/trigger-main-room.d.ts +5 -0
- package/lib/modules/action-bar/trigger-output-language-room/trigger-main-room.js +36 -0
- package/lib/modules/action-bar/trigger-output-language-room/useChangeOutputRoomTool.d.ts +12 -0
- package/lib/modules/action-bar/trigger-output-language-room/useChangeOutputRoomTool.js +138 -0
- package/lib/modules/action-bar/view.js +6 -6
- package/lib/modules/audio-stream/index.d.ts +2 -15
- package/lib/modules/audio-stream/index.js +1 -3
- package/lib/modules/chat/chat-bar/index.css +5 -0
- package/lib/modules/chat/chat-bar/index.js +16 -14
- package/lib/modules/chat/chat-select/index.css +6 -3
- package/lib/modules/chat/chat.js +7 -6
- package/lib/modules/chat/index.css +10 -0
- package/lib/modules/chat/index.d.ts +2 -12
- package/lib/modules/chat/index.dev.js +14 -3
- package/lib/modules/chat/index.js +7 -20
- package/lib/modules/chat/message-list.js +1 -0
- package/lib/modules/chat/store.js +1 -1
- package/lib/modules/components/device-control/components/audio-menu/index.js +4 -4
- package/lib/modules/components/device-control/index.css +3 -0
- package/lib/modules/components/dialog-container/component/body.d.ts +7 -0
- package/lib/modules/components/dialog-container/component/body.js +46 -0
- package/lib/modules/components/dialog-container/index.css +78 -0
- package/lib/modules/components/dialog-container/index.d.ts +11 -0
- package/lib/modules/components/dialog-container/index.js +110 -0
- package/lib/modules/components/member-window/index.css +419 -0
- package/lib/modules/components/member-window/index.d.ts +76 -0
- package/lib/modules/components/member-window/index.js +888 -0
- package/lib/modules/components/security-menu/index.css +9 -0
- package/lib/modules/components/security-menu/index.js +74 -23
- package/lib/modules/components/tab-frame/index.css +40 -0
- package/lib/modules/components/tab-frame/index.d.ts +12 -0
- package/lib/modules/components/tab-frame/index.js +57 -0
- package/lib/modules/connection-gateway/components/computer/index.css +1 -0
- package/lib/modules/connection-gateway/components/phone/index.css +1 -1
- package/lib/modules/connection-gateway/index.d.ts +2 -9
- package/lib/modules/connection-gateway/store.d.ts +3 -11
- package/lib/modules/connection-gateway/store.js +1 -17
- package/lib/modules/connection-gateway/view.js +21 -4
- package/lib/modules/control-bar/components/cloud-recording-buttons.js +1 -1
- package/lib/modules/control-bar/index.d.ts +2 -16
- package/lib/modules/control-bar/index.js +10 -19
- package/lib/modules/control-bar/store.d.ts +3 -16
- package/lib/modules/control-bar/store.js +23 -5
- package/lib/modules/control-bar/view.js +17 -10
- package/lib/modules/device-pretest/settings/virtual-background-setting.js +1 -1
- package/lib/modules/dialog/components/Interpreter/electron.js +3 -25
- package/lib/modules/dialog/components/Interpreter/index.js +14 -43
- package/lib/modules/dialog/components/chat/electron.d.ts +1 -1
- package/lib/modules/dialog/components/chat/electron.js +6 -13
- package/lib/modules/dialog/components/chat/index.d.ts +1 -4
- package/lib/modules/dialog/components/chat/index.js +35 -41
- package/lib/modules/dialog/components/confirm/index.js +6 -7
- package/lib/modules/dialog/components/connection-gateway/electron.d.ts +1 -1
- package/lib/modules/dialog/components/connection-gateway/electron.js +9 -28
- package/lib/modules/dialog/components/connection-gateway/index.d.ts +0 -1
- package/lib/modules/dialog/components/connection-gateway/index.js +11 -56
- package/lib/modules/dialog/components/control-bar/index.js +6 -7
- package/lib/modules/dialog/components/device-setting/electron.js +4 -26
- package/lib/modules/dialog/components/device-setting/index.js +13 -41
- package/lib/modules/dialog/components/invite/index.js +16 -35
- package/lib/modules/dialog/components/live-streaming/index.js +18 -53
- package/lib/modules/dialog/components/participant/electron.js +4 -17
- package/lib/modules/dialog/components/participant/index.js +35 -26
- package/lib/modules/dialog/components/remove-admit-waiting-room/electron.js +3 -6
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.d.ts +1 -1
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.js +4 -14
- package/lib/modules/dialog/components/share-screen-selection/index.js +20 -5
- package/lib/modules/dialog/components/system-preference/electron.js +5 -8
- package/lib/modules/dialog/components/system-preference/index.js +4 -15
- package/lib/modules/dialog/components/toast/index.js +8 -12
- package/lib/modules/dialog/dialogs.js +2 -1
- package/lib/modules/dialog/hooks/useElectron.d.ts +6 -0
- package/lib/modules/dialog/hooks/useElectron.js +51 -9
- package/lib/modules/dialog/index.css +0 -2
- package/lib/modules/dialog/index.d.ts +2 -17
- package/lib/modules/dialog/store.d.ts +7 -39
- package/lib/modules/dialog/store.js +53 -152
- package/lib/modules/dialog/types/index.d.ts +59 -0
- package/lib/modules/event-confirm/view.js +4 -1
- package/lib/modules/invite/view.d.ts +4 -0
- package/lib/modules/invite/view.js +18 -22
- package/lib/modules/invite/voip-invite.js +3 -3
- package/lib/modules/layout/components/Aside.js +11 -1
- package/lib/modules/layout/components/Carousel.js +1 -1
- package/lib/modules/layout/components/Layout.js +7 -4
- package/lib/modules/layout/components/index.css +6 -1
- package/lib/modules/layout/index.js +8 -7
- package/lib/modules/layout/member-window/index.css +22 -9
- package/lib/modules/layout/member-window/index.js +16 -3
- package/lib/modules/layout/store.d.ts +1 -1
- package/lib/modules/layout/store.js +1 -7
- package/lib/modules/layout/video-window-datasource.js +11 -3
- package/lib/modules/notification/index.css +1 -0
- package/lib/modules/participant/attendee/index.css +1 -0
- package/lib/modules/participant/attendee/index.js +2 -1
- package/lib/modules/participant/components/drop-menu/index.css +1 -0
- package/lib/modules/participant/components/drop-menu/index.js +9 -9
- package/lib/modules/participant/index.css +5 -0
- package/lib/modules/participant/index.d.ts +2 -17
- package/lib/modules/participant/index.dev.js +38 -27
- package/lib/modules/participant/store.d.ts +4 -17
- package/lib/modules/participant/store.js +13 -13
- package/lib/modules/setting/audio-settings/audio-settings.js +13 -10
- package/lib/modules/setting/audio-settings/index.css +26 -1
- package/lib/modules/setting/general-settings/index.css +1 -1
- package/lib/modules/setting/index.css +2 -1
- package/lib/modules/setting/index.d.ts +2 -15
- package/lib/modules/setting/index.dev.js +19 -10
- package/lib/modules/setting/store.d.ts +5 -18
- package/lib/modules/setting/store.js +48 -20
- package/lib/modules/setting/translate-settings/index.css +3 -1
- package/lib/modules/setting/video-settings/index.css +5 -2
- package/lib/modules/share-screen/index.dev.js +20 -19
- package/lib/modules/share-screen/selection/index.css +2 -0
- package/lib/modules/share-screen/selection/index.js +83 -97
- package/lib/modules/share-screen/store.js +16 -36
- package/lib/modules/sound-effect/index.d.ts +2 -13
- package/lib/modules/sound-effect/index.js +1 -2
- package/lib/modules/state-bar/index.css +13 -2
- package/lib/modules/state-bar/index.d.ts +1 -5
- package/lib/modules/state-bar/index.dev.js +1 -1
- package/lib/modules/state-bar/index.js +0 -27
- package/lib/modules/state-bar/layout-config.js +1 -1
- package/lib/modules/state-bar/meeting-network-state.css +1 -1
- package/lib/modules/state-bar/recording.js +7 -4
- package/lib/modules/state-bar/view.js +1 -1
- package/lib/modules/video-window/index.d.ts +2 -2
- package/lib/modules/video-window/store.d.ts +2 -1
- package/lib/modules/video-window/store.js +2 -2
- package/lib/modules/waiting-room-layout/index.css +1 -3
- package/lib/modules/waiting-room-layout/index.d.ts +3 -1
- package/lib/modules/waiting-room-layout/index.js +10 -3
- package/lib/modules/whiteboard/index.d.ts +2 -13
- package/lib/modules/whiteboard/index.js +4 -5
- package/lib/providers/device-privilege-provider.d.ts +30 -0
- package/lib/providers/device-privilege-provider.js +386 -0
- package/lib/providers/device-provider.d.ts +246 -0
- package/lib/providers/device-provider.js +1741 -0
- package/lib/providers/device-stream-provider.d.ts +36 -0
- package/lib/providers/device-stream-provider.js +460 -0
- package/lib/providers/event-provider.d.ts +108 -0
- package/lib/providers/event-provider.js +288 -0
- package/lib/providers/interpreter-provider.d.ts +25 -0
- package/lib/providers/interpreter-provider.js +151 -0
- package/lib/providers/local-storage-provider.d.ts +8 -0
- package/lib/providers/local-storage-provider.js +31 -0
- package/lib/providers/monitor-provider.d.ts +15 -0
- package/lib/providers/monitor-provider.js +29 -0
- package/lib/providers/privilege-provider.d.ts +216 -0
- package/lib/providers/privilege-provider.js +966 -0
- package/lib/providers/renderer-provider.d.ts +43 -0
- package/lib/providers/renderer-provider.js +245 -0
- package/lib/providers/room-provider.d.ts +79 -0
- package/lib/providers/room-provider.js +439 -0
- package/lib/providers/session-provider.d.ts +26 -0
- package/lib/providers/session-provider.js +49 -0
- package/lib/runtime.d.ts +1 -1
- package/lib/scenes/base.d.ts +10 -0
- package/lib/scenes/base.js +75 -0
- package/lib/scenes/main-scene.d.ts +48 -0
- package/lib/scenes/main-scene.js +390 -0
- package/lib/scenes/waiting-scene.d.ts +31 -0
- package/lib/scenes/waiting-scene.js +129 -0
- package/lib/shared-data-source/config.d.ts +16 -0
- package/lib/shared-data-source/config.js +21 -0
- package/lib/type.d.ts +26 -1
- package/lib/ui-manager.d.ts +3 -0
- package/lib/ui-manager.js +154 -233
- package/lib/ui-node.d.ts +25 -0
- package/lib/ui-node.js +156 -0
- package/lib/utilities/constant.d.ts +15 -15
- package/lib/utilities/constant.js +15 -15
- package/lib/utilities/tools.d.ts +2 -0
- package/lib/utilities/tools.js +42 -10
- package/package.json +12 -11
- package/public/assets/fcr_leave2.svg +58 -0
- package/public/index.html +150 -13
|
@@ -83,13 +83,13 @@ var _fcrCore = require("fcr-core");
|
|
|
83
83
|
var _type3 = require("fcr-core/lib/type");
|
|
84
84
|
var _react = require("react");
|
|
85
85
|
var _type4 = require("../../type");
|
|
86
|
-
var _leaveMeeting = require("../action-bar/leave/leave-meeting");
|
|
86
|
+
var _leaveMeeting = require("../action-bar/components/leave/leave-meeting");
|
|
87
87
|
var _type5 = require("./type");
|
|
88
88
|
var _stopButton = _interopRequireDefault(require("./components/stop-live-streaming/stop-button"));
|
|
89
89
|
var _env = require("agora-foundation/lib/utilities/env");
|
|
90
90
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
91
91
|
var _ControlBarStore;
|
|
92
|
-
var _initProto, _leaveConfirmRefDecs, _init_leaveConfirmRef, _init_shareWithAudio, _init_shareAudioProcessingChannel, _init_currentShareId, _init_currentShareType, _init_cloudRecordingState, _init_localUserRole, _init_isHost, _init_roomDuration, _init_startTime, _init_playUrl, _init_liveStreamingState, _init_allApplicationWindows, _init_roomInfo, _init_isShowMeetingDetailPortal, _init_users, _init_isPstnUser, _init_isMuteAudio, _init_hiddenShareActionNav, _init_boardOwnerUser, _init_meetingId, _initControlBarDecs, _setControlBarWindowBoundsDecs, _updateCurrentShareContentDecs, _setLocalUserRoleDecs, _setShareWithAudioStateDecs, _createNewShareDecs, _handlerStopShareDecs, _setShareAudioProcessingChannelDecs, _handleMoreClickDecs, _pauseCloudRecordingDecs, _resumeCloudRecordingDecs, _stopCloudRecordingDecs, _showToastDecs, _setShowMeetingDetailPortalDecs, _setEnableWaitingRoomDecs, _sendLeaveDecs, _sendEndDecs, _keepPhoneAudioConnectionDecs, _sendAssignDecs, _handleLeaveRoomDecs, _getCurrentSharingWorkAreaDecs, _handleRemoteUsersJoinedDecs, _handleRemoteUsersLeftDecs, _handleUserInfoUpdatedDecs, _ref;
|
|
92
|
+
var _initProto, _leaveConfirmRefDecs, _init_leaveConfirmRef, _init_shareWithAudio, _init_shareAudioProcessingChannel, _init_currentShareId, _init_currentShareType, _init_cloudRecordingState, _init_localUserRole, _init_isHost, _init_roomDuration, _init_startTime, _init_playUrl, _init_liveStreamingState, _init_allApplicationWindows, _init_roomInfo, _init_isShowMeetingDetailPortal, _init_users, _init_isPstnUser, _init_isMuteAudio, _init_hiddenShareActionNav, _init_boardOwnerUser, _init_meetingId, _init_currentShareDisplayId, _initControlBarDecs, _setControlBarWindowBoundsDecs, _updateCurrentShareContentDecs, _setLocalUserRoleDecs, _setShareWithAudioStateDecs, _createNewShareDecs, _handlerStopShareDecs, _setShareAudioProcessingChannelDecs, _handleMoreClickDecs, _pauseCloudRecordingDecs, _resumeCloudRecordingDecs, _stopCloudRecordingDecs, _showToastDecs, _setShowMeetingDetailPortalDecs, _setEnableWaitingRoomDecs, _sendLeaveDecs, _sendEndDecs, _keepPhoneAudioConnectionDecs, _sendAssignDecs, _handleLeaveRoomDecs, _getCurrentSharingWorkAreaDecs, _handleRemoteUsersJoinedDecs, _handleRemoteUsersLeftDecs, _handleUserInfoUpdatedDecs, _ref;
|
|
93
93
|
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
94
94
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
95
95
|
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
@@ -121,6 +121,7 @@ var _R = /*#__PURE__*/new WeakMap();
|
|
|
121
121
|
var _S = /*#__PURE__*/new WeakMap();
|
|
122
122
|
var _T = /*#__PURE__*/new WeakMap();
|
|
123
123
|
var _U = /*#__PURE__*/new WeakMap();
|
|
124
|
+
var _V = /*#__PURE__*/new WeakMap();
|
|
124
125
|
_ref = (_leaveConfirmRefDecs = [_mobx.observable, _mobx.observable.ref], _initControlBarDecs = [_mobx.action, _mobx.action.bound], _setControlBarWindowBoundsDecs = [_mobx.action, _mobx.action.bound], _updateCurrentShareContentDecs = [_mobx.action, _mobx.action.bound], _setLocalUserRoleDecs = [_mobx.action, _mobx.action.bound], _setShareWithAudioStateDecs = [_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, {
|
|
125
126
|
leading: true
|
|
126
127
|
})], _resumeCloudRecordingDecs = [_decorator.bound, (0, _decorator.debounced)(500, {
|
|
@@ -180,6 +181,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
180
181
|
_classPrivateFieldInitSpec(this, _S, _init_hiddenShareActionNav(this, false));
|
|
181
182
|
_classPrivateFieldInitSpec(this, _T, _init_boardOwnerUser(this, ''));
|
|
182
183
|
_classPrivateFieldInitSpec(this, _U, _init_meetingId(this, undefined));
|
|
184
|
+
_classPrivateFieldInitSpec(this, _V, _init_currentShareDisplayId(this, 0));
|
|
183
185
|
this._uiEventStore = uiEventStore;
|
|
184
186
|
this._roomControl = roomControl;
|
|
185
187
|
this._securityStore = securityStore;
|
|
@@ -405,6 +407,14 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
405
407
|
set: function set(v) {
|
|
406
408
|
_classPrivateFieldSet(_U, this, v);
|
|
407
409
|
}
|
|
410
|
+
}, {
|
|
411
|
+
key: "currentShareDisplayId",
|
|
412
|
+
get: function get() {
|
|
413
|
+
return _classPrivateFieldGet(_V, this);
|
|
414
|
+
},
|
|
415
|
+
set: function set(v) {
|
|
416
|
+
_classPrivateFieldSet(_V, this, v);
|
|
417
|
+
}
|
|
408
418
|
}, {
|
|
409
419
|
key: "localUser",
|
|
410
420
|
get: function get() {
|
|
@@ -564,9 +574,15 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
564
574
|
switch (actionKey) {
|
|
565
575
|
case _type5.MoreAction.OPEN_PARTICIPANTS:
|
|
566
576
|
this._uiEventStore.openDialog(_constant.DialogKey.PARTICIPANT);
|
|
577
|
+
this._uiEventStore.updateAside({
|
|
578
|
+
participant: false
|
|
579
|
+
});
|
|
567
580
|
break;
|
|
568
581
|
case _type5.MoreAction.OPEN_CHAT:
|
|
569
582
|
this._uiEventStore.openDialog(_constant.DialogKey.CHAT);
|
|
583
|
+
this._uiEventStore.updateAside({
|
|
584
|
+
chat: false
|
|
585
|
+
});
|
|
570
586
|
break;
|
|
571
587
|
case _type5.MoreAction.OPEN_LIVE_STEAMING_DIALOG:
|
|
572
588
|
this._uiEventStore.openDialog(_constant.DialogKey.LIVE_STREAMING);
|
|
@@ -727,7 +743,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
727
743
|
end: this.sendEnd,
|
|
728
744
|
assignHost: this.sendAssign,
|
|
729
745
|
setHeight: function setHeight() {
|
|
730
|
-
_this6._uiEventStore.sendEvent(_constant.UIAction.
|
|
746
|
+
_this6._uiEventStore.sendEvent(_constant.UIAction.SET_DIALOG_BOUNDS, {
|
|
731
747
|
height: 230
|
|
732
748
|
});
|
|
733
749
|
}
|
|
@@ -781,6 +797,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
781
797
|
height = _ref4$bounds.height,
|
|
782
798
|
displayId = _ref4.id,
|
|
783
799
|
availTop = _ref4.workArea.y;
|
|
800
|
+
this.currentShareDisplayId = displayId;
|
|
784
801
|
return {
|
|
785
802
|
x: x,
|
|
786
803
|
y: y,
|
|
@@ -855,7 +872,7 @@ var ControlBarStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
855
872
|
}]);
|
|
856
873
|
}();
|
|
857
874
|
_ControlBarStore = ControlBarStore;
|
|
858
|
-
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ControlBarStore, [[_leaveConfirmRefDecs, 17, "leaveConfirmRef"], [_mobx.observable, 1, "shareWithAudio"], [_mobx.observable, 1, "shareAudioProcessingChannel"], [_mobx.observable, 1, "currentShareId"], [_mobx.observable, 1, "currentShareType"], [_mobx.observable, 1, "cloudRecordingState"], [_mobx.observable, 1, "localUserRole"], [_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, "users"], [_mobx.observable, 1, "isPstnUser"], [_mobx.observable, 1, "isMuteAudio"], [_mobx.observable, 1, "hiddenShareActionNav"], [_mobx.observable, 1, "boardOwnerUser"], [_mobx.observable, 1, "meetingId"], [_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"], [_initControlBarDecs, 18, "initControlBar"], [_setControlBarWindowBoundsDecs, 18, "setControlBarWindowBounds"], [_updateCurrentShareContentDecs, 18, "updateCurrentShareContent"], [_setLocalUserRoleDecs, 18, "setLocalUserRole"], [_setShareWithAudioStateDecs, 18, "setShareWithAudioState"], [_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"], [_decorator.bound, 2, "getCoordinate"], [_showToastDecs, 18, "showToast"], [_setShowMeetingDetailPortalDecs, 18, "setShowMeetingDetailPortal"], [_setEnableWaitingRoomDecs, 18, "setEnableWaitingRoom"], [_sendLeaveDecs, 18, "sendLeave"], [_sendEndDecs, 18, "sendEnd"], [_keepPhoneAudioConnectionDecs, 18, "keepPhoneAudioConnection"], [_sendAssignDecs, 18, "sendAssign"], [_handleLeaveRoomDecs, 18, "handleLeaveRoom"], [_getCurrentSharingWorkAreaDecs, 18, "getCurrentSharingWorkArea"], [_handleRemoteUsersJoinedDecs, 18, "_handleRemoteUsersJoined"], [_handleRemoteUsersLeftDecs, 18, "_handleRemoteUsersLeft"], [_handleUserInfoUpdatedDecs, 18, "_handleUserInfoUpdated"]], []).e,
|
|
875
|
+
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ControlBarStore, [[_leaveConfirmRefDecs, 17, "leaveConfirmRef"], [_mobx.observable, 1, "shareWithAudio"], [_mobx.observable, 1, "shareAudioProcessingChannel"], [_mobx.observable, 1, "currentShareId"], [_mobx.observable, 1, "currentShareType"], [_mobx.observable, 1, "cloudRecordingState"], [_mobx.observable, 1, "localUserRole"], [_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, "users"], [_mobx.observable, 1, "isPstnUser"], [_mobx.observable, 1, "isMuteAudio"], [_mobx.observable, 1, "hiddenShareActionNav"], [_mobx.observable, 1, "boardOwnerUser"], [_mobx.observable, 1, "meetingId"], [_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"], [_initControlBarDecs, 18, "initControlBar"], [_setControlBarWindowBoundsDecs, 18, "setControlBarWindowBounds"], [_updateCurrentShareContentDecs, 18, "updateCurrentShareContent"], [_setLocalUserRoleDecs, 18, "setLocalUserRole"], [_setShareWithAudioStateDecs, 18, "setShareWithAudioState"], [_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"], [_decorator.bound, 2, "getCoordinate"], [_showToastDecs, 18, "showToast"], [_setShowMeetingDetailPortalDecs, 18, "setShowMeetingDetailPortal"], [_setEnableWaitingRoomDecs, 18, "setEnableWaitingRoom"], [_sendLeaveDecs, 18, "sendLeave"], [_sendEndDecs, 18, "sendEnd"], [_keepPhoneAudioConnectionDecs, 18, "keepPhoneAudioConnection"], [_sendAssignDecs, 18, "sendAssign"], [_handleLeaveRoomDecs, 18, "handleLeaveRoom"], [_getCurrentSharingWorkAreaDecs, 18, "getCurrentSharingWorkArea"], [_handleRemoteUsersJoinedDecs, 18, "_handleRemoteUsersJoined"], [_handleRemoteUsersLeftDecs, 18, "_handleRemoteUsersLeft"], [_handleUserInfoUpdatedDecs, 18, "_handleUserInfoUpdated"]], []).e, 23);
|
|
859
876
|
_init_leaveConfirmRef = _applyDecs$e[0];
|
|
860
877
|
_init_shareWithAudio = _applyDecs$e[1];
|
|
861
878
|
_init_shareAudioProcessingChannel = _applyDecs$e[2];
|
|
@@ -877,5 +894,6 @@ _init_isMuteAudio = _applyDecs$e[17];
|
|
|
877
894
|
_init_hiddenShareActionNav = _applyDecs$e[18];
|
|
878
895
|
_init_boardOwnerUser = _applyDecs$e[19];
|
|
879
896
|
_init_meetingId = _applyDecs$e[20];
|
|
880
|
-
|
|
897
|
+
_init_currentShareDisplayId = _applyDecs$e[21];
|
|
898
|
+
_initProto = _applyDecs$e[22];
|
|
881
899
|
var StoreContext = exports.StoreContext = /*#__PURE__*/(0, _react.createContext)(null);
|
|
@@ -56,7 +56,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
56
56
|
var ControlBarView = exports.ControlBarView = (0, _mobxReact.observer)(function () {
|
|
57
57
|
var _screenBounds$availTo;
|
|
58
58
|
var _useContext = (0, _react.useContext)(_useElectron.DialogInstanceContext),
|
|
59
|
-
browserWindow = _useContext.browserWindow
|
|
59
|
+
browserWindow = _useContext.browserWindow,
|
|
60
|
+
newRendererWindow = _useContext.newRendererWindow;
|
|
60
61
|
var _useContext2 = (0, _react.useContext)(_store.StoreContext),
|
|
61
62
|
setShareWithAudioState = _useContext2.setShareWithAudioState,
|
|
62
63
|
shareWithAudio = _useContext2.shareWithAudio,
|
|
@@ -77,7 +78,8 @@ var ControlBarView = exports.ControlBarView = (0, _mobxReact.observer)(function
|
|
|
77
78
|
isShowMeetingDetailPortal = _useContext2.isShowMeetingDetailPortal,
|
|
78
79
|
setShowMeetingDetailPortal = _useContext2.setShowMeetingDetailPortal,
|
|
79
80
|
setEnableWaitingRoom = _useContext2.setEnableWaitingRoom,
|
|
80
|
-
getCurrentSharingWorkArea = _useContext2.getCurrentSharingWorkArea
|
|
81
|
+
getCurrentSharingWorkArea = _useContext2.getCurrentSharingWorkArea,
|
|
82
|
+
currentShareDisplayId = _useContext2.currentShareDisplayId;
|
|
81
83
|
// 控制栏本身的高度
|
|
82
84
|
var NAV_HEIGHT = 84;
|
|
83
85
|
// 鼠标移开后自动隐藏的时间
|
|
@@ -205,14 +207,6 @@ var ControlBarView = exports.ControlBarView = (0, _mobxReact.observer)(function
|
|
|
205
207
|
height: height
|
|
206
208
|
});
|
|
207
209
|
}
|
|
208
|
-
(0, _platform.isWindows)() && (0, _tools.handleCheckMouseOver)({
|
|
209
|
-
elem: rndRef.current,
|
|
210
|
-
browserWindow: browserWindow,
|
|
211
|
-
screenBounds: screenBounds,
|
|
212
|
-
callback: function callback(timerId) {
|
|
213
|
-
windowFocusTimerRef.current = timerId;
|
|
214
|
-
}
|
|
215
|
-
});
|
|
216
210
|
}, [currentShareId]);
|
|
217
211
|
(0, _react.useEffect)(function () {
|
|
218
212
|
if (!moreVisible) {
|
|
@@ -222,6 +216,18 @@ var ControlBarView = exports.ControlBarView = (0, _mobxReact.observer)(function
|
|
|
222
216
|
});
|
|
223
217
|
}
|
|
224
218
|
}, [moreVisible]);
|
|
219
|
+
(0, _react.useEffect)(function () {
|
|
220
|
+
var handleDisplayRemoved = function handleDisplayRemoved(event, display) {
|
|
221
|
+
if (display.id === currentShareDisplayId) {
|
|
222
|
+
handlerStopShare();
|
|
223
|
+
browserWindow.close();
|
|
224
|
+
}
|
|
225
|
+
};
|
|
226
|
+
window.runtime.screen.addListener('display-removed', handleDisplayRemoved);
|
|
227
|
+
return function () {
|
|
228
|
+
window.runtime.screen.removeListener('display-removed', handleDisplayRemoved);
|
|
229
|
+
};
|
|
230
|
+
}, [currentShareDisplayId]);
|
|
225
231
|
var handleIgnoreMinimize = function handleIgnoreMinimize(event) {
|
|
226
232
|
event.preventDefault();
|
|
227
233
|
// browserWindow.restore();
|
|
@@ -235,6 +241,7 @@ var ControlBarView = exports.ControlBarView = (0, _mobxReact.observer)(function
|
|
|
235
241
|
elem: rndRef.current,
|
|
236
242
|
browserWindow: browserWindow,
|
|
237
243
|
screenBounds: screenBounds,
|
|
244
|
+
newRendererWindow: newRendererWindow,
|
|
238
245
|
callback: function callback(timerId) {
|
|
239
246
|
windowFocusTimerRef.current = timerId;
|
|
240
247
|
}
|
|
@@ -52,7 +52,7 @@ var VirtualBackgroundSetting = exports.VirtualBackgroundSetting = (0, _mobxReact
|
|
|
52
52
|
}
|
|
53
53
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
54
54
|
className: ns.e('virtual-none'),
|
|
55
|
-
children: transI18n('
|
|
55
|
+
children: transI18n('fmt_group_popup_breakout_room_label_none')
|
|
56
56
|
})]
|
|
57
57
|
})
|
|
58
58
|
})
|
|
@@ -5,19 +5,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.InterpreterElectronDialog = void 0;
|
|
8
|
-
var _mobxReact = require("mobx-react");
|
|
9
|
-
var _react = require("react");
|
|
10
|
-
var _store = require("../../store");
|
|
11
|
-
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
12
8
|
var _constant = require("../../../../utilities/constant");
|
|
13
|
-
var _windowHeader = require("agora-ui-foundation/lib/components/window-header");
|
|
14
9
|
var _useElectron = require("../../hooks/useElectron");
|
|
15
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
10
|
var config = {
|
|
17
|
-
frame: false,
|
|
18
11
|
fullscreen: false,
|
|
19
12
|
maximizable: false,
|
|
20
|
-
// titleBarStyle: 'hidden',
|
|
21
13
|
trafficLightPosition: {
|
|
22
14
|
x: 10,
|
|
23
15
|
y: 60
|
|
@@ -28,26 +20,12 @@ var config = {
|
|
|
28
20
|
minHeight: 300,
|
|
29
21
|
maxWidth: 800
|
|
30
22
|
};
|
|
31
|
-
var InterpreterElectronDialog = exports.InterpreterElectronDialog =
|
|
23
|
+
var InterpreterElectronDialog = exports.InterpreterElectronDialog = function InterpreterElectronDialog(_ref) {
|
|
32
24
|
var children = _ref.children;
|
|
33
|
-
var t = (0, _i18n.useI18n)();
|
|
34
|
-
var store = (0, _react.useContext)(_store.StoreContext);
|
|
35
|
-
var handleCloseClick = function handleCloseClick() {
|
|
36
|
-
store.closeInterpreterDialog();
|
|
37
|
-
};
|
|
38
25
|
(0, _useElectron.useElectronDialog)({
|
|
39
26
|
config: config,
|
|
40
27
|
dialogKey: _constant.DialogKey.INTERPRETER,
|
|
41
|
-
children:
|
|
42
|
-
className: "fcr-simultaneous-interpretation-dialog-wrapper",
|
|
43
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_windowHeader.FcrWindowHeader, {
|
|
44
|
-
showClose: true,
|
|
45
|
-
title: t('fmt_interpretation_setting_controller_option_simultaneous_interpretation'),
|
|
46
|
-
onClose: handleCloseClick,
|
|
47
|
-
type: _windowHeader.WindowType.WINDOW,
|
|
48
|
-
withWindowPopUpButton: false
|
|
49
|
-
}), children]
|
|
50
|
-
})
|
|
28
|
+
children: children
|
|
51
29
|
});
|
|
52
30
|
return null;
|
|
53
|
-
}
|
|
31
|
+
};
|
|
@@ -1,62 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports["default"] = void 0;
|
|
8
9
|
var _env = require("agora-foundation/lib/utilities/env");
|
|
9
10
|
var _electron = require("./electron");
|
|
10
|
-
var _mobxReact = require("mobx-react");
|
|
11
|
-
var _react = require("react");
|
|
12
|
-
var _reactRnd = require("react-rnd");
|
|
13
|
-
var _windowHeader = require("agora-ui-foundation/lib/components/window-header");
|
|
14
11
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
15
|
-
var _store = require("../../store");
|
|
16
12
|
require("./index.css");
|
|
13
|
+
var _dialogContainer = _interopRequireDefault(require("../../../components/dialog-container"));
|
|
14
|
+
var _constant = require("../../../../utilities/constant");
|
|
17
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
|
-
var InterpreterDialog =
|
|
16
|
+
var InterpreterDialog = function InterpreterDialog(_ref) {
|
|
19
17
|
var children = _ref.children;
|
|
20
18
|
var t = (0, _i18n.useI18n)();
|
|
21
|
-
var
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
19
|
+
var container = /*#__PURE__*/(0, _jsxRuntime.jsx)(_dialogContainer["default"], {
|
|
20
|
+
title: t('fmt_interpretation_setting_controller_option_simultaneous_interpretation'),
|
|
21
|
+
width: 684,
|
|
22
|
+
height: 438,
|
|
23
|
+
dialogKey: _constant.DialogKey.INTERPRETER,
|
|
24
|
+
children: children
|
|
25
|
+
});
|
|
28
26
|
if ((0, _env.isElectron)()) {
|
|
29
27
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_electron.InterpreterElectronDialog, {
|
|
30
|
-
children:
|
|
28
|
+
children: container
|
|
31
29
|
});
|
|
32
30
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactRnd.Rnd, {
|
|
37
|
-
"default": {
|
|
38
|
-
x: x,
|
|
39
|
-
y: windowHeight / 2 - height / 2,
|
|
40
|
-
width: width,
|
|
41
|
-
height: height
|
|
42
|
-
},
|
|
43
|
-
ref: containerRef,
|
|
44
|
-
bounds: '.fcr-layout-content',
|
|
45
|
-
minWidth: 620,
|
|
46
|
-
minHeight: 300,
|
|
47
|
-
maxWidth: 800,
|
|
48
|
-
dragHandleClassName: "frc-window-header",
|
|
49
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
50
|
-
className: "fcr-simultaneous-interpretation-dialog-wrapper",
|
|
51
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_windowHeader.FcrWindowHeader, {
|
|
52
|
-
showClose: true,
|
|
53
|
-
title: t('fmt_interpretation_setting_controller_option_simultaneous_interpretation'),
|
|
54
|
-
onClose: handleCloseClick,
|
|
55
|
-
type: _windowHeader.WindowType.WINDOW,
|
|
56
|
-
withWindowPopUpButton: false
|
|
57
|
-
// otherActionsAfter={<UserQueue />}
|
|
58
|
-
}), children]
|
|
59
|
-
})
|
|
60
|
-
});
|
|
61
|
-
});
|
|
31
|
+
return container;
|
|
32
|
+
};
|
|
62
33
|
var _default = exports["default"] = InterpreterDialog;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
export declare const ChatElectronDialog: ({ children, chatAction }: PropsWithChildren<{
|
|
2
|
+
export declare const ChatElectronDialog: ({ children, chatAction, }: PropsWithChildren<{
|
|
3
3
|
chatAction: React.ReactNode;
|
|
4
4
|
}>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,29 +5,22 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.ChatElectronDialog = void 0;
|
|
8
|
-
var _mobxReact = require("mobx-react");
|
|
9
8
|
var _constant = require("../../../../utilities/constant");
|
|
10
|
-
var _ = require(".");
|
|
11
|
-
var _platform = require("../../../../utilities/platform");
|
|
12
9
|
var _useElectron = require("../../hooks/useElectron");
|
|
13
10
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
11
|
var config = {
|
|
15
|
-
|
|
12
|
+
width: 800,
|
|
13
|
+
height: 600,
|
|
16
14
|
fullscreen: false,
|
|
17
|
-
maximizable: false
|
|
18
|
-
show: !(0, _platform.isWindows)(),
|
|
19
|
-
transparent: true
|
|
15
|
+
maximizable: false
|
|
20
16
|
};
|
|
21
|
-
var ChatElectronDialog = exports.ChatElectronDialog =
|
|
17
|
+
var ChatElectronDialog = exports.ChatElectronDialog = function ChatElectronDialog(_ref) {
|
|
22
18
|
var children = _ref.children,
|
|
23
19
|
chatAction = _ref.chatAction;
|
|
24
20
|
(0, _useElectron.useElectronDialog)({
|
|
25
21
|
config: config,
|
|
26
22
|
dialogKey: _constant.DialogKey.CHAT,
|
|
27
|
-
children:
|
|
28
|
-
chatAction: chatAction,
|
|
29
|
-
children: children
|
|
30
|
-
})
|
|
23
|
+
children: children
|
|
31
24
|
});
|
|
32
25
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {});
|
|
33
|
-
}
|
|
26
|
+
};
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
export declare const
|
|
3
|
-
chatAction: React.ReactNode;
|
|
4
|
-
}>) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export declare const ChatDialog: ({ children, chatAction }: PropsWithChildren<{
|
|
2
|
+
export declare const ChatDialog: ({ children, chatAction, }: PropsWithChildren<{
|
|
6
3
|
chatAction: React.ReactNode;
|
|
7
4
|
}>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,66 +1,60 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
|
-
exports.
|
|
8
|
+
exports.ChatDialog = void 0;
|
|
8
9
|
var _env = require("agora-foundation/lib/utilities/env");
|
|
9
|
-
var _mobxReact = require("mobx-react");
|
|
10
10
|
var _react = require("react");
|
|
11
|
-
var _reactRnd = require("react-rnd");
|
|
12
11
|
var _store = require("../../store");
|
|
13
12
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
14
|
-
var _windowHeader = require("agora-ui-foundation/lib/components/window-header");
|
|
15
13
|
var _electron = require("./electron");
|
|
16
14
|
var _type = require("fcr-core/lib/room-control/chatroom-control/type");
|
|
15
|
+
var _dialogContainer = _interopRequireDefault(require("../../../components/dialog-container"));
|
|
16
|
+
var _constant = require("../../../../utilities/constant");
|
|
17
|
+
var _tooltip = require("agora-ui-foundation/lib/components/tooltip");
|
|
18
|
+
var _iconButton = require("agora-ui-foundation/lib/components/icon-button");
|
|
19
|
+
var _type2 = require("agora-ui-foundation/lib/components/icon/type");
|
|
17
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
|
-
var
|
|
21
|
+
var ChatDialog = exports.ChatDialog = function ChatDialog(_ref) {
|
|
19
22
|
var children = _ref.children,
|
|
20
23
|
chatAction = _ref.chatAction;
|
|
21
24
|
var _useContext = (0, _react.useContext)(_store.StoreContext),
|
|
22
25
|
closeChatFromDialog = _useContext.closeChatFromDialog,
|
|
23
26
|
moveChatFromDialogToAside = _useContext.moveChatFromDialogToAside,
|
|
24
|
-
chatRoomState = _useContext.chatRoomState
|
|
27
|
+
chatRoomState = _useContext.chatRoomState,
|
|
28
|
+
waitingRoomState = _useContext.waitingRoomState;
|
|
25
29
|
var transI18n = (0, _i18n.useI18n)();
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
30
|
+
var container = /*#__PURE__*/(0, _jsxRuntime.jsx)(_dialogContainer["default"], {
|
|
31
|
+
title: chatRoomState === _type.FcrChatRoomConnectionState.Connected ? transI18n('fmt_chat_label_chat') : transI18n('fmt_aside_status_connecting'),
|
|
32
|
+
actions: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
33
|
+
children: [chatAction, /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
|
|
34
|
+
content: transI18n('fmt_uimanager_option_mergeview'),
|
|
35
|
+
mouseEnterDelay: 0,
|
|
36
|
+
trigger: "hover",
|
|
37
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_iconButton.FcrIconButton, {
|
|
38
|
+
icon: _type2.FcrIconType.FCR_WINDOWPAGE_BIGGER,
|
|
39
|
+
onClick: moveChatFromDialogToAside,
|
|
40
|
+
className: "frc-window-header__icon fcr-no-drag",
|
|
41
|
+
iconColors: {
|
|
42
|
+
iconPrimary: 'var(--fcr_ui_scene_icontext1)'
|
|
43
|
+
}
|
|
44
|
+
})
|
|
45
|
+
})]
|
|
46
|
+
}),
|
|
47
|
+
width: 800,
|
|
48
|
+
height: waitingRoomState ? 630 : 600,
|
|
49
|
+
dialogKey: _constant.DialogKey.CHAT,
|
|
50
|
+
onClose: closeChatFromDialog,
|
|
51
|
+
children: children
|
|
37
52
|
});
|
|
38
|
-
});
|
|
39
|
-
var ChatDialog = exports.ChatDialog = (0, _mobxReact.observer)(function (_ref2) {
|
|
40
|
-
var children = _ref2.children,
|
|
41
|
-
chatAction = _ref2.chatAction;
|
|
42
53
|
if ((0, _env.isElectron)()) {
|
|
43
54
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_electron.ChatElectronDialog, {
|
|
44
55
|
chatAction: chatAction,
|
|
45
|
-
children:
|
|
56
|
+
children: container
|
|
46
57
|
});
|
|
47
58
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
"default": {
|
|
51
|
-
width: 320,
|
|
52
|
-
height: 350,
|
|
53
|
-
x: width / 2 - 320 / 2,
|
|
54
|
-
y: 0
|
|
55
|
-
},
|
|
56
|
-
bounds: '.fcr-layout-content',
|
|
57
|
-
cancel: ".frc-window-header__operates",
|
|
58
|
-
minWidth: 320,
|
|
59
|
-
minHeight: 350,
|
|
60
|
-
dragHandleClassName: "chat-can-draggable",
|
|
61
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(ChatDialogContent, {
|
|
62
|
-
chatAction: chatAction,
|
|
63
|
-
children: children
|
|
64
|
-
})
|
|
65
|
-
});
|
|
66
|
-
});
|
|
59
|
+
return container;
|
|
60
|
+
};
|
|
@@ -5,16 +5,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.ConfirmDialog = void 0;
|
|
8
|
-
var _mobxReact = require("mobx-react");
|
|
9
8
|
var _useElectron = require("../../hooks/useElectron");
|
|
10
9
|
var _constant = require("../../../../utilities/constant");
|
|
11
10
|
var _env = require("agora-foundation/lib/utilities/env");
|
|
12
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
-
var ConfirmDialog = exports.ConfirmDialog =
|
|
12
|
+
var ConfirmDialog = exports.ConfirmDialog = function ConfirmDialog(_ref) {
|
|
14
13
|
var children = _ref.children;
|
|
15
14
|
var config = {
|
|
16
|
-
frame: false,
|
|
17
|
-
transparent: true,
|
|
18
15
|
maximizable: false,
|
|
19
16
|
backgroundColor: '#00000000',
|
|
20
17
|
hiddenInMissionControl: true,
|
|
@@ -25,7 +22,8 @@ var ConfirmDialog = exports.ConfirmDialog = (0, _mobxReact.observer)(function (_
|
|
|
25
22
|
scroll: false,
|
|
26
23
|
alwaysOnTop: true,
|
|
27
24
|
fullscreen: false,
|
|
28
|
-
resizable: false
|
|
25
|
+
resizable: false,
|
|
26
|
+
skipTaskbar: true
|
|
29
27
|
};
|
|
30
28
|
(0, _env.isElectron)() && (0, _useElectron.useElectronDialog)({
|
|
31
29
|
config: config,
|
|
@@ -35,9 +33,10 @@ var ConfirmDialog = exports.ConfirmDialog = (0, _mobxReact.observer)(function (_
|
|
|
35
33
|
scroll: false,
|
|
36
34
|
alwaysOnTop: true,
|
|
37
35
|
ignoreMouseEvents: true,
|
|
38
|
-
focus: true
|
|
36
|
+
focus: true,
|
|
37
|
+
hasCustomShadow: false
|
|
39
38
|
});
|
|
40
39
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
41
40
|
children: !(0, _env.isElectron)() && children
|
|
42
41
|
});
|
|
43
|
-
}
|
|
42
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
2
|
import { ParamsType } from '.';
|
|
3
|
-
export declare const ConnectionGatewayElectronDialog: ({ children, params }: PropsWithChildren<{
|
|
3
|
+
export declare const ConnectionGatewayElectronDialog: ({ children, params, }: PropsWithChildren<{
|
|
4
4
|
params: ParamsType;
|
|
5
5
|
}>) => null;
|
|
@@ -5,29 +5,21 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.ConnectionGatewayElectronDialog = void 0;
|
|
8
|
-
var _mobxReact = require("mobx-react");
|
|
9
|
-
var _react = require("react");
|
|
10
|
-
var _store = require("../../store");
|
|
11
8
|
var _constant = require("../../../../utilities/constant");
|
|
12
9
|
var _useElectron = require("../../hooks/useElectron");
|
|
13
|
-
var ConnectionGatewayElectronDialog = exports.ConnectionGatewayElectronDialog =
|
|
10
|
+
var ConnectionGatewayElectronDialog = exports.ConnectionGatewayElectronDialog = function ConnectionGatewayElectronDialog(_ref) {
|
|
14
11
|
var children = _ref.children,
|
|
15
12
|
params = _ref.params;
|
|
16
|
-
var store = (0, _react.useContext)(_store.StoreContext);
|
|
17
|
-
var height = store.currentDialogBounds.height;
|
|
18
|
-
var browserRef = (0, _react.useRef)();
|
|
19
13
|
var config = {
|
|
20
|
-
|
|
21
|
-
|
|
14
|
+
maximizable: false,
|
|
15
|
+
minimizable: false,
|
|
16
|
+
fullscreenable: false,
|
|
22
17
|
width: 400,
|
|
23
|
-
height:
|
|
18
|
+
height: 500,
|
|
24
19
|
trafficLightPosition: {
|
|
25
20
|
x: 0,
|
|
26
21
|
y: 0
|
|
27
|
-
}
|
|
28
|
-
resizable: false,
|
|
29
|
-
transparent: true,
|
|
30
|
-
fullscreen: false
|
|
22
|
+
}
|
|
31
23
|
};
|
|
32
24
|
(0, _useElectron.useElectronDialog)({
|
|
33
25
|
dialogKey: _constant.DialogKey.CONNECTION_GATEWAY,
|
|
@@ -35,20 +27,9 @@ var ConnectionGatewayElectronDialog = exports.ConnectionGatewayElectronDialog =
|
|
|
35
27
|
children: children,
|
|
36
28
|
onOpened: function onOpened(_ref2) {
|
|
37
29
|
var browserWindow = _ref2.browserWindow;
|
|
38
|
-
|
|
39
|
-
browserWindow.
|
|
40
|
-
height: params.type === 'phone' ? 500 : 350,
|
|
41
|
-
width: 400
|
|
42
|
-
});
|
|
30
|
+
browserWindow === null || browserWindow === void 0 || browserWindow.focus();
|
|
31
|
+
browserWindow === null || browserWindow === void 0 || browserWindow.setAlwaysOnTop(true);
|
|
43
32
|
}
|
|
44
33
|
});
|
|
45
|
-
(0, _react.useEffect)(function () {
|
|
46
|
-
var _browserRef$current;
|
|
47
|
-
if (!height) return;
|
|
48
|
-
(_browserRef$current = browserRef.current) === null || _browserRef$current === void 0 || _browserRef$current.setBounds({
|
|
49
|
-
width: 400,
|
|
50
|
-
height: height
|
|
51
|
-
}, true);
|
|
52
|
-
}, [height]);
|
|
53
34
|
return null;
|
|
54
|
-
}
|
|
35
|
+
};
|