@webex/plugin-meetings 3.12.0-next.72 → 3.12.0-next.74

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 (37) hide show
  1. package/dist/aiEnableRequest/index.js +1 -1
  2. package/dist/breakouts/breakout.js +1 -1
  3. package/dist/breakouts/index.js +1 -1
  4. package/dist/constants.js +4 -1
  5. package/dist/constants.js.map +1 -1
  6. package/dist/controls-options-manager/index.js +29 -5
  7. package/dist/controls-options-manager/index.js.map +1 -1
  8. package/dist/interpretation/index.js +1 -1
  9. package/dist/interpretation/siLanguage.js +1 -1
  10. package/dist/locus-info/infoUtils.js +36 -5
  11. package/dist/locus-info/infoUtils.js.map +1 -1
  12. package/dist/meeting/in-meeting-actions.js +3 -1
  13. package/dist/meeting/in-meeting-actions.js.map +1 -1
  14. package/dist/meeting/index.js +21 -8
  15. package/dist/meeting/index.js.map +1 -1
  16. package/dist/meeting/util.js +9 -0
  17. package/dist/meeting/util.js.map +1 -1
  18. package/dist/types/constants.d.ts +3 -0
  19. package/dist/types/controls-options-manager/index.d.ts +6 -0
  20. package/dist/types/locus-info/infoUtils.d.ts +8 -0
  21. package/dist/types/meeting/in-meeting-actions.d.ts +2 -0
  22. package/dist/types/meeting/index.d.ts +1 -0
  23. package/dist/types/meeting/util.d.ts +1 -0
  24. package/dist/webinar/index.js +1 -1
  25. package/package.json +1 -1
  26. package/src/constants.ts +3 -0
  27. package/src/controls-options-manager/index.ts +40 -4
  28. package/src/locus-info/infoUtils.ts +41 -6
  29. package/src/meeting/in-meeting-actions.ts +4 -0
  30. package/src/meeting/index.ts +10 -0
  31. package/src/meeting/util.ts +12 -0
  32. package/test/unit/spec/controls-options-manager/index.js +104 -0
  33. package/test/unit/spec/locus-info/index.js +12 -0
  34. package/test/unit/spec/locus-info/infoUtils.js +87 -0
  35. package/test/unit/spec/meeting/in-meeting-actions.ts +2 -0
  36. package/test/unit/spec/meeting/utils.js +49 -0
  37. package/test/unit/spec/meetings/index.js +3 -0
@@ -967,6 +967,55 @@ describe('plugin-meetings', () => {
967
967
  });
968
968
  });
969
969
 
970
+ describe('canViewTheParticipantList', () => {
971
+ it('returns true when both VIEW_THE_PARTICIPANT_LIST and CAN_VIEW_THE_PARTICIPANT_LIST hints are present and canNotViewTheParticipantList is false', () => {
972
+ assert.isTrue(
973
+ MeetingUtil.canViewTheParticipantList(
974
+ ['VIEW_THE_PARTICIPANT_LIST', 'CAN_VIEW_THE_PARTICIPANT_LIST'],
975
+ false
976
+ )
977
+ );
978
+ });
979
+
980
+ it('returns false when VIEW_THE_PARTICIPANT_LIST hint is missing', () => {
981
+ assert.isFalse(
982
+ MeetingUtil.canViewTheParticipantList(['CAN_VIEW_THE_PARTICIPANT_LIST'], false)
983
+ );
984
+ });
985
+
986
+ it('returns false when CAN_VIEW_THE_PARTICIPANT_LIST hint is missing', () => {
987
+ assert.isFalse(
988
+ MeetingUtil.canViewTheParticipantList(['VIEW_THE_PARTICIPANT_LIST'], false)
989
+ );
990
+ });
991
+
992
+ it('returns false when canNotViewTheParticipantList is true', () => {
993
+ assert.isFalse(
994
+ MeetingUtil.canViewTheParticipantList(
995
+ ['VIEW_THE_PARTICIPANT_LIST', 'CAN_VIEW_THE_PARTICIPANT_LIST'],
996
+ true
997
+ )
998
+ );
999
+ });
1000
+
1001
+ it('returns false when display hints array is empty', () => {
1002
+ assert.isFalse(MeetingUtil.canViewTheParticipantList([], false));
1003
+ });
1004
+
1005
+ it('returns false when both conditions are violated', () => {
1006
+ assert.isFalse(MeetingUtil.canViewTheParticipantList([], true));
1007
+ });
1008
+
1009
+ it('returns true when canNotViewTheParticipantList is undefined (not yet set on meeting)', () => {
1010
+ assert.isTrue(
1011
+ MeetingUtil.canViewTheParticipantList(
1012
+ ['VIEW_THE_PARTICIPANT_LIST', 'CAN_VIEW_THE_PARTICIPANT_LIST'],
1013
+ undefined
1014
+ )
1015
+ );
1016
+ });
1017
+ });
1018
+
970
1019
  describe('canAttendeeRequestAiAssistantEnabled', () => {
971
1020
  it('returns false when user is a cohost', () => {
972
1021
  assert.deepEqual(
@@ -3593,10 +3593,13 @@ describe('plugin-meetings', () => {
3593
3593
  };
3594
3594
 
3595
3595
  it('triggers correct event when SELF_CANNOT_VIEW_PARTICIPANT_LIST_CHANGE emitted', async () => {
3596
+ sinon.stub(meeting, 'updateMeetingActions');
3596
3597
  checkSelfTrigger(
3597
3598
  LOCUSINFO.EVENTS.SELF_CANNOT_VIEW_PARTICIPANT_LIST_CHANGE,
3598
3599
  EVENT_TRIGGERS.MEETING_SELF_CANNOT_VIEW_PARTICIPANT_LIST
3599
3600
  );
3601
+ assert.calledOnce(meeting.updateMeetingActions);
3602
+ meeting.updateMeetingActions.restore();
3600
3603
  });
3601
3604
 
3602
3605
  it('triggers correct event when SELF_IS_SHARING_BLOCKED_CHANGE emitted', async () => {