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,316 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.symbol.js");
|
|
4
|
+
require("core-js/modules/es.array.for-each.js");
|
|
5
|
+
require("core-js/modules/es.array.iterator.js");
|
|
6
|
+
require("core-js/modules/es.array.push.js");
|
|
7
|
+
require("core-js/modules/es.object.define-properties.js");
|
|
8
|
+
require("core-js/modules/es.object.define-property.js");
|
|
9
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
10
|
+
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
11
|
+
require("core-js/modules/es.object.keys.js");
|
|
12
|
+
require("core-js/modules/es.weak-map.js");
|
|
13
|
+
require("core-js/modules/esnext.async-iterator.for-each.js");
|
|
14
|
+
require("core-js/modules/esnext.iterator.for-each.js");
|
|
15
|
+
require("core-js/modules/esnext.weak-map.delete-all.js");
|
|
16
|
+
require("core-js/modules/esnext.weak-map.emplace.js");
|
|
17
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
18
|
+
require("core-js/modules/web.dom-collections.iterator.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["default"] = void 0;
|
|
25
|
+
require("core-js/modules/es.array.concat.js");
|
|
26
|
+
require("core-js/modules/es.array.filter.js");
|
|
27
|
+
require("core-js/modules/es.array.find-index.js");
|
|
28
|
+
require("core-js/modules/es.array.from.js");
|
|
29
|
+
require("core-js/modules/es.array.map.js");
|
|
30
|
+
require("core-js/modules/es.array.some.js");
|
|
31
|
+
require("core-js/modules/es.object.to-string.js");
|
|
32
|
+
require("core-js/modules/es.string.iterator.js");
|
|
33
|
+
require("core-js/modules/esnext.async-iterator.filter.js");
|
|
34
|
+
require("core-js/modules/esnext.async-iterator.map.js");
|
|
35
|
+
require("core-js/modules/esnext.async-iterator.some.js");
|
|
36
|
+
require("core-js/modules/esnext.iterator.constructor.js");
|
|
37
|
+
require("core-js/modules/esnext.iterator.filter.js");
|
|
38
|
+
require("core-js/modules/esnext.iterator.map.js");
|
|
39
|
+
require("core-js/modules/esnext.iterator.some.js");
|
|
40
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
41
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
42
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
43
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
44
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
45
|
+
var _reactVirtualized = require("react-virtualized");
|
|
46
|
+
var _mobxReact = require("mobx-react");
|
|
47
|
+
var _context = require("../context");
|
|
48
|
+
require("./index.css");
|
|
49
|
+
var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
50
|
+
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
51
|
+
var _globalContext = require("../../../common/global-context");
|
|
52
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
53
|
+
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); }
|
|
54
|
+
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; }
|
|
55
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
56
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /****
|
|
57
|
+
***** 宫格组件,宫格UI展示
|
|
58
|
+
***** 1.当一个用户独占整屏
|
|
59
|
+
***** 2.当2个上下排列
|
|
60
|
+
***** 3.当3个上中下排列,每行各一个视窗
|
|
61
|
+
***** 4.当4个上下排列,每行各两个视窗,共两行
|
|
62
|
+
***** 5.当5个上中下排列,前两行各两个视窗,最后一行一个视窗铺满,共三行
|
|
63
|
+
***** 6.当6个上下排列,每行各两个视窗,共三行
|
|
64
|
+
***** 7.当6个以上的窗格上中下排列,总数基数时候参考5个时候的排列逻辑,偶数参考4个时候的逻辑
|
|
65
|
+
***/
|
|
66
|
+
// 自定义 Hook,用于计算宫格布局
|
|
67
|
+
var useGridLayout = function useGridLayout(count, containerHeight) {
|
|
68
|
+
return (0, _react.useMemo)(function () {
|
|
69
|
+
var calculateLayout = function calculateLayout() {
|
|
70
|
+
var itemsPerRow = 2;
|
|
71
|
+
var rowHeight = containerHeight / 2;
|
|
72
|
+
if (count <= 1) {
|
|
73
|
+
itemsPerRow = 1;
|
|
74
|
+
rowHeight = containerHeight;
|
|
75
|
+
} else if (count === 2) {
|
|
76
|
+
itemsPerRow = 1;
|
|
77
|
+
rowHeight = containerHeight / 2;
|
|
78
|
+
} else if (count === 3) {
|
|
79
|
+
itemsPerRow = 1;
|
|
80
|
+
rowHeight = containerHeight / 3;
|
|
81
|
+
} else if (count === 4) {
|
|
82
|
+
itemsPerRow = 2;
|
|
83
|
+
rowHeight = containerHeight / 2;
|
|
84
|
+
} else {
|
|
85
|
+
itemsPerRow = 2;
|
|
86
|
+
rowHeight = containerHeight / 3;
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
itemsPerRow: itemsPerRow,
|
|
90
|
+
rowHeight: rowHeight,
|
|
91
|
+
totalRows: Math.ceil(count / itemsPerRow)
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
return calculateLayout();
|
|
95
|
+
}, [count, containerHeight]);
|
|
96
|
+
};
|
|
97
|
+
var FcrGridView = (0, _mobxReact.observer)(function (props) {
|
|
98
|
+
var _useContext = (0, _react.useContext)(_context.StoreContext),
|
|
99
|
+
highlightUser = _useContext.highlightUser,
|
|
100
|
+
highlightUserId = _useContext.highlightUserId;
|
|
101
|
+
var className = props.className,
|
|
102
|
+
renderItem = props.renderItem,
|
|
103
|
+
_props$containerHeigh = props.containerHeight,
|
|
104
|
+
containerHeight = _props$containerHeigh === void 0 ? 0 : _props$containerHeigh;
|
|
105
|
+
var _useContext2 = (0, _react.useContext)(_globalContext.FcrMobileGlobalContext),
|
|
106
|
+
participantStore = _useContext2.participantStore;
|
|
107
|
+
var userList = participantStore.participantList;
|
|
108
|
+
var _useState = (0, _react.useState)([]),
|
|
109
|
+
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
110
|
+
currentDataSource = _useState2[0],
|
|
111
|
+
setCurrentDataSource = _useState2[1];
|
|
112
|
+
var _useState3 = (0, _react.useState)({
|
|
113
|
+
index: 0,
|
|
114
|
+
total: userList.length
|
|
115
|
+
}),
|
|
116
|
+
_useState4 = (0, _slicedToArray2["default"])(_useState3, 2),
|
|
117
|
+
scrollInfo = _useState4[0],
|
|
118
|
+
setScrollInfo = _useState4[1];
|
|
119
|
+
var listRef = (0, _react.useRef)(null);
|
|
120
|
+
var highlightRef = (0, _react.useRef)(null);
|
|
121
|
+
var _useState5 = (0, _react.useState)(0),
|
|
122
|
+
_useState6 = (0, _slicedToArray2["default"])(_useState5, 2),
|
|
123
|
+
scrollTop = _useState6[0],
|
|
124
|
+
setScrollTop = _useState6[1];
|
|
125
|
+
var MAX_ITEMS = 6;
|
|
126
|
+
var layout = useGridLayout(currentDataSource.length, containerHeight);
|
|
127
|
+
var prevHighlightUserId = (0, _react.useRef)(highlightUserId);
|
|
128
|
+
(0, _react.useEffect)(function () {
|
|
129
|
+
return function () {
|
|
130
|
+
setScrollTop(0);
|
|
131
|
+
};
|
|
132
|
+
}, []);
|
|
133
|
+
|
|
134
|
+
// 判断用户是否在可视范围内
|
|
135
|
+
var isUserVisible = (0, _react.useCallback)(function (index) {
|
|
136
|
+
if (!listRef.current) return false;
|
|
137
|
+
// 传入的坐标是数据下标从0开始,需要位置的坐标
|
|
138
|
+
var posIndex = index + 1;
|
|
139
|
+
if (scrollInfo.index <= 0) {
|
|
140
|
+
if (currentDataSource.length > MAX_ITEMS && posIndex > MAX_ITEMS) {
|
|
141
|
+
return false;
|
|
142
|
+
}
|
|
143
|
+
return true;
|
|
144
|
+
}
|
|
145
|
+
// 计算出需要高亮的指定index所在行的最小坐标
|
|
146
|
+
var paramTransformToMinIndexInRow = currentDataSource.length > 1 && posIndex % 2 === 0 ? posIndex - 1 : posIndex;
|
|
147
|
+
// 计算出当前滚动到的坐标,如果满行的情况下的右边index,不然无法使用MAX_ITEMS进行计算
|
|
148
|
+
var scrollIndexTransformMaxIndexInRow = currentDataSource.length > MAX_ITEMS && scrollInfo.index % 2 === 1 ? scrollInfo.index + 1 : scrollInfo.index;
|
|
149
|
+
if (currentDataSource.length <= MAX_ITEMS || scrollIndexTransformMaxIndexInRow >= paramTransformToMinIndexInRow && paramTransformToMinIndexInRow >= scrollIndexTransformMaxIndexInRow - MAX_ITEMS) {
|
|
150
|
+
return true;
|
|
151
|
+
}
|
|
152
|
+
return false;
|
|
153
|
+
}, [layout.itemsPerRow, layout.rowHeight, scrollTop, containerHeight, scrollInfo, currentDataSource]);
|
|
154
|
+
(0, _react.useEffect)(function () {
|
|
155
|
+
var newDataSource = (0, _toConsumableArray2["default"])(userList);
|
|
156
|
+
if (highlightUser) {
|
|
157
|
+
var highlightIndex = newDataSource.findIndex(function (user) {
|
|
158
|
+
return user.userId === highlightUser.userId;
|
|
159
|
+
});
|
|
160
|
+
if (highlightIndex !== -1 && !isUserVisible(highlightIndex)) {
|
|
161
|
+
newDataSource = newDataSource.filter(function (user) {
|
|
162
|
+
return user.userId !== highlightUser.userId;
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
} else {
|
|
166
|
+
newDataSource = (0, _toConsumableArray2["default"])(userList);
|
|
167
|
+
}
|
|
168
|
+
setCurrentDataSource(newDataSource);
|
|
169
|
+
setScrollInfo(function (prev) {
|
|
170
|
+
return _objectSpread(_objectSpread({}, prev), {}, {
|
|
171
|
+
total: newDataSource.length
|
|
172
|
+
});
|
|
173
|
+
});
|
|
174
|
+
if (highlightUserId !== prevHighlightUserId.current) {
|
|
175
|
+
prevHighlightUserId.current = highlightUserId;
|
|
176
|
+
}
|
|
177
|
+
// 这里不能监听scrollTop,否则会根据滚动位置从新计算高亮用户,导致从右侧小窗回到宫格。
|
|
178
|
+
}, [userList, highlightUser]);
|
|
179
|
+
(0, _react.useEffect)(function () {
|
|
180
|
+
if (highlightUser) {
|
|
181
|
+
var highlightIndex = currentDataSource.findIndex(function (user) {
|
|
182
|
+
return user.userId === highlightUser.userId;
|
|
183
|
+
});
|
|
184
|
+
if (highlightIndex !== -1 && !isUserVisible(highlightIndex)) {
|
|
185
|
+
setCurrentDataSource(function (prevDataSource) {
|
|
186
|
+
return prevDataSource.filter(function (user) {
|
|
187
|
+
return user.userId !== highlightUser.userId;
|
|
188
|
+
});
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}, [scrollTop, highlightUser, isUserVisible, currentDataSource]);
|
|
193
|
+
|
|
194
|
+
// 渲染网格项
|
|
195
|
+
var renderGridItem = (0, _react.useCallback)(function (_ref) {
|
|
196
|
+
var index = _ref.index,
|
|
197
|
+
style = _ref.style;
|
|
198
|
+
var user = currentDataSource[index];
|
|
199
|
+
if (!user) return null;
|
|
200
|
+
var isHighlighted = user.userId === highlightUserId;
|
|
201
|
+
var itemWidth = index === currentDataSource.length - 1 && currentDataSource.length % 2 === 1 ? '100%' : "".concat(100 / layout.itemsPerRow, "%");
|
|
202
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
203
|
+
style: _objectSpread(_objectSpread({}, style), {}, {
|
|
204
|
+
width: itemWidth,
|
|
205
|
+
display: 'inline-block'
|
|
206
|
+
}),
|
|
207
|
+
className: (0, _classnames["default"])('fcr-grid-item', {
|
|
208
|
+
'fcr-highlight': isHighlighted
|
|
209
|
+
}),
|
|
210
|
+
"data-user-id": user.userId,
|
|
211
|
+
ref: isHighlighted ? highlightRef : null,
|
|
212
|
+
children: renderItem ? renderItem(user, false) : null
|
|
213
|
+
}, user.userId);
|
|
214
|
+
}, [currentDataSource, highlightUserId, layout.itemsPerRow, renderItem]);
|
|
215
|
+
|
|
216
|
+
// 处理滚动事件
|
|
217
|
+
var handleScroll = (0, _react.useCallback)(function (_ref2) {
|
|
218
|
+
var newScrollTop = _ref2.scrollTop;
|
|
219
|
+
setScrollTop(newScrollTop);
|
|
220
|
+
// 计算当前滚动位置对应的用户索引
|
|
221
|
+
var extraRows = Math.round(newScrollTop / layout.rowHeight);
|
|
222
|
+
var preRows = isNaN(extraRows) ? 0 : extraRows;
|
|
223
|
+
var currentIndex = preRows * layout.itemsPerRow + MAX_ITEMS;
|
|
224
|
+
var computCurrentScrollIndex = Math.min(currentIndex, currentDataSource.length);
|
|
225
|
+
setScrollInfo(function () {
|
|
226
|
+
return {
|
|
227
|
+
total: currentDataSource.length,
|
|
228
|
+
index: computCurrentScrollIndex
|
|
229
|
+
};
|
|
230
|
+
});
|
|
231
|
+
}, [layout, currentDataSource.length, containerHeight]);
|
|
232
|
+
|
|
233
|
+
// 渲染高亮用户的覆盖层
|
|
234
|
+
var renderHighlightOverlay = function renderHighlightOverlay() {
|
|
235
|
+
if (!highlightUser) return null;
|
|
236
|
+
var isInCurrentDataSource = currentDataSource.some(function (user) {
|
|
237
|
+
return user.userId === highlightUser.userId;
|
|
238
|
+
});
|
|
239
|
+
if (isInCurrentDataSource) return null;
|
|
240
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
241
|
+
className: "fcr-highlight fcr-highlight-user",
|
|
242
|
+
children: renderItem === null || renderItem === void 0 ? void 0 : renderItem(highlightUser, true)
|
|
243
|
+
});
|
|
244
|
+
};
|
|
245
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
246
|
+
className: (0, _classnames["default"])('fcr-grid-container', {
|
|
247
|
+
scrollable: currentDataSource.length > MAX_ITEMS
|
|
248
|
+
}, className),
|
|
249
|
+
style: {
|
|
250
|
+
height: containerHeight,
|
|
251
|
+
padding: 0
|
|
252
|
+
},
|
|
253
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactVirtualized.AutoSizer, {
|
|
254
|
+
children: function children(_ref3) {
|
|
255
|
+
var width = _ref3.width,
|
|
256
|
+
height = _ref3.height;
|
|
257
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactVirtualized.List, {
|
|
258
|
+
ref: listRef,
|
|
259
|
+
width: width,
|
|
260
|
+
height: height,
|
|
261
|
+
rowCount: layout.totalRows,
|
|
262
|
+
rowHeight: layout.rowHeight,
|
|
263
|
+
rowRenderer: function rowRenderer(_ref4) {
|
|
264
|
+
var index = _ref4.index,
|
|
265
|
+
key = _ref4.key,
|
|
266
|
+
style = _ref4.style;
|
|
267
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
268
|
+
style: style,
|
|
269
|
+
children: Array.from({
|
|
270
|
+
length: layout.itemsPerRow
|
|
271
|
+
}).map(function (_, i) {
|
|
272
|
+
var itemIndex = index * layout.itemsPerRow + i;
|
|
273
|
+
var currentRenderUser = currentDataSource[itemIndex];
|
|
274
|
+
return itemIndex < currentDataSource.length ? renderGridItem({
|
|
275
|
+
index: itemIndex,
|
|
276
|
+
key: (currentRenderUser === null || currentRenderUser === void 0 ? void 0 : currentRenderUser.userId) || "".concat(key, "-").concat(i),
|
|
277
|
+
style: {
|
|
278
|
+
display: 'inline-block',
|
|
279
|
+
height: '100%'
|
|
280
|
+
}
|
|
281
|
+
}) : null;
|
|
282
|
+
})
|
|
283
|
+
}, key);
|
|
284
|
+
},
|
|
285
|
+
onScroll: handleScroll
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
289
|
+
className: "fcr-wizard-sign",
|
|
290
|
+
children: [scrollInfo.index > MAX_ITEMS && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
291
|
+
className: "fcr-go-back",
|
|
292
|
+
onClick: function onClick() {
|
|
293
|
+
var _listRef$current;
|
|
294
|
+
return (_listRef$current = listRef.current) === null || _listRef$current === void 0 ? void 0 : _listRef$current.scrollToPosition(0);
|
|
295
|
+
},
|
|
296
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
297
|
+
type: _type.FcrIconType.FCR_GOTOTOP,
|
|
298
|
+
size: 30,
|
|
299
|
+
colors: {
|
|
300
|
+
iconPrimary: 'var(--fcr_web_ui_scene_mainicon1)'
|
|
301
|
+
}
|
|
302
|
+
})
|
|
303
|
+
}), currentDataSource.length > MAX_ITEMS && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
304
|
+
className: "fcr-scroll-indicator",
|
|
305
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
306
|
+
className: "fcr-grid-current",
|
|
307
|
+
children: scrollInfo.index || MAX_ITEMS
|
|
308
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
309
|
+
className: "fcr-grid-count",
|
|
310
|
+
children: scrollInfo.total > 999 ? '999+' : scrollInfo.total
|
|
311
|
+
})]
|
|
312
|
+
})]
|
|
313
|
+
}), renderHighlightOverlay()]
|
|
314
|
+
});
|
|
315
|
+
});
|
|
316
|
+
var _default = exports["default"] = FcrGridView;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
.grid-content {
|
|
2
|
+
width: 100%;
|
|
3
|
+
height: 100%;
|
|
4
|
+
overflow: hidden;
|
|
5
|
+
}
|
|
6
|
+
.grid-radius {
|
|
7
|
+
border-radius: var(--fcr_cornerradius_s);
|
|
8
|
+
}
|
|
9
|
+
.fcr-member-layout {
|
|
10
|
+
width: 100vw;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
flex: 1;
|
|
13
|
+
padding: 10px;
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
background-color: var(--fcr_mobile_ui_scene_guide);
|
|
16
|
+
}
|
|
17
|
+
.fcr-member-layout::before {
|
|
18
|
+
content: '';
|
|
19
|
+
position: absolute;
|
|
20
|
+
pointer-events: none;
|
|
21
|
+
left: 4px;
|
|
22
|
+
}
|
|
23
|
+
.fcr-member-layout-full {
|
|
24
|
+
padding: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.fcr-member-layout-full .grid-radius {
|
|
28
|
+
border-radius: 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* Firefox 滚动条样式 */
|
|
32
|
+
/* .fcr-member-layout {
|
|
33
|
+
scrollbar-width: thin;
|
|
34
|
+
scrollbar-color: var(--fcr_ui_scene_btn3) transparent;
|
|
35
|
+
} */
|
|
36
|
+
|
|
37
|
+
.fcr-highlight {
|
|
38
|
+
border: 2px solid var(--fcr_ui_scene_ramp_green6);
|
|
39
|
+
border-radius: var(--fcr_cornerradius_s);
|
|
40
|
+
}
|
|
41
|
+
.fcr-normal .grid-content {
|
|
42
|
+
border: 2px solid var(--fcr_ui_scene_ramp_brand1);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.fcr-watermark-wrapper {
|
|
46
|
+
height: auto !important;
|
|
47
|
+
padding-top: 44px;
|
|
48
|
+
overflow: hidden;
|
|
49
|
+
background-color: var(--fcr_mobile_ui_scene_guide);
|
|
50
|
+
}
|
|
51
|
+
.fcr-mobile-whiteboard-wrapper {
|
|
52
|
+
width: 100%;
|
|
53
|
+
height: 100%;
|
|
54
|
+
}
|
|
55
|
+
.fcr-mobile-whiteboard-operate-cover {
|
|
56
|
+
width: 100%;
|
|
57
|
+
height: 100%;
|
|
58
|
+
position: absolute;
|
|
59
|
+
left: 0px;
|
|
60
|
+
top: 0px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.fcr-mobile-auto-play-failed-dialog{
|
|
64
|
+
display: flex;
|
|
65
|
+
flex-direction: column;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.fcr-mobile-auto-play-failed-dialog-title{
|
|
69
|
+
width: 100%;
|
|
70
|
+
height: 39px;
|
|
71
|
+
display: flex;
|
|
72
|
+
justify-content: center;
|
|
73
|
+
align-items: center;
|
|
74
|
+
font-family: Verdana;
|
|
75
|
+
font-size: 14px;
|
|
76
|
+
font-weight: 700;
|
|
77
|
+
line-height: 18.2px;
|
|
78
|
+
text-align: center;
|
|
79
|
+
color: var(--fcr_ui_scene_icontext1, rgba(255, 255, 255, 1));
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.fcr-mobile-auto-play-failed-dialog-btn{
|
|
83
|
+
align-self: center;
|
|
84
|
+
height: 30px;
|
|
85
|
+
width: 281px;
|
|
86
|
+
font-size: 13px;
|
|
87
|
+
margin-top: 20px;
|
|
88
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { UIModule } from '../../base';
|
|
2
|
+
import { IMemberProps } from './store';
|
|
3
|
+
export declare class MediaPlayerUIModule extends UIModule {
|
|
4
|
+
private _store;
|
|
5
|
+
constructor(props: IMemberProps);
|
|
6
|
+
getComponent(): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
release(): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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.MediaPlayerUIModule = 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 = _interopRequireDefault(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 MediaPlayerUIModule = exports.MediaPlayerUIModule = /*#__PURE__*/function (_UIModule) {
|
|
23
|
+
function MediaPlayerUIModule(props) {
|
|
24
|
+
var _this;
|
|
25
|
+
(0, _classCallCheck2["default"])(this, MediaPlayerUIModule);
|
|
26
|
+
_this = _callSuper(this, MediaPlayerUIModule);
|
|
27
|
+
_this._store = new _store["default"](props);
|
|
28
|
+
return _this;
|
|
29
|
+
}
|
|
30
|
+
(0, _inherits2["default"])(MediaPlayerUIModule, _UIModule);
|
|
31
|
+
return (0, _createClass2["default"])(MediaPlayerUIModule, [{
|
|
32
|
+
key: "getComponent",
|
|
33
|
+
value: function getComponent() {
|
|
34
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_context.StoreContext.Provider, {
|
|
35
|
+
value: this._store,
|
|
36
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_view.View, {})
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
}, {
|
|
40
|
+
key: "release",
|
|
41
|
+
value: function release() {
|
|
42
|
+
this._store.release();
|
|
43
|
+
}
|
|
44
|
+
}]);
|
|
45
|
+
}(_base.UIModule);
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
.fcr-mobile-whiteboard-operate-toast {
|
|
2
|
+
width: 296px;
|
|
3
|
+
background-color: var(--fcr_mobile_ui_scene_color_popup_block3);
|
|
4
|
+
border-radius: 12px;
|
|
5
|
+
position: absolute;
|
|
6
|
+
left: 50%;
|
|
7
|
+
bottom: 60px;
|
|
8
|
+
transform: translateX(-50%);
|
|
9
|
+
z-index: 999;
|
|
10
|
+
padding: 15px 16px;
|
|
11
|
+
display: flex;
|
|
12
|
+
justify-content: space-between;
|
|
13
|
+
align-items: center;
|
|
14
|
+
}
|
|
15
|
+
.fcr-mobile-whiteboard-operate-toast-text {
|
|
16
|
+
font-size: 12px;
|
|
17
|
+
line-height: 18px;
|
|
18
|
+
max-height: 303px;
|
|
19
|
+
border-right: 1px solid var(--fcr_ui_scene_line1);
|
|
20
|
+
margin-right: 10px;
|
|
21
|
+
padding-right: 10px;
|
|
22
|
+
display: -webkit-box;
|
|
23
|
+
-webkit-box-orient: vertical;
|
|
24
|
+
-webkit-line-clamp: 2;
|
|
25
|
+
overflow: hidden;
|
|
26
|
+
text-overflow: ellipsis;
|
|
27
|
+
max-width: 267px;
|
|
28
|
+
overflow-wrap: break-word;
|
|
29
|
+
letter-spacing: 1px;
|
|
30
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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["default"] = void 0;
|
|
9
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
|
+
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
11
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
12
|
+
var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
13
|
+
require("./index.css");
|
|
14
|
+
var _react = require("react");
|
|
15
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
+
var ShareToast = function ShareToast(props) {
|
|
17
|
+
var isShareBoard = props.isShareBoard;
|
|
18
|
+
var _useState = (0, _react.useState)(true),
|
|
19
|
+
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
20
|
+
show = _useState2[0],
|
|
21
|
+
setShow = _useState2[1];
|
|
22
|
+
if (!show) {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
var text = isShareBoard ? (0, _i18n.transI18n)('fmt_h_label_tempor_hide_white_board') : (0, _i18n.transI18n)('fmt_h_label_tempor_hide_screen_share');
|
|
26
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
27
|
+
className: "fcr-mobile-whiteboard-operate-toast",
|
|
28
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
29
|
+
className: "fcr-mobile-whiteboard-operate-toast-text",
|
|
30
|
+
children: text
|
|
31
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
32
|
+
className: "fcr-mobile-whiteboard-operate-toast-icon",
|
|
33
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
34
|
+
onClick: function onClick() {
|
|
35
|
+
return setShow(false);
|
|
36
|
+
},
|
|
37
|
+
size: 20,
|
|
38
|
+
type: _type.FcrIconType.FCR_CLOSE2
|
|
39
|
+
})
|
|
40
|
+
})]
|
|
41
|
+
});
|
|
42
|
+
};
|
|
43
|
+
var _default = exports["default"] = ShareToast;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
.fcr-speaker-view{
|
|
2
|
+
width: 100%;
|
|
3
|
+
height: 100%;
|
|
4
|
+
background: var(--fcr_ui_scene_video, #E7E7F2);
|
|
5
|
+
position: relative;
|
|
6
|
+
}
|
|
7
|
+
.fcr-speaker-render{
|
|
8
|
+
position: absolute;
|
|
9
|
+
width: 100px;
|
|
10
|
+
height: 140px;
|
|
11
|
+
top: 12px;
|
|
12
|
+
right: 12px;
|
|
13
|
+
border-radius: 10px;
|
|
14
|
+
box-shadow: 0px 0px 15px 0px #00000040;
|
|
15
|
+
backdrop-filter: blur(15px);
|
|
16
|
+
background: var(--fcr_ui_scene_video);
|
|
17
|
+
}
|
|
18
|
+
.fcr-main-render{
|
|
19
|
+
height: 100%;
|
|
20
|
+
|
|
21
|
+
}
|
|
22
|
+
.fcr-speaker-render .fcr-normal-user{
|
|
23
|
+
border: 2px solid var(--fcr_ui_scene_ramp_brand1)
|
|
24
|
+
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.fcr-speaker-render .fcr-speaker{
|
|
28
|
+
border: 2px solid var(--fcr_ui_scene_ramp_green6)
|
|
29
|
+
|
|
30
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./index.css";
|
|
3
|
+
interface ISpeakerViewProps {
|
|
4
|
+
mainViewRender: () => React.ReactNode;
|
|
5
|
+
speakerViewRender: () => React.ReactNode;
|
|
6
|
+
containerHeight?: number;
|
|
7
|
+
}
|
|
8
|
+
export declare const FcrSpeakerView: (props: ISpeakerViewProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
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.FcrSpeakerView = void 0;
|
|
9
|
+
var _mobxReact = require("mobx-react");
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
require("./index.css");
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
var FcrSpeakerView = exports.FcrSpeakerView = (0, _mobxReact.observer)(function (props) {
|
|
14
|
+
var speakerView = props.speakerViewRender();
|
|
15
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
16
|
+
className: "fcr-speaker-view",
|
|
17
|
+
style: {
|
|
18
|
+
height: "".concat(props.containerHeight, "px")
|
|
19
|
+
},
|
|
20
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
21
|
+
className: "fcr-main-render",
|
|
22
|
+
children: props.mainViewRender()
|
|
23
|
+
}), speakerView && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
24
|
+
className: "fcr-speaker-render",
|
|
25
|
+
children: speakerView
|
|
26
|
+
})]
|
|
27
|
+
});
|
|
28
|
+
});
|