fcr-ui-scene 3.4.2 → 3.4.4
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/common/device-store.d.ts +23 -14
- package/lib/common/device-store.js +361 -252
- package/lib/common/device-stream-store.d.ts +8 -14
- package/lib/common/device-stream-store.js +254 -116
- package/lib/common/event-store.d.ts +35 -10
- package/lib/common/event-store.js +64 -13
- package/lib/common/security-store.d.ts +47 -39
- package/lib/common/security-store.js +335 -379
- package/lib/electron/app.js +1 -0
- package/lib/modules/action-bar/action-bar-collapes-items.d.ts +4 -1
- package/lib/modules/action-bar/action-bar-collapes-items.js +38 -21
- package/lib/modules/action-bar/components/apps/useWidgetList.d.ts +7 -0
- package/lib/modules/action-bar/components/apps/useWidgetList.js +43 -0
- package/lib/modules/action-bar/components/leave/assign-host.d.ts +8 -1
- package/lib/modules/action-bar/components/leave/assign-host.js +1 -1
- package/lib/modules/action-bar/components/leave/leave-meeting.d.ts +16 -1
- package/lib/modules/action-bar/smaller.js +5 -5
- package/lib/modules/chat/chat-bar/index.css +6 -0
- package/lib/modules/chat/chat-bar/index.d.ts +3 -3
- package/lib/modules/chat/chat-bar/index.js +51 -39
- package/lib/modules/chat/chat-select/index.css +27 -7
- package/lib/modules/chat/chat-select/index.d.ts +1 -1
- package/lib/modules/chat/chat-select/index.js +18 -4
- package/lib/modules/chat/chat.d.ts +1 -2
- package/lib/modules/chat/chat.js +196 -128
- package/lib/modules/chat/components/chat-select/select-input/index.d.ts +7 -0
- package/lib/modules/chat/components/chat-select/select-input/index.js +35 -0
- package/lib/modules/chat/components/chat-select/select-item/index.d.ts +12 -0
- package/lib/modules/chat/components/chat-select/select-item/index.js +153 -0
- package/lib/modules/chat/components/chat-tabs/index.d.ts +2 -0
- package/lib/modules/chat/components/chat-tabs/index.js +61 -0
- package/lib/modules/chat/components/message-list/chat-empty/index.d.ts +2 -0
- package/lib/modules/chat/components/message-list/chat-empty/index.js +26 -0
- package/lib/modules/chat/components/message-list/history-unread-message-button/index.d.ts +7 -0
- package/lib/modules/chat/components/message-list/history-unread-message-button/index.js +55 -0
- package/lib/modules/chat/components/message-list/message-item/index.d.ts +15 -0
- package/lib/modules/chat/components/message-list/message-item/index.js +279 -0
- package/lib/modules/chat/components/message-list/scroll-bottom-button/index.d.ts +9 -0
- package/lib/modules/chat/components/message-list/scroll-bottom-button/index.js +67 -0
- package/lib/modules/chat/message-list.js +68 -51
- package/lib/modules/components/dialog-container/component/body.js +1 -2
- package/lib/modules/components/dialog-container/index.d.ts +2 -2
- package/lib/modules/components/member-window/components/member-actions/components/audio-control.d.ts +6 -0
- package/lib/modules/components/member-window/components/member-actions/components/audio-control.js +36 -0
- package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.d.ts +40 -0
- package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.js +170 -0
- package/lib/modules/components/member-window/components/member-actions/components/icon-status.d.ts +11 -0
- package/lib/modules/components/member-window/components/member-actions/components/icon-status.js +105 -0
- package/lib/modules/components/member-window/components/member-actions/components/layout/index.d.ts +9 -0
- package/lib/modules/components/member-window/components/member-actions/components/layout/index.js +42 -0
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.d.ts +11 -0
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.js +159 -0
- package/lib/modules/components/member-window/components/member-actions/components/share-status.d.ts +2 -0
- package/lib/modules/components/member-window/components/member-actions/components/share-status.js +32 -0
- package/lib/modules/components/member-window/components/member-actions/components/user-info.d.ts +16 -0
- package/lib/modules/components/member-window/components/member-actions/components/user-info.js +130 -0
- package/lib/modules/components/member-window/components/member-actions/components/user-tag.d.ts +12 -0
- package/lib/modules/components/member-window/components/member-actions/components/user-tag.js +57 -0
- package/lib/modules/components/member-window/components/member-actions/index.d.ts +3 -0
- package/lib/modules/components/member-window/components/member-actions/index.js +122 -0
- package/lib/modules/components/member-window/components/member-actions/libs/index.d.ts +2 -0
- package/lib/modules/components/member-window/components/member-actions/libs/index.js +24 -0
- package/lib/modules/components/member-window/components/member-actions/provider.d.ts +21 -0
- package/lib/modules/components/member-window/components/member-actions/provider.js +77 -0
- package/lib/modules/components/member-window/components/member-actions/store.d.ts +48 -0
- package/lib/modules/components/member-window/components/member-actions/store.js +306 -0
- package/lib/modules/components/member-window/components/member-board.d.ts +2 -0
- package/lib/modules/components/member-window/components/member-board.js +63 -0
- package/lib/modules/components/member-window/components/mic-volume.d.ts +2 -0
- package/lib/modules/components/member-window/components/mic-volume.js +23 -0
- package/lib/modules/components/member-window/components/video-player/components/local-video-player.d.ts +4 -0
- package/lib/modules/components/member-window/components/video-player/components/local-video-player.js +40 -0
- package/lib/modules/components/member-window/components/video-player/components/remote-video-player.d.ts +8 -0
- package/lib/modules/components/member-window/components/video-player/components/remote-video-player.js +62 -0
- package/lib/modules/components/member-window/components/video-player/index.d.ts +9 -0
- package/lib/modules/components/member-window/components/video-player/index.js +38 -0
- package/lib/modules/components/member-window/types.d.ts +78 -0
- package/lib/modules/components/member-window/types.js +6 -0
- package/lib/modules/connection-gateway/components/tabs/index.js +2 -1
- package/lib/modules/control-bar/components/meeting-details/index.js +7 -15
- package/lib/modules/control-bar/components/more-actions/index.js +5 -15
- package/lib/modules/dialog/components/system-preference/assets/bg1.png +0 -0
- package/lib/modules/dialog/components/system-preference/assets/bg2.png +0 -0
- package/lib/modules/dialog/components/system-preference/assets/fcr_png_host.png +0 -0
- package/lib/modules/dialog/components/widget/electron.d.ts +5 -0
- package/lib/modules/dialog/components/widget/electron.js +41 -0
- package/lib/modules/dialog/components/widget/index.d.ts +6 -0
- package/lib/modules/dialog/components/widget/index.js +41 -0
- package/lib/modules/dialog/type.d.ts +84 -0
- package/lib/modules/dialog/type.js +6 -0
- package/lib/modules/invite/components/pstn-invite.js +4 -13
- package/lib/modules/invite/pstn-invite.js +7 -9
- package/lib/modules/invite/store.d.ts +2 -0
- package/lib/modules/invite/store.js +6 -0
- package/lib/modules/invite/voip-invite.js +5 -6
- package/lib/modules/layout/member-window/index.css +116 -18
- package/lib/modules/layout/member-window/index.d.ts +10 -3
- package/lib/modules/layout/member-window/index.js +227 -115
- package/lib/modules/participant/attendee/index.css +0 -51
- package/lib/modules/participant/attendee/index.d.ts +8 -5
- package/lib/modules/participant/attendee/index.js +61 -15
- package/lib/modules/participant/components/attendee/components/interpreter-tag/index.d.ts +3 -0
- package/lib/modules/participant/components/attendee/components/interpreter-tag/index.js +48 -0
- package/lib/modules/participant/components/confirm-input/index.d.ts +6 -0
- package/lib/modules/participant/components/confirm-input/index.js +49 -0
- package/lib/modules/participant/components/drop-menu/util.d.ts +5 -0
- package/lib/modules/participant/components/drop-menu/util.js +28 -0
- package/lib/modules/participant/components/participants/components/footer/components/buttons.d.ts +6 -0
- package/lib/modules/participant/components/participants/components/footer/components/buttons.js +52 -0
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.css +60 -0
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.d.ts +2 -0
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.js +166 -0
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/util.d.ts +5 -0
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/util.js +28 -0
- package/lib/modules/participant/components/participants/components/footer/components/footer/index.css +13 -0
- package/lib/modules/participant/components/participants/components/footer/components/footer/index.d.ts +5 -0
- package/lib/modules/participant/components/participants/components/footer/components/footer/index.js +242 -0
- package/lib/modules/participant/components/participants/components/footer/index.d.ts +5 -0
- package/lib/modules/participant/components/participants/components/footer/index.js +47 -0
- package/lib/modules/participant/components/participants/components/merge/index.d.ts +11 -0
- package/lib/modules/participant/components/participants/components/merge/index.js +49 -0
- package/lib/modules/participant/components/participants/components/participants/components/attendee/index.css +191 -0
- package/lib/modules/participant/components/participants/components/participants/components/attendee/index.d.ts +4 -0
- package/lib/modules/participant/components/participants/components/participants/components/attendee/index.js +204 -0
- package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.css +49 -0
- package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.d.ts +5 -0
- package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.js +219 -0
- package/lib/modules/participant/components/participants/components/participants/components/user-row/index.d.ts +5 -0
- package/lib/modules/participant/components/participants/components/participants/components/user-row/index.js +70 -0
- package/lib/modules/participant/components/participants/components/participants/index.css +104 -0
- package/lib/modules/participant/components/participants/components/participants/index.d.ts +3 -0
- package/lib/modules/participant/components/participants/components/participants/index.js +110 -0
- package/lib/modules/participant/components/participants/components/render-tab/index.d.ts +2 -0
- package/lib/modules/participant/components/participants/components/render-tab/index.js +49 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/interpreter-tag/index.d.ts +3 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/interpreter-tag/index.js +48 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/microphone-indicator/index.d.ts +6 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/microphone-indicator/index.js +28 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/user-avatar/index.d.ts +7 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/user-avatar/index.js +39 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.css +69 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.d.ts +5 -0
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.js +135 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/audio-button/index.d.ts +7 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/audio-button/index.js +31 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-actions-popover/index.d.ts +12 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-actions-popover/index.js +82 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-to-mainroom-button/index.d.ts +4 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-to-mainroom-button/index.js +26 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/index.d.ts +2 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/index.js +75 -0
- package/lib/modules/participant/components/participants/components/render-user/index.d.ts +5 -0
- package/lib/modules/participant/components/participants/components/render-user/index.js +21 -0
- package/lib/modules/participant/components/participants/render-tab/index.d.ts +2 -0
- package/lib/modules/participant/components/participants/render-tab/index.js +49 -0
- package/lib/modules/participant/components/participants/render-user/index.d.ts +5 -0
- package/lib/modules/participant/components/participants/render-user/index.js +21 -0
- package/lib/modules/participant/components/participants/types.d.ts +96 -0
- package/lib/modules/participant/components/participants/types.js +37 -0
- package/lib/modules/participant/components/user-action/audio-button/index.d.ts +7 -0
- package/lib/modules/participant/components/user-action/audio-button/index.js +31 -0
- package/lib/modules/participant/components/user-action/move-actions-popover/index.d.ts +12 -0
- package/lib/modules/participant/components/user-action/move-actions-popover/index.js +82 -0
- package/lib/modules/participant/components/user-action/move-to-mainroom-button/index.d.ts +4 -0
- package/lib/modules/participant/components/user-action/move-to-mainroom-button/index.js +26 -0
- package/lib/modules/share-screen/selection/index.css +4 -0
- package/lib/modules/share-screen/selection/index.js +126 -129
- package/lib/modules/share-screen/share-state-bar/index.js +1 -1
- package/lib/modules/state-bar/meeting-details.js +29 -34
- package/lib/modules/video-window/components/deviceState/index.d.ts +7 -0
- package/lib/modules/video-window/components/deviceState/index.js +75 -0
- package/lib/modules/video-window/components/members/index.css +51 -0
- package/lib/modules/video-window/components/members/index.d.ts +2 -0
- package/lib/modules/video-window/components/members/index.js +130 -0
- package/lib/modules/video-window/components/speaking/index.css +86 -0
- package/lib/modules/video-window/components/speaking/index.d.ts +3 -0
- package/lib/modules/video-window/components/speaking/index.js +48 -0
- package/lib/modules/video-window/components/topControl/index.css +35 -0
- package/lib/modules/video-window/components/topControl/index.d.ts +3 -0
- package/lib/modules/video-window/components/topControl/index.js +79 -0
- package/lib/modules/widget/index.css +17 -0
- package/lib/modules/widget/index.d.ts +10 -0
- package/lib/modules/widget/index.js +114 -0
- package/lib/modules/widget/sdk.d.ts +30 -0
- package/lib/modules/widget/sdk.js +221 -0
- package/lib/modules/widget/store.d.ts +14 -0
- package/lib/modules/widget/store.js +28 -0
- package/lib/modules/widget/type.d.ts +155 -0
- package/lib/modules/widget/type.js +6 -0
- package/lib/modules/widget/view.d.ts +2 -0
- package/lib/modules/widget/view.js +47 -0
- package/lib/modules/widget/web-widget.d.ts +29 -0
- package/lib/modules/widget/web-widget.js +234 -0
- package/lib/providers/ability-provider.d.ts +24 -0
- package/lib/providers/ability-provider.js +36 -0
- package/lib/providers/widget-provider.d.ts +44 -0
- package/lib/providers/widget-provider.js +167 -0
- package/lib/schema.d.ts +114 -0
- package/lib/schema.js +77 -0
- package/lib/shared-data-source/member-data.d.ts +126 -0
- package/lib/shared-data-source/member-data.js +465 -0
- package/lib/translations/enUS.d.ts +5 -0
- package/lib/translations/enUS.js +9 -3
- package/lib/translations/zhCN.d.ts +5 -0
- package/lib/translations/zhCN.js +13 -7
- package/lib/utilities/extract.d.ts +1 -1
- package/lib/utilities/logger.d.ts +8 -0
- package/lib/utilities/logger.js +42 -0
- package/lib/utilities/meeting-detail.d.ts +2 -0
- package/lib/utilities/meeting-detail.js +56 -0
- package/lib/utilities/validate-params.d.ts +2 -0
- package/lib/utilities/validate-params.js +16 -0
- package/lib/widget-sdk.d.ts +2 -0
- package/lib/widget-sdk.js +13 -0
- package/package.json +5 -5
|
@@ -0,0 +1,221 @@
|
|
|
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.object.create.js");
|
|
14
|
+
require("core-js/modules/es.object.define-property.js");
|
|
15
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
16
|
+
require("core-js/modules/esnext.function.metadata.js");
|
|
17
|
+
require("core-js/modules/esnext.symbol.metadata.js");
|
|
18
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
19
|
+
var _typeof3 = require("@babel/runtime/helpers/typeof");
|
|
20
|
+
Object.defineProperty(exports, "__esModule", {
|
|
21
|
+
value: true
|
|
22
|
+
});
|
|
23
|
+
exports.FcrUIWidgetSDKImpl = void 0;
|
|
24
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
25
|
+
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
26
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
27
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
28
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
29
|
+
require("core-js/modules/es.array.concat.js");
|
|
30
|
+
require("core-js/modules/es.array.iterator.js");
|
|
31
|
+
require("core-js/modules/es.date.to-string.js");
|
|
32
|
+
require("core-js/modules/es.map.js");
|
|
33
|
+
require("core-js/modules/es.number.constructor.js");
|
|
34
|
+
require("core-js/modules/es.object.to-string.js");
|
|
35
|
+
require("core-js/modules/es.promise.js");
|
|
36
|
+
require("core-js/modules/es.string.iterator.js");
|
|
37
|
+
require("core-js/modules/esnext.map.delete-all.js");
|
|
38
|
+
require("core-js/modules/esnext.map.emplace.js");
|
|
39
|
+
require("core-js/modules/esnext.map.every.js");
|
|
40
|
+
require("core-js/modules/esnext.map.filter.js");
|
|
41
|
+
require("core-js/modules/esnext.map.find.js");
|
|
42
|
+
require("core-js/modules/esnext.map.find-key.js");
|
|
43
|
+
require("core-js/modules/esnext.map.includes.js");
|
|
44
|
+
require("core-js/modules/esnext.map.key-of.js");
|
|
45
|
+
require("core-js/modules/esnext.map.map-keys.js");
|
|
46
|
+
require("core-js/modules/esnext.map.map-values.js");
|
|
47
|
+
require("core-js/modules/esnext.map.merge.js");
|
|
48
|
+
require("core-js/modules/esnext.map.reduce.js");
|
|
49
|
+
require("core-js/modules/esnext.map.some.js");
|
|
50
|
+
require("core-js/modules/esnext.map.update.js");
|
|
51
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
52
|
+
var _bound = require("agora-foundation/lib/decorator/bound");
|
|
53
|
+
var _observable = require("agora-foundation/lib/utilities/observable");
|
|
54
|
+
var _logger = require("../../utilities/logger");
|
|
55
|
+
var _FcrUIWidgetSDKImpl;
|
|
56
|
+
var _initProto;
|
|
57
|
+
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" == _typeof3(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)]; } }; }
|
|
58
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof3(i) ? i : i + ""; }
|
|
59
|
+
function _toPrimitive(t, r) { if ("object" != _typeof3(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof3(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
60
|
+
function _setFunctionName(e, t, n) { "symbol" == _typeof3(t) && (t = (t = t.description) ? "[" + t + "]" : ""); try { Object.defineProperty(e, "name", { configurable: !0, value: n ? n + " " + t : t }); } catch (e) {} return e; }
|
|
61
|
+
function _checkInRHS(e) { if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (null !== e ? _typeof3(e) : "null")); return e; }
|
|
62
|
+
var createControlledPromise = function createControlledPromise() {
|
|
63
|
+
var resolve = function resolve() {};
|
|
64
|
+
var reject = function reject() {};
|
|
65
|
+
var promise = new Promise(function (_resolve, _reject) {
|
|
66
|
+
resolve = _resolve;
|
|
67
|
+
reject = _reject;
|
|
68
|
+
});
|
|
69
|
+
return {
|
|
70
|
+
promise: promise,
|
|
71
|
+
resolve: resolve,
|
|
72
|
+
reject: reject
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
var FcrUIWidgetSDKImpl = exports.FcrUIWidgetSDKImpl = /*#__PURE__*/function () {
|
|
76
|
+
function FcrUIWidgetSDKImpl() {
|
|
77
|
+
(0, _classCallCheck2["default"])(this, FcrUIWidgetSDKImpl);
|
|
78
|
+
(0, _defineProperty2["default"])(this, "logger", (_initProto(this), (0, _logger.createLogger)({
|
|
79
|
+
prefix: 'FcrUIWidgetSDK',
|
|
80
|
+
database: false
|
|
81
|
+
})));
|
|
82
|
+
(0, _defineProperty2["default"])(this, "_observable", new _observable.AgoraObservable());
|
|
83
|
+
(0, _defineProperty2["default"])(this, "_requestPromises", new Map());
|
|
84
|
+
window.addEventListener('message', this._handlePostMessage);
|
|
85
|
+
this._addLogObserver();
|
|
86
|
+
}
|
|
87
|
+
return (0, _createClass2["default"])(FcrUIWidgetSDKImpl, [{
|
|
88
|
+
key: "_addLogObserver",
|
|
89
|
+
value: function _addLogObserver() {
|
|
90
|
+
this.addObserver((0, _logger.generateLogObserver)(this.logger, ['onRoomStateUpdated', 'onRemoteUsersJoined', 'onRemoteUsersLeft', 'onUserInfoUpdated', 'onAllUserCountUpdated']));
|
|
91
|
+
}
|
|
92
|
+
}, {
|
|
93
|
+
key: "_createCallId",
|
|
94
|
+
value: function _createCallId(prefix) {
|
|
95
|
+
return "".concat(prefix, "-").concat(Number(new Date()));
|
|
96
|
+
}
|
|
97
|
+
}, {
|
|
98
|
+
key: "_createRequestParams",
|
|
99
|
+
value: function _createRequestParams(funcName, parameters) {
|
|
100
|
+
var callId = this._createCallId(funcName);
|
|
101
|
+
var finalParameters = parameters !== null && parameters !== void 0 ? parameters : [];
|
|
102
|
+
return {
|
|
103
|
+
action: 'apiRequest',
|
|
104
|
+
callId: callId,
|
|
105
|
+
method: funcName,
|
|
106
|
+
parameters: finalParameters
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
}, {
|
|
110
|
+
key: "_sendRequest",
|
|
111
|
+
value: function _sendRequest(funcName, parameters) {
|
|
112
|
+
var params = this._createRequestParams(funcName, parameters);
|
|
113
|
+
var p = createControlledPromise();
|
|
114
|
+
this._requestPromises.set(params.callId, p);
|
|
115
|
+
try {
|
|
116
|
+
if ((0, _typeof2["default"])(window.JsBridge) === 'object' && window.JsBridge !== null) {
|
|
117
|
+
var func = window.JsBridge[funcName];
|
|
118
|
+
if (typeof func === 'function') {
|
|
119
|
+
func(params);
|
|
120
|
+
this.logger.debug('sendRequest + JsBridge: ', params);
|
|
121
|
+
}
|
|
122
|
+
} else {
|
|
123
|
+
this.logger.debug('sendRequest + postMessage: ', params);
|
|
124
|
+
window.parent.postMessage(params, '*');
|
|
125
|
+
}
|
|
126
|
+
} catch (error) {
|
|
127
|
+
this.logger.error('Error sending request:', error);
|
|
128
|
+
var reject = p.reject;
|
|
129
|
+
reject && reject(error);
|
|
130
|
+
}
|
|
131
|
+
return p.promise;
|
|
132
|
+
}
|
|
133
|
+
}, {
|
|
134
|
+
key: "getRoomInfo",
|
|
135
|
+
value: function
|
|
136
|
+
// @trace
|
|
137
|
+
getRoomInfo() {
|
|
138
|
+
return this._sendRequest('getRoomInfo');
|
|
139
|
+
}
|
|
140
|
+
}, {
|
|
141
|
+
key: "getRoomSchedule",
|
|
142
|
+
value: function
|
|
143
|
+
// @trace
|
|
144
|
+
getRoomSchedule() {
|
|
145
|
+
return this._sendRequest('getRoomSchedule');
|
|
146
|
+
}
|
|
147
|
+
}, {
|
|
148
|
+
key: "getRoomState",
|
|
149
|
+
value: function
|
|
150
|
+
// @trace
|
|
151
|
+
getRoomState() {
|
|
152
|
+
return this._sendRequest('getRoomState');
|
|
153
|
+
}
|
|
154
|
+
}, {
|
|
155
|
+
key: "getLocalUser",
|
|
156
|
+
value: function
|
|
157
|
+
// @trace
|
|
158
|
+
getLocalUser() {
|
|
159
|
+
return this._sendRequest('getLocalUser');
|
|
160
|
+
}
|
|
161
|
+
}, {
|
|
162
|
+
key: "getUserList",
|
|
163
|
+
value: function
|
|
164
|
+
// @trace
|
|
165
|
+
getUserList() {
|
|
166
|
+
return this._sendRequest('getUserList');
|
|
167
|
+
}
|
|
168
|
+
}, {
|
|
169
|
+
key: "getAllUserCount",
|
|
170
|
+
value: function
|
|
171
|
+
// @trace
|
|
172
|
+
getAllUserCount() {
|
|
173
|
+
return this._sendRequest('getAllUserCount');
|
|
174
|
+
}
|
|
175
|
+
}, {
|
|
176
|
+
key: "addObserver",
|
|
177
|
+
value: function
|
|
178
|
+
// @trace
|
|
179
|
+
addObserver(observer) {
|
|
180
|
+
this._observable.addObserver(observer);
|
|
181
|
+
}
|
|
182
|
+
}, {
|
|
183
|
+
key: "removeObserver",
|
|
184
|
+
value: function
|
|
185
|
+
// @trace
|
|
186
|
+
removeObserver(observer) {
|
|
187
|
+
this._observable.removeObserver(observer);
|
|
188
|
+
}
|
|
189
|
+
}, {
|
|
190
|
+
key: "_handlePostMessage",
|
|
191
|
+
value: function _handlePostMessage(event) {
|
|
192
|
+
if (event.data) {
|
|
193
|
+
this.logger.debug('handlePostMessage', event.data);
|
|
194
|
+
var action = event.data.action;
|
|
195
|
+
if (action === 'apiResponse') {
|
|
196
|
+
var _event$data = event.data,
|
|
197
|
+
_action = _event$data.action,
|
|
198
|
+
callId = _event$data.callId,
|
|
199
|
+
returnValue = _event$data.returnValue;
|
|
200
|
+
var controllerPromiseGroup = this._requestPromises.get(callId);
|
|
201
|
+
if (controllerPromiseGroup) {
|
|
202
|
+
this.logger.info('resolve callId', callId);
|
|
203
|
+
var resolve = controllerPromiseGroup.resolve;
|
|
204
|
+
resolve && resolve(returnValue);
|
|
205
|
+
this._requestPromises["delete"](callId);
|
|
206
|
+
}
|
|
207
|
+
} else if (action === 'callback') {
|
|
208
|
+
var _event$data2 = event.data,
|
|
209
|
+
payload = _event$data2.payload,
|
|
210
|
+
method = _event$data2.method;
|
|
211
|
+
this._observable.notifyObservers(method, payload);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}]);
|
|
216
|
+
}();
|
|
217
|
+
_FcrUIWidgetSDKImpl = FcrUIWidgetSDKImpl;
|
|
218
|
+
var _applyDecs$e = _applyDecs(_FcrUIWidgetSDKImpl, [[_bound.bound, 2, "getRoomInfo"], [_bound.bound, 2, "getRoomSchedule"], [_bound.bound, 2, "getRoomState"], [_bound.bound, 2, "getLocalUser"], [_bound.bound, 2, "getUserList"], [_bound.bound, 2, "getAllUserCount"], [_bound.bound, 2, "addObserver"], [_bound.bound, 2, "removeObserver"], [_bound.bound, 2, "_handlePostMessage"]], []).e;
|
|
219
|
+
var _applyDecs$e2 = (0, _slicedToArray2["default"])(_applyDecs$e, 1);
|
|
220
|
+
_initProto = _applyDecs$e2[0];
|
|
221
|
+
_applyDecs$e;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FcrUIWidgetProvider } from '../../providers/widget-provider';
|
|
2
|
+
import { FcrUIWebWidgetConfig } from '../../type';
|
|
3
|
+
export default class WebWidgetStore {
|
|
4
|
+
private _widgetProvider;
|
|
5
|
+
constructor({ widgetProvider }: {
|
|
6
|
+
widgetProvider: FcrUIWidgetProvider;
|
|
7
|
+
});
|
|
8
|
+
get openedWidgets(): Map<string, import("./type").FcrUIWebWidget>;
|
|
9
|
+
release(): void;
|
|
10
|
+
}
|
|
11
|
+
export declare const StoreContext: import("react").Context<{
|
|
12
|
+
widgetConfig: FcrUIWebWidgetConfig;
|
|
13
|
+
store: WebWidgetStore;
|
|
14
|
+
}>;
|
|
@@ -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["default"] = exports.StoreContext = void 0;
|
|
9
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
10
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
11
|
+
var _react = require("react");
|
|
12
|
+
var WebWidgetStore = exports["default"] = /*#__PURE__*/function () {
|
|
13
|
+
function WebWidgetStore(_ref) {
|
|
14
|
+
var widgetProvider = _ref.widgetProvider;
|
|
15
|
+
(0, _classCallCheck2["default"])(this, WebWidgetStore);
|
|
16
|
+
this._widgetProvider = widgetProvider;
|
|
17
|
+
}
|
|
18
|
+
return (0, _createClass2["default"])(WebWidgetStore, [{
|
|
19
|
+
key: "openedWidgets",
|
|
20
|
+
get: function get() {
|
|
21
|
+
return this._widgetProvider.openedWidgets;
|
|
22
|
+
}
|
|
23
|
+
}, {
|
|
24
|
+
key: "release",
|
|
25
|
+
value: function release() {}
|
|
26
|
+
}]);
|
|
27
|
+
}(); // #endregion
|
|
28
|
+
var StoreContext = exports.StoreContext = /*#__PURE__*/(0, _react.createContext)(null);
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import type { FcrRoomInfo, FcrRoomSchedule, FcrRoomState, FcrUserInfo } from 'fcr-core/lib/type';
|
|
2
|
+
import type { FcrUserJoinedEvent, FcrUserLeftEvent, FcrUserPageParams, FcrUserPageResponse, FcrUserUpdatedEvent } from 'fcr-core/lib/room-control/user-control/type';
|
|
3
|
+
import type { FcrUIWebWidgetConfig } from '../../type';
|
|
4
|
+
type MethodNames<T> = {
|
|
5
|
+
[K in keyof T]: T[K] extends Function ? K : never;
|
|
6
|
+
}[keyof T];
|
|
7
|
+
export type FcrUIWebWidgetMethodName = MethodNames<FcrUIBaseWidget>;
|
|
8
|
+
export type ID = string;
|
|
9
|
+
export interface PopupSize {
|
|
10
|
+
width: number;
|
|
11
|
+
height: number;
|
|
12
|
+
}
|
|
13
|
+
export interface FcrUIWidgetSDK {
|
|
14
|
+
/**
|
|
15
|
+
* 获取房间信息
|
|
16
|
+
*/
|
|
17
|
+
getRoomInfo(): Promise<FcrRoomInfo>;
|
|
18
|
+
/**
|
|
19
|
+
* 获取房间行程信息(如开始时间、持续时长等)
|
|
20
|
+
*/
|
|
21
|
+
getRoomSchedule(): Promise<FcrRoomSchedule>;
|
|
22
|
+
/**
|
|
23
|
+
* 获取当前房间状态
|
|
24
|
+
*/
|
|
25
|
+
getRoomState(): Promise<FcrRoomState>;
|
|
26
|
+
/**
|
|
27
|
+
* 获取本地用户信息
|
|
28
|
+
*/
|
|
29
|
+
getLocalUser(): Promise<FcrUserInfo>;
|
|
30
|
+
/**
|
|
31
|
+
* 获取远端用户列表
|
|
32
|
+
*/
|
|
33
|
+
getUserList(): Promise<FcrUserInfo[]>;
|
|
34
|
+
/**
|
|
35
|
+
* 获取房间内用户总数
|
|
36
|
+
*/
|
|
37
|
+
getAllUserCount(): Promise<number>;
|
|
38
|
+
/**
|
|
39
|
+
* 添加观察者,用来接收 Widget 事件回调
|
|
40
|
+
* @param observer 实现 FcrUIWidgetObserver 的对象
|
|
41
|
+
*/
|
|
42
|
+
addObserver(observer: FcrUIWidgetObserver): void;
|
|
43
|
+
/**
|
|
44
|
+
* 移除之前添加的观察者
|
|
45
|
+
* @param observer 要移除的观察者
|
|
46
|
+
*/
|
|
47
|
+
removeObserver(observer: FcrUIWidgetObserver): void;
|
|
48
|
+
}
|
|
49
|
+
export interface FcrUIWidgetObserver {
|
|
50
|
+
/**
|
|
51
|
+
* 房间状态更新回调
|
|
52
|
+
* @param state 最新的房间状态
|
|
53
|
+
* @returns
|
|
54
|
+
*/
|
|
55
|
+
onRoomStateUpdated(state: FcrRoomState): void;
|
|
56
|
+
/**
|
|
57
|
+
* 远端用户加入房间回调
|
|
58
|
+
* @param events 事件数组
|
|
59
|
+
*/
|
|
60
|
+
onRemoteUsersJoined(events: FcrUserJoinedEvent[]): void;
|
|
61
|
+
/**
|
|
62
|
+
* 远端用户离开房间回调
|
|
63
|
+
* @param events 事件数组
|
|
64
|
+
*/
|
|
65
|
+
onRemoteUsersLeft(events: FcrUserLeftEvent[]): void;
|
|
66
|
+
/**
|
|
67
|
+
* Callback to receive the user updated event.
|
|
68
|
+
* @param event
|
|
69
|
+
*/
|
|
70
|
+
onUserInfoUpdated(event: FcrUserUpdatedEvent): void;
|
|
71
|
+
/**
|
|
72
|
+
* 房间内所有用户总数更新回调
|
|
73
|
+
* @param count 当前的用户数量
|
|
74
|
+
*/
|
|
75
|
+
onAllUserCountUpdated?(count: number): void;
|
|
76
|
+
}
|
|
77
|
+
export interface FcrUIBaseWidget {
|
|
78
|
+
/**
|
|
79
|
+
* 获取房间信息
|
|
80
|
+
*/
|
|
81
|
+
getRoomInfo(): FcrRoomInfo | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* 获取房间行程信息(如开始时间、持续时长等)
|
|
84
|
+
*/
|
|
85
|
+
getRoomSchedule(): FcrRoomSchedule | undefined;
|
|
86
|
+
/**
|
|
87
|
+
* 获取当前房间状态
|
|
88
|
+
*/
|
|
89
|
+
getRoomState(): FcrRoomState;
|
|
90
|
+
/**
|
|
91
|
+
* 获取本地用户信息
|
|
92
|
+
*/
|
|
93
|
+
getLocalUser(): FcrUserInfo;
|
|
94
|
+
/**
|
|
95
|
+
* 获取远端用户列表
|
|
96
|
+
*/
|
|
97
|
+
getUserList(): Readonly<FcrUserInfo[]>;
|
|
98
|
+
/**
|
|
99
|
+
* 获取房间内用户总数
|
|
100
|
+
*/
|
|
101
|
+
getAllUserCount(): number;
|
|
102
|
+
/**
|
|
103
|
+
* Fetches the list of users.
|
|
104
|
+
* @param params
|
|
105
|
+
*/
|
|
106
|
+
fetchUserList(params: FcrUserPageParams): Promise<FcrUserPageResponse>;
|
|
107
|
+
/**
|
|
108
|
+
* 添加观察者,用来接收 Widget 事件回调
|
|
109
|
+
* @param observer 实现 FcrUIWidgetObserver 的对象
|
|
110
|
+
*/
|
|
111
|
+
addObserver(observer: FcrUIWidgetObserver): void;
|
|
112
|
+
/**
|
|
113
|
+
* 移除之前添加的观察者
|
|
114
|
+
* @param observer 要移除的观察者
|
|
115
|
+
*/
|
|
116
|
+
removeObserver(observer: FcrUIWidgetObserver): void;
|
|
117
|
+
}
|
|
118
|
+
export interface FcrUIWebWidget extends FcrUIBaseWidget {
|
|
119
|
+
/**
|
|
120
|
+
* 保存承载widget试图的webview引用
|
|
121
|
+
*/
|
|
122
|
+
webview: HTMLIFrameElement | null;
|
|
123
|
+
/**
|
|
124
|
+
* 实例化widget
|
|
125
|
+
* 创建webview并注入FcrUIBaseWidget中的方法或者回调,命名空间FcrJSBridge
|
|
126
|
+
* webview加载FcrUIWebWidgetConfig.url
|
|
127
|
+
* @param FcrUIWebWidgetConfig webWidget配置
|
|
128
|
+
*/
|
|
129
|
+
init(config: FcrUIWebWidgetConfig, window: Window): void;
|
|
130
|
+
/**
|
|
131
|
+
* 刷新webview
|
|
132
|
+
*/
|
|
133
|
+
reload(): void;
|
|
134
|
+
/**
|
|
135
|
+
*销毁widget
|
|
136
|
+
*/
|
|
137
|
+
release(): void;
|
|
138
|
+
}
|
|
139
|
+
export type ApiRequest = {
|
|
140
|
+
action: 'apiRequest';
|
|
141
|
+
callId: number;
|
|
142
|
+
method: string;
|
|
143
|
+
parameters: [];
|
|
144
|
+
};
|
|
145
|
+
export type ApiResponse = {
|
|
146
|
+
action: 'apiResponse';
|
|
147
|
+
callId: number;
|
|
148
|
+
method: string;
|
|
149
|
+
returnValue: unknown;
|
|
150
|
+
};
|
|
151
|
+
export type Callback = {
|
|
152
|
+
action: 'callback';
|
|
153
|
+
payload: object;
|
|
154
|
+
};
|
|
155
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
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.WebWidgetView = void 0;
|
|
9
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
|
+
var _react = require("react");
|
|
11
|
+
var _mobxReact = require("mobx-react");
|
|
12
|
+
var _store = require("./store");
|
|
13
|
+
var _loadingWrapper = require("../interpreter/loading-wrapper");
|
|
14
|
+
var _useElectron = require("../dialog/hooks/useElectron");
|
|
15
|
+
var _env = require("agora-foundation/lib/utilities/env");
|
|
16
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
+
var WebWidgetView = exports.WebWidgetView = (0, _mobxReact.observer)(function () {
|
|
18
|
+
var _widgetConfig$popupSi, _widgetConfig$popupSi2;
|
|
19
|
+
var _useContext = (0, _react.useContext)(_store.StoreContext),
|
|
20
|
+
widgetConfig = _useContext.widgetConfig,
|
|
21
|
+
store = _useContext.store;
|
|
22
|
+
var webWidget = store.openedWidgets.get(widgetConfig.id);
|
|
23
|
+
var dialogInstanceContext = (0, _react.useContext)(_useElectron.DialogInstanceContext);
|
|
24
|
+
var _useState = (0, _react.useState)(true),
|
|
25
|
+
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
26
|
+
loading = _useState2[0],
|
|
27
|
+
setLoading = _useState2[1];
|
|
28
|
+
(0, _react.useEffect)(function () {
|
|
29
|
+
if (webWidget) {
|
|
30
|
+
webWidget.init(widgetConfig, (0, _env.isElectron)() ? dialogInstanceContext.newRendererWindow : window);
|
|
31
|
+
if (webWidget.webview) {
|
|
32
|
+
webWidget.webview.onload = function () {
|
|
33
|
+
setLoading(false);
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}, [widgetConfig]);
|
|
38
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_loadingWrapper.LoadingWrapper, {
|
|
39
|
+
loading: loading,
|
|
40
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("iframe", {
|
|
41
|
+
id: widgetConfig.id,
|
|
42
|
+
src: widgetConfig.url,
|
|
43
|
+
width: (_widgetConfig$popupSi = widgetConfig.popupSize) === null || _widgetConfig$popupSi === void 0 ? void 0 : _widgetConfig$popupSi.width,
|
|
44
|
+
height: (_widgetConfig$popupSi2 = widgetConfig.popupSize) === null || _widgetConfig$popupSi2 === void 0 ? void 0 : _widgetConfig$popupSi2.height
|
|
45
|
+
})
|
|
46
|
+
});
|
|
47
|
+
});
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { FcrBaseRoomControl } from 'fcr-core';
|
|
2
|
+
import { FcrUIWebWidgetConfig } from '../../type';
|
|
3
|
+
import { FcrUIWebWidget } from './type';
|
|
4
|
+
import { FcrUserPageParams } from 'fcr-core/lib/room-control/user-control/type';
|
|
5
|
+
import { FcrRoomState, FcrRoomInfo } from 'fcr-core/lib/type';
|
|
6
|
+
export declare class FcrUIWebWidgetImpl implements FcrUIWebWidget {
|
|
7
|
+
protected logger: import("agora-foundation/lib/logger").Logger;
|
|
8
|
+
private _userControl;
|
|
9
|
+
private _roomControl;
|
|
10
|
+
private _currentWindow;
|
|
11
|
+
private _userControlObserver;
|
|
12
|
+
private _roomControlObserver;
|
|
13
|
+
accessor webview: HTMLIFrameElement | null;
|
|
14
|
+
constructor(roomControl: FcrBaseRoomControl);
|
|
15
|
+
init(config: FcrUIWebWidgetConfig, currentWindow: Window): void;
|
|
16
|
+
reload(): void;
|
|
17
|
+
release(): void;
|
|
18
|
+
getRoomInfo(): FcrRoomInfo | undefined;
|
|
19
|
+
getRoomSchedule(): import("fcr-core/lib/type").FcrRoomSchedule | undefined;
|
|
20
|
+
getRoomState(): FcrRoomState;
|
|
21
|
+
getLocalUser(): import("fcr-core/lib/type").FcrUserInfo;
|
|
22
|
+
getUserList(): readonly import("fcr-core/lib/type").FcrUserInfo[];
|
|
23
|
+
getAllUserCount(): number;
|
|
24
|
+
fetchUserList(params: FcrUserPageParams): Promise<import("fcr-core/lib/imports").AgoraRteUserPageResponse>;
|
|
25
|
+
addObserver(): void;
|
|
26
|
+
removeObserver(): void;
|
|
27
|
+
private _handleApiResponse;
|
|
28
|
+
private _handleCallback;
|
|
29
|
+
}
|