@webex/plugin-meetings 3.0.0-beta.201 → 3.0.0-beta.203

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 (33) hide show
  1. package/dist/breakouts/breakout.js +1 -1
  2. package/dist/breakouts/index.js +1 -1
  3. package/dist/constants.js +10 -4
  4. package/dist/constants.js.map +1 -1
  5. package/dist/interpretation/index.js +1 -1
  6. package/dist/interpretation/siLanguage.js +1 -1
  7. package/dist/locus-info/index.js +5 -8
  8. package/dist/locus-info/index.js.map +1 -1
  9. package/dist/locus-info/infoUtils.js +7 -1
  10. package/dist/locus-info/infoUtils.js.map +1 -1
  11. package/dist/meeting/in-meeting-actions.js +3 -1
  12. package/dist/meeting/in-meeting-actions.js.map +1 -1
  13. package/dist/meeting/index.js +502 -453
  14. package/dist/meeting/index.js.map +1 -1
  15. package/dist/recording-controller/index.js +0 -1
  16. package/dist/recording-controller/index.js.map +1 -1
  17. package/dist/types/constants.d.ts +3 -0
  18. package/dist/types/locus-info/index.d.ts +1 -1
  19. package/dist/types/meeting/in-meeting-actions.d.ts +2 -0
  20. package/dist/types/meeting/index.d.ts +14 -0
  21. package/dist/types/recording-controller/index.d.ts +0 -1
  22. package/package.json +19 -19
  23. package/src/constants.ts +7 -0
  24. package/src/locus-info/index.ts +9 -10
  25. package/src/locus-info/infoUtils.ts +10 -2
  26. package/src/meeting/in-meeting-actions.ts +4 -0
  27. package/src/meeting/index.ts +268 -231
  28. package/src/recording-controller/index.ts +0 -1
  29. package/test/unit/spec/locus-info/index.js +80 -3
  30. package/test/unit/spec/locus-info/infoUtils.js +37 -15
  31. package/test/unit/spec/meeting/in-meeting-actions.ts +2 -0
  32. package/test/unit/spec/meeting/index.js +284 -148
  33. package/test/unit/spec/meetings/index.js +2 -2
