fcr-ui-scene 3.4.2 → 3.4.4
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/common/device-store.d.ts +23 -14
- package/lib/common/device-store.js +361 -252
- package/lib/common/device-stream-store.d.ts +8 -14
- package/lib/common/device-stream-store.js +254 -116
- package/lib/common/event-store.d.ts +35 -10
- package/lib/common/event-store.js +64 -13
- package/lib/common/security-store.d.ts +47 -39
- package/lib/common/security-store.js +335 -379
- package/lib/electron/app.js +1 -0
- package/lib/modules/action-bar/action-bar-collapes-items.d.ts +4 -1
- package/lib/modules/action-bar/action-bar-collapes-items.js +38 -21
- package/lib/modules/action-bar/components/apps/useWidgetList.d.ts +7 -0
- package/lib/modules/action-bar/components/apps/useWidgetList.js +43 -0
- package/lib/modules/action-bar/components/leave/assign-host.d.ts +8 -1
- package/lib/modules/action-bar/components/leave/assign-host.js +1 -1
- package/lib/modules/action-bar/components/leave/leave-meeting.d.ts +16 -1
- package/lib/modules/action-bar/smaller.js +5 -5
- package/lib/modules/chat/chat-bar/index.css +6 -0
- package/lib/modules/chat/chat-bar/index.d.ts +3 -3
- package/lib/modules/chat/chat-bar/index.js +51 -39
- package/lib/modules/chat/chat-select/index.css +27 -7
- package/lib/modules/chat/chat-select/index.d.ts +1 -1
- package/lib/modules/chat/chat-select/index.js +18 -4
- package/lib/modules/chat/chat.d.ts +1 -2
- package/lib/modules/chat/chat.js +196 -128
- package/lib/modules/chat/components/chat-select/select-input/index.d.ts +7 -0
- package/lib/modules/chat/components/chat-select/select-input/index.js +35 -0
- package/lib/modules/chat/components/chat-select/select-item/index.d.ts +12 -0
- package/lib/modules/chat/components/chat-select/select-item/index.js +153 -0
- package/lib/modules/chat/components/chat-tabs/index.d.ts +2 -0
- package/lib/modules/chat/components/chat-tabs/index.js +61 -0
- package/lib/modules/chat/components/message-list/chat-empty/index.d.ts +2 -0
- package/lib/modules/chat/components/message-list/chat-empty/index.js +26 -0
- package/lib/modules/chat/components/message-list/history-unread-message-button/index.d.ts +7 -0
- package/lib/modules/chat/components/message-list/history-unread-message-button/index.js +55 -0
- package/lib/modules/chat/components/message-list/message-item/index.d.ts +15 -0
- package/lib/modules/chat/components/message-list/message-item/index.js +279 -0
- package/lib/modules/chat/components/message-list/scroll-bottom-button/index.d.ts +9 -0
- package/lib/modules/chat/components/message-list/scroll-bottom-button/index.js +67 -0
- package/lib/modules/chat/message-list.js +68 -51
- package/lib/modules/components/dialog-container/component/body.js +1 -2
- package/lib/modules/components/dialog-container/index.d.ts +2 -2
- package/lib/modules/components/member-window/components/member-actions/components/audio-control.d.ts +6 -0
- package/lib/modules/components/member-window/components/member-actions/components/audio-control.js +36 -0
- package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.d.ts +40 -0
- package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.js +170 -0
- package/lib/modules/components/member-window/components/member-actions/components/icon-status.d.ts +11 -0
- package/lib/modules/components/member-window/components/member-actions/components/icon-status.js +105 -0
- package/lib/modules/components/member-window/components/member-actions/components/layout/index.d.ts +9 -0
- package/lib/modules/components/member-window/components/member-actions/components/layout/index.js +42 -0
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.d.ts +11 -0
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.js +159 -0
- package/lib/modules/components/member-window/components/member-actions/components/share-status.d.ts +2 -0
- package/lib/modules/components/member-window/components/member-actions/components/share-status.js +32 -0
- package/lib/modules/components/member-window/components/member-actions/components/user-info.d.ts +16 -0
- package/lib/modules/components/member-window/components/member-actions/components/user-info.js +130 -0
- package/lib/modules/components/member-window/components/member-actions/components/user-tag.d.ts +12 -0
- package/lib/modules/components/member-window/components/member-actions/components/user-tag.js +57 -0
- package/lib/modules/components/member-window/components/member-actions/index.d.ts +3 -0
- package/lib/modules/components/member-window/components/member-actions/index.js +122 -0
- package/lib/modules/components/member-window/components/member-actions/libs/index.d.ts +2 -0
- package/lib/modules/components/member-window/components/member-actions/libs/index.js +24 -0
- package/lib/modules/components/member-window/components/member-actions/provider.d.ts +21 -0
- package/lib/modules/components/member-window/components/member-actions/provider.js +77 -0
- package/lib/modules/components/member-window/components/member-actions/store.d.ts +48 -0
- package/lib/modules/components/member-window/components/member-actions/store.js +306 -0
- package/lib/modules/components/member-window/components/member-board.d.ts +2 -0
- package/lib/modules/components/member-window/components/member-board.js +63 -0
- package/lib/modules/components/member-window/components/mic-volume.d.ts +2 -0
- package/lib/modules/components/member-window/components/mic-volume.js +23 -0
- package/lib/modules/components/member-window/components/video-player/components/local-video-player.d.ts +4 -0
- package/lib/modules/components/member-window/components/video-player/components/local-video-player.js +40 -0
- package/lib/modules/components/member-window/components/video-player/components/remote-video-player.d.ts +8 -0
- package/lib/modules/components/member-window/components/video-player/components/remote-video-player.js +62 -0
- package/lib/modules/components/member-window/components/video-player/index.d.ts +9 -0
- package/lib/modules/components/member-window/components/video-player/index.js +38 -0
- package/lib/modules/components/member-window/types.d.ts +78 -0
- package/lib/modules/components/member-window/types.js +6 -0
- package/lib/modules/connection-gateway/components/tabs/index.js +2 -1
- package/lib/modules/control-bar/components/meeting-details/index.js +7 -15
- package/lib/modules/control-bar/components/more-actions/index.js +5 -15
- package/lib/modules/dialog/components/system-preference/assets/bg1.png +0 -0
- package/lib/modules/dialog/components/system-preference/assets/bg2.png +0 -0
- package/lib/modules/dialog/components/system-preference/assets/fcr_png_host.png +0 -0
- package/lib/modules/dialog/components/widget/electron.d.ts +5 -0
- package/lib/modules/dialog/components/widget/electron.js +41 -0
- package/lib/modules/dialog/components/widget/index.d.ts +6 -0
- package/lib/modules/dialog/components/widget/index.js +41 -0
- package/lib/modules/dialog/type.d.ts +84 -0
- package/lib/modules/dialog/type.js +6 -0
- package/lib/modules/invite/components/pstn-invite.js +4 -13
- package/lib/modules/invite/pstn-invite.js +7 -9
- package/lib/modules/invite/store.d.ts +2 -0
- package/lib/modules/invite/store.js +6 -0
- package/lib/modules/invite/voip-invite.js +5 -6
- package/lib/modules/layout/member-window/index.css +116 -18
- package/lib/modules/layout/member-window/index.d.ts +10 -3
- package/lib/modules/layout/member-window/index.js +227 -115
- package/lib/modules/participant/attendee/index.css +0 -51
- package/lib/modules/participant/attendee/index.d.ts +8 -5
- package/lib/modules/participant/attendee/index.js +61 -15
- package/lib/modules/participant/components/attendee/components/interpreter-tag/index.d.ts +3 -0
- package/lib/modules/participant/components/attendee/components/interpreter-tag/index.js +48 -0
- package/lib/modules/participant/components/confirm-input/index.d.ts +6 -0
- package/lib/modules/participant/components/confirm-input/index.js +49 -0
- package/lib/modules/participant/components/drop-menu/util.d.ts +5 -0
- package/lib/modules/participant/components/drop-menu/util.js +28 -0
- package/lib/modules/participant/components/participants/components/footer/components/buttons.d.ts +6 -0
- package/lib/modules/participant/components/participants/components/footer/components/buttons.js +52 -0
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.css +60 -0
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.d.ts +2 -0
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.js +166 -0
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/util.d.ts +5 -0
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/util.js +28 -0
- package/lib/modules/participant/components/participants/components/footer/components/footer/index.css +13 -0
- package/lib/modules/participant/components/participants/components/footer/components/footer/index.d.ts +5 -0
- package/lib/modules/participant/components/participants/components/footer/components/footer/index.js +242 -0
- package/lib/modules/participant/components/participants/components/footer/index.d.ts +5 -0
- package/lib/modules/participant/components/participants/components/footer/index.js +47 -0
- package/lib/modules/participant/components/participants/components/merge/index.d.ts +11 -0
- package/lib/modules/participant/components/participants/components/merge/index.js +49 -0
- package/lib/modules/participant/components/participants/components/participants/components/attendee/index.css +191 -0
- package/lib/modules/participant/components/participants/components/participants/components/attendee/index.d.ts +4 -0
- package/lib/modules/participant/components/participants/components/participants/components/attendee/index.js +204 -0
- package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.css +49 -0
- package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.d.ts +5 -0
- package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.js +219 -0
- package/lib/modules/participant/components/participants/components/participants/components/user-row/index.d.ts +5 -0
- package/lib/modules/participant/components/participants/components/participants/components/user-row/index.js +70 -0
- package/lib/modules/participant/components/participants/components/participants/index.css +104 -0
- package/lib/modules/participant/components/participants/components/participants/index.d.ts +3 -0
- package/lib/modules/participant/components/participants/components/participants/index.js +110 -0
- package/lib/modules/participant/components/participants/components/render-tab/index.d.ts +2 -0
- package/lib/modules/participant/components/participants/components/render-tab/index.js +49 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/interpreter-tag/index.d.ts +3 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/interpreter-tag/index.js +48 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/microphone-indicator/index.d.ts +6 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/microphone-indicator/index.js +28 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/user-avatar/index.d.ts +7 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/user-avatar/index.js +39 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.css +69 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.d.ts +5 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.js +135 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/audio-button/index.d.ts +7 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/audio-button/index.js +31 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-actions-popover/index.d.ts +12 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-actions-popover/index.js +82 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-to-mainroom-button/index.d.ts +4 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-to-mainroom-button/index.js +26 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/index.d.ts +2 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/index.js +75 -0
- package/lib/modules/participant/components/participants/components/render-user/index.d.ts +5 -0
- package/lib/modules/participant/components/participants/components/render-user/index.js +21 -0
- package/lib/modules/participant/components/participants/render-tab/index.d.ts +2 -0
- package/lib/modules/participant/components/participants/render-tab/index.js +49 -0
- package/lib/modules/participant/components/participants/render-user/index.d.ts +5 -0
- package/lib/modules/participant/components/participants/render-user/index.js +21 -0
- package/lib/modules/participant/components/participants/types.d.ts +96 -0
- package/lib/modules/participant/components/participants/types.js +37 -0
- package/lib/modules/participant/components/user-action/audio-button/index.d.ts +7 -0
- package/lib/modules/participant/components/user-action/audio-button/index.js +31 -0
- package/lib/modules/participant/components/user-action/move-actions-popover/index.d.ts +12 -0
- package/lib/modules/participant/components/user-action/move-actions-popover/index.js +82 -0
- package/lib/modules/participant/components/user-action/move-to-mainroom-button/index.d.ts +4 -0
- package/lib/modules/participant/components/user-action/move-to-mainroom-button/index.js +26 -0
- package/lib/modules/share-screen/selection/index.css +4 -0
- package/lib/modules/share-screen/selection/index.js +126 -129
- package/lib/modules/share-screen/share-state-bar/index.js +1 -1
- package/lib/modules/state-bar/meeting-details.js +29 -34
- package/lib/modules/video-window/components/deviceState/index.d.ts +7 -0
- package/lib/modules/video-window/components/deviceState/index.js +75 -0
- package/lib/modules/video-window/components/members/index.css +51 -0
- package/lib/modules/video-window/components/members/index.d.ts +2 -0
- package/lib/modules/video-window/components/members/index.js +130 -0
- package/lib/modules/video-window/components/speaking/index.css +86 -0
- package/lib/modules/video-window/components/speaking/index.d.ts +3 -0
- package/lib/modules/video-window/components/speaking/index.js +48 -0
- package/lib/modules/video-window/components/topControl/index.css +35 -0
- package/lib/modules/video-window/components/topControl/index.d.ts +3 -0
- package/lib/modules/video-window/components/topControl/index.js +79 -0
- package/lib/modules/widget/index.css +17 -0
- package/lib/modules/widget/index.d.ts +10 -0
- package/lib/modules/widget/index.js +114 -0
- package/lib/modules/widget/sdk.d.ts +30 -0
- package/lib/modules/widget/sdk.js +221 -0
- package/lib/modules/widget/store.d.ts +14 -0
- package/lib/modules/widget/store.js +28 -0
- package/lib/modules/widget/type.d.ts +155 -0
- package/lib/modules/widget/type.js +6 -0
- package/lib/modules/widget/view.d.ts +2 -0
- package/lib/modules/widget/view.js +47 -0
- package/lib/modules/widget/web-widget.d.ts +29 -0
- package/lib/modules/widget/web-widget.js +234 -0
- package/lib/providers/ability-provider.d.ts +24 -0
- package/lib/providers/ability-provider.js +36 -0
- package/lib/providers/widget-provider.d.ts +44 -0
- package/lib/providers/widget-provider.js +167 -0
- package/lib/schema.d.ts +114 -0
- package/lib/schema.js +77 -0
- package/lib/shared-data-source/member-data.d.ts +126 -0
- package/lib/shared-data-source/member-data.js +465 -0
- package/lib/translations/enUS.d.ts +5 -0
- package/lib/translations/enUS.js +9 -3
- package/lib/translations/zhCN.d.ts +5 -0
- package/lib/translations/zhCN.js +13 -7
- package/lib/utilities/extract.d.ts +1 -1
- package/lib/utilities/logger.d.ts +8 -0
- package/lib/utilities/logger.js +42 -0
- package/lib/utilities/meeting-detail.d.ts +2 -0
- package/lib/utilities/meeting-detail.js +56 -0
- package/lib/utilities/validate-params.d.ts +2 -0
- package/lib/utilities/validate-params.js +16 -0
- package/lib/widget-sdk.d.ts +2 -0
- package/lib/widget-sdk.js +13 -0
- package/package.json +5 -5
|
@@ -53,25 +53,24 @@ require("core-js/modules/esnext.typed-array.filter-reject.js");
|
|
|
53
53
|
require("core-js/modules/esnext.typed-array.group-by.js");
|
|
54
54
|
require("core-js/modules/esnext.typed-array.to-spliced.js");
|
|
55
55
|
require("core-js/modules/esnext.typed-array.unique-by.js");
|
|
56
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
57
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
56
58
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
57
59
|
var _card = require("agora-ui-foundation/lib/components/card");
|
|
58
60
|
var _type = require("agora-rte-sdk/lib/core/rtc/type");
|
|
59
61
|
var _button = require("agora-ui-foundation/lib/components/button");
|
|
60
62
|
var _shareAudio = require("agora-ui-foundation/lib/components/room-screen-share-state-bar/share-audio");
|
|
61
|
-
var _tabs = require("agora-ui-foundation/lib/components/tabs");
|
|
62
|
-
var _windowsControl = require("agora-ui-foundation/lib/components/windows-control");
|
|
63
63
|
var _debounce = _interopRequireDefault(require("lodash/debounce"));
|
|
64
64
|
var _mobxReact = require("mobx-react");
|
|
65
65
|
var _react = require("react");
|
|
66
66
|
var _tools = require("../../../utilities/tools");
|
|
67
|
-
var _platform = require("../../../utilities/platform");
|
|
68
67
|
var _type2 = require("../../../type");
|
|
69
68
|
var _tooltip = require("agora-ui-foundation/lib/components/tooltip");
|
|
70
69
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
71
70
|
require("./index.css");
|
|
72
71
|
var _store = require("../store");
|
|
73
|
-
var
|
|
74
|
-
var
|
|
72
|
+
var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
73
|
+
var _tabFrame = _interopRequireDefault(require("../../components/tab-frame"));
|
|
75
74
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
76
75
|
var ShareSelectionWindowType = /*#__PURE__*/function (ShareSelectionWindowType) {
|
|
77
76
|
ShareSelectionWindowType["BASIC"] = "basic";
|
|
@@ -89,38 +88,56 @@ var ShareSelection = exports.ShareSelection = (0, _mobxReact.observer)(function
|
|
|
89
88
|
boardOwnerUser = _useContext.boardOwnerUser,
|
|
90
89
|
localUser = _useContext.localUser,
|
|
91
90
|
localUserRole = _useContext.localUserRole,
|
|
92
|
-
title = _useContext.title,
|
|
93
|
-
localMicrophoneMute = _useContext.localMicrophoneMute,
|
|
94
91
|
handleChooseScreen = _useContext.handleChooseScreen,
|
|
95
92
|
handleStartShare = _useContext.handleStartShare,
|
|
96
93
|
setShareWithAudioState = _useContext.setShareWithAudioState,
|
|
97
94
|
setShareAudioProcessingChannel = _useContext.setShareAudioProcessingChannel,
|
|
98
95
|
closeShareScreenSelection = _useContext.closeShareScreenSelection,
|
|
99
96
|
handlerBoardShareStop = _useContext.handlerBoardShareStop,
|
|
100
|
-
|
|
97
|
+
hasLoopbackDevice = _useContext.hasLoopbackDevice,
|
|
98
|
+
openRelaunchTipsDialog = _useContext.openRelaunchTipsDialog;
|
|
101
99
|
var _useState = (0, _react.useState)(false),
|
|
102
100
|
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
103
101
|
loading = _useState2[0],
|
|
104
102
|
setLoading = _useState2[1];
|
|
105
|
-
var
|
|
106
|
-
_useState4 = (0, _slicedToArray2["default"])(_useState3, 2),
|
|
107
|
-
showOpenMicTips = _useState4[0],
|
|
108
|
-
setShowOpenMicTips = _useState4[1];
|
|
103
|
+
var t = (0, _i18n.useI18n)();
|
|
109
104
|
(0, _react.useEffect)(function () {
|
|
110
105
|
setLoading(false);
|
|
111
106
|
return function () {
|
|
112
107
|
setLoading(false);
|
|
113
108
|
};
|
|
114
109
|
}, []);
|
|
115
|
-
var toggleShareWithAudio = function
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
110
|
+
var toggleShareWithAudio = /*#__PURE__*/function () {
|
|
111
|
+
var _ref = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(target) {
|
|
112
|
+
var hideTips;
|
|
113
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
114
|
+
while (1) switch (_context.prev = _context.next) {
|
|
115
|
+
case 0:
|
|
116
|
+
if (target) {
|
|
117
|
+
_context.next = 3;
|
|
118
|
+
break;
|
|
119
|
+
}
|
|
120
|
+
setShareWithAudioState(target);
|
|
121
|
+
return _context.abrupt("return");
|
|
122
|
+
case 3:
|
|
123
|
+
_context.next = 5;
|
|
124
|
+
return hasLoopbackDevice();
|
|
125
|
+
case 5:
|
|
126
|
+
hideTips = _context.sent;
|
|
127
|
+
if (!hideTips) {
|
|
128
|
+
openRelaunchTipsDialog();
|
|
129
|
+
}
|
|
130
|
+
setShareWithAudioState(target);
|
|
131
|
+
case 8:
|
|
132
|
+
case "end":
|
|
133
|
+
return _context.stop();
|
|
134
|
+
}
|
|
135
|
+
}, _callee);
|
|
136
|
+
}));
|
|
137
|
+
return function toggleShareWithAudio(_x) {
|
|
138
|
+
return _ref.apply(this, arguments);
|
|
139
|
+
};
|
|
140
|
+
}();
|
|
124
141
|
var handleOkClick = (0, _react.useCallback)((0, _debounce["default"])(function () {
|
|
125
142
|
if (currentSelection) {
|
|
126
143
|
setLoading(true);
|
|
@@ -130,120 +147,100 @@ var ShareSelection = exports.ShareSelection = (0, _mobxReact.observer)(function
|
|
|
130
147
|
var transI18n = (0, _i18n.useI18n)();
|
|
131
148
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
132
149
|
className: "share-selection-window",
|
|
133
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
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
|
-
onClick: handlerBoardShareStop,
|
|
188
|
-
children: transI18n('fmt_screenshare_button_stopshare')
|
|
189
|
-
})
|
|
190
|
-
}) : screen.image
|
|
191
|
-
}, "screen-".concat(screen.id));
|
|
192
|
-
})
|
|
193
|
-
}), !!applicationCaptureSources.length && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
194
|
-
className: "frc-flex",
|
|
195
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
196
|
-
style: {
|
|
197
|
-
marginTop: '38px'
|
|
198
|
-
},
|
|
199
|
-
children: transI18n('fmt_uimanager_labels_Application')
|
|
200
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
201
|
-
className: "share-selection-window__share-application share-selection-window__share-card",
|
|
202
|
-
children: applicationCaptureSources.map(function (application) {
|
|
203
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_card.FcrCard, {
|
|
204
|
-
active: currentSelectionType === _type.AgoraRtcScreenCaptureType.WINDOW && application.id === currentSelection,
|
|
205
|
-
onCardClick: function onCardClick() {
|
|
206
|
-
handleChooseScreen(application.id, _type.AgoraRtcScreenCaptureType.WINDOW);
|
|
207
|
-
},
|
|
208
|
-
onDoubleClickCard: function onDoubleClickCard() {
|
|
209
|
-
handleStartShare(application.id, _type.AgoraRtcScreenCaptureType.WINDOW, shareWithAudio);
|
|
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));
|
|
198
|
+
})
|
|
199
|
+
}), !!applicationCaptureSources.length && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
200
|
+
className: "frc-flex",
|
|
201
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
202
|
+
style: {
|
|
203
|
+
marginTop: '38px'
|
|
210
204
|
},
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
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));
|
|
219
227
|
})
|
|
220
|
-
}
|
|
221
|
-
})
|
|
222
|
-
})
|
|
223
|
-
}
|
|
228
|
+
})]
|
|
229
|
+
})]
|
|
230
|
+
})
|
|
231
|
+
}, {
|
|
232
|
+
label: transI18n('fmt_screenshare_window_tab_advanced'),
|
|
233
|
+
key: ShareSelectionWindowType.ADVANCED
|
|
234
|
+
}]
|
|
224
235
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
225
236
|
className: "share-selection-window__footer",
|
|
226
237
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
227
238
|
className: "share-selection-window__footer-action",
|
|
228
|
-
children: currentSelection.split('-')[0] !== 'whiteboard' && /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
},
|
|
234
|
-
placement: "top",
|
|
235
|
-
content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_openMicTips["default"], {
|
|
236
|
-
onCancel: function onCancel() {
|
|
237
|
-
return toggleShareWithAudio(false);
|
|
238
|
-
},
|
|
239
|
-
onOK: openMicAndCloseTips
|
|
240
|
-
}),
|
|
241
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_shareAudio.ShareAudio, {
|
|
242
|
-
shareWithAudio: shareWithAudio,
|
|
243
|
-
toggleShareWithAudio: toggleShareWithAudio,
|
|
244
|
-
currentAudioChannel: currentShareAudioProcessingChannel,
|
|
245
|
-
onSwitchAudioChannel: setShareAudioProcessingChannel
|
|
246
|
-
})
|
|
239
|
+
children: currentSelection.split('-')[0] !== 'whiteboard' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_shareAudio.ShareAudio, {
|
|
240
|
+
shareWithAudio: shareWithAudio,
|
|
241
|
+
toggleShareWithAudio: toggleShareWithAudio,
|
|
242
|
+
currentAudioChannel: currentShareAudioProcessingChannel,
|
|
243
|
+
onSwitchAudioChannel: setShareAudioProcessingChannel
|
|
247
244
|
})
|
|
248
245
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
|
|
249
246
|
disabled: currentSelection.split('-')[0] === 'whiteboard' && !!(boardOwnerUser !== null && boardOwnerUser !== void 0 && boardOwnerUser.userId) || loading,
|
|
@@ -13,9 +13,9 @@ var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
|
13
13
|
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
14
14
|
var _react = require("react");
|
|
15
15
|
var _reactRnd = require("react-rnd");
|
|
16
|
-
var _shareStateNav = require("../../../fragments/control-bar/share-state-nav");
|
|
17
16
|
require("./index.css");
|
|
18
17
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
18
|
+
var _shareStateNav = require("../../control-bar/components/share-state-nav");
|
|
19
19
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
20
|
var ShareStateBar = exports.ShareStateBar = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
21
21
|
var shareScreenBarRef = (0, _react.useRef)(null);
|
|
@@ -6,11 +6,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.MeetingDetails = void 0;
|
|
9
|
-
require("
|
|
9
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
|
+
require("core-js/modules/es.date.to-string.js");
|
|
10
11
|
require("core-js/modules/es.regexp.exec.js");
|
|
11
12
|
require("core-js/modules/es.string.replace.js");
|
|
12
13
|
require("core-js/modules/web.timers.js");
|
|
13
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
14
14
|
var _button = require("agora-ui-foundation/lib/components/button");
|
|
15
15
|
var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
16
16
|
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
@@ -23,6 +23,7 @@ var _store = require("./store");
|
|
|
23
23
|
require("./meeting-detail.css");
|
|
24
24
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
25
25
|
var _meetingTime = require("../../hooks/meeting-time");
|
|
26
|
+
var _meetingDetail2 = require("../../utilities/meeting-detail");
|
|
26
27
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
27
28
|
var CopyState = /*#__PURE__*/function (CopyState) {
|
|
28
29
|
CopyState[CopyState["COPYINIT"] = 1] = "COPYINIT";
|
|
@@ -31,13 +32,25 @@ var CopyState = /*#__PURE__*/function (CopyState) {
|
|
|
31
32
|
CopyState[CopyState["FAILED"] = 4] = "FAILED";
|
|
32
33
|
return CopyState;
|
|
33
34
|
}(CopyState || {});
|
|
35
|
+
var isNextDayAfterDuration = function isNextDayAfterDuration(startTimeStamp, duration) {
|
|
36
|
+
var futureTimestamp = startTimeStamp + duration;
|
|
37
|
+
var currentDate = new Date(startTimeStamp);
|
|
38
|
+
var futureDate = new Date(futureTimestamp);
|
|
39
|
+
var currentYear = currentDate.getFullYear();
|
|
40
|
+
var currentMonth = currentDate.getMonth();
|
|
41
|
+
var currentDay = currentDate.getDate();
|
|
42
|
+
var futureYear = futureDate.getFullYear();
|
|
43
|
+
var futureMonth = futureDate.getMonth();
|
|
44
|
+
var futureDay = futureDate.getDate();
|
|
45
|
+
return futureYear > currentYear || futureYear === currentYear && futureMonth > currentMonth || futureYear === currentYear && futureMonth === currentMonth && futureDay > currentDay;
|
|
46
|
+
};
|
|
34
47
|
var MeetingDetails = exports.MeetingDetails = (0, _mobxReact.observer)(function () {
|
|
35
48
|
var t = (0, _i18n.useI18n)();
|
|
36
49
|
var copyTimer = null;
|
|
37
50
|
var _useState = (0, _react.useState)({
|
|
38
51
|
copyState: CopyState.COPYINIT,
|
|
39
52
|
copyIcon: _type.FcrIconType.FCR_LINK,
|
|
40
|
-
copyText: t('
|
|
53
|
+
copyText: t('fmt_popup_button_meetinginfor')
|
|
41
54
|
}),
|
|
42
55
|
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
43
56
|
copyInfoState = _useState2[0],
|
|
@@ -62,28 +75,8 @@ var MeetingDetails = exports.MeetingDetails = (0, _mobxReact.observer)(function
|
|
|
62
75
|
}, []);
|
|
63
76
|
if (!roomInfo || !localUser) return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {});
|
|
64
77
|
var displayMeetingId = (0, _tools.renderMeetingId)(meetingId, roomInfo.roomId);
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
// reason1: localUser.userName,
|
|
68
|
-
// reason2: roomInfo?.roomName,
|
|
69
|
-
// // reason3: dayjs(scheduleInfo?.startTime ?? 0).format('YYYY-MM-DD HH:mm:ss'),
|
|
70
|
-
// reason3: '',
|
|
71
|
-
// reason4: shareLink,
|
|
72
|
-
// reason5: displayMeetingId,
|
|
73
|
-
// reason6: !!password ? `${t('fmt_meeting_creatpage_label_password')}: ${password}` : '',
|
|
74
|
-
// });
|
|
75
|
-
|
|
76
|
-
var detailText = "\n".concat(t('fmt_link_invitation', {
|
|
77
|
-
reason1: localUser.userName
|
|
78
|
-
}), "\n").concat(t('fmt_link_invitation_topic', {
|
|
79
|
-
reason1: roomInfo.roomName
|
|
80
|
-
}), "\n").concat(t('fmt_link_invitation_link', {
|
|
81
|
-
reason1: shareLink
|
|
82
|
-
}), "\n").concat(t('fmt_link_invitation_id', {
|
|
83
|
-
reason1: displayMeetingId
|
|
84
|
-
}), "\n").concat(!!password ? t('fmt_link_invitation_password', {
|
|
85
|
-
reason1: password
|
|
86
|
-
}) : '').replace(/^\s*\n/gm, '');
|
|
78
|
+
var duration = (scheduleInfo === null || scheduleInfo === void 0 ? void 0 : scheduleInfo.duration) || 0;
|
|
79
|
+
var detailText = (0, _meetingDetail2.generateMeetingDetail)(localUser.userName, roomInfo.roomName, (0, _meetingDetail2.generateMeetingDuration)((scheduleInfo === null || scheduleInfo === void 0 ? void 0 : scheduleInfo.startTime) || 0, duration), shareLink, displayMeetingId, password !== null && password !== void 0 ? password : '');
|
|
87
80
|
function handleCopyMeetingId(copyContent) {
|
|
88
81
|
if (!copyContent) return;
|
|
89
82
|
var content = meetingId ? copyContent : copyContent.replace(/\s+/g, '');
|
|
@@ -161,7 +154,7 @@ var MeetingDetails = exports.MeetingDetails = (0, _mobxReact.observer)(function
|
|
|
161
154
|
setCopyInfoState({
|
|
162
155
|
copyState: CopyState.COPYINIT,
|
|
163
156
|
copyIcon: _type.FcrIconType.FCR_LINK,
|
|
164
|
-
copyText: t('
|
|
157
|
+
copyText: t('fmt_popup_button_meetinginfor')
|
|
165
158
|
});
|
|
166
159
|
}, 1000);
|
|
167
160
|
}
|
|
@@ -195,30 +188,32 @@ var MeetingDetails = exports.MeetingDetails = (0, _mobxReact.observer)(function
|
|
|
195
188
|
size: 20
|
|
196
189
|
})
|
|
197
190
|
})]
|
|
198
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
191
|
+
}), !!password && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
199
192
|
className: "meeting-details__content-share-link",
|
|
200
193
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
201
|
-
children: t('
|
|
194
|
+
children: t('fmt_meeting_mainwindow_topbar_left_popup_label_meeting_password', {
|
|
195
|
+
reason1: ''
|
|
196
|
+
})
|
|
202
197
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
203
|
-
children:
|
|
198
|
+
children: password
|
|
204
199
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
205
200
|
onClick: function onClick() {
|
|
206
|
-
return
|
|
201
|
+
return handleCopyMeetingPassword(password !== null && password !== void 0 ? password : '');
|
|
207
202
|
},
|
|
208
203
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
209
204
|
type: _type.FcrIconType.FCR_COPY_ICON,
|
|
210
205
|
size: 20
|
|
211
206
|
})
|
|
212
207
|
})]
|
|
213
|
-
}),
|
|
208
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
214
209
|
className: "meeting-details__content-share-link",
|
|
215
210
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
216
|
-
children: t('
|
|
211
|
+
children: t('fmt_sharing_label_invitationlink')
|
|
217
212
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
218
|
-
children:
|
|
213
|
+
children: shareLink
|
|
219
214
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
220
215
|
onClick: function onClick() {
|
|
221
|
-
return
|
|
216
|
+
return handlerCopyMeetingShareLink(shareLink);
|
|
222
217
|
},
|
|
223
218
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
224
219
|
type: _type.FcrIconType.FCR_COPY_ICON,
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DeviceStateProps } from '../../type';
|
|
2
|
+
export declare const DeviceState: ({ connectType, openConnection, microphoneVolumeLevel, enableMicrophone, microphoneEnabled, }: DeviceStateProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const AudioRecordinDeviceIcon: ({ size, micEnabled, volume, }: {
|
|
4
|
+
size?: number;
|
|
5
|
+
micEnabled?: boolean;
|
|
6
|
+
volume?: number;
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.DeviceState = exports.AudioRecordinDeviceIcon = void 0;
|
|
8
|
+
var _mobxReact = require("mobx-react");
|
|
9
|
+
var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
10
|
+
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
11
|
+
var _microphoneIndicator = require("agora-ui-foundation/lib/components/microphone-indicator");
|
|
12
|
+
var _type2 = require("../../../../type");
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
+
var DeviceState = exports.DeviceState = (0, _mobxReact.observer)(function (_ref) {
|
|
15
|
+
var connectType = _ref.connectType,
|
|
16
|
+
openConnection = _ref.openConnection,
|
|
17
|
+
microphoneVolumeLevel = _ref.microphoneVolumeLevel,
|
|
18
|
+
enableMicrophone = _ref.enableMicrophone,
|
|
19
|
+
microphoneEnabled = _ref.microphoneEnabled;
|
|
20
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
21
|
+
children: [connectType === _type2.FcrUIConnectType.NONE && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
22
|
+
onClick: function onClick() {
|
|
23
|
+
return openConnection('computer');
|
|
24
|
+
},
|
|
25
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
26
|
+
type: _type.FcrIconType.FCR_WEB_CONNECTSOUND,
|
|
27
|
+
size: 32,
|
|
28
|
+
colors: {
|
|
29
|
+
iconPrimary: "var(--fcr_web_ui_scene_mainicon1)",
|
|
30
|
+
iconSecondary: 'var(--fcr_ui_scene_ramp_green6)'
|
|
31
|
+
}
|
|
32
|
+
})
|
|
33
|
+
}), connectType === _type2.FcrUIConnectType.COMPUTER && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
34
|
+
onClick: function onClick() {
|
|
35
|
+
enableMicrophone(!microphoneEnabled);
|
|
36
|
+
},
|
|
37
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(AudioRecordinDeviceIcon, {
|
|
38
|
+
micEnabled: microphoneEnabled,
|
|
39
|
+
volume: microphoneVolumeLevel
|
|
40
|
+
})
|
|
41
|
+
}), connectType === _type2.FcrUIConnectType.PHONE && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
42
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
43
|
+
type: microphoneVolumeLevel > 20 ? _type.FcrIconType.FCR_PHONECALL3 : microphoneVolumeLevel > 10 ? _type.FcrIconType.FCR_PHONECALL2 : _type.FcrIconType.FCR_PHONECALL1,
|
|
44
|
+
size: 32,
|
|
45
|
+
colors: {
|
|
46
|
+
iconPrimary: 'var(--fcr_ui_scene_ramp_green6)'
|
|
47
|
+
}
|
|
48
|
+
})
|
|
49
|
+
})]
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
var AudioRecordinDeviceIcon = exports.AudioRecordinDeviceIcon = function AudioRecordinDeviceIcon(_ref2) {
|
|
53
|
+
var _ref2$size = _ref2.size,
|
|
54
|
+
size = _ref2$size === void 0 ? 32 : _ref2$size,
|
|
55
|
+
_ref2$micEnabled = _ref2.micEnabled,
|
|
56
|
+
micEnabled = _ref2$micEnabled === void 0 ? false : _ref2$micEnabled,
|
|
57
|
+
_ref2$volume = _ref2.volume,
|
|
58
|
+
volume = _ref2$volume === void 0 ? 0 : _ref2$volume;
|
|
59
|
+
var muteColor = {
|
|
60
|
+
iconPrimary: "var(--fcr_ui_scene_ramp_red6)",
|
|
61
|
+
iconSecondary: 'var(--fcr_ui_scene_ramp_red6)'
|
|
62
|
+
};
|
|
63
|
+
return !micEnabled ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
64
|
+
type: _type.FcrIconType.FCR_NOMUTE,
|
|
65
|
+
colors: muteColor,
|
|
66
|
+
size: size
|
|
67
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
68
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_microphoneIndicator.MicrophoneIndicator, {
|
|
69
|
+
pathColor: "var(--fcr_web_ui_scene_mainicon1)",
|
|
70
|
+
stopStartColor: "var(--fcr_web_ui_scene_mainicon1)",
|
|
71
|
+
size: size,
|
|
72
|
+
voicePercent: volume
|
|
73
|
+
})
|
|
74
|
+
});
|
|
75
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
.fcr-video-window-members {
|
|
2
|
+
gap: 0;
|
|
3
|
+
user-select: none;
|
|
4
|
+
position: relative;
|
|
5
|
+
width: 100%;
|
|
6
|
+
min-height: 144px;
|
|
7
|
+
flex: 1;
|
|
8
|
+
display: none;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
align-items: center;
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
padding: 0 1px;
|
|
13
|
+
border: 1px solid transparent;
|
|
14
|
+
border-top: none;
|
|
15
|
+
background-color: var(--fcr_web_ui_scene_fill5);
|
|
16
|
+
border-radius: 0 0 var(--fcr_cornerradius_m) var(--fcr_cornerradius_m);
|
|
17
|
+
}
|
|
18
|
+
.fcr-video-window-members .fcr-video-window-members-item {
|
|
19
|
+
width: 100%;
|
|
20
|
+
min-height: 144px;
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
flex: 1;
|
|
23
|
+
box-sizing: border-box;
|
|
24
|
+
}
|
|
25
|
+
.fcr-video-window-members .fcr-video-window-members-item_last {
|
|
26
|
+
border-radius: 0 0 var(--fcr_cornerradius_s) var(--fcr_cornerradius_s);
|
|
27
|
+
}
|
|
28
|
+
.fcr-video-window-members .fcr-video-window-members-item_last .fcr-member-window-excitation {
|
|
29
|
+
border-radius: 0 0 var(--fcr_cornerradius_s) var(--fcr_cornerradius_s);
|
|
30
|
+
}
|
|
31
|
+
.fcr-video-window-members.fcr-video-window-members_mediapreview {
|
|
32
|
+
display: flex;
|
|
33
|
+
border: 1px solid var(--fcr_ui_scene_line1);
|
|
34
|
+
border-top: 0;
|
|
35
|
+
}
|
|
36
|
+
.fcr-video-window-members.fcr-video-window-members_mediapreviews {
|
|
37
|
+
border: 1px solid var(--fcr_ui_scene_line1);
|
|
38
|
+
border-top: 0;
|
|
39
|
+
display: flex;
|
|
40
|
+
}
|
|
41
|
+
.fcr-video-window-members-resize {
|
|
42
|
+
position: absolute;
|
|
43
|
+
left: 0;
|
|
44
|
+
bottom: 0;
|
|
45
|
+
width: 100%;
|
|
46
|
+
display: none;
|
|
47
|
+
justify-content: space-between;
|
|
48
|
+
}
|
|
49
|
+
.fcr-video-window-members-resize_active {
|
|
50
|
+
display: flex;
|
|
51
|
+
}
|