@webex/plugin-meetings 3.9.0-next.14 → 3.9.0-next.16

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.
@@ -209,7 +209,7 @@ var Breakout = _webexCore.WebexPlugin.extend({
209
209
  sessionId: this.sessionId
210
210
  });
211
211
  },
212
- version: "3.9.0-next.14"
212
+ version: "3.9.0-next.16"
213
213
  });
214
214
  var _default = exports.default = Breakout;
215
215
  //# sourceMappingURL=breakout.js.map
@@ -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.9.0-next.14"
1113
+ version: "3.9.0-next.16"
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.9.0-next.14"
376
+ version: "3.9.0-next.16"
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.9.0-next.14"
21
+ version: "3.9.0-next.16"
22
22
  });
23
23
  var _default = exports.default = SILanguage;
24
24
  //# sourceMappingURL=siLanguage.js.map
@@ -292,7 +292,7 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
292
292
  this.updateLocusCache(locus);
293
293
  // above section only updates the locusInfo object
294
294
  // The below section makes sure it updates the locusInfo as well as updates the meeting object
295
- this.updateParticipants(locus.participants);
295
+ this.updateParticipants(locus.participants, []);
296
296
  // For 1:1 space meeting the conversation Url does not exist in locus.conversation
297
297
  this.updateConversationUrl(locus.conversationUrl, locus.info);
298
298
  this.updateControls(locus.controls, locus.self);
@@ -323,6 +323,18 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
323
323
  this.emitChange = true;
324
324
  }
325
325
 
326
+ /**
327
+ * Handles HTTP response from Locus API call.
328
+ * @param {Meeting} meeting meeting object
329
+ * @param {LocusApiResponseBody} responseBody body of the http response from Locus API call
330
+ * @returns {void}
331
+ */
332
+ }, {
333
+ key: "handleLocusAPIResponse",
334
+ value: function handleLocusAPIResponse(meeting, responseBody) {
335
+ this.handleLocusDelta(responseBody.locus, meeting);
336
+ }
337
+
326
338
  /**
327
339
  * @param {Meeting} meeting
328
340
  * @param {Object} data
@@ -336,6 +348,9 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
336
348
  var eventType = data.eventType;
337
349
  var locus = this.getTheLocusToUpdate(data.locus);
338
350
  _loggerProxy.default.logger.info("Locus-info:index#parse --> received locus data: ".concat(eventType));
351
+ locus.jsSdkMeta = {
352
+ removedParticipantIds: []
353
+ };
339
354
  switch (eventType) {
340
355
  case _constants.LOCUSEVENT.PARTICIPANT_JOIN:
341
356
  case _constants.LOCUSEVENT.PARTICIPANT_LEFT:
@@ -386,6 +401,7 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
386
401
  }, {
387
402
  key: "onFullLocus",
388
403
  value: function onFullLocus(locus, eventType) {
404
+ var _locus$jsSdkMeta;
389
405
  if (!locus) {
390
406
  _loggerProxy.default.logger.error('Locus-info:index#onFullLocus --> object passed as argument was invalid, continuing.');
391
407
  }
@@ -397,7 +413,7 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
397
413
  this.participants = locus.participants;
398
414
  var isReplaceMembers = _controlsUtils.default.isNeedReplaceMembers(this.controls, locus.controls);
399
415
  this.updateLocusInfo(locus);
400
- this.updateParticipants(locus.participants, isReplaceMembers);
416
+ this.updateParticipants(locus.participants, (_locus$jsSdkMeta = locus.jsSdkMeta) === null || _locus$jsSdkMeta === void 0 ? void 0 : _locus$jsSdkMeta.removedParticipantIds, isReplaceMembers);
401
417
  this.isMeetingActive();
402
418
  this.handleOneOnOneEvent(eventType);
403
419
  this.updateEmbeddedApps(locus.embeddedApps);
@@ -449,10 +465,11 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
449
465
  }, {
450
466
  key: "onDeltaLocus",
451
467
  value: function onDeltaLocus(locus) {
468
+ var _locus$jsSdkMeta2;
452
469
  var isReplaceMembers = _controlsUtils.default.isNeedReplaceMembers(this.controls, locus.controls);
453
470
  this.mergeParticipants(this.participants, locus.participants);
454
471
  this.updateLocusInfo(locus);
455
- this.updateParticipants(locus.participants, isReplaceMembers);
472
+ this.updateParticipants(locus.participants, (_locus$jsSdkMeta2 = locus.jsSdkMeta) === null || _locus$jsSdkMeta2 === void 0 ? void 0 : _locus$jsSdkMeta2.removedParticipantIds, isReplaceMembers);
456
473
  this.isMeetingActive();
457
474
  }
458
475
 
@@ -686,19 +703,21 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
686
703
  /**
687
704
  * update meeting's members
688
705
  * @param {Object} participants new participants object
706
+ * @param {Array} removedParticipantIds list of removed participants
689
707
  * @param {Boolean} isReplace is replace the whole members
690
708
  * @returns {Array} updatedParticipants
691
709
  * @memberof LocusInfo
692
710
  */
693
711
  }, {
694
712
  key: "updateParticipants",
695
- value: function updateParticipants(participants, isReplace) {
713
+ value: function updateParticipants(participants, removedParticipantIds, isReplace) {
696
714
  var _this$parsedLocus$con;
697
715
  this.emitScoped({
698
716
  file: 'locus-info',
699
717
  function: 'updateParticipants'
700
718
  }, _constants.EVENTS.LOCUS_INFO_UPDATE_PARTICIPANTS, {
701
719
  participants: participants,
720
+ removedParticipantIds: removedParticipantIds,
702
721
  recordingId: this.parsedLocus.controls && ((_this$parsedLocus$con = this.parsedLocus.controls.record) === null || _this$parsedLocus$con === void 0 ? void 0 : _this$parsedLocus$con.modifiedBy),
703
722
  selfIdentity: this.parsedLocus.self && this.parsedLocus.self.selfIdentity,
704
723
  selfId: this.parsedLocus.self && this.parsedLocus.self.selfId,