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,98 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.array.iterator.js");
|
|
4
|
+
require("core-js/modules/es.object.define-property.js");
|
|
5
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
6
|
+
require("core-js/modules/es.string.iterator.js");
|
|
7
|
+
require("core-js/modules/es.weak-map.js");
|
|
8
|
+
require("core-js/modules/esnext.weak-map.delete-all.js");
|
|
9
|
+
require("core-js/modules/esnext.weak-map.emplace.js");
|
|
10
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
11
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
12
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
13
|
+
Object.defineProperty(exports, "__esModule", {
|
|
14
|
+
value: true
|
|
15
|
+
});
|
|
16
|
+
exports.Layout = void 0;
|
|
17
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
18
|
+
require("core-js/modules/es.object.to-string.js");
|
|
19
|
+
require("core-js/modules/es.promise.js");
|
|
20
|
+
require("core-js/modules/web.timers.js");
|
|
21
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
22
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
23
|
+
var _mobxReact = require("mobx-react");
|
|
24
|
+
var _react = require("react");
|
|
25
|
+
var _context2 = require("../context");
|
|
26
|
+
var _useIsNodePresent2 = require("../../../hooks/useIsNodePresent");
|
|
27
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
28
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
29
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
30
|
+
var Layout = exports.Layout = (0, _mobxReact.observer)(function () {
|
|
31
|
+
var layoutStore = (0, _react.useContext)(_context2.LayoutStoreContext);
|
|
32
|
+
var actionBar = layoutStore.actionBar,
|
|
33
|
+
stateBar = layoutStore.stateBar,
|
|
34
|
+
memberLayout = layoutStore.memberLayout,
|
|
35
|
+
fetchModuleAfterLCP = layoutStore.fetchModuleAfterLCP;
|
|
36
|
+
var mainLayoutRef = (0, _react.useRef)(null);
|
|
37
|
+
var _useState = (0, _react.useState)(),
|
|
38
|
+
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
39
|
+
BottomDrawer = _useState2[0],
|
|
40
|
+
setBottomDrawer = _useState2[1];
|
|
41
|
+
var _useState3 = (0, _react.useState)(),
|
|
42
|
+
_useState4 = (0, _slicedToArray2["default"])(_useState3, 2),
|
|
43
|
+
FcrMobileRequestEquipPopup = _useState4[0],
|
|
44
|
+
setFcrMobileRequestEquipPopup = _useState4[1];
|
|
45
|
+
var _useIsNodePresent = (0, _useIsNodePresent2.useIsNodePresent)('.fcr-member-layout'),
|
|
46
|
+
isNodePresent = _useIsNodePresent.isNodePresent;
|
|
47
|
+
var fetchCompsAfterLCP = function fetchCompsAfterLCP() {
|
|
48
|
+
return new Promise(/*#__PURE__*/function () {
|
|
49
|
+
var _ref = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(resolve) {
|
|
50
|
+
var bottomDrawer, fcrMobileRequestEquipPopupn;
|
|
51
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
52
|
+
while (1) switch (_context.prev = _context.next) {
|
|
53
|
+
case 0:
|
|
54
|
+
_context.next = 2;
|
|
55
|
+
return Promise.resolve().then(function () {
|
|
56
|
+
return _interopRequireWildcard(require('../bottom-drawer'));
|
|
57
|
+
});
|
|
58
|
+
case 2:
|
|
59
|
+
bottomDrawer = _context.sent["default"];
|
|
60
|
+
setBottomDrawer(bottomDrawer);
|
|
61
|
+
_context.next = 6;
|
|
62
|
+
return Promise.resolve().then(function () {
|
|
63
|
+
return _interopRequireWildcard(require('./equip-request-popup'));
|
|
64
|
+
});
|
|
65
|
+
case 6:
|
|
66
|
+
fcrMobileRequestEquipPopupn = _context.sent["default"];
|
|
67
|
+
setFcrMobileRequestEquipPopup(fcrMobileRequestEquipPopupn);
|
|
68
|
+
resolve(true);
|
|
69
|
+
case 9:
|
|
70
|
+
case "end":
|
|
71
|
+
return _context.stop();
|
|
72
|
+
}
|
|
73
|
+
}, _callee);
|
|
74
|
+
}));
|
|
75
|
+
return function (_x) {
|
|
76
|
+
return _ref.apply(this, arguments);
|
|
77
|
+
};
|
|
78
|
+
}());
|
|
79
|
+
};
|
|
80
|
+
(0, _react.useEffect)(function () {
|
|
81
|
+
if (isNodePresent) {
|
|
82
|
+
setTimeout(function () {
|
|
83
|
+
console.log('Pulling non first screen resources');
|
|
84
|
+
// 客户现在可以看到status-bar action-bar与中间的视窗了
|
|
85
|
+
// 然后我们去初始化非首屏的UIModule
|
|
86
|
+
fetchModuleAfterLCP();
|
|
87
|
+
fetchCompsAfterLCP();
|
|
88
|
+
}, 400);
|
|
89
|
+
}
|
|
90
|
+
}, [isNodePresent]);
|
|
91
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
92
|
+
className: "fcr-mobile-gallery-main-layout",
|
|
93
|
+
ref: mainLayoutRef,
|
|
94
|
+
children: [stateBar, memberLayout, actionBar, mainLayoutRef && mainLayoutRef.current && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
95
|
+
children: [BottomDrawer ? BottomDrawer : /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {}), FcrMobileRequestEquipPopup ? FcrMobileRequestEquipPopup : /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {})]
|
|
96
|
+
})]
|
|
97
|
+
});
|
|
98
|
+
});
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
.fcr-mobile-request-equip-wrap{
|
|
2
|
+
padding: 24px 20px;
|
|
3
|
+
text-align: center;
|
|
4
|
+
}
|
|
5
|
+
.fcr-mobile-request-equip-title{
|
|
6
|
+
color: var(--fcr_ui_scene_icontext1);
|
|
7
|
+
font-size: 20px;
|
|
8
|
+
margin-bottom: 20px;
|
|
9
|
+
}
|
|
10
|
+
.fcr-mobile-request-equip-tip-content{
|
|
11
|
+
color: var(--fcr_ui_scene_icontext1);
|
|
12
|
+
font-size: 14px;
|
|
13
|
+
margin-bottom: 20px;
|
|
14
|
+
}
|
|
15
|
+
.fcr-mobile-request-equip-tip-btns{
|
|
16
|
+
display: flex;
|
|
17
|
+
justify-content: space-between;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.fcr-mobile-request-equip-tip-btns .fcr-mobile-request-equip-tip-btn{
|
|
21
|
+
width:153px;
|
|
22
|
+
height: 40px;
|
|
23
|
+
color: var(--fcr_ui_scene_white10);
|
|
24
|
+
font-size: 15px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.fcr-mobile-request-equip-tip-btns .fcr-mobile-request-equip-tip-btn.cancel{
|
|
28
|
+
background-color: var(--fcr_mobile_ui_scene_fill2);
|
|
29
|
+
color: var(--fcr_ui_scene_icontext2);
|
|
30
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
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["default"] = void 0;
|
|
8
|
+
var _popup = require("agora-ui-foundation/lib/components/popup");
|
|
9
|
+
var _mobxReact = require("mobx-react");
|
|
10
|
+
var _react = require("react");
|
|
11
|
+
var _globalContext = require("../../../../common/global-context");
|
|
12
|
+
var _participantStore = require("../../../../common/participant-store");
|
|
13
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
14
|
+
var _type = require("../../../../type");
|
|
15
|
+
var _button = require("agora-ui-foundation/lib/components/button");
|
|
16
|
+
require("./index.css");
|
|
17
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
|
+
var FcrMobileRequestEquipPopup = (0, _mobxReact.observer)(function () {
|
|
19
|
+
var _useContext = (0, _react.useContext)(_globalContext.FcrMobileGlobalContext),
|
|
20
|
+
participantStore = _useContext.participantStore;
|
|
21
|
+
var requestEquipPopupShow = participantStore.requestEquipPopupShow,
|
|
22
|
+
requestEquipType = participantStore.requestEquipType,
|
|
23
|
+
requestEquipSenderRole = participantStore.requestEquipSenderRole,
|
|
24
|
+
cancelRequestEquip = participantStore.cancelRequestEquip,
|
|
25
|
+
confirmRequestEquip = participantStore.confirmRequestEquip;
|
|
26
|
+
var title = requestEquipType === _participantStore.EquipRequstType.VIDEO ? (0, _i18n.transI18n)('fmt_attendies_tips_apply_video_title', {
|
|
27
|
+
reason1: (0, _i18n.transI18n)(_type.userRoleI18nKey[requestEquipSenderRole])
|
|
28
|
+
}) : (0, _i18n.transI18n)('fmt_attendies_tips_apply_audio_title', {
|
|
29
|
+
reason1: (0, _i18n.transI18n)(_type.userRoleI18nKey[requestEquipSenderRole])
|
|
30
|
+
});
|
|
31
|
+
var cancelBtnText = requestEquipType === _participantStore.EquipRequstType.VIDEO ? (0, _i18n.transI18n)('fmt_additional_button_refuse') : (0, _i18n.transI18n)('fmt_additional_options_Keepsilent');
|
|
32
|
+
var confirmBtnText = requestEquipType === _participantStore.EquipRequstType.VIDEO ? (0, _i18n.transI18n)('fmt_additional_button_accept') : (0, _i18n.transI18n)('fmt_device_label_audio_unmute');
|
|
33
|
+
var tipContent = requestEquipType === _participantStore.EquipRequstType.VIDEO ? (0, _i18n.transI18n)('fmt_additional_tips_cameraturnon') : (0, _i18n.transI18n)('fmt_additional_tips_agreeturnon');
|
|
34
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_popup.FcrPopup, {
|
|
35
|
+
showCloseButton: false,
|
|
36
|
+
visible: requestEquipPopupShow,
|
|
37
|
+
bodyStyle: {
|
|
38
|
+
height: '172px'
|
|
39
|
+
},
|
|
40
|
+
onMaskClick: function onMaskClick() {
|
|
41
|
+
cancelRequestEquip();
|
|
42
|
+
},
|
|
43
|
+
onClose: function onClose() {
|
|
44
|
+
cancelRequestEquip();
|
|
45
|
+
},
|
|
46
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
47
|
+
className: "fcr-mobile-request-equip-wrap",
|
|
48
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
49
|
+
className: "fcr-mobile-request-equip-title",
|
|
50
|
+
children: title
|
|
51
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
52
|
+
className: "fcr-mobile-request-equip-tip-content",
|
|
53
|
+
children: tipContent
|
|
54
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
55
|
+
className: "fcr-mobile-request-equip-tip-btns",
|
|
56
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
|
|
57
|
+
className: "fcr-mobile-request-equip-tip-btn cancel",
|
|
58
|
+
onClick: function onClick() {
|
|
59
|
+
return cancelRequestEquip();
|
|
60
|
+
},
|
|
61
|
+
children: cancelBtnText
|
|
62
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
|
|
63
|
+
className: "fcr-mobile-request-equip-tip-btn",
|
|
64
|
+
onClick: function onClick() {
|
|
65
|
+
return confirmRequestEquip();
|
|
66
|
+
},
|
|
67
|
+
children: confirmBtnText
|
|
68
|
+
})]
|
|
69
|
+
})]
|
|
70
|
+
})
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
var FcrMobileRequestEquipPopupWrapper = function FcrMobileRequestEquipPopupWrapper() {
|
|
74
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
75
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(FcrMobileRequestEquipPopup, {})
|
|
76
|
+
});
|
|
77
|
+
};
|
|
78
|
+
var _default = exports["default"] = FcrMobileRequestEquipPopupWrapper;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
.fcr-mobile-main-layout {
|
|
2
|
+
width: 100%;
|
|
3
|
+
height: 100%;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.fcr-mobile-item-wrap {
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
margin-top: 6px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.fcr-mobile-item-icon {
|
|
14
|
+
align-self: center;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.fcr-mobile-gallery-main-layout {
|
|
18
|
+
width: 100%;
|
|
19
|
+
height: 100%;
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
background-color: var(--fcr_mobile_ui_scene_guide);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.fcr-mobile-full-screen-cover {
|
|
27
|
+
width: 100%;
|
|
28
|
+
height: 100%;
|
|
29
|
+
background-color: transparent;
|
|
30
|
+
background-image: url('../../../assets/ground_glass_bg.png');
|
|
31
|
+
background-repeat: no-repeat;
|
|
32
|
+
position: fixed;
|
|
33
|
+
top: 0px;
|
|
34
|
+
z-index: 999;
|
|
35
|
+
background-repeat: no-repeat;
|
|
36
|
+
background-size: cover;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.fcr-mobile-lock-room-dialog-infos {
|
|
40
|
+
height: 180px;
|
|
41
|
+
width: 100%;
|
|
42
|
+
display: flex;
|
|
43
|
+
flex-direction: column;
|
|
44
|
+
justify-content: space-between;
|
|
45
|
+
margin-top: 180px;
|
|
46
|
+
align-items: center;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.fcr-mobile-lock-room-dialog-infos-title {
|
|
50
|
+
color: var(--fcr_ui_scene_white10);
|
|
51
|
+
font-size: 20px;
|
|
52
|
+
text-align: center;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.fcr-mobile-lock-room-dialog-infos-tip {
|
|
56
|
+
color: var(--fcr_ui_scene_white10);
|
|
57
|
+
font-size: 16px;
|
|
58
|
+
text-align: center;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.fcr-mobile-lock-room-dialog-leave-btn.fcr-button p {
|
|
62
|
+
font-size: 16px !important;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.fcr-mobile-cancel-circle-btn{
|
|
66
|
+
width: 80px;
|
|
67
|
+
height: 80px;
|
|
68
|
+
border-radius: 50%;
|
|
69
|
+
border: 1px solid var(--fcr_ui_scene_line1);
|
|
70
|
+
display: flex;
|
|
71
|
+
justify-content: center;
|
|
72
|
+
align-items: center;
|
|
73
|
+
margin: 0 auto;
|
|
74
|
+
position: fixed;
|
|
75
|
+
bottom: 80px;
|
|
76
|
+
left: calc((100% - 80px) / 2);
|
|
77
|
+
background-color: var(--fcr_ui_scene_view_toast);
|
|
78
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.array.for-each.js");
|
|
4
|
+
require("core-js/modules/es.object.define-property.js");
|
|
5
|
+
require("core-js/modules/es.object.keys.js");
|
|
6
|
+
require("core-js/modules/es.object.to-string.js");
|
|
7
|
+
require("core-js/modules/esnext.async-iterator.for-each.js");
|
|
8
|
+
require("core-js/modules/esnext.iterator.constructor.js");
|
|
9
|
+
require("core-js/modules/esnext.iterator.for-each.js");
|
|
10
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
11
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12
|
+
value: true
|
|
13
|
+
});
|
|
14
|
+
require("./index.css");
|
|
15
|
+
var _Layout = require("./Layout");
|
|
16
|
+
Object.keys(_Layout).forEach(function (key) {
|
|
17
|
+
if (key === "default" || key === "__esModule") return;
|
|
18
|
+
if (key in exports && exports[key] === _Layout[key]) return;
|
|
19
|
+
Object.defineProperty(exports, key, {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function get() {
|
|
22
|
+
return _Layout[key];
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
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.LayoutStoreContext = void 0;
|
|
8
|
+
var _react = require("react");
|
|
9
|
+
var LayoutStoreContext = exports.LayoutStoreContext = /*#__PURE__*/(0, _react.createContext)(null);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
.fcr-drawer-header {
|
|
2
|
+
display: flex;
|
|
3
|
+
justify-content: space-between;
|
|
4
|
+
align-items: center;
|
|
5
|
+
height: 50px;
|
|
6
|
+
width: 100%;
|
|
7
|
+
padding: 15px 13px 13px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.fcr-drawer-header__title {
|
|
11
|
+
justify-content: center;
|
|
12
|
+
color: var(--fcr_ui_scene_icontext1);
|
|
13
|
+
font-weight: 700;
|
|
14
|
+
font-size: 15px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.fcr-drawer-header__return-btn {
|
|
18
|
+
background: var(--fcr_mobile_ui_scene_color_popup_block2);
|
|
19
|
+
padding: 4px 12px;
|
|
20
|
+
border-radius: 12px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.fcr-drawer-header__close {
|
|
24
|
+
border-radius: 50%;
|
|
25
|
+
padding: 4px;
|
|
26
|
+
background: var(--fcr_mobile_ui_scene_color_popup_block2);
|
|
27
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.css';
|
|
3
|
+
interface DrawerHeaderProps {
|
|
4
|
+
type?: 'center' | 'space-between';
|
|
5
|
+
title: string;
|
|
6
|
+
onReturn?: () => void;
|
|
7
|
+
onClose?: () => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const DrawerHeader: React.FC<DrawerHeaderProps>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,54 @@
|
|
|
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.DrawerHeader = void 0;
|
|
9
|
+
var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
10
|
+
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
11
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
12
|
+
var _react = _interopRequireDefault(require("react"));
|
|
13
|
+
require("./index.css");
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
var DrawerHeader = exports.DrawerHeader = function DrawerHeader(_ref) {
|
|
16
|
+
var type = _ref.type,
|
|
17
|
+
title = _ref.title,
|
|
18
|
+
onClose = _ref.onClose,
|
|
19
|
+
onReturn = _ref.onReturn;
|
|
20
|
+
var cls = (0, _classnames["default"])('fcr-drawer-header', {
|
|
21
|
+
'fcr-drawer-header__center': type === 'center'
|
|
22
|
+
});
|
|
23
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
24
|
+
className: cls,
|
|
25
|
+
children: [onReturn && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
26
|
+
onClick: function onClick() {
|
|
27
|
+
onReturn();
|
|
28
|
+
},
|
|
29
|
+
className: 'fcr-drawer-header__return-btn',
|
|
30
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
31
|
+
type: _type.FcrIconType.FCR_MOBILE_ARROW_LEFT,
|
|
32
|
+
colors: {
|
|
33
|
+
iconPrimary: 'var(--fcr_ui_scene_icontext1)'
|
|
34
|
+
},
|
|
35
|
+
size: 16
|
|
36
|
+
})
|
|
37
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
38
|
+
className: 'fcr-drawer-header__title',
|
|
39
|
+
children: title
|
|
40
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
41
|
+
className: 'fcr-drawer-header__close',
|
|
42
|
+
onClick: function onClick() {
|
|
43
|
+
onClose === null || onClose === void 0 || onClose();
|
|
44
|
+
},
|
|
45
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
46
|
+
type: _type.FcrIconType.FCR_CLOSE,
|
|
47
|
+
size: 16,
|
|
48
|
+
colors: {
|
|
49
|
+
iconPrimary: 'var(--fcr_ui_scene_icontext1)'
|
|
50
|
+
}
|
|
51
|
+
})
|
|
52
|
+
})]
|
|
53
|
+
});
|
|
54
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
.fcr-action-bar-device:hover {
|
|
2
|
+
background: none !important;
|
|
3
|
+
}
|
|
4
|
+
.fcr-button:active {
|
|
5
|
+
transform: scale(0.98);
|
|
6
|
+
}
|
|
7
|
+
.fcr-button p {
|
|
8
|
+
font-size: 13px !important;
|
|
9
|
+
}
|
|
10
|
+
.fcr-dialog-body{
|
|
11
|
+
padding: 20px !important;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.fcr-mobile-cfg-card-item-label {
|
|
15
|
+
color: var(--fcr_ui_scene_icontext1);
|
|
16
|
+
font-size: 14px;
|
|
17
|
+
height: 24px;
|
|
18
|
+
line-height: 24px;
|
|
19
|
+
overflow: hidden;
|
|
20
|
+
white-space: nowrap;
|
|
21
|
+
text-overflow: ellipsis;
|
|
22
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { UIModule } from '../../base';
|
|
2
|
+
import { FcrLayoutSlots, LayoutStoreParams } from './store';
|
|
3
|
+
export declare class LayoutUIModule extends UIModule {
|
|
4
|
+
private _store;
|
|
5
|
+
constructor(args: LayoutStoreParams);
|
|
6
|
+
getComponent(slots?: Partial<FcrLayoutSlots>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
release(): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
require("core-js/modules/es.reflect.construct.js");
|
|
5
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7
|
+
value: true
|
|
8
|
+
});
|
|
9
|
+
exports.LayoutUIModule = void 0;
|
|
10
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
12
|
+
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
13
|
+
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
14
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
15
|
+
var _base = require("../../base");
|
|
16
|
+
var _context = require("./context");
|
|
17
|
+
var _store = require("./store");
|
|
18
|
+
var _view = require("./view");
|
|
19
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
|
+
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
|
|
21
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
22
|
+
var LayoutUIModule = exports.LayoutUIModule = /*#__PURE__*/function (_UIModule) {
|
|
23
|
+
function LayoutUIModule(args) {
|
|
24
|
+
var _this;
|
|
25
|
+
(0, _classCallCheck2["default"])(this, LayoutUIModule);
|
|
26
|
+
_this = _callSuper(this, LayoutUIModule);
|
|
27
|
+
_this._store = new _store.LayoutStore(args);
|
|
28
|
+
return _this;
|
|
29
|
+
}
|
|
30
|
+
(0, _inherits2["default"])(LayoutUIModule, _UIModule);
|
|
31
|
+
return (0, _createClass2["default"])(LayoutUIModule, [{
|
|
32
|
+
key: "getComponent",
|
|
33
|
+
value: function getComponent() {
|
|
34
|
+
var slots = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
35
|
+
this._store.updateSlots(slots);
|
|
36
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_context.LayoutStoreContext.Provider, {
|
|
37
|
+
value: this._store,
|
|
38
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_view.View, {})
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
}, {
|
|
42
|
+
key: "release",
|
|
43
|
+
value: function release() {
|
|
44
|
+
this._store.release();
|
|
45
|
+
}
|
|
46
|
+
}]);
|
|
47
|
+
}(_base.UIModule);
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { FcrPrivilegeUserRole, FcrUserRole } from 'fcr-core';
|
|
2
|
+
import { FcrSecurityStore } from '../../common/security-store';
|
|
3
|
+
import { FcrChatRoomReceiveTextMessage } from 'fcr-core/lib/room-control/chatroom-control/type';
|
|
4
|
+
import { FcrUIEventStore } from '../../common/event-store';
|
|
5
|
+
export interface LayoutStoreParams {
|
|
6
|
+
securityStore: FcrSecurityStore;
|
|
7
|
+
uiEventStore: FcrUIEventStore;
|
|
8
|
+
}
|
|
9
|
+
export interface FcrLayoutSlots {
|
|
10
|
+
chat: React.ReactNode;
|
|
11
|
+
chatSelect: React.ReactNode;
|
|
12
|
+
chatAction: React.ReactNode;
|
|
13
|
+
stateBar: React.ReactNode;
|
|
14
|
+
actionBar: React.ReactNode;
|
|
15
|
+
layers: React.ReactNode;
|
|
16
|
+
memberLayout: React.ReactNode;
|
|
17
|
+
whiteboard: React.ReactNode;
|
|
18
|
+
}
|
|
19
|
+
export declare enum SlotsType {
|
|
20
|
+
None = "none",
|
|
21
|
+
Chat = "chat",
|
|
22
|
+
ChatSelect = "chatSelect"
|
|
23
|
+
}
|
|
24
|
+
export declare class LayoutStore implements FcrLayoutSlots {
|
|
25
|
+
private _securityStore;
|
|
26
|
+
private _uiEventStore;
|
|
27
|
+
private _eventObserver;
|
|
28
|
+
accessor userVolumeMap: Map<string, number>;
|
|
29
|
+
accessor shouldHideNonVideoParticipants: boolean;
|
|
30
|
+
accessor enableSpotlight: boolean;
|
|
31
|
+
accessor localUserRole: FcrUserRole;
|
|
32
|
+
accessor currentSlotType: SlotsType;
|
|
33
|
+
accessor unreadMsgCnt: number;
|
|
34
|
+
accessor latestMessage: FcrChatRoomReceiveTextMessage | null;
|
|
35
|
+
accessor currentModule: React.ReactNode | null;
|
|
36
|
+
accessor chat: React.ReactNode | null;
|
|
37
|
+
accessor chatSelect: React.ReactNode | null;
|
|
38
|
+
accessor chatAction: React.ReactNode;
|
|
39
|
+
accessor stateBar: React.ReactNode;
|
|
40
|
+
accessor memberLayout: React.ReactNode;
|
|
41
|
+
accessor actionBar: React.ReactNode;
|
|
42
|
+
accessor layers: React.ReactNode;
|
|
43
|
+
accessor whiteboard: React.ReactNode;
|
|
44
|
+
constructor(params: LayoutStoreParams);
|
|
45
|
+
muteAudio(_mute: boolean): void;
|
|
46
|
+
setLocalUserRole(role: FcrUserRole): void;
|
|
47
|
+
getAllowedOperations(targetRole: FcrUserRole, isSelf: boolean): string[];
|
|
48
|
+
updateSlots(slots: Partial<FcrLayoutSlots>): void;
|
|
49
|
+
hasMutePermission(targetRole: FcrPrivilegeUserRole | FcrUserRole): boolean;
|
|
50
|
+
hasUnmutePermission(targetRole: FcrPrivilegeUserRole | FcrUserRole): boolean;
|
|
51
|
+
hasRequestStartAudioPermission(targetRole: FcrPrivilegeUserRole | FcrUserRole): boolean;
|
|
52
|
+
updateCurrentModule(slotType: SlotsType): void;
|
|
53
|
+
closeCurrentModule(): void;
|
|
54
|
+
resetLastMessage(): void;
|
|
55
|
+
release(): void;
|
|
56
|
+
private _handleEvent;
|
|
57
|
+
getWhiteBoardComp(): import("react").ReactNode;
|
|
58
|
+
fetchModuleAfterLCP(): void;
|
|
59
|
+
}
|