@webex/plugin-meetings 3.0.0-beta.220 → 3.0.0-beta.222

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webex/plugin-meetings",
3
- "version": "3.0.0-beta.220",
3
+ "version": "3.0.0-beta.222",
4
4
  "description": "",
5
5
  "license": "Cisco EULA (https://www.cisco.com/c/en/us/products/end-user-license-agreement.html)",
6
6
  "contributors": [
@@ -32,12 +32,12 @@
32
32
  "build": "yarn run -T tsc --declaration true --declarationDir ./dist/types"
33
33
  },
34
34
  "devDependencies": {
35
- "@webex/plugin-meetings": "3.0.0-beta.220",
36
- "@webex/test-helper-chai": "3.0.0-beta.220",
37
- "@webex/test-helper-mocha": "3.0.0-beta.220",
38
- "@webex/test-helper-mock-webex": "3.0.0-beta.220",
39
- "@webex/test-helper-retry": "3.0.0-beta.220",
40
- "@webex/test-helper-test-users": "3.0.0-beta.220",
35
+ "@webex/plugin-meetings": "3.0.0-beta.222",
36
+ "@webex/test-helper-chai": "3.0.0-beta.222",
37
+ "@webex/test-helper-mocha": "3.0.0-beta.222",
38
+ "@webex/test-helper-mock-webex": "3.0.0-beta.222",
39
+ "@webex/test-helper-retry": "3.0.0-beta.222",
40
+ "@webex/test-helper-test-users": "3.0.0-beta.222",
41
41
  "chai": "^4.3.4",
42
42
  "chai-as-promised": "^7.1.1",
43
43
  "jsdom-global": "3.0.2",
@@ -46,19 +46,19 @@
46
46
  "typescript": "^4.7.4"
47
47
  },
