@webex/plugin-meetings 3.10.0-next.17 → 3.10.0-next.19

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.10.0-next.17"
212
+ version: "3.10.0-next.19"
213
213
  });
214
214
  var _default = exports.default = Breakout;
215
215
  //# sourceMappingURL=breakout.js.map
@@ -1109,7 +1109,7 @@ var Breakouts = _webexCore.WebexPlugin.extend({
1109
1109
  this.trigger(_constants.BREAKOUTS.EVENTS.ASK_RETURN_TO_MAIN);
1110
1110
  }
1111
1111
  },
1112
- version: "3.10.0-next.17"
1112
+ version: "3.10.0-next.19"
1113
1113
  });
1114
1114
  var _default = exports.default = Breakouts;
1115
1115
  //# sourceMappingURL=index.js.map
@@ -372,7 +372,7 @@ var SimultaneousInterpretation = _webexCore.WebexPlugin.extend({
372
372
  throw error;
373
373
  });
374
374
  },
375
- version: "3.10.0-next.17"
375
+ version: "3.10.0-next.19"
376
376
  });
377
377
  var _default = exports.default = SimultaneousInterpretation;
378
378
  //# 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.10.0-next.17"
21
+ version: "3.10.0-next.19"
22
22
  });
23
23
  var _default = exports.default = SILanguage;
24
24
  //# sourceMappingURL=siLanguage.js.map
@@ -92,10 +92,7 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
92
92
  (0, _defineProperty2.default)(_this, "aclUrl", void 0);
93
93
  (0, _defineProperty2.default)(_this, "baseSequence", void 0);
94
94
  (0, _defineProperty2.default)(_this, "created", void 0);
95
- (0, _defineProperty2.default)(_this, "identities", void 0);
96
- (0, _defineProperty2.default)(_this, "membership", void 0);
97
95
  (0, _defineProperty2.default)(_this, "participants", void 0);
98
- (0, _defineProperty2.default)(_this, "participantsUrl", void 0);
99
96
  (0, _defineProperty2.default)(_this, "replaces", void 0);
100
97
  (0, _defineProperty2.default)(_this, "scheduledMeeting", void 0);
101
98
  (0, _defineProperty2.default)(_this, "sequence", void 0);
@@ -107,7 +104,6 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
107
104
  (0, _defineProperty2.default)(_this, "info", void 0);
108
105
  (0, _defineProperty2.default)(_this, "roles", void 0);
109
106
  (0, _defineProperty2.default)(_this, "mediaShares", void 0);
110
- (0, _defineProperty2.default)(_this, "replace", void 0);
111
107
  (0, _defineProperty2.default)(_this, "url", void 0);
112
108
  (0, _defineProperty2.default)(_this, "links", void 0);
113
109
  (0, _defineProperty2.default)(_this, "mainSessionLocusCache", void 0);
@@ -301,13 +297,10 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
301
297
  var locus = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
302
298
  this.created = locus.created || null;
303
299
  this.scheduledMeeting = locus.meeting || null;
304
- this.participantsUrl = locus.participantsUrl || null;
305
300
  this.replaces = locus.replaces || null;
306
301
  this.aclUrl = locus.aclUrl || null;
307
302
  this.baseSequence = locus.baseSequence || null;
308
303
  this.sequence = locus.sequence || null;
309
- this.membership = locus.membership || null;
310
- this.identities = locus.identities || null;
311
304
  this.participants = locus.participants || null;
312
305
 
