@webex/plugin-meetings 3.8.1-next.30 → 3.8.1-next.32
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/interpretation/index.js +1 -1
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/locus-info/index.js +2 -67
- package/dist/locus-info/index.js.map +1 -1
- package/dist/meeting/index.js +10 -3
- package/dist/meeting/index.js.map +1 -1
- package/dist/types/locus-info/index.d.ts +0 -9
- package/dist/webinar/index.js +1 -1
- package/package.json +3 -3
- package/src/locus-info/index.ts +0 -62
- package/src/meeting/index.ts +10 -6
- package/test/unit/spec/locus-info/index.js +0 -36
- package/test/unit/spec/meeting/index.js +33 -2
package/dist/breakouts/index.js
CHANGED
@@ -1110,7 +1110,7 @@ var Breakouts = _webexCore.WebexPlugin.extend({
|
|
1110
1110
|
this.trigger(_constants.BREAKOUTS.EVENTS.ASK_RETURN_TO_MAIN);
|
1111
1111
|
}
|
1112
1112
|
},
|
1113
|
-
version: "3.8.1-next.
|
1113
|
+
version: "3.8.1-next.32"
|
1114
1114
|
});
|
1115
1115
|
var _default = exports.default = Breakouts;
|
1116
1116
|
//# sourceMappingURL=index.js.map
|
@@ -373,7 +373,7 @@ var SimultaneousInterpretation = _webexCore.WebexPlugin.extend({
|
|
373
373
|
throw error;
|
374
374
|
});
|
375
375
|
},
|
376
|
-
version: "3.8.1-next.
|
376
|
+
version: "3.8.1-next.32"
|
377
377
|
});
|
378
378
|
var _default = exports.default = SimultaneousInterpretation;
|
379
379
|
//# sourceMappingURL=index.js.map
|
@@ -18,7 +18,7 @@ var SILanguage = _webexCore.WebexPlugin.extend({
|
|
18
18
|
languageCode: 'number',
|
19
19
|
languageName: 'string'
|
20
20
|
},
|
21
|
-
version: "3.8.1-next.
|
21
|
+
version: "3.8.1-next.32"
|
22
22
|
});
|
23
23
|
var _default = exports.default = SILanguage;
|
24
24
|
//# sourceMappingURL=siLanguage.js.map
|
package/dist/locus-info/index.js
CHANGED
@@ -11,7 +11,6 @@ _Object$defineProperty(exports, "__esModule", {
|
|
11
11
|
value: true
|
12
12
|
});
|
13
13
|
exports.default = void 0;
|
14
|
-
var _keys = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/object/keys"));
|
15
14
|
var _isArray = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/array/is-array"));
|
16
15
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/classCallCheck"));
|
17
16
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/createClass"));
|
@@ -69,7 +68,6 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
69
68
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "aclUrl", void 0);
|
70
69
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "baseSequence", void 0);
|
71
70
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "created", void 0);
|
72
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "deltaParticipants", void 0);
|
73
71
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "identities", void 0);
|
74
72
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "membership", void 0);
|
75
73
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "participants", void 0);
|
@@ -282,16 +280,6 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
282
280
|
* @property {Object} person - Contains person data.
|
283
281
|
*/
|
284
282
|
|
285
|
-
/**
|
286
|
-
* Stored participant changes between the last event and the current event.
|
287
|
-
* All previously stored events are overwritten between events.
|
288
|
-
*
|
289
|
-
* @instance
|
290
|
-
* @type {Array<DeltaParticipant>}
|
291
|
-
* @private
|
292
|
-
* @member LocusInfo
|
293
|
-
*/
|
294
|
-
this.deltaParticipants = [];
|
295
283
|
this.updateLocusCache(locus);
|
296
284
|
// above section only updates the locusInfo object
|
297
285
|
// The below section makes sure it updates the locusInfo as well as updates the meeting object
|
@@ -396,7 +384,6 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
396
384
|
_loggerProxy.default.logger.info("Locus-info:index#onFullLocus --> ignoring old full locus DTO, eventType=".concat(eventType));
|
397
385
|
return;
|
398
386
|
}
|
399
|
-
this.updateParticipantDeltas(locus.participants);
|
400
387
|
this.scheduledMeeting = locus.meeting || null;
|
401
388
|
this.participants = locus.participants;
|
402
389
|
var isReplaceMembers = _controlsUtils.default.isNeedReplaceMembers(this.controls, locus.controls);
|
@@ -687,58 +674,6 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
687
674
|
}
|
688
675
|
}
|
689
676
|
|
690
|
-
/**
|
691
|
-
* Update the deltaParticipants property of this object based on a list of
|
692
|
-
* provided participants.
|
693
|
-
*
|
694
|
-
* @param {Array} [participants] - The participants to update against.
|
695
|
-
* @returns {void}
|
696
|
-
*/
|
697
|
-
}, {
|
698
|
-
key: "updateParticipantDeltas",
|
699
|
-
value: function updateParticipantDeltas() {
|
700
|
-
var _this4 = this;
|
701
|
-
var participants = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
702
|
-
// Used to find a participant within a participants collection.
|
703
|
-
var findParticipant = function findParticipant(participant, collection) {
|
704
|
-
return collection.find(function (item) {
|
705
|
-
return item.person.id === participant.person.id;
|
706
|
-
});
|
707
|
-
};
|
708
|
-
|
709
|
-
// Generates an object that indicates which state properties have changed.
|
710
|
-
var generateDelta = function generateDelta() {
|
711
|
-
var prevState = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
712
|
-
var newState = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
713
|
-
// Setup deltas.
|
714
|
-
var deltas = {
|
715
|
-
audioStatus: prevState.audioStatus !== newState.audioStatus,
|
716
|
-
videoSlidesStatus: prevState.videoSlidesStatus !== newState.videoSlidesStatus,
|
717
|
-
videoStatus: prevState.videoStatus !== newState.videoStatus
|
718
|
-
};
|
719
|
-
|
720
|
-
// Clean the object
|
721
|
-
(0, _keys.default)(deltas).forEach(function (key) {
|
722
|
-
if (deltas[key] !== true) {
|
723
|
-
delete deltas[key];
|
724
|
-
}
|
725
|
-
});
|
726
|
-
return deltas;
|
727
|
-
};
|
728
|
-
this.deltaParticipants = participants.reduce(function (collection, participant) {
|
729
|
-
var existingParticipant = findParticipant(participant, _this4.participants || []) || {};
|
730
|
-
var delta = generateDelta(existingParticipant.status, participant.status);
|
731
|
-
var changed = (0, _keys.default)(delta).length > 0;
|
732
|
-
if (changed) {
|
733
|
-
collection.push({
|
734
|
-
person: participant.person,
|
735
|
-
delta: delta
|
736
|
-
});
|
737
|
-
}
|
738
|
-
return collection;
|
739
|
-
}, []);
|
740
|
-
}
|
741
|
-
|
742
677
|
/**
|
743
678
|
* update meeting's members
|
744
679
|
* @param {Object} participants new participants object
|
@@ -1656,7 +1591,7 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
1656
1591
|
}, {
|
1657
1592
|
key: "updateMainSessionLocusCache",
|
1658
1593
|
value: function updateMainSessionLocusCache(mainLocus) {
|
1659
|
-
var
|
1594
|
+
var _this4 = this;
|
1660
1595
|
if (!mainLocus) {
|
1661
1596
|
return;
|
1662
1597
|
}
|
@@ -1665,7 +1600,7 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
1665
1600
|
// shallow merge and do special merge for participants
|
1666
1601
|
(0, _lodash.assignWith)(this.mainSessionLocusCache, locusClone, function (objValue, srcValue, key) {
|
1667
1602
|
if (key === 'participants') {
|
1668
|
-
return
|
1603
|
+
return _this4.mergeParticipants(objValue, srcValue);
|
1669
1604
|
}
|
1670
1605
|
return srcValue || objValue;
|
1671
1606
|
});
|