@webex/plugin-meetings 3.0.0-beta.385 → 3.0.0-beta.387

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.
@@ -62,7 +62,7 @@ var Webinar = _webexCore.WebexPlugin.extend({
62
62
  updateCanManageWebcast: function updateCanManageWebcast(canManageWebcast) {
63
63
  this.set('canManageWebcast', canManageWebcast);
64
64
  },
65
- version: "3.0.0-beta.385"
65
+ version: "3.0.0-beta.387"
66
66
  });
67
67
  var _default = Webinar;
68
68
  exports.default = _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webex/plugin-meetings",
3
- "version": "3.0.0-beta.385",
3
+ "version": "3.0.0-beta.387",
4
4
  "description": "",
5
5
  "license": "Cisco EULA (https://www.cisco.com/c/en/us/products/end-user-license-agreement.html)",
6
6
  "contributors": [
@@ -33,12 +33,12 @@
33
33
  },
34
34
  "devDependencies": {
35
35
  "@peculiar/webcrypto": "^1.4.3",
36
- "@webex/plugin-meetings": "3.0.0-beta.385",
37
- "@webex/test-helper-chai": "3.0.0-beta.385",
38
- "@webex/test-helper-mocha": "3.0.0-beta.385",
39
- "@webex/test-helper-mock-webex": "3.0.0-beta.385",
40
- "@webex/test-helper-retry": "3.0.0-beta.385",
41
- "@webex/test-helper-test-users": "3.0.0-beta.385",
36
+ "@webex/plugin-meetings": "3.0.0-beta.387",
37
+ "@webex/test-helper-chai": "3.0.0-beta.387",
38
+ "@webex/test-helper-mocha": "3.0.0-beta.387",
39
+ "@webex/test-helper-mock-webex": "3.0.0-beta.387",
40
+ "@webex/test-helper-retry": "3.0.0-beta.387",
41
+ "@webex/test-helper-test-users": "3.0.0-beta.387",
42
42
  "chai": "^4.3.4",
43
43
  "chai-as-promised": "^7.1.1",
44
44
  "jsdom-global": "3.0.2",
@@ -47,19 +47,19 @@
47
47
  "typescript": "^4.7.4"
48
48
  },
