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,288 @@
|
|
|
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.map.js");
|
|
14
|
+
require("core-js/modules/es.number.constructor.js");
|
|
15
|
+
require("core-js/modules/es.object.create.js");
|
|
16
|
+
require("core-js/modules/es.object.define-property.js");
|
|
17
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
18
|
+
require("core-js/modules/esnext.function.metadata.js");
|
|
19
|
+
require("core-js/modules/esnext.map.delete-all.js");
|
|
20
|
+
require("core-js/modules/esnext.map.emplace.js");
|
|
21
|
+
require("core-js/modules/esnext.map.every.js");
|
|
22
|
+
require("core-js/modules/esnext.map.filter.js");
|
|
23
|
+
require("core-js/modules/esnext.map.find.js");
|
|
24
|
+
require("core-js/modules/esnext.map.find-key.js");
|
|
25
|
+
require("core-js/modules/esnext.map.includes.js");
|
|
26
|
+
require("core-js/modules/esnext.map.key-of.js");
|
|
27
|
+
require("core-js/modules/esnext.map.map-keys.js");
|
|
28
|
+
require("core-js/modules/esnext.map.map-values.js");
|
|
29
|
+
require("core-js/modules/esnext.map.merge.js");
|
|
30
|
+
require("core-js/modules/esnext.map.reduce.js");
|
|
31
|
+
require("core-js/modules/esnext.map.some.js");
|
|
32
|
+
require("core-js/modules/esnext.map.update.js");
|
|
33
|
+
require("core-js/modules/esnext.symbol.metadata.js");
|
|
34
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
35
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
36
|
+
Object.defineProperty(exports, "__esModule", {
|
|
37
|
+
value: true
|
|
38
|
+
});
|
|
39
|
+
exports.WhiteboardControlBarUIContext = exports.WhiteboardControlBarStore = void 0;
|
|
40
|
+
require("core-js/modules/es.array.includes.js");
|
|
41
|
+
require("core-js/modules/es.array.iterator.js");
|
|
42
|
+
require("core-js/modules/es.object.to-string.js");
|
|
43
|
+
require("core-js/modules/es.string.includes.js");
|
|
44
|
+
require("core-js/modules/es.string.iterator.js");
|
|
45
|
+
require("core-js/modules/es.weak-map.js");
|
|
46
|
+
require("core-js/modules/esnext.weak-map.delete-all.js");
|
|
47
|
+
require("core-js/modules/esnext.weak-map.emplace.js");
|
|
48
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
49
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
50
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
51
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
52
|
+
var _react = require("react");
|
|
53
|
+
var _constant = require("../../../../utilities/constant");
|
|
54
|
+
var _decorator = require("agora-foundation/lib/decorator");
|
|
55
|
+
var _type = require("../../type");
|
|
56
|
+
var _mobx = require("mobx");
|
|
57
|
+
var _type2 = require("fcr-core/lib/type");
|
|
58
|
+
var _WhiteboardControlBarStore;
|
|
59
|
+
var _initProto, _init_ownerUser, _init_currentUser, _init_lonelywindowOpened, _init_isMinimum, _init_isMaxmum, _init_isAdaptived, _init_isOriginal, _init_scaleValue, _init_controlEnabled, _init_isHost, _setOwnerUserDecs, _onEnableDecs, _ref;
|
|
60
|
+
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
61
|
+
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
62
|
+
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
63
|
+
function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
|
|
64
|
+
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"); }
|
|
65
|
+
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)]; } }; }
|
|
66
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
67
|
+
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); }
|
|
68
|
+
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; }
|
|
69
|
+
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; }
|
|
70
|
+
var _A = /*#__PURE__*/new WeakMap();
|
|
71
|
+
var _B = /*#__PURE__*/new WeakMap();
|
|
72
|
+
var _C = /*#__PURE__*/new WeakMap();
|
|
73
|
+
var _D = /*#__PURE__*/new WeakMap();
|
|
74
|
+
var _E = /*#__PURE__*/new WeakMap();
|
|
75
|
+
var _F = /*#__PURE__*/new WeakMap();
|
|
76
|
+
var _G = /*#__PURE__*/new WeakMap();
|
|
77
|
+
var _H = /*#__PURE__*/new WeakMap();
|
|
78
|
+
var _I = /*#__PURE__*/new WeakMap();
|
|
79
|
+
var _J = /*#__PURE__*/new WeakMap();
|
|
80
|
+
_ref = (_setOwnerUserDecs = [_mobx.action, _mobx.action.bound], _onEnableDecs = [_mobx.action, _mobx.action.bound], "ownerUser");
|
|
81
|
+
var WhiteboardControlBarStore = exports.WhiteboardControlBarStore = /*#__PURE__*/function () {
|
|
82
|
+
function WhiteboardControlBarStore(_ref2) {
|
|
83
|
+
var _userControl$getLocal,
|
|
84
|
+
_this = this;
|
|
85
|
+
var uiEventStore = _ref2.uiEventStore,
|
|
86
|
+
userControl = _ref2.userControl,
|
|
87
|
+
securityStore = _ref2.securityStore;
|
|
88
|
+
(0, _classCallCheck2["default"])(this, WhiteboardControlBarStore);
|
|
89
|
+
_classPrivateFieldInitSpec(this, _A, (_initProto(this), _init_ownerUser(this, undefined)));
|
|
90
|
+
_classPrivateFieldInitSpec(this, _B, _init_currentUser(this, undefined));
|
|
91
|
+
_classPrivateFieldInitSpec(this, _C, _init_lonelywindowOpened(this, false));
|
|
92
|
+
_classPrivateFieldInitSpec(this, _D, _init_isMinimum(this, false));
|
|
93
|
+
_classPrivateFieldInitSpec(this, _E, _init_isMaxmum(this, false));
|
|
94
|
+
_classPrivateFieldInitSpec(this, _F, _init_isAdaptived(this, false));
|
|
95
|
+
_classPrivateFieldInitSpec(this, _G, _init_isOriginal(this, false));
|
|
96
|
+
_classPrivateFieldInitSpec(this, _H, _init_scaleValue(this, 1));
|
|
97
|
+
_classPrivateFieldInitSpec(this, _I, _init_controlEnabled(this, false));
|
|
98
|
+
_classPrivateFieldInitSpec(this, _J, _init_isHost(this, false));
|
|
99
|
+
this._uiEventStore = uiEventStore;
|
|
100
|
+
this._userControl = userControl;
|
|
101
|
+
this.currentUser = userControl.getLocalUser();
|
|
102
|
+
this._securityStore = securityStore;
|
|
103
|
+
this.isHost = [_type2.FcrUserRole.HOST, _type2.FcrUserRole.COHOST].includes((_userControl$getLocal = userControl.getLocalUser()) === null || _userControl$getLocal === void 0 ? void 0 : _userControl$getLocal.userRole);
|
|
104
|
+
uiEventStore.addObserver({
|
|
105
|
+
onEvent: function onEvent(action, payload) {
|
|
106
|
+
if (action === _constant.UIAction.WHITEBOARD_CHANGED) {
|
|
107
|
+
if (payload.action === _type.WhiteboardBaseEvents.SET_OWNER_USER_ID) {
|
|
108
|
+
var _this$_userControl;
|
|
109
|
+
_this.ownerUser = payload.payload ? _this === null || _this === void 0 || (_this$_userControl = _this._userControl) === null || _this$_userControl === void 0 ? void 0 : _this$_userControl.getUser(payload.payload) : undefined;
|
|
110
|
+
}
|
|
111
|
+
if (payload.action === _type.WhiteboardControlbarEvents.LONEYWINDOW) {
|
|
112
|
+
_this.lonelywindowOpened = payload.payload;
|
|
113
|
+
}
|
|
114
|
+
if (payload.action === _type.WhiteboardControlbarEvents.ENABLE_CONTROL) {
|
|
115
|
+
_this.controlEnabled = payload.payload;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
userControl.addObserver({
|
|
121
|
+
onUserInfoUpdated: function onUserInfoUpdated(_, event) {
|
|
122
|
+
var localUser = _this._userControl.getLocalUser();
|
|
123
|
+
if (event.modifiedUser.userId === localUser.userId) {
|
|
124
|
+
_this.isHost = [_type2.FcrUserRole.HOST, _type2.FcrUserRole.COHOST].includes(localUser.userRole);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
return (0, _createClass2["default"])(WhiteboardControlBarStore, [{
|
|
130
|
+
key: _ref,
|
|
131
|
+
get: function get() {
|
|
132
|
+
return _classPrivateFieldGet(_A, this);
|
|
133
|
+
}
|
|
134
|
+
}, {
|
|
135
|
+
key: "ownerUser",
|
|
136
|
+
set: function set(v) {
|
|
137
|
+
_classPrivateFieldSet(_A, this, v);
|
|
138
|
+
}
|
|
139
|
+
}, {
|
|
140
|
+
key: "currentUser",
|
|
141
|
+
get: function get() {
|
|
142
|
+
return _classPrivateFieldGet(_B, this);
|
|
143
|
+
},
|
|
144
|
+
set: function set(v) {
|
|
145
|
+
_classPrivateFieldSet(_B, this, v);
|
|
146
|
+
}
|
|
147
|
+
}, {
|
|
148
|
+
key: "lonelywindowOpened",
|
|
149
|
+
get: function get() {
|
|
150
|
+
return _classPrivateFieldGet(_C, this);
|
|
151
|
+
},
|
|
152
|
+
set: function set(v) {
|
|
153
|
+
_classPrivateFieldSet(_C, this, v);
|
|
154
|
+
}
|
|
155
|
+
}, {
|
|
156
|
+
key: "isMinimum",
|
|
157
|
+
get: function get() {
|
|
158
|
+
return _classPrivateFieldGet(_D, this);
|
|
159
|
+
},
|
|
160
|
+
set: function set(v) {
|
|
161
|
+
_classPrivateFieldSet(_D, this, v);
|
|
162
|
+
}
|
|
163
|
+
}, {
|
|
164
|
+
key: "isMaxmum",
|
|
165
|
+
get: function get() {
|
|
166
|
+
return _classPrivateFieldGet(_E, this);
|
|
167
|
+
},
|
|
168
|
+
set: function set(v) {
|
|
169
|
+
_classPrivateFieldSet(_E, this, v);
|
|
170
|
+
}
|
|
171
|
+
}, {
|
|
172
|
+
key: "isAdaptived",
|
|
173
|
+
get: function get() {
|
|
174
|
+
return _classPrivateFieldGet(_F, this);
|
|
175
|
+
},
|
|
176
|
+
set: function set(v) {
|
|
177
|
+
_classPrivateFieldSet(_F, this, v);
|
|
178
|
+
}
|
|
179
|
+
}, {
|
|
180
|
+
key: "isOriginal",
|
|
181
|
+
get: function get() {
|
|
182
|
+
return _classPrivateFieldGet(_G, this);
|
|
183
|
+
},
|
|
184
|
+
set: function set(v) {
|
|
185
|
+
_classPrivateFieldSet(_G, this, v);
|
|
186
|
+
}
|
|
187
|
+
}, {
|
|
188
|
+
key: "scaleValue",
|
|
189
|
+
get: function get() {
|
|
190
|
+
return _classPrivateFieldGet(_H, this);
|
|
191
|
+
},
|
|
192
|
+
set: function set(v) {
|
|
193
|
+
_classPrivateFieldSet(_H, this, v);
|
|
194
|
+
}
|
|
195
|
+
}, {
|
|
196
|
+
key: "controlEnabled",
|
|
197
|
+
get: function get() {
|
|
198
|
+
return _classPrivateFieldGet(_I, this);
|
|
199
|
+
},
|
|
200
|
+
set: function set(v) {
|
|
201
|
+
_classPrivateFieldSet(_I, this, v);
|
|
202
|
+
}
|
|
203
|
+
}, {
|
|
204
|
+
key: "isHost",
|
|
205
|
+
get: function get() {
|
|
206
|
+
return _classPrivateFieldGet(_J, this);
|
|
207
|
+
},
|
|
208
|
+
set: function set(v) {
|
|
209
|
+
_classPrivateFieldSet(_J, this, v);
|
|
210
|
+
}
|
|
211
|
+
}, {
|
|
212
|
+
key: "canWriteBoard",
|
|
213
|
+
get: function get() {
|
|
214
|
+
var _this$_securityStore;
|
|
215
|
+
var cando = (_this$_securityStore = this._securityStore) === null || _this$_securityStore === void 0 ? void 0 : _this$_securityStore.hasWriteBoardPermission();
|
|
216
|
+
if (!cando && !this.isHost) this.onEnable(cando);
|
|
217
|
+
return cando;
|
|
218
|
+
}
|
|
219
|
+
}, {
|
|
220
|
+
key: "onZoomin",
|
|
221
|
+
value: function onZoomin() {
|
|
222
|
+
this._uiEventStore.sendEvent(_constant.UIAction.WHITEBOARD_CHANGED, {
|
|
223
|
+
action: _type.WhiteboardControlbarEvents.ZOOMIN
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
}, {
|
|
227
|
+
key: "onZoomout",
|
|
228
|
+
value: function onZoomout() {
|
|
229
|
+
this._uiEventStore.sendEvent(_constant.UIAction.WHITEBOARD_CHANGED, {
|
|
230
|
+
action: _type.WhiteboardControlbarEvents.ZOOMOUT
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
}, {
|
|
234
|
+
key: "onAdaptive",
|
|
235
|
+
value: function onAdaptive() {
|
|
236
|
+
this._uiEventStore.sendEvent(_constant.UIAction.WHITEBOARD_CHANGED, {
|
|
237
|
+
action: _type.WhiteboardControlbarEvents.ADAPTIVE
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
}, {
|
|
241
|
+
key: "onOrigin",
|
|
242
|
+
value: function onOrigin() {
|
|
243
|
+
this._uiEventStore.sendEvent(_constant.UIAction.WHITEBOARD_CHANGED, {
|
|
244
|
+
action: _type.WhiteboardControlbarEvents.ORIGIN
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
}, {
|
|
248
|
+
key: "onLonelyWindow",
|
|
249
|
+
value: function onLonelyWindow() {
|
|
250
|
+
this._uiEventStore.sendEvent(_constant.UIAction.WHITEBOARD_CHANGED, {
|
|
251
|
+
action: _type.WhiteboardControlbarEvents.LONEYWINDOW,
|
|
252
|
+
payload: !this.lonelywindowOpened
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
}, {
|
|
256
|
+
key: "onClose",
|
|
257
|
+
value: function onClose() {
|
|
258
|
+
this._uiEventStore.sendEvent(_constant.UIAction.CLOSE_WHITEBOARD);
|
|
259
|
+
}
|
|
260
|
+
}, {
|
|
261
|
+
key: "setOwnerUser",
|
|
262
|
+
value: function setOwnerUser(user) {
|
|
263
|
+
this.ownerUser = user;
|
|
264
|
+
}
|
|
265
|
+
}, {
|
|
266
|
+
key: "onEnable",
|
|
267
|
+
value: function onEnable(controlEnabled) {
|
|
268
|
+
this._uiEventStore.sendEvent(_constant.UIAction.WHITEBOARD_CHANGED, {
|
|
269
|
+
action: _type.WhiteboardControlbarEvents.ENABLE_CONTROL,
|
|
270
|
+
payload: controlEnabled
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
}]);
|
|
274
|
+
}();
|
|
275
|
+
_WhiteboardControlBarStore = WhiteboardControlBarStore;
|
|
276
|
+
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_WhiteboardControlBarStore, [[_mobx.observable, 1, "ownerUser"], [_mobx.observable, 1, "currentUser"], [_mobx.observable, 1, "lonelywindowOpened"], [_mobx.observable, 1, "isMinimum"], [_mobx.observable, 1, "isMaxmum"], [_mobx.observable, 1, "isAdaptived"], [_mobx.observable, 1, "isOriginal"], [_mobx.observable, 1, "scaleValue"], [_mobx.observable, 1, "controlEnabled"], [_mobx.observable, 1, "isHost"], [_mobx.computed, 3, "canWriteBoard"], [_decorator.bound, 2, "onZoomin"], [_decorator.bound, 2, "onZoomout"], [_decorator.bound, 2, "onAdaptive"], [_decorator.bound, 2, "onOrigin"], [_decorator.bound, 2, "onLonelyWindow"], [_decorator.bound, 2, "onClose"], [_setOwnerUserDecs, 18, "setOwnerUser"], [_onEnableDecs, 18, "onEnable"]], []).e, 11);
|
|
277
|
+
_init_ownerUser = _applyDecs$e[0];
|
|
278
|
+
_init_currentUser = _applyDecs$e[1];
|
|
279
|
+
_init_lonelywindowOpened = _applyDecs$e[2];
|
|
280
|
+
_init_isMinimum = _applyDecs$e[3];
|
|
281
|
+
_init_isMaxmum = _applyDecs$e[4];
|
|
282
|
+
_init_isAdaptived = _applyDecs$e[5];
|
|
283
|
+
_init_isOriginal = _applyDecs$e[6];
|
|
284
|
+
_init_scaleValue = _applyDecs$e[7];
|
|
285
|
+
_init_controlEnabled = _applyDecs$e[8];
|
|
286
|
+
_init_isHost = _applyDecs$e[9];
|
|
287
|
+
_initProto = _applyDecs$e[10];
|
|
288
|
+
var WhiteboardControlBarUIContext = exports.WhiteboardControlBarUIContext = /*#__PURE__*/(0, _react.createContext)(null);
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
.fcr-board-loading {
|
|
2
|
+
border-radius: 10px;
|
|
3
|
+
position: absolute;
|
|
4
|
+
z-index: 999;
|
|
5
|
+
display: flex;
|
|
6
|
+
top: 10px;
|
|
7
|
+
right: 13px;
|
|
8
|
+
width: 447px;
|
|
9
|
+
height: fit-content;
|
|
10
|
+
transition: all 0.2s;
|
|
11
|
+
padding: 16px 12px 0 19px;
|
|
12
|
+
gap: 14px;
|
|
13
|
+
background: #748bff;
|
|
14
|
+
}
|
|
15
|
+
.fcr-board-loading-minimize {
|
|
16
|
+
width: fit-content;
|
|
17
|
+
height: 38px;
|
|
18
|
+
padding: 0 14px 0;
|
|
19
|
+
gap: 6px;
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.fcr-board-loading-img-wrap img {
|
|
25
|
+
width: 100%;
|
|
26
|
+
height: 100%;
|
|
27
|
+
animation: rotate 1s linear infinite;
|
|
28
|
+
width: 43px;
|
|
29
|
+
height: 43px;
|
|
30
|
+
}
|
|
31
|
+
.fcr-board-loading-minimize .fcr-board-loading-img-wrap img {
|
|
32
|
+
width: 22px;
|
|
33
|
+
height: 22px;
|
|
34
|
+
}
|
|
35
|
+
.fcr-board-loading-text {
|
|
36
|
+
color: #fff;
|
|
37
|
+
font-size: 14px;
|
|
38
|
+
line-height: 18px;
|
|
39
|
+
font-weight: 600;
|
|
40
|
+
text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.4);
|
|
41
|
+
white-space: pre-wrap;
|
|
42
|
+
}
|
|
43
|
+
.fcr-board-loading-minimize .fcr-board-loading-text {
|
|
44
|
+
color: #fff;
|
|
45
|
+
font-size: 14px;
|
|
46
|
+
line-height: 14px;
|
|
47
|
+
font-weight: 600;
|
|
48
|
+
}
|
|
49
|
+
.fcr-board-loading-btns {
|
|
50
|
+
color: #fff;
|
|
51
|
+
display: flex;
|
|
52
|
+
gap: 7px;
|
|
53
|
+
justify-content: flex-end;
|
|
54
|
+
padding-top: 10px;
|
|
55
|
+
}
|
|
56
|
+
.fcr-board-loading-btns .fcr-button-secondary {
|
|
57
|
+
color: #fff;
|
|
58
|
+
}
|
|
59
|
+
.fcr-board-loading-content {
|
|
60
|
+
flex: 1;
|
|
61
|
+
justify-content: space-between;
|
|
62
|
+
padding-bottom: 10px;
|
|
63
|
+
display: flex;
|
|
64
|
+
flex-direction: column;
|
|
65
|
+
}
|
|
66
|
+
.fcr-board-loading-minimize .fcr-board-loading-content {
|
|
67
|
+
padding-bottom: 0;
|
|
68
|
+
}
|
|
69
|
+
@keyframes rotate {
|
|
70
|
+
0% {
|
|
71
|
+
transform: rotate(0deg);
|
|
72
|
+
}
|
|
73
|
+
100% {
|
|
74
|
+
transform: rotate(359deg);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
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.Loading = void 0;
|
|
9
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
|
+
require("./index.css");
|
|
11
|
+
var _react = require("react");
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
var _loading = _interopRequireDefault(require("./loading.png"));
|
|
14
|
+
var _mobxReact = require("mobx-react");
|
|
15
|
+
var _context = require("../../context");
|
|
16
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
17
|
+
var _button = require("agora-ui-foundation/lib/components/button");
|
|
18
|
+
var _fcrCore = require("fcr-core");
|
|
19
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
|
+
var Loading = exports.Loading = (0, _mobxReact.observer)(function () {
|
|
21
|
+
var transI18n = (0, _i18n.useI18n)();
|
|
22
|
+
var _useContext = (0, _react.useContext)(_context.BoardUIContext),
|
|
23
|
+
_useContext$observabl = _useContext.observables,
|
|
24
|
+
connectionState = _useContext$observabl.connectionState,
|
|
25
|
+
joinSuccessed = _useContext$observabl.joinSuccessed,
|
|
26
|
+
canOperate = _useContext$observabl.canOperate,
|
|
27
|
+
handleClose = _useContext.handleClose;
|
|
28
|
+
var isReconnecting = connectionState === _fcrCore.FcrConnectionState.RECONNECTING || connectionState === _fcrCore.FcrConnectionState.CONNECTING && joinSuccessed;
|
|
29
|
+
var _useState = (0, _react.useState)(!isReconnecting || !canOperate),
|
|
30
|
+
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
31
|
+
minimize = _useState2[0],
|
|
32
|
+
setMinimize = _useState2[1];
|
|
33
|
+
var text = isReconnecting ? minimize ? transI18n('fmt_screenshare_whiteboard_tips_reconnectinghold') : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
34
|
+
children: [transI18n('fmt_screenshare_whiteboard_tips_reconnectinghold'), /*#__PURE__*/(0, _jsxRuntime.jsx)("br", {}), transI18n('fmt_screenshare_whiteboard_tips_couldreopen')]
|
|
35
|
+
}) : transI18n('fmt_screenshare_whiteboard_tips_reopening');
|
|
36
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
37
|
+
className: (0, _classnames["default"])('fcr-board-loading', {
|
|
38
|
+
'fcr-board-loading-minimize': minimize
|
|
39
|
+
}),
|
|
40
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
41
|
+
className: "fcr-board-loading-img-wrap",
|
|
42
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
43
|
+
src: _loading["default"]
|
|
44
|
+
})
|
|
45
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
46
|
+
className: "fcr-board-loading-content",
|
|
47
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
48
|
+
className: "fcr-board-loading-text",
|
|
49
|
+
children: text
|
|
50
|
+
}), !minimize && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
51
|
+
className: "fcr-board-loading-btns",
|
|
52
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
|
|
53
|
+
onClick: function onClick() {
|
|
54
|
+
setMinimize(true);
|
|
55
|
+
},
|
|
56
|
+
type: "secondary",
|
|
57
|
+
size: "XXS",
|
|
58
|
+
children: transI18n('fmt_screenshare_whiteboard_tips_continuewaiting')
|
|
59
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
|
|
60
|
+
onClick: handleClose,
|
|
61
|
+
styleType: "danger",
|
|
62
|
+
size: "XXS",
|
|
63
|
+
children: transI18n('fmt_screenshare_whiteboard_button_dontwait')
|
|
64
|
+
})]
|
|
65
|
+
})]
|
|
66
|
+
})]
|
|
67
|
+
});
|
|
68
|
+
});
|
|
Binary file
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/* board window */
|
|
2
|
+
|
|
3
|
+
.fcr-widget-dialog {
|
|
4
|
+
display: flex !important;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
height: 100%;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.fcr-widget-dialog-title-bar {
|
|
11
|
+
height: 28px;
|
|
12
|
+
line-height: 28px;
|
|
13
|
+
font-weight: 700;
|
|
14
|
+
font-size: 14px;
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
display: none;
|
|
18
|
+
}
|
|
19
|
+
.fcr-widget-dialog-title-bar span {
|
|
20
|
+
flex-grow: 1;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.fcr-widget-dialog-title-bar ul li {
|
|
24
|
+
border-radius: 40px;
|
|
25
|
+
width: 16px;
|
|
26
|
+
height: 16px;
|
|
27
|
+
display: flex;
|
|
28
|
+
justify-content: center;
|
|
29
|
+
align-items: center;
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
}
|
|
32
|
+
.fcr-widget-dialog-title-bar ul li:hover {
|
|
33
|
+
/* @apply fcr-bg-brand; */
|
|
34
|
+
}
|
|
35
|
+
.fcr-widget-dialog-title-bar .fcr-widget-dialog-title-action-minimize:hover {
|
|
36
|
+
/* @apply fcr-bg-yellowwarm; */
|
|
37
|
+
}
|
|
38
|
+
.fcr-widget-dialog-title-bar .fcr-widget-dialog-title-action-fullscreen:hover {
|
|
39
|
+
/* @apply fcr-bg-green; */
|
|
40
|
+
/* background: rgba(255, 255, 255, 0.8); */
|
|
41
|
+
}
|
|
42
|
+
.fcr-widget-dialog-title-bar .fcr-widget-dialog-title-action-close:hover {
|
|
43
|
+
/* @apply fcr-bg-red; */
|
|
44
|
+
}
|
|
45
|
+
.fcr-widget-dialog-title-bar .fcr-widget-dialog-title-action-refresh:hover {
|
|
46
|
+
/* @apply fcr-bg-brand; */
|
|
47
|
+
}
|
|
48
|
+
.fcr-widget-dialog-content {
|
|
49
|
+
/* @apply fcr-bg-7; */
|
|
50
|
+
flex-grow: 1;
|
|
51
|
+
position: relative;
|
|
52
|
+
/* prevent toolbar moving out of content area */
|
|
53
|
+
overflow: hidden;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.fcr-widget-dialog-title-actions ul {
|
|
57
|
+
display: flex;
|
|
58
|
+
align-items: center;
|
|
59
|
+
}
|
|
60
|
+
.fcr-widget-dialog-zindex-wrapper {
|
|
61
|
+
height: 100%;
|
|
62
|
+
display: flex;
|
|
63
|
+
flex-direction: column;
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -0,0 +1,39 @@
|
|
|
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.MultiWindowWidgetDialog = void 0;
|
|
9
|
+
var _mobxReact = require("mobx-react");
|
|
10
|
+
var _controlBar = require("../control-bar");
|
|
11
|
+
var _react = require("react");
|
|
12
|
+
var _context = require("../../context");
|
|
13
|
+
require("./index.css");
|
|
14
|
+
var _boardContext = _interopRequireDefault(require("../../../../utilities/board-context"));
|
|
15
|
+
var _fcrCore = require("fcr-core");
|
|
16
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
+
var MultiWindowWidgetDialog = exports.MultiWindowWidgetDialog = (0, _mobxReact.observer)(function (_ref) {
|
|
18
|
+
var children = _ref.children;
|
|
19
|
+
var _useContext = (0, _react.useContext)(_context.BoardUIContext),
|
|
20
|
+
connectionState = _useContext.observables.connectionState,
|
|
21
|
+
setWhiteboardVisible = _useContext.setWhiteboardVisible;
|
|
22
|
+
var _useContext2 = (0, _react.useContext)(_boardContext["default"]),
|
|
23
|
+
showToolbar = _useContext2.showToolbar;
|
|
24
|
+
var showControlbar = connectionState === _fcrCore.FcrConnectionState.CONNECTED;
|
|
25
|
+
var handleCancel = function handleCancel() {
|
|
26
|
+
setWhiteboardVisible(false);
|
|
27
|
+
};
|
|
28
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
29
|
+
className: "fcr-widget-dialog-zindex-wrapper fcr-widget-dialog",
|
|
30
|
+
children: [showControlbar && showToolbar && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
31
|
+
className: "fcr-widget-dialog-title-bar",
|
|
32
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_controlBar.WhiteboardControlbar, {})
|
|
33
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
34
|
+
className: "fcr-widget-dialog-content",
|
|
35
|
+
onClick: handleCancel,
|
|
36
|
+
children: children
|
|
37
|
+
})]
|
|
38
|
+
});
|
|
39
|
+
});
|