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,188 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.FcrMobileMeetingInfo = void 0;
|
|
9
|
+
require("core-js/modules/es.array.concat.js");
|
|
10
|
+
require("core-js/modules/es.array.map.js");
|
|
11
|
+
require("core-js/modules/esnext.async-iterator.map.js");
|
|
12
|
+
require("core-js/modules/esnext.iterator.map.js");
|
|
13
|
+
require("./index.css");
|
|
14
|
+
var _dayjs = _interopRequireDefault(require("dayjs"));
|
|
15
|
+
var _react = require("react");
|
|
16
|
+
var _context = require("../../context");
|
|
17
|
+
var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
18
|
+
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
19
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
20
|
+
var _globalContext = require("../../../../common/global-context");
|
|
21
|
+
var _mobxReact = require("mobx-react");
|
|
22
|
+
var _copy = require("./copy");
|
|
23
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
24
|
+
var FcrMobileCopyIcon = function FcrMobileCopyIcon(_ref) {
|
|
25
|
+
var onClick = _ref.onClick;
|
|
26
|
+
var colors = {
|
|
27
|
+
iconPrimary: 'var(--fcr_ui_scene_ramp_brand6)',
|
|
28
|
+
iconSecondary: 'var(--fcr_ui_scene_ramp_brand6)'
|
|
29
|
+
};
|
|
30
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
31
|
+
onClick: onClick,
|
|
32
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
33
|
+
type: _type.FcrIconType.FCR_COPY2,
|
|
34
|
+
size: 22,
|
|
35
|
+
colors: colors
|
|
36
|
+
})
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
var FcrMobileMeetingInfo = exports.FcrMobileMeetingInfo = (0, _mobxReact.observer)(function () {
|
|
40
|
+
var _scheduleInfo$startTi;
|
|
41
|
+
var _useContext = (0, _react.useContext)(_context.StoreContext),
|
|
42
|
+
roomInfo = _useContext.roomInfo,
|
|
43
|
+
localUser = _useContext.localUser,
|
|
44
|
+
scheduleInfo = _useContext.scheduleInfo,
|
|
45
|
+
getShareLink = _useContext.getShareLink,
|
|
46
|
+
password = _useContext.password;
|
|
47
|
+
var _useContext2 = (0, _react.useContext)(_globalContext.FcrMobileGlobalContext),
|
|
48
|
+
participantStore = _useContext2.participantStore,
|
|
49
|
+
securityStore = _useContext2.securityStore;
|
|
50
|
+
var hostList = participantStore.hostList;
|
|
51
|
+
var isLockRoomEnabled = securityStore.isLockRoomEnabled;
|
|
52
|
+
var shareLink = getShareLink();
|
|
53
|
+
var detailText = (0, _i18n.transI18n)('fmt_link_invitation', {
|
|
54
|
+
reason1: localUser === null || localUser === void 0 ? void 0 : localUser.userName,
|
|
55
|
+
reason2: roomInfo === null || roomInfo === void 0 ? void 0 : roomInfo.roomName,
|
|
56
|
+
reason3: (0, _dayjs["default"])((_scheduleInfo$startTi = scheduleInfo === null || scheduleInfo === void 0 ? void 0 : scheduleInfo.startTime) !== null && _scheduleInfo$startTi !== void 0 ? _scheduleInfo$startTi : 0).format('YYYY-MM-DD HH:mm:ss'),
|
|
57
|
+
reason4: shareLink,
|
|
58
|
+
reason5: !!password ? "".concat((0, _i18n.transI18n)('fmt_meeting_creatpage_label_password'), ": ").concat(password) : ''
|
|
59
|
+
});
|
|
60
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
61
|
+
className: "fcr-mobile-meeting-detail-theme",
|
|
62
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
63
|
+
className: "fcr-mobile-meeting-detail-block1",
|
|
64
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
65
|
+
className: "fcr-mobile-meeting-detail-subtitle",
|
|
66
|
+
children: (0, _i18n.transI18n)('fmt_meetinginfo_room_topic')
|
|
67
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
68
|
+
className: "fcr-mobile-meeting-detail-meeting-name",
|
|
69
|
+
children: roomInfo === null || roomInfo === void 0 ? void 0 : roomInfo.roomName
|
|
70
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
71
|
+
className: "fcr-mobile-meeting-detail-creator-row",
|
|
72
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
73
|
+
className: "fcr-mobile-meeting-detail-creator-tag",
|
|
74
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
75
|
+
type: _type.FcrIconType.FCR_HOST2,
|
|
76
|
+
size: 20,
|
|
77
|
+
colors: {
|
|
78
|
+
iconPrimary: 'var(--fcr_ui_scene_white10)',
|
|
79
|
+
iconSecondary: 'var(--fcr_ui_scene_white10)'
|
|
80
|
+
}
|
|
81
|
+
})
|
|
82
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
83
|
+
className: "fcr-mobile-meeting-detail-creator-name",
|
|
84
|
+
children: hostList.map(function (user) {
|
|
85
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
86
|
+
className: "fcr-mobile-meeting-detail-creator-name-span",
|
|
87
|
+
children: user.userInfo.userName
|
|
88
|
+
}, user.userInfo.userId);
|
|
89
|
+
})
|
|
90
|
+
})]
|
|
91
|
+
})]
|
|
92
|
+
}), isLockRoomEnabled() && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
93
|
+
className: "fcr-mobile-meeting-detail-block2",
|
|
94
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
95
|
+
className: "fcr-mobile-meeting-detail-locktitle",
|
|
96
|
+
children: (0, _i18n.transI18n)('fmt_meetinginfo_tips_lockedroom')
|
|
97
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
98
|
+
className: "fcr-mobile-meeting-detail-meeting-locktip",
|
|
99
|
+
children: (0, _i18n.transI18n)('fmt_meetinginfo_tips_nobycanjoin')
|
|
100
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
101
|
+
type: _type.FcrIconType.FCR_HOME_CODE2,
|
|
102
|
+
className: "fcr-mobile-meeting-detail-meeting-lockicon",
|
|
103
|
+
size: 30,
|
|
104
|
+
colors: {
|
|
105
|
+
iconPrimary: 'var(--fcr_ui_scene_ramp_red5)'
|
|
106
|
+
}
|
|
107
|
+
})]
|
|
108
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
109
|
+
className: "fcr-mobile-meeting-details-card",
|
|
110
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
111
|
+
className: "fcr-mobile-meeting-details-card-item border",
|
|
112
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
113
|
+
className: "fcr-mobile-cfg-card-item-label",
|
|
114
|
+
children: (0, _i18n.transI18n)('fmt_meetingInfo_window_info_meetingID')
|
|
115
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
116
|
+
className: "fcr-mobile-cfg-card-item-action weight",
|
|
117
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
118
|
+
children: roomInfo === null || roomInfo === void 0 ? void 0 : roomInfo.roomId
|
|
119
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(FcrMobileCopyIcon, {
|
|
120
|
+
onClick: function onClick() {
|
|
121
|
+
return (0, _copy.handleCopyMeetingId)(roomInfo === null || roomInfo === void 0 ? void 0 : roomInfo.roomId);
|
|
122
|
+
}
|
|
123
|
+
})]
|
|
124
|
+
})]
|
|
125
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
126
|
+
className: "fcr-mobile-meeting-details-card-item border",
|
|
127
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
128
|
+
className: "fcr-mobile-cfg-card-item-label",
|
|
129
|
+
children: (0, _i18n.transI18n)('fmt_sharing_label_invitationlink')
|
|
130
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
131
|
+
className: "fcr-mobile-cfg-card-item-action weight",
|
|
132
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
133
|
+
className: "fcr-mobile-cfg-card-item-share-link",
|
|
134
|
+
children: shareLink
|
|
135
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(FcrMobileCopyIcon, {
|
|
136
|
+
onClick: function onClick() {
|
|
137
|
+
return (0, _copy.handleCopyMeetingInviteLink)(shareLink);
|
|
138
|
+
}
|
|
139
|
+
})]
|
|
140
|
+
})]
|
|
141
|
+
}), !!password && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
142
|
+
className: "fcr-mobile-meeting-details-card-item",
|
|
143
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
144
|
+
className: "fcr-mobile-cfg-card-item-label",
|
|
145
|
+
children: (0, _i18n.transI18n)('fmt_meetinginfo_label_code')
|
|
146
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
147
|
+
className: "fcr-mobile-cfg-card-item-action weight",
|
|
148
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
149
|
+
children: password
|
|
150
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(FcrMobileCopyIcon, {
|
|
151
|
+
onClick: function onClick() {
|
|
152
|
+
return (0, _copy.handleCopyMeetingPassword)(password !== null && password !== void 0 ? password : '');
|
|
153
|
+
}
|
|
154
|
+
})]
|
|
155
|
+
})]
|
|
156
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
157
|
+
className: "fcr-mobile-meeting-details-card-item",
|
|
158
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
159
|
+
className: "fcr-mobile-cfg-card-item-label",
|
|
160
|
+
children: (0, _i18n.transI18n)('fmt_meetinginfo_my_name_label')
|
|
161
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
162
|
+
className: "fcr-mobile-cfg-card-item-action weight",
|
|
163
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
164
|
+
style: {
|
|
165
|
+
marginRight: '32px'
|
|
166
|
+
},
|
|
167
|
+
children: localUser === null || localUser === void 0 ? void 0 : localUser.userName
|
|
168
|
+
})
|
|
169
|
+
})]
|
|
170
|
+
})]
|
|
171
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
172
|
+
className: "fcr-mobile-meeting-details-card",
|
|
173
|
+
style: {
|
|
174
|
+
marginTop: '30px'
|
|
175
|
+
},
|
|
176
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
177
|
+
className: "fcr-mobile-meeting-details-card-item",
|
|
178
|
+
onClick: function onClick() {
|
|
179
|
+
return (0, _copy.handleCopyMeetingDetail)(detailText);
|
|
180
|
+
},
|
|
181
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
182
|
+
className: "fcr-mobile-meeting-detail-copy-link-btn",
|
|
183
|
+
children: (0, _i18n.transI18n)('fmt_popup_button_meetinginfor')
|
|
184
|
+
})
|
|
185
|
+
})
|
|
186
|
+
})]
|
|
187
|
+
});
|
|
188
|
+
});
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
.fcr-mobile-cfg-card-item-quality-tag{
|
|
2
|
+
min-width: 45px;
|
|
3
|
+
height: 24px;
|
|
4
|
+
text-align: center;
|
|
5
|
+
line-height: 24px;
|
|
6
|
+
border-radius: var(--fcr_cornerradius_xxs);
|
|
7
|
+
font-weight: 400;
|
|
8
|
+
color: var(--fcr_ui_scene_white10);
|
|
9
|
+
font-size: 13px;
|
|
10
|
+
padding:0px 4px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.fcr-mobile-cfg-card-item-quality-tag.excellent{
|
|
14
|
+
background-color: var(--fcr_ui_scene_ramp_green6);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.fcr-mobile-cfg-card-item-quality-tag.average{
|
|
18
|
+
background-color: var(--fcr_ui_scene_ramp_2yellow6);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.fcr-mobile-cfg-card-item-quality-tag.poor{
|
|
22
|
+
background-color: var(--fcr_ui_scene_ramp_red6);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.fcr-mobile-network-rate-arrow{
|
|
26
|
+
margin-right: 4px;
|
|
27
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
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.NetQuality = void 0;
|
|
8
|
+
require("core-js/modules/es.array.concat.js");
|
|
9
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
10
|
+
require("./index.css");
|
|
11
|
+
var _react = require("react");
|
|
12
|
+
var _context = require("../../context");
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
+
var NetQuality = exports.NetQuality = function NetQuality() {
|
|
15
|
+
var _useContext = (0, _react.useContext)(_context.StoreContext),
|
|
16
|
+
networkStats = _useContext.networkStats,
|
|
17
|
+
networkStatus = _useContext.networkStatus;
|
|
18
|
+
var MOBILE_NET_QUALITY_DICT = {
|
|
19
|
+
excellent: (0, _i18n.transI18n)('fmt_networkstatus_window_rate_good'),
|
|
20
|
+
average: (0, _i18n.transI18n)('fmt_networkstatus_window_rate_medium'),
|
|
21
|
+
poor: (0, _i18n.transI18n)('fmt_networkstatus_window_rate_bad'),
|
|
22
|
+
unknown: 'unknown'
|
|
23
|
+
};
|
|
24
|
+
var netStateVal = MOBILE_NET_QUALITY_DICT[networkStatus];
|
|
25
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
26
|
+
className: "fcr-mobile-meeting-detail-net-quality",
|
|
27
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
28
|
+
className: "fcr-mobile-meeting-details-card",
|
|
29
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
30
|
+
className: "fcr-mobile-meeting-details-card-item border",
|
|
31
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
32
|
+
className: "fcr-mobile-cfg-card-item-label",
|
|
33
|
+
children: (0, _i18n.transI18n)('fmt_statusbar_label_networkpaused')
|
|
34
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
35
|
+
className: "fcr-mobile-cfg-card-item-action",
|
|
36
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
37
|
+
className: "fcr-mobile-cfg-card-item-quality-tag ".concat(networkStatus),
|
|
38
|
+
children: netStateVal
|
|
39
|
+
})
|
|
40
|
+
})]
|
|
41
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
42
|
+
className: "fcr-mobile-meeting-details-card-item border",
|
|
43
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
44
|
+
className: "fcr-mobile-cfg-card-item-label",
|
|
45
|
+
children: (0, _i18n.transI18n)('fmt_networkstatus_window_latency')
|
|
46
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
47
|
+
className: "fcr-mobile-cfg-card-item-action",
|
|
48
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
49
|
+
children: "".concat(networkStats.networkDelay, " ").concat((0, _i18n.transI18n)('fmt_statusbar_label_millisecond'))
|
|
50
|
+
})
|
|
51
|
+
})]
|
|
52
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
53
|
+
className: "fcr-mobile-meeting-details-card-item",
|
|
54
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
55
|
+
className: "fcr-mobile-cfg-card-item-label",
|
|
56
|
+
children: (0, _i18n.transI18n)('fmt_networkstatus_up_loss')
|
|
57
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
58
|
+
className: "fcr-mobile-cfg-card-item-action",
|
|
59
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
60
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
61
|
+
className: "fcr-mobile-network-rate-arrow",
|
|
62
|
+
children: "\u2191"
|
|
63
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
64
|
+
children: [networkStats.uplinkPacketLossRate, "%"]
|
|
65
|
+
})]
|
|
66
|
+
})
|
|
67
|
+
})]
|
|
68
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
69
|
+
className: "fcr-mobile-meeting-details-card-item",
|
|
70
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
71
|
+
className: "fcr-mobile-cfg-card-item-label",
|
|
72
|
+
children: (0, _i18n.transI18n)('fmt_networkstatus_down_loss')
|
|
73
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
74
|
+
className: "fcr-mobile-cfg-card-item-action",
|
|
75
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
76
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
77
|
+
className: "fcr-mobile-network-rate-arrow",
|
|
78
|
+
children: "\u2193"
|
|
79
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
80
|
+
children: [networkStats.downlinkPacketLossRate, "%"]
|
|
81
|
+
})]
|
|
82
|
+
})
|
|
83
|
+
})]
|
|
84
|
+
})]
|
|
85
|
+
})
|
|
86
|
+
});
|
|
87
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { FcrRecordingState, FcrRoomInfo, FcrRoomSchedule, FcrUserInfo } from 'fcr-core/lib/type';
|
|
2
|
+
import { FcrUIEventStore } from '../../common/event-store';
|
|
3
|
+
import { FcrSecurityStore } from '../../common/security-store';
|
|
4
|
+
import { FcrUISceneConfig } from '../../type';
|
|
5
|
+
import { FcrMainRoomControl, FcrWaitingRoomControl } from 'fcr-core/lib/room-control/type';
|
|
6
|
+
export type NetworkStatus = 'excellent' | 'average' | 'poor' | 'unknown';
|
|
7
|
+
export declare const GALLERY_MIN_SIZE = 825;
|
|
8
|
+
export default class StateBarStore {
|
|
9
|
+
protected logger: import("agora-foundation/lib/logger").Logger;
|
|
10
|
+
private _disposer;
|
|
11
|
+
private _roomControl;
|
|
12
|
+
private _uiEventStore;
|
|
13
|
+
private _securityStore;
|
|
14
|
+
private _config;
|
|
15
|
+
private _roomObserver;
|
|
16
|
+
private _eventObserver;
|
|
17
|
+
accessor networkStatus: NetworkStatus;
|
|
18
|
+
accessor localUser: FcrUserInfo | undefined;
|
|
19
|
+
accessor roomInfo: FcrRoomInfo | undefined;
|
|
20
|
+
accessor scheduleInfo: FcrRoomSchedule | undefined;
|
|
21
|
+
accessor isLiveStreaming: boolean;
|
|
22
|
+
accessor liveStreamingPlayUrl: string;
|
|
23
|
+
accessor galleryWidth: number;
|
|
24
|
+
accessor browserWidth: number;
|
|
25
|
+
accessor networkStats: {
|
|
26
|
+
uplinkPacketLossRate: string;
|
|
27
|
+
downlinkPacketLossRate: string;
|
|
28
|
+
networkDelay: string;
|
|
29
|
+
};
|
|
30
|
+
accessor attendeeCount: number;
|
|
31
|
+
accessor asideOpenedItem: Set<string>;
|
|
32
|
+
accessor layoutSize: 16 | 25;
|
|
33
|
+
accessor layoutView: 'speaker' | 'gallery';
|
|
34
|
+
accessor cloudRecordingState: FcrRecordingState;
|
|
35
|
+
accessor meetingDetailPopoverOpened: boolean;
|
|
36
|
+
get isUserHost(): boolean;
|
|
37
|
+
get shouldShowMeetingTime(): number | undefined;
|
|
38
|
+
get hasStartCloudRecordingPermission(): boolean;
|
|
39
|
+
get hasStopLiveStreamingPermission(): boolean;
|
|
40
|
+
get hasGetLiveStreamingLinkPermission(): boolean;
|
|
41
|
+
get password(): string | undefined;
|
|
42
|
+
get inviteLink(): string;
|
|
43
|
+
constructor({ roomControl, uiEventStore, securityStore, config, }: {
|
|
44
|
+
roomControl: FcrMainRoomControl | FcrWaitingRoomControl;
|
|
45
|
+
uiEventStore: FcrUIEventStore;
|
|
46
|
+
securityStore: FcrSecurityStore;
|
|
47
|
+
config: FcrUISceneConfig;
|
|
48
|
+
});
|
|
49
|
+
isLockRoomEnabled(): boolean;
|
|
50
|
+
setNetworkStatus(networkStatus: NetworkStatus): void;
|
|
51
|
+
setLocalUser(localUser: FcrUserInfo): void;
|
|
52
|
+
setRoomInfo(roomInfo: FcrRoomInfo | undefined): void;
|
|
53
|
+
setScheduleInfo(scheduleInfo: FcrRoomSchedule): void;
|
|
54
|
+
toggleLayout(layout: 'speaker' | 'gallery'): void;
|
|
55
|
+
toggleLayoutBarLock(state: boolean): void;
|
|
56
|
+
openVideoWindowDialog(): void;
|
|
57
|
+
refreshLayoutSize(size: 16 | 25): void;
|
|
58
|
+
release(): void;
|
|
59
|
+
stopLiveStreamingDialog(): void;
|
|
60
|
+
startCloudRecording(): void;
|
|
61
|
+
pauseCloudRecording(): void;
|
|
62
|
+
resumeCloudRecording(): void;
|
|
63
|
+
stopCloudRecording(): void;
|
|
64
|
+
getShareLink(): string;
|
|
65
|
+
toastCopyInfo(type: 'error' | 'warn' | 'info' | 'normal', content: string): void;
|
|
66
|
+
private _onNetworkQualityUpdated;
|
|
67
|
+
private _uiEvents;
|
|
68
|
+
private _onNetworkStatsUpdated;
|
|
69
|
+
private _onLiveStreamingStateUpdated;
|
|
70
|
+
private _onCloudRecordingStateUpdated;
|
|
71
|
+
private _initRoomInfo;
|
|
72
|
+
setMeetingDetailPopoverOpened(isOpen: boolean): void;
|
|
73
|
+
end(): void;
|
|
74
|
+
getRoomType(): import("fcr-core/lib/room-control/type").FcrRoomType | undefined;
|
|
75
|
+
leave(): void;
|
|
76
|
+
}
|