fcr-core 3.7.8-rc.4-alpha → 3.7.9-alpha
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.
|
@@ -22,7 +22,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
22
22
|
});
|
|
23
23
|
exports.FcrAbilityControlImpl = void 0;
|
|
24
24
|
var _imports = require("../../imports");
|
|
25
|
-
var _type = require("../../type");
|
|
26
25
|
var _logger = require("../../utilities/logger");
|
|
27
26
|
let _initProto;
|
|
28
27
|
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 (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 (e) { return m(e), w.value; } : (o < 4 && (k = i(w, "get", m)), 3 !== o && (F = i(w, "set", m))) : (k = function (e) { return e[n]; }, (o < 2 || 4 === o) && (F = function (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 (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)]; } }; }
|
|
@@ -48,7 +47,7 @@ class FcrAbilityControlImpl {
|
|
|
48
47
|
getPlatformAbility(ability) {
|
|
49
48
|
const platforms = this._scene.getScenePropertiesByKeyPath(`setting.ability.${ability}`);
|
|
50
49
|
if (!Array.isArray(platforms)) {
|
|
51
|
-
return [
|
|
50
|
+
return [];
|
|
52
51
|
}
|
|
53
52
|
return platforms;
|
|
54
53
|
}
|
|
@@ -4,12 +4,7 @@ export declare enum FcrAbility {
|
|
|
4
4
|
RoomDetail = "room:detail",
|
|
5
5
|
Live = "live",
|
|
6
6
|
Interpreter = "interpreter",
|
|
7
|
-
Annotation = "annotation"
|
|
8
|
-
RecordingAbility = "recording",
|
|
9
|
-
BoardAbility = "board",
|
|
10
|
-
VirtualBackgroundAbility = "setting:virtualBackground",
|
|
11
|
-
BeautyModeAbility = "setting:beautyMode",
|
|
12
|
-
CallOutAbility = "pstn:callOut"
|
|
7
|
+
Annotation = "annotation"
|
|
13
8
|
}
|
|
14
9
|
export interface FcrAbilityControl {
|
|
15
10
|
isAbilitySupported(ability: FcrAbility): boolean;
|
|
@@ -10,10 +10,5 @@ let FcrAbility = exports.FcrAbility = /*#__PURE__*/function (FcrAbility) {
|
|
|
10
10
|
FcrAbility["Live"] = "live";
|
|
11
11
|
FcrAbility["Interpreter"] = "interpreter";
|
|
12
12
|
FcrAbility["Annotation"] = "annotation";
|
|
13
|
-
FcrAbility["RecordingAbility"] = "recording";
|
|
14
|
-
FcrAbility["BoardAbility"] = "board";
|
|
15
|
-
FcrAbility["VirtualBackgroundAbility"] = "setting:virtualBackground";
|
|
16
|
-
FcrAbility["BeautyModeAbility"] = "setting:beautyMode";
|
|
17
|
-
FcrAbility["CallOutAbility"] = "pstn:callOut"; //当前 成员列表-邀请电话呼入和切换电话音频 腾文定义的key是一样的
|
|
18
13
|
return FcrAbility;
|
|
19
14
|
}({});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fcr-core",
|
|
3
3
|
"description": "Core APIs for building online scenes",
|
|
4
|
-
"version": "3.7.
|
|
4
|
+
"version": "3.7.9-alpha",
|
|
5
5
|
"module": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@types/lodash": "^4.14.168",
|
|
41
41
|
"@types/sinon": "^17.0.2",
|
|
42
42
|
"@types/uuid": "^8.3.0",
|
|
43
|
-
"agora-toolchain": "3.7.
|
|
43
|
+
"agora-toolchain": "3.7.9-alpha",
|
|
44
44
|
"core-js": "^3.33.3",
|
|
45
45
|
"decomment": "^0.9.5",
|
|
46
46
|
"husky": "^9.0.11",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"@netless/forge-room": "1.0.6",
|
|
56
56
|
"@netless/forge-rtm": "1.0.6",
|
|
57
57
|
"@netless/forge-whiteboard": "1.0.6",
|
|
58
|
-
"agora-foundation": "3.7.
|
|
59
|
-
"agora-rte-sdk": "3.7.
|
|
58
|
+
"agora-foundation": "3.7.9-alpha",
|
|
59
|
+
"agora-rte-sdk": "3.7.9-alpha",
|
|
60
60
|
"await-to-js": "^3.0.0",
|
|
61
61
|
"dayjs": "^1.10.4",
|
|
62
62
|
"easemob-websdk": "4.13.0",
|