@webex/plugin-meetings 3.0.0-beta.133 → 3.0.0-beta.135

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.
Files changed (41) hide show
  1. package/dist/breakouts/breakout.js +1 -1
  2. package/dist/breakouts/index.js +46 -35
  3. package/dist/breakouts/index.js.map +1 -1
  4. package/dist/common/logs/logger-proxy.js +1 -1
  5. package/dist/common/logs/logger-proxy.js.map +1 -1
  6. package/dist/constants.js +4 -3
  7. package/dist/constants.js.map +1 -1
  8. package/dist/controls-options-manager/util.js +17 -11
  9. package/dist/controls-options-manager/util.js.map +1 -1
  10. package/dist/locus-info/index.js +0 -8
  11. package/dist/locus-info/index.js.map +1 -1
  12. package/dist/locus-info/parser.js +1 -1
  13. package/dist/locus-info/parser.js.map +1 -1
  14. package/dist/locus-info/selfUtils.js +6 -18
  15. package/dist/locus-info/selfUtils.js.map +1 -1
  16. package/dist/meeting/index.js +9 -7
  17. package/dist/meeting/index.js.map +1 -1
  18. package/dist/meetings/index.js.map +1 -1
  19. package/dist/multistream/remoteMediaManager.js +1 -0
  20. package/dist/multistream/remoteMediaManager.js.map +1 -1
  21. package/dist/reconnection-manager/index.js.map +1 -1
  22. package/dist/roap/request.js.map +1 -1
  23. package/dist/types/constants.d.ts +2 -1
  24. package/package.json +19 -19
  25. package/src/breakouts/index.ts +44 -28
  26. package/src/common/logs/logger-proxy.ts +1 -1
  27. package/src/constants.ts +2 -1
  28. package/src/controls-options-manager/util.ts +16 -11
  29. package/src/locus-info/index.ts +2 -13
  30. package/src/locus-info/parser.ts +1 -1
  31. package/src/locus-info/selfUtils.ts +6 -26
  32. package/src/meeting/index.ts +16 -7
  33. package/src/meetings/index.ts +0 -1
  34. package/src/multistream/remoteMediaManager.ts +1 -0
  35. package/src/reconnection-manager/index.ts +0 -1
  36. package/src/roap/request.ts +0 -1
  37. package/test/unit/spec/breakouts/index.ts +72 -48
  38. package/test/unit/spec/controls-options-manager/util.js +16 -2
  39. package/test/unit/spec/locus-info/index.js +0 -21
  40. package/test/unit/spec/locus-info/selfUtils.js +6 -37
  41. package/test/unit/spec/meeting/index.js +15 -14
@@ -4867,6 +4867,7 @@ describe('plugin-meetings', () => {
4867
4867
 
4868
4868
  it('listens to the self roles changed event', () => {
4869
4869
  const payload = {oldRoles: [], newRoles: ['COHOST']};
4870
+ meeting.breakouts.updateCanManageBreakouts = sinon.stub();
4870
4871
 
4871
4872
  meeting.locusInfo.emit(
4872
4873
  {function: 'test', file: 'test'},
@@ -4874,6 +4875,7 @@ describe('plugin-meetings', () => {
4874
4875
  payload
4875
4876
  );
4876
4877
 
4878
+ assert.calledOnceWithExactly(meeting.breakouts.updateCanManageBreakouts, true);
4877
4879
  assert.calledWith(
4878
4880
  TriggerProxy.trigger,
4879
4881
  meeting,
@@ -4884,19 +4886,6 @@ describe('plugin-meetings', () => {
4884
4886
  });
4885
4887
  });
4886
4888
 
4887
- describe('#setUpBreakoutsPreAssignmentsListener', () => {
4888
- it('listens to the self moderator or cohost upgrade event', () => {
4889
- meeting.breakouts.queryPreAssignments = sinon.stub();
4890
- const payload = 'payload';
4891
- meeting.locusInfo.emit(
4892
- {function: 'test', file: 'test'},
4893
- 'SELF_MODERATOR_OR_COHOST_UPGRADE',
4894
- payload,
4895
- );
4896
- assert.calledOnceWithExactly(meeting.breakouts.queryPreAssignments, payload);
4897
- });
4898
- });
4899
-
4900
4889
  describe('#setUpBreakoutsListener', () => {
4901
4890
  it('listens to the closing event from breakouts and triggers the closing event', () => {
4902
4891
  TriggerProxy.trigger.reset();
@@ -4972,6 +4961,18 @@ describe('plugin-meetings', () => {
4972
4961
  helpEvent
4973
4962
  );
4974
4963
  });
4964
+
4965
+ it('listens to the preAssignments update event from breakouts and triggers the update event', () => {
4966
+ TriggerProxy.trigger.reset();
4967
+ meeting.breakouts.trigger('PRE_ASSIGNMENTS_UPDATE');
4968
+
4969
+ assert.calledWith(
4970
+ TriggerProxy.trigger,
4971
+ meeting,
4972
+ {file: 'meeting/index', function: 'setUpBreakoutsListener'},
4973
+ EVENT_TRIGGERS.MEETING_BREAKOUTS_PRE_ASSIGNMENTS_UPDATE
4974
+ );
4975
+ });
4975
4976
  });
4976
4977
 
4977
4978
  describe('#setupLocusControlsListener', () => {
@@ -5881,7 +5882,7 @@ describe('plugin-meetings', () => {
5881
5882
  it('connects if not already connected', async () => {
5882
5883
  meeting.joinedWith = {state: 'JOINED'};
5883
5884
  meeting.locusInfo = {url: 'a url', info: {datachannelUrl: 'a datachannel url'}};
5884
-
5885
+
5885
5886
 
5886
5887
  const result = await meeting.updateLLMConnection();
5887
5888