48
48
  "dependencies": {
49
- "@webex/common": "3.0.0-beta.220",
50
- "@webex/internal-media-core": "1.39.1",
51
- "@webex/internal-plugin-conversation": "3.0.0-beta.220",
52
- "@webex/internal-plugin-device": "3.0.0-beta.220",
53
- "@webex/internal-plugin-llm": "3.0.0-beta.220",
54
- "@webex/internal-plugin-mercury": "3.0.0-beta.220",
55
- "@webex/internal-plugin-metrics": "3.0.0-beta.220",
56
- "@webex/internal-plugin-support": "3.0.0-beta.220",
57
- "@webex/internal-plugin-user": "3.0.0-beta.220",
58
- "@webex/media-helpers": "3.0.0-beta.220",
59
- "@webex/plugin-people": "3.0.0-beta.220",
60
- "@webex/plugin-rooms": "3.0.0-beta.220",
61
- "@webex/webex-core": "3.0.0-beta.220",
49
+ "@webex/common": "3.0.0-beta.222",
50
+ "@webex/internal-media-core": "1.39.2",
51
+ "@webex/internal-plugin-conversation": "3.0.0-beta.222",
52
+ "@webex/internal-plugin-device": "3.0.0-beta.222",
53
+ "@webex/internal-plugin-llm": "3.0.0-beta.222",
54
+ "@webex/internal-plugin-mercury": "3.0.0-beta.222",
55
+ "@webex/internal-plugin-metrics": "3.0.0-beta.222",
56
+ "@webex/internal-plugin-support": "3.0.0-beta.222",
57
+ "@webex/internal-plugin-user": "3.0.0-beta.222",
58
+ "@webex/media-helpers": "3.0.0-beta.222",
59
+ "@webex/plugin-people": "3.0.0-beta.222",
60
+ "@webex/plugin-rooms": "3.0.0-beta.222",
61
+ "@webex/webex-core": "3.0.0-beta.222",
62
62
  "ampersand-collection": "^2.0.2",
63
63
  "bowser": "^2.11.0",
64
64
  "btoa": "^1.2.1",
@@ -3057,12 +3057,7 @@ export default class Meeting extends StatelessWebexPlugin {
3057
3057
  let changed = false;
3058
3058
  changed = this.inMeetingActions.set({
3059
3059
  canUseVoip:
3060
- ((this.userDisplayHints !== undefined
3061
- ? ControlsOptionsUtil.hasHints({
3062
- requiredHints: [DISPLAY_HINTS.VOIP_IS_ENABLED],
3063
- displayHints: this.userDisplayHints,
3064
- })
3065
- : this.meetingInfo?.supportVoIP === true) &&
3060
+ (this.meetingInfo?.supportVoIP === true &&
3066
3061
  ControlsOptionsUtil.hasPolicies({
3067
3062
  requiredPolicies: [SELF_POLICY.SUPPORT_VOIP],
3068
3063
  policies: this.selfUserPolicies,
@@ -6239,19 +6239,9 @@ describe('plugin-meetings', () => {
6239
6239
  }
6240
6240
  );
6241
6241
 
6242
- it('canUseVoip is enabled based on locus info when the conditions are met', () => {
6242
+ it('canUseVoip is disabled when the required policies are missing', () => {
6243
6243
  meeting.userDisplayHints = [DISPLAY_HINTS.VOIP_IS_ENABLED];
6244
- meeting.selfUserPolicies = {[SELF_POLICY.SUPPORT_VOIP]: true};
6245
- meeting.meetingInfo.supportVoIP = false;
6246
-
6247
- meeting.updateMeetingActions();
6248
-
6249
- assert.isTrue(meeting.inMeetingActions.get()['canUseVoip']);
6250
- });
6251
-
6252
- it('canUseVoip is disabled based on locus info when the required display hints are missing', () => {
6253
- meeting.userDisplayHints = [];
6254
- meeting.selfUserPolicies = {[SELF_POLICY.SUPPORT_VOIP]: true};
6244
+ meeting.selfUserPolicies = {};
6255
6245
  meeting.meetingInfo.supportVoIP = true;
6256
6246
 
6257
6247
  meeting.updateMeetingActions();
@@ -6259,18 +6249,18 @@ describe('plugin-meetings', () => {
6259
6249
  assert.isFalse(meeting.inMeetingActions.get()['canUseVoip']);
6260
6250
  });
6261
6251
 
6262
- it('canUseVoip is disabled based on locus info when the required policies are missing', () => {
6263
- meeting.userDisplayHints = [DISPLAY_HINTS.VOIP_IS_ENABLED];
6264
- meeting.selfUserPolicies = {};
6252
+ it('canUseVoip is enabled based on api info when the conditions are met', () => {
6253
+ meeting.userDisplayHints = undefined;
6254
+ meeting.selfUserPolicies = {[SELF_POLICY.SUPPORT_VOIP]: true};
6265
6255
  meeting.meetingInfo.supportVoIP = true;
6266
6256
 
6267
6257
  meeting.updateMeetingActions();
6268
6258
 
6269
- assert.isFalse(meeting.inMeetingActions.get()['canUseVoip']);
6259
+ assert.isTrue(meeting.inMeetingActions.get()['canUseVoip']);
6270
6260
  });
6271
6261
 
6272
- it('canUseVoip is enabled based on api info when the conditions are met', () => {
6273
- meeting.userDisplayHints = undefined;
6262
+ it('canUseVoip is enabled based on api info when the conditions are met - no display hints', () => {
6263
+ meeting.userDisplayHints = [];
6274
6264
  meeting.selfUserPolicies = {[SELF_POLICY.SUPPORT_VOIP]: true};
6275
6265
  meeting.meetingInfo.supportVoIP = true;
6276
6266
 
@@ -6422,6 +6412,7 @@ describe('plugin-meetings', () => {
6422
6412
  meeting.selfUserPolicies = {a: true};
6423
6413
  const userDisplayHints = ['LOCK_CONTROL_UNLOCK'];
6424
6414
  meeting.userDisplayHints = ['LOCK_CONTROL_UNLOCK'];
6415
+ meeting.meetingInfo.supportVoIP = true;
6425
6416
 
6426
6417
  meeting.updateMeetingActions();
6427
6418
 
@@ -6533,10 +6524,6 @@ describe('plugin-meetings', () => {
6533
6524
  requiredHints: [DISPLAY_HINTS.SHARE_CONTENT],
6534
6525
  displayHints: userDisplayHints,
6535
6526
  });
6536
- assert.calledWith(ControlsOptionsUtil.hasHints, {
6537
- requiredHints: [DISPLAY_HINTS.VOIP_IS_ENABLED],
6538
- displayHints: userDisplayHints,
6539
- });
6540
6527
  assert.calledWith(ControlsOptionsUtil.hasPolicies, {
6541
6528
  requiredPolicies: [SELF_POLICY.SUPPORT_VOIP],
6542
6529
  policies: selfUserPolicies,