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,379 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.symbol.js");
|
|
4
|
+
require("core-js/modules/es.symbol.description.js");
|
|
5
|
+
require("core-js/modules/es.symbol.to-primitive.js");
|
|
6
|
+
require("core-js/modules/es.error.cause.js");
|
|
7
|
+
require("core-js/modules/es.error.to-string.js");
|
|
8
|
+
require("core-js/modules/es.array.is-array.js");
|
|
9
|
+
require("core-js/modules/es.array.push.js");
|
|
10
|
+
require("core-js/modules/es.date.to-primitive.js");
|
|
11
|
+
require("core-js/modules/es.function.bind.js");
|
|
12
|
+
require("core-js/modules/es.function.name.js");
|
|
13
|
+
require("core-js/modules/es.number.constructor.js");
|
|
14
|
+
require("core-js/modules/es.object.create.js");
|
|
15
|
+
require("core-js/modules/es.object.define-property.js");
|
|
16
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
17
|
+
require("core-js/modules/esnext.function.metadata.js");
|
|
18
|
+
require("core-js/modules/esnext.symbol.metadata.js");
|
|
19
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
20
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
21
|
+
Object.defineProperty(exports, "__esModule", {
|
|
22
|
+
value: true
|
|
23
|
+
});
|
|
24
|
+
exports.SlotsType = exports.LayoutStore = void 0;
|
|
25
|
+
require("core-js/modules/es.array.iterator.js");
|
|
26
|
+
require("core-js/modules/es.map.js");
|
|
27
|
+
require("core-js/modules/es.object.to-string.js");
|
|
28
|
+
require("core-js/modules/es.string.iterator.js");
|
|
29
|
+
require("core-js/modules/es.weak-map.js");
|
|
30
|
+
require("core-js/modules/esnext.map.delete-all.js");
|
|
31
|
+
require("core-js/modules/esnext.map.emplace.js");
|
|
32
|
+
require("core-js/modules/esnext.map.every.js");
|
|
33
|
+
require("core-js/modules/esnext.map.filter.js");
|
|
34
|
+
require("core-js/modules/esnext.map.find.js");
|
|
35
|
+
require("core-js/modules/esnext.map.find-key.js");
|
|
36
|
+
require("core-js/modules/esnext.map.includes.js");
|
|
37
|
+
require("core-js/modules/esnext.map.key-of.js");
|
|
38
|
+
require("core-js/modules/esnext.map.map-keys.js");
|
|
39
|
+
require("core-js/modules/esnext.map.map-values.js");
|
|
40
|
+
require("core-js/modules/esnext.map.merge.js");
|
|
41
|
+
require("core-js/modules/esnext.map.reduce.js");
|
|
42
|
+
require("core-js/modules/esnext.map.some.js");
|
|
43
|
+
require("core-js/modules/esnext.map.update.js");
|
|
44
|
+
require("core-js/modules/esnext.weak-map.delete-all.js");
|
|
45
|
+
require("core-js/modules/esnext.weak-map.emplace.js");
|
|
46
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
47
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
48
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
49
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
50
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
51
|
+
var _mobx = require("mobx");
|
|
52
|
+
var _fcrCore = require("fcr-core");
|
|
53
|
+
var _decorator = require("agora-foundation/lib/decorator");
|
|
54
|
+
var _constant = require("../../utilities/constant");
|
|
55
|
+
var _LayoutStore;
|
|
56
|
+
var _initProto, _init_userVolumeMap, _init_shouldHideNonVideoParticipants, _init_enableSpotlight, _init_localUserRole, _init_currentSlotType, _init_unreadMsgCnt, _init_latestMessage, _currentModuleDecs, _init_currentModule, _chatDecs, _init_chat, _chatSelectDecs, _init_chatSelect, _chatActionDecs, _init_chatAction, _stateBarDecs, _init_stateBar, _memberLayoutDecs, _init_memberLayout, _actionBarDecs, _init_actionBar, _layersDecs, _init_layers, _whiteboardDecs, _init_whiteboard, _getAllowedOperationsDecs, _updateSlotsDecs, _updateCurrentModuleDecs, _closeCurrentModuleDecs, _resetLastMessageDecs, _handleEventDecs, _getWhiteBoardCompDecs, _fetchModuleAfterLCPDecs, _ref;
|
|
57
|
+
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
58
|
+
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
59
|
+
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
60
|
+
function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
|
|
61
|
+
function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
|
|
62
|
+
function _applyDecs(e, t, r, n, o, a) { function i(e, t, r) { return function (n, o) { return r && r(n), e[t].call(n, o); }; } function c(e, t) { for (var r = 0; r < e.length; r++) e[r].call(t); return t; } function s(e, t, r, n) { if ("function" != typeof e && (n || void 0 !== e)) throw new TypeError(t + " must " + (r || "be") + " a function" + (n ? "" : " or undefined")); return e; } function applyDec(e, t, r, n, o, a, c, u, l, f, p, d, h) { function m(e) { if (!h(e)) throw new TypeError("Attempted to access private element on non-instance"); } var y, v = t[0], g = t[3], b = !u; if (!b) { r || Array.isArray(v) || (v = [v]); var w = {}, S = [], A = 3 === o ? "get" : 4 === o || d ? "set" : "value"; f ? (p || d ? w = { get: _setFunctionName(function () { return g(this); }, n, "get"), set: function set(e) { t[4](this, e); } } : w[A] = g, p || _setFunctionName(w[A], n, 2 === o ? "" : A)) : p || (w = Object.getOwnPropertyDescriptor(e, n)); } for (var P = e, j = v.length - 1; j >= 0; j -= r ? 2 : 1) { var D = v[j], E = r ? v[j - 1] : void 0, I = {}, O = { kind: ["field", "accessor", "method", "getter", "setter", "class"][o], name: n, metadata: a, addInitializer: function (e, t) { if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); s(t, "An initializer", "be", !0), c.push(t); }.bind(null, I) }; try { if (b) (y = s(D.call(E, P, O), "class decorators", "return")) && (P = y);else { var k, F; O["static"] = l, O["private"] = f, f ? 2 === o ? k = function k(e) { return m(e), w.value; } : (o < 4 && (k = i(w, "get", m)), 3 !== o && (F = i(w, "set", m))) : (k = function k(e) { return e[n]; }, (o < 2 || 4 === o) && (F = function F(e, t) { e[n] = t; })); var N = O.access = { has: f ? h.bind() : function (e) { return n in e; } }; if (k && (N.get = k), F && (N.set = F), P = D.call(E, d ? { get: w.get, set: w.set } : w[A], O), d) { if ("object" == _typeof(P) && P) (y = s(P.get, "accessor.get")) && (w.get = y), (y = s(P.set, "accessor.set")) && (w.set = y), (y = s(P.init, "accessor.init")) && S.push(y);else if (void 0 !== P) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); } else s(P, (p ? "field" : "method") + " decorators", "return") && (p ? S.push(P) : w[A] = P); } } finally { I.v = !0; } } return (p || d) && u.push(function (e, t) { for (var r = S.length - 1; r >= 0; r--) t = S[r].call(e, t); return t; }), p || b || (f ? d ? u.push(i(w, "get"), i(w, "set")) : u.push(2 === o ? w[A] : i.call.bind(w[A])) : Object.defineProperty(e, n, w)), P; } function u(e, t) { return Object.defineProperty(e, Symbol.metadata || Symbol["for"]("Symbol.metadata"), { configurable: !0, enumerable: !0, value: t }); } if (arguments.length >= 6) var l = a[Symbol.metadata || Symbol["for"]("Symbol.metadata")]; var f = Object.create(null == l ? null : l), p = function (e, t, r, n) { var o, a, i = [], s = function s(t) { return _checkInRHS(t) === e; }, u = new Map(); function l(e) { e && i.push(c.bind(null, e)); } for (var f = 0; f < t.length; f++) { var p = t[f]; if (Array.isArray(p)) { var d = p[1], h = p[2], m = p.length > 3, y = 16 & d, v = !!(8 & d), g = 0 == (d &= 7), b = h + "/" + v; if (!g && !m) { var w = u.get(b); if (!0 === w || 3 === w && 4 !== d || 4 === w && 3 !== d) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h); u.set(b, !(d > 2) || d); } applyDec(v ? e : e.prototype, p, y, m ? "#" + h : _toPropertyKey(h), d, n, v ? a = a || [] : o = o || [], i, v, m, g, 1 === d, v && m ? s : r); } } return l(o), l(a), i; }(e, t, o, f); return r.length || u(e, f), { e: p, get c() { var t = []; return r.length && [u(applyDec(e, [r], n, e.name, 5, f, t), f), c.bind(null, t, e)]; } }; }
|
|
63
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
64
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
65
|
+
function _setFunctionName(e, t, n) { "symbol" == _typeof(t) && (t = (t = t.description) ? "[" + t + "]" : ""); try { Object.defineProperty(e, "name", { configurable: !0, value: n ? n + " " + t : t }); } catch (e) {} return e; }
|
|
66
|
+
function _checkInRHS(e) { if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (null !== e ? _typeof(e) : "null")); return e; }
|
|
67
|
+
var SlotsType = exports.SlotsType = /*#__PURE__*/function (SlotsType) {
|
|
68
|
+
SlotsType["None"] = "none";
|
|
69
|
+
SlotsType["Chat"] = "chat";
|
|
70
|
+
SlotsType["ChatSelect"] = "chatSelect";
|
|
71
|
+
return SlotsType;
|
|
72
|
+
}({});
|
|
73
|
+
var _A = /*#__PURE__*/new WeakMap();
|
|
74
|
+
var _B = /*#__PURE__*/new WeakMap();
|
|
75
|
+
var _C = /*#__PURE__*/new WeakMap();
|
|
76
|
+
var _D = /*#__PURE__*/new WeakMap();
|
|
77
|
+
var _E = /*#__PURE__*/new WeakMap();
|
|
78
|
+
var _F = /*#__PURE__*/new WeakMap();
|
|
79
|
+
var _G = /*#__PURE__*/new WeakMap();
|
|
80
|
+
var _H = /*#__PURE__*/new WeakMap();
|
|
81
|
+
var _I = /*#__PURE__*/new WeakMap();
|
|
82
|
+
var _J = /*#__PURE__*/new WeakMap();
|
|
83
|
+
var _K = /*#__PURE__*/new WeakMap();
|
|
84
|
+
var _L = /*#__PURE__*/new WeakMap();
|
|
85
|
+
var _M = /*#__PURE__*/new WeakMap();
|
|
86
|
+
var _N = /*#__PURE__*/new WeakMap();
|
|
87
|
+
var _O = /*#__PURE__*/new WeakMap();
|
|
88
|
+
var _P = /*#__PURE__*/new WeakMap();
|
|
89
|
+
_ref = (_currentModuleDecs = [_mobx.observable, _mobx.observable.ref], _chatDecs = [_mobx.observable, _mobx.observable.ref], _chatSelectDecs = [_mobx.observable, _mobx.observable.ref], _chatActionDecs = [_mobx.observable, _mobx.observable.ref], _stateBarDecs = [_mobx.observable, _mobx.observable.ref], _memberLayoutDecs = [_mobx.observable, _mobx.observable.ref], _actionBarDecs = [_mobx.observable, _mobx.observable.ref], _layersDecs = [_mobx.observable, _mobx.observable.ref], _whiteboardDecs = [_mobx.observable, _mobx.observable.ref], _getAllowedOperationsDecs = [_mobx.action, _mobx.action.bound], _updateSlotsDecs = [_mobx.action, _mobx.action.bound], _updateCurrentModuleDecs = [_mobx.action, _mobx.action.bound], _closeCurrentModuleDecs = [_mobx.action, _mobx.action.bound], _resetLastMessageDecs = [_mobx.action, _mobx.action.bound], _handleEventDecs = [_mobx.action, _mobx.action.bound], _getWhiteBoardCompDecs = [_mobx.action, _mobx.action.bound], _fetchModuleAfterLCPDecs = [_mobx.action, _mobx.action.bound], "_securityStore");
|
|
90
|
+
var LayoutStore = exports.LayoutStore = /*#__PURE__*/function () {
|
|
91
|
+
function LayoutStore(params) {
|
|
92
|
+
(0, _classCallCheck2["default"])(this, LayoutStore);
|
|
93
|
+
(0, _defineProperty2["default"])(this, _ref, void _initProto(this));
|
|
94
|
+
(0, _defineProperty2["default"])(this, "_eventObserver", {
|
|
95
|
+
onEvent: this._handleEvent
|
|
96
|
+
});
|
|
97
|
+
_classPrivateFieldInitSpec(this, _A, _init_userVolumeMap(this, new Map()));
|
|
98
|
+
_classPrivateFieldInitSpec(this, _B, _init_shouldHideNonVideoParticipants(this, false));
|
|
99
|
+
_classPrivateFieldInitSpec(this, _C, _init_enableSpotlight(this, true));
|
|
100
|
+
_classPrivateFieldInitSpec(this, _D, _init_localUserRole(this, _fcrCore.FcrUserRole.PARTICIPANT));
|
|
101
|
+
_classPrivateFieldInitSpec(this, _E, _init_currentSlotType(this, SlotsType.None));
|
|
102
|
+
_classPrivateFieldInitSpec(this, _F, _init_unreadMsgCnt(this, 0));
|
|
103
|
+
_classPrivateFieldInitSpec(this, _G, _init_latestMessage(this, null));
|
|
104
|
+
_classPrivateFieldInitSpec(this, _H, _init_currentModule(this, null));
|
|
105
|
+
// Slots
|
|
106
|
+
_classPrivateFieldInitSpec(this, _I, _init_chat(this, null));
|
|
107
|
+
_classPrivateFieldInitSpec(this, _J, _init_chatSelect(this, null));
|
|
108
|
+
_classPrivateFieldInitSpec(this, _K, _init_chatAction(this, null));
|
|
109
|
+
_classPrivateFieldInitSpec(this, _L, _init_stateBar(this, null));
|
|
110
|
+
_classPrivateFieldInitSpec(this, _M, _init_memberLayout(this, null));
|
|
111
|
+
_classPrivateFieldInitSpec(this, _N, _init_actionBar(this, null));
|
|
112
|
+
_classPrivateFieldInitSpec(this, _O, _init_layers(this, null));
|
|
113
|
+
_classPrivateFieldInitSpec(this, _P, _init_whiteboard(this, null));
|
|
114
|
+
this._securityStore = params.securityStore;
|
|
115
|
+
this._uiEventStore = params.uiEventStore;
|
|
116
|
+
this._uiEventStore.addObserver(this._eventObserver);
|
|
117
|
+
}
|
|
118
|
+
return (0, _createClass2["default"])(LayoutStore, [{
|
|
119
|
+
key: "userVolumeMap",
|
|
120
|
+
get: function get() {
|
|
121
|
+
return _classPrivateFieldGet(_A, this);
|
|
122
|
+
},
|
|
123
|
+
set: function set(v) {
|
|
124
|
+
_classPrivateFieldSet(_A, this, v);
|
|
125
|
+
}
|
|
126
|
+
}, {
|
|
127
|
+
key: "shouldHideNonVideoParticipants",
|
|
128
|
+
get: function get() {
|
|
129
|
+
return _classPrivateFieldGet(_B, this);
|
|
130
|
+
},
|
|
131
|
+
set: function set(v) {
|
|
132
|
+
_classPrivateFieldSet(_B, this, v);
|
|
133
|
+
}
|
|
134
|
+
}, {
|
|
135
|
+
key: "enableSpotlight",
|
|
136
|
+
get: function get() {
|
|
137
|
+
return _classPrivateFieldGet(_C, this);
|
|
138
|
+
},
|
|
139
|
+
set: function set(v) {
|
|
140
|
+
_classPrivateFieldSet(_C, this, v);
|
|
141
|
+
}
|
|
142
|
+
}, {
|
|
143
|
+
key: "localUserRole",
|
|
144
|
+
get: function get() {
|
|
145
|
+
return _classPrivateFieldGet(_D, this);
|
|
146
|
+
},
|
|
147
|
+
set: function set(v) {
|
|
148
|
+
_classPrivateFieldSet(_D, this, v);
|
|
149
|
+
}
|
|
150
|
+
}, {
|
|
151
|
+
key: "currentSlotType",
|
|
152
|
+
get: function get() {
|
|
153
|
+
return _classPrivateFieldGet(_E, this);
|
|
154
|
+
},
|
|
155
|
+
set: function set(v) {
|
|
156
|
+
_classPrivateFieldSet(_E, this, v);
|
|
157
|
+
}
|
|
158
|
+
}, {
|
|
159
|
+
key: "unreadMsgCnt",
|
|
160
|
+
get: function get() {
|
|
161
|
+
return _classPrivateFieldGet(_F, this);
|
|
162
|
+
},
|
|
163
|
+
set: function set(v) {
|
|
164
|
+
_classPrivateFieldSet(_F, this, v);
|
|
165
|
+
}
|
|
166
|
+
}, {
|
|
167
|
+
key: "latestMessage",
|
|
168
|
+
get: function get() {
|
|
169
|
+
return _classPrivateFieldGet(_G, this);
|
|
170
|
+
},
|
|
171
|
+
set: function set(v) {
|
|
172
|
+
_classPrivateFieldSet(_G, this, v);
|
|
173
|
+
}
|
|
174
|
+
}, {
|
|
175
|
+
key: "currentModule",
|
|
176
|
+
get: function get() {
|
|
177
|
+
return _classPrivateFieldGet(_H, this);
|
|
178
|
+
},
|
|
179
|
+
set: function set(v) {
|
|
180
|
+
_classPrivateFieldSet(_H, this, v);
|
|
181
|
+
}
|
|
182
|
+
}, {
|
|
183
|
+
key: "chat",
|
|
184
|
+
get: function get() {
|
|
185
|
+
return _classPrivateFieldGet(_I, this);
|
|
186
|
+
},
|
|
187
|
+
set: function set(v) {
|
|
188
|
+
_classPrivateFieldSet(_I, this, v);
|
|
189
|
+
}
|
|
190
|
+
}, {
|
|
191
|
+
key: "chatSelect",
|
|
192
|
+
get: function get() {
|
|
193
|
+
return _classPrivateFieldGet(_J, this);
|
|
194
|
+
},
|
|
195
|
+
set: function set(v) {
|
|
196
|
+
_classPrivateFieldSet(_J, this, v);
|
|
197
|
+
}
|
|
198
|
+
}, {
|
|
199
|
+
key: "chatAction",
|
|
200
|
+
get: function get() {
|
|
201
|
+
return _classPrivateFieldGet(_K, this);
|
|
202
|
+
},
|
|
203
|
+
set: function set(v) {
|
|
204
|
+
_classPrivateFieldSet(_K, this, v);
|
|
205
|
+
}
|
|
206
|
+
}, {
|
|
207
|
+
key: "stateBar",
|
|
208
|
+
get: function get() {
|
|
209
|
+
return _classPrivateFieldGet(_L, this);
|
|
210
|
+
},
|
|
211
|
+
set: function set(v) {
|
|
212
|
+
_classPrivateFieldSet(_L, this, v);
|
|
213
|
+
}
|
|
214
|
+
}, {
|
|
215
|
+
key: "memberLayout",
|
|
216
|
+
get: function get() {
|
|
217
|
+
return _classPrivateFieldGet(_M, this);
|
|
218
|
+
},
|
|
219
|
+
set: function set(v) {
|
|
220
|
+
_classPrivateFieldSet(_M, this, v);
|
|
221
|
+
}
|
|
222
|
+
}, {
|
|
223
|
+
key: "actionBar",
|
|
224
|
+
get: function get() {
|
|
225
|
+
return _classPrivateFieldGet(_N, this);
|
|
226
|
+
},
|
|
227
|
+
set: function set(v) {
|
|
228
|
+
_classPrivateFieldSet(_N, this, v);
|
|
229
|
+
}
|
|
230
|
+
}, {
|
|
231
|
+
key: "layers",
|
|
232
|
+
get: function get() {
|
|
233
|
+
return _classPrivateFieldGet(_O, this);
|
|
234
|
+
},
|
|
235
|
+
set: function set(v) {
|
|
236
|
+
_classPrivateFieldSet(_O, this, v);
|
|
237
|
+
}
|
|
238
|
+
}, {
|
|
239
|
+
key: "whiteboard",
|
|
240
|
+
get: function get() {
|
|
241
|
+
return _classPrivateFieldGet(_P, this);
|
|
242
|
+
},
|
|
243
|
+
set: function set(v) {
|
|
244
|
+
_classPrivateFieldSet(_P, this, v);
|
|
245
|
+
}
|
|
246
|
+
}, {
|
|
247
|
+
key: "muteAudio",
|
|
248
|
+
value: function muteAudio(_mute) {}
|
|
249
|
+
}, {
|
|
250
|
+
key: "setLocalUserRole",
|
|
251
|
+
value: function setLocalUserRole(role) {
|
|
252
|
+
this.localUserRole = role;
|
|
253
|
+
}
|
|
254
|
+
}, {
|
|
255
|
+
key: "getAllowedOperations",
|
|
256
|
+
value: function getAllowedOperations(targetRole, isSelf) {
|
|
257
|
+
return this._securityStore.getAllowedOperations(targetRole, isSelf);
|
|
258
|
+
}
|
|
259
|
+
}, {
|
|
260
|
+
key: "updateSlots",
|
|
261
|
+
value: function updateSlots(slots) {
|
|
262
|
+
for (var key in slots) {
|
|
263
|
+
var slot = slots[key];
|
|
264
|
+
if (key in this && slot !== undefined) {
|
|
265
|
+
this[key] = slot;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}, {
|
|
270
|
+
key: "hasMutePermission",
|
|
271
|
+
value: function hasMutePermission(targetRole) {
|
|
272
|
+
return this._securityStore.hasMutePermission(targetRole);
|
|
273
|
+
}
|
|
274
|
+
}, {
|
|
275
|
+
key: "hasUnmutePermission",
|
|
276
|
+
value: function hasUnmutePermission(targetRole) {
|
|
277
|
+
return this._securityStore.hasUnmutePermission(targetRole);
|
|
278
|
+
}
|
|
279
|
+
}, {
|
|
280
|
+
key: "hasRequestStartAudioPermission",
|
|
281
|
+
value: function hasRequestStartAudioPermission(targetRole) {
|
|
282
|
+
return this._securityStore.hasRequestStartAudioPermission(targetRole);
|
|
283
|
+
}
|
|
284
|
+
}, {
|
|
285
|
+
key: "updateCurrentModule",
|
|
286
|
+
value: function updateCurrentModule(slotType) {
|
|
287
|
+
this.currentSlotType = slotType;
|
|
288
|
+
switch (slotType) {
|
|
289
|
+
case SlotsType.Chat:
|
|
290
|
+
case SlotsType.ChatSelect:
|
|
291
|
+
this.currentModule = this.chat;
|
|
292
|
+
this.unreadMsgCnt = 0;
|
|
293
|
+
this.latestMessage = null;
|
|
294
|
+
break;
|
|
295
|
+
default:
|
|
296
|
+
this.closeCurrentModule();
|
|
297
|
+
break;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
}, {
|
|
301
|
+
key: "closeCurrentModule",
|
|
302
|
+
value: function closeCurrentModule() {
|
|
303
|
+
this.currentModule = null;
|
|
304
|
+
this.currentSlotType = SlotsType.None;
|
|
305
|
+
this._uiEventStore.sendEvent(_constant.UIAction.UPDATE_ASIDE, {
|
|
306
|
+
chat: false
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
}, {
|
|
310
|
+
key: "resetLastMessage",
|
|
311
|
+
value: function resetLastMessage() {
|
|
312
|
+
this.latestMessage = null;
|
|
313
|
+
}
|
|
314
|
+
}, {
|
|
315
|
+
key: "release",
|
|
316
|
+
value: function release() {
|
|
317
|
+
this._uiEventStore.removeObserver(this._eventObserver);
|
|
318
|
+
}
|
|
319
|
+
}, {
|
|
320
|
+
key: "_handleEvent",
|
|
321
|
+
value: function _handleEvent(action, payload) {
|
|
322
|
+
if (this.currentSlotType === SlotsType.Chat) {
|
|
323
|
+
return;
|
|
324
|
+
}
|
|
325
|
+
if (action === _constant.UIAction.RECEIVE_NEW_CHAT_MESSAGES) {
|
|
326
|
+
var _ref2 = payload,
|
|
327
|
+
count = _ref2.count,
|
|
328
|
+
latestMessage = _ref2.latestMessage;
|
|
329
|
+
this.unreadMsgCnt = this.unreadMsgCnt + count;
|
|
330
|
+
this.latestMessage = latestMessage;
|
|
331
|
+
}
|
|
332
|
+
if (action === _constant.UIAction.SET_CHAT_SLOT_TYPE) {
|
|
333
|
+
var _ref3 = payload,
|
|
334
|
+
type = _ref3.type;
|
|
335
|
+
this.updateCurrentModule(type);
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
}, {
|
|
339
|
+
key: "getWhiteBoardComp",
|
|
340
|
+
value: function getWhiteBoardComp() {
|
|
341
|
+
if (typeof this.whiteboard === 'function') {
|
|
342
|
+
var _this$whiteboard;
|
|
343
|
+
this.whiteboard = (_this$whiteboard = this.whiteboard()) === null || _this$whiteboard === void 0 ? void 0 : _this$whiteboard.getComponent();
|
|
344
|
+
}
|
|
345
|
+
return this.whiteboard;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
//LCP加载非首屏组件模块等
|
|
349
|
+
}, {
|
|
350
|
+
key: "fetchModuleAfterLCP",
|
|
351
|
+
value: function fetchModuleAfterLCP() {
|
|
352
|
+
console.log('fetching modules after lcp');
|
|
353
|
+
// if(typeof this.chat === 'function'){
|
|
354
|
+
// this.chat = this.chat()?.getComponent();
|
|
355
|
+
// }
|
|
356
|
+
}
|
|
357
|
+
}]);
|
|
358
|
+
}();
|
|
359
|
+
_LayoutStore = LayoutStore;
|
|
360
|
+
var _applyDecs$e = _applyDecs(_LayoutStore, [[_mobx.observable, 1, "userVolumeMap"], [_mobx.observable, 1, "shouldHideNonVideoParticipants"], [_mobx.observable, 1, "enableSpotlight"], [_mobx.observable, 1, "localUserRole"], [_mobx.observable, 1, "currentSlotType"], [_mobx.observable, 1, "unreadMsgCnt"], [_mobx.observable, 1, "latestMessage"], [_currentModuleDecs, 17, "currentModule"], [_chatDecs, 17, "chat"], [_chatSelectDecs, 17, "chatSelect"], [_chatActionDecs, 17, "chatAction"], [_stateBarDecs, 17, "stateBar"], [_memberLayoutDecs, 17, "memberLayout"], [_actionBarDecs, 17, "actionBar"], [_layersDecs, 17, "layers"], [_whiteboardDecs, 17, "whiteboard"], [_decorator.bound, 2, "muteAudio"], [_mobx.action, 2, "setLocalUserRole"], [_getAllowedOperationsDecs, 18, "getAllowedOperations"], [_updateSlotsDecs, 18, "updateSlots"], [_decorator.bound, 2, "hasMutePermission"], [_decorator.bound, 2, "hasUnmutePermission"], [_decorator.bound, 2, "hasRequestStartAudioPermission"], [_updateCurrentModuleDecs, 18, "updateCurrentModule"], [_closeCurrentModuleDecs, 18, "closeCurrentModule"], [_resetLastMessageDecs, 18, "resetLastMessage"], [_handleEventDecs, 18, "_handleEvent"], [_getWhiteBoardCompDecs, 18, "getWhiteBoardComp"], [_fetchModuleAfterLCPDecs, 18, "fetchModuleAfterLCP"]], []).e;
|
|
361
|
+
var _applyDecs$e2 = (0, _slicedToArray2["default"])(_applyDecs$e, 17);
|
|
362
|
+
_init_userVolumeMap = _applyDecs$e2[0];
|
|
363
|
+
_init_shouldHideNonVideoParticipants = _applyDecs$e2[1];
|
|
364
|
+
_init_enableSpotlight = _applyDecs$e2[2];
|
|
365
|
+
_init_localUserRole = _applyDecs$e2[3];
|
|
366
|
+
_init_currentSlotType = _applyDecs$e2[4];
|
|
367
|
+
_init_unreadMsgCnt = _applyDecs$e2[5];
|
|
368
|
+
_init_latestMessage = _applyDecs$e2[6];
|
|
369
|
+
_init_currentModule = _applyDecs$e2[7];
|
|
370
|
+
_init_chat = _applyDecs$e2[8];
|
|
371
|
+
_init_chatSelect = _applyDecs$e2[9];
|
|
372
|
+
_init_chatAction = _applyDecs$e2[10];
|
|
373
|
+
_init_stateBar = _applyDecs$e2[11];
|
|
374
|
+
_init_memberLayout = _applyDecs$e2[12];
|
|
375
|
+
_init_actionBar = _applyDecs$e2[13];
|
|
376
|
+
_init_layers = _applyDecs$e2[14];
|
|
377
|
+
_init_whiteboard = _applyDecs$e2[15];
|
|
378
|
+
_initProto = _applyDecs$e2[16];
|
|
379
|
+
_applyDecs$e;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { FcrRoomConnectorType, FcrVideoSourceType } from 'fcr-core';
|
|
2
|
+
import { FcrUserRole } from 'fcr-core/lib/type';
|
|
3
|
+
export declare enum FcrUIVideoWindowLayoutType {
|
|
4
|
+
/** Show a carousel on top and a big video on the rest of the screen. */
|
|
5
|
+
Speaker = "speaker",
|
|
6
|
+
/** Show videos in grid, filling the screen. */
|
|
7
|
+
Gallery = "gallery"
|
|
8
|
+
}
|
|
9
|
+
export declare enum GalleryMaxSize {
|
|
10
|
+
Normal = 16,
|
|
11
|
+
Large = 25
|
|
12
|
+
}
|
|
13
|
+
export interface FcrUIVideoWindowData {
|
|
14
|
+
windowId: string;
|
|
15
|
+
type: FcrUIWindowType;
|
|
16
|
+
videoStreamId?: string;
|
|
17
|
+
audioStreamId?: string;
|
|
18
|
+
hasMicrophoneAudioStream: boolean;
|
|
19
|
+
hasLoopbackAudioStream: boolean;
|
|
20
|
+
hasVideoStream: boolean;
|
|
21
|
+
hasScreenSharing: boolean;
|
|
22
|
+
audioStreamConnectorType: FcrRoomConnectorType;
|
|
23
|
+
videoStreamConnectorType: FcrRoomConnectorType;
|
|
24
|
+
userId: string;
|
|
25
|
+
userName: string;
|
|
26
|
+
isMySelf: boolean;
|
|
27
|
+
isPin: boolean;
|
|
28
|
+
isSpeakerSpotlight: boolean;
|
|
29
|
+
videoSourceType: FcrVideoSourceType;
|
|
30
|
+
ownerRoleType: FcrUserRole;
|
|
31
|
+
sortingPriority: number;
|
|
32
|
+
phoneMicEnabled?: boolean;
|
|
33
|
+
}
|
|
34
|
+
export declare const VideoRatio: number;
|
|
35
|
+
export declare enum FcrUIVideoWindowMainSortingPriority {
|
|
36
|
+
NONE = 0,
|
|
37
|
+
MICROPHONE_OPEN = 1,
|
|
38
|
+
CAMERA_OPEN = 2,
|
|
39
|
+
BOTH_OPEN = 3,
|
|
40
|
+
CO_HOST = 4,
|
|
41
|
+
MYSELF = 5,
|
|
42
|
+
HOST = 6,
|
|
43
|
+
SCREEN_SHARING_OWNER = 7,
|
|
44
|
+
SPEAKER_SPOTLIGHT = 8,
|
|
45
|
+
FOCUS = 9,
|
|
46
|
+
HIGHEST = 10
|
|
47
|
+
}
|
|
48
|
+
export declare enum FcrUIVideoWindowFoldSortingPriority {
|
|
49
|
+
NONE = 0,
|
|
50
|
+
MICROPHONE_OPEN = 1,
|
|
51
|
+
CAMERA_OPEN = 2,
|
|
52
|
+
BOTH_OPEN = 3,
|
|
53
|
+
CO_HOST = 4,
|
|
54
|
+
MYSELF = 5,
|
|
55
|
+
HOST = 6,
|
|
56
|
+
SCREEN_SHARING_OWNER = 7,
|
|
57
|
+
SCREEN_SHARING_STREAM = 8,
|
|
58
|
+
PIN = 9,
|
|
59
|
+
FOCUS = 10,
|
|
60
|
+
HIGHEST = 11
|
|
61
|
+
}
|
|
62
|
+
export declare enum FcrUIWindowType {
|
|
63
|
+
VIDEO = 1,
|
|
64
|
+
BOARD = 2
|
|
65
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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.VideoRatio = exports.GalleryMaxSize = exports.FcrUIWindowType = exports.FcrUIVideoWindowMainSortingPriority = exports.FcrUIVideoWindowLayoutType = exports.FcrUIVideoWindowFoldSortingPriority = void 0;
|
|
8
|
+
var FcrUIVideoWindowLayoutType = exports.FcrUIVideoWindowLayoutType = /*#__PURE__*/function (FcrUIVideoWindowLayoutType) {
|
|
9
|
+
FcrUIVideoWindowLayoutType["Speaker"] = "speaker";
|
|
10
|
+
FcrUIVideoWindowLayoutType["Gallery"] = "gallery";
|
|
11
|
+
return FcrUIVideoWindowLayoutType;
|
|
12
|
+
}({});
|
|
13
|
+
var GalleryMaxSize = exports.GalleryMaxSize = /*#__PURE__*/function (GalleryMaxSize) {
|
|
14
|
+
GalleryMaxSize[GalleryMaxSize["Normal"] = 16] = "Normal";
|
|
15
|
+
GalleryMaxSize[GalleryMaxSize["Large"] = 25] = "Large";
|
|
16
|
+
return GalleryMaxSize;
|
|
17
|
+
}({});
|
|
18
|
+
var VideoRatio = exports.VideoRatio = 19 / 32;
|
|
19
|
+
var FcrUIVideoWindowMainSortingPriority = exports.FcrUIVideoWindowMainSortingPriority = /*#__PURE__*/function (FcrUIVideoWindowMainSortingPriority) {
|
|
20
|
+
FcrUIVideoWindowMainSortingPriority[FcrUIVideoWindowMainSortingPriority["NONE"] = 0] = "NONE";
|
|
21
|
+
FcrUIVideoWindowMainSortingPriority[FcrUIVideoWindowMainSortingPriority["MICROPHONE_OPEN"] = 1] = "MICROPHONE_OPEN";
|
|
22
|
+
FcrUIVideoWindowMainSortingPriority[FcrUIVideoWindowMainSortingPriority["CAMERA_OPEN"] = 2] = "CAMERA_OPEN";
|
|
23
|
+
FcrUIVideoWindowMainSortingPriority[FcrUIVideoWindowMainSortingPriority["BOTH_OPEN"] = 3] = "BOTH_OPEN";
|
|
24
|
+
FcrUIVideoWindowMainSortingPriority[FcrUIVideoWindowMainSortingPriority["CO_HOST"] = 4] = "CO_HOST";
|
|
25
|
+
FcrUIVideoWindowMainSortingPriority[FcrUIVideoWindowMainSortingPriority["MYSELF"] = 5] = "MYSELF";
|
|
26
|
+
FcrUIVideoWindowMainSortingPriority[FcrUIVideoWindowMainSortingPriority["HOST"] = 6] = "HOST";
|
|
27
|
+
FcrUIVideoWindowMainSortingPriority[FcrUIVideoWindowMainSortingPriority["SCREEN_SHARING_OWNER"] = 7] = "SCREEN_SHARING_OWNER";
|
|
28
|
+
FcrUIVideoWindowMainSortingPriority[FcrUIVideoWindowMainSortingPriority["SPEAKER_SPOTLIGHT"] = 8] = "SPEAKER_SPOTLIGHT";
|
|
29
|
+
FcrUIVideoWindowMainSortingPriority[FcrUIVideoWindowMainSortingPriority["FOCUS"] = 9] = "FOCUS";
|
|
30
|
+
FcrUIVideoWindowMainSortingPriority[FcrUIVideoWindowMainSortingPriority["HIGHEST"] = 10] = "HIGHEST";
|
|
31
|
+
return FcrUIVideoWindowMainSortingPriority;
|
|
32
|
+
}({});
|
|
33
|
+
var FcrUIVideoWindowFoldSortingPriority = exports.FcrUIVideoWindowFoldSortingPriority = /*#__PURE__*/function (FcrUIVideoWindowFoldSortingPriority) {
|
|
34
|
+
FcrUIVideoWindowFoldSortingPriority[FcrUIVideoWindowFoldSortingPriority["NONE"] = 0] = "NONE";
|
|
35
|
+
FcrUIVideoWindowFoldSortingPriority[FcrUIVideoWindowFoldSortingPriority["MICROPHONE_OPEN"] = 1] = "MICROPHONE_OPEN";
|
|
36
|
+
FcrUIVideoWindowFoldSortingPriority[FcrUIVideoWindowFoldSortingPriority["CAMERA_OPEN"] = 2] = "CAMERA_OPEN";
|
|
37
|
+
FcrUIVideoWindowFoldSortingPriority[FcrUIVideoWindowFoldSortingPriority["BOTH_OPEN"] = 3] = "BOTH_OPEN";
|
|
38
|
+
FcrUIVideoWindowFoldSortingPriority[FcrUIVideoWindowFoldSortingPriority["CO_HOST"] = 4] = "CO_HOST";
|
|
39
|
+
FcrUIVideoWindowFoldSortingPriority[FcrUIVideoWindowFoldSortingPriority["MYSELF"] = 5] = "MYSELF";
|
|
40
|
+
FcrUIVideoWindowFoldSortingPriority[FcrUIVideoWindowFoldSortingPriority["HOST"] = 6] = "HOST";
|
|
41
|
+
FcrUIVideoWindowFoldSortingPriority[FcrUIVideoWindowFoldSortingPriority["SCREEN_SHARING_OWNER"] = 7] = "SCREEN_SHARING_OWNER";
|
|
42
|
+
FcrUIVideoWindowFoldSortingPriority[FcrUIVideoWindowFoldSortingPriority["SCREEN_SHARING_STREAM"] = 8] = "SCREEN_SHARING_STREAM";
|
|
43
|
+
FcrUIVideoWindowFoldSortingPriority[FcrUIVideoWindowFoldSortingPriority["PIN"] = 9] = "PIN";
|
|
44
|
+
FcrUIVideoWindowFoldSortingPriority[FcrUIVideoWindowFoldSortingPriority["FOCUS"] = 10] = "FOCUS";
|
|
45
|
+
FcrUIVideoWindowFoldSortingPriority[FcrUIVideoWindowFoldSortingPriority["HIGHEST"] = 11] = "HIGHEST";
|
|
46
|
+
return FcrUIVideoWindowFoldSortingPriority;
|
|
47
|
+
}({});
|
|
48
|
+
var FcrUIWindowType = exports.FcrUIWindowType = /*#__PURE__*/function (FcrUIWindowType) {
|
|
49
|
+
FcrUIWindowType[FcrUIWindowType["VIDEO"] = 1] = "VIDEO";
|
|
50
|
+
FcrUIWindowType[FcrUIWindowType["BOARD"] = 2] = "BOARD";
|
|
51
|
+
return FcrUIWindowType;
|
|
52
|
+
}({});
|
|
@@ -0,0 +1,10 @@
|
|
|
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.View = void 0;
|
|
8
|
+
var _components = require("./components");
|
|
9
|
+
require("./index.css");
|
|
10
|
+
var View = exports.View = _components.Layout;
|
|
@@ -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.StoreContext = void 0;
|
|
8
|
+
var _react = require("react");
|
|
9
|
+
var StoreContext = exports.StoreContext = /*#__PURE__*/(0, _react.createContext)(null);
|