@webex/plugin-meetings 3.0.0-beta.117 → 3.0.0-beta.119
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/dist/annotation/annotation.types.js.map +1 -1
- package/dist/annotation/index.js +1 -1
- package/dist/annotation/index.js.map +1 -1
- package/dist/breakouts/breakout.js +1 -1
- package/dist/breakouts/index.js +1 -1
- package/dist/locus-info/mediaSharesUtils.js +29 -1
- package/dist/locus-info/mediaSharesUtils.js.map +1 -1
- package/dist/meeting/index.js +6 -2
- package/dist/meeting/index.js.map +1 -1
- package/dist/types/annotation/annotation.types.d.ts +1 -0
- package/package.json +20 -20
- package/src/annotation/annotation.types.ts +1 -0
- package/src/annotation/index.ts +1 -1
- package/src/locus-info/mediaSharesUtils.ts +32 -0
- package/src/meeting/index.ts +4 -0
- package/test/unit/spec/annotation/index.ts +2 -1
- package/test/unit/spec/locus-info/mediaSharesUtils.ts +22 -0
- package/test/unit/spec/meeting/index.js +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webex/plugin-meetings",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.119",
|
|
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.
|
|
36
|
-
"@webex/test-helper-chai": "3.0.0-beta.
|
|
37
|
-
"@webex/test-helper-mocha": "3.0.0-beta.
|
|
38
|
-
"@webex/test-helper-mock-webex": "3.0.0-beta.
|
|
39
|
-
"@webex/test-helper-retry": "3.0.0-beta.
|
|
40
|
-
"@webex/test-helper-test-users": "3.0.0-beta.
|
|
35
|
+
"@webex/plugin-meetings": "3.0.0-beta.119",
|
|
36
|
+
"@webex/test-helper-chai": "3.0.0-beta.119",
|
|
37
|
+
"@webex/test-helper-mocha": "3.0.0-beta.119",
|
|
38
|
+
"@webex/test-helper-mock-webex": "3.0.0-beta.119",
|
|
39
|
+
"@webex/test-helper-retry": "3.0.0-beta.119",
|
|
40
|
+
"@webex/test-helper-test-users": "3.0.0-beta.119",
|
|
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.
|
|
50
|
-
"@webex/internal-media-core": "1.38.
|
|
51
|
-
"@webex/internal-plugin-conversation": "3.0.0-beta.
|
|
52
|
-
"@webex/internal-plugin-device": "3.0.0-beta.
|
|
53
|
-
"@webex/internal-plugin-llm": "3.0.0-beta.
|
|
54
|
-
"@webex/internal-plugin-mercury": "3.0.0-beta.
|
|
55
|
-
"@webex/internal-plugin-metrics": "3.0.0-beta.
|
|
56
|
-
"@webex/internal-plugin-support": "3.0.0-beta.
|
|
57
|
-
"@webex/internal-plugin-user": "3.0.0-beta.
|
|
58
|
-
"@webex/media-helpers": "3.0.0-beta.
|
|
59
|
-
"@webex/plugin-people": "3.0.0-beta.
|
|
60
|
-
"@webex/plugin-rooms": "3.0.0-beta.
|
|
61
|
-
"@webex/webex-core": "3.0.0-beta.
|
|
49
|
+
"@webex/common": "3.0.0-beta.119",
|
|
50
|
+
"@webex/internal-media-core": "1.38.1",
|
|
51
|
+
"@webex/internal-plugin-conversation": "3.0.0-beta.119",
|
|
52
|
+
"@webex/internal-plugin-device": "3.0.0-beta.119",
|
|
53
|
+
"@webex/internal-plugin-llm": "3.0.0-beta.119",
|
|
54
|
+
"@webex/internal-plugin-mercury": "3.0.0-beta.119",
|
|
55
|
+
"@webex/internal-plugin-metrics": "3.0.0-beta.119",
|
|
56
|
+
"@webex/internal-plugin-support": "3.0.0-beta.119",
|
|
57
|
+
"@webex/internal-plugin-user": "3.0.0-beta.119",
|
|
58
|
+
"@webex/media-helpers": "3.0.0-beta.119",
|
|
59
|
+
"@webex/plugin-people": "3.0.0-beta.119",
|
|
60
|
+
"@webex/plugin-rooms": "3.0.0-beta.119",
|
|
61
|
+
"@webex/webex-core": "3.0.0-beta.119",
|
|
62
62
|
"ampersand-collection": "^2.0.2",
|
|
63
63
|
"bowser": "^2.11.0",
|
|
64
64
|
"btoa": "^1.2.1",
|
package/src/annotation/index.ts
CHANGED
|
@@ -315,7 +315,7 @@ class AnnotationChannel extends WebexPlugin implements IAnnotationChannel {
|
|
|
315
315
|
type: ANNOTATION_REQUEST_TYPE.ANNOTATION_MESSAGE,
|
|
316
316
|
locusUrl: this.locusUrl,
|
|
317
317
|
content: encryptedContent,
|
|
318
|
-
version:
|
|
318
|
+
version: strokeData.version,
|
|
319
319
|
fromUserId: strokeData.fromUserId,
|
|
320
320
|
fromDeviceUrl: strokeData.fromDeviceUrl,
|
|
321
321
|
shareInstanceId: strokeData.shareInstanceId,
|
|
@@ -14,6 +14,8 @@ MediaSharesUtils.parse = (mediaShares: object) => {
|
|
|
14
14
|
beneficiaryId: MediaSharesUtils.getContentBeneficiaryId(mediaShares),
|
|
15
15
|
disposition: MediaSharesUtils.getContentDisposition(mediaShares),
|
|
16
16
|
annotation: MediaSharesUtils.getContentAnnotation(mediaShares),
|
|
17
|
+
url: MediaSharesUtils.getContentUrl(mediaShares),
|
|
18
|
+
shareInstanceId: MediaSharesUtils.getShareInstanceId(mediaShares),
|
|
17
19
|
},
|
|
18
20
|
whiteboard: {
|
|
19
21
|
beneficiaryId: MediaSharesUtils.getWhiteboardBeneficiaryId(mediaShares),
|
|
@@ -156,6 +158,36 @@ MediaSharesUtils.getContentAnnotation = (mediaShares: object) => {
|
|
|
156
158
|
return extractContent.annotation;
|
|
157
159
|
};
|
|
158
160
|
|
|
161
|
+
/**
|
|
162
|
+
* get url is sharing from media shares (content)
|
|
163
|
+
* @param {Object} mediaShares
|
|
164
|
+
* @returns {Object}
|
|
165
|
+
*/
|
|
166
|
+
MediaSharesUtils.getContentUrl = (mediaShares: object) => {
|
|
167
|
+
const extractContent = MediaSharesUtils.extractContent(mediaShares);
|
|
168
|
+
|
|
169
|
+
if (!extractContent || !extractContent.url) {
|
|
170
|
+
return undefined;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
return extractContent.url;
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* get shareInstanceId is sharing from media shares (content)
|
|
178
|
+
* @param {Object} mediaShares
|
|
179
|
+
* @returns {Object}
|
|
180
|
+
*/
|
|
181
|
+
MediaSharesUtils.getShareInstanceId = (mediaShares: object) => {
|
|
182
|
+
const extractContent = MediaSharesUtils.extractContent(mediaShares);
|
|
183
|
+
|
|
184
|
+
if (!extractContent || !extractContent.floor || !extractContent.floor.shareInstanceId) {
|
|
185
|
+
return undefined;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
return extractContent.floor.shareInstanceId;
|
|
189
|
+
};
|
|
190
|
+
|
|
159
191
|
/**
|
|
160
192
|
* get who is sharing from media shares (whiteboard)
|
|
161
193
|
* @param {Object} mediaShares
|
package/src/meeting/index.ts
CHANGED
|
@@ -2339,6 +2339,8 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
2339
2339
|
EVENT_TRIGGERS.MEETING_STARTED_SHARING_REMOTE,
|
|
2340
2340
|
{
|
|
2341
2341
|
memberId: contentShare.beneficiaryId,
|
|
2342
|
+
url: contentShare.url,
|
|
2343
|
+
shareInstanceId: contentShare.shareInstanceId,
|
|
2342
2344
|
}
|
|
2343
2345
|
);
|
|
2344
2346
|
};
|
|
@@ -2413,6 +2415,8 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
2413
2415
|
EVENT_TRIGGERS.MEETING_STARTED_SHARING_REMOTE,
|
|
2414
2416
|
{
|
|
2415
2417
|
memberId: contentShare.beneficiaryId,
|
|
2418
|
+
url: contentShare.url,
|
|
2419
|
+
shareInstanceId: contentShare.shareInstanceId,
|
|
2416
2420
|
}
|
|
2417
2421
|
);
|
|
2418
2422
|
this.members.locusMediaSharesUpdate(payload);
|
|
@@ -246,6 +246,7 @@ describe('live-annotation', () => {
|
|
|
246
246
|
locusUrl: "https://locus.wbx2.com/locus/api/v1/loci/163c1787-c1f5-47cc-95eb-ab2d660999e6",
|
|
247
247
|
shareInstanceId: "7fa6fe07-dcb1-41ad-973d-7bcf65fab55d",
|
|
248
248
|
encryptionKeyUrl: "encryptionKeyUrl",
|
|
249
|
+
version: '1',
|
|
249
250
|
};
|
|
250
251
|
|
|
251
252
|
annotationService.publishEncrypted(strokeData.content, strokeData);
|
|
@@ -264,7 +265,7 @@ describe('live-annotation', () => {
|
|
|
264
265
|
type: ANNOTATION_REQUEST_TYPE.ANNOTATION_MESSAGE,
|
|
265
266
|
locusUrl: locusUrl,
|
|
266
267
|
content: strokeData.content,
|
|
267
|
-
version:
|
|
268
|
+
version: '1',
|
|
268
269
|
fromUserId: strokeData.fromUserId,
|
|
269
270
|
fromDeviceUrl: strokeData.fromDeviceUrl,
|
|
270
271
|
shareInstanceId: strokeData.shareInstanceId,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import MediaSharesUtils from '@webex/plugin-meetings/src/locus-info/mediaSharesUtils';
|
|
2
|
+
import {assert} from "chai";
|
|
3
|
+
import Sinon from "sinon";
|
|
4
|
+
|
|
5
|
+
describe('getShareInstanceId', () => {
|
|
6
|
+
it('getShareInstanceId return correct shareInstanceId value', () => {
|
|
7
|
+
const stub = Sinon.stub(MediaSharesUtils, 'extractContent').returns({ floor:{shareInstanceId:'shareInstanceId'}});
|
|
8
|
+
const shareInstanceId = MediaSharesUtils.getShareInstanceId();
|
|
9
|
+
assert.equal(shareInstanceId,'shareInstanceId');
|
|
10
|
+
stub.restore();
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
describe('getContentUrl', () => {
|
|
15
|
+
it('getContentUrl return correct url value', () => {
|
|
16
|
+
const stub = Sinon.stub(MediaSharesUtils, 'extractContent').returns({url:'url'});
|
|
17
|
+
const url = MediaSharesUtils.getContentUrl();
|
|
18
|
+
assert.equal(url,'url');
|
|
19
|
+
stub.restore();
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
|
|
@@ -5879,6 +5879,8 @@ describe('plugin-meetings', () => {
|
|
|
5879
5879
|
isAccepting,
|
|
5880
5880
|
otherBeneficiaryId,
|
|
5881
5881
|
annotation,
|
|
5882
|
+
url,
|
|
5883
|
+
shareInstanceId
|
|
5882
5884
|
) => {
|
|
5883
5885
|
const newPayload = cloneDeep(payload);
|
|
5884
5886
|
|
|
@@ -5958,7 +5960,7 @@ describe('plugin-meetings', () => {
|
|
|
5958
5960
|
eventTrigger.share.push({
|
|
5959
5961
|
eventName: EVENT_TRIGGERS.MEETING_STARTED_SHARING_REMOTE,
|
|
5960
5962
|
functionName: 'remoteShare',
|
|
5961
|
-
eventPayload: {memberId: beneficiaryId},
|
|
5963
|
+
eventPayload: {memberId: beneficiaryId, url, shareInstanceId},
|
|
5962
5964
|
});
|
|
5963
5965
|
}
|
|
5964
5966
|
}
|