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
|
@@ -60,19 +60,17 @@ var _card = require("agora-ui-foundation/lib/components/card");
|
|
|
60
60
|
var _type = require("agora-rte-sdk/lib/core/rtc/type");
|
|
61
61
|
var _button = require("agora-ui-foundation/lib/components/button");
|
|
62
62
|
var _shareAudio = require("agora-ui-foundation/lib/components/room-screen-share-state-bar/share-audio");
|
|
63
|
-
var _tabs = require("agora-ui-foundation/lib/components/tabs");
|
|
64
|
-
var _windowsControl = require("agora-ui-foundation/lib/components/windows-control");
|
|
65
63
|
var _debounce = _interopRequireDefault(require("lodash/debounce"));
|
|
66
64
|
var _mobxReact = require("mobx-react");
|
|
67
65
|
var _react = require("react");
|
|
68
66
|
var _tools = require("../../../utilities/tools");
|
|
69
|
-
var _platform = require("../../../utilities/platform");
|
|
70
67
|
var _type2 = require("../../../type");
|
|
71
68
|
var _tooltip = require("agora-ui-foundation/lib/components/tooltip");
|
|
72
69
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
73
70
|
require("./index.css");
|
|
74
71
|
var _store = require("../store");
|
|
75
72
|
var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
73
|
+
var _tabFrame = _interopRequireDefault(require("../../components/tab-frame"));
|
|
76
74
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
77
75
|
var ShareSelectionWindowType = /*#__PURE__*/function (ShareSelectionWindowType) {
|
|
78
76
|
ShareSelectionWindowType["BASIC"] = "basic";
|
|
@@ -149,103 +147,91 @@ var ShareSelection = exports.ShareSelection = (0, _mobxReact.observer)(function
|
|
|
149
147
|
var transI18n = (0, _i18n.useI18n)();
|
|
150
148
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
151
149
|
className: "share-selection-window",
|
|
152
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
trigger: "hover",
|
|
201
|
-
content: transI18n('fmt_screenshare_tips_alreadyopened'),
|
|
202
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
|
|
203
|
-
styleType: "danger",
|
|
204
|
-
size: "XXS",
|
|
205
|
-
shape: "rounded",
|
|
206
|
-
onClick: handlerBoardShareStop,
|
|
207
|
-
children: transI18n('fmt_screenshare_button_stopshare')
|
|
208
|
-
})
|
|
209
|
-
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
210
|
-
type: screen.image,
|
|
211
|
-
size: 48,
|
|
212
|
-
colors: {
|
|
213
|
-
iconPrimary: '#4262FF'
|
|
214
|
-
}
|
|
150
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_tabFrame["default"], {
|
|
151
|
+
activeKey: ShareSelectionWindowType.BASIC,
|
|
152
|
+
tabs: [{
|
|
153
|
+
label: transI18n('fmt_screenshare_window_tab_basic'),
|
|
154
|
+
key: ShareSelectionWindowType.BASIC,
|
|
155
|
+
content: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
156
|
+
className: "share-selection-window__share-content frc-flex",
|
|
157
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
158
|
+
className: "share-selection-window__share-windows share-selection-window__share-card",
|
|
159
|
+
children: screenCaptureSources.map(function (screen) {
|
|
160
|
+
var type = _type.AgoraRtcScreenCaptureType.SCREEN;
|
|
161
|
+
var isWhiteboard = screen.id.split('-')[0] === 'whiteboard';
|
|
162
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_card.FcrCard, {
|
|
163
|
+
disabled: isWhiteboard && !!(boardOwnerUser !== null && boardOwnerUser !== void 0 && boardOwnerUser.userId),
|
|
164
|
+
title: isWhiteboard ? t('fmt_share_options_whiteboard') : screen.title,
|
|
165
|
+
active: currentSelectionType === type && screen.id === currentSelection || screen.id === currentSelection,
|
|
166
|
+
onCardClick: function onCardClick() {
|
|
167
|
+
handleChooseScreen(screen.id, type);
|
|
168
|
+
},
|
|
169
|
+
onDoubleClickCard: function onDoubleClickCard() {
|
|
170
|
+
if (boardOwnerUser) return;
|
|
171
|
+
handleStartShare(screen.id, type, shareWithAudio);
|
|
172
|
+
},
|
|
173
|
+
content: screen.image instanceof Uint8Array ? /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
174
|
+
src: (0, _tools.uint8ArrayToImageData)({
|
|
175
|
+
buffer: screen.image,
|
|
176
|
+
width: screen.imageWidth,
|
|
177
|
+
height: screen.imageHeight
|
|
178
|
+
}),
|
|
179
|
+
alt: screen.title
|
|
180
|
+
}) : [_type2.FcrUserRole.HOST, _type2.FcrUserRole.COHOST].includes(localUserRole) && isWhiteboard && (boardOwnerUser === null || boardOwnerUser === void 0 ? void 0 : boardOwnerUser.userId) !== (localUser === null || localUser === void 0 ? void 0 : localUser.userId) && boardOwnerUser ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
|
|
181
|
+
trigger: "hover",
|
|
182
|
+
content: transI18n('fmt_screenshare_tips_alreadyopened'),
|
|
183
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
|
|
184
|
+
styleType: "danger",
|
|
185
|
+
size: "XXS",
|
|
186
|
+
shape: "rounded",
|
|
187
|
+
onClick: handlerBoardShareStop,
|
|
188
|
+
children: transI18n('fmt_screenshare_button_stopshare')
|
|
189
|
+
})
|
|
190
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
191
|
+
type: screen.image,
|
|
192
|
+
size: 48,
|
|
193
|
+
colors: {
|
|
194
|
+
iconPrimary: '#4262FF'
|
|
195
|
+
}
|
|
196
|
+
})
|
|
197
|
+
}, "screen-".concat(screen.id));
|
|
215
198
|
})
|
|
216
|
-
},
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
style: {
|
|
222
|
-
marginTop: '38px'
|
|
223
|
-
},
|
|
224
|
-
children: transI18n('fmt_uimanager_labels_Application')
|
|
225
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
226
|
-
className: "share-selection-window__share-application share-selection-window__share-card",
|
|
227
|
-
children: applicationCaptureSources.map(function (application) {
|
|
228
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_card.FcrCard, {
|
|
229
|
-
active: currentSelectionType === _type.AgoraRtcScreenCaptureType.WINDOW && application.id === currentSelection,
|
|
230
|
-
onCardClick: function onCardClick() {
|
|
231
|
-
handleChooseScreen(application.id, _type.AgoraRtcScreenCaptureType.WINDOW);
|
|
232
|
-
},
|
|
233
|
-
onDoubleClickCard: function onDoubleClickCard() {
|
|
234
|
-
handleStartShare(application.id, _type.AgoraRtcScreenCaptureType.WINDOW, shareWithAudio);
|
|
199
|
+
}), !!applicationCaptureSources.length && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
200
|
+
className: "frc-flex",
|
|
201
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
202
|
+
style: {
|
|
203
|
+
marginTop: '38px'
|
|
235
204
|
},
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
205
|
+
children: transI18n('fmt_uimanager_labels_Application')
|
|
206
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
207
|
+
className: "share-selection-window__share-application share-selection-window__share-card",
|
|
208
|
+
children: applicationCaptureSources.map(function (application) {
|
|
209
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_card.FcrCard, {
|
|
210
|
+
active: currentSelectionType === _type.AgoraRtcScreenCaptureType.WINDOW && application.id === currentSelection,
|
|
211
|
+
onCardClick: function onCardClick() {
|
|
212
|
+
handleChooseScreen(application.id, _type.AgoraRtcScreenCaptureType.WINDOW);
|
|
213
|
+
},
|
|
214
|
+
onDoubleClickCard: function onDoubleClickCard() {
|
|
215
|
+
handleStartShare(application.id, _type.AgoraRtcScreenCaptureType.WINDOW, shareWithAudio);
|
|
216
|
+
},
|
|
217
|
+
title: application.title,
|
|
218
|
+
content: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
219
|
+
src: (0, _tools.uint8ArrayToImageData)({
|
|
220
|
+
buffer: application.image,
|
|
221
|
+
width: application.imageWidth,
|
|
222
|
+
height: application.imageHeight
|
|
223
|
+
}),
|
|
224
|
+
alt: application.title
|
|
225
|
+
})
|
|
226
|
+
}, "application-".concat(application.id));
|
|
244
227
|
})
|
|
245
|
-
}
|
|
246
|
-
})
|
|
247
|
-
})
|
|
248
|
-
}
|
|
228
|
+
})]
|
|
229
|
+
})]
|
|
230
|
+
})
|
|
231
|
+
}, {
|
|
232
|
+
label: transI18n('fmt_screenshare_window_tab_advanced'),
|
|
233
|
+
key: ShareSelectionWindowType.ADVANCED
|
|
234
|
+
}]
|
|
249
235
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
250
236
|
className: "share-selection-window__footer",
|
|
251
237
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
@@ -81,7 +81,6 @@ var _shareAudio = require("agora-ui-foundation/lib/components/room-screen-share-
|
|
|
81
81
|
var _mobx = require("mobx");
|
|
82
82
|
var _constant = require("../../utilities/constant");
|
|
83
83
|
var _rendererEvent = require("../../utilities/renderer-event");
|
|
84
|
-
var _platform = require("../../utilities/platform");
|
|
85
84
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
86
85
|
var _decorator = require("agora-foundation/lib/decorator");
|
|
87
86
|
var _tools = require("../../utilities/tools");
|
|
@@ -207,7 +206,6 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
207
206
|
return _this._securityStore.hasStartScreenSharePermission();
|
|
208
207
|
}, function (screenSharePremission) {
|
|
209
208
|
if (!screenSharePremission) {
|
|
210
|
-
if (_this.screenSharingState === _fcrCore.FcrMediaSourceState.OPEN) _this.handleStopShare();
|
|
211
209
|
if (_this._isHost) return;
|
|
212
210
|
_this._uiEventStore.showToast({
|
|
213
211
|
type: 'error',
|
|
@@ -502,37 +500,20 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
502
500
|
value: function () {
|
|
503
501
|
var _openShareScreenSelection = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2() {
|
|
504
502
|
var _this2 = this;
|
|
505
|
-
var
|
|
503
|
+
var windowList, displayList;
|
|
506
504
|
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
507
505
|
while (1) switch (_context2.prev = _context2.next) {
|
|
508
506
|
case 0:
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
NORMAL_WIDTH = 790;
|
|
512
|
-
shareSelectionHeight = !(0, _platform.isWindows)() ? NORMAL_HEIGHT : NORMAL_HEIGHT + WINDOWS_HEIGHT;
|
|
513
|
-
_window$runtime$brows = window.runtime.browserWindow.getBounds(), mainWidowX = _window$runtime$brows.x, mainWindowY = _window$runtime$brows.y, mainWidth = _window$runtime$brows.width, mainHeight = _window$runtime$brows.height;
|
|
514
|
-
offsetForToast = 50;
|
|
515
|
-
this._shareSelectionDialogId = this._uiEventStore.openDialog(_constant.DialogKey.SHARE_SCREEN, 'screen-selection', {
|
|
516
|
-
frame: false,
|
|
517
|
-
titleBarStyle: 'hidden',
|
|
518
|
-
width: NORMAL_WIDTH,
|
|
519
|
-
fullscreen: false,
|
|
520
|
-
maximizable: false,
|
|
521
|
-
height: shareSelectionHeight,
|
|
522
|
-
x: mainWidowX + Math.floor(mainWidth / 2) - Math.floor(NORMAL_WIDTH / 2),
|
|
523
|
-
y: mainWindowY + Math.floor(mainHeight / 2) - Math.floor(shareSelectionHeight / 2) + offsetForToast,
|
|
524
|
-
controlBarDialogId: this._controlBarDialogId,
|
|
525
|
-
transparent: true
|
|
526
|
-
});
|
|
527
|
-
_context2.next = 9;
|
|
507
|
+
this._shareSelectionDialogId = this._uiEventStore.openDialog(_constant.DialogKey.SHARE_SCREEN, 'screen-selection');
|
|
508
|
+
_context2.next = 3;
|
|
528
509
|
return this._mediaControl.getWindowList();
|
|
529
|
-
case
|
|
510
|
+
case 3:
|
|
530
511
|
windowList = _context2.sent.filter(function (item) {
|
|
531
512
|
return !['AgoraHighLighter', 'Toast', 'Confirm'].includes(item.title) || item.isCurrent;
|
|
532
513
|
});
|
|
533
|
-
_context2.next =
|
|
514
|
+
_context2.next = 6;
|
|
534
515
|
return this._mediaControl.getDisplayList();
|
|
535
|
-
case
|
|
516
|
+
case 6:
|
|
536
517
|
displayList = _context2.sent;
|
|
537
518
|
(0, _mobx.runInAction)(function () {
|
|
538
519
|
_this2.applicationCaptureSources = windowList.filter(function (item) {
|
|
@@ -544,7 +525,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
544
525
|
image: _type5.FcrIconType.FCR_WHITEBOARD2
|
|
545
526
|
}].concat((0, _toConsumableArray2["default"])(displayList));
|
|
546
527
|
});
|
|
547
|
-
case
|
|
528
|
+
case 8:
|
|
548
529
|
case "end":
|
|
549
530
|
return _context2.stop();
|
|
550
531
|
}
|
|
@@ -674,7 +655,7 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
674
655
|
_this4._uiEventStore.closeConfirm(dialogId);
|
|
675
656
|
},
|
|
676
657
|
onOk: function onOk() {
|
|
677
|
-
window.runtime.
|
|
658
|
+
window.runtime.checkMediaPermission('sharing');
|
|
678
659
|
_this4._uiEventStore.closeConfirm(dialogId);
|
|
679
660
|
},
|
|
680
661
|
closable: false
|
|
@@ -1114,29 +1095,28 @@ var ShareScreenStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
1114
1095
|
while (1) switch (_context11.prev = _context11.next) {
|
|
1115
1096
|
case 0:
|
|
1116
1097
|
_context11.t0 = event;
|
|
1117
|
-
_context11.next = _context11.t0 === _constant.UIAction.START_SHARE_SCREEN ? 3 : _context11.t0 === _constant.UIAction.STOP_SCREEN_CAPTURE ? 5 : _context11.t0 === _constant.UIAction.ENGINE_RECONNECTED ? 7 : _context11.t0 === _constant.UIAction.STOP_SHARE_SCREEN ? 9 : _context11.t0 === _constant.UIAction.SET_SHARE_WITH_AUDIO ?
|
|
1098
|
+
_context11.next = _context11.t0 === _constant.UIAction.START_SHARE_SCREEN ? 3 : _context11.t0 === _constant.UIAction.STOP_SCREEN_CAPTURE ? 5 : _context11.t0 === _constant.UIAction.ENGINE_RECONNECTED ? 7 : _context11.t0 === _constant.UIAction.STOP_SHARE_SCREEN ? 9 : _context11.t0 === _constant.UIAction.SET_SHARE_WITH_AUDIO ? 11 : 13;
|
|
1118
1099
|
break;
|
|
1119
1100
|
case 3:
|
|
1120
1101
|
this.prepareShareScreen();
|
|
1121
|
-
return _context11.abrupt("break",
|
|
1102
|
+
return _context11.abrupt("break", 13);
|
|
1122
1103
|
case 5:
|
|
1123
1104
|
this._closeCapture();
|
|
1124
1105
|
// this.handleStopShare();
|
|
1125
|
-
return _context11.abrupt("break",
|
|
1106
|
+
return _context11.abrupt("break", 13);
|
|
1126
1107
|
case 7:
|
|
1127
1108
|
if (this._removeScreenStreamFailed) {
|
|
1128
1109
|
this._removeScreenStream();
|
|
1129
1110
|
this._removeScreenStreamFailed = false;
|
|
1130
1111
|
}
|
|
1131
|
-
return _context11.abrupt("break",
|
|
1112
|
+
return _context11.abrupt("break", 13);
|
|
1132
1113
|
case 9:
|
|
1133
1114
|
this.handleStopShare();
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
case 12:
|
|
1115
|
+
return _context11.abrupt("break", 13);
|
|
1116
|
+
case 11:
|
|
1137
1117
|
this.setShareWithAudio(params.withAudio);
|
|
1138
|
-
return _context11.abrupt("break",
|
|
1139
|
-
case
|
|
1118
|
+
return _context11.abrupt("break", 13);
|
|
1119
|
+
case 13:
|
|
1140
1120
|
case "end":
|
|
1141
1121
|
return _context11.stop();
|
|
1142
1122
|
}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import { FcrDeviceStore } from '../../common/device-store';
|
|
2
1
|
import { UIModule } from '../../base';
|
|
3
|
-
import {
|
|
4
|
-
import { FcrBaseRoomControl, FcrStreamControl, FcrUserControl, FcrCoreEngine } from 'fcr-core';
|
|
5
|
-
import { FcrWhiteboardControl } from 'fcr-core/lib/room-control/whiteboard-control/types';
|
|
2
|
+
import { StoreConfig } from '../../type';
|
|
6
3
|
declare enum SoundEffectType {
|
|
7
4
|
INCOMMING_MESSAGE = "incomming_message",
|
|
8
5
|
INCOMMING_PRIVATE_MESSAGE = "incomming_private_message",
|
|
@@ -29,15 +26,7 @@ export declare class SoundEffectUIModule extends UIModule {
|
|
|
29
26
|
private _roomObserver;
|
|
30
27
|
private _streamsObserver;
|
|
31
28
|
private _userObserver;
|
|
32
|
-
constructor({ chatRoomControl, streamControl, roomControl,
|
|
33
|
-
chatRoomControl: FcrChatRoomControl;
|
|
34
|
-
streamControl: FcrStreamControl;
|
|
35
|
-
roomControl: FcrBaseRoomControl;
|
|
36
|
-
whiteboardControl: FcrWhiteboardControl;
|
|
37
|
-
userControl: FcrUserControl;
|
|
38
|
-
deviceStore: FcrDeviceStore;
|
|
39
|
-
engine: FcrCoreEngine;
|
|
40
|
-
});
|
|
29
|
+
constructor({ chatRoomControl, streamControl, roomControl, userControl, deviceStore, engine, }: StoreConfig);
|
|
41
30
|
release(): void;
|
|
42
31
|
get soundEffectList(): Map<string, Record<string, string>>;
|
|
43
32
|
private _clearSoundEffectPlayer;
|
|
@@ -96,7 +96,6 @@ var SoundEffectUIModule = exports.SoundEffectUIModule = /*#__PURE__*/function (_
|
|
|
96
96
|
var chatRoomControl = _ref.chatRoomControl,
|
|
97
97
|
streamControl = _ref.streamControl,
|
|
98
98
|
roomControl = _ref.roomControl,
|
|
99
|
-
whiteboardControl = _ref.whiteboardControl,
|
|
100
99
|
userControl = _ref.userControl,
|
|
101
100
|
deviceStore = _ref.deviceStore,
|
|
102
101
|
engine = _ref.engine;
|
|
@@ -124,7 +123,7 @@ var SoundEffectUIModule = exports.SoundEffectUIModule = /*#__PURE__*/function (_
|
|
|
124
123
|
_this._chatRoomControl = chatRoomControl;
|
|
125
124
|
_this._streamControl = streamControl;
|
|
126
125
|
_this._roomControl = roomControl;
|
|
127
|
-
_this._whiteboardControl =
|
|
126
|
+
_this._whiteboardControl = roomControl.getBoardControl();
|
|
128
127
|
_this._userControl = userControl;
|
|
129
128
|
_this._deviceStore = deviceStore;
|
|
130
129
|
_this._engine = engine;
|
|
@@ -219,10 +219,18 @@
|
|
|
219
219
|
padding: 3px 6px;
|
|
220
220
|
}
|
|
221
221
|
|
|
222
|
+
.fcr-state-bar__record-btn:focus {
|
|
223
|
+
outline: 0px;
|
|
224
|
+
}
|
|
225
|
+
|
|
222
226
|
.fcr-state-bar__record-btn:hover {
|
|
223
227
|
background-color: var(--fcr_web_ui_scene_hover);
|
|
224
228
|
}
|
|
225
229
|
|
|
230
|
+
.fcr-state-bar__record-btn:hover svg path {
|
|
231
|
+
fill: var(--fcr_web_ui_scene_mainicon2);
|
|
232
|
+
}
|
|
233
|
+
|
|
226
234
|
@media (max-width: 575px) {
|
|
227
235
|
.fcr-state-bar__record-tag {
|
|
228
236
|
padding-right: 4px;
|
|
@@ -488,8 +496,11 @@
|
|
|
488
496
|
|
|
489
497
|
.fcr-state-bar__meeting-info-drop .fcr-drop-menu {
|
|
490
498
|
width: 100%;
|
|
491
|
-
|
|
492
|
-
|
|
499
|
+
}
|
|
500
|
+
.fcr-drop-menu-option {
|
|
501
|
+
height: auto;
|
|
502
|
+
min-height: 30px;
|
|
503
|
+
padding: 4px 8px;
|
|
493
504
|
}
|
|
494
505
|
.fcr-state-bar__meeting-info-drop .fcr-drop-menu-option-text {
|
|
495
506
|
overflow: hidden;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { UIModule } from '../../base';
|
|
2
2
|
import './index.css';
|
|
3
|
-
import {
|
|
3
|
+
import { FcrUIEventStore } from '../../common/event-store';
|
|
4
4
|
import { FcrSecurityStore } from '../../common/security-store';
|
|
5
|
-
import { UIAction } from '../../utilities/constant';
|
|
6
5
|
import { FcrUISceneConfig } from '../../type';
|
|
7
6
|
import { FcrMainRoomControl, FcrWaitingRoomControl } from 'fcr-core/lib/room-control/type';
|
|
8
7
|
export declare class StateBarUIModule extends UIModule {
|
|
@@ -15,8 +14,5 @@ export declare class StateBarUIModule extends UIModule {
|
|
|
15
14
|
parameters?: Record<string, unknown>;
|
|
16
15
|
});
|
|
17
16
|
getComponent(): import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
onUiEvent(event: UIAction, payload: {
|
|
19
|
-
action: FcrCloudRecordingParams['action'];
|
|
20
|
-
}): void;
|
|
21
17
|
onUnload(): void;
|
|
22
18
|
}
|
|
@@ -56,7 +56,7 @@ window.__DEV_ENGINE_IS_READY__.then(/*#__PURE__*/(0, _asyncToGenerator2["default
|
|
|
56
56
|
});
|
|
57
57
|
}, 1000);
|
|
58
58
|
uiEventStore = new _eventStore.FcrUIEventStore();
|
|
59
|
-
securityStore = new _securityStore.FcrSecurityStore(roomControl.getPrivilegeControl(), roomControl.getUserControl(), roomControl.getStreamControl(),
|
|
59
|
+
securityStore = new _securityStore.FcrSecurityStore(roomControl.getPrivilegeControl(), roomControl.getUserControl(), roomControl.getStreamControl(), uiEventStore);
|
|
60
60
|
uiModule = new _.StateBarUIModule({
|
|
61
61
|
roomControl: roomControl,
|
|
62
62
|
uiEventStore: uiEventStore,
|
|
@@ -16,7 +16,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
16
16
|
value: true
|
|
17
17
|
});
|
|
18
18
|
exports.StateBarUIModule = void 0;
|
|
19
|
-
require("core-js/modules/es.function.bind.js");
|
|
20
19
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
21
20
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
22
21
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
@@ -26,7 +25,6 @@ var _base = require("../../base");
|
|
|
26
25
|
var _view = require("./view");
|
|
27
26
|
var _store = _interopRequireWildcard(require("./store"));
|
|
28
27
|
require("./index.css");
|
|
29
|
-
var _constant = require("../../utilities/constant");
|
|
30
28
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
31
29
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
32
30
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
@@ -38,9 +36,6 @@ var StateBarUIModule = exports.StateBarUIModule = /*#__PURE__*/function (_UIModu
|
|
|
38
36
|
(0, _classCallCheck2["default"])(this, StateBarUIModule);
|
|
39
37
|
_this = _callSuper(this, StateBarUIModule);
|
|
40
38
|
_this._store = new _store["default"](args);
|
|
41
|
-
args.uiEventStore.addObserver({
|
|
42
|
-
onEvent: _this.onUiEvent.bind(_this)
|
|
43
|
-
});
|
|
44
39
|
return _this;
|
|
45
40
|
}
|
|
46
41
|
(0, _inherits2["default"])(StateBarUIModule, _UIModule);
|
|
@@ -52,28 +47,6 @@ var StateBarUIModule = exports.StateBarUIModule = /*#__PURE__*/function (_UIModu
|
|
|
52
47
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_view.View, {})
|
|
53
48
|
});
|
|
54
49
|
}
|
|
55
|
-
}, {
|
|
56
|
-
key: "onUiEvent",
|
|
57
|
-
value: function onUiEvent(event, payload) {
|
|
58
|
-
switch (event) {
|
|
59
|
-
case _constant.UIAction.CLOUD_RECORDING:
|
|
60
|
-
switch (payload.action) {
|
|
61
|
-
case 'start':
|
|
62
|
-
this._store.startCloudRecording();
|
|
63
|
-
break;
|
|
64
|
-
case 'pause':
|
|
65
|
-
this._store.pauseCloudRecording();
|
|
66
|
-
break;
|
|
67
|
-
case 'resume':
|
|
68
|
-
this._store.resumeCloudRecording();
|
|
69
|
-
break;
|
|
70
|
-
case 'stop':
|
|
71
|
-
this._store.stopCloudRecording();
|
|
72
|
-
break;
|
|
73
|
-
}
|
|
74
|
-
break;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
50
|
}, {
|
|
78
51
|
key: "onUnload",
|
|
79
52
|
value: function onUnload() {
|
|
@@ -129,7 +129,7 @@ var LayoutConfig = exports.LayoutConfig = (0, _mobxReact.observer)(function (pro
|
|
|
129
129
|
_setIsOpen(visible);
|
|
130
130
|
toggleLayoutBarLock(visible);
|
|
131
131
|
},
|
|
132
|
-
placement: "
|
|
132
|
+
placement: "bottomRight",
|
|
133
133
|
overlayClassName: ns.e('popover'),
|
|
134
134
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
135
135
|
className: ns.b(),
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
align-items: start;
|
|
15
15
|
border-radius: var(--fcr_cornerradius_l, 8px);
|
|
16
16
|
padding: 18px 15px 20px 15px;
|
|
17
|
-
background-color: var(--
|
|
17
|
+
background-color: var(--fcr_web_ui_scene_hover);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.meeting-network-state__connection > label {
|
|
@@ -15,11 +15,14 @@ var _type2 = require("agora-ui-foundation/lib/components/icon/type");
|
|
|
15
15
|
var _tooltip = require("agora-ui-foundation/lib/components/tooltip");
|
|
16
16
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
17
17
|
var _useNamespace = require("../../utilities/useNamespace");
|
|
18
|
-
var _stopRecordDialog = require("../action-bar/record/stop-record-dialog");
|
|
18
|
+
var _stopRecordDialog = require("../action-bar/components/record/stop-record-dialog");
|
|
19
19
|
var _store = require("./store");
|
|
20
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
21
|
var colors = {
|
|
22
|
-
iconPrimary: 'var(--
|
|
22
|
+
iconPrimary: 'var(--fcr_web_ui_scene_mainicon1)'
|
|
23
|
+
};
|
|
24
|
+
var redColors = {
|
|
25
|
+
iconPrimary: 'var(--fcr_ui_scene_ramp_red6)'
|
|
23
26
|
};
|
|
24
27
|
var Recording = exports.Recording = (0, _mobxReact.observer)(function () {
|
|
25
28
|
var t = (0, _i18n.useI18n)();
|
|
@@ -42,7 +45,7 @@ var Recording = exports.Recording = (0, _mobxReact.observer)(function () {
|
|
|
42
45
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
43
46
|
type: _type2.FcrIconType.FCR_CLOUDRECORD,
|
|
44
47
|
colors: {
|
|
45
|
-
iconPrimary: galleryWidth < _store.GALLERY_MIN_SIZE ? '' :
|
|
48
|
+
iconPrimary: galleryWidth < _store.GALLERY_MIN_SIZE ? '' : redColors.iconPrimary
|
|
46
49
|
}
|
|
47
50
|
}), galleryWidth >= _store.GALLERY_MIN_SIZE && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
48
51
|
className: ns.e('record-text'),
|
|
@@ -52,7 +55,7 @@ var Recording = exports.Recording = (0, _mobxReact.observer)(function () {
|
|
|
52
55
|
className: ns.e('record-tag'),
|
|
53
56
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
54
57
|
type: _type2.FcrIconType.FCR_CLOUDRECORD,
|
|
55
|
-
colors:
|
|
58
|
+
colors: redColors
|
|
56
59
|
}), galleryWidth >= _store.GALLERY_MIN_SIZE && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
57
60
|
className: ns.e('record-text'),
|
|
58
61
|
children: "REC"
|
|
@@ -174,7 +174,7 @@ var View = exports.View = (0, _mobxReact.observer)(function () {
|
|
|
174
174
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_layoutConfig.LayoutConfig, {})
|
|
175
175
|
})
|
|
176
176
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(MyFcrToolTip, {
|
|
177
|
-
placement: "
|
|
177
|
+
placement: "bottom",
|
|
178
178
|
content: isFullScreen ? t('fmt_statusbar_label_exitfullscreen') : t('fmt_statusbar_label_fullscreen'),
|
|
179
179
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
180
180
|
className: ns.e('full-screen'),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { UIModule } from '../../base';
|
|
2
|
-
import { VideoWindowStoreParams } from './store';
|
|
3
2
|
import { UIAction } from '../../utilities/constant';
|
|
3
|
+
import { StoreConfig } from '../../type';
|
|
4
4
|
export declare class VideoWindowUIModule extends UIModule {
|
|
5
5
|
private _store;
|
|
6
|
-
constructor(args:
|
|
6
|
+
constructor(args: StoreConfig);
|
|
7
7
|
getComponent(): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
onUnload(): void;
|
|
9
9
|
onUiEvent(event: UIAction, payload: any): void;
|
|
@@ -11,6 +11,7 @@ import { ConnectionTabType } from './type';
|
|
|
11
11
|
import { FcrDeviceStreamStore } from '../../common/device-stream-store';
|
|
12
12
|
import { FcrUserUpdatedEvent } from 'fcr-core/lib/room-control/user-control/type';
|
|
13
13
|
import { FcrInterpreterControl, FcrInterpreterUserInfo } from 'fcr-core/lib/room-control/interpreter-control/types';
|
|
14
|
+
import { StoreConfig } from '../../type';
|
|
14
15
|
export interface VideoWindowStoreParams {
|
|
15
16
|
uiEventStore: FcrUIEventStore;
|
|
16
17
|
userControl: FcrUserControl;
|
|
@@ -53,7 +54,7 @@ export default class VideoWindowStore {
|
|
|
53
54
|
accessor interpreterUsers: Array<FcrInterpreterUserInfo>;
|
|
54
55
|
accessor interpreterState: boolean;
|
|
55
56
|
setBounds(width: number, height: number): void;
|
|
56
|
-
constructor(params:
|
|
57
|
+
constructor(params: StoreConfig);
|
|
57
58
|
setVideoOrientation(): void;
|
|
58
59
|
release(): void;
|
|
59
60
|
private _onAudioVolumeUpdated;
|
|
@@ -144,7 +144,7 @@ var VideoWindowStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
144
144
|
deviceStore = params.deviceStore,
|
|
145
145
|
mediaControl = params.mediaControl,
|
|
146
146
|
deviceStreamStore = params.deviceStreamStore,
|
|
147
|
-
|
|
147
|
+
roomControl = params.roomControl;
|
|
148
148
|
this._uiEventStore = uiEventStore;
|
|
149
149
|
this._deviceStore = deviceStore;
|
|
150
150
|
this._deviceStreamStore = deviceStreamStore;
|
|
@@ -175,7 +175,7 @@ var VideoWindowStore = exports["default"] = /*#__PURE__*/function () {
|
|
|
175
175
|
_this.userVolumeMap.set('0', volume);
|
|
176
176
|
});
|
|
177
177
|
}));
|
|
178
|
-
this._interpreterControl =
|
|
178
|
+
this._interpreterControl = roomControl.getInterpreterControl();
|
|
179
179
|
this.interpreterUsers = this._interpreterControl.getInterpreterUserList() || [];
|
|
180
180
|
this.interpreterState = this.getInterpreterState();
|
|
181
181
|
this._interpreterControl.addObserver({
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
align-items: center;
|
|
6
6
|
background: linear-gradient(112deg, #faedff 1.3%, #e6f8fc 98.11%);
|
|
7
7
|
height: calc(100% - 34px);
|
|
8
|
-
padding: 0 312px;
|
|
9
8
|
}
|
|
10
9
|
|
|
11
10
|
.waiting-room-module {
|
|
@@ -51,10 +50,9 @@
|
|
|
51
50
|
border-radius: 10px;
|
|
52
51
|
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
|
|
53
52
|
align-items: center;
|
|
54
|
-
width:
|
|
53
|
+
width: 70%;
|
|
55
54
|
background-color: white;
|
|
56
55
|
min-width: 702px;
|
|
57
|
-
width: 100%;
|
|
58
56
|
}
|
|
59
57
|
|
|
60
58
|
.waiting-room-video-content {
|
|
@@ -3,6 +3,8 @@ import { LayoutStoreParams, FcrLayoutSlots } from './store';
|
|
|
3
3
|
export declare class WaitingRoomLayout extends UIModule {
|
|
4
4
|
private _store;
|
|
5
5
|
constructor(args: LayoutStoreParams);
|
|
6
|
-
getComponent(slots?: Partial<FcrLayoutSlots
|
|
6
|
+
getComponent(slots?: Partial<FcrLayoutSlots & {
|
|
7
|
+
globalToast: React.ReactNode;
|
|
8
|
+
}>): import("react/jsx-runtime").JSX.Element;
|
|
7
9
|
onUnload(): void;
|
|
8
10
|
}
|