@webex/plugin-meetings 3.10.0-next.25 → 3.10.0-next.27
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/dist/breakouts/breakout.js +1 -1
- package/dist/breakouts/index.js +1 -1
- package/dist/hashTree/hashTreeParser.js +2 -7
- package/dist/hashTree/hashTreeParser.js.map +1 -1
- package/dist/interceptors/locusRouteToken.js +20 -4
- package/dist/interceptors/locusRouteToken.js.map +1 -1
- package/dist/interpretation/index.js +1 -1
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/locus-info/index.js +10 -7
- package/dist/locus-info/index.js.map +1 -1
- package/dist/types/interceptors/locusRouteToken.d.ts +1 -0
- package/dist/webinar/index.js +1 -1
- package/package.json +1 -1
- package/src/hashTree/hashTreeParser.ts +1 -5
- package/src/interceptors/locusRouteToken.ts +16 -4
- package/src/locus-info/index.ts +11 -10
- package/test/unit/spec/hashTree/hashTreeParser.ts +2 -10
- package/test/unit/spec/interceptors/locusRouteToken.ts +27 -0
package/dist/locus-info/index.js
CHANGED
|
@@ -912,7 +912,8 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
912
912
|
}, {
|
|
913
913
|
key: "handleOneOnOneEvent",
|
|
914
914
|
value: function handleOneOnOneEvent(eventType) {
|
|
915
|
-
|
|
915
|
+
var _this$parsedLocus$ful, _this$parsedLocus$ful2;
|
|
916
|
+
if (((_this$parsedLocus$ful = this.parsedLocus.fullState) === null || _this$parsedLocus$ful === void 0 ? void 0 : _this$parsedLocus$ful.type) === _constants._CALL_ || ((_this$parsedLocus$ful2 = this.parsedLocus.fullState) === null || _this$parsedLocus$ful2 === void 0 ? void 0 : _this$parsedLocus$ful2.type) === _constants._SIP_BRIDGE_) {
|
|
916
917
|
// for 1:1 bob calls alice and alice declines, notify the meeting state
|
|
917
918
|
if (eventType === _constants.LOCUSEVENT.PARTICIPANT_DECLINED) {
|
|
918
919
|
// trigger the event for stop ringing
|
|
@@ -1015,7 +1016,8 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1015
1016
|
}, {
|
|
1016
1017
|
key: "isMeetingActive",
|
|
1017
1018
|
value: function isMeetingActive() {
|
|
1018
|
-
|
|
1019
|
+
var _this$parsedLocus$ful3, _this$parsedLocus$ful4, _this$parsedLocus$ful5, _this$parsedLocus$ful6;
|
|
1020
|
+
if (((_this$parsedLocus$ful3 = this.parsedLocus.fullState) === null || _this$parsedLocus$ful3 === void 0 ? void 0 : _this$parsedLocus$ful3.type) === _constants._CALL_ || ((_this$parsedLocus$ful4 = this.parsedLocus.fullState) === null || _this$parsedLocus$ful4 === void 0 ? void 0 : _this$parsedLocus$ful4.type) === _constants._SIP_BRIDGE_ || ((_this$parsedLocus$ful5 = this.parsedLocus.fullState) === null || _this$parsedLocus$ful5 === void 0 ? void 0 : _this$parsedLocus$ful5.type) === _constants._SPACE_SHARE_) {
|
|
1019
1021
|
// @ts-ignore
|
|
1020
1022
|
var partner = this.getLocusPartner(this.participants, this.self);
|
|
1021
1023
|
this.updateMeeting({
|
|
@@ -1079,7 +1081,7 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1079
1081
|
shouldLeave: false
|
|
1080
1082
|
});
|
|
1081
1083
|
}
|
|
1082
|
-
} else if (this.parsedLocus.fullState.type === _constants._MEETING_) {
|
|
1084
|
+
} else if (((_this$parsedLocus$ful6 = this.parsedLocus.fullState) === null || _this$parsedLocus$ful6 === void 0 ? void 0 : _this$parsedLocus$ful6.type) === _constants._MEETING_) {
|
|
1083
1085
|
if (this.fullState && (this.fullState.state === _constants.LOCUS.STATE.INACTIVE ||
|
|
1084
1086
|
// @ts-ignore
|
|
1085
1087
|
this.fullState.state === _constants.LOCUS.STATE.TERMINATING)) {
|
|
@@ -1160,7 +1162,7 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1160
1162
|
value: function compareSelfAndHost() {
|
|
1161
1163
|
var _this$parsedLocus$hos;
|
|
1162
1164
|
// In some cases the host info is not present but the moderator values changes from null to false so it triggers an update
|
|
1163
|
-
if (this.parsedLocus.self.selfIdentity === ((_this$parsedLocus$hos = this.parsedLocus.host) === null || _this$parsedLocus$hos === void 0 ? void 0 : _this$parsedLocus$hos.hostId) && this.parsedLocus.self.moderator) {
|
|
1165
|
+
if (this.parsedLocus.self && this.parsedLocus.self.selfIdentity === ((_this$parsedLocus$hos = this.parsedLocus.host) === null || _this$parsedLocus$hos === void 0 ? void 0 : _this$parsedLocus$hos.hostId) && this.parsedLocus.self.moderator) {
|
|
1164
1166
|
this.emitScoped({
|
|
1165
1167
|
file: 'locus-info',
|
|
1166
1168
|
function: 'compareSelfAndHost'
|
|
@@ -1741,6 +1743,7 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1741
1743
|
key: "updateSelf",
|
|
1742
1744
|
value: function updateSelf(self) {
|
|
1743
1745
|
if (self) {
|
|
1746
|
+
var _this$parsedLocus$ful7, _this$parsedLocus$inf;
|
|
1744
1747
|
// @ts-ignore
|
|
1745
1748
|
var parsedSelves = _selfUtils.default.getSelves(this.parsedLocus.self, self, this.webex.internal.device.url, this.participants // using this.participants instead of locus.participants here, because with delta DTOs locus.participants will only contain a small subset of participants
|
|
1746
1749
|
);
|
|
@@ -1752,9 +1755,9 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1752
1755
|
}
|
|
1753
1756
|
|
|
1754
1757
|
// TODO: check if we need to save the sipUri here as well
|
|
1755
|
-
// this.emit(LOCUSINFO.EVENTS.MEETING_UPDATE, SelfUtils.getSipUrl(this.getLocusPartner(participants, self), this.parsedLocus.fullState
|
|
1756
|
-
var result = _selfUtils.default.getSipUrl(this.getLocusPartner(this.participants, self), this.parsedLocus.fullState.type, this.parsedLocus.info.sipUri);
|
|
1757
|
-
if (result.sipUri) {
|
|
1758
|
+
// this.emit(LOCUSINFO.EVENTS.MEETING_UPDATE, SelfUtils.getSipUrl(this.getLocusPartner(participants, self), this.parsedLocus.fullState?.type, this.parsedLocus.info?.sipUri));
|
|
1759
|
+
var result = _selfUtils.default.getSipUrl(this.getLocusPartner(this.participants, self), (_this$parsedLocus$ful7 = this.parsedLocus.fullState) === null || _this$parsedLocus$ful7 === void 0 ? void 0 : _this$parsedLocus$ful7.type, (_this$parsedLocus$inf = this.parsedLocus.info) === null || _this$parsedLocus$inf === void 0 ? void 0 : _this$parsedLocus$inf.sipUri);
|
|
1760
|
+
if (result !== null && result !== void 0 && result.sipUri) {
|
|
1758
1761
|
this.updateMeeting(result);
|
|
1759
1762
|
}
|
|
1760
1763
|
if (parsedSelves.updates.moderatorChanged) {
|