@@ -7,7 +7,7 @@ describe('plugin-meetings', () => {
7
7
  const info = {
8
8
  displayHints: {
9
9
  moderator: ['HINT_1', 'HINT_2'],
10
- joined: ['HINT_3'],
10
+ joined: ['HINT_3', 'VOIP_IS_ENABLED'],
11
11
  coHost: ['HINT_4'],
12
12
  },
13
13
  };
@@ -27,47 +27,66 @@ describe('plugin-meetings', () => {
27
27
  describe('parse', () => {
28
28
  it('only gives includes display hints when user has the correct role', () => {
29
29
  assert.deepEqual(InfoUtils.parse(info, ['MODERATOR']), {
30
- policy: {HINT_3: true},
30
+ policy: {HINT_3: true, VOIP_IS_ENABLED: true},
31
31
  moderator: {HINT_1: true, HINT_2: true, LOWER_SOMEONE_ELSES_HAND: true},
32
32
  coHost: {HINT_4: true, LOWER_SOMEONE_ELSES_HAND: true},
33
- userDisplayHints: ['HINT_3', 'HINT_1', 'HINT_2', 'LOWER_SOMEONE_ELSES_HAND'],
33
+ userDisplayHints: [
34
+ 'HINT_3',
35
+ 'VOIP_IS_ENABLED',
36
+ 'HINT_1',
37
+ 'HINT_2',
38
+ 'LOWER_SOMEONE_ELSES_HAND',
39
+ ],
34
40
  });
35
41
 
36
42
  assert.deepEqual(InfoUtils.parse(info, ['MODERATOR', 'COHOST']), {
37
- policy: {HINT_3: true},
43
+ policy: {HINT_3: true, VOIP_IS_ENABLED: true},
38
44
  moderator: {HINT_1: true, HINT_2: true, LOWER_SOMEONE_ELSES_HAND: true},
39
45
  coHost: {HINT_4: true, LOWER_SOMEONE_ELSES_HAND: true},
40
- userDisplayHints: ['HINT_3', 'HINT_4', 'LOWER_SOMEONE_ELSES_HAND', 'HINT_1', 'HINT_2'],
46
+ userDisplayHints: [
47
+ 'HINT_3',
48
+ 'VOIP_IS_ENABLED',
49
+ 'HINT_4',
50
+ 'LOWER_SOMEONE_ELSES_HAND',
51
+ 'HINT_1',
52
+ 'HINT_2',
53
+ ],
41
54
  });
42
55
 
43
56
  assert.deepEqual(InfoUtils.parse(info, ['COHOST']), {
44
- policy: {HINT_3: true},
57
+ policy: {HINT_3: true, VOIP_IS_ENABLED: true},
45
58
  moderator: {HINT_1: true, HINT_2: true, LOWER_SOMEONE_ELSES_HAND: true},
46
59
  coHost: {HINT_4: true, LOWER_SOMEONE_ELSES_HAND: true},
47
- userDisplayHints: ['HINT_3', 'HINT_4', 'LOWER_SOMEONE_ELSES_HAND'],
60
+ userDisplayHints: ['HINT_3', 'VOIP_IS_ENABLED', 'HINT_4', 'LOWER_SOMEONE_ELSES_HAND'],
48
61
  });
49
62
 
50
63
  assert.deepEqual(InfoUtils.parse(info, []), {
51
- policy: {HINT_3: true},
64
+ policy: {HINT_3: true, VOIP_IS_ENABLED: true},
52
65
  moderator: {HINT_1: true, HINT_2: true, LOWER_SOMEONE_ELSES_HAND: true},
53
66
  coHost: {HINT_4: true, LOWER_SOMEONE_ELSES_HAND: true},
54
- userDisplayHints: ['HINT_3'],
67
+ userDisplayHints: ['HINT_3', 'VOIP_IS_ENABLED'],
55
68
  });
56
69
  });
57
70
 
58
- it('only gives includes display hints when user has joined the meeting role', () => {
71
+ it('only includes interstitial display hints when user has not joined the meeting', () => {
59
72
  assert.deepEqual(InfoUtils.parse(info, ['MODERATOR'], false), {
60
- policy: {HINT_3: true},
73
+ policy: {HINT_3: true, VOIP_IS_ENABLED: true},
61
74
  moderator: {HINT_1: true, HINT_2: true, LOWER_SOMEONE_ELSES_HAND: true},
62
75
  coHost: {HINT_4: true, LOWER_SOMEONE_ELSES_HAND: true},
63
- userDisplayHints: ['HINT_1', 'HINT_2', 'LOWER_SOMEONE_ELSES_HAND'],
76
+ userDisplayHints: ['VOIP_IS_ENABLED', 'HINT_1', 'HINT_2', 'LOWER_SOMEONE_ELSES_HAND'],
64
77
  });
65
78
 
66
79
  assert.deepEqual(InfoUtils.parse(info, ['MODERATOR'], true), {
67
- policy: {HINT_3: true},
80
+ policy: {HINT_3: true, VOIP_IS_ENABLED: true},
68
81
  moderator: {HINT_1: true, HINT_2: true, LOWER_SOMEONE_ELSES_HAND: true},
69
82
  coHost: {HINT_4: true, LOWER_SOMEONE_ELSES_HAND: true},
70
- userDisplayHints: ['HINT_3', 'HINT_1', 'HINT_2', 'LOWER_SOMEONE_ELSES_HAND'],
83
+ userDisplayHints: [
84
+ 'HINT_3',
85
+ 'VOIP_IS_ENABLED',
86
+ 'HINT_1',
87
+ 'HINT_2',
88
+ 'LOWER_SOMEONE_ELSES_HAND',
89
+ ],
71
90
  });
72
91
  });
73
92
 
@@ -96,7 +115,10 @@ describe('plugin-meetings', () => {
96
115
  HINT_2: true,
97
116
  });
98
117
 
99
- assert.deepEqual(InfoUtils.parseDisplayHintSection(info, 'joined'), {HINT_3: true});
118
+ assert.deepEqual(InfoUtils.parseDisplayHintSection(info, 'joined'), {
119
+ HINT_3: true,
120
+ VOIP_IS_ENABLED: true,
121
+ });
100
122
 
101
123
  assert.deepEqual(InfoUtils.parseDisplayHintSection({}, 'joined'), {});
102
124
 
@@ -68,6 +68,7 @@ describe('plugin-meetings', () => {
68
68
  canShareContent: null,
69
69
  canTransferFile: null,
70
70
  canAnnotate: null,
71
+ canUseVoip: null,
71
72
  ...expected,
72
73
  };
73
74
 
@@ -141,6 +142,7 @@ describe('plugin-meetings', () => {
141
142
  'canShareContent',
142
143
  'canTransferFile',
143
144
  'canAnnotate',
145
+ 'canUseVoip',
144
146
  ].forEach((key) => {
145
147
  it(`get and set for ${key} work as expected`, () => {
146
148
  const inMeetingActions = new InMeetingActions();