313
306
  /**
@@ -496,7 +489,15 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
496
489
  }, {
497
490
  key: "updateLocusFromHashTreeObject",
498
491
  value: function updateLocusFromHashTreeObject(object, locus) {
492
+ var _this4 = this;
499
493
  var type = object.htMeta.elementId.type.toLowerCase();
494
+ var addParticipantObject = function addParticipantObject(obj) {
495
+ if (!locus.participants) {
496
+ locus.participants = [];
497
+ }
498
+ locus.participants.push(obj.data);
499
+ _this4.hashTreeObjectId2ParticipantId.set(obj.htMeta.elementId.id, obj.data.id);
500
+ };
500
501
  switch (type) {
501
502
  case _types.ObjectType.locus:
502
503
  {
@@ -543,13 +544,7 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
543
544
  case _types.ObjectType.participant:
544
545
  _loggerProxy.default.logger.info("Locus-info:index#updateLocusFromHashTreeObject --> participant id=".concat(object.htMeta.elementId.id, " ").concat(object.data ? 'updated' : 'removed', " version=").concat(object.htMeta.elementId.version));
545
546
  if (object.data) {
546
- if (!locus.participants) {
547
- locus.participants = [];
548
- }
549
- var participantObject = object.data;
550
- participantObject.htMeta = object.htMeta;
551
- locus.participants.push(participantObject);
552
- this.hashTreeObjectId2ParticipantId.set(object.htMeta.elementId.id, participantObject.id);
547
+ addParticipantObject(object);
553
548
  } else {
554
549
  var participantId = this.hashTreeObjectId2ParticipantId.get(object.htMeta.elementId.id);
555
550
  if (!locus.jsSdkMeta) {
@@ -570,9 +565,22 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
570
565
  // all other types info, fullstate, etc - Locus should never send them without data
571
566
  _loggerProxy.default.logger.warn("Locus-info:index#updateLocusFromHashTreeObject --> received ".concat(type, " object without data, this is not expected! version=").concat(object.htMeta.elementId.version));
572
567
  } else {
568
+ var _locus$info, _object$data$controls, _object$data$controls2, _object$data$controls3;
573
569
  _loggerProxy.default.logger.info("Locus-info:index#updateLocusFromHashTreeObject --> ".concat(type, " object updated to version ").concat(object.htMeta.elementId.version));
574
570
  var locusDtoKey = _types.ObjectTypeToLocusKeyMap[type];
575
571
  locus[locusDtoKey] = object.data;
572
+
573
+ /* Hash tree based webinar attendees don't receive a Participant object for themselves from Locus,
574
+ but a lot of existing code in SDK and web app expects a member object for self to exist,
575
+ so whenever SELF changes for a webinar attendee, we copy it into a participant object.
576
+ We can do it, because SELF has always all the same properties as a participant object.
577
+ */
578
+ if (type === _types.ObjectType.self && (_locus$info = locus.info) !== null && _locus$info !== void 0 && _locus$info.isWebinar && (_object$data$controls = object.data.controls) !== null && _object$data$controls !== void 0 && (_object$data$controls2 = _object$data$controls.role) !== null && _object$data$controls2 !== void 0 && (_object$data$controls3 = _object$data$controls2.roles) !== null && _object$data$controls3 !== void 0 && _object$data$controls3.find(function (r) {
579
+ return r.type === _constants.SELF_ROLES.ATTENDEE && r.hasRole;
580
+ })) {
581
+ _loggerProxy.default.logger.info("Locus-info:index#updateLocusFromHashTreeObject --> webinar attendee: creating participant object from self");
582
+ addParticipantObject(object);
583
+ }
576
584
  }
577
585
  break;
578
586
  default:
@@ -633,7 +641,7 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
633
641
  }, {
634
642
  key: "updateFromHashTree",
635
643
  value: function updateFromHashTree(updateType, data) {
636
- var _this4 = this;
644
+ var _this5 = this;
637
645
  switch (updateType) {
638
646
  case _hashTreeParser.LocusInfoUpdateType.OBJECTS_UPDATED:
639
647
  {
@@ -656,7 +664,7 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
656
664
  // but these should never happen
657
665
  _loggerProxy.default.logger.warn("Locus-info:index#updateFromHashTree --> received multiple LOCUS objects in one update, this is unexpected!");
658
666
  _metrics.default.sendBehavioralMetric(_constants2.default.LOCUS_HASH_TREE_UNSUPPORTED_OPERATION, {
659
- locusUrl: ((_object$data = object.data) === null || _object$data === void 0 ? void 0 : _object$data.url) || _this4.url,
667
+ locusUrl: ((_object$data = object.data) === null || _object$data === void 0 ? void 0 : _object$data.url) || _this5.url,
660
668
  message: object.data ? 'multiple LOCUS object updates' : 'LOCUS object update followed by removal'
661
669
  });
662
670
  }
@@ -677,7 +685,7 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
677
685
  // copy over all of existing locus except participants
678
686
  LocusDtoTopLevelKeys.forEach(function (key) {
679
687
  if (key !== 'participants') {
680
- locus[key] = (0, _lodash.cloneDeep)(_this4[key]);
688
+ locus[key] = (0, _lodash.cloneDeep)(_this5[key]);
681
689
  }
682
690
  });
683
691
  } else {
@@ -685,7 +693,7 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
685
693
  // (except participants, which need to stay empty - that means "no participant changes")
686
694
  (0, _values.default)(_types.ObjectTypeToLocusKeyMap).forEach(function (locusDtoKey) {
687
695
  if (locusDtoKey !== 'participants') {
688
- locus[locusDtoKey] = (0, _lodash.cloneDeep)(_this4[locusDtoKey]);
696
+ locus[locusDtoKey] = (0, _lodash.cloneDeep)(_this5[locusDtoKey]);
689
697
  }
690
698
  });
691
699
  }
@@ -698,7 +706,7 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
698
706
  }))));
699
707
  // now apply all the updates from the hash tree onto the locus
700
708
  data.updatedObjects.forEach(function (object) {
701
- locus = _this4.updateLocusFromHashTreeObject(object, locus);
709
+ locus = _this5.updateLocusFromHashTreeObject(object, locus);
702
710
  });
703
711
 
704
712
  // update our locus info with the new locus
@@ -859,7 +867,7 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
859
867
  key: "onFullLocusCommon",
