fcr-ui-scene-mobile 3.4.0
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/assets/ground_glass_bg.png +0 -0
- package/lib/base.d.ts +11 -0
- package/lib/base.js +39 -0
- package/lib/common/device-store.d.ts +86 -0
- package/lib/common/device-store.js +642 -0
- package/lib/common/device-stream-store.d.ts +26 -0
- package/lib/common/device-stream-store.js +298 -0
- package/lib/common/event-store.d.ts +124 -0
- package/lib/common/event-store.js +249 -0
- package/lib/common/global-context.d.ts +11 -0
- package/lib/common/global-context.js +9 -0
- package/lib/common/member-list-data-source.d.ts +28 -0
- package/lib/common/member-list-data-source.js +305 -0
- package/lib/common/participant-store.d.ts +195 -0
- package/lib/common/participant-store.js +1577 -0
- package/lib/common/security-store.d.ts +119 -0
- package/lib/common/security-store.js +948 -0
- package/lib/common/setting-store.d.ts +181 -0
- package/lib/common/setting-store.js +797 -0
- package/lib/common/type.d.ts +73 -0
- package/lib/common/type.js +22 -0
- package/lib/config/default-config.d.ts +32 -0
- package/lib/config/default-config.js +39 -0
- package/lib/config/setting-config.d.ts +16 -0
- package/lib/config/setting-config.js +17 -0
- package/lib/creator.d.ts +10 -0
- package/lib/creator.js +49 -0
- package/lib/global.d.ts +8 -0
- package/lib/hooks/meeting-time.d.ts +15 -0
- package/lib/hooks/meeting-time.js +92 -0
- package/lib/hooks/useIsNodePresent.d.ts +4 -0
- package/lib/hooks/useIsNodePresent.js +53 -0
- package/lib/hooks/useOnRefMount.d.ts +2 -0
- package/lib/hooks/useOnRefMount.js +27 -0
- package/lib/index.d.ts +6 -0
- package/lib/index.js +50 -0
- package/lib/mobile-global.css +28 -0
- package/lib/modules/action-bar/bottom-icons.d.ts +17 -0
- package/lib/modules/action-bar/bottom-icons.js +160 -0
- package/lib/modules/action-bar/context.d.ts +2 -0
- package/lib/modules/action-bar/context.js +9 -0
- package/lib/modules/action-bar/index.css +33 -0
- package/lib/modules/action-bar/index.d.ts +27 -0
- package/lib/modules/action-bar/index.js +46 -0
- package/lib/modules/action-bar/member-list-popup/attendee/index.css +130 -0
- package/lib/modules/action-bar/member-list-popup/attendee/index.d.ts +19 -0
- package/lib/modules/action-bar/member-list-popup/attendee/index.js +252 -0
- package/lib/modules/action-bar/member-list-popup/attendee/list.d.ts +1 -0
- package/lib/modules/action-bar/member-list-popup/attendee/list.js +82 -0
- package/lib/modules/action-bar/member-list-popup/index.css +35 -0
- package/lib/modules/action-bar/member-list-popup/index.d.ts +7 -0
- package/lib/modules/action-bar/member-list-popup/index.js +40 -0
- package/lib/modules/action-bar/member-list-popup/participant-more-actions/index.css +0 -0
- package/lib/modules/action-bar/member-list-popup/participant-more-actions/index.d.ts +12 -0
- package/lib/modules/action-bar/member-list-popup/participant-more-actions/index.js +58 -0
- package/lib/modules/action-bar/more-popup/index.css +71 -0
- package/lib/modules/action-bar/more-popup/index.d.ts +2 -0
- package/lib/modules/action-bar/more-popup/index.js +126 -0
- package/lib/modules/action-bar/store.d.ts +196 -0
- package/lib/modules/action-bar/store.js +1425 -0
- package/lib/modules/action-bar/type.d.ts +6 -0
- package/lib/modules/action-bar/type.js +13 -0
- package/lib/modules/action-bar/view.d.ts +2 -0
- package/lib/modules/action-bar/view.js +75 -0
- package/lib/modules/audio-stream/ index.d.ts +19 -0
- package/lib/modules/audio-stream/ index.js +109 -0
- package/lib/modules/audio-stream/index.d.ts +25 -0
- package/lib/modules/audio-stream/index.js +135 -0
- package/lib/modules/chat/chat-bar/index.css +97 -0
- package/lib/modules/chat/chat-bar/index.d.ts +12 -0
- package/lib/modules/chat/chat-bar/index.js +129 -0
- package/lib/modules/chat/chat-notification/index.css +71 -0
- package/lib/modules/chat/chat-notification/index.d.ts +3 -0
- package/lib/modules/chat/chat-notification/index.js +75 -0
- package/lib/modules/chat/chat-select/index.css +183 -0
- package/lib/modules/chat/chat-select/index.d.ts +12 -0
- package/lib/modules/chat/chat-select/index.js +223 -0
- package/lib/modules/chat/contex.d.ts +2 -0
- package/lib/modules/chat/contex.js +9 -0
- package/lib/modules/chat/demo-wrapper.d.ts +1 -0
- package/lib/modules/chat/demo-wrapper.js +42 -0
- package/lib/modules/chat/index.css +108 -0
- package/lib/modules/chat/index.d.ts +28 -0
- package/lib/modules/chat/index.dev.d.ts +1 -0
- package/lib/modules/chat/index.dev.js +58 -0
- package/lib/modules/chat/index.js +208 -0
- package/lib/modules/chat/message-list.d.ts +22 -0
- package/lib/modules/chat/message-list.js +617 -0
- package/lib/modules/chat/mock.d.ts +2 -0
- package/lib/modules/chat/mock.js +283 -0
- package/lib/modules/chat/store.d.ts +183 -0
- package/lib/modules/chat/store.js +1101 -0
- package/lib/modules/chat/util.d.ts +6 -0
- package/lib/modules/chat/util.js +69 -0
- package/lib/modules/chat/view.d.ts +11 -0
- package/lib/modules/chat/view.js +414 -0
- package/lib/modules/layout/bottom-drawer/index.css +34 -0
- package/lib/modules/layout/bottom-drawer/index.d.ts +3 -0
- package/lib/modules/layout/bottom-drawer/index.js +129 -0
- package/lib/modules/layout/components/Layout.d.ts +1 -0
- package/lib/modules/layout/components/Layout.js +98 -0
- package/lib/modules/layout/components/equip-request-popup/index.css +30 -0
- package/lib/modules/layout/components/equip-request-popup/index.d.ts +3 -0
- package/lib/modules/layout/components/equip-request-popup/index.js +78 -0
- package/lib/modules/layout/components/index.css +78 -0
- package/lib/modules/layout/components/index.d.ts +2 -0
- package/lib/modules/layout/components/index.js +25 -0
- package/lib/modules/layout/context.d.ts +2 -0
- package/lib/modules/layout/context.js +9 -0
- package/lib/modules/layout/drawer-header/index.css +27 -0
- package/lib/modules/layout/drawer-header/index.d.ts +10 -0
- package/lib/modules/layout/drawer-header/index.js +54 -0
- package/lib/modules/layout/index.css +22 -0
- package/lib/modules/layout/index.d.ts +8 -0
- package/lib/modules/layout/index.js +47 -0
- package/lib/modules/layout/store.d.ts +59 -0
- package/lib/modules/layout/store.js +379 -0
- package/lib/modules/layout/type.d.ts +65 -0
- package/lib/modules/layout/type.js +52 -0
- package/lib/modules/layout/view.d.ts +2 -0
- package/lib/modules/layout/view.js +10 -0
- package/lib/modules/member-layout/context.d.ts +2 -0
- package/lib/modules/member-layout/context.js +9 -0
- package/lib/modules/member-layout/data.d.ts +2 -0
- package/lib/modules/member-layout/data.js +304 -0
- package/lib/modules/member-layout/grid/index.css +98 -0
- package/lib/modules/member-layout/grid/index.d.ts +21 -0
- package/lib/modules/member-layout/grid/index.js +316 -0
- package/lib/modules/member-layout/index.css +88 -0
- package/lib/modules/member-layout/index.d.ts +8 -0
- package/lib/modules/member-layout/index.js +45 -0
- package/lib/modules/member-layout/share-toast/index.css +30 -0
- package/lib/modules/member-layout/share-toast/index.d.ts +5 -0
- package/lib/modules/member-layout/share-toast/index.js +43 -0
- package/lib/modules/member-layout/speaker/index.css +30 -0
- package/lib/modules/member-layout/speaker/index.d.ts +9 -0
- package/lib/modules/member-layout/speaker/index.js +28 -0
- package/lib/modules/member-layout/store.d.ts +70 -0
- package/lib/modules/member-layout/store.js +479 -0
- package/lib/modules/member-layout/user/index.css +121 -0
- package/lib/modules/member-layout/user/index.d.ts +34 -0
- package/lib/modules/member-layout/user/index.js +355 -0
- package/lib/modules/member-layout/user/types.d.ts +16 -0
- package/lib/modules/member-layout/user/types.js +6 -0
- package/lib/modules/member-layout/view.d.ts +2 -0
- package/lib/modules/member-layout/view.js +225 -0
- package/lib/modules/state-bar/context.d.ts +2 -0
- package/lib/modules/state-bar/context.js +9 -0
- package/lib/modules/state-bar/index.css +79 -0
- package/lib/modules/state-bar/index.d.ts +17 -0
- package/lib/modules/state-bar/index.js +55 -0
- package/lib/modules/state-bar/leaving-room/index.css +14 -0
- package/lib/modules/state-bar/leaving-room/index.d.ts +7 -0
- package/lib/modules/state-bar/leaving-room/index.js +38 -0
- package/lib/modules/state-bar/meeting-detail/index.css +72 -0
- package/lib/modules/state-bar/meeting-detail/index.d.ts +2 -0
- package/lib/modules/state-bar/meeting-detail/index.js +59 -0
- package/lib/modules/state-bar/meeting-detail/meeting-info/copy.d.ts +4 -0
- package/lib/modules/state-bar/meeting-detail/meeting-info/copy.js +81 -0
- package/lib/modules/state-bar/meeting-detail/meeting-info/index.css +92 -0
- package/lib/modules/state-bar/meeting-detail/meeting-info/index.d.ts +2 -0
- package/lib/modules/state-bar/meeting-detail/meeting-info/index.js +188 -0
- package/lib/modules/state-bar/meeting-detail/net-quality/index.css +27 -0
- package/lib/modules/state-bar/meeting-detail/net-quality/index.d.ts +2 -0
- package/lib/modules/state-bar/meeting-detail/net-quality/index.js +87 -0
- package/lib/modules/state-bar/store.d.ts +76 -0
- package/lib/modules/state-bar/store.js +561 -0
- package/lib/modules/state-bar/view.d.ts +7 -0
- package/lib/modules/state-bar/view.js +215 -0
- package/lib/modules/whiteboard/app.d.ts +2 -0
- package/lib/modules/whiteboard/app.js +41 -0
- package/lib/modules/whiteboard/components/control-bar/index.css +53 -0
- package/lib/modules/whiteboard/components/control-bar/index.d.ts +2 -0
- package/lib/modules/whiteboard/components/control-bar/index.js +156 -0
- package/lib/modules/whiteboard/components/control-bar/store.d.ts +35 -0
- package/lib/modules/whiteboard/components/control-bar/store.js +288 -0
- package/lib/modules/whiteboard/components/loading/index.css +76 -0
- package/lib/modules/whiteboard/components/loading/index.d.ts +2 -0
- package/lib/modules/whiteboard/components/loading/index.js +68 -0
- package/lib/modules/whiteboard/components/loading/loading.png +0 -0
- package/lib/modules/whiteboard/components/multi-window/index.css +65 -0
- package/lib/modules/whiteboard/components/multi-window/index.d.ts +5 -0
- package/lib/modules/whiteboard/components/multi-window/index.js +39 -0
- package/lib/modules/whiteboard/components/pagination/index.css +228 -0
- package/lib/modules/whiteboard/components/pagination/index.d.ts +15 -0
- package/lib/modules/whiteboard/components/pagination/index.js +163 -0
- package/lib/modules/whiteboard/components/pagination/store.d.ts +18 -0
- package/lib/modules/whiteboard/components/pagination/store.js +17 -0
- package/lib/modules/whiteboard/components/progress/index.d.ts +5 -0
- package/lib/modules/whiteboard/components/progress/index.js +43 -0
- package/lib/modules/whiteboard/components/progress/style.css +52 -0
- package/lib/modules/whiteboard/components/scene-pagination.d.ts +1 -0
- package/lib/modules/whiteboard/components/scene-pagination.js +30 -0
- package/lib/modules/whiteboard/components/switch-theme/index.css +98 -0
- package/lib/modules/whiteboard/components/switch-theme/index.d.ts +3 -0
- package/lib/modules/whiteboard/components/switch-theme/index.js +89 -0
- package/lib/modules/whiteboard/components/switch-theme/item.d.ts +9 -0
- package/lib/modules/whiteboard/components/switch-theme/item.js +53 -0
- package/lib/modules/whiteboard/components/switch-theme/libs.d.ts +4 -0
- package/lib/modules/whiteboard/components/switch-theme/libs.js +29 -0
- package/lib/modules/whiteboard/components/toolbar/ style.css +588 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/color.d.ts +5 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/color.js +38 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.js +107 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/picker.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/picker.js +59 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.d.ts +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.js +44 -0
- package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.d.ts +4 -0
- package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.js +89 -0
- package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.js +63 -0
- package/lib/modules/whiteboard/components/toolbar/components/history.d.ts +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/history.js +46 -0
- package/lib/modules/whiteboard/components/toolbar/components/icons/fold-icon.d.ts +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/icons/fold-icon.js +39 -0
- package/lib/modules/whiteboard/components/toolbar/components/icons/move-icon.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/components/icons/move-icon.js +66 -0
- package/lib/modules/whiteboard/components/toolbar/components/move-handle.d.ts +5 -0
- package/lib/modules/whiteboard/components/toolbar/components/move-handle.js +134 -0
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.d.ts +4 -0
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +106 -0
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.d.ts +4 -0
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +168 -0
- package/lib/modules/whiteboard/components/toolbar/hooks/index.d.ts +14 -0
- package/lib/modules/whiteboard/components/toolbar/hooks/index.js +211 -0
- package/lib/modules/whiteboard/components/toolbar/index.d.ts +2 -0
- package/lib/modules/whiteboard/components/toolbar/index.js +183 -0
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +51 -0
- package/lib/modules/whiteboard/components/toolbar/store.js +248 -0
- package/lib/modules/whiteboard/context.d.ts +69 -0
- package/lib/modules/whiteboard/context.js +36 -0
- package/lib/modules/whiteboard/index.d.ts +119 -0
- package/lib/modules/whiteboard/index.js +1134 -0
- package/lib/modules/whiteboard/style.css +143 -0
- package/lib/modules/whiteboard/type.d.ts +94 -0
- package/lib/modules/whiteboard/type.js +89 -0
- package/lib/modules/whiteboard/utils.d.ts +12 -0
- package/lib/modules/whiteboard/utils.js +36 -0
- package/lib/plugins/css-preset-plugin.d.ts +1 -0
- package/lib/plugins/css-preset-plugin.js +29 -0
- package/lib/plugins/module-dev-plugin.d.ts +12 -0
- package/lib/plugins/module-dev-plugin.js +183 -0
- package/lib/plugins/multi-lang-plugin.d.ts +1 -0
- package/lib/plugins/multi-lang-plugin.js +19 -0
- package/lib/plugins/rtm-plugin.d.ts +1 -0
- package/lib/plugins/rtm-plugin.js +5 -0
- package/lib/plugins/web-rtc-plugin.d.ts +1 -0
- package/lib/plugins/web-rtc-plugin.js +5 -0
- package/lib/translations/enUS.d.ts +1855 -0
- package/lib/translations/enUS.js +1895 -0
- package/lib/translations/zhCN.d.ts +1852 -0
- package/lib/translations/zhCN.js +1892 -0
- package/lib/type.d.ts +121 -0
- package/lib/type.js +46 -0
- package/lib/ui-manager.d.ts +32 -0
- package/lib/ui-manager.js +426 -0
- package/lib/ui-scene.d.ts +14 -0
- package/lib/ui-scene.js +141 -0
- package/lib/utilities/board-context.d.ts +4 -0
- package/lib/utilities/board-context.js +12 -0
- package/lib/utilities/constant.d.ts +286 -0
- package/lib/utilities/constant.js +271 -0
- package/lib/utilities/copyText.d.ts +2 -0
- package/lib/utilities/copyText.js +43 -0
- package/lib/utilities/extract.d.ts +5 -0
- package/lib/utilities/extract.js +117 -0
- package/lib/utilities/hooks.d.ts +14 -0
- package/lib/utilities/hooks.js +101 -0
- package/lib/utilities/mute-action.d.ts +4 -0
- package/lib/utilities/mute-action.js +48 -0
- package/lib/utilities/parameters.d.ts +7 -0
- package/lib/utilities/parameters.js +20 -0
- package/lib/utilities/regex.d.ts +1 -0
- package/lib/utilities/regex.js +14 -0
- package/lib/utilities/tools.d.ts +27 -0
- package/lib/utilities/tools.js +169 -0
- package/lib/utilities/useNamespace.d.ts +15 -0
- package/lib/utilities/useNamespace.js +66 -0
- package/package.json +63 -0
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.symbol.js");
|
|
4
|
+
require("core-js/modules/es.array.filter.js");
|
|
5
|
+
require("core-js/modules/es.array.for-each.js");
|
|
6
|
+
require("core-js/modules/es.array.push.js");
|
|
7
|
+
require("core-js/modules/es.object.define-properties.js");
|
|
8
|
+
require("core-js/modules/es.object.define-property.js");
|
|
9
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
10
|
+
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
11
|
+
require("core-js/modules/es.object.keys.js");
|
|
12
|
+
require("core-js/modules/es.object.to-string.js");
|
|
13
|
+
require("core-js/modules/esnext.async-iterator.filter.js");
|
|
14
|
+
require("core-js/modules/esnext.async-iterator.for-each.js");
|
|
15
|
+
require("core-js/modules/esnext.iterator.constructor.js");
|
|
16
|
+
require("core-js/modules/esnext.iterator.filter.js");
|
|
17
|
+
require("core-js/modules/esnext.iterator.for-each.js");
|
|
18
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
19
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
20
|
+
Object.defineProperty(exports, "__esModule", {
|
|
21
|
+
value: true
|
|
22
|
+
});
|
|
23
|
+
exports.ParticipantAttendee = void 0;
|
|
24
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
25
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
26
|
+
var _mobxReactLite = require("mobx-react-lite");
|
|
27
|
+
var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
28
|
+
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
29
|
+
var _popover = require("agora-ui-foundation/lib/components/popover");
|
|
30
|
+
require("./index.css");
|
|
31
|
+
var _react = require("react");
|
|
32
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
33
|
+
var _participantMoreActions = require("../participant-more-actions");
|
|
34
|
+
var _cameraStateMobile = require("agora-ui-foundation/lib/components/camera-state-mobile");
|
|
35
|
+
var _microphoneStateMobile = require("agora-ui-foundation/lib/components/microphone-state-mobile");
|
|
36
|
+
var _avatar = require("agora-ui-foundation/lib/components/avatar");
|
|
37
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
38
|
+
var _type2 = require("../../../../type");
|
|
39
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
40
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
41
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } // import { MicrophoneState } from 'agora-ui-foundation/lib/components/room-screen-share-state-bar/microphone-state';
|
|
42
|
+
var ParticipantAttendee = exports.ParticipantAttendee = (0, _mobxReactLite.observer)(function (props) {
|
|
43
|
+
var t = (0, _i18n.useI18n)();
|
|
44
|
+
var userName = props.userName,
|
|
45
|
+
userType = props.userType,
|
|
46
|
+
isMe = props.isMe,
|
|
47
|
+
userRole = props.userRole,
|
|
48
|
+
isScreenSharing = props.isScreenSharing,
|
|
49
|
+
isBoardActive = props.isBoardActive,
|
|
50
|
+
audioDeviceType = props.audioDeviceType,
|
|
51
|
+
hasAudio = props.hasAudio,
|
|
52
|
+
userId = props.userId,
|
|
53
|
+
videoDeviceType = props.videoDeviceType,
|
|
54
|
+
hasVideo = props.hasVideo,
|
|
55
|
+
isSpotlight = props.isSpotlight,
|
|
56
|
+
enableSpotlight = props.enableSpotlight;
|
|
57
|
+
var _useState = (0, _react.useState)(false),
|
|
58
|
+
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
59
|
+
isShowDropMenu = _useState2[0],
|
|
60
|
+
setIsShowDropMenu = _useState2[1];
|
|
61
|
+
var menuRef = (0, _react.useRef)(null);
|
|
62
|
+
var handleMoreActionsClick = function handleMoreActionsClick() {
|
|
63
|
+
setIsShowDropMenu(false);
|
|
64
|
+
};
|
|
65
|
+
var userAvatar = function userAvatar() {
|
|
66
|
+
if (userType === 'meeting-system') {
|
|
67
|
+
return {
|
|
68
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
69
|
+
size: 24,
|
|
70
|
+
type: _type.FcrIconType.FCR_SIPDEVICE,
|
|
71
|
+
colors: {
|
|
72
|
+
iconPrimary: 'var(--fcr_ui_scene_white10)',
|
|
73
|
+
iconSecondary: 'var(--fcr_ui_scene_ramp_green6)'
|
|
74
|
+
}
|
|
75
|
+
}),
|
|
76
|
+
backgroundColor: 'var(--fcr_ui_scene_ramp_purple7)'
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
if (userType === 'phone') {
|
|
80
|
+
return {
|
|
81
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
82
|
+
size: 24,
|
|
83
|
+
type: _type.FcrIconType.FCR_PHONECALL2,
|
|
84
|
+
colors: {
|
|
85
|
+
iconPrimary: 'var(--fcr_ui_scene_white10)'
|
|
86
|
+
}
|
|
87
|
+
}),
|
|
88
|
+
backgroundColor: 'var(--fcr_ui_scene_ramp_green6)'
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
return {
|
|
92
|
+
icon: null,
|
|
93
|
+
backgroundColor: ''
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
var userRoleRender = function userRoleRender() {
|
|
97
|
+
switch (userRole) {
|
|
98
|
+
case _type2.FcrUserRole.HOST:
|
|
99
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
100
|
+
className: "fcr-participant-attendee_info-role fcr-participant-attendee_info-role-host",
|
|
101
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
102
|
+
type: _type.FcrIconType.FCR_HOST,
|
|
103
|
+
size: 16
|
|
104
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
105
|
+
children: t('fmt_role_host')
|
|
106
|
+
})]
|
|
107
|
+
});
|
|
108
|
+
case _type2.FcrUserRole.COHOST:
|
|
109
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
110
|
+
className: "fcr-participant-attendee_info-role fcr-participant-attendee_info-role-cohost",
|
|
111
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
112
|
+
type: _type.FcrIconType.FCR_COHOST1,
|
|
113
|
+
size: 16
|
|
114
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
115
|
+
children: t('fmt_role_cohost')
|
|
116
|
+
})]
|
|
117
|
+
});
|
|
118
|
+
default:
|
|
119
|
+
return null;
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
(0, _react.useEffect)(function () {
|
|
123
|
+
var handleClickOutside = function handleClickOutside(event) {
|
|
124
|
+
if (menuRef.current && !menuRef.current.contains(event.target)) {
|
|
125
|
+
setIsShowDropMenu(false);
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
document.addEventListener('touchstart', handleClickOutside);
|
|
129
|
+
return function () {
|
|
130
|
+
document.removeEventListener('touchstart', handleClickOutside);
|
|
131
|
+
};
|
|
132
|
+
}, []);
|
|
133
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
134
|
+
className: "fcr-participant-attendee_mobile",
|
|
135
|
+
ref: menuRef,
|
|
136
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
137
|
+
className: "fcr-participant-attendee_container",
|
|
138
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
139
|
+
className: (0, _classnames["default"])('attendee__user-info-avatar', {
|
|
140
|
+
'attendee__user-info-avatar_speakerSpotlight': enableSpotlight && isSpotlight
|
|
141
|
+
}),
|
|
142
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_avatar.FcrAvatar, _objectSpread({
|
|
143
|
+
size: 36,
|
|
144
|
+
nickName: userName,
|
|
145
|
+
textSize: 14,
|
|
146
|
+
borderRadius: 10
|
|
147
|
+
}, userAvatar()))
|
|
148
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
149
|
+
className: "fcr-participant-attendee_info",
|
|
150
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
151
|
+
className: "fcr-participant-attendee_info-name",
|
|
152
|
+
children: [userName, ' ', isMe && /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
153
|
+
className: "attendee__me-badge",
|
|
154
|
+
children: ["(", t('fmt_participant_label_Me'), ")"]
|
|
155
|
+
})]
|
|
156
|
+
}), userRoleRender() && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
157
|
+
className: "fcr-participant-attendee_info-role-container",
|
|
158
|
+
children: userRoleRender()
|
|
159
|
+
})]
|
|
160
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
161
|
+
className: "fcr-participant-attendee_action",
|
|
162
|
+
children: [isScreenSharing && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
163
|
+
className: (0, _classnames["default"])('fcr-participant-attendee_action-item', {
|
|
164
|
+
'fcr-participant-attendee_action-item-screen-sharing': true
|
|
165
|
+
}),
|
|
166
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
167
|
+
type: _type.FcrIconType.FCR_SCREENSHARING_1,
|
|
168
|
+
size: 28,
|
|
169
|
+
colors: {
|
|
170
|
+
iconPrimary: 'var(--fcr_ui_scene_white10)'
|
|
171
|
+
}
|
|
172
|
+
})
|
|
173
|
+
}), isBoardActive && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
174
|
+
className: "fcr-participant-attendee_action-item",
|
|
175
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
176
|
+
type: _type.FcrIconType.FCR_WHITEBOARD,
|
|
177
|
+
size: 28,
|
|
178
|
+
colors: {
|
|
179
|
+
iconPrimary: 'var(--fcr_ui_scene_white10)'
|
|
180
|
+
}
|
|
181
|
+
})
|
|
182
|
+
}), audioDeviceType !== 'none' && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
183
|
+
className: (0, _classnames["default"])('fcr-participant-attendee_action-item', {
|
|
184
|
+
'fcr-participant-attendee_action-item-microphone': hasAudio
|
|
185
|
+
}),
|
|
186
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(MicrophoneIndicator, {
|
|
187
|
+
audioDeviceType: audioDeviceType,
|
|
188
|
+
hasAudio: hasAudio,
|
|
189
|
+
isLocal: !!isMe,
|
|
190
|
+
userId: userId
|
|
191
|
+
})
|
|
192
|
+
}), videoDeviceType !== 'none' && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
193
|
+
className: (0, _classnames["default"])('fcr-participant-attendee_action-item', {
|
|
194
|
+
'fcr-participant-attendee_action-item-camera': hasVideo
|
|
195
|
+
}),
|
|
196
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_cameraStateMobile.CameraStateMobile, {
|
|
197
|
+
isCameraMuted: !hasVideo,
|
|
198
|
+
size: 28
|
|
199
|
+
})
|
|
200
|
+
})]
|
|
201
|
+
}), userType !== 'meeting-system' && userType !== 'phone' && !isMe && /*#__PURE__*/(0, _jsxRuntime.jsx)(_popover.FcrPopover, {
|
|
202
|
+
visible: isShowDropMenu,
|
|
203
|
+
overlayInnerStyle: {
|
|
204
|
+
border: 0,
|
|
205
|
+
boxShadow: '0px 0px 15px var(--fcr_web_light_dropup_m)',
|
|
206
|
+
borderRadius: 'var(--fcr_cornerradius_l)'
|
|
207
|
+
},
|
|
208
|
+
showArrow: true,
|
|
209
|
+
overlayClassName: "attendee__more-actions",
|
|
210
|
+
mouseEnterDelay: 0,
|
|
211
|
+
placement: "bottomRight",
|
|
212
|
+
content: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
213
|
+
onTouchStart: function onTouchStart() {
|
|
214
|
+
setIsShowDropMenu(true);
|
|
215
|
+
},
|
|
216
|
+
onTouchEnd: function onTouchEnd() {
|
|
217
|
+
return setIsShowDropMenu(false);
|
|
218
|
+
},
|
|
219
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_participantMoreActions.ParticipantMoreActions, {
|
|
220
|
+
onParticipantsButtonClick: handleMoreActionsClick,
|
|
221
|
+
userName: userName,
|
|
222
|
+
userId: userId,
|
|
223
|
+
userRole: userRole,
|
|
224
|
+
isMe: !!isMe
|
|
225
|
+
})
|
|
226
|
+
}),
|
|
227
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
228
|
+
className: "fcr-participant-attendee_more",
|
|
229
|
+
onClick: function onClick() {
|
|
230
|
+
return setIsShowDropMenu(!isShowDropMenu);
|
|
231
|
+
},
|
|
232
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
233
|
+
size: 24,
|
|
234
|
+
type: _type.FcrIconType.FCR_MOBILE_MORE,
|
|
235
|
+
colors: {
|
|
236
|
+
iconPrimary: 'var(--fcr_ui_scene_icontext1)'
|
|
237
|
+
}
|
|
238
|
+
})
|
|
239
|
+
})
|
|
240
|
+
})]
|
|
241
|
+
})
|
|
242
|
+
});
|
|
243
|
+
});
|
|
244
|
+
var MicrophoneIndicator = (0, _mobxReactLite.observer)(function (_ref) {
|
|
245
|
+
var audioDeviceType = _ref.audioDeviceType,
|
|
246
|
+
hasAudio = _ref.hasAudio;
|
|
247
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_microphoneStateMobile.MicrophoneStateMobile, {
|
|
248
|
+
isMicrophoneMuted: !hasAudio,
|
|
249
|
+
size: 28,
|
|
250
|
+
isPhoneMic: audioDeviceType === 'phone-mic'
|
|
251
|
+
});
|
|
252
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const FcrMobileMemberList: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.symbol.js");
|
|
4
|
+
require("core-js/modules/es.array.filter.js");
|
|
5
|
+
require("core-js/modules/es.array.for-each.js");
|
|
6
|
+
require("core-js/modules/es.array.push.js");
|
|
7
|
+
require("core-js/modules/es.object.define-properties.js");
|
|
8
|
+
require("core-js/modules/es.object.define-property.js");
|
|
9
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
10
|
+
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
11
|
+
require("core-js/modules/es.object.keys.js");
|
|
12
|
+
require("core-js/modules/es.object.to-string.js");
|
|
13
|
+
require("core-js/modules/esnext.async-iterator.filter.js");
|
|
14
|
+
require("core-js/modules/esnext.async-iterator.for-each.js");
|
|
15
|
+
require("core-js/modules/esnext.iterator.constructor.js");
|
|
16
|
+
require("core-js/modules/esnext.iterator.filter.js");
|
|
17
|
+
require("core-js/modules/esnext.iterator.for-each.js");
|
|
18
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
19
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
20
|
+
Object.defineProperty(exports, "__esModule", {
|
|
21
|
+
value: true
|
|
22
|
+
});
|
|
23
|
+
exports.FcrMobileMemberList = void 0;
|
|
24
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
25
|
+
var _mobxReact = require("mobx-react");
|
|
26
|
+
var _react = require("react");
|
|
27
|
+
var _ = require(".");
|
|
28
|
+
var _constant = require("../../../../utilities/constant");
|
|
29
|
+
var _participants = require("agora-ui-foundation/lib/components/participants");
|
|
30
|
+
var _globalContext = require("../../../../common/global-context");
|
|
31
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
32
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
33
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
34
|
+
var FcrMobileMemberList = exports.FcrMobileMemberList = (0, _mobxReact.observer)(function () {
|
|
35
|
+
var _useContext = (0, _react.useContext)(_globalContext.FcrMobileGlobalContext),
|
|
36
|
+
participantStore = _useContext.participantStore;
|
|
37
|
+
var memberList = participantStore.memberList,
|
|
38
|
+
handlerSearchUser = participantStore.handlerSearchUser,
|
|
39
|
+
enableSpotlight = participantStore.enableSpotlight,
|
|
40
|
+
searchText = participantStore.searchText,
|
|
41
|
+
hasPinnedStream = participantStore.hasPinnedStream,
|
|
42
|
+
currentPerspectiveType = participantStore.currentPerspectiveType,
|
|
43
|
+
checkIsPin = participantStore.checkIsPin,
|
|
44
|
+
getAllowedOperations = participantStore.getAllowedOperations;
|
|
45
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
46
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
47
|
+
className: "fcr-participant_list",
|
|
48
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_participants.FcrParticipants, {
|
|
49
|
+
type: 'modal',
|
|
50
|
+
userList: memberList,
|
|
51
|
+
onSearch: handlerSearchUser,
|
|
52
|
+
searchText: searchText,
|
|
53
|
+
onInvite: function onInvite() {},
|
|
54
|
+
isShowInvite: false,
|
|
55
|
+
hasPinnedStream: false,
|
|
56
|
+
toggleParticipantAction: function toggleParticipantAction() {},
|
|
57
|
+
viewMode: 'MOBILE',
|
|
58
|
+
userRenderer: function userRenderer(user) {
|
|
59
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_mobxReact.Observer, {
|
|
60
|
+
children: function children() {
|
|
61
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_.ParticipantAttendee, _objectSpread(_objectSpread({
|
|
62
|
+
activeTab: _constant.RoomType.MAIN_ROOM,
|
|
63
|
+
moveToMainRoomByUserIds: function moveToMainRoomByUserIds() {},
|
|
64
|
+
hasMutePermission: false,
|
|
65
|
+
hasUnmutePermission: false,
|
|
66
|
+
hasRequestStartAudioPermission: false,
|
|
67
|
+
currentPerspectiveType: currentPerspectiveType,
|
|
68
|
+
onParticipantsButtonClick: function onParticipantsButtonClick() {}
|
|
69
|
+
}, user), {}, {
|
|
70
|
+
isBoardActive: false,
|
|
71
|
+
isPin: checkIsPin(user.userId),
|
|
72
|
+
hasPinnedStream: hasPinnedStream,
|
|
73
|
+
enableSpotlight: enableSpotlight,
|
|
74
|
+
allowedOperations: getAllowedOperations(user.userRole, !!user.isMe)
|
|
75
|
+
}));
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
})
|
|
80
|
+
})
|
|
81
|
+
});
|
|
82
|
+
});
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
.fcr-mobile-participants-cfg-con-wrap {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
width: 100%;
|
|
5
|
+
height: 483px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.fcr-mobile-participants-cfg-con-header {
|
|
9
|
+
height: 50px;
|
|
10
|
+
width: 100%;
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
}
|
|
14
|
+
.fcr-mobile-participants-cfg-con-header-title {
|
|
15
|
+
color: var(--fcr_ui_scene_icontext1);
|
|
16
|
+
font-size: 15px;
|
|
17
|
+
margin-left: 15px;
|
|
18
|
+
font-weight: 800;
|
|
19
|
+
}
|
|
20
|
+
.fcr-mobile-cfg-body {
|
|
21
|
+
flex: 1;
|
|
22
|
+
width: 100%;
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.fcr-mobile-scope .fcr-participant__list > div {
|
|
27
|
+
overflow: auto !important;
|
|
28
|
+
height: 390px !important;
|
|
29
|
+
width: 100% !important;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.fcr-mobile-scope .fcr-participant__list .ReactVirtualized__List {
|
|
33
|
+
overflow: unset !important;
|
|
34
|
+
height: 390px !important;
|
|
35
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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.FcrMobileParticipantsPopup = void 0;
|
|
8
|
+
var _popup = require("agora-ui-foundation/lib/components/popup");
|
|
9
|
+
var _mobxReact = require("mobx-react");
|
|
10
|
+
require("./index.css");
|
|
11
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
12
|
+
var _list = require("./attendee/list");
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
+
var FcrMobileParticipantsPopup = exports.FcrMobileParticipantsPopup = (0, _mobxReact.observer)(function (props) {
|
|
15
|
+
var visible = props.visible,
|
|
16
|
+
_onClose = props.onClose;
|
|
17
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_popup.FcrPopup, {
|
|
18
|
+
showCloseButton: true,
|
|
19
|
+
visible: visible,
|
|
20
|
+
onMaskClick: function onMaskClick() {
|
|
21
|
+
_onClose();
|
|
22
|
+
},
|
|
23
|
+
onClose: function onClose() {
|
|
24
|
+
_onClose();
|
|
25
|
+
},
|
|
26
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
27
|
+
className: "fcr-mobile-participants-cfg-con-wrap",
|
|
28
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
29
|
+
className: "fcr-mobile-participants-cfg-con-header",
|
|
30
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
31
|
+
className: "fcr-mobile-participants-cfg-con-header-title",
|
|
32
|
+
children: (0, _i18n.transI18n)('fmt_participants_label_participants')
|
|
33
|
+
})
|
|
34
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
35
|
+
className: "fcr-mobile-cfg-body",
|
|
36
|
+
children: visible && /*#__PURE__*/(0, _jsxRuntime.jsx)(_list.FcrMobileMemberList, {})
|
|
37
|
+
})]
|
|
38
|
+
})
|
|
39
|
+
});
|
|
40
|
+
});
|
|
File without changes
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import './index.css';
|
|
3
|
+
import { FcrUserRole } from 'fcr-core';
|
|
4
|
+
interface ParticipantMoreActionsProps {
|
|
5
|
+
userName?: string;
|
|
6
|
+
userId: string;
|
|
7
|
+
userRole: FcrUserRole;
|
|
8
|
+
isMe: boolean;
|
|
9
|
+
onParticipantsButtonClick: () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const ParticipantMoreActions: FC<ParticipantMoreActionsProps>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,58 @@
|
|
|
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.ParticipantMoreActions = void 0;
|
|
8
|
+
require("core-js/modules/es.array.filter.js");
|
|
9
|
+
require("core-js/modules/es.array.includes.js");
|
|
10
|
+
require("core-js/modules/es.object.to-string.js");
|
|
11
|
+
require("core-js/modules/es.string.includes.js");
|
|
12
|
+
require("core-js/modules/esnext.async-iterator.filter.js");
|
|
13
|
+
require("core-js/modules/esnext.iterator.constructor.js");
|
|
14
|
+
require("core-js/modules/esnext.iterator.filter.js");
|
|
15
|
+
var _react = require("react");
|
|
16
|
+
require("./index.css");
|
|
17
|
+
var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
18
|
+
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
19
|
+
var _dropMenu = require("agora-ui-foundation/lib/components/drop-menu");
|
|
20
|
+
var _attendee = require("agora-ui-foundation/lib/components/participants/attendee");
|
|
21
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
22
|
+
var _globalContext = require("../../../../common/global-context");
|
|
23
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
24
|
+
var ParticipantMoreActions = exports.ParticipantMoreActions = function ParticipantMoreActions(_ref) {
|
|
25
|
+
var userId = _ref.userId,
|
|
26
|
+
userRole = _ref.userRole,
|
|
27
|
+
isMe = _ref.isMe,
|
|
28
|
+
onParticipantsButtonClick = _ref.onParticipantsButtonClick;
|
|
29
|
+
var _useContext = (0, _react.useContext)(_globalContext.FcrMobileGlobalContext),
|
|
30
|
+
participantStore = _useContext.participantStore;
|
|
31
|
+
var handlerUserAction = participantStore.handlerUserAction,
|
|
32
|
+
getAllowedOperations = participantStore.getAllowedOperations;
|
|
33
|
+
var allowOperationKeys = getAllowedOperations(userRole, isMe);
|
|
34
|
+
var allOperationMenu = [{
|
|
35
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
36
|
+
type: _type.FcrIconType.FCR_MOBILE_CHAT3,
|
|
37
|
+
size: 32,
|
|
38
|
+
colors: {
|
|
39
|
+
iconPrimary: 'var(--fcr_ui_scene_icontext5)'
|
|
40
|
+
}
|
|
41
|
+
}),
|
|
42
|
+
title: (0, _i18n.transI18n)('fmt_attendies_label_privatechat'),
|
|
43
|
+
key: 'private_chat',
|
|
44
|
+
type: 'primary',
|
|
45
|
+
canOperation: !isMe,
|
|
46
|
+
onButtonClick: function onButtonClick() {
|
|
47
|
+
onParticipantsButtonClick();
|
|
48
|
+
handlerUserAction(_attendee.ParticipantActionType.PRIVATE_CHAT, userId);
|
|
49
|
+
}
|
|
50
|
+
}];
|
|
51
|
+
var operationMenu = allOperationMenu.filter(function (menu) {
|
|
52
|
+
return menu.canOperation && allowOperationKeys.includes(menu.key);
|
|
53
|
+
});
|
|
54
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_dropMenu.FcrDropMenu, {
|
|
55
|
+
className: "fcr-participants-more-dropmenu",
|
|
56
|
+
options: operationMenu
|
|
57
|
+
});
|
|
58
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
|
|
2
|
+
.fcr-mobile-more-cfg-con-wrap{
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: 483px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.fcr-mobile-more-cfg-con-header{
|
|
10
|
+
height: 50px;
|
|
11
|
+
width: 100%;
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
}
|
|
15
|
+
.fcr-mobile-more-cfg-con-header-title{
|
|
16
|
+
color:var(--fcr_ui_scene_icontext1);
|
|
17
|
+
font-size: 15px;
|
|
18
|
+
margin-left: 15px;
|
|
19
|
+
font-weight: 800;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.fcr-mobile-more-cfg-card{
|
|
23
|
+
width: 345px;
|
|
24
|
+
min-height: 150px;
|
|
25
|
+
background-color: var(--fcr_mobile_ui_scene_color_popup_block1);
|
|
26
|
+
border-radius: 12px;
|
|
27
|
+
margin: 0 auto;
|
|
28
|
+
margin-top: 11px;
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
padding-left: 20px;
|
|
32
|
+
padding-right: 13px;
|
|
33
|
+
}
|
|
34
|
+
.fcr-mobile-more-cfg-card-item{
|
|
35
|
+
height: 50px;
|
|
36
|
+
width: 100%;
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
justify-content: space-between;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.fcr-mobile-more-cfg-card-item.border{
|
|
43
|
+
border-bottom: 0.5px solid var(--fcr_ui_scene_line1);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.fcr-mobile-more-cfg-card-item-linechoose{
|
|
47
|
+
min-width: 104px;
|
|
48
|
+
height: 32px;
|
|
49
|
+
border:0.5px solid var(--fcr_ui_scene_line1);
|
|
50
|
+
display: flex;
|
|
51
|
+
align-items: center;
|
|
52
|
+
background-color: var(--fcr_mobile_ui_scene_fill1);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.fcr-mobile-more-cfg-card-item-btn{
|
|
56
|
+
min-width: 50px;
|
|
57
|
+
height: 28px;
|
|
58
|
+
color: var(--fcr_ui_scene_icontext1);
|
|
59
|
+
font-size: 13px;
|
|
60
|
+
display: flex;
|
|
61
|
+
justify-content: center;
|
|
62
|
+
align-items: center;
|
|
63
|
+
border-radius: var(--fcr_cornerradius_xxs);
|
|
64
|
+
padding: 0px 2px;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.fcr-mobile-more-cfg-card-item-btn.active{
|
|
68
|
+
background-color: #ffffff;
|
|
69
|
+
color:var(--fcr_ui_scene_ramp_brand6);
|
|
70
|
+
}
|
|
71
|
+
|