@webex/plugin-meetings 3.0.0-beta.129 → 3.0.0-beta.130

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.
@@ -451,7 +451,6 @@ export declare const BREAKOUTS: {
451
451
  EDIT_LOCK_TOKEN_MISMATCH: number;
452
452
  EDIT_NOT_AUTHORIZED: number;
453
453
  };
454
- DEFAULT_DURATION: number;
455
454
  EDIT_LOCK_STATUS: {
456
455
  LOCKED: string;
457
456
  NOT_LOCKED: string;
@@ -680,6 +679,11 @@ export declare const DISPLAY_HINTS: {
680
679
  ENABLE_RAISE_HAND: string;
681
680
  DISABLE_VIDEO: string;
682
681
  ENABLE_VIDEO: string;
682
+ SHARE_FILE: string;
683
+ SHARE_APPLICATION: string;
684
+ SHARE_CAMERA: string;
685
+ SHARE_DESKTOP: string;
686
+ SHARE_CONTENT: string;
683
687
  };
684
688
  export declare const SELF_ROLES: {
685
689
  COHOST: string;
@@ -61,6 +61,11 @@ interface IInMeetingActions {
61
61
  canDisableRaiseHand?: boolean;
62
62
  canEnableVideo?: boolean;
63
63
  canDisableVideo?: boolean;
64
+ canShareFile?: boolean;
65
+ canShareApplication?: boolean;
66
+ canShareCamera?: boolean;
67
+ canShareDesktop?: boolean;
68
+ canShareContent?: boolean;
64
69
  }
65
70
  /**
66
71
  * @class InMeetingActions
@@ -122,6 +127,11 @@ export default class InMeetingActions implements IInMeetingActions {
122
127
  canDisableRaiseHand: any;
123
128
  canEnableVideo: any;
124
129
  canDisableVideo: any;
130
+ canShareFile: any;
131
+ canShareApplication: any;
132
+ canShareCamera: any;
133
+ canShareDesktop: any;
134
+ canShareContent: any;
125
135
  /**
126
136
  * Returns all meeting action options
127
137
  * @returns {Object}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webex/plugin-meetings",
3
- "version": "3.0.0-beta.129",
3
+ "version": "3.0.0-beta.130",
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.129",
36
- "@webex/test-helper-chai": "3.0.0-beta.129",
37
- "@webex/test-helper-mocha": "3.0.0-beta.129",
38
- "@webex/test-helper-mock-webex": "3.0.0-beta.129",
39
- "@webex/test-helper-retry": "3.0.0-beta.129",
40
- "@webex/test-helper-test-users": "3.0.0-beta.129",
35
+ "@webex/plugin-meetings": "3.0.0-beta.130",
36
+ "@webex/test-helper-chai": "3.0.0-beta.130",
37
+ "@webex/test-helper-mocha": "3.0.0-beta.130",
38
+ "@webex/test-helper-mock-webex": "3.0.0-beta.130",
39
+ "@webex/test-helper-retry": "3.0.0-beta.130",
40
+ "@webex/test-helper-test-users": "3.0.0-beta.130",
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.129",
49
+ "@webex/common": "3.0.0-beta.130",
50
50
  "@webex/internal-media-core": "1.38.2",
51
- "@webex/internal-plugin-conversation": "3.0.0-beta.129",
52
- "@webex/internal-plugin-device": "3.0.0-beta.129",
53
- "@webex/internal-plugin-llm": "3.0.0-beta.129",
54
- "@webex/internal-plugin-mercury": "3.0.0-beta.129",
55
- "@webex/internal-plugin-metrics": "3.0.0-beta.129",
56
- "@webex/internal-plugin-support": "3.0.0-beta.129",
57
- "@webex/internal-plugin-user": "3.0.0-beta.129",
58
- "@webex/media-helpers": "3.0.0-beta.129",
59
- "@webex/plugin-people": "3.0.0-beta.129",
60
- "@webex/plugin-rooms": "3.0.0-beta.129",
61
- "@webex/webex-core": "3.0.0-beta.129",
51
+ "@webex/internal-plugin-conversation": "3.0.0-beta.130",
52
+ "@webex/internal-plugin-device": "3.0.0-beta.130",
53
+ "@webex/internal-plugin-llm": "3.0.0-beta.130",
54
+ "@webex/internal-plugin-mercury": "3.0.0-beta.130",
55
+ "@webex/internal-plugin-metrics": "3.0.0-beta.130",
56
+ "@webex/internal-plugin-support": "3.0.0-beta.130",
57
+ "@webex/internal-plugin-user": "3.0.0-beta.130",
58
+ "@webex/media-helpers": "3.0.0-beta.130",
59
+ "@webex/plugin-people": "3.0.0-beta.130",
60
+ "@webex/plugin-rooms": "3.0.0-beta.130",
61
+ "@webex/webex-core": "3.0.0-beta.130",
62
62
  "ampersand-collection": "^2.0.2",
63
63
  "bowser": "^2.11.0",
64
64
  "btoa": "^1.2.1",
@@ -546,7 +546,6 @@ const Breakouts = WebexPlugin.extend({
546
546
  action,
547
547
  allowBackToMain: false,
548
548
  allowToJoinLater: false,
549
- duration: BREAKOUTS.DEFAULT_DURATION,
550
549
  ...params,
551
550
  };
552
551
 
package/src/constants.ts CHANGED
@@ -584,7 +584,6 @@ export const BREAKOUTS = {
584
584
  EDIT_LOCK_TOKEN_MISMATCH: 201409024,
585
585
  EDIT_NOT_AUTHORIZED: 201403007,
586
586
  },
587
- DEFAULT_DURATION: 60000,
588
587
  EDIT_LOCK_STATUS: {
589
588
  LOCKED: 'LOCKED',
590
589
  NOT_LOCKED: 'NOT_LOCKED',
@@ -856,6 +855,13 @@ export const DISPLAY_HINTS = {
856
855
  // video
857
856
  DISABLE_VIDEO: 'DISABLE_VIDEO',
858
857
  ENABLE_VIDEO: 'ENABLE_VIDEO',
858
+
859
+ // Sharing
860
+ SHARE_FILE: 'SHARE_FILE',
861
+ SHARE_APPLICATION: 'SHARE_APPLICATION',
862
+ SHARE_CAMERA: 'SHARE_CAMERA',
863
+ SHARE_DESKTOP: 'SHARE_DESKTOP',
864
+ SHARE_CONTENT: 'SHARE_CONTENT',
859
865
  };
860
866
 
861
867
  export const SELF_ROLES = {
@@ -64,6 +64,11 @@ interface IInMeetingActions {
64
64
  canDisableRaiseHand?: boolean;
65
65
  canEnableVideo?: boolean;
66
66
  canDisableVideo?: boolean;
67
+ canShareFile?: boolean;
68
+ canShareApplication?: boolean;
69
+ canShareCamera?: boolean;
70
+ canShareDesktop?: boolean;
71
+ canShareContent?: boolean;
67
72
  }
68
73
 
69
74
  /**
@@ -182,6 +187,16 @@ export default class InMeetingActions implements IInMeetingActions {
182
187
 
183
188
  canDisableVideo = null;
184
189
 
190
+ canShareFile = null;
191
+
192
+ canShareApplication = null;
193
+
194
+ canShareCamera = null;
195
+
196
+ canShareDesktop = null;
197
+
198
+ canShareContent = null;
199
+
185
200
  /**
186
201
  * Returns all meeting action options
187
202
  * @returns {Object}
@@ -242,6 +257,11 @@ export default class InMeetingActions implements IInMeetingActions {
242
257
  canDisableRaiseHand: this.canDisableRaiseHand,
243
258
  canEnableVideo: this.canEnableVideo,
244
259
  canDisableVideo: this.canDisableVideo,
260
+ canShareFile: this.canShareFile,
261
+ canShareApplication: this.canShareApplication,
262
+ canShareCamera: this.canShareCamera,
263
+ canShareDesktop: this.canShareDesktop,
264
+ canShareContent: this.canShareContent,
245
265
  });
246
266
 
247
267
  /**
@@ -2657,6 +2657,26 @@ export default class Meeting extends StatelessWebexPlugin {
2657
2657
  requiredHints: [DISPLAY_HINTS.DISABLE_VIDEO],
2658
2658
  displayHints: payload.info.userDisplayHints,
2659
2659
  }),
2660
+ canShareFile: ControlsOptionsUtil.hasHints({
2661
+ requiredHints: [DISPLAY_HINTS.SHARE_FILE],
2662
+ displayHints: payload.info.userDisplayHints,
2663
+ }),
2664
+ canShareApplication: ControlsOptionsUtil.hasHints({
2665
+ requiredHints: [DISPLAY_HINTS.SHARE_APPLICATION],
2666
+ displayHints: payload.info.userDisplayHints,
2667
+ }),
2668
+ canShareCamera: ControlsOptionsUtil.hasHints({
2669
+ requiredHints: [DISPLAY_HINTS.SHARE_CAMERA],
2670
+ displayHints: payload.info.userDisplayHints,
2671
+ }),
2672
+ canShareDesktop: ControlsOptionsUtil.hasHints({
2673
+ requiredHints: [DISPLAY_HINTS.SHARE_DESKTOP],
2674
+ displayHints: payload.info.userDisplayHints,
2675
+ }),
2676
+ canShareContent: ControlsOptionsUtil.hasHints({
2677
+ requiredHints: [DISPLAY_HINTS.SHARE_CONTENT],
2678
+ displayHints: payload.info.userDisplayHints,
2679
+ }),
2660
2680
  });
2661
2681
 
2662
2682
  this.recordingController.setDisplayHints(payload.info.userDisplayHints);
@@ -918,7 +918,6 @@ describe('plugin-meetings', () => {
918
918
  action: 'START',
919
919
  allowBackToMain: false,
920
920
  allowToJoinLater: false,
921
- duration: BREAKOUTS.DEFAULT_DURATION,
922
921
  });
923
922
  assert.deepEqual(argObj2, {
924
923
  id: 'id',
@@ -926,7 +925,6 @@ describe('plugin-meetings', () => {
926
925
  allowBackToMain: false,
927
926
  allowToJoinLater: false,
928
927
  someOtherParam: 'someOtherParam',
929
- duration: BREAKOUTS.DEFAULT_DURATION,
930
928
  });
931
929
  assert.deepEqual(result, {body: mockedReturnBody});
932
930
  assert.calledWithExactly(breakouts._setManageGroups, {body: mockedReturnBody})
@@ -60,6 +60,11 @@ describe('plugin-meetings', () => {
60
60
  canDisableRaiseHand: null,
61
61
  canEnableVideo: null,
62
62
  canDisableVideo: null,
63
+ canShareFile: null,
64
+ canShareApplication: null,
65
+ canShareCamera: null,
66
+ canShareDesktop: null,
67
+ canShareContent: null,
63
68
  ...expected,
64
69
  };
65
70
 
@@ -125,6 +130,11 @@ describe('plugin-meetings', () => {
125
130
  'canDisableRaiseHand',
126
131
  'canEnableVideo',
127
132
  'canDisableVideo',
133
+ 'canShareFile',
134
+ 'canShareApplication',
135
+ 'canShareCamera',
136
+ 'canShareDesktop',
137
+ 'canShareContent',
128
138
  ].forEach((key) => {
129
139
  it(`get and set for ${key} work as expected`, () => {
130
140
  const inMeetingActions = new InMeetingActions();
@@ -5750,6 +5750,26 @@ describe('plugin-meetings', () => {
5750
5750
  requiredHints: [DISPLAY_HINTS.DISABLE_VIEW_THE_PARTICIPANT_LIST],
5751
5751
  displayHints: payload.info.userDisplayHints,
5752
5752
  });
5753
+ assert.calledWith(ControlsOptionsUtil.hasHints, {
5754
+ requiredHints: [DISPLAY_HINTS.SHARE_FILE],
5755
+ displayHints: payload.info.userDisplayHints,
5756
+ });
5757
+ assert.calledWith(ControlsOptionsUtil.hasHints, {
5758
+ requiredHints: [DISPLAY_HINTS.SHARE_APPLICATION],
5759
+ displayHints: payload.info.userDisplayHints,
5760
+ });
5761
+ assert.calledWith(ControlsOptionsUtil.hasHints, {
5762
+ requiredHints: [DISPLAY_HINTS.SHARE_CAMERA],
5763
+ displayHints: payload.info.userDisplayHints,
5764
+ });
5765
+ assert.calledWith(ControlsOptionsUtil.hasHints, {
5766
+ requiredHints: [DISPLAY_HINTS.SHARE_DESKTOP],
5767
+ displayHints: payload.info.userDisplayHints,
5768
+ });
5769
+ assert.calledWith(ControlsOptionsUtil.hasHints, {
5770
+ requiredHints: [DISPLAY_HINTS.SHARE_CONTENT],
5771
+ displayHints: payload.info.userDisplayHints,
5772
+ });
5753
5773
 
5754
5774
  assert.calledWith(
5755
5775
  TriggerProxy.trigger,