860
868
  value: function onFullLocusCommon(locus, eventType) {
861
869
  var _this$participants,
862
- _this5 = this,
870
+ _this6 = this,
863
871
  _locus$jsSdkMeta;
864
872
  this.scheduledMeeting = locus.meeting || null;
865
873
  this.participants = locus.participants;
@@ -867,7 +875,7 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
867
875
  var _participant$htMeta;
868
876
  // participant.htMeta is set only for hash tree based locus
869
877
  if ((_participant$htMeta = participant.htMeta) !== null && _participant$htMeta !== void 0 && _participant$htMeta.elementId.id) {
870
- _this5.hashTreeObjectId2ParticipantId.set(participant.htMeta.elementId.id, participant.id);
878
+ _this6.hashTreeObjectId2ParticipantId.set(participant.htMeta.elementId.id, participant.id);
871
879
  }
872
880
  });
873
881
  var isReplaceMembers = _controlsUtils.default.isNeedReplaceMembers(this.controls, locus.controls);
@@ -955,14 +963,11 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
955
963
  this.updateLocusUrl(locus.url, _controlsUtils.default.isMainSessionDTO(locus));
956
964
  this.updateMeetingInfo(locus.info, locus.self);
957
965
  this.updateMediaShares(locus.mediaShares);
958
- this.updateParticipantsUrl(locus.participantsUrl);
959
- this.updateReplace(locus.replace);
966
+ this.updateReplaces(locus.replaces);
960
967
  this.updateSelf(locus.self);
961
968
  this.updateAclUrl(locus.aclUrl);
962
969
  this.updateBasequence(locus.baseSequence);
963
970
  this.updateSequence(locus.sequence);
964
- this.updateMemberShip(locus.membership);
965
- this.updateIdentifiers(locus.identities);
966
971
  this.updateEmbeddedApps(locus.embeddedApps);
967
972
  this.updateLinks(locus.links);
968
973
  this.compareAndUpdate();
@@ -1699,28 +1704,15 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
1699
1704
  }
1700
1705
 
1701
1706
  /**
1702
- * @param {String} participantsUrl
1707
+ * @param {Object} replaces
1703
1708
  * @returns {undefined}
1704
1709
  * @memberof LocusInfo
1705
1710
  */
1706
1711
  }, {
1707
- key: "updateParticipantsUrl",
1708
- value: function updateParticipantsUrl(participantsUrl) {
1709
- if (participantsUrl && !(0, _lodash.isEqual)(this.participantsUrl, participantsUrl)) {
1710
- this.participantsUrl = participantsUrl;
1711
- }
1712
- }
1713
-
1714
- /**
1715
- * @param {Object} replace
1716
- * @returns {undefined}
1717
- * @memberof LocusInfo
1718
- */
1719
- }, {
1720
- key: "updateReplace",
1721
- value: function updateReplace(replace) {
1722
- if (replace && !(0, _lodash.isEqual)(this.replace, replace)) {
1723
- this.replace = replace;
1712
+ key: "updateReplaces",
1713
+ value: function updateReplaces(replaces) {
1714
+ if (replaces && !(0, _lodash.isEqual)(this.replaces, replaces)) {
1715
+ this.replaces = replaces;
1724
1716
  }
1725
1717
  }
1726
1718
 
@@ -1979,32 +1971,6 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
1979
1971
  }
1980
1972
  }
1981
1973
 
1982
- /**
1983
- * @param {Object} membership
1984
- * @returns {undefined}
1985
- * @memberof LocusInfo
1986
- */
1987
- }, {
1988
- key: "updateMemberShip",
1989
- value: function updateMemberShip(membership) {
1990
- if (membership && !(0, _lodash.isEqual)(this.membership, membership)) {
1991
- this.membership = membership;
1992
- }
1993
- }
1994
-
1995
- /**
1996
- * @param {Array} identities
1997
- * @returns {undefined}
1998
- * @memberof LocusInfo
1999
- */
2000
- }, {
2001
- key: "updateIdentifiers",
2002
- value: function updateIdentifiers(identities) {
2003
- if (identities && !(0, _lodash.isEqual)(this.identities, identities)) {
2004
- this.identities = identities;
2005
- }
2006
- }
2007
-
2008
1974
  /**
2009
1975
  * check the locus is main session's one or not, if is main session's, update main session cache
2010
1976
  * @param {Object} locus
@@ -2082,7 +2048,7 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
2082
2048
  }, {
2083
2049
  key: "updateMainSessionLocusCache",
2084
2050
  value: function updateMainSessionLocusCache(mainLocus) {
2085
- var _this6 = this;
2051
+ var _this7 = this;
2086
2052
  if (!mainLocus) {
2087
2053
  return;
2088
2054
  }
@@ -2091,7 +2057,7 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
2091
2057
  // shallow merge and do special merge for participants
2092
2058
  (0, _lodash.assignWith)(this.mainSessionLocusCache, locusClone, function (objValue, srcValue, key) {
2093
2059
  if (key === 'participants') {
2094
- return _this6.mergeParticipants(objValue, srcValue);
2060
+ return _this7.mergeParticipants(objValue, srcValue);
2095
2061
  }
2096
2062
  return srcValue || objValue;
2097
2063
  });