49
49
  "dependencies": {
50
- "@webex/common": "3.0.0-beta.385",
50
+ "@webex/common": "3.0.0-beta.387",
51
51
  "@webex/internal-media-core": "2.2.9",
52
- "@webex/internal-plugin-conversation": "3.0.0-beta.385",
53
- "@webex/internal-plugin-device": "3.0.0-beta.385",
54
- "@webex/internal-plugin-llm": "3.0.0-beta.385",
55
- "@webex/internal-plugin-mercury": "3.0.0-beta.385",
56
- "@webex/internal-plugin-metrics": "3.0.0-beta.385",
57
- "@webex/internal-plugin-support": "3.0.0-beta.385",
58
- "@webex/internal-plugin-user": "3.0.0-beta.385",
59
- "@webex/media-helpers": "3.0.0-beta.385",
60
- "@webex/plugin-people": "3.0.0-beta.385",
61
- "@webex/plugin-rooms": "3.0.0-beta.385",
62
- "@webex/webex-core": "3.0.0-beta.385",
52
+ "@webex/internal-plugin-conversation": "3.0.0-beta.387",
53
+ "@webex/internal-plugin-device": "3.0.0-beta.387",
54
+ "@webex/internal-plugin-llm": "3.0.0-beta.387",
55
+ "@webex/internal-plugin-mercury": "3.0.0-beta.387",
56
+ "@webex/internal-plugin-metrics": "3.0.0-beta.387",
57
+ "@webex/internal-plugin-support": "3.0.0-beta.387",
58
+ "@webex/internal-plugin-user": "3.0.0-beta.387",
59
+ "@webex/media-helpers": "3.0.0-beta.387",
60
+ "@webex/plugin-people": "3.0.0-beta.387",
61
+ "@webex/plugin-rooms": "3.0.0-beta.387",
62
+ "@webex/webex-core": "3.0.0-beta.387",
63
63
  "ampersand-collection": "^2.0.2",
64
64
  "bowser": "^2.11.0",
65
65
  "btoa": "^1.2.1",
@@ -17,6 +17,7 @@ MediaSharesUtils.parse = (mediaShares: object) => {
17
17
  url: MediaSharesUtils.getContentUrl(mediaShares),
18
18
  shareInstanceId: MediaSharesUtils.getShareInstanceId(mediaShares),
19
19
  deviceUrlSharing: MediaSharesUtils.getContentBeneficiaryDeviceUrl(mediaShares),
20
+ resourceType: MediaSharesUtils.getContentResourceType(mediaShares),
20
21
  },
21
22
  whiteboard: {
22
23
  beneficiaryId: MediaSharesUtils.getWhiteboardBeneficiaryId(mediaShares),
@@ -159,6 +160,21 @@ MediaSharesUtils.getContentAnnotation = (mediaShares: object) => {
159
160
  return extractContent.annotation;
160
161
  };
161
162
 
163
+ /**
164
+ * get live resourceType is sharing from media shares (content)
165
+ * @param {Object} mediaShares
166
+ * @returns {Object}
167
+ */
168
+ MediaSharesUtils.getContentResourceType = (mediaShares: object) => {
169
+ const extractContent = MediaSharesUtils.extractContent(mediaShares);
170
+
171
+ if (!extractContent || !extractContent.resourceType) {
172
+ return undefined;
173
+ }
174
+
175
+ return extractContent.resourceType;
176
+ };
177
+
162
178
  /**
163
179
  * get url is sharing from media shares (content)
164
180
  * @param {Object} mediaShares
@@ -2393,6 +2393,7 @@ export default class Meeting extends StatelessWebexPlugin {
2393
2393
  {
2394
2394
  annotationInfo: contentShare?.annotation,
2395
2395
  meetingId: this.id,
2396
+ resourceType: contentShare?.resourceType,
2396
2397
  }
2397
2398
  );
2398
2399
  }
@@ -2543,6 +2544,7 @@ export default class Meeting extends StatelessWebexPlugin {
2543
2544
  url: contentShare.url,
2544
2545
  shareInstanceId: this.remoteShareInstanceId,
2545
2546
  annotationInfo: contentShare.annotation,
2547
+ resourceType: contentShare.resourceType,
2546
2548
  }
2547
2549
  );
2548
2550
  };
@@ -2635,6 +2637,7 @@ export default class Meeting extends StatelessWebexPlugin {
2635
2637
  url: contentShare.url,
2636
2638
  shareInstanceId: this.remoteShareInstanceId,
2637
2639
  annotationInfo: contentShare.annotation,
2640
+ resourceType: contentShare.resourceType,
2638
2641
  }
2639
2642
  );
2640
2643
  this.members.locusMediaSharesUpdate(payload);
@@ -20,6 +20,15 @@ describe('getContentUrl', () => {
20
20
  });
21
21
  });
22
22
 
23
+ describe('getContentResourceType', () => {
24
+ it('getContentResourceType return correct resourceType value', () => {
25
+ const stub = Sinon.stub(MediaSharesUtils, 'extractContent').returns({resourceType:'resourceType'});
26
+ const resourceType = MediaSharesUtils.getContentResourceType();
27
+ assert.equal(resourceType,'resourceType');
28
+ stub.restore();
29
+ });
30
+ });
31
+
23
32
  describe('getContentBeneficiaryDeviceUrl', () => {
24
33
  it('getContentBeneficiaryDeviceUrl return correct deviceUrl value', () => {
25
34
  const mockContentBeneficiaryDeviceUrl = "https://wdm-a.wbx2.com/wdm/api/v1/devices/e9ffd8a1-1fae-42d1-afbe-013e951f93ab"
@@ -9199,9 +9199,9 @@ describe('plugin-meetings', () => {
9199
9199
  it('check triggerAnnotationInfoEvent event', () => {
9200
9200
  TriggerProxy.trigger.reset();
9201
9201
  const annotationInfo = {version: '1', policy: 'Approval'};
9202
- const expectAnnotationInfo = {annotationInfo, meetingId: meeting.id};
9202
+ const expectAnnotationInfo = {annotationInfo, meetingId: meeting.id, resourceType: 'FILE'};
9203
9203
  meeting.webex.meetings = {};
9204
- meeting.triggerAnnotationInfoEvent({annotation: annotationInfo}, {});
9204
+ meeting.triggerAnnotationInfoEvent({annotation: annotationInfo, resourceType: 'FILE'}, {});
9205
9205
  assert.calledWith(
9206
9206
  TriggerProxy.trigger,
9207
9207
  {},
@@ -9215,8 +9215,8 @@ describe('plugin-meetings', () => {
9215
9215
 
9216
9216
  TriggerProxy.trigger.reset();
9217
9217
  meeting.triggerAnnotationInfoEvent(
9218
- {annotation: annotationInfo},
9219
- {annotation: annotationInfo}
9218
+ {annotation: annotationInfo, resourceType: 'FILE'},
9219
+ {annotation: annotationInfo, resourceType: 'FILE'}
9220
9220
  );
9221
9221
  assert.notCalled(TriggerProxy.trigger);
9222
9222
 
@@ -9225,10 +9225,11 @@ describe('plugin-meetings', () => {
9225
9225
  const expectAnnotationInfoUpdated = {
9226
9226
  annotationInfo: annotationInfoUpdate,
9227
9227
  meetingId: meeting.id,
9228
+ resourceType: 'FILE',
9228
9229
  };
9229
9230
  meeting.triggerAnnotationInfoEvent(
9230
- {annotation: annotationInfoUpdate},
9231
- {annotation: annotationInfo}
9231
+ {annotation: annotationInfoUpdate, resourceType: 'FILE'},
9232
+ {annotation: annotationInfo, resourceType: 'FILE'}
9232
9233
  );
9233
9234
  assert.calledWith(
9234
9235
  TriggerProxy.trigger,
@@ -9242,7 +9243,7 @@ describe('plugin-meetings', () => {
9242
9243
  );
9243
9244
 
9244
9245
  TriggerProxy.trigger.reset();
9245
- meeting.triggerAnnotationInfoEvent(null, {annotation: annotationInfoUpdate});
9246
+ meeting.triggerAnnotationInfoEvent(null, {annotation: annotationInfoUpdate, resourceType: 'FILE'});
9246
9247
  assert.notCalled(TriggerProxy.trigger);
9247
9248
  });
9248
9249
  });
@@ -9277,11 +9278,14 @@ describe('plugin-meetings', () => {
9277
9278
  beneficiaryId = null,
9278
9279
  disposition = null,
9279
9280
  deviceUrlSharing = null,
9280
- annotation = undefined
9281
+ annotation = undefined,
9282
+ resourceType = undefined,
9281
9283
  ) => ({
9282
9284
  beneficiaryId,
9283
9285
  disposition,
9284
9286
  deviceUrlSharing,
9287
+ annotation,
9288
+ resourceType,
9285
9289
  });
9286
9290
  const generateWhiteboard = (
9287
9291
  beneficiaryId = null,
@@ -9300,7 +9304,8 @@ describe('plugin-meetings', () => {
9300
9304
  annotation,
9301
9305
  url,
9302
9306
  shareInstanceId,
9303
- deviceUrlSharing
9307
+ deviceUrlSharing,
9308
+ resourceType
9304
9309
  ) => {
9305
9310
  const newPayload = cloneDeep(payload);
9306
9311
 
@@ -9334,7 +9339,8 @@ describe('plugin-meetings', () => {
9334
9339
  beneficiaryId,
9335
9340
  FLOOR_ACTION.GRANTED,
9336
9341
  deviceUrlSharing,
9337
- annotation
9342
+ annotation,
9343
+ resourceType
9338
9344
  );
9339
9345
 
9340
9346
  if (isEqual(newPayload.current, newPayload.previous)) {
@@ -9395,6 +9401,7 @@ describe('plugin-meetings', () => {
9395
9401
  url,
9396
9402
  shareInstanceId,
9397
9403
  annotationInfo: undefined,
9404
+ resourceType: undefined
9398
9405
  },
9399
9406
  });
9400
9407
  }
@@ -10236,7 +10243,8 @@ describe('plugin-meetings', () => {
10236
10243
  undefined,
10237
10244
  undefined,
10238
10245
  undefined,
10239
- DEVICE_URL.REMOTE_A
10246
+ DEVICE_URL.REMOTE_A,
10247
+ undefined
10240
10248
  );
10241
10249
  const data2 = generateData(
10242
10250
  data1.payload,
@@ -10249,9 +10257,10 @@ describe('plugin-meetings', () => {
10249
10257
  undefined,
10250
10258
  undefined,
10251
10259
  undefined,
10252
- DEVICE_URL.REMOTE_B
10260
+ DEVICE_URL.REMOTE_B,
10261
+ undefined
10253
10262
  );
10254
- const data3 = generateData(data2.payload, false, true, USER_IDS.REMOTE_B);
10263
+ const data3 = generateData(data2.payload, false, true, USER_IDS.REMOTE_B, undefined);
10255
10264
 
10256
10265
  payloadTestHelper([data1, data2, data3]);
10257
10266
  });