fcr-ui-scene 3.7.7 → 3.7.8-rc.1
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/installer/icons/icon.png +0 -0
- package/installer/mac/entitlements.mac.plist +5 -1
- package/lib/creator/provider-initializer.browser.js +2 -2
- package/lib/creator/provider-initializer.electron.js +2 -2
- package/lib/electron/bootstrap-sdk.js +70 -33
- package/lib/electron/hang-detection/index.d.ts +3 -0
- package/lib/electron/hang-detection/index.js +15 -0
- package/lib/electron/hang-detection/manager.d.ts +28 -0
- package/lib/electron/hang-detection/manager.js +231 -0
- package/lib/electron/hang-detection/types.d.ts +14 -0
- package/lib/electron/until.d.ts +1 -4
- package/lib/electron/until.js +9 -4
- package/lib/modules/action-bar/components/screen-share/index.electron.js +1 -1
- package/lib/modules/components/control-bar/components/switch-theme/index.js +4 -2
- package/lib/modules/components/control-bar/index.js +1 -3
- package/lib/modules/participant/store.base.js +0 -1
- package/lib/modules/share-screen/store.electron.js +9 -0
- package/lib/modules/state-bar/store.base.electron.js +6 -2
- package/lib/providers/board-share/bar-control/base.d.ts +2 -0
- package/lib/providers/board-share/bar-control/base.js +13 -3
- package/lib/providers/board-share/bar-control/electron.d.ts +1 -0
- package/lib/providers/board-share/bar-control/electron.js +15 -4
- package/lib/providers/board-share/provider.base.d.ts +1 -0
- package/lib/providers/board-share/provider.base.js +3 -1
- package/lib/providers/board-share/provider.electron.d.ts +1 -0
- package/lib/providers/board-share/provider.electron.js +8 -2
- package/lib/providers/board-share/type.d.ts +2 -0
- package/lib/providers/dialog/provider.electron.js +10 -2
- package/lib/providers/screen-share/strategy/browser.js +50 -3
- package/lib/providers/screen-share/strategy/electron.js +77 -8
- package/lib/providers/screen-share/stream-state-sync.d.ts +3 -1
- package/lib/providers/screen-share/stream-state-sync.js +133 -40
- package/package.json +5 -5
- package/lib/creator.d.ts +0 -36
- package/lib/creator.js +0 -465
- package/lib/modules/action-bar/index.d.ts +0 -58
- package/lib/modules/action-bar/index.dev.d.ts +0 -0
- package/lib/modules/action-bar/index.dev.js +0 -94
- package/lib/modules/action-bar/index.js +0 -109
- package/lib/modules/action-bar/store.d.ts +0 -259
- package/lib/modules/action-bar/store.js +0 -1529
- package/lib/modules/action-bar/types.d.ts +0 -90
- package/lib/modules/action-bar/view.d.ts +0 -5
- package/lib/modules/action-bar/view.js +0 -112
- package/lib/modules/annotation/annotation-index.d.ts +0 -2
- package/lib/modules/annotation/annotation-index.js +0 -80
- package/lib/modules/annotation/annotation-toolbar-store.d.ts +0 -75
- package/lib/modules/annotation/annotation-toolbar-store.js +0 -459
- package/lib/modules/annotation/board-cursor.css +0 -77
- package/lib/modules/annotation/components/color-picker/components/color.d.ts +0 -5
- package/lib/modules/annotation/components/color-picker/components/color.js +0 -38
- package/lib/modules/annotation/components/color-picker/components/panel.d.ts +0 -1
- package/lib/modules/annotation/components/color-picker/components/panel.js +0 -109
- package/lib/modules/annotation/components/color-picker/components/picker.d.ts +0 -1
- package/lib/modules/annotation/components/color-picker/components/picker.js +0 -75
- package/lib/modules/annotation/components/color-picker/index.d.ts +0 -2
- package/lib/modules/annotation/components/color-picker/index.js +0 -47
- package/lib/modules/annotation/components/eraser-picker.d.ts +0 -4
- package/lib/modules/annotation/components/eraser-picker.js +0 -144
- package/lib/modules/annotation/components/expansion/index.d.ts +0 -1
- package/lib/modules/annotation/components/expansion/index.js +0 -100
- package/lib/modules/annotation/components/extra-tool-picker.d.ts +0 -1
- package/lib/modules/annotation/components/extra-tool-picker.js +0 -62
- package/lib/modules/annotation/components/history.d.ts +0 -2
- package/lib/modules/annotation/components/history.js +0 -78
- package/lib/modules/annotation/components/icons/fold-icon.d.ts +0 -2
- package/lib/modules/annotation/components/icons/fold-icon.js +0 -41
- package/lib/modules/annotation/components/icons/move-icon.d.ts +0 -1
- package/lib/modules/annotation/components/icons/move-icon.js +0 -66
- package/lib/modules/annotation/components/item/index.d.ts +0 -1
- package/lib/modules/annotation/components/item/index.js +0 -43
- package/lib/modules/annotation/components/move-handle.d.ts +0 -5
- package/lib/modules/annotation/components/move-handle.js +0 -134
- package/lib/modules/annotation/components/pen-picker.d.ts +0 -4
- package/lib/modules/annotation/components/pen-picker.js +0 -155
- package/lib/modules/annotation/components/screen-capture-picker.d.ts +0 -4
- package/lib/modules/annotation/components/screen-capture-picker.js +0 -85
- package/lib/modules/annotation/components/shape-picker.d.ts +0 -4
- package/lib/modules/annotation/components/shape-picker.js +0 -210
- package/lib/modules/annotation/hooks/index.d.ts +0 -14
- package/lib/modules/annotation/hooks/index.js +0 -292
- package/lib/modules/annotation/index.d.ts +0 -45
- package/lib/modules/annotation/index.js +0 -168
- package/lib/modules/annotation/store.d.ts +0 -98
- package/lib/modules/annotation/store.js +0 -620
- package/lib/modules/annotation/style.css +0 -36
- package/lib/modules/annotation/view.d.ts +0 -3
- package/lib/modules/annotation/view.js +0 -44
- package/lib/modules/components/device-control/store.d.ts +0 -42
- package/lib/modules/components/device-control/store.js +0 -241
- package/lib/modules/components/leave-meeting/store.d.ts +0 -39
- package/lib/modules/components/leave-meeting/store.js +0 -270
- package/lib/modules/control-bar/components/annotation-button/index.d.ts +0 -1
- package/lib/modules/control-bar/components/annotation-button/index.js +0 -72
- package/lib/modules/control-bar/types.d.ts +0 -20
- package/lib/modules/control-bar/types.js +0 -6
- package/lib/modules/dialog/dialogs/pre-setting/index.css +0 -26
- package/lib/modules/dialog/dialogs/pre-setting/index.d.ts +0 -6
- package/lib/modules/dialog/dialogs/pre-setting/index.js +0 -62
- package/lib/modules/dialog/dialogs/widget/electron.d.ts +0 -6
- package/lib/modules/dialog/dialogs/widget/electron.js +0 -38
- package/lib/modules/dialog/hooks/use-popover-watcher.d.ts +0 -14
- package/lib/modules/dialog/hooks/use-popover-watcher.js +0 -110
- package/lib/modules/dialog/hooks/useElectron.d.ts +0 -28
- package/lib/modules/dialog/hooks/useElectron.js +0 -277
- package/lib/modules/dialog/store.d.ts +0 -135
- package/lib/modules/dialog/store.js +0 -616
- package/lib/modules/event-confirm/components/window/index.d.ts +0 -7
- package/lib/modules/event-confirm/components/window/index.js +0 -221
- package/lib/modules/event-confirm/index.css +0 -24
- package/lib/modules/event-confirm/index.d.ts +0 -27
- package/lib/modules/event-confirm/index.js +0 -76
- package/lib/modules/event-confirm/store.d.ts +0 -50
- package/lib/modules/event-confirm/store.js +0 -394
- package/lib/modules/event-confirm/view.d.ts +0 -2
- package/lib/modules/event-confirm/view.js +0 -55
- package/lib/modules/event-toast/store.d.ts +0 -27
- package/lib/modules/event-toast/store.js +0 -205
- package/lib/modules/layout/store.d.ts +0 -176
- package/lib/modules/layout/store.js +0 -1452
- package/lib/modules/participant/store.d.ts +0 -222
- package/lib/modules/participant/store.js +0 -1929
- package/lib/modules/pc-audio-connect/index.d.ts +0 -22
- package/lib/modules/pc-audio-connect/index.js +0 -67
- package/lib/modules/pc-audio-connect/store.d.ts +0 -46
- package/lib/modules/pc-audio-connect/store.js +0 -304
- package/lib/modules/setting/common/advance-link.d.ts +0 -3
- package/lib/modules/setting/common/advance-link.js +0 -27
- package/lib/modules/setting/common/index.css +0 -26
- package/lib/modules/setting/common/useNamespace.d.ts +0 -15
- package/lib/modules/setting/common/useNamespace.js +0 -66
- package/lib/modules/setting/dialog-wrapper.d.ts +0 -2
- package/lib/modules/setting/dialog-wrapper.js +0 -110
- package/lib/modules/setting/store.d.ts +0 -261
- package/lib/modules/setting/store.js +0 -1321
- package/lib/modules/share-screen/store.d.ts +0 -148
- package/lib/modules/share-screen/store.js +0 -960
- package/lib/modules/share-screen/types.d.ts +0 -26
- package/lib/modules/share-screen/types.js +0 -6
- package/lib/modules/state-bar/store.d.ts +0 -124
- package/lib/modules/state-bar/store.js +0 -664
- package/lib/modules/whiteboard/components/progress/electron.d.ts +0 -1
- package/lib/modules/whiteboard/components/progress/electron.js +0 -33
- package/lib/modules/widget/store.d.ts +0 -14
- package/lib/modules/widget/store.js +0 -28
- package/lib/providers/annotation-provider.d.ts +0 -124
- package/lib/providers/annotation-provider.js +0 -369
- package/lib/providers/dialog-provider.d.ts +0 -137
- package/lib/providers/dialog-provider.js +0 -194
- package/lib/providers/message-provider.d.ts +0 -69
- package/lib/providers/message-provider.js +0 -140
- package/lib/providers/room-provider.d.ts +0 -194
- package/lib/providers/room-provider.js +0 -916
- package/lib/providers/screen-share-provider.d.ts +0 -245
- package/lib/providers/screen-share-provider.js +0 -850
- package/lib/providers/sharing-provider.d.ts +0 -42
- package/lib/providers/sharing-provider.js +0 -228
- package/lib/providers/user-setting-storage-provider.d.ts +0 -21
- package/lib/providers/user-setting-storage-provider.js +0 -65
- package/lib/providers/whiteboard-provider.d.ts +0 -24
- package/lib/providers/whiteboard-provider.js +0 -128
- package/lib/shared-data-source/annotation-data.d.ts +0 -17
- package/lib/shared-data-source/annotation-data.js +0 -110
- package/lib/shared-data-source/app-list-data.d.ts +0 -34
- package/lib/shared-data-source/app-list-data.js +0 -133
- package/lib/shared-data-source/chat-data.d.ts +0 -25
- package/lib/shared-data-source/chat-data.js +0 -139
- package/lib/shared-data-source/config.d.ts +0 -35
- package/lib/shared-data-source/config.js +0 -40
- package/lib/shared-data-source/confirm-data.d.ts +0 -44
- package/lib/shared-data-source/confirm-data.js +0 -201
- package/lib/shared-data-source/device-privilege-data.d.ts +0 -8
- package/lib/shared-data-source/device-privilege-data.js +0 -25
- package/lib/shared-data-source/interpreter.d.ts +0 -77
- package/lib/shared-data-source/interpreter.js +0 -247
- package/lib/shared-data-source/layout-data.d.ts +0 -31
- package/lib/shared-data-source/layout-data.js +0 -189
- package/lib/shared-data-source/meeting-time.d.ts +0 -90
- package/lib/shared-data-source/meeting-time.js +0 -416
- package/lib/shared-data-source/member-data.d.ts +0 -139
- package/lib/shared-data-source/member-data.js +0 -517
- package/lib/shared-data-source/pin-data.d.ts +0 -13
- package/lib/shared-data-source/pin-data.js +0 -111
- package/lib/shared-data-source/screen-share-data.d.ts +0 -357
- package/lib/shared-data-source/screen-share-data.js +0 -513
- package/lib/shared-data-source/security-data.d.ts +0 -39
- package/lib/shared-data-source/security-data.js +0 -156
- package/lib/shared-data-source/setting.d.ts +0 -67
- package/lib/shared-data-source/setting.js +0 -220
- package/lib/shared-data-source/speaker-spotlight.d.ts +0 -5
- package/lib/shared-data-source/speaker-spotlight.js +0 -15
- package/lib/shared-data-source/video-window.d.ts +0 -165
- package/lib/shared-data-source/video-window.js +0 -1266
- package/lib/shared-data-source/waiting-room.d.ts +0 -46
- package/lib/shared-data-source/waiting-room.js +0 -222
- package/lib/shared-data-source/whiteboard-data.d.ts +0 -70
- package/lib/shared-data-source/whiteboard-data.js +0 -348
- package/lib/utilities/board-context.d.ts +0 -4
- package/lib/utilities/board-context.js +0 -12
- package/lib/utilities/copyText.d.ts +0 -2
- package/lib/utilities/copyText.js +0 -48
- package/lib/utilities/renderer-event.d.ts +0 -10
- package/lib/utilities/renderer-event.js +0 -95
- package/lib/utilities/screen-capture-permission.d.ts +0 -2
- package/lib/utilities/screen-capture-permission.js +0 -24
- package/lib/utilities/screen.d.ts +0 -3
- package/lib/utilities/screen.js +0 -53
- package/lib/utilities/video-track-render-context.d.ts +0 -6
- package/lib/utilities/video-track-render-context.js +0 -9
- package/lib/waiting-room-control-manager.d.ts +0 -28
- package/lib/waiting-room-control-manager.js +0 -230
- /package/lib/{modules/action-bar → electron/hang-detection}/types.js +0 -0
|
@@ -1,205 +0,0 @@
|
|
|
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.date.to-primitive.js");
|
|
10
|
-
require("core-js/modules/es.function.name.js");
|
|
11
|
-
require("core-js/modules/es.number.constructor.js");
|
|
12
|
-
require("core-js/modules/es.object.create.js");
|
|
13
|
-
require("core-js/modules/es.object.define-property.js");
|
|
14
|
-
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
15
|
-
require("core-js/modules/esnext.function.metadata.js");
|
|
16
|
-
require("core-js/modules/esnext.symbol.metadata.js");
|
|
17
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
18
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
19
|
-
Object.defineProperty(exports, "__esModule", {
|
|
20
|
-
value: true
|
|
21
|
-
});
|
|
22
|
-
exports["default"] = exports.StoreContext = void 0;
|
|
23
|
-
require("core-js/modules/es.array.for-each.js");
|
|
24
|
-
require("core-js/modules/es.array.from.js");
|
|
25
|
-
require("core-js/modules/es.array.iterator.js");
|
|
26
|
-
require("core-js/modules/es.array.map.js");
|
|
27
|
-
require("core-js/modules/es.array.push.js");
|
|
28
|
-
require("core-js/modules/es.date.to-json.js");
|
|
29
|
-
require("core-js/modules/es.function.bind.js");
|
|
30
|
-
require("core-js/modules/es.json.stringify.js");
|
|
31
|
-
require("core-js/modules/es.map.js");
|
|
32
|
-
require("core-js/modules/es.object.keys.js");
|
|
33
|
-
require("core-js/modules/es.object.to-string.js");
|
|
34
|
-
require("core-js/modules/es.string.iterator.js");
|
|
35
|
-
require("core-js/modules/es.weak-map.js");
|
|
36
|
-
require("core-js/modules/esnext.iterator.constructor.js");
|
|
37
|
-
require("core-js/modules/esnext.iterator.for-each.js");
|
|
38
|
-
require("core-js/modules/esnext.iterator.map.js");
|
|
39
|
-
require("core-js/modules/esnext.json.parse.js");
|
|
40
|
-
require("core-js/modules/esnext.map.delete-all.js");
|
|
41
|
-
require("core-js/modules/esnext.map.emplace.js");
|
|
42
|
-
require("core-js/modules/esnext.map.every.js");
|
|
43
|
-
require("core-js/modules/esnext.map.filter.js");
|
|
44
|
-
require("core-js/modules/esnext.map.find.js");
|
|
45
|
-
require("core-js/modules/esnext.map.find-key.js");
|
|
46
|
-
require("core-js/modules/esnext.map.includes.js");
|
|
47
|
-
require("core-js/modules/esnext.map.key-of.js");
|
|
48
|
-
require("core-js/modules/esnext.map.map-keys.js");
|
|
49
|
-
require("core-js/modules/esnext.map.map-values.js");
|
|
50
|
-
require("core-js/modules/esnext.map.merge.js");
|
|
51
|
-
require("core-js/modules/esnext.map.reduce.js");
|
|
52
|
-
require("core-js/modules/esnext.map.some.js");
|
|
53
|
-
require("core-js/modules/esnext.map.update.js");
|
|
54
|
-
require("core-js/modules/esnext.weak-map.delete-all.js");
|
|
55
|
-
require("core-js/modules/esnext.weak-map.emplace.js");
|
|
56
|
-
require("core-js/modules/web.dom-collections.for-each.js");
|
|
57
|
-
require("core-js/modules/web.dom-collections.iterator.js");
|
|
58
|
-
require("core-js/modules/web.timers.js");
|
|
59
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
60
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
61
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
62
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
63
|
-
var _mobx = require("mobx");
|
|
64
|
-
var _constant = require("../../utilities/constant");
|
|
65
|
-
var _toast = require("agora-ui-foundation/lib/components/toast");
|
|
66
|
-
var _react = require("react");
|
|
67
|
-
var _logger = require("../../utilities/logger");
|
|
68
|
-
var _dialogUtils = require("../../utilities/dialog-utils");
|
|
69
|
-
var _store = require("../dialog/store");
|
|
70
|
-
var _platform = require("../../utilities/platform");
|
|
71
|
-
var _ToastStore;
|
|
72
|
-
var _initProto, _init_toasts, _addToastDecs, _handleToastEventDecs, _ref;
|
|
73
|
-
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
74
|
-
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
75
|
-
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
76
|
-
function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
|
|
77
|
-
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"); }
|
|
78
|
-
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)]; } }; }
|
|
79
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
80
|
-
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); }
|
|
81
|
-
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; }
|
|
82
|
-
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; }
|
|
83
|
-
var _A = /*#__PURE__*/new WeakMap();
|
|
84
|
-
_ref = (_addToastDecs = [_mobx.action, _mobx.action.bound], _handleToastEventDecs = [_mobx.action, _mobx.action.bound], "logger");
|
|
85
|
-
var ToastStore = exports["default"] = /*#__PURE__*/function () {
|
|
86
|
-
function ToastStore(_ref2) {
|
|
87
|
-
var _this = this;
|
|
88
|
-
var uiEventStore = _ref2.uiEventStore,
|
|
89
|
-
messageProvider = _ref2.messageProvider;
|
|
90
|
-
(0, _classCallCheck2["default"])(this, ToastStore);
|
|
91
|
-
(0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.createLogger)({
|
|
92
|
-
prefix: 'ToastStore'
|
|
93
|
-
})));
|
|
94
|
-
(0, _defineProperty2["default"])(this, "_disposers", []);
|
|
95
|
-
(0, _defineProperty2["default"])(this, "_toastEventObserver", {
|
|
96
|
-
onEvent: this._handleToastEvent.bind(this)
|
|
97
|
-
});
|
|
98
|
-
_classPrivateFieldInitSpec(this, _A, _init_toasts(this, new Map()));
|
|
99
|
-
this._messageProvider = messageProvider;
|
|
100
|
-
this._uiEventProvider = uiEventStore;
|
|
101
|
-
this._uiEventProvider.addObserver(this._toastEventObserver);
|
|
102
|
-
this._messageProvider.addObserver(this._toastEventObserver);
|
|
103
|
-
this._disposers.push((0, _mobx.reaction)(function () {
|
|
104
|
-
return _this.toastsList;
|
|
105
|
-
}, function () {
|
|
106
|
-
_this.toasts.forEach(function (value) {
|
|
107
|
-
value();
|
|
108
|
-
});
|
|
109
|
-
}));
|
|
110
|
-
}
|
|
111
|
-
return (0, _createClass2["default"])(ToastStore, [{
|
|
112
|
-
key: "toasts",
|
|
113
|
-
get: function get() {
|
|
114
|
-
return _classPrivateFieldGet(_A, this);
|
|
115
|
-
},
|
|
116
|
-
set: function set(v) {
|
|
117
|
-
_classPrivateFieldSet(_A, this, v);
|
|
118
|
-
}
|
|
119
|
-
}, {
|
|
120
|
-
key: "toastsList",
|
|
121
|
-
get: function get() {
|
|
122
|
-
var result = Array.from(this.toasts.keys()).map(function (item) {
|
|
123
|
-
return JSON.parse(item);
|
|
124
|
-
});
|
|
125
|
-
return result;
|
|
126
|
-
}
|
|
127
|
-
}, {
|
|
128
|
-
key: "addToast",
|
|
129
|
-
value: function addToast(toast) {
|
|
130
|
-
var _this2 = this;
|
|
131
|
-
var toastKey = JSON.stringify(toast);
|
|
132
|
-
if (!this.toasts.get(toastKey)) {
|
|
133
|
-
this.toasts.set(toastKey, function () {
|
|
134
|
-
var timer = setTimeout(function () {
|
|
135
|
-
(0, _mobx.runInAction)(function () {
|
|
136
|
-
_this2.toasts["delete"](toastKey);
|
|
137
|
-
});
|
|
138
|
-
clearTimeout(timer);
|
|
139
|
-
}, toast.duration || 3000);
|
|
140
|
-
});
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
}, {
|
|
144
|
-
key: "release",
|
|
145
|
-
value: function release() {
|
|
146
|
-
this.toasts.clear();
|
|
147
|
-
this._disposers.forEach(function (disposer) {
|
|
148
|
-
return disposer();
|
|
149
|
-
});
|
|
150
|
-
this._messageProvider.removeObserver(this._toastEventObserver);
|
|
151
|
-
this._uiEventProvider.removeObserver(this._toastEventObserver);
|
|
152
|
-
}
|
|
153
|
-
}, {
|
|
154
|
-
key: "_handleToastEvent",
|
|
155
|
-
value: function _handleToastEvent(action, params) {
|
|
156
|
-
if (action === _constant.FcrUIAction.SHOW_TOAST) {
|
|
157
|
-
var _params$duration;
|
|
158
|
-
_toast.FcrToastApi.open({
|
|
159
|
-
id: params === null || params === void 0 ? void 0 : params.id,
|
|
160
|
-
toastProps: {
|
|
161
|
-
type: params.type,
|
|
162
|
-
content: params.message
|
|
163
|
-
},
|
|
164
|
-
customRootClass: params === null || params === void 0 ? void 0 : params.customRootClass,
|
|
165
|
-
duration: (_params$duration = params.duration) !== null && _params$duration !== void 0 ? _params$duration : 3000
|
|
166
|
-
});
|
|
167
|
-
}
|
|
168
|
-
if (action === _constant.FcrUIAction.OPEN_DIALOG && params.dialogKey === _constant.FcrUIDialogKey.SHOW_TOAST) {
|
|
169
|
-
var _dialogWindows$get;
|
|
170
|
-
(0, _dialogUtils.followCorrectDisplay)({
|
|
171
|
-
dialogKey: _constant.FcrUIDialogKey.SHOW_TOAST,
|
|
172
|
-
alwaysFollowScreen: true
|
|
173
|
-
});
|
|
174
|
-
(0, _platform.isWindows)() && ((_dialogWindows$get = _store.dialogWindows.get(_constant.FcrUIDialogKey.SHOW_TOAST)) === null || _dialogWindows$get === void 0 ? void 0 : _dialogWindows$get.setAlwaysOnTop(true, 'screen-saver'));
|
|
175
|
-
var _params$params = params.params,
|
|
176
|
-
_params$params$type = _params$params.type,
|
|
177
|
-
type = _params$params$type === void 0 ? 'info' : _params$params$type,
|
|
178
|
-
content = _params$params.message,
|
|
179
|
-
duration = _params$params.duration;
|
|
180
|
-
// if (!isElectron()) {
|
|
181
|
-
// return FcrToastApi.open({
|
|
182
|
-
// id: Date.now().toString(),
|
|
183
|
-
// toastProps: {
|
|
184
|
-
// type,
|
|
185
|
-
// content,
|
|
186
|
-
// },
|
|
187
|
-
// customRootClass: params?.customRootClass,
|
|
188
|
-
// duration: 30000, // params.duration ?? 3000,
|
|
189
|
-
// });
|
|
190
|
-
// }
|
|
191
|
-
this.addToast({
|
|
192
|
-
type: type,
|
|
193
|
-
content: content,
|
|
194
|
-
duration: duration,
|
|
195
|
-
dialogId: params.dialogId
|
|
196
|
-
});
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
}]);
|
|
200
|
-
}();
|
|
201
|
-
_ToastStore = ToastStore;
|
|
202
|
-
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ToastStore, [[_mobx.observable, 1, "toasts"], [_mobx.computed, 3, "toastsList"], [_addToastDecs, 18, "addToast"], [_handleToastEventDecs, 18, "_handleToastEvent"]], []).e, 2);
|
|
203
|
-
_init_toasts = _applyDecs$e[0];
|
|
204
|
-
_initProto = _applyDecs$e[1];
|
|
205
|
-
var StoreContext = exports.StoreContext = /*#__PURE__*/(0, _react.createContext)(null);
|
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
import { FcrPrivilegeUserRole, FcrStreamControl } from 'fcr-core';
|
|
2
|
-
import { FcrUserInfo, FcrUserRole } from 'fcr-core/lib/type';
|
|
3
|
-
import { FcrLayoutSlots, FcrUIVideoWindowData, FcrUIVideoWindowLayoutType, LayoutStoreParams } from './type';
|
|
4
|
-
import { FcrChatRoomConnectionState } from 'fcr-core/lib/room-control/chatroom-control/type';
|
|
5
|
-
import { FcrUserUpdatedEvent } from 'fcr-core/lib/room-control/user-control/type';
|
|
6
|
-
import { FcrUIEventObserver } from '../../providers/event-provider';
|
|
7
|
-
import { FcrUIAction } from '../../utilities/constant';
|
|
8
|
-
import { FcrUISetMainSpeakerParams } from '../../type';
|
|
9
|
-
export default class LayoutStore implements FcrLayoutSlots, FcrUIEventObserver {
|
|
10
|
-
private readonly logger;
|
|
11
|
-
private _videoWindowDataSource;
|
|
12
|
-
private _eventProvider;
|
|
13
|
-
private _deviceProvider;
|
|
14
|
-
private _privilegeProvider;
|
|
15
|
-
private _userControl;
|
|
16
|
-
private _streamControl;
|
|
17
|
-
private _roomControl;
|
|
18
|
-
private _whiteBoardControl;
|
|
19
|
-
private _chatRoomControl;
|
|
20
|
-
private _localView;
|
|
21
|
-
private _disposers;
|
|
22
|
-
private _barLockTimer;
|
|
23
|
-
private _liveStreamState;
|
|
24
|
-
private _sharedInterpreterDataSource;
|
|
25
|
-
private _sharedLayoutDataSource;
|
|
26
|
-
private _sharedSettingDataSource;
|
|
27
|
-
private _sharedMemberDataSource;
|
|
28
|
-
private _chatProvider;
|
|
29
|
-
private _pinDataSource;
|
|
30
|
-
private _sharedScreenShareDataSource;
|
|
31
|
-
private _sharedAnnotationDataSource;
|
|
32
|
-
private _multiDisplayProvider;
|
|
33
|
-
accessor participant: React.ReactNode;
|
|
34
|
-
accessor chat: React.ReactNode;
|
|
35
|
-
accessor chatAction: React.ReactNode;
|
|
36
|
-
accessor stateBar: React.ReactNode;
|
|
37
|
-
accessor actionBar: React.ReactNode;
|
|
38
|
-
accessor layers: React.ReactNode;
|
|
39
|
-
accessor whiteboard: React.ReactNode;
|
|
40
|
-
accessor annotation: React.ReactNode;
|
|
41
|
-
accessor screenShareControl: React.ReactNode;
|
|
42
|
-
accessor collapsed: boolean;
|
|
43
|
-
accessor aside: boolean;
|
|
44
|
-
accessor barHovering: boolean;
|
|
45
|
-
accessor barLocked: boolean;
|
|
46
|
-
accessor barHidden: boolean;
|
|
47
|
-
accessor asideWidth: number;
|
|
48
|
-
accessor userVolumeMap: Map<string, number>;
|
|
49
|
-
accessor chatRoomState: FcrChatRoomConnectionState;
|
|
50
|
-
accessor whiteboardActive: boolean;
|
|
51
|
-
accessor ownerUser: FcrUserInfo | undefined;
|
|
52
|
-
get streamControl(): FcrStreamControl;
|
|
53
|
-
get localUserRole(): FcrUserRole;
|
|
54
|
-
get localUser(): FcrUserInfo;
|
|
55
|
-
get shouldHideNonVideoParticipants(): boolean;
|
|
56
|
-
get shouldHideMyVideo(): boolean;
|
|
57
|
-
get enableSpotlight(): boolean;
|
|
58
|
-
get isWaterMarkEnabled(): boolean;
|
|
59
|
-
get isMulti(): boolean;
|
|
60
|
-
get layout(): import("../../type").FcrUIVideoWindowLayoutType;
|
|
61
|
-
get manualLayout(): import("../../type").FcrUIVideoWindowLayoutType | undefined;
|
|
62
|
-
get scalcValue(): number;
|
|
63
|
-
get annotationHasStart(): boolean;
|
|
64
|
-
get sourceList(): import("../../shared-data-source/video-window").FcrUIVideoWindowDataImpl[];
|
|
65
|
-
get layoutMainList(): import("../../shared-data-source/video-window").FcrUIVideoWindowDataImpl[];
|
|
66
|
-
get mainList(): import("../../shared-data-source/video-window").FcrUIVideoWindowDataImpl[];
|
|
67
|
-
get mainListMapByAudioStreamId(): Map<string, FcrUIVideoWindowData>;
|
|
68
|
-
get spotlightStreamId(): string;
|
|
69
|
-
get foldList(): import("../../shared-data-source/video-window").FcrUIVideoWindowDataImpl[];
|
|
70
|
-
get currentShareData(): import("../../shared-data-source/video-window").FcrUIVideoWindowDataImpl | undefined;
|
|
71
|
-
get galleryList(): import("../../shared-data-source/video-window").FcrUIVideoWindowDataImpl[];
|
|
72
|
-
get isMainWindow(): boolean;
|
|
73
|
-
get isMainWindowInScreenSharing(): boolean;
|
|
74
|
-
get isCurrentUserInBoardSharing(): boolean;
|
|
75
|
-
get asideLayout(): import("../../type").FcrUIUpdateAsideParams;
|
|
76
|
-
get carouselList(): import("../../shared-data-source/video-window").FcrUIVideoWindowDataImpl[];
|
|
77
|
-
get hasPinnedStream(): boolean;
|
|
78
|
-
get isRobot(): boolean;
|
|
79
|
-
get findSpotlightUser(): import("../../shared-data-source/video-window").FcrUIVideoWindowDataImpl | null | undefined;
|
|
80
|
-
get isWhoISpeakingActive(): boolean | "" | undefined;
|
|
81
|
-
get microphoneEnabled(): boolean;
|
|
82
|
-
get allowChat(): boolean;
|
|
83
|
-
get allowUnmuteSelfAudio(): boolean;
|
|
84
|
-
get allowUnmuteSelfVideo(): boolean;
|
|
85
|
-
get isHostOrCoHost(): boolean;
|
|
86
|
-
get galleryMaxSize(): number;
|
|
87
|
-
get allowedAllChat(): boolean;
|
|
88
|
-
get allowedPublicChatAndDisallowedPrivateChat(): boolean;
|
|
89
|
-
get disallowedPublicChatAndDisallowedPrivateChatToParticipant(): boolean;
|
|
90
|
-
get disallowedAllChat(): boolean;
|
|
91
|
-
get privilegeOperator(): FcrUserInfo | undefined;
|
|
92
|
-
get localUserId(): string;
|
|
93
|
-
get interpreterUserList(): import("fcr-core/lib/room-control/interpreter-control/types").FcrInterpreterUserInfo[] | null;
|
|
94
|
-
get isInterpreterEnabled(): boolean;
|
|
95
|
-
get secondaryWindowContentType(): "hidden" | "speaker" | "gallery" | "local-camera" | "remote-camera" | "sharing-screen" | "sharing-screen-with-annotation" | "sharing-whiteboard";
|
|
96
|
-
get isMultiDisplayActive(): boolean;
|
|
97
|
-
get isLocalCameraInSecondaryWindow(): boolean;
|
|
98
|
-
constructor(params: LayoutStoreParams);
|
|
99
|
-
get participantCount(): number;
|
|
100
|
-
get isVideoSuspended(): boolean;
|
|
101
|
-
get asideContent(): import("../../type").FcrUIUpdateAsideParams;
|
|
102
|
-
get participantsRenderAt(): "aside" | "dialog";
|
|
103
|
-
get chatRenderAt(): "aside" | "dialog";
|
|
104
|
-
getWaterMarkContent(): string;
|
|
105
|
-
hasMutePermission(targetRole: FcrPrivilegeUserRole | FcrUserRole): boolean;
|
|
106
|
-
hasUnmutePermission(targetRole: FcrPrivilegeUserRole | FcrUserRole): boolean;
|
|
107
|
-
hasRequestStartAudioPermission(targetRole: FcrPrivilegeUserRole | FcrUserRole): boolean;
|
|
108
|
-
toggleMainStream(streamId: string): void;
|
|
109
|
-
addPinMessage(streamId: string): void;
|
|
110
|
-
cancelPinMessage(streamId: string): void;
|
|
111
|
-
addPin(streamId: string): void;
|
|
112
|
-
removePin(streamId: string): void;
|
|
113
|
-
setVideoOrientation(): void;
|
|
114
|
-
setAllowChat(allowChat: boolean): void;
|
|
115
|
-
handleSetPinState(userId: string): void;
|
|
116
|
-
setWhiteboardActive(active: boolean): void;
|
|
117
|
-
setAsideWidth(val: number): void;
|
|
118
|
-
/**
|
|
119
|
-
* Partially update slots, use `null` to delete the slot.
|
|
120
|
-
* `undefined` is ignored.
|
|
121
|
-
*/
|
|
122
|
-
updateSlots(slots: Partial<FcrLayoutSlots>): void;
|
|
123
|
-
closeParticipantFromAside(): void;
|
|
124
|
-
moveParticipantFromAsideToDialog(): void;
|
|
125
|
-
closeChatFromAside(): void;
|
|
126
|
-
closeAsideChat(): void;
|
|
127
|
-
moveChatFromAsideToDialog(): void;
|
|
128
|
-
openPrivateChat(userId: string): void;
|
|
129
|
-
openRenameDialog(userId: string): void;
|
|
130
|
-
getAllowedOperations: (targetRole: FcrUserRole, isSelf: boolean) => string[];
|
|
131
|
-
toggleLayout(layout: FcrUIVideoWindowLayoutType, manual?: boolean): void;
|
|
132
|
-
toggleCollapsed(collapsed?: boolean): void;
|
|
133
|
-
toggleAside(open?: boolean): void;
|
|
134
|
-
asideWidthChanged(width: number): void;
|
|
135
|
-
toggleLayoutBarLock(state: boolean): void;
|
|
136
|
-
toggleLayoutBarHidden(): void;
|
|
137
|
-
resetLockTimer(): void;
|
|
138
|
-
setHoveringHandler(): void;
|
|
139
|
-
setHoveringLeaveHandler(): false | void;
|
|
140
|
-
setScreenShareSpeakerViewSize(width: number, height: number): void;
|
|
141
|
-
handleLiveLayoutChange(modifiedUser: FcrUserInfo): void;
|
|
142
|
-
release(): void;
|
|
143
|
-
onUserInfoUpdated(roomId: string, event: FcrUserUpdatedEvent): void;
|
|
144
|
-
stopLocalPreview(view: HTMLDivElement): void;
|
|
145
|
-
startLocalPreview(div: HTMLDivElement | null): void;
|
|
146
|
-
setAllowChatWithPayload(type: 'public' | 'private_to_manager'): void;
|
|
147
|
-
setScaleValue(scale: number): void;
|
|
148
|
-
muteAudio(mute: boolean, userId: string): void;
|
|
149
|
-
sendParticipantEvent(payload: unknown): void;
|
|
150
|
-
onEvent(action: FcrUIAction.SET_MAIN_SPEAKER, payload: FcrUISetMainSpeakerParams): void;
|
|
151
|
-
onEvent(action: FcrUIAction.TOGGLE_LAYOUT_BAR_LOCK, payload: boolean): void;
|
|
152
|
-
private _addListeners;
|
|
153
|
-
private get _hasVideoStreamUser();
|
|
154
|
-
private _shouldUnpin;
|
|
155
|
-
private _isVideoParticipantVisible;
|
|
156
|
-
private _handleLayoutUpdated;
|
|
157
|
-
private _handleFoldListChanged;
|
|
158
|
-
private _handleMainListLengthChanged;
|
|
159
|
-
private _handleMainListChanged;
|
|
160
|
-
private _switchToSpeaker;
|
|
161
|
-
private _switchToGallery;
|
|
162
|
-
private _setBarHovering;
|
|
163
|
-
private _initStream;
|
|
164
|
-
private _handleConnectionUpdated;
|
|
165
|
-
private _findVideoWindowByUserId;
|
|
166
|
-
private _onRemoteUsersLeft;
|
|
167
|
-
private _handleLiveStreamingStateUpdated;
|
|
168
|
-
private _handleStreamAdded;
|
|
169
|
-
private _onStreamsAdded;
|
|
170
|
-
private _onStreamsUpdated;
|
|
171
|
-
private _onStreamsRemoved;
|
|
172
|
-
private _onAudioVolumeUpdated;
|
|
173
|
-
private _setSpotlightStream;
|
|
174
|
-
private _findSpotlightStream;
|
|
175
|
-
}
|
|
176
|
-
export declare const StoreContext: import("react").Context<LayoutStore>;
|