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,126 @@
|
|
|
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.FcrMobileMorePopup = void 0;
|
|
8
|
+
var _popup = require("agora-ui-foundation/lib/components/popup");
|
|
9
|
+
var _mobile = require("agora-ui-foundation/lib/components/switch/mobile");
|
|
10
|
+
var _mobxReact = require("mobx-react");
|
|
11
|
+
var _react = require("react");
|
|
12
|
+
require("./index.css");
|
|
13
|
+
var _globalContext = require("../../../common/global-context");
|
|
14
|
+
var _type = require("fcr-core/lib/type");
|
|
15
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
16
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
+
var FcrMobileMorePopup = exports.FcrMobileMorePopup = (0, _mobxReact.observer)(function () {
|
|
18
|
+
var _useContext = (0, _react.useContext)(_globalContext.FcrMobileGlobalContext),
|
|
19
|
+
settingStore = _useContext.settingStore,
|
|
20
|
+
securityStore = _useContext.securityStore;
|
|
21
|
+
var morePopoverOpened = settingStore.morePopoverOpened,
|
|
22
|
+
setMorePopoverOpened = settingStore.setMorePopoverOpened,
|
|
23
|
+
setting = settingStore.setting,
|
|
24
|
+
setSetting = settingStore.setSetting;
|
|
25
|
+
var setAllowWaterMark = securityStore.setAllowWaterMark,
|
|
26
|
+
isWaterMarkEnabled = securityStore.isWaterMarkEnabled,
|
|
27
|
+
isMulti = securityStore.isMulti;
|
|
28
|
+
var waterMarkEnabled = isWaterMarkEnabled();
|
|
29
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_popup.FcrPopup, {
|
|
30
|
+
showCloseButton: true,
|
|
31
|
+
visible: morePopoverOpened,
|
|
32
|
+
onMaskClick: function onMaskClick() {
|
|
33
|
+
setMorePopoverOpened(false);
|
|
34
|
+
},
|
|
35
|
+
onClose: function onClose() {
|
|
36
|
+
setMorePopoverOpened(false);
|
|
37
|
+
},
|
|
38
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
39
|
+
className: "fcr-mobile-more-cfg-con-wrap",
|
|
40
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
41
|
+
className: "fcr-mobile-more-cfg-con-header",
|
|
42
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
43
|
+
className: "fcr-mobile-more-cfg-con-header-title",
|
|
44
|
+
children: (0, _i18n.transI18n)('fmt_h_label_more_function')
|
|
45
|
+
})
|
|
46
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
47
|
+
className: "fcr-mobile-cfg-body",
|
|
48
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
49
|
+
className: "fcr-mobile-more-cfg-card",
|
|
50
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
51
|
+
className: "fcr-mobile-more-cfg-card-item border",
|
|
52
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
53
|
+
className: "fcr-mobile-cfg-card-item-label",
|
|
54
|
+
children: (0, _i18n.transI18n)('fmt_internalsetting_other_spot_light')
|
|
55
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_mobile.FcrMobileSwitch, {
|
|
56
|
+
value: setting.spotlightEnabled,
|
|
57
|
+
onChange: function onChange(v) {
|
|
58
|
+
return setSetting({
|
|
59
|
+
spotlightEnabled: v
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
})]
|
|
63
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
64
|
+
className: "fcr-mobile-more-cfg-card-item border",
|
|
65
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
66
|
+
className: "fcr-mobile-cfg-card-item-label",
|
|
67
|
+
children: (0, _i18n.transI18n)('fmt_setting_option_hidenonvideo')
|
|
68
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_mobile.FcrMobileSwitch, {
|
|
69
|
+
value: setting.shouldHideNonVideoParticipants,
|
|
70
|
+
onChange: function onChange(v) {
|
|
71
|
+
return setSetting({
|
|
72
|
+
shouldHideNonVideoParticipants: v
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
})]
|
|
76
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
77
|
+
className: "fcr-mobile-more-cfg-card-item border",
|
|
78
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
79
|
+
className: "fcr-mobile-cfg-card-item-label",
|
|
80
|
+
children: (0, _i18n.transI18n)('fmt_uimanager_labels_mirror')
|
|
81
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_mobile.FcrMobileSwitch, {
|
|
82
|
+
value: setting.localMirror,
|
|
83
|
+
onChange: function onChange(v) {
|
|
84
|
+
return setSetting({
|
|
85
|
+
localMirror: v
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
})]
|
|
89
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
90
|
+
className: "fcr-mobile-more-cfg-card-item",
|
|
91
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
92
|
+
className: "fcr-mobile-cfg-card-item-label",
|
|
93
|
+
children: (0, _i18n.transI18n)('fmt_security_setting_label_watermark')
|
|
94
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_mobile.FcrMobileSwitch, {
|
|
95
|
+
value: waterMarkEnabled,
|
|
96
|
+
onChange: function onChange() {
|
|
97
|
+
return setAllowWaterMark(!waterMarkEnabled, void 0);
|
|
98
|
+
}
|
|
99
|
+
})]
|
|
100
|
+
}), waterMarkEnabled ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
101
|
+
className: "fcr-mobile-more-cfg-card-item",
|
|
102
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
103
|
+
className: "fcr-mobile-cfg-card-item-label",
|
|
104
|
+
children: (0, _i18n.transI18n)('fmt_security_setting_mobile_label_watermark_style')
|
|
105
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
106
|
+
className: "fcr-mobile-more-cfg-card-item-linechoose",
|
|
107
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
108
|
+
className: "fcr-mobile-more-cfg-card-item-btn ".concat(isMulti() ? '' : 'active'),
|
|
109
|
+
onClick: function onClick() {
|
|
110
|
+
setAllowWaterMark(waterMarkEnabled, _type.FcrLineType.SINGLE_ROW);
|
|
111
|
+
},
|
|
112
|
+
children: (0, _i18n.transI18n)('fmt_security_setting_mobile_option_watermark_style_single')
|
|
113
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
114
|
+
className: "fcr-mobile-more-cfg-card-item-btn ".concat(isMulti() ? 'active' : ''),
|
|
115
|
+
onClick: function onClick() {
|
|
116
|
+
setAllowWaterMark(waterMarkEnabled, _type.FcrLineType.MULTI_ROW);
|
|
117
|
+
},
|
|
118
|
+
children: (0, _i18n.transI18n)('fmt_security_setting_mobile_option_watermark_style_multi')
|
|
119
|
+
})]
|
|
120
|
+
})]
|
|
121
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {})]
|
|
122
|
+
})
|
|
123
|
+
})]
|
|
124
|
+
})
|
|
125
|
+
});
|
|
126
|
+
});
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { FcrBaseRoomControl, FcrDesktopMediaControl, FcrStreamControl, FcrUserControl } from 'fcr-core';
|
|
2
|
+
import { FcrLiveStreamingState, FcrRecordingState, FcrUserInfo, FcrUserRole, FcrLineType } from 'fcr-core/lib/type';
|
|
3
|
+
import { FcrUIEventStore } from '../../common/event-store';
|
|
4
|
+
import { RoomType } from '../../utilities/constant';
|
|
5
|
+
import { FcrSecurityStore } from '../../common/security-store';
|
|
6
|
+
import { FcrDeviceStore } from '../../common/device-store';
|
|
7
|
+
import { ConnectType, ConnectionTabType } from './type';
|
|
8
|
+
import { FcrDeviceStreamStore } from '../../common/device-stream-store';
|
|
9
|
+
import { FcrChatRoomReceiveBaseMessage } from 'fcr-core/lib/room-control/chatroom-control/type';
|
|
10
|
+
import { FcrUserKickedOutType } from 'fcr-core/lib/room-control/user-control/type';
|
|
11
|
+
import { FcrRoomType } from 'fcr-core/lib/room-control/type';
|
|
12
|
+
interface ActionBarStoreArgs {
|
|
13
|
+
roomControl: FcrBaseRoomControl;
|
|
14
|
+
userControl: FcrUserControl;
|
|
15
|
+
uiEventStore: FcrUIEventStore;
|
|
16
|
+
deviceStore: FcrDeviceStore;
|
|
17
|
+
deviceStreamStore: FcrDeviceStreamStore;
|
|
18
|
+
securityStore: FcrSecurityStore;
|
|
19
|
+
streamControl: FcrStreamControl;
|
|
20
|
+
mediaControl: FcrDesktopMediaControl;
|
|
21
|
+
}
|
|
22
|
+
export declare enum MoreMenuType {
|
|
23
|
+
DEFAULT = 0,
|
|
24
|
+
SECURITY = 1
|
|
25
|
+
}
|
|
26
|
+
export declare enum AudioConnectType {
|
|
27
|
+
NONE = 0,
|
|
28
|
+
COMPUTER = 1,
|
|
29
|
+
PHONE = 2
|
|
30
|
+
}
|
|
31
|
+
type ChatRoomStoreMap = {
|
|
32
|
+
[K in RoomType]?: number;
|
|
33
|
+
};
|
|
34
|
+
export default class ActionBarStore {
|
|
35
|
+
protected logger: import("agora-foundation/lib/logger").Logger;
|
|
36
|
+
private _disposers;
|
|
37
|
+
private _chatRenderAt;
|
|
38
|
+
private _participantsRenderAt;
|
|
39
|
+
private _roomControl;
|
|
40
|
+
private _waitingRoomControl?;
|
|
41
|
+
private _userControl;
|
|
42
|
+
private _streamControl;
|
|
43
|
+
private _mediaControl;
|
|
44
|
+
private _deviceStore;
|
|
45
|
+
private _deviceStreamStore;
|
|
46
|
+
private _uiEventStore;
|
|
47
|
+
private _securityStore;
|
|
48
|
+
private _screenVideoTrack;
|
|
49
|
+
private _userObserver;
|
|
50
|
+
private _waitingRoomUserObserver;
|
|
51
|
+
private _roomObserver;
|
|
52
|
+
private _uiEventObserver;
|
|
53
|
+
private _streamObserver;
|
|
54
|
+
private _deviceObserver;
|
|
55
|
+
private _observer;
|
|
56
|
+
private _openedDialogIdMap;
|
|
57
|
+
private _participantVisible;
|
|
58
|
+
private _chatVisible;
|
|
59
|
+
private _liveStreamingDialogId;
|
|
60
|
+
private _newMessageTooltipTimer;
|
|
61
|
+
private _hideBarArrowTimer;
|
|
62
|
+
private _sharingOwnerUser;
|
|
63
|
+
private _participantTab;
|
|
64
|
+
accessor users: FcrUserInfo[];
|
|
65
|
+
accessor newMessageTooltipVisible: boolean;
|
|
66
|
+
accessor newMessageCount: ChatRoomStoreMap;
|
|
67
|
+
accessor latestMessage: FcrChatRoomReceiveBaseMessage | undefined;
|
|
68
|
+
accessor totalUser: number;
|
|
69
|
+
accessor totalWaitingRoomUser: number;
|
|
70
|
+
accessor liveStreamingState: FcrLiveStreamingState;
|
|
71
|
+
accessor currentMenuIs: MoreMenuType;
|
|
72
|
+
accessor cloudRecordingState: FcrRecordingState;
|
|
73
|
+
accessor localUserRole: FcrUserRole;
|
|
74
|
+
accessor localUser: FcrUserInfo;
|
|
75
|
+
accessor connectionSettingVisible: boolean;
|
|
76
|
+
accessor connectType: ConnectType;
|
|
77
|
+
accessor folded: boolean;
|
|
78
|
+
accessor boardOwnerUser: FcrUserInfo | null;
|
|
79
|
+
accessor hasScreenShare: boolean;
|
|
80
|
+
accessor showArrow: boolean;
|
|
81
|
+
accessor phoneMicEnabled: boolean;
|
|
82
|
+
accessor isNewWaitingRoomUserEnter: boolean;
|
|
83
|
+
accessor chatTabIndex: string;
|
|
84
|
+
accessor popoverOpened: boolean;
|
|
85
|
+
accessor participantsPopoverOpened: boolean;
|
|
86
|
+
constructor(args: ActionBarStoreArgs);
|
|
87
|
+
get remoteUsers(): FcrUserInfo[];
|
|
88
|
+
get hasStartScreenSharePermission(): boolean;
|
|
89
|
+
get hasStartLiveStreamingPermission(): boolean;
|
|
90
|
+
get hasEnableStartAudioPermission(): boolean;
|
|
91
|
+
get hasEnableChangeNamePermission(): boolean;
|
|
92
|
+
get hasEnableStartVideoPermission(): boolean;
|
|
93
|
+
get hasLockRoomPermission(): boolean;
|
|
94
|
+
get hasWaitingRoomPermission(): boolean;
|
|
95
|
+
get hasWatermarkEnablePermission(): boolean;
|
|
96
|
+
get hasWatermarkDisablePermission(): boolean;
|
|
97
|
+
get hasEnableStartSharePermission(): boolean;
|
|
98
|
+
get hasAllowWriteBoardPermission(): boolean;
|
|
99
|
+
get hasCloseWriteBoardPermission(): boolean;
|
|
100
|
+
get hasAllowScreenShareAndBoardPermission(): boolean;
|
|
101
|
+
get hasAllowChatPermission(): boolean;
|
|
102
|
+
get hasStartCloudRecordingPermission(): boolean;
|
|
103
|
+
get hasAssignHostBeforeLeavingPermission(): boolean;
|
|
104
|
+
get hasEndRoomPermission(): boolean;
|
|
105
|
+
get isScreenShareAndBoardEnabled(): boolean;
|
|
106
|
+
get isBoardWriteEnabled(): boolean;
|
|
107
|
+
get isWaterMarkEnabled(): boolean;
|
|
108
|
+
get isMulti(): boolean;
|
|
109
|
+
get isPstnUser(): boolean;
|
|
110
|
+
get cameraEnabled(): boolean;
|
|
111
|
+
get cameraId(): string;
|
|
112
|
+
get cameraList(): import("agora-rte-sdk").AgoraRtcDeviceInfo[];
|
|
113
|
+
get microphoneEnabled(): boolean;
|
|
114
|
+
get microphoneId(): string;
|
|
115
|
+
get microphoneVolumeLevel(): number;
|
|
116
|
+
get microphoneList(): import("agora-rte-sdk").AgoraRtcDeviceInfo[];
|
|
117
|
+
get speakerId(): string;
|
|
118
|
+
get speakerList(): import("agora-rte-sdk").AgoraRtcDeviceInfo[];
|
|
119
|
+
get allNewMessage(): number;
|
|
120
|
+
get isMainRoom(): boolean;
|
|
121
|
+
pauseCloudRecording(): void;
|
|
122
|
+
resumeCloudRecording(): void;
|
|
123
|
+
stopCloudRecording(): void;
|
|
124
|
+
startCloudRecording(): void;
|
|
125
|
+
toggleLayoutBarLock(payload: boolean): void;
|
|
126
|
+
showNewMessageTooltip(): void;
|
|
127
|
+
hideNewMessageTooltip(): void;
|
|
128
|
+
switchMenu(value?: MoreMenuType): void;
|
|
129
|
+
get isLocked(): boolean;
|
|
130
|
+
isWaitingRoomEnabled(): boolean;
|
|
131
|
+
enableCamera(enable: boolean): void;
|
|
132
|
+
enableMicrophone(enable: boolean): void;
|
|
133
|
+
closeSpeaker(): void;
|
|
134
|
+
setAllowBoardWrite(): Promise<void>;
|
|
135
|
+
setAllowScreenShare(): Promise<void>;
|
|
136
|
+
closeBoard(): void;
|
|
137
|
+
assignHost(user: FcrUserInfo): void;
|
|
138
|
+
leave(): void;
|
|
139
|
+
keepPhoneAudioConnection(): void;
|
|
140
|
+
setPopoverOpened(isShow: boolean): void;
|
|
141
|
+
getRoomType(): FcrRoomType | undefined;
|
|
142
|
+
end(): void;
|
|
143
|
+
release(): void;
|
|
144
|
+
allowJoinWithMuteAudio(): boolean;
|
|
145
|
+
setAllowJoinWithMuteAudio(enable: boolean): void;
|
|
146
|
+
isLockRoomEnabled(): boolean;
|
|
147
|
+
setLockRoomEnabled(enable: boolean): void;
|
|
148
|
+
setAllowShareScreen(enable: boolean): void;
|
|
149
|
+
allowShareScreen(): boolean;
|
|
150
|
+
allowWriteBoard(): boolean;
|
|
151
|
+
allowChat(): boolean;
|
|
152
|
+
setAllowChat(enable: boolean): void;
|
|
153
|
+
allowUnmuteSelfAudio(): boolean;
|
|
154
|
+
setAllowUnmuteSelfAudio(enable: boolean): void;
|
|
155
|
+
allowUnmuteSelfVideo(): boolean;
|
|
156
|
+
setAllowUnmuteSelfVideo(enable: boolean): void;
|
|
157
|
+
toggleChat(): void;
|
|
158
|
+
openChat(): void;
|
|
159
|
+
closeChat(): void;
|
|
160
|
+
toggleParticipants(): void;
|
|
161
|
+
openParticipants(): void;
|
|
162
|
+
closeParticipants(): void;
|
|
163
|
+
startScreenShare(): void;
|
|
164
|
+
openWhiteboard(): void;
|
|
165
|
+
closeWhiteboard(): void;
|
|
166
|
+
closeLiveStreamingDialog(): void;
|
|
167
|
+
toggleConnection(): void;
|
|
168
|
+
openConnection(type: ConnectionTabType): void;
|
|
169
|
+
closeConnection(): void;
|
|
170
|
+
toggleFold(): void;
|
|
171
|
+
setShowArrow(show: boolean): void;
|
|
172
|
+
setEnableWaitingRoom(enable: boolean, isNeedShowDialog: boolean): Promise<void>;
|
|
173
|
+
kickOutWaitingRoomAllMember(type: FcrUserKickedOutType): Promise<void>;
|
|
174
|
+
moveToMainRoomAllMember(): Promise<void>;
|
|
175
|
+
private _interceptShareScreen;
|
|
176
|
+
private _handleRemoteUsersJoined;
|
|
177
|
+
private _handleRemoteUsersLeft;
|
|
178
|
+
private _handleAllUserCountUpdated;
|
|
179
|
+
private _getWaitingRoomUserCount;
|
|
180
|
+
private _handleRemoteWaitingUserLeft;
|
|
181
|
+
private _handleRemoteWaitingUserJoined;
|
|
182
|
+
private _handleUserInfoUpdated;
|
|
183
|
+
private _handleLiveStreamingStateUpdated;
|
|
184
|
+
private _handleNewMessageEvent;
|
|
185
|
+
private _handleChatVisible;
|
|
186
|
+
private _handlerTraceScreenCaptureStateUpdate;
|
|
187
|
+
setAllowWaterMark(): void;
|
|
188
|
+
setWaterMarkLineType(lineType: FcrLineType): void;
|
|
189
|
+
private _onEvent;
|
|
190
|
+
private _operateWaitingRoom;
|
|
191
|
+
private _handleCloudRecordingStateUpdated;
|
|
192
|
+
private _handleStreamsAddedOrUpdated;
|
|
193
|
+
setParticipantsPopoverOpened(visible: boolean): void;
|
|
194
|
+
private _handleMicrophoneChanged;
|
|
195
|
+
}
|
|
196
|
+
export {};
|